@connectedxm/admin-sdk 16.13.0 → 16.14.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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/AdminApi.ts +3 -0
  3. package/README.md +2 -2
  4. package/api.ts +680 -10
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +1 -1
  8. package/dist/AdminApi.d.ts +2 -1
  9. package/dist/AdminApi.js +1 -0
  10. package/dist/api.d.ts +391 -7
  11. package/dist/api.js +481 -39
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +1 -1
  14. package/dist/common.d.ts +1 -1
  15. package/dist/common.js +1 -1
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +1 -1
  18. package/dist/esm/AdminApi.d.ts +2 -1
  19. package/dist/esm/AdminApi.js +2 -1
  20. package/dist/esm/api.d.ts +391 -7
  21. package/dist/esm/api.js +448 -10
  22. package/dist/esm/base.d.ts +1 -1
  23. package/dist/esm/base.js +1 -1
  24. package/dist/esm/common.d.ts +1 -1
  25. package/dist/esm/common.js +1 -1
  26. package/dist/esm/configuration.d.ts +1 -1
  27. package/dist/esm/configuration.js +1 -1
  28. package/docs/BaseReplay.md +38 -0
  29. package/docs/BaseReplaySession.md +24 -0
  30. package/docs/BaseStreamInput.md +2 -0
  31. package/docs/BaseVideo.md +4 -0
  32. package/docs/CreateReplay200Response.md +24 -0
  33. package/docs/EventSession.md +4 -0
  34. package/docs/EventSessionAllOfCount.md +20 -0
  35. package/docs/EventSessionCreateInputs.md +2 -0
  36. package/docs/EventSessionUpdateInputs.md +2 -0
  37. package/docs/GetReplays200Response.md +26 -0
  38. package/docs/Replay.md +40 -0
  39. package/docs/ReplayCreateInputs.md +26 -0
  40. package/docs/ReplayUpdateInputs.md +24 -0
  41. package/docs/ReplayVideo.md +50 -0
  42. package/docs/StreamInput.md +8 -0
  43. package/docs/StreamInputCreateInputs.md +2 -0
  44. package/docs/StreamInputUpdateInputs.md +2 -0
  45. package/docs/StreamsApi.md +7 -1
  46. package/docs/StreamsReplaysApi.md +293 -0
  47. package/docs/Video.md +10 -0
  48. package/docs/VideoAllOfStream.md +22 -0
  49. package/docs/VideoAllOfStreamSession.md +22 -0
  50. package/package.json +1 -1
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: 16.13.0
7
+ * The version of the OpenAPI document: 16.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2858,6 +2858,23 @@ export interface BaseRegistrationSectionQuestion {
2858
2858
  'question': BaseRegistrationQuestion;
2859
2859
  'sortOrder': number;
2860
2860
  }
