@connectedxm/admin-sdk 13.4.0 → 13.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 13.4.0
7
+ * The version of the OpenAPI document: 13.6.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3010,13 +3010,18 @@ export interface BaseStreamInput {
3010
3010
  export interface BaseStreamSession {
3011
3011
  'id': string;
3012
3012
  'organizationId': string;
3013
- 'streamId': string;
3014
- 'status': string;
3013
+ 'streamId': string | null;
3014
+ 'name': string | null;
3015
+ 'eventId': string | null;
3016
+ 'eventSessionId': string | null;
3017
+ 'status': StreamSessionStatus;
3015
3018
  'startedAt': string | null;
3016
3019
  'endedAt': string | null;
3017
3020
  'createdAt': string;
3018
3021
  'updatedAt': string;
3019
3022
  }
3023
+
3024
+
3020
3025
  export interface BaseStreamSessionSubscription {
3021
3026
  'id': string;
3022
3027
  'organizationId': string;
@@ -7989,6 +7994,17 @@ export enum GetAllAccountMerges200ResponseStatusEnum {
7989
7994
  Ok = 'ok'
7990
7995
  }
7991
7996
 
7997
+ export interface GetAllStreamSessions200Response {
7998
+ 'status': GetAllStreamSessions200ResponseStatusEnum;
7999
+ 'message': string;
8000
+ 'data': Array<StreamSession>;
8001
+ 'count'?: number;
8002
+ }
8003
+
8004
+ export enum GetAllStreamSessions200ResponseStatusEnum {
8005
+ Ok = 'ok'
8006
+ }
8007
+
7992
8008
  export interface GetAnnouncementAudienceAccounts200Response {
7993
8009
  'status': GetAnnouncementAudienceAccounts200ResponseStatusEnum;
7994
8010
  'message': string;
@@ -10907,45 +10923,34 @@ export enum GetStreamInputs200ResponseStatusEnum {
10907
10923
  Ok = 'ok'
10908
10924
  }
10909
10925
 
10910
- export interface GetStreamSession200Response {
10911
- 'status': GetStreamSession200ResponseStatusEnum;
10926
+ export interface GetStreamSessionById200Response {
10927
+ 'status': GetStreamSessionById200ResponseStatusEnum;
10912
10928
  'message': string;
10913
10929
  'data': StreamSession;
10914
10930
  }
10915
10931
 
10916
- export enum GetStreamSession200ResponseStatusEnum {
10932
+ export enum GetStreamSessionById200ResponseStatusEnum {
10917
10933
  Ok = 'ok'
10918
10934
  }
10919
10935
 
10920
- export interface GetStreamSessionChat200Response {
10921
- 'status': GetStreamSessionChat200ResponseStatusEnum;
10936
+ export interface GetStreamSessionByIdChat200Response {
10937
+ 'status': GetStreamSessionByIdChat200ResponseStatusEnum;
10922
10938
  'message': string;
10923
10939
  'data': Array<StreamSessionChatMessage>;
10924
10940
  }
10925
10941
 
10926
- export enum GetStreamSessionChat200ResponseStatusEnum {
10942
+ export enum GetStreamSessionByIdChat200ResponseStatusEnum {
10927
10943
  Ok = 'ok'
10928
10944
  }
10929
10945
 
10930
- export interface GetStreamSessionSubscriptions200Response {
10931
- 'status': GetStreamSessionSubscriptions200ResponseStatusEnum;
10946
+ export interface GetStreamSessionByIdSubscriptions200Response {
10947
+ 'status': GetStreamSessionByIdSubscriptions200ResponseStatusEnum;
10932
10948
  'message': string;
10933
10949
  'data': Array<StreamSessionSubscription>;
10934
10950
  'count'?: number;
10935
10951
  }
10936
10952
 
10937
- export enum GetStreamSessionSubscriptions200ResponseStatusEnum {
10938
- Ok = 'ok'
10939
- }
10940
-
10941
- export interface GetStreamSessions200Response {
10942
- 'status': GetStreamSessions200ResponseStatusEnum;
10943
- 'message': string;
10944
- 'data': Array<StreamSession>;
10945
- 'count'?: number;
10946
- }
10947
-
10948
- export enum GetStreamSessions200ResponseStatusEnum {
10953
+ export enum GetStreamSessionByIdSubscriptions200ResponseStatusEnum {
10949
10954
  Ok = 'ok'
10950
10955
  }
10951
10956
 
@@ -15099,15 +15104,22 @@ export interface StreamOutputCreateInputs {
15099
15104
  export interface StreamSession {
15100
15105
  'id': string;
15101
15106
  'organizationId': string;
15102
- 'streamId': string;
15103
- 'status': string;
15107
+ 'streamId': string | null;
15108
+ 'name': string | null;
15109
+ 'eventId': string | null;
15110
+ 'eventSessionId': string | null;
15111
+ 'status': StreamSessionStatus;
15104
15112
  'startedAt': string | null;
15105
15113
  'endedAt': string | null;
15106
15114
  'createdAt': string;
15107
15115
  'updatedAt': string;
15108
- 'stream': BaseStreamInput;
15116
+ 'stream': BaseStreamInput | null;
15117
+ 'event': BaseEvent | null;
15118
+ 'eventSession': BaseEventSession | null;
15109
15119
  'organization': BaseOrganization;
15110
15120
  }
15121
+
15122
+
15111
15123
  export interface StreamSessionChatMessage {
15112
15124
  'messageId': string;
15113
15125
  'streamId': string;
@@ -15118,6 +15130,13 @@ export interface StreamSessionChatMessage {
15118
15130
  'message': string;
15119
15131
  'timestamp': number;
15120
15132
  }
15133
+
15134
+ export enum StreamSessionStatus {
15135
+ Active = 'ACTIVE',
15136
+ Ended = 'ENDED'
15137
+ }
15138
+
15139
+
15121
15140
  export interface StreamSessionSubscription {
15122
15141
  'id': string;
15123
15142
  'organizationId': string;
@@ -15129,6 +15148,11 @@ export interface StreamSessionSubscription {
15129
15148
  'connection': BaseWebSocketConnection;
15130
15149
  'streamSession': BaseStreamSession;
15131
15150
  }
15151
+ export interface StreamSessionUpdateInputs {
15152
+ 'name'?: string | null;
15153
+ 'eventId'?: string | null;
15154
+ 'eventSessionId'?: string | null;
15155
+ }
15132
15156
  export interface StripeActivationFormParams {
15133
15157
  'clientPublicKey': string;
15134
15158
  'clientSecret': string;
@@ -150555,7 +150579,7 @@ export const StreamsApiAxiosParamCreator = function (configuration?: Configurati
150555
150579
  };
150556
150580
  },
150557
150581
  /**
150558
- * Permanently deletes the stream input (streamId) and its associated Cloudflare live input; requires the read and delete permissions on streams.
150582
+ * Permanently deletes the stream input (streamId) and its associated Cloudflare live input. Its sessions, their chat history and its recordings are kept, and any active session is ended; requires the read and delete permissions on streams.
150559
150583
  * @summary Delete a stream input
150560
150584
  * @param {string} streamId The stream identifier
150561
150585
  * @param {*} [options] Override http request option.
@@ -150883,7 +150907,7 @@ export const StreamsApiFp = function(configuration?: Configuration) {
150883
150907
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
150884
150908
  },
150885
150909
  /**
150886
- * Permanently deletes the stream input (streamId) and its associated Cloudflare live input; requires the read and delete permissions on streams.
150910
+ * Permanently deletes the stream input (streamId) and its associated Cloudflare live input. Its sessions, their chat history and its recordings are kept, and any active session is ended; requires the read and delete permissions on streams.
150887
150911
  * @summary Delete a stream input
150888
150912
  * @param {string} streamId The stream identifier
150889
150913
  * @param {*} [options] Override http request option.
@@ -150993,7 +151017,7 @@ export const StreamsApiFactory = function (configuration?: Configuration, basePa
150993
151017
  return localVarFp.createStreamInput(requestParameters.streamInputCreateInputs, options).then((request) => request(axios, basePath));
150994
151018
  },
150995
151019
  /**
150996
- * Permanently deletes the stream input (streamId) and its associated Cloudflare live input; requires the read and delete permissions on streams.
151020
+ * Permanently deletes the stream input (streamId) and its associated Cloudflare live input. Its sessions, their chat history and its recordings are kept, and any active session is ended; requires the read and delete permissions on streams.
150997
151021
  * @summary Delete a stream input
150998
151022
  * @param {StreamsApiDeleteStreamInputRequest} requestParameters Request parameters.
150999
151023
  * @param {*} [options] Override http request option.
@@ -151197,7 +151221,7 @@ export class StreamsApi extends BaseAPI {
151197
151221
  }
151198
151222
 
151199
151223
  /**
151200
- * Permanently deletes the stream input (streamId) and its associated Cloudflare live input; requires the read and delete permissions on streams.
151224
+ * Permanently deletes the stream input (streamId) and its associated Cloudflare live input. Its sessions, their chat history and its recordings are kept, and any active session is ended; requires the read and delete permissions on streams.
151201
151225
  * @summary Delete a stream input
151202
151226
  * @param {StreamsApiDeleteStreamInputRequest} requestParameters Request parameters.
151203
151227
  * @param {*} [options] Override http request option.
@@ -151901,6 +151925,122 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
151901
151925
  options: localVarRequestOptions,
151902
151926
  };
151903
151927
  },
151928
+ /**
151929
+ * Queues an asynchronous export job for the given stream session (sessionId), whether or not its stream input still exists, emailing the requesting user a download when the export completes; requires the read permission on streams.
151930
+ * @summary Request an export of a stream session by session id
151931
+ * @param {string} sessionId The session identifier
151932
+ * @param {*} [options] Override http request option.
151933
+ * @throws {RequiredError}
151934
+ */
151935
+ exportStreamSessionById: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
151936
+ // verify required parameter 'sessionId' is not null or undefined
151937
+ assertParamExists('exportStreamSessionById', 'sessionId', sessionId)
151938
+ const localVarPath = `/streams/sessions/{sessionId}/export`
151939
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
151940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151942
+ let baseOptions;
151943
+ if (configuration) {
151944
+ baseOptions = configuration.baseOptions;
151945
+ }
151946
+
151947
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
151948
+ const localVarHeaderParameter = {} as any;
151949
+ const localVarQueryParameter = {} as any;
151950
+
151951
+ // authentication ApiKeyAuth required
151952
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
151953
+
151954
+ // authentication OrganizationId required
151955
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
151956
+
151957
+ localVarHeaderParameter['Accept'] = 'application/json';
151958
+
151959
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
151960
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151961
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151962
+
151963
+ return {
151964
+ url: toPathString(localVarUrlObj),
151965
+ options: localVarRequestOptions,
151966
+ };
151967
+ },
151968
+ /**
151969
+ * Returns a paginated list of the organization\'s broadcast sessions across every stream input, including sessions whose input has been deleted, filterable by stream input, event, event session and status and searchable by session or input name; requires read permission on streams.
151970
+ * @summary List stream sessions across all stream inputs
151971
+ * @param {string} [streamId] Filter by streamId
151972
+ * @param {string} [eventId] Filter by eventId
151973
+ * @param {string} [eventSessionId] Filter by eventSessionId
151974
+ * @param {string} [status] Filter by status
151975
+ * @param {number} [page] Page number
151976
+ * @param {number} [pageSize] Number of items per page
151977
+ * @param {string} [orderBy] Field to order by
151978
+ * @param {string} [search] Search query
151979
+ * @param {*} [options] Override http request option.
151980
+ * @throws {RequiredError}
151981
+ */
151982
+ getAllStreamSessions: async (streamId?: string, eventId?: string, eventSessionId?: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
151983
+ const localVarPath = `/streams/sessions`;
151984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151986
+ let baseOptions;
151987
+ if (configuration) {
151988
+ baseOptions = configuration.baseOptions;
151989
+ }
151990
+
151991
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
151992
+ const localVarHeaderParameter = {} as any;
151993
+ const localVarQueryParameter = {} as any;
151994
+
151995
+ // authentication ApiKeyAuth required
151996
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
151997
+
151998
+ // authentication OrganizationId required
151999
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152000
+
152001
+ if (streamId !== undefined) {
152002
+ localVarQueryParameter['streamId'] = streamId;
152003
+ }
152004
+
152005
+ if (eventId !== undefined) {
152006
+ localVarQueryParameter['eventId'] = eventId;
152007
+ }
152008
+
152009
+ if (eventSessionId !== undefined) {
152010
+ localVarQueryParameter['eventSessionId'] = eventSessionId;
152011
+ }
152012
+
152013
+ if (status !== undefined) {
152014
+ localVarQueryParameter['status'] = status;
152015
+ }
152016
+
152017
+ if (page !== undefined) {
152018
+ localVarQueryParameter['page'] = page;
152019
+ }
152020
+
152021
+ if (pageSize !== undefined) {
152022
+ localVarQueryParameter['pageSize'] = pageSize;
152023
+ }
152024
+
152025
+ if (orderBy !== undefined) {
152026
+ localVarQueryParameter['orderBy'] = orderBy;
152027
+ }
152028
+
152029
+ if (search !== undefined) {
152030
+ localVarQueryParameter['search'] = search;
152031
+ }
152032
+
152033
+ localVarHeaderParameter['Accept'] = 'application/json';
152034
+
152035
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152036
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152037
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152038
+
152039
+ return {
152040
+ url: toPathString(localVarUrlObj),
152041
+ options: localVarRequestOptions,
152042
+ };
152043
+ },
151904
152044
  /**
151905
152045
  * Returns details for one broadcast session of the given stream input, such as its status and timing information; requires read permission on streams.
151906
152046
  * @summary Get a single stream session
@@ -151946,20 +152086,16 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
151946
152086
  };
151947
152087
  },
151948
152088
  /**
151949
- * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, ordered for chronological display; requires read permission on streams.
151950
- * @summary List a stream session\'s chat messages
151951
- * @param {string} streamId The stream identifier
152089
+ * Returns one broadcast session by its id alone, whether or not its stream input still exists, with its name, status, timing and the event and event session it belongs to; requires read permission on streams.
152090
+ * @summary Get a stream session by id
151952
152091
  * @param {string} sessionId The session identifier
151953
152092
  * @param {*} [options] Override http request option.
151954
152093
  * @throws {RequiredError}
151955
152094
  */
151956
- getStreamSessionChat: async (streamId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
151957
- // verify required parameter 'streamId' is not null or undefined
151958
- assertParamExists('getStreamSessionChat', 'streamId', streamId)
152095
+ getStreamSessionById: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
151959
152096
  // verify required parameter 'sessionId' is not null or undefined
151960
- assertParamExists('getStreamSessionChat', 'sessionId', sessionId)
151961
- const localVarPath = `/streams/{streamId}/sessions/{sessionId}/chat`
151962
- .replace('{streamId}', encodeURIComponent(String(streamId)))
152097
+ assertParamExists('getStreamSessionById', 'sessionId', sessionId)
152098
+ const localVarPath = `/streams/sessions/{sessionId}`
151963
152099
  .replace('{sessionId}', encodeURIComponent(String(sessionId)));
151964
152100
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
151965
152101
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -151990,9 +152126,48 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
151990
152126
  };
151991
152127
  },
151992
152128
  /**
151993
- * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, each with its connection details, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
151994
- * @summary List a stream session\'s viewer connections
151995
- * @param {string} streamId The stream identifier
152129
+ * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, whether or not its stream input still exists; requires read permission on streams.
152130
+ * @summary List a stream session\'s chat messages by session id
152131
+ * @param {string} sessionId The session identifier
152132
+ * @param {*} [options] Override http request option.
152133
+ * @throws {RequiredError}
152134
+ */
152135
+ getStreamSessionByIdChat: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152136
+ // verify required parameter 'sessionId' is not null or undefined
152137
+ assertParamExists('getStreamSessionByIdChat', 'sessionId', sessionId)
152138
+ const localVarPath = `/streams/sessions/{sessionId}/chat`
152139
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
152140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152142
+ let baseOptions;
152143
+ if (configuration) {
152144
+ baseOptions = configuration.baseOptions;
152145
+ }
152146
+
152147
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
152148
+ const localVarHeaderParameter = {} as any;
152149
+ const localVarQueryParameter = {} as any;
152150
+
152151
+ // authentication ApiKeyAuth required
152152
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
152153
+
152154
+ // authentication OrganizationId required
152155
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152156
+
152157
+ localVarHeaderParameter['Accept'] = 'application/json';
152158
+
152159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152161
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152162
+
152163
+ return {
152164
+ url: toPathString(localVarUrlObj),
152165
+ options: localVarRequestOptions,
152166
+ };
152167
+ },
152168
+ /**
152169
+ * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, whether or not its stream input still exists, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
152170
+ * @summary List a stream session\'s viewer connections by session id
151996
152171
  * @param {string} sessionId The session identifier
151997
152172
  * @param {boolean} [active] Filter by active
151998
152173
  * @param {number} [page] Page number
@@ -152002,13 +152177,10 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
152002
152177
  * @param {*} [options] Override http request option.
152003
152178
  * @throws {RequiredError}
152004
152179
  */
152005
- getStreamSessionSubscriptions: async (streamId: string, sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152006
- // verify required parameter 'streamId' is not null or undefined
152007
- assertParamExists('getStreamSessionSubscriptions', 'streamId', streamId)
152180
+ getStreamSessionByIdSubscriptions: async (sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152008
152181
  // verify required parameter 'sessionId' is not null or undefined
152009
- assertParamExists('getStreamSessionSubscriptions', 'sessionId', sessionId)
152010
- const localVarPath = `/streams/{streamId}/sessions/{sessionId}/subscriptions`
152011
- .replace('{streamId}', encodeURIComponent(String(streamId)))
152182
+ assertParamExists('getStreamSessionByIdSubscriptions', 'sessionId', sessionId)
152183
+ const localVarPath = `/streams/sessions/{sessionId}/subscriptions`
152012
152184
  .replace('{sessionId}', encodeURIComponent(String(sessionId)));
152013
152185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
152014
152186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -152059,10 +152231,55 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
152059
152231
  };
152060
152232
  },
152061
152233
  /**
152062
- * Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
152063
- * @summary List a stream\'s broadcast sessions
152234
+ * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, ordered for chronological display; requires read permission on streams.
152235
+ * @summary List a stream session\'s chat messages
152064
152236
  * @param {string} streamId The stream identifier
152065
- * @param {string} [status] Filter by status
152237
+ * @param {string} sessionId The session identifier
152238
+ * @param {*} [options] Override http request option.
152239
+ * @throws {RequiredError}
152240
+ */
152241
+ getStreamSessionChat: async (streamId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152242
+ // verify required parameter 'streamId' is not null or undefined
152243
+ assertParamExists('getStreamSessionChat', 'streamId', streamId)
152244
+ // verify required parameter 'sessionId' is not null or undefined
152245
+ assertParamExists('getStreamSessionChat', 'sessionId', sessionId)
152246
+ const localVarPath = `/streams/{streamId}/sessions/{sessionId}/chat`
152247
+ .replace('{streamId}', encodeURIComponent(String(streamId)))
152248
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
152249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152251
+ let baseOptions;
152252
+ if (configuration) {
152253
+ baseOptions = configuration.baseOptions;
152254
+ }
152255
+
152256
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
152257
+ const localVarHeaderParameter = {} as any;
152258
+ const localVarQueryParameter = {} as any;
152259
+
152260
+ // authentication ApiKeyAuth required
152261
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
152262
+
152263
+ // authentication OrganizationId required
152264
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152265
+
152266
+ localVarHeaderParameter['Accept'] = 'application/json';
152267
+
152268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152270
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152271
+
152272
+ return {
152273
+ url: toPathString(localVarUrlObj),
152274
+ options: localVarRequestOptions,
152275
+ };
152276
+ },
152277
+ /**
152278
+ * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, each with its connection details, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
152279
+ * @summary List a stream session\'s viewer connections
152280
+ * @param {string} streamId The stream identifier
152281
+ * @param {string} sessionId The session identifier
152282
+ * @param {boolean} [active] Filter by active
152066
152283
  * @param {number} [page] Page number
152067
152284
  * @param {number} [pageSize] Number of items per page
152068
152285
  * @param {string} [orderBy] Field to order by
@@ -152070,11 +152287,14 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
152070
152287
  * @param {*} [options] Override http request option.
152071
152288
  * @throws {RequiredError}
152072
152289
  */
152073
- getStreamSessions: async (streamId: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152290
+ getStreamSessionSubscriptions: async (streamId: string, sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152074
152291
  // verify required parameter 'streamId' is not null or undefined
152075
- assertParamExists('getStreamSessions', 'streamId', streamId)
152076
- const localVarPath = `/streams/{streamId}/sessions`
152077
- .replace('{streamId}', encodeURIComponent(String(streamId)));
152292
+ assertParamExists('getStreamSessionSubscriptions', 'streamId', streamId)
152293
+ // verify required parameter 'sessionId' is not null or undefined
152294
+ assertParamExists('getStreamSessionSubscriptions', 'sessionId', sessionId)
152295
+ const localVarPath = `/streams/{streamId}/sessions/{sessionId}/subscriptions`
152296
+ .replace('{streamId}', encodeURIComponent(String(streamId)))
152297
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
152078
152298
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
152079
152299
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152080
152300
  let baseOptions;
@@ -152092,8 +152312,8 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
152092
152312
  // authentication OrganizationId required
152093
152313
  await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152094
152314
 
152095
- if (status !== undefined) {
152096
- localVarQueryParameter['status'] = status;
152315
+ if (active !== undefined) {
152316
+ localVarQueryParameter['active'] = active;
152097
152317
  }
152098
152318
 
152099
152319
  if (page !== undefined) {
@@ -152118,6 +152338,116 @@ export const StreamsSessionsApiAxiosParamCreator = function (configuration?: Con
152118
152338
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152119
152339
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152120
152340
 
152341
+ return {
152342
+ url: toPathString(localVarUrlObj),
152343
+ options: localVarRequestOptions,
152344
+ };
152345
+ },
152346
+ /**
152347
+ * Returns a paginated list of broadcast sessions for the given stream input, filterable by session status; requires read permission on streams.
152348
+ * @summary List a stream\'s broadcast sessions
152349
+ * @param {string} streamId The stream identifier
152350
+ * @param {string} [status] Filter by status
152351
+ * @param {number} [page] Page number
152352
+ * @param {number} [pageSize] Number of items per page
152353
+ * @param {string} [orderBy] Field to order by
152354
+ * @param {string} [search] Search query
152355
+ * @param {*} [options] Override http request option.
152356
+ * @throws {RequiredError}
152357
+ */
152358
+ getStreamSessions: async (streamId: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152359
+ // verify required parameter 'streamId' is not null or undefined
152360
+ assertParamExists('getStreamSessions', 'streamId', streamId)
152361
+ const localVarPath = `/streams/{streamId}/sessions`
152362
+ .replace('{streamId}', encodeURIComponent(String(streamId)));
152363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152364
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152365
+ let baseOptions;
152366
+ if (configuration) {
152367
+ baseOptions = configuration.baseOptions;
152368
+ }
152369
+
152370
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
152371
+ const localVarHeaderParameter = {} as any;
152372
+ const localVarQueryParameter = {} as any;
152373
+
152374
+ // authentication ApiKeyAuth required
152375
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
152376
+
152377
+ // authentication OrganizationId required
152378
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152379
+
152380
+ if (status !== undefined) {
152381
+ localVarQueryParameter['status'] = status;
152382
+ }
152383
+
152384
+ if (page !== undefined) {
152385
+ localVarQueryParameter['page'] = page;
152386
+ }
152387
+
152388
+ if (pageSize !== undefined) {
152389
+ localVarQueryParameter['pageSize'] = pageSize;
152390
+ }
152391
+
152392
+ if (orderBy !== undefined) {
152393
+ localVarQueryParameter['orderBy'] = orderBy;
152394
+ }
152395
+
152396
+ if (search !== undefined) {
152397
+ localVarQueryParameter['search'] = search;
152398
+ }
152399
+
152400
+ localVarHeaderParameter['Accept'] = 'application/json';
152401
+
152402
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152404
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152405
+
152406
+ return {
152407
+ url: toPathString(localVarUrlObj),
152408
+ options: localVarRequestOptions,
152409
+ };
152410
+ },
152411
+ /**
152412
+ * Renames a broadcast session (sessionId) or changes the event and event session it belongs to; eventSessionId requires eventId, and changing eventId without an eventSessionId clears the event session; requires the read and update permissions on streams.
152413
+ * @summary Update a stream session
152414
+ * @param {string} sessionId The session identifier
152415
+ * @param {StreamSessionUpdateInputs} streamSessionUpdateInputs
152416
+ * @param {*} [options] Override http request option.
152417
+ * @throws {RequiredError}
152418
+ */
152419
+ updateStreamSession: async (sessionId: string, streamSessionUpdateInputs: StreamSessionUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152420
+ // verify required parameter 'sessionId' is not null or undefined
152421
+ assertParamExists('updateStreamSession', 'sessionId', sessionId)
152422
+ // verify required parameter 'streamSessionUpdateInputs' is not null or undefined
152423
+ assertParamExists('updateStreamSession', 'streamSessionUpdateInputs', streamSessionUpdateInputs)
152424
+ const localVarPath = `/streams/sessions/{sessionId}`
152425
+ .replace('{sessionId}', encodeURIComponent(String(sessionId)));
152426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152427
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152428
+ let baseOptions;
152429
+ if (configuration) {
152430
+ baseOptions = configuration.baseOptions;
152431
+ }
152432
+
152433
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
152434
+ const localVarHeaderParameter = {} as any;
152435
+ const localVarQueryParameter = {} as any;
152436
+
152437
+ // authentication ApiKeyAuth required
152438
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
152439
+
152440
+ // authentication OrganizationId required
152441
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
152442
+
152443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
152444
+ localVarHeaderParameter['Accept'] = 'application/json';
152445
+
152446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152448
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152449
+ localVarRequestOptions.data = serializeDataIfNeeded(streamSessionUpdateInputs, localVarRequestOptions, configuration)
152450
+
152121
152451
  return {
152122
152452
  url: toPathString(localVarUrlObj),
152123
152453
  options: localVarRequestOptions,
@@ -152160,6 +152490,39 @@ export const StreamsSessionsApiFp = function(configuration?: Configuration) {
152160
152490
  const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.exportStreamSession']?.[localVarOperationServerIndex]?.url;
152161
152491
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152162
152492
  },
152493
+ /**
152494
+ * Queues an asynchronous export job for the given stream session (sessionId), whether or not its stream input still exists, emailing the requesting user a download when the export completes; requires the read permission on streams.
152495
+ * @summary Request an export of a stream session by session id
152496
+ * @param {string} sessionId The session identifier
152497
+ * @param {*} [options] Override http request option.
152498
+ * @throws {RequiredError}
152499
+ */
152500
+ async exportStreamSessionById(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
152501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportStreamSessionById(sessionId, options);
152502
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152503
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.exportStreamSessionById']?.[localVarOperationServerIndex]?.url;
152504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152505
+ },
152506
+ /**
152507
+ * Returns a paginated list of the organization\'s broadcast sessions across every stream input, including sessions whose input has been deleted, filterable by stream input, event, event session and status and searchable by session or input name; requires read permission on streams.
152508
+ * @summary List stream sessions across all stream inputs
152509
+ * @param {string} [streamId] Filter by streamId
152510
+ * @param {string} [eventId] Filter by eventId
152511
+ * @param {string} [eventSessionId] Filter by eventSessionId
152512
+ * @param {string} [status] Filter by status
152513
+ * @param {number} [page] Page number
152514
+ * @param {number} [pageSize] Number of items per page
152515
+ * @param {string} [orderBy] Field to order by
152516
+ * @param {string} [search] Search query
152517
+ * @param {*} [options] Override http request option.
152518
+ * @throws {RequiredError}
152519
+ */
152520
+ async getAllStreamSessions(streamId?: string, eventId?: string, eventSessionId?: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllStreamSessions200Response>> {
152521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllStreamSessions(streamId, eventId, eventSessionId, status, page, pageSize, orderBy, search, options);
152522
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152523
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getAllStreamSessions']?.[localVarOperationServerIndex]?.url;
152524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152525
+ },
152163
152526
  /**
152164
152527
  * Returns details for one broadcast session of the given stream input, such as its status and timing information; requires read permission on streams.
152165
152528
  * @summary Get a single stream session
@@ -152168,12 +152531,56 @@ export const StreamsSessionsApiFp = function(configuration?: Configuration) {
152168
152531
  * @param {*} [options] Override http request option.
152169
152532
  * @throws {RequiredError}
152170
152533
  */
152171
- async getStreamSession(streamId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSession200Response>> {
152534
+ async getStreamSession(streamId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionById200Response>> {
152172
152535
  const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSession(streamId, sessionId, options);
152173
152536
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152174
152537
  const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSession']?.[localVarOperationServerIndex]?.url;
152175
152538
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152176
152539
  },
152540
+ /**
152541
+ * Returns one broadcast session by its id alone, whether or not its stream input still exists, with its name, status, timing and the event and event session it belongs to; requires read permission on streams.
152542
+ * @summary Get a stream session by id
152543
+ * @param {string} sessionId The session identifier
152544
+ * @param {*} [options] Override http request option.
152545
+ * @throws {RequiredError}
152546
+ */
152547
+ async getStreamSessionById(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionById200Response>> {
152548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessionById(sessionId, options);
152549
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152550
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessionById']?.[localVarOperationServerIndex]?.url;
152551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152552
+ },
152553
+ /**
152554
+ * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, whether or not its stream input still exists; requires read permission on streams.
152555
+ * @summary List a stream session\'s chat messages by session id
152556
+ * @param {string} sessionId The session identifier
152557
+ * @param {*} [options] Override http request option.
152558
+ * @throws {RequiredError}
152559
+ */
152560
+ async getStreamSessionByIdChat(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionByIdChat200Response>> {
152561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessionByIdChat(sessionId, options);
152562
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152563
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessionByIdChat']?.[localVarOperationServerIndex]?.url;
152564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152565
+ },
152566
+ /**
152567
+ * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, whether or not its stream input still exists, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
152568
+ * @summary List a stream session\'s viewer connections by session id
152569
+ * @param {string} sessionId The session identifier
152570
+ * @param {boolean} [active] Filter by active
152571
+ * @param {number} [page] Page number
152572
+ * @param {number} [pageSize] Number of items per page
152573
+ * @param {string} [orderBy] Field to order by
152574
+ * @param {string} [search] Search query
152575
+ * @param {*} [options] Override http request option.
152576
+ * @throws {RequiredError}
152577
+ */
152578
+ async getStreamSessionByIdSubscriptions(sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionByIdSubscriptions200Response>> {
152579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessionByIdSubscriptions(sessionId, active, page, pageSize, orderBy, search, options);
152580
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152581
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessionByIdSubscriptions']?.[localVarOperationServerIndex]?.url;
152582
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152583
+ },
152177
152584
  /**
152178
152585
  * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, ordered for chronological display; requires read permission on streams.
152179
152586
  * @summary List a stream session\'s chat messages
@@ -152182,7 +152589,7 @@ export const StreamsSessionsApiFp = function(configuration?: Configuration) {
152182
152589
  * @param {*} [options] Override http request option.
152183
152590
  * @throws {RequiredError}
152184
152591
  */
152185
- async getStreamSessionChat(streamId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionChat200Response>> {
152592
+ async getStreamSessionChat(streamId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionByIdChat200Response>> {
152186
152593
  const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessionChat(streamId, sessionId, options);
152187
152594
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152188
152595
  const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessionChat']?.[localVarOperationServerIndex]?.url;
@@ -152201,7 +152608,7 @@ export const StreamsSessionsApiFp = function(configuration?: Configuration) {
152201
152608
  * @param {*} [options] Override http request option.
152202
152609
  * @throws {RequiredError}
152203
152610
  */
152204
- async getStreamSessionSubscriptions(streamId: string, sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionSubscriptions200Response>> {
152611
+ async getStreamSessionSubscriptions(streamId: string, sessionId: string, active?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionByIdSubscriptions200Response>> {
152205
152612
  const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessionSubscriptions(streamId, sessionId, active, page, pageSize, orderBy, search, options);
152206
152613
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152207
152614
  const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessionSubscriptions']?.[localVarOperationServerIndex]?.url;
@@ -152219,12 +152626,26 @@ export const StreamsSessionsApiFp = function(configuration?: Configuration) {
152219
152626
  * @param {*} [options] Override http request option.
152220
152627
  * @throws {RequiredError}
152221
152628
  */
152222
- async getStreamSessions(streamId: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessions200Response>> {
152629
+ async getStreamSessions(streamId: string, status?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllStreamSessions200Response>> {
152223
152630
  const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamSessions(streamId, status, page, pageSize, orderBy, search, options);
152224
152631
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152225
152632
  const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.getStreamSessions']?.[localVarOperationServerIndex]?.url;
152226
152633
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152227
152634
  },
152635
+ /**
152636
+ * Renames a broadcast session (sessionId) or changes the event and event session it belongs to; eventSessionId requires eventId, and changing eventId without an eventSessionId clears the event session; requires the read and update permissions on streams.
152637
+ * @summary Update a stream session
152638
+ * @param {string} sessionId The session identifier
152639
+ * @param {StreamSessionUpdateInputs} streamSessionUpdateInputs
152640
+ * @param {*} [options] Override http request option.
152641
+ * @throws {RequiredError}
152642
+ */
152643
+ async updateStreamSession(sessionId: string, streamSessionUpdateInputs: StreamSessionUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamSessionById200Response>> {
152644
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateStreamSession(sessionId, streamSessionUpdateInputs, options);
152645
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152646
+ const localVarOperationServerBasePath = operationServerMap['StreamsSessionsApi.updateStreamSession']?.[localVarOperationServerIndex]?.url;
152647
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152648
+ },
152228
152649
  }
152229
152650
  };
152230
152651
 
@@ -152254,6 +152675,26 @@ export const StreamsSessionsApiFactory = function (configuration?: Configuration
152254
152675
  exportStreamSession(requestParameters: StreamsSessionsApiExportStreamSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
152255
152676
  return localVarFp.exportStreamSession(requestParameters.streamId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
152256
152677
  },
152678
+ /**
152679
+ * Queues an asynchronous export job for the given stream session (sessionId), whether or not its stream input still exists, emailing the requesting user a download when the export completes; requires the read permission on streams.
152680
+ * @summary Request an export of a stream session by session id
152681
+ * @param {StreamsSessionsApiExportStreamSessionByIdRequest} requestParameters Request parameters.
152682
+ * @param {*} [options] Override http request option.
152683
+ * @throws {RequiredError}
152684
+ */
152685
+ exportStreamSessionById(requestParameters: StreamsSessionsApiExportStreamSessionByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
152686
+ return localVarFp.exportStreamSessionById(requestParameters.sessionId, options).then((request) => request(axios, basePath));
152687
+ },
152688
+ /**
152689
+ * Returns a paginated list of the organization\'s broadcast sessions across every stream input, including sessions whose input has been deleted, filterable by stream input, event, event session and status and searchable by session or input name; requires read permission on streams.
152690
+ * @summary List stream sessions across all stream inputs
152691
+ * @param {StreamsSessionsApiGetAllStreamSessionsRequest} requestParameters Request parameters.
152692
+ * @param {*} [options] Override http request option.
152693
+ * @throws {RequiredError}
152694
+ */
152695
+ getAllStreamSessions(requestParameters: StreamsSessionsApiGetAllStreamSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAllStreamSessions200Response> {
152696
+ return localVarFp.getAllStreamSessions(requestParameters.streamId, requestParameters.eventId, requestParameters.eventSessionId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152697
+ },
152257
152698
  /**
152258
152699
  * Returns details for one broadcast session of the given stream input, such as its status and timing information; requires read permission on streams.
152259
152700
  * @summary Get a single stream session
@@ -152261,9 +152702,39 @@ export const StreamsSessionsApiFactory = function (configuration?: Configuration
152261
152702
  * @param {*} [options] Override http request option.
152262
152703
  * @throws {RequiredError}
152263
152704
  */
152264
- getStreamSession(requestParameters: StreamsSessionsApiGetStreamSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSession200Response> {
152705
+ getStreamSession(requestParameters: StreamsSessionsApiGetStreamSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionById200Response> {
152265
152706
  return localVarFp.getStreamSession(requestParameters.streamId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
152266
152707
  },
152708
+ /**
152709
+ * Returns one broadcast session by its id alone, whether or not its stream input still exists, with its name, status, timing and the event and event session it belongs to; requires read permission on streams.
152710
+ * @summary Get a stream session by id
152711
+ * @param {StreamsSessionsApiGetStreamSessionByIdRequest} requestParameters Request parameters.
152712
+ * @param {*} [options] Override http request option.
152713
+ * @throws {RequiredError}
152714
+ */
152715
+ getStreamSessionById(requestParameters: StreamsSessionsApiGetStreamSessionByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionById200Response> {
152716
+ return localVarFp.getStreamSessionById(requestParameters.sessionId, options).then((request) => request(axios, basePath));
152717
+ },
152718
+ /**
152719
+ * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, whether or not its stream input still exists; requires read permission on streams.
152720
+ * @summary List a stream session\'s chat messages by session id
152721
+ * @param {StreamsSessionsApiGetStreamSessionByIdChatRequest} requestParameters Request parameters.
152722
+ * @param {*} [options] Override http request option.
152723
+ * @throws {RequiredError}
152724
+ */
152725
+ getStreamSessionByIdChat(requestParameters: StreamsSessionsApiGetStreamSessionByIdChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionByIdChat200Response> {
152726
+ return localVarFp.getStreamSessionByIdChat(requestParameters.sessionId, options).then((request) => request(axios, basePath));
152727
+ },
152728
+ /**
152729
+ * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, whether or not its stream input still exists, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
152730
+ * @summary List a stream session\'s viewer connections by session id
152731
+ * @param {StreamsSessionsApiGetStreamSessionByIdSubscriptionsRequest} requestParameters Request parameters.
152732
+ * @param {*} [options] Override http request option.
152733
+ * @throws {RequiredError}
152734
+ */
152735
+ getStreamSessionByIdSubscriptions(requestParameters: StreamsSessionsApiGetStreamSessionByIdSubscriptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionByIdSubscriptions200Response> {
152736
+ return localVarFp.getStreamSessionByIdSubscriptions(requestParameters.sessionId, requestParameters.active, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152737
+ },
152267
152738
  /**
152268
152739
  * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, ordered for chronological display; requires read permission on streams.
152269
152740
  * @summary List a stream session\'s chat messages
@@ -152271,7 +152742,7 @@ export const StreamsSessionsApiFactory = function (configuration?: Configuration
152271
152742
  * @param {*} [options] Override http request option.
152272
152743
  * @throws {RequiredError}
152273
152744
  */
152274
- getStreamSessionChat(requestParameters: StreamsSessionsApiGetStreamSessionChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionChat200Response> {
152745
+ getStreamSessionChat(requestParameters: StreamsSessionsApiGetStreamSessionChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionByIdChat200Response> {
152275
152746
  return localVarFp.getStreamSessionChat(requestParameters.streamId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
152276
152747
  },
152277
152748
  /**
@@ -152281,7 +152752,7 @@ export const StreamsSessionsApiFactory = function (configuration?: Configuration
152281
152752
  * @param {*} [options] Override http request option.
152282
152753
  * @throws {RequiredError}
152283
152754
  */
152284
- getStreamSessionSubscriptions(requestParameters: StreamsSessionsApiGetStreamSessionSubscriptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionSubscriptions200Response> {
152755
+ getStreamSessionSubscriptions(requestParameters: StreamsSessionsApiGetStreamSessionSubscriptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionByIdSubscriptions200Response> {
152285
152756
  return localVarFp.getStreamSessionSubscriptions(requestParameters.streamId, requestParameters.sessionId, requestParameters.active, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152286
152757
  },
152287
152758
  /**
@@ -152291,9 +152762,19 @@ export const StreamsSessionsApiFactory = function (configuration?: Configuration
152291
152762
  * @param {*} [options] Override http request option.
152292
152763
  * @throws {RequiredError}
152293
152764
  */
152294
- getStreamSessions(requestParameters: StreamsSessionsApiGetStreamSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessions200Response> {
152765
+ getStreamSessions(requestParameters: StreamsSessionsApiGetStreamSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllStreamSessions200Response> {
152295
152766
  return localVarFp.getStreamSessions(requestParameters.streamId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152296
152767
  },
152768
+ /**
152769
+ * Renames a broadcast session (sessionId) or changes the event and event session it belongs to; eventSessionId requires eventId, and changing eventId without an eventSessionId clears the event session; requires the read and update permissions on streams.
152770
+ * @summary Update a stream session
152771
+ * @param {StreamsSessionsApiUpdateStreamSessionRequest} requestParameters Request parameters.
152772
+ * @param {*} [options] Override http request option.
152773
+ * @throws {RequiredError}
152774
+ */
152775
+ updateStreamSession(requestParameters: StreamsSessionsApiUpdateStreamSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamSessionById200Response> {
152776
+ return localVarFp.updateStreamSession(requestParameters.sessionId, requestParameters.streamSessionUpdateInputs, options).then((request) => request(axios, basePath));
152777
+ },
152297
152778
  };
152298
152779
  };
152299
152780
 
@@ -152327,6 +152808,61 @@ export interface StreamsSessionsApiExportStreamSessionRequest {
152327
152808
  readonly sessionId: string
152328
152809
  }
152329
152810
 
152811
+ /**
152812
+ * Request parameters for exportStreamSessionById operation in StreamsSessionsApi.
152813
+ */
152814
+ export interface StreamsSessionsApiExportStreamSessionByIdRequest {
152815
+ /**
152816
+ * The session identifier
152817
+ */
152818
+ readonly sessionId: string
152819
+ }
152820
+
152821
+ /**
152822
+ * Request parameters for getAllStreamSessions operation in StreamsSessionsApi.
152823
+ */
152824
+ export interface StreamsSessionsApiGetAllStreamSessionsRequest {
152825
+ /**
152826
+ * Filter by streamId
152827
+ */
152828
+ readonly streamId?: string
152829
+
152830
+ /**
152831
+ * Filter by eventId
152832
+ */
152833
+ readonly eventId?: string
152834
+
152835
+ /**
152836
+ * Filter by eventSessionId
152837
+ */
152838
+ readonly eventSessionId?: string
152839
+
152840
+ /**
152841
+ * Filter by status
152842
+ */
152843
+ readonly status?: string
152844
+
152845
+ /**
152846
+ * Page number
152847
+ */
152848
+ readonly page?: number
152849
+
152850
+ /**
152851
+ * Number of items per page
152852
+ */
152853
+ readonly pageSize?: number
152854
+
152855
+ /**
152856
+ * Field to order by
152857
+ */
152858
+ readonly orderBy?: string
152859
+
152860
+ /**
152861
+ * Search query
152862
+ */
152863
+ readonly search?: string
152864
+ }
152865
+
152330
152866
  /**
152331
152867
  * Request parameters for getStreamSession operation in StreamsSessionsApi.
152332
152868
  */
@@ -152342,6 +152878,61 @@ export interface StreamsSessionsApiGetStreamSessionRequest {
152342
152878
  readonly sessionId: string
152343
152879
  }
152344
152880
 
152881
+ /**
152882
+ * Request parameters for getStreamSessionById operation in StreamsSessionsApi.
152883
+ */
152884
+ export interface StreamsSessionsApiGetStreamSessionByIdRequest {
152885
+ /**
152886
+ * The session identifier
152887
+ */
152888
+ readonly sessionId: string
152889
+ }
152890
+
152891
+ /**
152892
+ * Request parameters for getStreamSessionByIdChat operation in StreamsSessionsApi.
152893
+ */
152894
+ export interface StreamsSessionsApiGetStreamSessionByIdChatRequest {
152895
+ /**
152896
+ * The session identifier
152897
+ */
152898
+ readonly sessionId: string
152899
+ }
152900
+
152901
+ /**
152902
+ * Request parameters for getStreamSessionByIdSubscriptions operation in StreamsSessionsApi.
152903
+ */
152904
+ export interface StreamsSessionsApiGetStreamSessionByIdSubscriptionsRequest {
152905
+ /**
152906
+ * The session identifier
152907
+ */
152908
+ readonly sessionId: string
152909
+
152910
+ /**
152911
+ * Filter by active
152912
+ */
152913
+ readonly active?: boolean
152914
+
152915
+ /**
152916
+ * Page number
152917
+ */
152918
+ readonly page?: number
152919
+
152920
+ /**
152921
+ * Number of items per page
152922
+ */
152923
+ readonly pageSize?: number
152924
+
152925
+ /**
152926
+ * Field to order by
152927
+ */
152928
+ readonly orderBy?: string
152929
+
152930
+ /**
152931
+ * Search query
152932
+ */
152933
+ readonly search?: string
152934
+ }
152935
+
152345
152936
  /**
152346
152937
  * Request parameters for getStreamSessionChat operation in StreamsSessionsApi.
152347
152938
  */
@@ -152432,6 +153023,18 @@ export interface StreamsSessionsApiGetStreamSessionsRequest {
152432
153023
  readonly search?: string
152433
153024
  }
152434
153025
 
153026
+ /**
153027
+ * Request parameters for updateStreamSession operation in StreamsSessionsApi.
153028
+ */
153029
+ export interface StreamsSessionsApiUpdateStreamSessionRequest {
153030
+ /**
153031
+ * The session identifier
153032
+ */
153033
+ readonly sessionId: string
153034
+
153035
+ readonly streamSessionUpdateInputs: StreamSessionUpdateInputs
153036
+ }
153037
+
152435
153038
  /**
152436
153039
  * StreamsSessionsApi - object-oriented interface
152437
153040
  */
@@ -152458,6 +153061,28 @@ export class StreamsSessionsApi extends BaseAPI {
152458
153061
  return StreamsSessionsApiFp(this.configuration).exportStreamSession(requestParameters.streamId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
152459
153062
  }
152460
153063
 
153064
+ /**
153065
+ * Queues an asynchronous export job for the given stream session (sessionId), whether or not its stream input still exists, emailing the requesting user a download when the export completes; requires the read permission on streams.
153066
+ * @summary Request an export of a stream session by session id
153067
+ * @param {StreamsSessionsApiExportStreamSessionByIdRequest} requestParameters Request parameters.
153068
+ * @param {*} [options] Override http request option.
153069
+ * @throws {RequiredError}
153070
+ */
153071
+ public exportStreamSessionById(requestParameters: StreamsSessionsApiExportStreamSessionByIdRequest, options?: RawAxiosRequestConfig) {
153072
+ return StreamsSessionsApiFp(this.configuration).exportStreamSessionById(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
153073
+ }
153074
+
153075
+ /**
153076
+ * Returns a paginated list of the organization\'s broadcast sessions across every stream input, including sessions whose input has been deleted, filterable by stream input, event, event session and status and searchable by session or input name; requires read permission on streams.
153077
+ * @summary List stream sessions across all stream inputs
153078
+ * @param {StreamsSessionsApiGetAllStreamSessionsRequest} requestParameters Request parameters.
153079
+ * @param {*} [options] Override http request option.
153080
+ * @throws {RequiredError}
153081
+ */
153082
+ public getAllStreamSessions(requestParameters: StreamsSessionsApiGetAllStreamSessionsRequest = {}, options?: RawAxiosRequestConfig) {
153083
+ return StreamsSessionsApiFp(this.configuration).getAllStreamSessions(requestParameters.streamId, requestParameters.eventId, requestParameters.eventSessionId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
153084
+ }
153085
+
152461
153086
  /**
152462
153087
  * Returns details for one broadcast session of the given stream input, such as its status and timing information; requires read permission on streams.
152463
153088
  * @summary Get a single stream session
@@ -152469,6 +153094,39 @@ export class StreamsSessionsApi extends BaseAPI {
152469
153094
  return StreamsSessionsApiFp(this.configuration).getStreamSession(requestParameters.streamId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
152470
153095
  }
152471
153096
 
153097
+ /**
153098
+ * Returns one broadcast session by its id alone, whether or not its stream input still exists, with its name, status, timing and the event and event session it belongs to; requires read permission on streams.
153099
+ * @summary Get a stream session by id
153100
+ * @param {StreamsSessionsApiGetStreamSessionByIdRequest} requestParameters Request parameters.
153101
+ * @param {*} [options] Override http request option.
153102
+ * @throws {RequiredError}
153103
+ */
153104
+ public getStreamSessionById(requestParameters: StreamsSessionsApiGetStreamSessionByIdRequest, options?: RawAxiosRequestConfig) {
153105
+ return StreamsSessionsApiFp(this.configuration).getStreamSessionById(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
153106
+ }
153107
+
153108
+ /**
153109
+ * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, whether or not its stream input still exists; requires read permission on streams.
153110
+ * @summary List a stream session\'s chat messages by session id
153111
+ * @param {StreamsSessionsApiGetStreamSessionByIdChatRequest} requestParameters Request parameters.
153112
+ * @param {*} [options] Override http request option.
153113
+ * @throws {RequiredError}
153114
+ */
153115
+ public getStreamSessionByIdChat(requestParameters: StreamsSessionsApiGetStreamSessionByIdChatRequest, options?: RawAxiosRequestConfig) {
153116
+ return StreamsSessionsApiFp(this.configuration).getStreamSessionByIdChat(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
153117
+ }
153118
+
153119
+ /**
153120
+ * Returns a paginated list of viewer WebSocket subscriptions for the given stream session, whether or not its stream input still exists, optionally filtered to only active (not yet disconnected) subscriptions; requires read permission on streams.
153121
+ * @summary List a stream session\'s viewer connections by session id
153122
+ * @param {StreamsSessionsApiGetStreamSessionByIdSubscriptionsRequest} requestParameters Request parameters.
153123
+ * @param {*} [options] Override http request option.
153124
+ * @throws {RequiredError}
153125
+ */
153126
+ public getStreamSessionByIdSubscriptions(requestParameters: StreamsSessionsApiGetStreamSessionByIdSubscriptionsRequest, options?: RawAxiosRequestConfig) {
153127
+ return StreamsSessionsApiFp(this.configuration).getStreamSessionByIdSubscriptions(requestParameters.sessionId, requestParameters.active, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
153128
+ }
153129
+
152472
153130
  /**
152473
153131
  * Returns a cursor-paginated list of the most recent chat messages sent during the given stream session, ordered for chronological display; requires read permission on streams.
152474
153132
  * @summary List a stream session\'s chat messages
@@ -152501,6 +153159,17 @@ export class StreamsSessionsApi extends BaseAPI {
152501
153159
  public getStreamSessions(requestParameters: StreamsSessionsApiGetStreamSessionsRequest, options?: RawAxiosRequestConfig) {
152502
153160
  return StreamsSessionsApiFp(this.configuration).getStreamSessions(requestParameters.streamId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
152503
153161
  }
153162
+
153163
+ /**
153164
+ * Renames a broadcast session (sessionId) or changes the event and event session it belongs to; eventSessionId requires eventId, and changing eventId without an eventSessionId clears the event session; requires the read and update permissions on streams.
153165
+ * @summary Update a stream session
153166
+ * @param {StreamsSessionsApiUpdateStreamSessionRequest} requestParameters Request parameters.
153167
+ * @param {*} [options] Override http request option.
153168
+ * @throws {RequiredError}
153169
+ */
153170
+ public updateStreamSession(requestParameters: StreamsSessionsApiUpdateStreamSessionRequest, options?: RawAxiosRequestConfig) {
153171
+ return StreamsSessionsApiFp(this.configuration).updateStreamSession(requestParameters.sessionId, requestParameters.streamSessionUpdateInputs, options).then((request) => request(this.axios, this.basePath));
153172
+ }
152504
153173
  }
152505
153174
 
152506
153175