@wix/autocms-collection-metadata-service 1.0.1 → 1.0.3

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.
@@ -1 +1,2 @@
1
- export * as autocms from '@wix/autocms-collection-metadata-service_autocms';
1
+ import * as autocms from '@wix/autocms-collection-metadata-service_autocms';
2
+ export { autocms };
@@ -24,5 +24,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.autocms = void 0;
27
- exports.autocms = __importStar(require("@wix/autocms-collection-metadata-service_autocms"));
27
+ const autocms = __importStar(require("@wix/autocms-collection-metadata-service_autocms"));
28
+ exports.autocms = autocms;
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4FAA4E"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAA4E;AAEnE,0BAAO"}
@@ -1 +1,2 @@
1
- export * as autocms from '@wix/autocms-collection-metadata-service_autocms';
1
+ import * as autocms from '@wix/autocms-collection-metadata-service_autocms';
2
+ export { autocms };
package/build/es/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export * as autocms from '@wix/autocms-collection-metadata-service_autocms';
1
+ import * as autocms from '@wix/autocms-collection-metadata-service_autocms';
2
+ export { autocms };
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kDAAkD,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/autocms-collection-metadata-service",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/autocms-collection-metadata-service_autocms": "1.0.1"
21
+ "@wix/autocms-collection-metadata-service_autocms": "1.0.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "glob": "^10.4.1",
@@ -27,8 +27,9 @@
27
27
  "typescript": "^5.3.2"
28
28
  },
29
29
  "scripts": {
30
- "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
30
+ "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles && npm run build:validate-dts",
31
31
  "build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
32
+ "build:validate-dts": "tsc type-bundles/*.d.ts --noEmit",
32
33
  "test": ":"
33
34
  },
34
35
  "wix": {
@@ -42,5 +43,5 @@
42
43
  "fqdn": ""
43
44
  }
44
45
  },
