@connectedxm/admin-sdk 7.13.0 → 7.13.1

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/README.md CHANGED
@@ -444,12 +444,15 @@ Class | Method | HTTP request | Description
444
444
  *EventsMatchesApi* | [**updateEventMatch**](docs/EventsMatchesApi.md#updateeventmatch) | **PUT** /events/{eventId}/rounds/{roundId}/matches/{matchId} | Update an event round match
445
445
  *EventsMatchesApi* | [**updateEventRoundQuestion**](docs/EventsMatchesApi.md#updateeventroundquestion) | **PUT** /events/{eventId}/rounds/{roundId}/questions/{questionId} | Set a registration question\'s matchmaking type for a round
446
446
  *EventsMediaApi* | [**addEventMediaItemPassType**](docs/EventsMediaApi.md#addeventmediaitempasstype) | **POST** /events/{eventId}/media/{mediaItemId}/passTypes/{passTypeId} | Restrict an event media item to a pass type
447
+ *EventsMediaApi* | [**addEventMediaItemTier**](docs/EventsMediaApi.md#addeventmediaitemtier) | **POST** /events/{eventId}/media/{mediaItemId}/tiers/{tierId} | Restrict an event media item to a tier
447
448
  *EventsMediaApi* | [**createEventMediaItem**](docs/EventsMediaApi.md#createeventmediaitem) | **POST** /events/{eventId}/media | Create an event media item
448
449
  *EventsMediaApi* | [**deleteEventMediaItem**](docs/EventsMediaApi.md#deleteeventmediaitem) | **DELETE** /events/{eventId}/media/{mediaItemId} | Delete an event media item
449
450
  *EventsMediaApi* | [**getEventMediaItem**](docs/EventsMediaApi.md#geteventmediaitem) | **GET** /events/{eventId}/media/{itemId} | Get a single event media item
450
451
  *EventsMediaApi* | [**getEventMediaItemPassTypes**](docs/EventsMediaApi.md#geteventmediaitempasstypes) | **GET** /events/{eventId}/media/{mediaItemId}/passTypes | List pass types linked to a media item
452
+ *EventsMediaApi* | [**getEventMediaItemTiers**](docs/EventsMediaApi.md#geteventmediaitemtiers) | **GET** /events/{eventId}/media/{mediaItemId}/tiers | List tiers linked to a media item
451
453
  *EventsMediaApi* | [**getEventMediaItems**](docs/EventsMediaApi.md#geteventmediaitems) | **GET** /events/{eventId}/media | List an event\'s media items
452
454
  *EventsMediaApi* | [**removeEventMediaItemPassType**](docs/EventsMediaApi.md#removeeventmediaitempasstype) | **DELETE** /events/{eventId}/media/{mediaItemId}/passTypes/{passTypeId} | Remove a pass type restriction from an event media item
455
+ *EventsMediaApi* | [**removeEventMediaItemTier**](docs/EventsMediaApi.md#removeeventmediaitemtier) | **DELETE** /events/{eventId}/media/{mediaItemId}/tiers/{tierId} | Remove a tier restriction from an event media item
453
456
  *EventsMediaApi* | [**updateEventMediaItem**](docs/EventsMediaApi.md#updateeventmediaitem) | **PUT** /events/{eventId}/media/{mediaItemId} | Update an event media item
454
457
  *EventsMediaTranslationsApi* | [**deleteEventMediaItemTranslation**](docs/EventsMediaTranslationsApi.md#deleteeventmediaitemtranslation) | **DELETE** /events/{eventId}/media/{mediaItemId}/translations/{locale} | Delete an event media item\'s translation
455
458
  *EventsMediaTranslationsApi* | [**getEventMediaItemTranslation**](docs/EventsMediaTranslationsApi.md#geteventmediaitemtranslation) | **GET** /events/{eventId}/media/{mediaId}/translations/{locale} | Get a media item\'s translation for a locale
package/api.ts CHANGED
@@ -5297,6 +5297,7 @@ export interface EventMediaItem {
5297
5297
  'file': BaseFile | null;
5298
5298
  'sortOrder': number;
5299
5299
  'allowedPassTypes': Array<BaseEventPassType>;
5300
+ 'allowedTiers': Array<BaseTier>;
5300
5301
  'createdAt': string;
5301
5302
  'updatedAt': string;
5302
5303
  }
@@ -59412,6 +59413,54 @@ export const EventsMediaApiAxiosParamCreator = function (configuration?: Configu
59412
59413
  options: localVarRequestOptions,
59413
59414
  };
59414
59415
  },
59416
+ /**
59417
+ * Grants a specific account tier (tier/segment) access to an event media item, restricting who can view it, and requires read and update permission on both events and storage.
59418
+ * @summary Restrict an event media item to a tier
59419
+ * @param {string} eventId The event identifier
59420
+ * @param {string} mediaItemId The mediaItem identifier
59421
+ * @param {string} tierId The tier identifier
59422
+ * @param {*} [options] Override http request option.
59423
+ * @throws {RequiredError}
59424
+ */
59425
+ addEventMediaItemTier: async (eventId: string, mediaItemId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
59426
+ // verify required parameter 'eventId' is not null or undefined
59427
+ assertParamExists('addEventMediaItemTier', 'eventId', eventId)
59428
+ // verify required parameter 'mediaItemId' is not null or undefined
59429
+ assertParamExists('addEventMediaItemTier', 'mediaItemId', mediaItemId)
59430
+ // verify required parameter 'tierId' is not null or undefined
59431
+ assertParamExists('addEventMediaItemTier', 'tierId', tierId)
59432
+ const localVarPath = `/events/{eventId}/media/{mediaItemId}/tiers/{tierId}`
59433
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
59434
+ .replace(`{${"mediaItemId"}}`, encodeURIComponent(String(mediaItemId)))
59435
+ .replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
59436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
59437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59438
+ let baseOptions;
59439
+ if (configuration) {
59440
+ baseOptions = configuration.baseOptions;
59441
+ }
59442
+
59443
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59444
+ const localVarHeaderParameter = {} as any;
59445
+ const localVarQueryParameter = {} as any;
59446
+
59447
+ // authentication ApiKeyAuth required
59448
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
59449
+
59450
+ // authentication OrganizationId required
59451
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
59452
+
59453
+ localVarHeaderParameter['Accept'] = 'application/json';
59454
+
59455
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59456
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59457
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59458
+
59459
+ return {
59460
+ url: toPathString(localVarUrlObj),
59461
+ options: localVarRequestOptions,
59462
+ };
59463
+ },
59415
59464
  /**
59416
59465
  * Creates a new media item (image, video, or file) in an event\'s media gallery, and requires read and update permission on both events and storage.
59417
59466
  * @summary Create an event media item
@@ -59609,6 +59658,70 @@ export const EventsMediaApiAxiosParamCreator = function (configuration?: Configu
59609
59658
  options: localVarRequestOptions,
59610
59659
  };
59611
59660
  },
59661
+ /**
59662
+ * Returns a paginated list of the event\'s account tiers (tiers/segments) that are associated with a given media item, supporting search and ordering; requires read access to events and storage.
59663
+ * @summary List tiers linked to a media item
59664
+ * @param {string} eventId The event identifier
59665
+ * @param {string} mediaItemId The mediaItem identifier
59666
+ * @param {number} [page] Page number
59667
+ * @param {number} [pageSize] Number of items per page
59668
+ * @param {string} [orderBy] Field to order by
59669
+ * @param {string} [search] Search query
59670
+ * @param {*} [options] Override http request option.
59671
+ * @throws {RequiredError}
59672
+ */
59673
+ getEventMediaItemTiers: async (eventId: string, mediaItemId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
59674
+ // verify required parameter 'eventId' is not null or undefined
59675
+ assertParamExists('getEventMediaItemTiers', 'eventId', eventId)
59676
+ // verify required parameter 'mediaItemId' is not null or undefined
59677
+ assertParamExists('getEventMediaItemTiers', 'mediaItemId', mediaItemId)
59678
+ const localVarPath = `/events/{eventId}/media/{mediaItemId}/tiers`
59679
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
59680
+ .replace(`{${"mediaItemId"}}`, encodeURIComponent(String(mediaItemId)));
59681
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
59682
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59683
+ let baseOptions;
59684
+ if (configuration) {
59685
+ baseOptions = configuration.baseOptions;
59686
+ }
59687
+
59688
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
59689
+ const localVarHeaderParameter = {} as any;
59690
+ const localVarQueryParameter = {} as any;
59691
+
59692
+ // authentication ApiKeyAuth required
59693
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
59694
+
59695
+ // authentication OrganizationId required
59696
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
59697
+
59698
+ if (page !== undefined) {
59699
+ localVarQueryParameter['page'] = page;
59700
+ }
59701
+
59702
+ if (pageSize !== undefined) {
59703
+ localVarQueryParameter['pageSize'] = pageSize;
59704
+ }
59705
+
59706
+ if (orderBy !== undefined) {
59707
+ localVarQueryParameter['orderBy'] = orderBy;
59708
+ }
59709
+
59710
+ if (search !== undefined) {
59711
+ localVarQueryParameter['search'] = search;
59712
+ }
59713
+
59714
+ localVarHeaderParameter['Accept'] = 'application/json';
59715
+
59716
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59718
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59719
+
59720
+ return {
59721
+ url: toPathString(localVarUrlObj),
59722
+ options: localVarRequestOptions,
59723
+ };
59724
+ },
59612
59725
  /**
59613
59726
  * Returns a paginated list of media items (images, videos, or files) belonging to the given event, optionally filtered by media type, with search and ordering support; requires read access to events and storage.
59614
59727
  * @summary List an event\'s media items
@@ -59722,6 +59835,54 @@ export const EventsMediaApiAxiosParamCreator = function (configuration?: Configu
59722
59835
  options: localVarRequestOptions,
59723
59836
  };
59724
59837
  },
59838
+ /**
59839
+ * Revokes an account tier\'s (tier/segment) access to an event media item, and requires read and update permission on both events and storage.
59840
+ * @summary Remove a tier restriction from an event media item
59841
+ * @param {string} eventId The event identifier
59842
+ * @param {string} mediaItemId The mediaItem identifier
59843
+ * @param {string} tierId The tier identifier
59844
+ * @param {*} [options] Override http request option.
59845
+ * @throws {RequiredError}
59846
+ */
59847
+ removeEventMediaItemTier: async (eventId: string, mediaItemId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
59848
+ // verify required parameter 'eventId' is not null or undefined
59849
+ assertParamExists('removeEventMediaItemTier', 'eventId', eventId)
59850
+ // verify required parameter 'mediaItemId' is not null or undefined
59851
+ assertParamExists('removeEventMediaItemTier', 'mediaItemId', mediaItemId)
59852
+ // verify required parameter 'tierId' is not null or undefined
59853
+ assertParamExists('removeEventMediaItemTier', 'tierId', tierId)
59854
+ const localVarPath = `/events/{eventId}/media/{mediaItemId}/tiers/{tierId}`
59855
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
59856
+ .replace(`{${"mediaItemId"}}`, encodeURIComponent(String(mediaItemId)))
59857
+ .replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
59858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
59859
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59860
+ let baseOptions;
59861
+ if (configuration) {
59862
+ baseOptions = configuration.baseOptions;
59863
+ }
59864
+
59865
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
59866
+ const localVarHeaderParameter = {} as any;
59867
+ const localVarQueryParameter = {} as any;
59868
+
59869
+ // authentication ApiKeyAuth required
59870
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
59871
+
59872
+ // authentication OrganizationId required
59873
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
59874
+
59875
+ localVarHeaderParameter['Accept'] = 'application/json';
59876
+
59877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59880
+
59881
+ return {
59882
+ url: toPathString(localVarUrlObj),
59883
+ options: localVarRequestOptions,
59884
+ };
59885
+ },
59725
59886
  /**
59726
59887
  * Updates the fields (such as name, type, or file references) of an existing media item in an event\'s media gallery, and requires read and update permission on both events and storage.
59727
59888
  * @summary Update an event media item
@@ -59795,6 +59956,21 @@ export const EventsMediaApiFp = function(configuration?: Configuration) {
59795
59956
  const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.addEventMediaItemPassType']?.[localVarOperationServerIndex]?.url;
59796
59957
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59797
59958
  },
59959
+ /**
59960
+ * Grants a specific account tier (tier/segment) access to an event media item, restricting who can view it, and requires read and update permission on both events and storage.
59961
+ * @summary Restrict an event media item to a tier
59962
+ * @param {string} eventId The event identifier
59963
+ * @param {string} mediaItemId The mediaItem identifier
59964
+ * @param {string} tierId The tier identifier
59965
+ * @param {*} [options] Override http request option.
59966
+ * @throws {RequiredError}
59967
+ */
59968
+ async addEventMediaItemTier(eventId: string, mediaItemId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventMediaItem200Response>> {
59969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addEventMediaItemTier(eventId, mediaItemId, tierId, options);
59970
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
59971
+ const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.addEventMediaItemTier']?.[localVarOperationServerIndex]?.url;
59972
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59973
+ },
59798
59974
  /**
59799
59975
  * Creates a new media item (image, video, or file) in an event\'s media gallery, and requires read and update permission on both events and storage.
59800
59976
  * @summary Create an event media item
@@ -59855,6 +60031,24 @@ export const EventsMediaApiFp = function(configuration?: Configuration) {
59855
60031
  const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.getEventMediaItemPassTypes']?.[localVarOperationServerIndex]?.url;
59856
60032
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59857
60033
  },
60034
+ /**
60035
+ * Returns a paginated list of the event\'s account tiers (tiers/segments) that are associated with a given media item, supporting search and ordering; requires read access to events and storage.
60036
+ * @summary List tiers linked to a media item
60037
+ * @param {string} eventId The event identifier
60038
+ * @param {string} mediaItemId The mediaItem identifier
60039
+ * @param {number} [page] Page number
60040
+ * @param {number} [pageSize] Number of items per page
60041
+ * @param {string} [orderBy] Field to order by
60042
+ * @param {string} [search] Search query
60043
+ * @param {*} [options] Override http request option.
60044
+ * @throws {RequiredError}
60045
+ */
60046
+ async getEventMediaItemTiers(eventId: string, mediaItemId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>> {
60047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventMediaItemTiers(eventId, mediaItemId, page, pageSize, orderBy, search, options);
60048
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
60049
+ const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.getEventMediaItemTiers']?.[localVarOperationServerIndex]?.url;
60050
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
60051
+ },
59858
60052
  /**
59859
60053
  * Returns a paginated list of media items (images, videos, or files) belonging to the given event, optionally filtered by media type, with search and ordering support; requires read access to events and storage.
59860
60054
  * @summary List an event\'s media items
@@ -59888,6 +60082,21 @@ export const EventsMediaApiFp = function(configuration?: Configuration) {
59888
60082
  const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.removeEventMediaItemPassType']?.[localVarOperationServerIndex]?.url;
59889
60083
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
59890
60084
  },
60085
+ /**
60086
+ * Revokes an account tier\'s (tier/segment) access to an event media item, and requires read and update permission on both events and storage.
60087
+ * @summary Remove a tier restriction from an event media item
60088
+ * @param {string} eventId The event identifier
60089
+ * @param {string} mediaItemId The mediaItem identifier
60090
+ * @param {string} tierId The tier identifier
60091
+ * @param {*} [options] Override http request option.
60092
+ * @throws {RequiredError}
60093
+ */
60094
+ async removeEventMediaItemTier(eventId: string, mediaItemId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventMediaItem200Response>> {
60095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeEventMediaItemTier(eventId, mediaItemId, tierId, options);
60096
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
60097
+ const localVarOperationServerBasePath = operationServerMap['EventsMediaApi.removeEventMediaItemTier']?.[localVarOperationServerIndex]?.url;
60098
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
60099
+ },
59891
60100
  /**
59892
60101
  * Updates the fields (such as name, type, or file references) of an existing media item in an event\'s media gallery, and requires read and update permission on both events and storage.
59893
60102
  * @summary Update an event media item
@@ -59922,6 +60131,16 @@ export const EventsMediaApiFactory = function (configuration?: Configuration, ba
59922
60131
  addEventMediaItemPassType(requestParameters: EventsMediaApiAddEventMediaItemPassTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventMediaItem200Response> {
59923
60132
  return localVarFp.addEventMediaItemPassType(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.passTypeId, options).then((request) => request(axios, basePath));
59924
60133
  },
60134
+ /**
60135
+ * Grants a specific account tier (tier/segment) access to an event media item, restricting who can view it, and requires read and update permission on both events and storage.
60136
+ * @summary Restrict an event media item to a tier
60137
+ * @param {EventsMediaApiAddEventMediaItemTierRequest} requestParameters Request parameters.
60138
+ * @param {*} [options] Override http request option.
60139
+ * @throws {RequiredError}
60140
+ */
60141
+ addEventMediaItemTier(requestParameters: EventsMediaApiAddEventMediaItemTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventMediaItem200Response> {
60142
+ return localVarFp.addEventMediaItemTier(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.tierId, options).then((request) => request(axios, basePath));
60143
+ },
59925
60144
  /**
59926
60145
  * Creates a new media item (image, video, or file) in an event\'s media gallery, and requires read and update permission on both events and storage.
59927
60146
  * @summary Create an event media item
@@ -59962,6 +60181,16 @@ export const EventsMediaApiFactory = function (configuration?: Configuration, ba
59962
60181
  getEventMediaItemPassTypes(requestParameters: EventsMediaApiGetEventMediaItemPassTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventAddOnPassTypes200Response> {
59963
60182
  return localVarFp.getEventMediaItemPassTypes(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
59964
60183
  },
60184
+ /**
60185
+ * Returns a paginated list of the event\'s account tiers (tiers/segments) that are associated with a given media item, supporting search and ordering; requires read access to events and storage.
60186
+ * @summary List tiers linked to a media item
60187
+ * @param {EventsMediaApiGetEventMediaItemTiersRequest} requestParameters Request parameters.
60188
+ * @param {*} [options] Override http request option.
60189
+ * @throws {RequiredError}
60190
+ */
60191
+ getEventMediaItemTiers(requestParameters: EventsMediaApiGetEventMediaItemTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response> {
60192
+ return localVarFp.getEventMediaItemTiers(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
60193
+ },
59965
60194
  /**
59966
60195
  * Returns a paginated list of media items (images, videos, or files) belonging to the given event, optionally filtered by media type, with search and ordering support; requires read access to events and storage.
59967
60196
  * @summary List an event\'s media items
@@ -59982,6 +60211,16 @@ export const EventsMediaApiFactory = function (configuration?: Configuration, ba
59982
60211
  removeEventMediaItemPassType(requestParameters: EventsMediaApiRemoveEventMediaItemPassTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventMediaItem200Response> {
59983
60212
  return localVarFp.removeEventMediaItemPassType(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.passTypeId, options).then((request) => request(axios, basePath));
59984
60213
  },
60214
+ /**
60215
+ * Revokes an account tier\'s (tier/segment) access to an event media item, and requires read and update permission on both events and storage.
60216
+ * @summary Remove a tier restriction from an event media item
60217
+ * @param {EventsMediaApiRemoveEventMediaItemTierRequest} requestParameters Request parameters.
60218
+ * @param {*} [options] Override http request option.
60219
+ * @throws {RequiredError}
60220
+ */
60221
+ removeEventMediaItemTier(requestParameters: EventsMediaApiRemoveEventMediaItemTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventMediaItem200Response> {
60222
+ return localVarFp.removeEventMediaItemTier(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.tierId, options).then((request) => request(axios, basePath));
60223
+ },
59985
60224
  /**
59986
60225
  * Updates the fields (such as name, type, or file references) of an existing media item in an event\'s media gallery, and requires read and update permission on both events and storage.
59987
60226
  * @summary Update an event media item
@@ -60015,6 +60254,26 @@ export interface EventsMediaApiAddEventMediaItemPassTypeRequest {
60015
60254
  readonly passTypeId: string
60016
60255
  }
60017
60256
 
60257
+ /**
60258
+ * Request parameters for addEventMediaItemTier operation in EventsMediaApi.
60259
+ */
60260
+ export interface EventsMediaApiAddEventMediaItemTierRequest {
60261
+ /**
60262
+ * The event identifier
60263
+ */
60264
+ readonly eventId: string
60265
+
60266
+ /**
60267
+ * The mediaItem identifier
60268
+ */
60269
+ readonly mediaItemId: string
60270
+
60271
+ /**
60272
+ * The tier identifier
60273
+ */
60274
+ readonly tierId: string
60275
+ }
60276
+
60018
60277
  /**
60019
60278
  * Request parameters for createEventMediaItem operation in EventsMediaApi.
60020
60279
  */
@@ -60092,6 +60351,41 @@ export interface EventsMediaApiGetEventMediaItemPassTypesRequest {
60092
60351
  readonly search?: string
60093
60352
  }
60094
60353
 
60354
+ /**
60355
+ * Request parameters for getEventMediaItemTiers operation in EventsMediaApi.
60356
+ */
60357
+ export interface EventsMediaApiGetEventMediaItemTiersRequest {
60358
+ /**
60359
+ * The event identifier
60360
+ */
60361
+ readonly eventId: string
60362
+
60363
+ /**
60364
+ * The mediaItem identifier
60365
+ */
60366
+ readonly mediaItemId: string
60367
+
60368
+ /**
60369
+ * Page number
60370
+ */
60371
+ readonly page?: number
60372
+
60373
+ /**
60374
+ * Number of items per page
60375
+ */
60376
+ readonly pageSize?: number
60377
+
60378
+ /**
60379
+ * Field to order by
60380
+ */
60381
+ readonly orderBy?: string
60382
+
60383
+ /**
60384
+ * Search query
60385
+ */
60386
+ readonly search?: string
60387
+ }
60388
+
60095
60389
  /**
60096
60390
  * Request parameters for getEventMediaItems operation in EventsMediaApi.
60097
60391
  */
@@ -60147,6 +60441,26 @@ export interface EventsMediaApiRemoveEventMediaItemPassTypeRequest {
60147
60441
  readonly passTypeId: string
60148
60442
  }
60149
60443
 
60444
+ /**
60445
+ * Request parameters for removeEventMediaItemTier operation in EventsMediaApi.
60446
+ */
60447
+ export interface EventsMediaApiRemoveEventMediaItemTierRequest {
60448
+ /**
60449
+ * The event identifier
60450
+ */
60451
+ readonly eventId: string
60452
+
60453
+ /**
60454
+ * The mediaItem identifier
60455
+ */
60456
+ readonly mediaItemId: string
60457
+
60458
+ /**
60459
+ * The tier identifier
60460
+ */
60461
+ readonly tierId: string
60462
+ }
60463
+
60150
60464
  /**
60151
60465
  * Request parameters for updateEventMediaItem operation in EventsMediaApi.
60152
60466
  */
@@ -60179,6 +60493,17 @@ export class EventsMediaApi extends BaseAPI {
60179
60493
  return EventsMediaApiFp(this.configuration).addEventMediaItemPassType(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.passTypeId, options).then((request) => request(this.axios, this.basePath));
60180
60494
  }
60181
60495
 
60496
+ /**
60497
+ * Grants a specific account tier (tier/segment) access to an event media item, restricting who can view it, and requires read and update permission on both events and storage.
60498
+ * @summary Restrict an event media item to a tier
60499
+ * @param {EventsMediaApiAddEventMediaItemTierRequest} requestParameters Request parameters.
60500
+ * @param {*} [options] Override http request option.
60501
+ * @throws {RequiredError}
60502
+ */
60503
+ public addEventMediaItemTier(requestParameters: EventsMediaApiAddEventMediaItemTierRequest, options?: RawAxiosRequestConfig) {
60504
+ return EventsMediaApiFp(this.configuration).addEventMediaItemTier(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
60505
+ }
60506
+
60182
60507
  /**
60183
60508
  * Creates a new media item (image, video, or file) in an event\'s media gallery, and requires read and update permission on both events and storage.
60184
60509
  * @summary Create an event media item
@@ -60223,6 +60548,17 @@ export class EventsMediaApi extends BaseAPI {
60223
60548
  return EventsMediaApiFp(this.configuration).getEventMediaItemPassTypes(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
60224
60549
  }
60225
60550
 
60551
+ /**
60552
+ * Returns a paginated list of the event\'s account tiers (tiers/segments) that are associated with a given media item, supporting search and ordering; requires read access to events and storage.
60553
+ * @summary List tiers linked to a media item
60554
+ * @param {EventsMediaApiGetEventMediaItemTiersRequest} requestParameters Request parameters.
60555
+ * @param {*} [options] Override http request option.
60556
+ * @throws {RequiredError}
60557
+ */
60558
+ public getEventMediaItemTiers(requestParameters: EventsMediaApiGetEventMediaItemTiersRequest, options?: RawAxiosRequestConfig) {
60559
+ return EventsMediaApiFp(this.configuration).getEventMediaItemTiers(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
60560
+ }
60561
+
60226
60562
  /**
60227
60563
  * Returns a paginated list of media items (images, videos, or files) belonging to the given event, optionally filtered by media type, with search and ordering support; requires read access to events and storage.
60228
60564
  * @summary List an event\'s media items
@@ -60245,6 +60581,17 @@ export class EventsMediaApi extends BaseAPI {
60245
60581
  return EventsMediaApiFp(this.configuration).removeEventMediaItemPassType(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.passTypeId, options).then((request) => request(this.axios, this.basePath));
60246
60582
  }
60247
60583
 
60584
+ /**
60585
+ * Revokes an account tier\'s (tier/segment) access to an event media item, and requires read and update permission on both events and storage.
60586
+ * @summary Remove a tier restriction from an event media item
60587
+ * @param {EventsMediaApiRemoveEventMediaItemTierRequest} requestParameters Request parameters.
60588
+ * @param {*} [options] Override http request option.
60589
+ * @throws {RequiredError}
60590
+ */
60591
+ public removeEventMediaItemTier(requestParameters: EventsMediaApiRemoveEventMediaItemTierRequest, options?: RawAxiosRequestConfig) {
60592
+ return EventsMediaApiFp(this.configuration).removeEventMediaItemTier(requestParameters.eventId, requestParameters.mediaItemId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
60593
+ }
60594
+
60248
60595
  /**
60249
60596
  * Updates the fields (such as name, type, or file references) of an existing media item in an event\'s media gallery, and requires read and update permission on both events and storage.
60250
60597
  * @summary Update an event media item