@wix/crm 1.0.168 → 1.0.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/crm",
3
- "version": "1.0.168",
3
+ "version": "1.0.169",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/crm_attachments": "1.0.25",
24
+ "@wix/crm_attachments": "1.0.26",
25
25
  "@wix/crm_contacts": "1.0.70",
26
26
  "@wix/crm_extended-fields": "1.0.50",
27
27
  "@wix/crm_labels": "1.0.49",
@@ -51,5 +51,5 @@
51
51
  "fqdn": ""
52
52
  }
53
53
  },
54
- "falconPackageHash": "b53d0b8d0346dc9e860b5cae8162858a11d7f445f1ec14c209c8f1a3"
54
+ "falconPackageHash": "7dbfc5d6b9fa54997e8a7f52e9a539cbf8e6e3ae621a3251d25179e9"
55
55
  }
@@ -796,6 +796,59 @@ interface ListAttachmentsResponseNonNullableFields {
796
796
  interface GetAttachmentResponseNonNullableFields {
797
797
  attachment?: ContactAttachmentNonNullableFields;
798
798
  }
799
+ interface BaseEventMetadata$4 {
800
+ /** App instance ID. */
801
+ instanceId?: string | null;
802
+ /** Event type. */
803
+ eventType?: string;
804
+ /** The identification type and identity data. */
805
+ identity?: IdentificationData$5;
806
+ }
807
+ interface EventMetadata$4 extends BaseEventMetadata$4 {
808
+ /**
809
+ * Unique event ID.
810
+ * Allows clients to ignore duplicate webhooks.
811
+ */
812
+ _id?: string;
813
+ /**
814
+ * Assumes actions are also always typed to an entity_type
815
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
816
+ */
817
+ entityFqdn?: string;
818
+ /**
819
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
820
+ * This is although the created/updated/deleted notion is duplication of the oneof types
821
+ * Example: created/updated/deleted/started/completed/email_opened
822
+ */
823
+ slug?: string;
824
+ /** ID of the entity associated with the event. */
825
+ entityId?: string;
826
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
827
+ eventTime?: Date | null;
828
+ /**
829
+ * Whether the event was triggered as a result of a privacy regulation application
830
+ * (for example, GDPR).
831
+ */
832
+ triggeredByAnonymizeRequest?: boolean | null;
833
+ /** If present, indicates the action that triggered the event. */
834
+ originatedFrom?: string | null;
835
+ /**
836
+ * A sequence number defining the order of updates to the underlying entity.
837
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
838
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
839
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
840
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
841
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
842
+ */
843
+ entityEventSequence?: string | null;
844
+ }
845
+ interface AttachmentCreatedEnvelope {
846
+ entity: ContactAttachment;
847
+ metadata: EventMetadata$4;
848
+ }
849
+ interface AttachmentDeletedEnvelope {
850
+ metadata: EventMetadata$4;
851
+ }
799
852
  interface GenerateAttachmentUploadUrlOptions {
800
853
  /**
801
854
  * Mime type of the attachment file, for example, `application/pdf`.
@@ -856,12 +909,26 @@ interface GetAttachmentSignature {
856
909
  */
857
910
  (identifiers: GetAttachmentIdentifiers): Promise<ContactAttachment & ContactAttachmentNonNullableFields>;
858
911
  }
912
+ declare const onAttachmentCreated$1: EventDefinition<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
913
+ declare const onAttachmentDeleted$1: EventDefinition<AttachmentDeletedEnvelope, "wix.contacts.v4.attachment_deleted">;
914
+
915
+ declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
859
916
 
860
917
  declare const generateAttachmentUploadUrl: MaybeContext<BuildRESTFunction<typeof generateAttachmentUploadUrl$1> & typeof generateAttachmentUploadUrl$1>;
861
918
  declare const listAttachments: MaybeContext<BuildRESTFunction<typeof listAttachments$1> & typeof listAttachments$1>;
862
919
  declare const deleteAttachment: MaybeContext<BuildRESTFunction<typeof deleteAttachment$1> & typeof deleteAttachment$1>;
863
920
  declare const getAttachment: MaybeContext<BuildRESTFunction<typeof getAttachment$1> & typeof getAttachment$1>;
864
921
 
922
+ type _publicOnAttachmentCreatedType = typeof onAttachmentCreated$1;
923
+ /** */
924
+ declare const onAttachmentCreated: ReturnType<typeof createEventModule$4<_publicOnAttachmentCreatedType>>;
925
+
926
+ type _publicOnAttachmentDeletedType = typeof onAttachmentDeleted$1;
927
+ /** */
928
+ declare const onAttachmentDeleted: ReturnType<typeof createEventModule$4<_publicOnAttachmentDeletedType>>;
929
+
930
+ type context$5_AttachmentCreatedEnvelope = AttachmentCreatedEnvelope;
931
+ type context$5_AttachmentDeletedEnvelope = AttachmentDeletedEnvelope;
865
932
  type context$5_AttachmentMedia = AttachmentMedia;
866
933
  type context$5_AttachmentMediaMediaOneOf = AttachmentMediaMediaOneOf;
867
934
  type context$5_AttachmentMetadata = AttachmentMetadata;
@@ -895,12 +962,16 @@ type context$5_ListAttachmentsRequest = ListAttachmentsRequest;
895
962
  type context$5_ListAttachmentsResponse = ListAttachmentsResponse;
896
963
  type context$5_ListAttachmentsResponseNonNullableFields = ListAttachmentsResponseNonNullableFields;
897
964
  type context$5_MediaFileUploadedEvent = MediaFileUploadedEvent;
965
+ type context$5__publicOnAttachmentCreatedType = _publicOnAttachmentCreatedType;
966
+ type context$5__publicOnAttachmentDeletedType = _publicOnAttachmentDeletedType;
898
967
  declare const context$5_deleteAttachment: typeof deleteAttachment;
899
968
  declare const context$5_generateAttachmentUploadUrl: typeof generateAttachmentUploadUrl;
900
969
  declare const context$5_getAttachment: typeof getAttachment;
901
970
  declare const context$5_listAttachments: typeof listAttachments;
971
+ declare const context$5_onAttachmentCreated: typeof onAttachmentCreated;
972
+ declare const context$5_onAttachmentDeleted: typeof onAttachmentDeleted;
902
973
  declare namespace context$5 {
903
- export { type ActionEvent$4 as ActionEvent, type context$5_AttachmentMedia as AttachmentMedia, type context$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type context$5_AttachmentMetadata as AttachmentMetadata, type context$5_AttachmentSource as AttachmentSource, context$5_AttachmentType as AttachmentType, type context$5_ContactAttachment as ContactAttachment, type context$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type context$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type context$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type context$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type context$5_CrmAttachment as CrmAttachment, context$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type context$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type context$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type context$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type context$5_DeleteAttachmentResponse as DeleteAttachmentResponse, context$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type context$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type context$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type context$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type context$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type context$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type context$5_GetAttachmentRequest as GetAttachmentRequest, type context$5_GetAttachmentResponse as GetAttachmentResponse, type context$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type context$5_ListAttachmentsOptions as ListAttachmentsOptions, type context$5_ListAttachmentsRequest as ListAttachmentsRequest, type context$5_ListAttachmentsResponse as ListAttachmentsResponse, type context$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type context$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, context$5_deleteAttachment as deleteAttachment, context$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, context$5_getAttachment as getAttachment, context$5_listAttachments as listAttachments };
974
+ export { type ActionEvent$4 as ActionEvent, type context$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type context$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type context$5_AttachmentMedia as AttachmentMedia, type context$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type context$5_AttachmentMetadata as AttachmentMetadata, type context$5_AttachmentSource as AttachmentSource, context$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type context$5_ContactAttachment as ContactAttachment, type context$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type context$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type context$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type context$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type context$5_CrmAttachment as CrmAttachment, context$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type context$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type context$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type context$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type context$5_DeleteAttachmentResponse as DeleteAttachmentResponse, context$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type context$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type context$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type context$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type context$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type context$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type context$5_GetAttachmentRequest as GetAttachmentRequest, type context$5_GetAttachmentResponse as GetAttachmentResponse, type context$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type context$5_ListAttachmentsOptions as ListAttachmentsOptions, type context$5_ListAttachmentsRequest as ListAttachmentsRequest, type context$5_ListAttachmentsResponse as ListAttachmentsResponse, type context$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type context$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, type context$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type context$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, context$5_deleteAttachment as deleteAttachment, context$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, context$5_getAttachment as getAttachment, context$5_listAttachments as listAttachments, context$5_onAttachmentCreated as onAttachmentCreated, context$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
904
975
  }
905
976
 
906
977
  interface Contact {
@@ -796,6 +796,59 @@ interface ListAttachmentsResponseNonNullableFields {
796
796
  interface GetAttachmentResponseNonNullableFields {
797
797
  attachment?: ContactAttachmentNonNullableFields;
798
798
  }
799
+ interface BaseEventMetadata$4 {
800
+ /** App instance ID. */
801
+ instanceId?: string | null;
802
+ /** Event type. */
803
+ eventType?: string;
804
+ /** The identification type and identity data. */
805
+ identity?: IdentificationData$5;
806
+ }
807
+ interface EventMetadata$4 extends BaseEventMetadata$4 {
808
+ /**
809
+ * Unique event ID.
810
+ * Allows clients to ignore duplicate webhooks.
811
+ */
812
+ _id?: string;
813
+ /**
814
+ * Assumes actions are also always typed to an entity_type
815
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
816
+ */
817
+ entityFqdn?: string;
818
+ /**
819
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
820
+ * This is although the created/updated/deleted notion is duplication of the oneof types
821
+ * Example: created/updated/deleted/started/completed/email_opened
822
+ */
823
+ slug?: string;
824
+ /** ID of the entity associated with the event. */
825
+ entityId?: string;
826
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
827
+ eventTime?: Date | null;
828
+ /**
829
+ * Whether the event was triggered as a result of a privacy regulation application
830
+ * (for example, GDPR).
831
+ */
832
+ triggeredByAnonymizeRequest?: boolean | null;
833
+ /** If present, indicates the action that triggered the event. */
834
+ originatedFrom?: string | null;
835
+ /**
836
+ * A sequence number defining the order of updates to the underlying entity.
837
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
838
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
839
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
840
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
841
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
842
+ */
843
+ entityEventSequence?: string | null;
844
+ }
845
+ interface AttachmentCreatedEnvelope {
846
+ entity: ContactAttachment;
847
+ metadata: EventMetadata$4;
848
+ }
849
+ interface AttachmentDeletedEnvelope {
850
+ metadata: EventMetadata$4;
851
+ }
799
852
  interface GenerateAttachmentUploadUrlOptions {
800
853
  /**
801
854
  * Mime type of the attachment file, for example, `application/pdf`.
@@ -856,12 +909,26 @@ interface GetAttachmentSignature {
856
909
  */
857
910
  (identifiers: GetAttachmentIdentifiers): Promise<ContactAttachment & ContactAttachmentNonNullableFields>;
858
911
  }
912
+ declare const onAttachmentCreated$1: EventDefinition<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
913
+ declare const onAttachmentDeleted$1: EventDefinition<AttachmentDeletedEnvelope, "wix.contacts.v4.attachment_deleted">;
914
+
915
+ declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
859
916
 
860
917
  declare const generateAttachmentUploadUrl: MaybeContext<BuildRESTFunction<typeof generateAttachmentUploadUrl$1> & typeof generateAttachmentUploadUrl$1>;
861
918
  declare const listAttachments: MaybeContext<BuildRESTFunction<typeof listAttachments$1> & typeof listAttachments$1>;
862
919
  declare const deleteAttachment: MaybeContext<BuildRESTFunction<typeof deleteAttachment$1> & typeof deleteAttachment$1>;
863
920
  declare const getAttachment: MaybeContext<BuildRESTFunction<typeof getAttachment$1> & typeof getAttachment$1>;
864
921
 
922
+ type _publicOnAttachmentCreatedType = typeof onAttachmentCreated$1;
923
+ /** */
924
+ declare const onAttachmentCreated: ReturnType<typeof createEventModule$4<_publicOnAttachmentCreatedType>>;
925
+
926
+ type _publicOnAttachmentDeletedType = typeof onAttachmentDeleted$1;
927
+ /** */
928
+ declare const onAttachmentDeleted: ReturnType<typeof createEventModule$4<_publicOnAttachmentDeletedType>>;
929
+
930
+ type index_d$5_AttachmentCreatedEnvelope = AttachmentCreatedEnvelope;
931
+ type index_d$5_AttachmentDeletedEnvelope = AttachmentDeletedEnvelope;
865
932
  type index_d$5_AttachmentMedia = AttachmentMedia;
866
933
  type index_d$5_AttachmentMediaMediaOneOf = AttachmentMediaMediaOneOf;
867
934
  type index_d$5_AttachmentMetadata = AttachmentMetadata;
@@ -895,12 +962,16 @@ type index_d$5_ListAttachmentsRequest = ListAttachmentsRequest;
895
962
  type index_d$5_ListAttachmentsResponse = ListAttachmentsResponse;
896
963
  type index_d$5_ListAttachmentsResponseNonNullableFields = ListAttachmentsResponseNonNullableFields;
897
964
  type index_d$5_MediaFileUploadedEvent = MediaFileUploadedEvent;
965
+ type index_d$5__publicOnAttachmentCreatedType = _publicOnAttachmentCreatedType;
966
+ type index_d$5__publicOnAttachmentDeletedType = _publicOnAttachmentDeletedType;
898
967
  declare const index_d$5_deleteAttachment: typeof deleteAttachment;
899
968
  declare const index_d$5_generateAttachmentUploadUrl: typeof generateAttachmentUploadUrl;
900
969
  declare const index_d$5_getAttachment: typeof getAttachment;
901
970
  declare const index_d$5_listAttachments: typeof listAttachments;
971
+ declare const index_d$5_onAttachmentCreated: typeof onAttachmentCreated;
972
+ declare const index_d$5_onAttachmentDeleted: typeof onAttachmentDeleted;
902
973
  declare namespace index_d$5 {
903
- export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments };
974
+ export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type index_d$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, type index_d$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type index_d$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments, index_d$5_onAttachmentCreated as onAttachmentCreated, index_d$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
904
975
  }
905
976
 
906
977
  interface Contact {