@wix/media 1.0.98 → 1.0.100

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.
@@ -347,61 +347,69 @@ interface EnterpriseOnboardingOptions {
347
347
  accountName?: string;
348
348
  }
349
349
 
350
- interface HttpClient {
351
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
350
+ interface HttpClient$3 {
351
+ request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
352
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
352
353
  }
353
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
354
- type HttpResponse<T = any> = {
354
+ type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
355
+ type HttpResponse$3<T = any> = {
355
356
  data: T;
356
357
  status: number;
357
358
  statusText: string;
358
359
  headers: any;
359
360
  request?: any;
360
361
  };
361
- type RequestOptions<_TResponse = any, Data = any> = {
362
+ type RequestOptions$3<_TResponse = any, Data = any> = {
362
363
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
363
364
  url: string;
364
365
  data?: Data;
365
366
  params?: URLSearchParams;
366
- } & APIMetadata;
367
- type APIMetadata = {
367
+ } & APIMetadata$3;
368
+ type APIMetadata$3 = {
368
369
  methodFqn?: string;
369
370
  entityFqdn?: string;
370
371
  packageName?: string;
371
372
  };
372
- type EventDefinition<Payload = unknown, Type extends string = string> = {
373
+ type EventDefinition$3<Payload = unknown, Type extends string = string> = {
373
374
  __type: 'event-definition';
374
375
  type: Type;
375
376
  isDomainEvent?: boolean;
376
- transformations?: unknown;
377
+ transformations?: (envelope: unknown) => Payload;
377
378
  __payload: Payload;
378
379
  };
379
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
380
+ declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
381
+
382
+ declare global {
383
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
384
+ interface SymbolConstructor {
385
+ readonly observable: symbol;
386
+ }
387
+ }
380
388
 
381
389
  declare const __metadata$3: {
382
390
  PACKAGE_NAME: string;
383
391
  };
384
- declare function createCategory(httpClient: HttpClient): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
392
+ declare function createCategory(httpClient: HttpClient$3): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
385
393
  _id: string;
386
394
  publishStatus: PublishStatus$1;
387
395
  }>;
388
- declare function deleteCategory(httpClient: HttpClient): (categoryId: string) => Promise<void>;
389
- declare function updateCategory(httpClient: HttpClient): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
396
+ declare function deleteCategory(httpClient: HttpClient$3): (categoryId: string) => Promise<void>;
397
+ declare function updateCategory(httpClient: HttpClient$3): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
390
398
  _id: string;
391
399
  publishStatus: PublishStatus$1;
392
400
  }>;
393
- declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
401
+ declare function getCategory(httpClient: HttpClient$3): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
394
402
  category?: {
395
403
  _id: string;
396
404
  publishStatus: PublishStatus$1;
397
405
  } | undefined;
398
406
  subCategories: (any | undefined)[];
399
407
  }>;
400
- declare function enterpriseOnboarding(httpClient: HttpClient): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
401
- declare function getMediaManagerCategories(httpClient: HttpClient): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
402
- declare const onEnterpriseCategoryCreated: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
403
- declare const onEnterpriseCategoryDeleted: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
404
- declare const onEnterpriseCategoryUpdated: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
408
+ declare function enterpriseOnboarding(httpClient: HttpClient$3): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
409
+ declare function getMediaManagerCategories(httpClient: HttpClient$3): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
410
+ declare const onEnterpriseCategoryCreated: EventDefinition$3<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
411
+ declare const onEnterpriseCategoryDeleted: EventDefinition$3<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
412
+ declare const onEnterpriseCategoryUpdated: EventDefinition$3<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
405
413
 
406
414
  type index_d$3_CreateCategoryRequest = CreateCategoryRequest;
407
415
  type index_d$3_CreateCategoryResponse = CreateCategoryResponse;
@@ -1361,15 +1369,54 @@ interface OverwriteItemCategoriesOptions {
1361
1369
  categoryIds?: string[];
1362
1370
  }
1363
1371
 
1372
+ interface HttpClient$2 {
1373
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
1374
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1375
+ }
1376
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
1377
+ type HttpResponse$2<T = any> = {
1378
+ data: T;
1379
+ status: number;
1380
+ statusText: string;
1381
+ headers: any;
1382
+ request?: any;
1383
+ };
1384
+ type RequestOptions$2<_TResponse = any, Data = any> = {
1385
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1386
+ url: string;
1387
+ data?: Data;
1388
+ params?: URLSearchParams;
1389
+ } & APIMetadata$2;
1390
+ type APIMetadata$2 = {
1391
+ methodFqn?: string;
1392
+ entityFqdn?: string;
1393
+ packageName?: string;
1394
+ };
1395
+ type EventDefinition$2<Payload = unknown, Type extends string = string> = {
1396
+ __type: 'event-definition';
1397
+ type: Type;
1398
+ isDomainEvent?: boolean;
1399
+ transformations?: (envelope: unknown) => Payload;
1400
+ __payload: Payload;
1401
+ };
1402
+ declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
1403
+
1404
+ declare global {
1405
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1406
+ interface SymbolConstructor {
1407
+ readonly observable: symbol;
1408
+ }
1409
+ }
1410
+
1364
1411
  declare const __metadata$2: {
1365
1412
  PACKAGE_NAME: string;
1366
1413
  };
1367
- declare function itemUploadCallback(httpClient: HttpClient): (options?: ItemUploadCallbackOptions) => Promise<void>;
1368
- declare function generateFileUploadUrl$1(httpClient: HttpClient): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
1369
- declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
1370
- declare function searchItems(httpClient: HttpClient): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
1371
- declare function queryItems(httpClient: HttpClient): () => ItemsQueryBuilder;
1372
- declare function updateItem(httpClient: HttpClient): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
1414
+ declare function itemUploadCallback(httpClient: HttpClient$2): (options?: ItemUploadCallbackOptions) => Promise<void>;
1415
+ declare function generateFileUploadUrl$1(httpClient: HttpClient$2): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
1416
+ declare function importFile$1(httpClient: HttpClient$2): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
1417
+ declare function searchItems(httpClient: HttpClient$2): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
1418
+ declare function queryItems(httpClient: HttpClient$2): () => ItemsQueryBuilder;
1419
+ declare function updateItem(httpClient: HttpClient$2): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
1373
1420
  _id: string;
1374
1421
  mediaType: MediaType$1;
1375
1422
  assets?: {
@@ -1390,8 +1437,8 @@ declare function updateItem(httpClient: HttpClient): (_id: string, item: UpdateI
1390
1437
  } | undefined;
1391
1438
  publishStatus: PublishStatus;
1392
1439
  }>;
1393
- declare function bulkUpdateItem(httpClient: HttpClient): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
1394
- declare function getItem(httpClient: HttpClient): (itemId: string) => Promise<EnterpriseMediaItem & {
1440
+ declare function bulkUpdateItem(httpClient: HttpClient$2): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
1441
+ declare function getItem(httpClient: HttpClient$2): (itemId: string) => Promise<EnterpriseMediaItem & {
1395
1442
  _id: string;
1396
1443
  mediaType: MediaType$1;
1397
1444
  assets?: {
@@ -1412,13 +1459,13 @@ declare function getItem(httpClient: HttpClient): (itemId: string) => Promise<En
1412
1459
  } | undefined;
1413
1460
  publishStatus: PublishStatus;
1414
1461
  }>;
1415
- declare function linkItemToCategories(httpClient: HttpClient): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
1416
- declare function unlinkItemFromCategories(httpClient: HttpClient): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
1417
- declare function overwriteItemCategories(httpClient: HttpClient): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
1418
- declare const onEnterpriseItemCreated: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
1419
- declare const onEnterpriseItemUpdated: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
1420
- declare const onEnterpriseItemItemCategoriesChanged: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
1421
- declare const onEnterpriseItemPublishStatusChanged: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
1462
+ declare function linkItemToCategories(httpClient: HttpClient$2): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
1463
+ declare function unlinkItemFromCategories(httpClient: HttpClient$2): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
1464
+ declare function overwriteItemCategories(httpClient: HttpClient$2): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
1465
+ declare const onEnterpriseItemCreated: EventDefinition$2<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
1466
+ declare const onEnterpriseItemUpdated: EventDefinition$2<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
1467
+ declare const onEnterpriseItemItemCategoriesChanged: EventDefinition$2<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
1468
+ declare const onEnterpriseItemPublishStatusChanged: EventDefinition$2<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
1422
1469
 
1423
1470
  type index_d$2_BulkItemUpdateResult = BulkItemUpdateResult;
1424
1471
  type index_d$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
@@ -1963,6 +2010,7 @@ interface GenerateFileUploadUrlRequest {
1963
2010
  sizeInBytes?: string | null;
1964
2011
  /**
1965
2012
  * ID of the file's parent folder. <br />
2013
+ * This folder is the path root for the `filePath`.<br />
1966
2014
  * Default: `media-root`.
1967
2015
  */
1968
2016
  parentFolderId?: string | null;
@@ -1973,11 +2021,10 @@ interface GenerateFileUploadUrlRequest {
1973
2021
  /** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
1974
2022
  externalInfo?: ExternalInfo;
1975
2023
  /**
1976
- * The path by folder names to create the file under.
1977
- * In case a folder in the path does not exist it will be created
1978
- * If multiple folders with the same name exist, the first one will be used
1979
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
1980
- * example: 'videos/2024/december'
2024
+ * Path to the folder where the file will be stored.
2025
+ * For example, `/videos/2024/december`. <br/>
2026
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
2027
+ * The folders in the path will be created if they don't already exist. <br />
1981
2028
  */
1982
2029
  filePath?: string | null;
1983
2030
  }
@@ -2000,6 +2047,7 @@ interface GenerateFileResumableUploadUrlRequest {
2000
2047
  sizeInBytes?: string | null;
2001
2048
  /**
2002
2049
  * ID of the file's parent folder. <br />
2050
+ * This folder is the path root for the `filePath`.<br />
2003
2051
  * Default: `media-root`.
2004
2052
  */
2005
2053
  parentFolderId?: string | null;
@@ -2010,11 +2058,10 @@ interface GenerateFileResumableUploadUrlRequest {
2010
2058
  /** The upload protocol to use for implementing the resumable upload. */
2011
2059
  uploadProtocol?: UploadProtocol;
2012
2060
  /**
2013
- * The path by folder names to create the file under.
2014
- * In case a folder in the path does not exist it will be created
2015
- * If multiple folders with the same name exist, the first one will be used
2016
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
2017
- * example: 'videos/2024/december'
2061
+ * Path to the folder where the file will be stored.
2062
+ * For example, `/videos/2024/december`. <br/>
2063
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
2064
+ * The folders in the path will be created if they don't already exist. <br />
2018
2065
  */
2019
2066
  filePath?: string | null;
2020
2067
  }
@@ -2043,6 +2090,7 @@ interface ImportFileRequest {
2043
2090
  displayName?: string | null;
2044
2091
  /**
2045
2092
  * ID of the file's parent folder. <br />
2093
+ * This folder is the path root for the `filePath`. <br />
2046
2094
  * Default: `media-root`.
2047
2095
  */
2048
2096
  parentFolderId?: string | null;
@@ -2059,11 +2107,10 @@ interface ImportFileRequest {
2059
2107
  /** Optional headers that should be sent with the external URL. */
2060
2108
  urlHeaders?: Record<string, any> | null;
2061
2109
  /**
2062
- * The path by folder names to create the file under.
2063
- * In case a folder in the path does not exist it will be created
2064
- * If multiple folders with the same name exist, the first one will be used
2065
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
2066
- * example: 'videos/2024/december'
2110
+ * Path to the folder where the file will be stored.
2111
+ * For example, `/videos/2024/december`. <br/>
2112
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
2113
+ * The folders in the path will be created if they don't already exist. <br />
2067
2114
  */
2068
2115
  filePath?: string | null;
2069
2116
  }
@@ -2395,7 +2442,7 @@ interface DomainEventBodyOneOf$1 {
2395
2442
  interface EntityCreatedEvent$1 {
2396
2443
  entity?: string;
2397
2444
  }
2398
- interface UndeleteInfo {
2445
+ interface RestoreInfo {
2399
2446
  deletedDate?: Date;
2400
2447
  }
2401
2448
  interface EntityUpdatedEvent$1 {
@@ -3129,6 +3176,7 @@ interface GenerateFileUploadUrlOptions {
3129
3176
  sizeInBytes?: string | null;
3130
3177
  /**
3131
3178
  * ID of the file's parent folder. <br />
3179
+ * This folder is the path root for the `filePath`.<br />
3132
3180
  * Default: `media-root`.
3133
3181
  */
3134
3182
  parentFolderId?: string | null;
@@ -3139,11 +3187,10 @@ interface GenerateFileUploadUrlOptions {
3139
3187
  /** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
3140
3188
  externalInfo?: ExternalInfo;
3141
3189
  /**
3142
- * The path by folder names to create the file under.
3143
- * In case a folder in the path does not exist it will be created
3144
- * If multiple folders with the same name exist, the first one will be used
3145
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3146
- * example: 'videos/2024/december'
3190
+ * Path to the folder where the file will be stored.
3191
+ * For example, `/videos/2024/december`. <br/>
3192
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
3193
+ * The folders in the path will be created if they don't already exist. <br />
3147
3194
  */
3148
3195
  filePath?: string | null;
3149
3196
  }
@@ -3160,6 +3207,7 @@ interface GenerateFileResumableUploadUrlOptions {
3160
3207
  sizeInBytes?: string | null;
3161
3208
  /**
3162
3209
  * ID of the file's parent folder. <br />
3210
+ * This folder is the path root for the `filePath`.<br />
3163
3211
  * Default: `media-root`.
3164
3212
  */
3165
3213
  parentFolderId?: string | null;
@@ -3174,11 +3222,10 @@ interface GenerateFileResumableUploadUrlOptions {
3174
3222
  */
3175
3223
  uploadProtocol?: UploadProtocol;
3176
3224
  /**
3177
- * The path by folder names to create the file under.
3178
- * In case a folder in the path does not exist it will be created
3179
- * If multiple folders with the same name exist, the first one will be used
3180
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3181
- * example: 'videos/2024/december'
3225
+ * Path to the folder where the file will be stored.
3226
+ * For example, `/videos/2024/december`. <br/>
3227
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
3228
+ * The folders in the path will be created if they don't already exist. <br />
3182
3229
  */
3183
3230
  filePath?: string | null;
3184
3231
  }
@@ -3189,6 +3236,7 @@ interface ImportFileOptions {
3189
3236
  displayName?: string | null;
3190
3237
  /**
3191
3238
  * ID of the file's parent folder. <br />
3239
+ * This folder is the path root for the `filePath`. <br />
3192
3240
  * Default: `media-root`.
3193
3241
  */
3194
3242
  parentFolderId?: string | null;
@@ -3205,11 +3253,10 @@ interface ImportFileOptions {
3205
3253
  /** Optional headers that should be sent with the external URL. */
3206
3254
  urlHeaders?: Record<string, any> | null;
3207
3255
  /**
3208
- * The path by folder names to create the file under.
3209
- * In case a folder in the path does not exist it will be created
3210
- * If multiple folders with the same name exist, the first one will be used
3211
- * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3212
- * example: 'videos/2024/december'
3256
+ * Path to the folder where the file will be stored.
3257
+ * For example, `/videos/2024/december`. <br/>
3258
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
3259
+ * The folders in the path will be created if they don't already exist. <br />
3213
3260
  */
3214
3261
  filePath?: string | null;
3215
3262
  }
@@ -3313,12 +3360,51 @@ interface ListDeletedFilesOptions {
3313
3360
  paging?: CursorPaging$1;
3314
3361
  }
3315
3362
 
3363
+ interface HttpClient$1 {
3364
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
3365
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3366
+ }
3367
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
3368
+ type HttpResponse$1<T = any> = {
3369
+ data: T;
3370
+ status: number;
3371
+ statusText: string;
3372
+ headers: any;
3373
+ request?: any;
3374
+ };
3375
+ type RequestOptions$1<_TResponse = any, Data = any> = {
3376
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3377
+ url: string;
3378
+ data?: Data;
3379
+ params?: URLSearchParams;
3380
+ } & APIMetadata$1;
3381
+ type APIMetadata$1 = {
3382
+ methodFqn?: string;
3383
+ entityFqdn?: string;
3384
+ packageName?: string;
3385
+ };
3386
+ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
3387
+ __type: 'event-definition';
3388
+ type: Type;
3389
+ isDomainEvent?: boolean;
3390
+ transformations?: (envelope: unknown) => Payload;
3391
+ __payload: Payload;
3392
+ };
3393
+ declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
3394
+
3395
+ declare global {
3396
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3397
+ interface SymbolConstructor {
3398
+ readonly observable: symbol;
3399
+ }
3400
+ }
3401
+
3316
3402
  declare const __metadata$1: {
3317
3403
  PACKAGE_NAME: string;
3318
3404
  };
3319
- declare function generateFilesDownloadUrl(httpClient: HttpClient): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
3320
- declare function generateFileDownloadUrl(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
3321
- declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & {
3405
+ declare function generateFilesDownloadUrl(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
3406
+ declare function generateFileDownloadUrl(httpClient: HttpClient$1): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
3407
+ declare function getFileDescriptor(httpClient: HttpClient$1): (fileId: string) => Promise<FileDescriptor & {
3322
3408
  _id: string;
3323
3409
  displayName: string;
3324
3410
  url: string;
@@ -3375,8 +3461,8 @@ declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) =>
3375
3461
  siteId: string;
3376
3462
  state: State$1;
3377
3463
  }>;
3378
- declare function getFileDescriptors(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
3379
- declare function updateFileDescriptor(httpClient: HttpClient): (file: FileDescriptor) => Promise<FileDescriptor & {
3464
+ declare function getFileDescriptors(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
3465
+ declare function updateFileDescriptor(httpClient: HttpClient$1): (file: FileDescriptor) => Promise<FileDescriptor & {
3380
3466
  _id: string;
3381
3467
  displayName: string;
3382
3468
  url: string;
@@ -3433,21 +3519,21 @@ declare function updateFileDescriptor(httpClient: HttpClient): (file: FileDescri
3433
3519
  siteId: string;
3434
3520
  state: State$1;
3435
3521
  }>;
3436
- declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
3437
- declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
3438
- declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
3439
- declare function bulkImportFiles(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
3440
- declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
3441
- declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
3442
- declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
3443
- declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
3444
- declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
3445
- declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
3446
- declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
3447
- declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
3448
- declare const onFileDescriptorDeleted: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
3449
- declare const onFileDescriptorFileReady: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
3450
- declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
3522
+ declare function generateFileUploadUrl(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
3523
+ declare function generateFileResumableUploadUrl(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
3524
+ declare function importFile(httpClient: HttpClient$1): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
3525
+ declare function bulkImportFiles(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
3526
+ declare function bulkImportFile(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
3527
+ declare function listFiles(httpClient: HttpClient$1): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
3528
+ declare function searchFiles(httpClient: HttpClient$1): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
3529
+ declare function generateVideoStreamingUrl(httpClient: HttpClient$1): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
3530
+ declare function bulkDeleteFiles(httpClient: HttpClient$1): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
3531
+ declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient$1): (fileIds: string[]) => Promise<void>;
3532
+ declare function listDeletedFiles(httpClient: HttpClient$1): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
3533
+ declare const onFileDescriptorUpdated: EventDefinition$1<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
3534
+ declare const onFileDescriptorDeleted: EventDefinition$1<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
3535
+ declare const onFileDescriptorFileReady: EventDefinition$1<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
3536
+ declare const onFileDescriptorFileFailed: EventDefinition$1<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
3451
3537
 
3452
3538
  type index_d$1_ApplicationError = ApplicationError;
3453
3539
  type index_d$1_Archive = Archive;
@@ -3533,13 +3619,13 @@ type index_d$1_Model3D = Model3D;
3533
3619
  type index_d$1_OperationStatus = OperationStatus;
3534
3620
  declare const index_d$1_OperationStatus: typeof OperationStatus;
3535
3621
  type index_d$1_OtherMedia = OtherMedia;
3622
+ type index_d$1_RestoreInfo = RestoreInfo;
3536
3623
  type index_d$1_SearchFilesOptions = SearchFilesOptions;
3537
3624
  type index_d$1_SearchFilesRequest = SearchFilesRequest;
3538
3625
  type index_d$1_SearchFilesResponse = SearchFilesResponse;
3539
3626
  type index_d$1_SearchFilesResponseNonNullableFields = SearchFilesResponseNonNullableFields;
3540
3627
  type index_d$1_StreamFormat = StreamFormat;
3541
3628
  declare const index_d$1_StreamFormat: typeof StreamFormat;
3542
- type index_d$1_UndeleteInfo = UndeleteInfo;
3543
3629
  type index_d$1_UpdateFileDescriptorRequest = UpdateFileDescriptorRequest;
3544
3630
  type index_d$1_UpdateFileDescriptorResponse = UpdateFileDescriptorResponse;
3545
3631
  type index_d$1_UpdateFileDescriptorResponseNonNullableFields = UpdateFileDescriptorResponseNonNullableFields;
@@ -3569,7 +3655,7 @@ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
3569
3655
  declare const index_d$1_searchFiles: typeof searchFiles;
3570
3656
  declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
3571
3657
  declare namespace index_d$1 {
3572
- export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UndeleteInfo as UndeleteInfo, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
3658
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_RestoreInfo as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
3573
3659
  }
3574
3660
 
3575
3661
  interface Folder {
@@ -4089,6 +4175,45 @@ interface ListDeletedFoldersOptions {
4089
4175
  paging?: CursorPaging;
4090
4176
  }
4091
4177
 
4178
+ interface HttpClient {
4179
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4180
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
4181
+ }
4182
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
4183
+ type HttpResponse<T = any> = {
4184
+ data: T;
4185
+ status: number;
4186
+ statusText: string;
4187
+ headers: any;
4188
+ request?: any;
4189
+ };
4190
+ type RequestOptions<_TResponse = any, Data = any> = {
4191
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
4192
+ url: string;
4193
+ data?: Data;
4194
+ params?: URLSearchParams;
4195
+ } & APIMetadata;
4196
+ type APIMetadata = {
4197
+ methodFqn?: string;
4198
+ entityFqdn?: string;
4199
+ packageName?: string;
4200
+ };
4201
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
4202
+ __type: 'event-definition';
4203
+ type: Type;
4204
+ isDomainEvent?: boolean;
4205
+ transformations?: (envelope: unknown) => Payload;
4206
+ __payload: Payload;
4207
+ };
4208
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
4209
+
4210
+ declare global {
4211
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4212
+ interface SymbolConstructor {
4213
+ readonly observable: symbol;
4214
+ }
4215
+ }
4216
+
4092
4217
  declare const __metadata: {
4093
4218
  PACKAGE_NAME: string;
4094
4219
  };