ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.314.2

This commit is contained in:
speakeasybot
2024-06-22 00:10:56 +00:00
parent 5fc7421ebf
commit 6e9e5028bc
70 changed files with 3323 additions and 1130 deletions

View File

@@ -137,7 +137,7 @@ func (s *Sessions) GetSessions(ctx context.Context) (*operations.GetSessionsResp
// GetSessionHistory - Get Session History
// This will Retrieve a listing of all history views.
func (s *Sessions) GetSessionHistory(ctx context.Context) (*operations.GetSessionHistoryResponse, error) {
func (s *Sessions) GetSessionHistory(ctx context.Context, sort *string, accountID *int64, filter *operations.Filter, librarySectionID *int64) (*operations.GetSessionHistoryResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getSessionHistory",
@@ -145,6 +145,13 @@ func (s *Sessions) GetSessionHistory(ctx context.Context) (*operations.GetSessio
SecuritySource: s.sdkConfiguration.Security,
}
request := operations.GetSessionHistoryRequest{
Sort: sort,
AccountID: accountID,
Filter: filter,
LibrarySectionID: librarySectionID,
}
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
opURL, err := url.JoinPath(baseURL, "/status/sessions/history/all")
if err != nil {
@@ -158,6 +165,10 @@ func (s *Sessions) GetSessionHistory(ctx context.Context) (*operations.GetSessio
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
}
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
}