2861
+ export interface BaseReplay {
2862
+ 'id': string;
2863
+ 'videoId': string;
2864
+ 'sessionId': string | null;
2865
+ 'eventId': string | null;
2866
+ 'groupId': string | null;
2867
+ 'session': BaseReplaySession | null;
2868
+ 'event': VideoAllOfStream | null;
2869
+ 'group': VideoAllOfStream | null;
2870
+ 'createdAt': string;
2871
+ 'updatedAt': string;
2872
+ }
2873
+ export interface BaseReplaySession {
2874
+ 'id': string;
2875
+ 'name': string;
2876
+ 'eventId': string;
2877
+ }
2861
2878
  export interface BaseReportExport {
2862
2879
  'id': string;
2863
2880
  'status': ExportStatus;
@@ -3017,6 +3034,7 @@ export interface BaseStreamInput {
3017
3034
  'webRTC': boolean;
3018
3035
  'webRTCPlaybackUrl': string | null;
3019
3036
  'dvrEnabled': boolean;
3037
+ 'allowReplays': boolean;
3020
3038
  'connected': boolean;
3021
3039
  }
3022
3040
  export interface BaseStreamSession {
@@ -3304,6 +3322,8 @@ export interface BaseVideo {
3304
3322
  'previewUrl': string | null;
3305
3323
  'readyToStream': boolean;
3306
3324
  'duration': number | null;
3325
+ 'streamId': string | null;
3326
+ 'streamSessionId': string | null;
3307
3327
  'createdAt': string;
3308
3328
  }
3309
3329
 
@@ -5054,6 +5074,16 @@ export enum CreatePreset200ResponseStatusEnum {
5054
5074
  Ok = 'ok'
5055
5075
  }
5056
5076
 
5077
+ export interface CreateReplay200Response {
5078
+ 'status': CreateReplay200ResponseStatusEnum;
5079
+ 'message': string;
5080
+ 'data': Replay;
5081
+ }
5082
+
5083
+ export enum CreateReplay200ResponseStatusEnum {
5084
+ Ok = 'ok'
5085
+ }
5086
+
5057
5087
  export interface CreateRoom200Response {
5058
5088
  'status': CreateRoom200ResponseStatusEnum;
5059
5089
  'message': string;
@@ -6800,6 +6830,8 @@ export interface EventSession {
6800
6830
  'allowedTiers': Array<BaseTier>;
6801
6831
  'continuousScanning': boolean;
6802
6832
  'scanType': OnSiteScanType;
6833
+ 'livestreamed': boolean;
6834
+ '_count'?: EventSessionAllOfCount;
6803
6835
  }
6804
6836
 
6805
6837
 
@@ -6821,6 +6853,9 @@ export interface EventSessionAccessUpdateInputs {
6821
6853
  }
6822
6854
 
6823
6855
 
6856
+ export interface EventSessionAllOfCount {
6857
+ 'replays': number;
6858
+ }
6824
6859
  export interface EventSessionCloneOptions {
6825
6860
  'name'?: string;
6826
6861
  'startTime'?: string;
@@ -6839,6 +6874,7 @@ export interface EventSessionCreateInputs {
6839
6874
  'featured'?: boolean;
6840
6875
  'sortOrder'?: number | null;
6841
6876
  'registrationEnabled'?: boolean;
6877
+ 'livestreamed'?: boolean;
6842
6878
  'onsiteRegistration'?: boolean;
6843
6879
  'skipOnsiteValidations'?: boolean;
6844
6880
  'allowQuickRegister'?: boolean;
@@ -7214,6 +7250,7 @@ export interface EventSessionUpdateInputs {
7214
7250
  'featured'?: boolean;
7215
7251
  'sortOrder'?: number | null;
7216
7252
  'registrationEnabled'?: boolean;
7253
+ 'livestreamed'?: boolean;
7217
7254
  'onsiteRegistration'?: boolean;
7218
7255
  'skipOnsiteValidations'?: boolean;
7219
7256
  'allowQuickRegister'?: boolean;
@@ -10788,6 +10825,17 @@ export enum GetPushDevice200ResponseStatusEnum {
10788
10825
  Ok = 'ok'
10789
10826
  }
10790
10827
 
10828
+ export interface GetReplays200Response {
10829
+ 'status': GetReplays200ResponseStatusEnum;
10830
+ 'message': string;
10831
+ 'data': Array<Replay>;
10832
+ 'count'?: number;
10833
+ }
10834
+
10835
+ export enum GetReplays200ResponseStatusEnum {
10836
+ Ok = 'ok'
10837
+ }
10838
+
10791
10839
  export interface GetReport200Response {
10792
10840
  'status': GetReport200ResponseStatusEnum;
10793
10841
  'message': string;
@@ -14373,6 +14421,50 @@ export enum ReorderTiers200ResponseStatusEnum {
14373
14421
  export interface ReorderTiersRequest {
14374
14422
  'tierIds': Array<string>;
14375
14423
  }
14424
+ export interface Replay {
14425
+ 'id': string;
14426
+ 'videoId': string;
14427
+ 'sessionId': string | null;
14428
+ 'eventId': string | null;
14429
+ 'groupId': string | null;
14430
+ 'session': BaseReplaySession | null;
14431
+ 'event': VideoAllOfStream | null;
14432
+ 'group': VideoAllOfStream | null;
14433
+ 'createdAt': string;
14434
+ 'updatedAt': string;
14435
+ 'video': ReplayVideo;
14436
+ }
14437
+ export interface ReplayCreateInputs {
14438
+ 'videoId': string;
14439
+ 'sessionId'?: string;
14440
+ 'eventId'?: string;
14441
+ 'groupId'?: string;
14442
+ }
14443
+ export interface ReplayUpdateInputs {
14444
+ 'sessionId'?: string;
14445
+ 'eventId'?: string;
14446
+ 'groupId'?: string;
14447
+ }
14448
+ export interface ReplayVideo {
14449
+ 'id': string;
14450
+ 'name': string;
14451
+ 'status': string;
14452
+ 'source': VideoSource;
14453
+ 'width': number;
14454
+ 'height': number;
14455
+ 'thumbnailUrl': string | null;
14456
+ 'previewUrl': string | null;
14457
+ 'readyToStream': boolean;
14458
+ 'duration': number | null;
14459
+ 'streamId': string | null;
14460
+ 'streamSessionId': string | null;
14461
+ 'createdAt': string;
14462
+ 'hlsUrl': string | null;
14463
+ 'stream': VideoAllOfStream | null;
14464
+ 'streamSession': VideoAllOfStreamSession | null;
14465
+ }
14466
+
14467
+
14376
14468
  export interface ReportExport {
14377
14469
  'id': string;
14378
14470
  'status': ExportStatus;
@@ -15199,17 +15291,21 @@ export interface StreamInput {
15199
15291
  'webRTC': boolean;
15200
15292
  'webRTCPlaybackUrl': string | null;
15201
15293
  'dvrEnabled': boolean;
15294
+ 'allowReplays': boolean;
15202
15295
  'connected': boolean;
15203
15296
  'event': BaseEvent | null;
15204
15297
  'session': BaseEventSession | null;
15205
15298
  'group': BaseGroup | null;
15206
15299
  'meetingId': string | null;
15207
15300
  'meeting': BaseMeeting | null;
15301
+ 'activityId': string | null;
15302
+ 'activity': BaseActivity | null;
15208
15303
  'streamInputId': string | null;
15209
15304
  'streamInput': BaseStreamInput | null;
15210
15305
  'details'?: StreamInputDetails;
15211
15306
  'sortOrder': number;
15212
15307
  'createdAt': string;
15308
+ 'lastStreamSessionStartedAt'?: string | null;
15213
15309
  }
15214
15310
  export interface StreamInputCreateInputs {
15215
15311
  'name': string;
@@ -15226,6 +15322,7 @@ export interface StreamInputCreateInputs {
15226
15322
  'locale'?: string | null;
15227
15323
  'webRTC'?: boolean;
15228
15324
  'dvrEnabled'?: boolean;
15325
+ 'allowReplays'?: boolean;
15229
15326
  }
15230
15327
  export interface StreamInputDetails {
15231
15328
  'uid': string;
@@ -15295,6 +15392,7 @@ export interface StreamInputUpdateInputs {
15295
15392
  'locale'?: string | null;
15296
15393
  'webRTC'?: boolean;
15297
15394
  'dvrEnabled'?: boolean;
15395
+ 'allowReplays'?: boolean;
15298
15396
  }
15299
15397
  export interface StreamOutputCreateInputs {
15300
15398
  'enabled': boolean;
@@ -16646,14 +16744,27 @@ export interface Video {
16646
16744
  'previewUrl': string | null;
16647
16745
  'readyToStream': boolean;
16648
16746
  'duration': number | null;
16747
+ 'streamId': string | null;
16748
+ 'streamSessionId': string | null;
16649
16749
  'createdAt': string;
16650
16750
  'downloadUrl': string | null;
16651
16751
  'hlsUrl': string | null;
16652
16752
  'dashUrl': string | null;
16653
16753
  'thumbnailPct': number | null;
16754
+ 'stream': VideoAllOfStream | null;
16755
+ 'streamSession': VideoAllOfStreamSession | null;
16756
+ 'replays': Array<BaseReplay>;
16654
16757
  }
16655
16758
 
16656
16759
 
16760
+ export interface VideoAllOfStream {
16761
+ 'id': string;
16762
+ 'name': string;
16763
+ }
16764
+ export interface VideoAllOfStreamSession {
16765
+ 'id': string;
16766
+ 'startedAt': string;
16767
+ }
16657
16768
  export interface VideoCaption {
16658
16769
  'language': string;
16659
16770
  'label': string;
@@ -152096,12 +152207,14 @@ export const StreamsApiAxiosParamCreator = function (configuration?: Configurati
152096
152207
  };
152097
152208
  },
152098
152209
  /**
152099
- * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, and by free-text search; requires read permission on streams.
152210
+ * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, by whether an encoder is connected, by whether the input is attached to an event, session, group or activity (a meeting-only input counts as not attached), and by free-text search; each item includes when its latest broadcast started; requires read permission on streams.
152100
152211
  * @summary List an organization\'s stream inputs
152101
152212
  * @param {string} [eventId] Filter by eventId
152102
152213
  * @param {string} [sessionId] Filter by sessionId
152103
152214
  * @param {string} [groupId] Filter by groupId
152104
152215
  * @param {string} [meetingId] Filter by meetingId
152216
+ * @param {boolean} [connected] Filter by connected
152217
+ * @param {boolean} [attached] Filter by attached
152105
152218
  * @param {number} [page] Page number
152106
152219
  * @param {number} [pageSize] Number of items per page
152107
152220
  * @param {string} [orderBy] Field to order by
@@ -152109,7 +152222,7 @@ export const StreamsApiAxiosParamCreator = function (configuration?: Configurati
152109
152222
  * @param {*} [options] Override http request option.
152110
152223
  * @throws {RequiredError}
152111
152224
  */
152112
- getStreamInputs: async (eventId?: string, sessionId?: string, groupId?: string, meetingId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152225
+ getStreamInputs: async (eventId?: string, sessionId?: string, groupId?: string, meetingId?: string, connected?: boolean, attached?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152113
152226
  const localVarPath = `/streams`;
152114
152227
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
152115
152228
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -152144,6 +152257,14 @@ export const StreamsApiAxiosParamCreator = function (configuration?: Configurati
152144
152257
  localVarQueryParameter['meetingId'] = meetingId;
152145
152258
  }
152146
152259
 
152260
+ if (connected !== undefined) {
152261
+ localVarQueryParameter['connected'] = connected;
152262
+ }
152263
+
152264
+ if (attached !== undefined) {
152265
+ localVarQueryParameter['attached'] = attached;
152266
+ }
152267
+
152147
152268
  if (page !== undefined) {
152148
152269
  localVarQueryParameter['page'] = page;
152149
152270
  }
@@ -152370,12 +152491,14 @@ export const StreamsApiFp = function(configuration?: Configuration) {
152370
152491
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152371
152492
  },
152372
152493
  /**
152373
- * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, and by free-text search; requires read permission on streams.
152494
+ * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, by whether an encoder is connected, by whether the input is attached to an event, session, group or activity (a meeting-only input counts as not attached), and by free-text search; each item includes when its latest broadcast started; requires read permission on streams.
152374
152495
  * @summary List an organization\'s stream inputs
152375
152496
  * @param {string} [eventId] Filter by eventId
152376
152497
  * @param {string} [sessionId] Filter by sessionId
152377
152498
  * @param {string} [groupId] Filter by groupId
152378
152499
  * @param {string} [meetingId] Filter by meetingId
152500
+ * @param {boolean} [connected] Filter by connected
152501
+ * @param {boolean} [attached] Filter by attached
152379
152502
  * @param {number} [page] Page number
152380
152503
  * @param {number} [pageSize] Number of items per page
152381
152504
  * @param {string} [orderBy] Field to order by
@@ -152383,8 +152506,8 @@ export const StreamsApiFp = function(configuration?: Configuration) {
152383
152506
  * @param {*} [options] Override http request option.
152384
152507
  * @throws {RequiredError}
152385
152508
  */
152386
- async getStreamInputs(eventId?: string, sessionId?: string, groupId?: string, meetingId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamInputs200Response>> {
152387
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamInputs(eventId, sessionId, groupId, meetingId, page, pageSize, orderBy, search, options);
152509
+ async getStreamInputs(eventId?: string, sessionId?: string, groupId?: string, meetingId?: string, connected?: boolean, attached?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamInputs200Response>> {
152510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStreamInputs(eventId, sessionId, groupId, meetingId, connected, attached, page, pageSize, orderBy, search, options);
152388
152511
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152389
152512
  const localVarOperationServerBasePath = operationServerMap['StreamsApi.getStreamInputs']?.[localVarOperationServerIndex]?.url;
152390
152513
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -152474,14 +152597,14 @@ export const StreamsApiFactory = function (configuration?: Configuration, basePa
152474
152597
  return localVarFp.getStreamInput(requestParameters.streamId, options).then((request) => request(axios, basePath));
152475
152598
  },
152476
152599
  /**
152477
- * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, and by free-text search; requires read permission on streams.
152600
+ * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, by whether an encoder is connected, by whether the input is attached to an event, session, group or activity (a meeting-only input counts as not attached), and by free-text search; each item includes when its latest broadcast started; requires read permission on streams.
152478
152601
  * @summary List an organization\'s stream inputs
152479
152602
  * @param {StreamsApiGetStreamInputsRequest} requestParameters Request parameters.
152480
152603
  * @param {*} [options] Override http request option.
152481
152604
  * @throws {RequiredError}
152482
152605
  */
152483
152606
  getStreamInputs(requestParameters: StreamsApiGetStreamInputsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamInputs200Response> {
152484
- return localVarFp.getStreamInputs(requestParameters.eventId, requestParameters.sessionId, requestParameters.groupId, requestParameters.meetingId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152607
+ return localVarFp.getStreamInputs(requestParameters.eventId, requestParameters.sessionId, requestParameters.groupId, requestParameters.meetingId, requestParameters.connected, requestParameters.attached, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
152485
152608
  },
152486
152609
  /**
152487
152610
  * Returns a paginated list of recorded videos associated with the given stream, with optional search and ordering, and requires \"read\" permission on both streams and storage.
@@ -152567,6 +152690,16 @@ export interface StreamsApiGetStreamInputsRequest {
152567
152690
  */
152568
152691
  readonly meetingId?: string
152569
152692
 
152693
+ /**
152694
+ * Filter by connected
152695
+ */
152696
+ readonly connected?: boolean
152697
+
152698
+ /**
152699
+ * Filter by attached
152700
+ */
152701
+ readonly attached?: boolean
152702
+
152570
152703
  /**
152571
152704
  * Page number
152572
152705
  */
@@ -152680,14 +152813,14 @@ export class StreamsApi extends BaseAPI {
152680
152813
  }
152681
152814
 
152682
152815
  /**
152683
- * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, and by free-text search; requires read permission on streams.
152816
+ * Returns a paginated list of stream inputs for the organization, filterable by associated event, session, group, or meeting, by whether an encoder is connected, by whether the input is attached to an event, session, group or activity (a meeting-only input counts as not attached), and by free-text search; each item includes when its latest broadcast started; requires read permission on streams.
152684
152817
  * @summary List an organization\'s stream inputs
152685
152818
  * @param {StreamsApiGetStreamInputsRequest} requestParameters Request parameters.
152686
152819
  * @param {*} [options] Override http request option.
152687
152820
  * @throws {RequiredError}
152688
152821
  */
152689
152822
  public getStreamInputs(requestParameters: StreamsApiGetStreamInputsRequest = {}, options?: RawAxiosRequestConfig) {
152690
- return StreamsApiFp(this.configuration).getStreamInputs(requestParameters.eventId, requestParameters.sessionId, requestParameters.groupId, requestParameters.meetingId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
152823
+ return StreamsApiFp(this.configuration).getStreamInputs(requestParameters.eventId, requestParameters.sessionId, requestParameters.groupId, requestParameters.meetingId, requestParameters.connected, requestParameters.attached, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
152691
152824
  }
152692
152825
 
152693
152826
  /**
@@ -153269,6 +153402,543 @@ export class StreamsOutputsApi extends BaseAPI {
153269
153402
 
153270
153403
 
153271
153404
 
153405
+ /**
153406
+ * StreamsReplaysApi - axios parameter creator
153407
+ */
153408
+ export const StreamsReplaysApiAxiosParamCreator = function (configuration?: Configuration) {
153409
+ return {
153410
+ /**
153411
+ * Attaches a video from storage as a replay to exactly one session, event or group; a video can be a replay on several targets, but only once on each (a repeat returns 400 \"Replay already exists\"). Requires create permission on streams.
153412
+ * @summary Add a video as a replay
153413
+ * @param {ReplayCreateInputs} replayCreateInputs
153414
+ * @param {*} [options] Override http request option.
153415
+ * @throws {RequiredError}
153416
+ */
153417
+ createReplay: async (replayCreateInputs: ReplayCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
153418
+ // verify required parameter 'replayCreateInputs' is not null or undefined
153419
+ assertParamExists('createReplay', 'replayCreateInputs', replayCreateInputs)
153420
+ const localVarPath = `/replays`;
153421
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153422
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153423
+ let baseOptions;
153424
+ if (configuration) {
153425
+ baseOptions = configuration.baseOptions;
153426
+ }
153427
+
153428
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
153429
+ const localVarHeaderParameter = {} as any;
153430
+ const localVarQueryParameter = {} as any;
153431
+
153432
+ // authentication ApiKeyAuth required
153433
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
153434
+
153435
+ // authentication OrganizationId required
153436
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
153437
+
153438
+ localVarHeaderParameter['Content-Type'] = 'application/json';
153439
+ localVarHeaderParameter['Accept'] = 'application/json';
153440
+
153441
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153442
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153443
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
153444
+ localVarRequestOptions.data = serializeDataIfNeeded(replayCreateInputs, localVarRequestOptions, configuration)
153445
+
153446
+ return {
153447
+ url: toPathString(localVarUrlObj),
153448
+ options: localVarRequestOptions,
153449
+ };
153450
+ },
153451
+ /**
153452
+ * Detaches a replay from its session, event or group; the video stays in storage. Requires delete permission on streams.
153453
+ * @summary Remove a replay
153454
+ * @param {string} replayId The replay identifier
153455
+ * @param {*} [options] Override http request option.
153456
+ * @throws {RequiredError}
153457
+ */
153458
+ deleteReplay: async (replayId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
153459
+ // verify required parameter 'replayId' is not null or undefined
153460
+ assertParamExists('deleteReplay', 'replayId', replayId)
153461
+ const localVarPath = `/replays/{replayId}`
153462
+ .replace('{replayId}', encodeURIComponent(String(replayId)));
153463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153465
+ let baseOptions;
153466
+ if (configuration) {
153467
+ baseOptions = configuration.baseOptions;
153468
+ }
153469
+
153470
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
153471
+ const localVarHeaderParameter = {} as any;
153472
+ const localVarQueryParameter = {} as any;
153473
+
153474
+ // authentication ApiKeyAuth required
153475
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
153476
+
153477
+ // authentication OrganizationId required
153478
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
153479
+
153480
+ localVarHeaderParameter['Accept'] = 'application/json';
153481
+
153482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153484
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
153485
+
153486
+ return {
153487
+ url: toPathString(localVarUrlObj),
153488
+ options: localVarRequestOptions,
153489
+ };
153490
+ },
153491
+ /**
153492
+ * Returns a single replay with its video and the name of the session, event or group it is attached to; requires read permission on streams.
153493
+ * @summary Get a replay
153494
+ * @param {string} replayId The replay identifier
153495
+ * @param {*} [options] Override http request option.
153496
+ * @throws {RequiredError}
153497
+ */
153498
+ getReplay: async (replayId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
153499
+ // verify required parameter 'replayId' is not null or undefined
153500
+ assertParamExists('getReplay', 'replayId', replayId)
153501
+ const localVarPath = `/replays/{replayId}`
153502
+ .replace('{replayId}', encodeURIComponent(String(replayId)));
153503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153504
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153505
+ let baseOptions;
153506
+ if (configuration) {
153507
+ baseOptions = configuration.baseOptions;
153508
+ }
153509
+
153510
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
153511
+ const localVarHeaderParameter = {} as any;
153512
+ const localVarQueryParameter = {} as any;
153513
+
153514
+ // authentication ApiKeyAuth required
153515
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
153516
+
153517
+ // authentication OrganizationId required
153518
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
153519
+
153520
+ localVarHeaderParameter['Accept'] = 'application/json';
153521
+
153522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153524
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
153525
+
153526
+ return {
153527
+ url: toPathString(localVarUrlObj),
153528
+ options: localVarRequestOptions,
153529
+ };
153530
+ },
153531
+ /**
153532
+ * Returns a paginated list of the organization\'s replays, newest first, each with its video and the name of the session, event or group it is attached to, filterable by session, event, group or video; requires read permission on streams.
153533
+ * @summary List replays
153534
+ * @param {string} [sessionId] Filter by sessionId
153535
+ * @param {string} [eventId] Filter by eventId
153536
+ * @param {string} [groupId] Filter by groupId
153537
+ * @param {string} [videoId] Filter by videoId
153538
+ * @param {number} [page] Page number
153539
+ * @param {number} [pageSize] Number of items per page
153540
+ * @param {string} [orderBy] Field to order by
153541
+ * @param {string} [search] Search query
153542
+ * @param {*} [options] Override http request option.
153543
+ * @throws {RequiredError}
153544
+ */
153545
+ getReplays: async (sessionId?: string, eventId?: string, groupId?: string, videoId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
153546
+ const localVarPath = `/replays`;
153547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153549
+ let baseOptions;
153550
+ if (configuration) {
153551
+ baseOptions = configuration.baseOptions;
153552
+ }
153553
+
153554
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
153555
+ const localVarHeaderParameter = {} as any;
153556
+ const localVarQueryParameter = {} as any;
153557
+
153558
+ // authentication ApiKeyAuth required
153559
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
153560
+
153561
+ // authentication OrganizationId required
153562
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
153563
+
153564
+ if (sessionId !== undefined) {
153565
+ localVarQueryParameter['sessionId'] = sessionId;
153566
+ }
153567
+
153568
+ if (eventId !== undefined) {
153569
+ localVarQueryParameter['eventId'] = eventId;
153570
+ }
153571
+
153572
+ if (groupId !== undefined) {
153573
+ localVarQueryParameter['groupId'] = groupId;
153574
+ }
153575
+
153576
+ if (videoId !== undefined) {
153577
+ localVarQueryParameter['videoId'] = videoId;
153578
+ }
153579
+
153580
+ if (page !== undefined) {
153581
+ localVarQueryParameter['page'] = page;
153582
+ }
153583
+
153584
+ if (pageSize !== undefined) {
153585
+ localVarQueryParameter['pageSize'] = pageSize;
153586
+ }
153587
+
153588
+ if (orderBy !== undefined) {
153589
+ localVarQueryParameter['orderBy'] = orderBy;
153590
+ }
153591
+
153592
+ if (search !== undefined) {
153593
+ localVarQueryParameter['search'] = search;
153594
+ }
153595
+
153596
+ localVarHeaderParameter['Accept'] = 'application/json';
153597
+
153598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153600
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
153601
+
153602
+ return {
153603
+ url: toPathString(localVarUrlObj),
153604
+ options: localVarRequestOptions,
153605
+ };
153606
+ },
153607
+ /**
153608
+ * Moves a replay to exactly one other session, event or group in the organization; the video itself is unchanged. Requires update permission on streams.
153609
+ * @summary Move a replay
153610
+ * @param {string} replayId The replay identifier
153611
+ * @param {ReplayUpdateInputs} replayUpdateInputs
153612
+ * @param {*} [options] Override http request option.
153613
+ * @throws {RequiredError}
153614
+ */
153615
+ updateReplay: async (replayId: string, replayUpdateInputs: ReplayUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
153616
+ // verify required parameter 'replayId' is not null or undefined
153617
+ assertParamExists('updateReplay', 'replayId', replayId)
153618
+ // verify required parameter 'replayUpdateInputs' is not null or undefined
153619
+ assertParamExists('updateReplay', 'replayUpdateInputs', replayUpdateInputs)
153620
+ const localVarPath = `/replays/{replayId}`
153621
+ .replace('{replayId}', encodeURIComponent(String(replayId)));
153622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153624
+ let baseOptions;
153625
+ if (configuration) {
153626
+ baseOptions = configuration.baseOptions;
153627
+ }
153628
+
153629
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
153630
+ const localVarHeaderParameter = {} as any;
153631
+ const localVarQueryParameter = {} as any;
153632
+
153633
+ // authentication ApiKeyAuth required
153634
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
153635
+
153636
+ // authentication OrganizationId required
153637
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
153638
+
153639
+ localVarHeaderParameter['Content-Type'] = 'application/json';
153640
+ localVarHeaderParameter['Accept'] = 'application/json';
153641
+
153642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153644
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
153645
+ localVarRequestOptions.data = serializeDataIfNeeded(replayUpdateInputs, localVarRequestOptions, configuration)
153646
+
153647
+ return {
153648
+ url: toPathString(localVarUrlObj),
153649
+ options: localVarRequestOptions,
153650
+ };
153651
+ },
153652
+ }
153653
+ };
153654
+
153655
+ /**
153656
+ * StreamsReplaysApi - functional programming interface
153657
+ */
153658
+ export const StreamsReplaysApiFp = function(configuration?: Configuration) {
153659
+ const localVarAxiosParamCreator = StreamsReplaysApiAxiosParamCreator(configuration)
153660
+ return {
153661
+ /**
153662
+ * Attaches a video from storage as a replay to exactly one session, event or group; a video can be a replay on several targets, but only once on each (a repeat returns 400 \"Replay already exists\"). Requires create permission on streams.
153663
+ * @summary Add a video as a replay
153664
+ * @param {ReplayCreateInputs} replayCreateInputs
153665
+ * @param {*} [options] Override http request option.
153666
+ * @throws {RequiredError}
153667
+ */
153668
+ async createReplay(replayCreateInputs: ReplayCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReplay200Response>> {
153669
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReplay(replayCreateInputs, options);
153670
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
153671
+ const localVarOperationServerBasePath = operationServerMap['StreamsReplaysApi.createReplay']?.[localVarOperationServerIndex]?.url;
153672
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153673
+ },
153674
+ /**
153675
+ * Detaches a replay from its session, event or group; the video stays in storage. Requires delete permission on streams.
153676
+ * @summary Remove a replay
153677
+ * @param {string} replayId The replay identifier
153678
+ * @param {*} [options] Override http request option.
153679
+ * @throws {RequiredError}
153680
+ */
153681
+ async deleteReplay(replayId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
153682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteReplay(replayId, options);
153683
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
153684
+ const localVarOperationServerBasePath = operationServerMap['StreamsReplaysApi.deleteReplay']?.[localVarOperationServerIndex]?.url;
153685
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153686
+ },
153687
+ /**
153688
+ * Returns a single replay with its video and the name of the session, event or group it is attached to; requires read permission on streams.
153689
+ * @summary Get a replay
153690
+ * @param {string} replayId The replay identifier
153691
+ * @param {*} [options] Override http request option.
153692
+ * @throws {RequiredError}
153693
+ */
153694
+ async getReplay(replayId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReplay200Response>> {
153695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReplay(replayId, options);
153696
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
153697
+ const localVarOperationServerBasePath = operationServerMap['StreamsReplaysApi.getReplay']?.[localVarOperationServerIndex]?.url;
153698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153699
+ },
153700
+ /**
153701
+ * Returns a paginated list of the organization\'s replays, newest first, each with its video and the name of the session, event or group it is attached to, filterable by session, event, group or video; requires read permission on streams.
153702
+ * @summary List replays
153703
+ * @param {string} [sessionId] Filter by sessionId
153704
+ * @param {string} [eventId] Filter by eventId
153705
+ * @param {string} [groupId] Filter by groupId
153706
+ * @param {string} [videoId] Filter by videoId
153707
+ * @param {number} [page] Page number
153708
+ * @param {number} [pageSize] Number of items per page
153709
+ * @param {string} [orderBy] Field to order by
153710
+ * @param {string} [search] Search query
153711
+ * @param {*} [options] Override http request option.
153712
+ * @throws {RequiredError}
153713
+ */
153714
+ async getReplays(sessionId?: string, eventId?: string, groupId?: string, videoId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReplays200Response>> {
153715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReplays(sessionId, eventId, groupId, videoId, page, pageSize, orderBy, search, options);
153716
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
153717
+ const localVarOperationServerBasePath = operationServerMap['StreamsReplaysApi.getReplays']?.[localVarOperationServerIndex]?.url;
153718
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153719
+ },
153720
+ /**
153721
+ * Moves a replay to exactly one other session, event or group in the organization; the video itself is unchanged. Requires update permission on streams.
153722
+ * @summary Move a replay
153723
+ * @param {string} replayId The replay identifier
153724
+ * @param {ReplayUpdateInputs} replayUpdateInputs
153725
+ * @param {*} [options] Override http request option.
153726
+ * @throws {RequiredError}
153727
+ */
153728
+ async updateReplay(replayId: string, replayUpdateInputs: ReplayUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReplay200Response>> {
153729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReplay(replayId, replayUpdateInputs, options);
153730
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
153731
+ const localVarOperationServerBasePath = operationServerMap['StreamsReplaysApi.updateReplay']?.[localVarOperationServerIndex]?.url;
153732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153733
+ },
153734
+ }
153735
+ };
153736
+
153737
+ /**
153738
+ * StreamsReplaysApi - factory interface
153739
+ */
153740
+ export const StreamsReplaysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
153741
+ const localVarFp = StreamsReplaysApiFp(configuration)
153742
+ return {
153743
+ /**
153744
+ * Attaches a video from storage as a replay to exactly one session, event or group; a video can be a replay on several targets, but only once on each (a repeat returns 400 \"Replay already exists\"). Requires create permission on streams.
153745
+ * @summary Add a video as a replay
153746
+ * @param {StreamsReplaysApiCreateReplayRequest} requestParameters Request parameters.
153747
+ * @param {*} [options] Override http request option.
153748
+ * @throws {RequiredError}
153749
+ */
153750
+ createReplay(requestParameters: StreamsReplaysApiCreateReplayRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReplay200Response> {
153751
+ return localVarFp.createReplay(requestParameters.replayCreateInputs, options).then((request) => request(axios, basePath));
153752
+ },
153753
+ /**
153754
+ * Detaches a replay from its session, event or group; the video stays in storage. Requires delete permission on streams.
153755
+ * @summary Remove a replay
153756
+ * @param {StreamsReplaysApiDeleteReplayRequest} requestParameters Request parameters.
153757
+ * @param {*} [options] Override http request option.
153758
+ * @throws {RequiredError}
153759
+ */
153760
+ deleteReplay(requestParameters: StreamsReplaysApiDeleteReplayRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
153761
+ return localVarFp.deleteReplay(requestParameters.replayId, options).then((request) => request(axios, basePath));
153762
+ },
153763
+ /**
153764
+ * Returns a single replay with its video and the name of the session, event or group it is attached to; requires read permission on streams.
153765
+ * @summary Get a replay
153766
+ * @param {StreamsReplaysApiGetReplayRequest} requestParameters Request parameters.
153767
+ * @param {*} [options] Override http request option.
153768
+ * @throws {RequiredError}
153769
+ */
153770
+ getReplay(requestParameters: StreamsReplaysApiGetReplayRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReplay200Response> {
153771
+ return localVarFp.getReplay(requestParameters.replayId, options).then((request) => request(axios, basePath));
153772
+ },
153773
+ /**
153774
+ * Returns a paginated list of the organization\'s replays, newest first, each with its video and the name of the session, event or group it is attached to, filterable by session, event, group or video; requires read permission on streams.
153775
+ * @summary List replays
153776
+ * @param {StreamsReplaysApiGetReplaysRequest} requestParameters Request parameters.
153777
+ * @param {*} [options] Override http request option.
153778
+ * @throws {RequiredError}
153779
+ */
153780
+ getReplays(requestParameters: StreamsReplaysApiGetReplaysRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetReplays200Response> {
153781
+ return localVarFp.getReplays(requestParameters.sessionId, requestParameters.eventId, requestParameters.groupId, requestParameters.videoId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
153782
+ },
153783
+ /**
153784
+ * Moves a replay to exactly one other session, event or group in the organization; the video itself is unchanged. Requires update permission on streams.
153785
+ * @summary Move a replay
153786
+ * @param {StreamsReplaysApiUpdateReplayRequest} requestParameters Request parameters.
153787
+ * @param {*} [options] Override http request option.
153788
+ * @throws {RequiredError}
153789
+ */
153790
+ updateReplay(requestParameters: StreamsReplaysApiUpdateReplayRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReplay200Response> {
153791
+ return localVarFp.updateReplay(requestParameters.replayId, requestParameters.replayUpdateInputs, options).then((request) => request(axios, basePath));
153792
+ },
153793
+ };
153794
+ };
153795
+
153796
+ /**
153797
+ * Request parameters for createReplay operation in StreamsReplaysApi.
153798
+ */
153799
+ export interface StreamsReplaysApiCreateReplayRequest {
153800
+ readonly replayCreateInputs: ReplayCreateInputs
153801
+ }
153802
+
153803
+ /**
153804
+ * Request parameters for deleteReplay operation in StreamsReplaysApi.
153805
+ */
153806
+ export interface StreamsReplaysApiDeleteReplayRequest {
153807
+ /**
153808
+ * The replay identifier
153809
+ */
153810
+ readonly replayId: string
153811
+ }
153812
+
153813
+ /**
153814
+ * Request parameters for getReplay operation in StreamsReplaysApi.
153815
+ */
153816
+ export interface StreamsReplaysApiGetReplayRequest {
153817
+ /**
153818
+ * The replay identifier
153819
+ */
153820
+ readonly replayId: string
153821
+ }
153822
+
153823
+ /**
153824
+ * Request parameters for getReplays operation in StreamsReplaysApi.
153825
+ */
153826
+ export interface StreamsReplaysApiGetReplaysRequest {
153827
+ /**
153828
+ * Filter by sessionId
153829
+ */
153830
+ readonly sessionId?: string
153831
+
153832
+ /**
153833
+ * Filter by eventId
153834
+ */
153835
+ readonly eventId?: string
153836
+
153837
+ /**
153838
+ * Filter by groupId
153839
+ */
153840
+ readonly groupId?: string
153841
+
153842
+ /**
153843
+ * Filter by videoId
153844
+ */
153845
+ readonly videoId?: string
153846
+
153847
+ /**
153848
+ * Page number
153849
+ */
153850
+ readonly page?: number
153851
+
153852
+ /**
153853
+ * Number of items per page
153854
+ */
153855
+ readonly pageSize?: number
153856
+
153857
+ /**
153858
+ * Field to order by
153859
+ */
153860
+ readonly orderBy?: string
153861
+
153862
+ /**
153863
+ * Search query
153864
+ */
153865
+ readonly search?: string
153866
+ }
153867
+
153868
+ /**
153869
+ * Request parameters for updateReplay operation in StreamsReplaysApi.
153870
+ */
153871
+ export interface StreamsReplaysApiUpdateReplayRequest {
153872
+ /**
153873
+ * The replay identifier
153874
+ */
153875
+ readonly replayId: string
153876
+
153877
+ readonly replayUpdateInputs: ReplayUpdateInputs
153878
+ }
153879
+
153880
+ /**
153881
+ * StreamsReplaysApi - object-oriented interface
153882
+ */
153883
+ export class StreamsReplaysApi extends BaseAPI {
153884
+ /**
153885
+ * Attaches a video from storage as a replay to exactly one session, event or group; a video can be a replay on several targets, but only once on each (a repeat returns 400 \"Replay already exists\"). Requires create permission on streams.
153886
+ * @summary Add a video as a replay
153887
+ * @param {StreamsReplaysApiCreateReplayRequest} requestParameters Request parameters.
153888
+ * @param {*} [options] Override http request option.
153889
+ * @throws {RequiredError}
153890
+ */
153891
+ public createReplay(requestParameters: StreamsReplaysApiCreateReplayRequest, options?: RawAxiosRequestConfig) {
153892
+ return StreamsReplaysApiFp(this.configuration).createReplay(requestParameters.replayCreateInputs, options).then((request) => request(this.axios, this.basePath));
153893
+ }
153894
+
153895
+ /**
153896
+ * Detaches a replay from its session, event or group; the video stays in storage. Requires delete permission on streams.
153897
+ * @summary Remove a replay
153898
+ * @param {StreamsReplaysApiDeleteReplayRequest} requestParameters Request parameters.
153899
+ * @param {*} [options] Override http request option.
153900
+ * @throws {RequiredError}
153901
+ */
153902
+ public deleteReplay(requestParameters: StreamsReplaysApiDeleteReplayRequest, options?: RawAxiosRequestConfig) {
153903
+ return StreamsReplaysApiFp(this.configuration).deleteReplay(requestParameters.replayId, options).then((request) => request(this.axios, this.basePath));
153904
+ }
153905
+
153906
+ /**
153907
+ * Returns a single replay with its video and the name of the session, event or group it is attached to; requires read permission on streams.
153908
+ * @summary Get a replay
153909
+ * @param {StreamsReplaysApiGetReplayRequest} requestParameters Request parameters.
153910
+ * @param {*} [options] Override http request option.
153911
+ * @throws {RequiredError}
153912
+ */
153913
+ public getReplay(requestParameters: StreamsReplaysApiGetReplayRequest, options?: RawAxiosRequestConfig) {
153914
+ return StreamsReplaysApiFp(this.configuration).getReplay(requestParameters.replayId, options).then((request) => request(this.axios, this.basePath));
153915
+ }
153916
+
153917
+ /**
153918
+ * Returns a paginated list of the organization\'s replays, newest first, each with its video and the name of the session, event or group it is attached to, filterable by session, event, group or video; requires read permission on streams.
153919
+ * @summary List replays
153920
+ * @param {StreamsReplaysApiGetReplaysRequest} requestParameters Request parameters.
153921
+ * @param {*} [options] Override http request option.
153922
+ * @throws {RequiredError}
153923
+ */
153924
+ public getReplays(requestParameters: StreamsReplaysApiGetReplaysRequest = {}, options?: RawAxiosRequestConfig) {
153925
+ return StreamsReplaysApiFp(this.configuration).getReplays(requestParameters.sessionId, requestParameters.eventId, requestParameters.groupId, requestParameters.videoId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
153926
+ }
153927
+
153928
+ /**
153929
+ * Moves a replay to exactly one other session, event or group in the organization; the video itself is unchanged. Requires update permission on streams.
153930
+ * @summary Move a replay
153931
+ * @param {StreamsReplaysApiUpdateReplayRequest} requestParameters Request parameters.
153932
+ * @param {*} [options] Override http request option.
153933
+ * @throws {RequiredError}
153934
+ */
153935
+ public updateReplay(requestParameters: StreamsReplaysApiUpdateReplayRequest, options?: RawAxiosRequestConfig) {
153936
+ return StreamsReplaysApiFp(this.configuration).updateReplay(requestParameters.replayId, requestParameters.replayUpdateInputs, options).then((request) => request(this.axios, this.basePath));
153937
+ }
153938
+ }
153939
+
153940
+
153941
+
153272
153942
  /**
153273
153943
  * StreamsSessionsApi - axios parameter creator
153274
153944
  */