45
- "falconPackageHash": "762702f9ac25d2602e39606a1367502a5f59b33c6a8b91f2e3b49f0e"
46
+ "falconPackageHash": "03efaa219afa17adbf323069e086b42ae75410e3265eca7288fbf25d"
46
47
  }
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /** CollectionMetadata contains CM-specific metadata for a collection */
2
46
  interface CollectionMetadata {
3
47
  /** ID of data collection */
@@ -82,7 +126,7 @@ interface ListCollectionMetadataResponse {
82
126
  pagingMetadata?: CursorPagingMetadata;
83
127
  }
84
128
  interface CursorPagingMetadata {
85
- /** Number of items returned in the response. */
129
+ /** Number of items returned in current page. */
86
130
  count?: number | null;
87
131
  /** Cursor strings that point to the next page, previous page, or both. */
88
132
  cursors?: Cursors;
@@ -353,7 +397,14 @@ declare enum Namespace {
353
397
  */
354
398
  BRANDED_FIRST = "BRANDED_FIRST",
355
399
  /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
356
- NOWNIA = "NOWNIA"
400
+ NOWNIA = "NOWNIA",
401
+ /**
402
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
403
+ * The Partners company owns this namespace.
404
+ */
405
+ UGC_TEMPLATE = "UGC_TEMPLATE",
406
+ /** Codux Headless Sites */
407
+ CODUX = "CODUX"
357
408
  }
358
409
  /** Site transferred to another user. */
359
410
  interface SiteTransferred {
@@ -406,6 +457,8 @@ interface ServiceProvisioned {
406
457
  originInstanceId?: string;
407
458
  /** A version. */
408
459
  version?: string | null;
460
+ /** The origin meta site id */
461
+ originMetaSiteId?: string | null;
409
462
  }
410
463
  interface ServiceRemoved {
411
464
  /** Either UUID or EmbeddedServiceType. */
@@ -565,63 +618,87 @@ interface ListCollectionMetadataOptions {
565
618
  paging?: CursorPaging;
566
619
  }
567
620
 
568
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
569
- interface HttpClient {
570
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
571
- fetchWithAuth: typeof fetch;
572
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
621
+ declare function createCollectionMetadata$1(httpClient: HttpClient): CreateCollectionMetadataSignature;
622
+ interface CreateCollectionMetadataSignature {
623
+ /**
624
+ * Creates a new CollectionMetadata
625
+ * ### Error codes:
626
+ * - `METADATA_EXISTS` when metadata already exists for given collection
627
+ * @param - CollectionMetadata to be created
628
+ * @returns The created CollectionMetadata
629
+ */
630
+ (collectionMetadata: CollectionMetadata): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
573
631
  }
574
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
575
- type HttpResponse<T = any> = {
576
- data: T;
577
- status: number;
578
- statusText: string;
579
- headers: any;
580
- request?: any;
581
- };
582
- type RequestOptions<_TResponse = any, Data = any> = {
583
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
584
- url: string;
585
- data?: Data;
586
- params?: URLSearchParams;
587
- } & APIMetadata;
588
- type APIMetadata = {
589
- methodFqn?: string;
590
- entityFqdn?: string;
591
- packageName?: string;
592
- };
593
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
594
- type EventDefinition<Payload = unknown, Type extends string = string> = {
595
- __type: 'event-definition';
596
- type: Type;
597
- isDomainEvent?: boolean;
598
- transformations?: (envelope: unknown) => Payload;
599
- __payload: Payload;
600
- };
601
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
602
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
603
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
604
-
605
- declare global {
606
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
607
- interface SymbolConstructor {
608
- readonly observable: symbol;
609
- }
632
+ declare function getCollectionMetadata$1(httpClient: HttpClient): GetCollectionMetadataSignature;
633
+ interface GetCollectionMetadataSignature {
634
+ /**
635
+ * Get a CollectionMetadata by collection id
636
+ * ### Error codes:
637
+ * - `ITEM_NOT_FOUND` if no metadata exists for given collection
638
+ * @param - Id of collection to retrieve metadata for
639
+ * @returns The retrieved CollectionMetadata
640
+ */
641
+ (dataCollectionId: string): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
610
642
  }
611
-
612
- declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
643
+ declare function updateCollectionMetadata$1(httpClient: HttpClient): UpdateCollectionMetadataSignature;
644
+ interface UpdateCollectionMetadataSignature {
645
+ /**
646
+ * Updates provided metadata fields for given collection ID
647
+ * ### Error codes:
648
+ * - `ITEM_NOT_FOUND` if no metadata exists for given collection
649
+ * @param - ID of metadata to update, ignored if collection_metadata.data_collection_id is non-empty
650
+ * exists because of docs generation issue with nested fields and ** path variables
651
+ * @param - CollectionMetadata to be updated, may be partial
652
+ * @returns The updated CollectionMetadata
653
+ */
654
+ (dataCollectionId: string, collectionMetadata: CollectionMetadata): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
655
+ }
656
+ declare function replaceCollectionMetadata$1(httpClient: HttpClient): ReplaceCollectionMetadataSignature;
657
+ interface ReplaceCollectionMetadataSignature {
658
+ /**
659
+ * Replaces all metadatas
660
+ */
661
+ (options?: ReplaceCollectionMetadataOptions | undefined): Promise<void>;
662
+ }
663
+ declare function deleteCollectionMetadata$1(httpClient: HttpClient): DeleteCollectionMetadataSignature;
664
+ interface DeleteCollectionMetadataSignature {
665
+ /**
666
+ * Delete a CollectionMetadata
667
+ * @param - Id of collection to delete metadata for
668
+ */
669
+ (dataCollectionId: string): Promise<void>;
670
+ }
671
+ declare function listCollectionMetadata$1(httpClient: HttpClient): ListCollectionMetadataSignature;
672
+ interface ListCollectionMetadataSignature {
673
+ /**
674
+ * Lists all known metadata
675
+ */
676
+ (options?: ListCollectionMetadataOptions | undefined): Promise<ListCollectionMetadataResponse & ListCollectionMetadataResponseNonNullableFields>;
677
+ }
678
+ declare const onCollectionMetadataCreated$1: EventDefinition<CollectionMetadataCreatedEnvelope, "wix.cloud.autocms.v3.collection_metadata_created">;
679
+ declare const onCollectionMetadataUpdated$1: EventDefinition<CollectionMetadataUpdatedEnvelope, "wix.cloud.autocms.v3.collection_metadata_updated">;
680
+ declare const onCollectionMetadataDeleted$1: EventDefinition<CollectionMetadataDeletedEnvelope, "wix.cloud.autocms.v3.collection_metadata_deleted">;
613
681
 
614
682
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
615
683
 
616
- declare const createCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicCreateCollectionMetadata>>;
617
- declare const getCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicGetCollectionMetadata>>;
618
- declare const updateCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicUpdateCollectionMetadata>>;
619
- declare const replaceCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicReplaceCollectionMetadata>>;
620
- declare const deleteCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicDeleteCollectionMetadata>>;
621
- declare const listCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicListCollectionMetadata>>;
622
- declare const onCollectionMetadataCreated: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataCreated>>;
623
- declare const onCollectionMetadataUpdated: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataUpdated>>;
624
- declare const onCollectionMetadataDeleted: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataDeleted>>;
684
+ declare const createCollectionMetadata: BuildRESTFunction<typeof createCollectionMetadata$1> & typeof createCollectionMetadata$1;
685
+ declare const getCollectionMetadata: BuildRESTFunction<typeof getCollectionMetadata$1> & typeof getCollectionMetadata$1;
686
+ declare const updateCollectionMetadata: BuildRESTFunction<typeof updateCollectionMetadata$1> & typeof updateCollectionMetadata$1;
687
+ declare const replaceCollectionMetadata: BuildRESTFunction<typeof replaceCollectionMetadata$1> & typeof replaceCollectionMetadata$1;
688
+ declare const deleteCollectionMetadata: BuildRESTFunction<typeof deleteCollectionMetadata$1> & typeof deleteCollectionMetadata$1;
689
+ declare const listCollectionMetadata: BuildRESTFunction<typeof listCollectionMetadata$1> & typeof listCollectionMetadata$1;
690
+
691
+ type _publicOnCollectionMetadataCreatedType = typeof onCollectionMetadataCreated$1;
692
+ /** */
693
+ declare const onCollectionMetadataCreated: ReturnType<typeof createEventModule<_publicOnCollectionMetadataCreatedType>>;
694
+
695
+ type _publicOnCollectionMetadataUpdatedType = typeof onCollectionMetadataUpdated$1;
696
+ /** */
697
+ declare const onCollectionMetadataUpdated: ReturnType<typeof createEventModule<_publicOnCollectionMetadataUpdatedType>>;
698
+
699
+ type _publicOnCollectionMetadataDeletedType = typeof onCollectionMetadataDeleted$1;
700
+ /** */
701
+ declare const onCollectionMetadataDeleted: ReturnType<typeof createEventModule<_publicOnCollectionMetadataDeletedType>>;
625
702
 
626
703
  type context_ActionEvent = ActionEvent;
627
704
  type context_Asset = Asset;
@@ -693,6 +770,9 @@ type context_UpdateCollectionMetadataResponse = UpdateCollectionMetadataResponse
693
770
  type context_UpdateCollectionMetadataResponseNonNullableFields = UpdateCollectionMetadataResponseNonNullableFields;
694
771
  type context_WebhookIdentityType = WebhookIdentityType;
695
772
  declare const context_WebhookIdentityType: typeof WebhookIdentityType;
773
+ type context__publicOnCollectionMetadataCreatedType = _publicOnCollectionMetadataCreatedType;
774
+ type context__publicOnCollectionMetadataDeletedType = _publicOnCollectionMetadataDeletedType;
775
+ type context__publicOnCollectionMetadataUpdatedType = _publicOnCollectionMetadataUpdatedType;
696
776
  declare const context_createCollectionMetadata: typeof createCollectionMetadata;
697
777
  declare const context_deleteCollectionMetadata: typeof deleteCollectionMetadata;
698
778
  declare const context_getCollectionMetadata: typeof getCollectionMetadata;
@@ -703,7 +783,7 @@ declare const context_onCollectionMetadataUpdated: typeof onCollectionMetadataUp
703
783
  declare const context_replaceCollectionMetadata: typeof replaceCollectionMetadata;
704
784
  declare const context_updateCollectionMetadata: typeof updateCollectionMetadata;
705
785
  declare namespace context {
706
- export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CollectionMetadata as CollectionMetadata, type context_CollectionMetadataCreatedEnvelope as CollectionMetadataCreatedEnvelope, type context_CollectionMetadataDeletedEnvelope as CollectionMetadataDeletedEnvelope, type context_CollectionMetadataNonNullableFields as CollectionMetadataNonNullableFields, type context_CollectionMetadataUpdatedEnvelope as CollectionMetadataUpdatedEnvelope, type context_CreateCollectionMetadataRequest as CreateCollectionMetadataRequest, type context_CreateCollectionMetadataResponse as CreateCollectionMetadataResponse, type context_CreateCollectionMetadataResponseNonNullableFields as CreateCollectionMetadataResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_Cursors as Cursors, type context_DeleteCollectionMetadataRequest as DeleteCollectionMetadataRequest, type context_DeleteCollectionMetadataResponse as DeleteCollectionMetadataResponse, type context_DeleteContext as DeleteContext, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetCollectionMetadataRequest as GetCollectionMetadataRequest, type context_GetCollectionMetadataResponse as GetCollectionMetadataResponse, type context_GetCollectionMetadataResponseNonNullableFields as GetCollectionMetadataResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListCollectionMetadataOptions as ListCollectionMetadataOptions, type context_ListCollectionMetadataRequest as ListCollectionMetadataRequest, type context_ListCollectionMetadataResponse as ListCollectionMetadataResponse, type context_ListCollectionMetadataResponseNonNullableFields as ListCollectionMetadataResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_PermissionsTemplateType as PermissionsTemplateType, type context_ReplaceCollectionMetadataOptions as ReplaceCollectionMetadataOptions, type context_ReplaceCollectionMetadataRequest as ReplaceCollectionMetadataRequest, type context_ReplaceCollectionMetadataResponse as ReplaceCollectionMetadataResponse, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateCollectionMetadataRequest as UpdateCollectionMetadataRequest, type context_UpdateCollectionMetadataResponse as UpdateCollectionMetadataResponse, type context_UpdateCollectionMetadataResponseNonNullableFields as UpdateCollectionMetadataResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_createCollectionMetadata as createCollectionMetadata, context_deleteCollectionMetadata as deleteCollectionMetadata, context_getCollectionMetadata as getCollectionMetadata, context_listCollectionMetadata as listCollectionMetadata, context_onCollectionMetadataCreated as onCollectionMetadataCreated, context_onCollectionMetadataDeleted as onCollectionMetadataDeleted, context_onCollectionMetadataUpdated as onCollectionMetadataUpdated, context_replaceCollectionMetadata as replaceCollectionMetadata, context_updateCollectionMetadata as updateCollectionMetadata };
786
+ export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CollectionMetadata as CollectionMetadata, type context_CollectionMetadataCreatedEnvelope as CollectionMetadataCreatedEnvelope, type context_CollectionMetadataDeletedEnvelope as CollectionMetadataDeletedEnvelope, type context_CollectionMetadataNonNullableFields as CollectionMetadataNonNullableFields, type context_CollectionMetadataUpdatedEnvelope as CollectionMetadataUpdatedEnvelope, type context_CreateCollectionMetadataRequest as CreateCollectionMetadataRequest, type context_CreateCollectionMetadataResponse as CreateCollectionMetadataResponse, type context_CreateCollectionMetadataResponseNonNullableFields as CreateCollectionMetadataResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_Cursors as Cursors, type context_DeleteCollectionMetadataRequest as DeleteCollectionMetadataRequest, type context_DeleteCollectionMetadataResponse as DeleteCollectionMetadataResponse, type context_DeleteContext as DeleteContext, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetCollectionMetadataRequest as GetCollectionMetadataRequest, type context_GetCollectionMetadataResponse as GetCollectionMetadataResponse, type context_GetCollectionMetadataResponseNonNullableFields as GetCollectionMetadataResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListCollectionMetadataOptions as ListCollectionMetadataOptions, type context_ListCollectionMetadataRequest as ListCollectionMetadataRequest, type context_ListCollectionMetadataResponse as ListCollectionMetadataResponse, type context_ListCollectionMetadataResponseNonNullableFields as ListCollectionMetadataResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_PermissionsTemplateType as PermissionsTemplateType, type context_ReplaceCollectionMetadataOptions as ReplaceCollectionMetadataOptions, type context_ReplaceCollectionMetadataRequest as ReplaceCollectionMetadataRequest, type context_ReplaceCollectionMetadataResponse as ReplaceCollectionMetadataResponse, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateCollectionMetadataRequest as UpdateCollectionMetadataRequest, type context_UpdateCollectionMetadataResponse as UpdateCollectionMetadataResponse, type context_UpdateCollectionMetadataResponseNonNullableFields as UpdateCollectionMetadataResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnCollectionMetadataCreatedType as _publicOnCollectionMetadataCreatedType, type context__publicOnCollectionMetadataDeletedType as _publicOnCollectionMetadataDeletedType, type context__publicOnCollectionMetadataUpdatedType as _publicOnCollectionMetadataUpdatedType, context_createCollectionMetadata as createCollectionMetadata, context_deleteCollectionMetadata as deleteCollectionMetadata, context_getCollectionMetadata as getCollectionMetadata, context_listCollectionMetadata as listCollectionMetadata, context_onCollectionMetadataCreated as onCollectionMetadataCreated, context_onCollectionMetadataDeleted as onCollectionMetadataDeleted, context_onCollectionMetadataUpdated as onCollectionMetadataUpdated, onCollectionMetadataCreated$1 as publicOnCollectionMetadataCreated, onCollectionMetadataDeleted$1 as publicOnCollectionMetadataDeleted, onCollectionMetadataUpdated$1 as publicOnCollectionMetadataUpdated, context_replaceCollectionMetadata as replaceCollectionMetadata, context_updateCollectionMetadata as updateCollectionMetadata };
707
787
  }
708
788
 
709
789
  export { context as autocms };
@@ -1,3 +1,47 @@
1
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2
+ interface HttpClient {
3
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
4
+ fetchWithAuth: typeof fetch;
5
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
6
+ }
7
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
8
+ type HttpResponse<T = any> = {
9
+ data: T;
10
+ status: number;
11
+ statusText: string;
12
+ headers: any;
13
+ request?: any;
14
+ };
15
+ type RequestOptions<_TResponse = any, Data = any> = {
16
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
17
+ url: string;
18
+ data?: Data;
19
+ params?: URLSearchParams;
20
+ } & APIMetadata;
21
+ type APIMetadata = {
22
+ methodFqn?: string;
23
+ entityFqdn?: string;
24
+ packageName?: string;
25
+ };
26
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
27
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
28
+ __type: 'event-definition';
29
+ type: Type;
30
+ isDomainEvent?: boolean;
31
+ transformations?: (envelope: unknown) => Payload;
32
+ __payload: Payload;
33
+ };
34
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
35
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
36
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
37
+
38
+ declare global {
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
40
+ interface SymbolConstructor {
41
+ readonly observable: symbol;
42
+ }
43
+ }
44
+
1
45
  /** CollectionMetadata contains CM-specific metadata for a collection */
2
46
  interface CollectionMetadata {
3
47
  /** ID of data collection */
@@ -82,7 +126,7 @@ interface ListCollectionMetadataResponse {
82
126
  pagingMetadata?: CursorPagingMetadata;
83
127
  }
84
128
  interface CursorPagingMetadata {
85
- /** Number of items returned in the response. */
129
+ /** Number of items returned in current page. */
86
130
  count?: number | null;
87
131
  /** Cursor strings that point to the next page, previous page, or both. */
88
132
  cursors?: Cursors;
@@ -353,7 +397,14 @@ declare enum Namespace {
353
397
  */
354
398
  BRANDED_FIRST = "BRANDED_FIRST",
355
399
  /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
356
- NOWNIA = "NOWNIA"
400
+ NOWNIA = "NOWNIA",
401
+ /**
402
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
403
+ * The Partners company owns this namespace.
404
+ */
405
+ UGC_TEMPLATE = "UGC_TEMPLATE",
406
+ /** Codux Headless Sites */
407
+ CODUX = "CODUX"
357
408
  }
358
409
  /** Site transferred to another user. */
359
410
  interface SiteTransferred {
@@ -406,6 +457,8 @@ interface ServiceProvisioned {
406
457
  originInstanceId?: string;
407
458
  /** A version. */
408
459
  version?: string | null;
460
+ /** The origin meta site id */
461
+ originMetaSiteId?: string | null;
409
462
  }
410
463
  interface ServiceRemoved {
411
464
  /** Either UUID or EmbeddedServiceType. */
@@ -565,63 +618,87 @@ interface ListCollectionMetadataOptions {
565
618
  paging?: CursorPaging;
566
619
  }
567
620
 
568
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
569
- interface HttpClient {
570
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
571
- fetchWithAuth: typeof fetch;
572
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
621
+ declare function createCollectionMetadata$1(httpClient: HttpClient): CreateCollectionMetadataSignature;
622
+ interface CreateCollectionMetadataSignature {
623
+ /**
624
+ * Creates a new CollectionMetadata
625
+ * ### Error codes:
626
+ * - `METADATA_EXISTS` when metadata already exists for given collection
627
+ * @param - CollectionMetadata to be created
628
+ * @returns The created CollectionMetadata
629
+ */
630
+ (collectionMetadata: CollectionMetadata): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
573
631
  }
574
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
575
- type HttpResponse<T = any> = {
576
- data: T;
577
- status: number;
578
- statusText: string;
579
- headers: any;
580
- request?: any;
581
- };
582
- type RequestOptions<_TResponse = any, Data = any> = {
583
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
584
- url: string;
585
- data?: Data;
586
- params?: URLSearchParams;
587
- } & APIMetadata;
588
- type APIMetadata = {
589
- methodFqn?: string;
590
- entityFqdn?: string;
591
- packageName?: string;
592
- };
593
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
594
- type EventDefinition<Payload = unknown, Type extends string = string> = {
595
- __type: 'event-definition';
596
- type: Type;
597
- isDomainEvent?: boolean;
598
- transformations?: (envelope: unknown) => Payload;
599
- __payload: Payload;
600
- };
601
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
602
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
603
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
604
-
605
- declare global {
606
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
607
- interface SymbolConstructor {
608
- readonly observable: symbol;
609
- }
632
+ declare function getCollectionMetadata$1(httpClient: HttpClient): GetCollectionMetadataSignature;
633
+ interface GetCollectionMetadataSignature {
634
+ /**
635
+ * Get a CollectionMetadata by collection id
636
+ * ### Error codes:
637
+ * - `ITEM_NOT_FOUND` if no metadata exists for given collection
638
+ * @param - Id of collection to retrieve metadata for
639
+ * @returns The retrieved CollectionMetadata
640
+ */
641
+ (dataCollectionId: string): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
610
642
  }
611
-
612
- declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
643
+ declare function updateCollectionMetadata$1(httpClient: HttpClient): UpdateCollectionMetadataSignature;
644
+ interface UpdateCollectionMetadataSignature {
645
+ /**
646
+ * Updates provided metadata fields for given collection ID
647
+ * ### Error codes:
648
+ * - `ITEM_NOT_FOUND` if no metadata exists for given collection
649
+ * @param - ID of metadata to update, ignored if collection_metadata.data_collection_id is non-empty
650
+ * exists because of docs generation issue with nested fields and ** path variables
651
+ * @param - CollectionMetadata to be updated, may be partial
652
+ * @returns The updated CollectionMetadata
653
+ */
654
+ (dataCollectionId: string, collectionMetadata: CollectionMetadata): Promise<CollectionMetadata & CollectionMetadataNonNullableFields>;
655
+ }
656
+ declare function replaceCollectionMetadata$1(httpClient: HttpClient): ReplaceCollectionMetadataSignature;
657
+ interface ReplaceCollectionMetadataSignature {
658
+ /**
659
+ * Replaces all metadatas
660
+ */
661
+ (options?: ReplaceCollectionMetadataOptions | undefined): Promise<void>;
662
+ }
663
+ declare function deleteCollectionMetadata$1(httpClient: HttpClient): DeleteCollectionMetadataSignature;
664
+ interface DeleteCollectionMetadataSignature {
665
+ /**
666
+ * Delete a CollectionMetadata
667
+ * @param - Id of collection to delete metadata for
668
+ */
669
+ (dataCollectionId: string): Promise<void>;
670
+ }
671
+ declare function listCollectionMetadata$1(httpClient: HttpClient): ListCollectionMetadataSignature;
672
+ interface ListCollectionMetadataSignature {
673
+ /**
674
+ * Lists all known metadata
675
+ */
676
+ (options?: ListCollectionMetadataOptions | undefined): Promise<ListCollectionMetadataResponse & ListCollectionMetadataResponseNonNullableFields>;
677
+ }
678
+ declare const onCollectionMetadataCreated$1: EventDefinition<CollectionMetadataCreatedEnvelope, "wix.cloud.autocms.v3.collection_metadata_created">;
679
+ declare const onCollectionMetadataUpdated$1: EventDefinition<CollectionMetadataUpdatedEnvelope, "wix.cloud.autocms.v3.collection_metadata_updated">;
680
+ declare const onCollectionMetadataDeleted$1: EventDefinition<CollectionMetadataDeletedEnvelope, "wix.cloud.autocms.v3.collection_metadata_deleted">;
613
681
 
614
682
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
615
683
 
616
- declare const createCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicCreateCollectionMetadata>>;
617
- declare const getCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicGetCollectionMetadata>>;
618
- declare const updateCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicUpdateCollectionMetadata>>;
619
- declare const replaceCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicReplaceCollectionMetadata>>;
620
- declare const deleteCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicDeleteCollectionMetadata>>;
621
- declare const listCollectionMetadata: ReturnType<typeof createRESTModule<typeof publicListCollectionMetadata>>;
622
- declare const onCollectionMetadataCreated: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataCreated>>;
623
- declare const onCollectionMetadataUpdated: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataUpdated>>;
624
- declare const onCollectionMetadataDeleted: ReturnType<typeof createEventModule<typeof publicOnCollectionMetadataDeleted>>;
684
+ declare const createCollectionMetadata: BuildRESTFunction<typeof createCollectionMetadata$1> & typeof createCollectionMetadata$1;
685
+ declare const getCollectionMetadata: BuildRESTFunction<typeof getCollectionMetadata$1> & typeof getCollectionMetadata$1;
686
+ declare const updateCollectionMetadata: BuildRESTFunction<typeof updateCollectionMetadata$1> & typeof updateCollectionMetadata$1;
687
+ declare const replaceCollectionMetadata: BuildRESTFunction<typeof replaceCollectionMetadata$1> & typeof replaceCollectionMetadata$1;
688
+ declare const deleteCollectionMetadata: BuildRESTFunction<typeof deleteCollectionMetadata$1> & typeof deleteCollectionMetadata$1;
689
+ declare const listCollectionMetadata: BuildRESTFunction<typeof listCollectionMetadata$1> & typeof listCollectionMetadata$1;
690
+
691
+ type _publicOnCollectionMetadataCreatedType = typeof onCollectionMetadataCreated$1;
692
+ /** */
693
+ declare const onCollectionMetadataCreated: ReturnType<typeof createEventModule<_publicOnCollectionMetadataCreatedType>>;
694
+
695
+ type _publicOnCollectionMetadataUpdatedType = typeof onCollectionMetadataUpdated$1;
696
+ /** */
697
+ declare const onCollectionMetadataUpdated: ReturnType<typeof createEventModule<_publicOnCollectionMetadataUpdatedType>>;
698
+
699
+ type _publicOnCollectionMetadataDeletedType = typeof onCollectionMetadataDeleted$1;
700
+ /** */
701
+ declare const onCollectionMetadataDeleted: ReturnType<typeof createEventModule<_publicOnCollectionMetadataDeletedType>>;
625
702
 
626
703
  type index_d_ActionEvent = ActionEvent;
627
704
  type index_d_Asset = Asset;
@@ -693,6 +770,9 @@ type index_d_UpdateCollectionMetadataResponse = UpdateCollectionMetadataResponse
693
770
  type index_d_UpdateCollectionMetadataResponseNonNullableFields = UpdateCollectionMetadataResponseNonNullableFields;
694
771
  type index_d_WebhookIdentityType = WebhookIdentityType;
695
772
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
773
+ type index_d__publicOnCollectionMetadataCreatedType = _publicOnCollectionMetadataCreatedType;
774
+ type index_d__publicOnCollectionMetadataDeletedType = _publicOnCollectionMetadataDeletedType;
775
+ type index_d__publicOnCollectionMetadataUpdatedType = _publicOnCollectionMetadataUpdatedType;
696
776
  declare const index_d_createCollectionMetadata: typeof createCollectionMetadata;
697
777
  declare const index_d_deleteCollectionMetadata: typeof deleteCollectionMetadata;
698
778
  declare const index_d_getCollectionMetadata: typeof getCollectionMetadata;
@@ -703,7 +783,7 @@ declare const index_d_onCollectionMetadataUpdated: typeof onCollectionMetadataUp
703
783
  declare const index_d_replaceCollectionMetadata: typeof replaceCollectionMetadata;
704
784
  declare const index_d_updateCollectionMetadata: typeof updateCollectionMetadata;
705
785
  declare namespace index_d {
706
- export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CollectionMetadata as CollectionMetadata, type index_d_CollectionMetadataCreatedEnvelope as CollectionMetadataCreatedEnvelope, type index_d_CollectionMetadataDeletedEnvelope as CollectionMetadataDeletedEnvelope, type index_d_CollectionMetadataNonNullableFields as CollectionMetadataNonNullableFields, type index_d_CollectionMetadataUpdatedEnvelope as CollectionMetadataUpdatedEnvelope, type index_d_CreateCollectionMetadataRequest as CreateCollectionMetadataRequest, type index_d_CreateCollectionMetadataResponse as CreateCollectionMetadataResponse, type index_d_CreateCollectionMetadataResponseNonNullableFields as CreateCollectionMetadataResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_DeleteCollectionMetadataRequest as DeleteCollectionMetadataRequest, type index_d_DeleteCollectionMetadataResponse as DeleteCollectionMetadataResponse, type index_d_DeleteContext as DeleteContext, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetCollectionMetadataRequest as GetCollectionMetadataRequest, type index_d_GetCollectionMetadataResponse as GetCollectionMetadataResponse, type index_d_GetCollectionMetadataResponseNonNullableFields as GetCollectionMetadataResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListCollectionMetadataOptions as ListCollectionMetadataOptions, type index_d_ListCollectionMetadataRequest as ListCollectionMetadataRequest, type index_d_ListCollectionMetadataResponse as ListCollectionMetadataResponse, type index_d_ListCollectionMetadataResponseNonNullableFields as ListCollectionMetadataResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, index_d_PermissionsTemplateType as PermissionsTemplateType, type index_d_ReplaceCollectionMetadataOptions as ReplaceCollectionMetadataOptions, type index_d_ReplaceCollectionMetadataRequest as ReplaceCollectionMetadataRequest, type index_d_ReplaceCollectionMetadataResponse as ReplaceCollectionMetadataResponse, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateCollectionMetadataRequest as UpdateCollectionMetadataRequest, type index_d_UpdateCollectionMetadataResponse as UpdateCollectionMetadataResponse, type index_d_UpdateCollectionMetadataResponseNonNullableFields as UpdateCollectionMetadataResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d_createCollectionMetadata as createCollectionMetadata, index_d_deleteCollectionMetadata as deleteCollectionMetadata, index_d_getCollectionMetadata as getCollectionMetadata, index_d_listCollectionMetadata as listCollectionMetadata, index_d_onCollectionMetadataCreated as onCollectionMetadataCreated, index_d_onCollectionMetadataDeleted as onCollectionMetadataDeleted, index_d_onCollectionMetadataUpdated as onCollectionMetadataUpdated, index_d_replaceCollectionMetadata as replaceCollectionMetadata, index_d_updateCollectionMetadata as updateCollectionMetadata };
786
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CollectionMetadata as CollectionMetadata, type index_d_CollectionMetadataCreatedEnvelope as CollectionMetadataCreatedEnvelope, type index_d_CollectionMetadataDeletedEnvelope as CollectionMetadataDeletedEnvelope, type index_d_CollectionMetadataNonNullableFields as CollectionMetadataNonNullableFields, type index_d_CollectionMetadataUpdatedEnvelope as CollectionMetadataUpdatedEnvelope, type index_d_CreateCollectionMetadataRequest as CreateCollectionMetadataRequest, type index_d_CreateCollectionMetadataResponse as CreateCollectionMetadataResponse, type index_d_CreateCollectionMetadataResponseNonNullableFields as CreateCollectionMetadataResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_DeleteCollectionMetadataRequest as DeleteCollectionMetadataRequest, type index_d_DeleteCollectionMetadataResponse as DeleteCollectionMetadataResponse, type index_d_DeleteContext as DeleteContext, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetCollectionMetadataRequest as GetCollectionMetadataRequest, type index_d_GetCollectionMetadataResponse as GetCollectionMetadataResponse, type index_d_GetCollectionMetadataResponseNonNullableFields as GetCollectionMetadataResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListCollectionMetadataOptions as ListCollectionMetadataOptions, type index_d_ListCollectionMetadataRequest as ListCollectionMetadataRequest, type index_d_ListCollectionMetadataResponse as ListCollectionMetadataResponse, type index_d_ListCollectionMetadataResponseNonNullableFields as ListCollectionMetadataResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, index_d_PermissionsTemplateType as PermissionsTemplateType, type index_d_ReplaceCollectionMetadataOptions as ReplaceCollectionMetadataOptions, type index_d_ReplaceCollectionMetadataRequest as ReplaceCollectionMetadataRequest, type index_d_ReplaceCollectionMetadataResponse as ReplaceCollectionMetadataResponse, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateCollectionMetadataRequest as UpdateCollectionMetadataRequest, type index_d_UpdateCollectionMetadataResponse as UpdateCollectionMetadataResponse, type index_d_UpdateCollectionMetadataResponseNonNullableFields as UpdateCollectionMetadataResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnCollectionMetadataCreatedType as _publicOnCollectionMetadataCreatedType, type index_d__publicOnCollectionMetadataDeletedType as _publicOnCollectionMetadataDeletedType, type index_d__publicOnCollectionMetadataUpdatedType as _publicOnCollectionMetadataUpdatedType, index_d_createCollectionMetadata as createCollectionMetadata, index_d_deleteCollectionMetadata as deleteCollectionMetadata, index_d_getCollectionMetadata as getCollectionMetadata, index_d_listCollectionMetadata as listCollectionMetadata, index_d_onCollectionMetadataCreated as onCollectionMetadataCreated, index_d_onCollectionMetadataDeleted as onCollectionMetadataDeleted, index_d_onCollectionMetadataUpdated as onCollectionMetadataUpdated, onCollectionMetadataCreated$1 as publicOnCollectionMetadataCreated, onCollectionMetadataDeleted$1 as publicOnCollectionMetadataDeleted, onCollectionMetadataUpdated$1 as publicOnCollectionMetadataUpdated, index_d_replaceCollectionMetadata as replaceCollectionMetadata, index_d_updateCollectionMetadata as updateCollectionMetadata };
707
787
  }
708
788
 
709
789
  export { index_d as autocms };
@@ -82,7 +82,7 @@ interface ListCollectionMetadataResponse$1 {
82
82
  pagingMetadata?: CursorPagingMetadata$1;
83
83
  }
84
84
  interface CursorPagingMetadata$1 {
85
- /** Number of items returned in the response. */
85
+ /** Number of items returned in current page. */
86
86
  count?: number | null;
87
87
  /** Cursor strings that point to the next page, previous page, or both. */
88
88
  cursors?: Cursors$1;
@@ -201,7 +201,7 @@ interface ListCollectionMetadataResponse {
201
201
  pagingMetadata?: CursorPagingMetadata;
202
202
  }
203
203
  interface CursorPagingMetadata {
204
- /** Number of items returned in the response. */
204
+ /** Number of items returned in current page. */
205
205
  count?: number | null;
206
206
  /** Cursor strings that point to the next page, previous page, or both. */
207
207
  cursors?: Cursors;