@wix/auto_sdk_automations_automations-v-2 1.0.28 → 1.0.29

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.
@@ -269,6 +269,23 @@ declare enum Operator {
269
269
  }
270
270
  /** @enumType */
271
271
  type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';
272
+ interface CodeSnippet {
273
+ /** Logical operator used to evaluate the condition expressions. */
274
+ language?: LanguageWithLiterals;
275
+ /**
276
+ * Expressions evaluated using the selected operator. this code should comply the language syntax. and format
277
+ * @maxLength 1000
278
+ */
279
+ code?: string;
280
+ }
281
+ declare enum Language {
282
+ /** Unknown. */
283
+ UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
284
+ /** `JAVASCRIPT` language. */
285
+ JAVASCRIPT = "JAVASCRIPT"
286
+ }
287
+ /** @enumType */
288
+ type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
272
289
  /** Path definition */
273
290
  interface Path {
274
291
  /**
@@ -357,6 +374,22 @@ interface ConditionAction {
357
374
  */
358
375
  falsePostActionIds?: string[];
359
376
  }
377
+ interface CodeConditionAction {
378
+ /** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
379
+ snippet?: CodeSnippet;
380
+ /**
381
+ * IDs of actions to run when the condition evaluates to `true`.
382
+ * @maxSize 20
383
+ * @format GUID
384
+ */
385
+ truePostActionIds?: string[];
386
+ /**
387
+ * IDs of actions to run when the condition evaluates to `false`.
388
+ * @maxSize 20
389
+ * @format GUID
390
+ */
391
+ falsePostActionIds?: string[];
392
+ }
360
393
  interface DelayAction {
361
394
  /**
362
395
  * Time to wait before running the action. The wait time starts from when the current action completes.
@@ -644,30 +677,14 @@ interface ExtendedFields {
644
677
  */
645
678
  namespaces?: Record<string, Record<string, any>>;
646
679
  }
647
- interface AutomationMigrationRequest {
648
- /**
649
- * Automation id
650
- * @format GUID
651
- */
652
- userAutomationId?: string;
653
- /**
654
- * An automation to use to migrate the old automation
655
- * @readonly
656
- */
657
- automation?: Automation;
658
- /**
659
- * List of action ids to override in the automations.
660
- * @format GUID
661
- * @maxSize 100
662
- */
663
- overrideActionIds?: string[];
664
- /** if true, the trigger will be overridden */
665
- overrideTrigger?: boolean;
680
+ interface AutoArchivePolicy {
666
681
  /**
667
- * Job id
668
- * @format GUID
682
+ * Date when to archive the automation
683
+ * If this date in the past, nothing will happen (automation will not go into archived state)
684
+ * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE
685
+ * After this date the automation may be unarchived and archived again, this date will have no influence
669
686
  */
670
- jobId?: string;
687
+ archiveDate?: Date | null;
671
688
  }
672
689
  interface UpdatedWithPreviousEntity {
673
690
  /** Previous automation. */
@@ -694,244 +711,6 @@ interface DraftPublished {
694
711
  /** Updated, published automation. */
695
712
  updatedAutomation?: Automation;
696
713
  }
697
- interface DomainEvent extends DomainEventBodyOneOf {
698
- createdEvent?: EntityCreatedEvent;
699
- updatedEvent?: EntityUpdatedEvent;
700
- deletedEvent?: EntityDeletedEvent;
701
- actionEvent?: ActionEvent;
702
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
703
- _id?: string;
704
- /**
705
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
706
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
707
- */
708
- entityFqdn?: string;
709
- /**
710
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
711
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
712
- */
713
- slug?: string;
714
- /** ID of the entity associated with the event. */
715
- entityId?: string;
716
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
717
- eventTime?: Date | null;
718
- /**
719
- * Whether the event was triggered as a result of a privacy regulation application
720
- * (for example, GDPR).
721
- */
722
- triggeredByAnonymizeRequest?: boolean | null;
723
- /** If present, indicates the action that triggered the event. */
724
- originatedFrom?: string | null;
725
- /**
726
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
727
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
728
- */
729
- entityEventSequence?: string | null;
730
- }
731
- /** @oneof */
732
- interface DomainEventBodyOneOf {
733
- createdEvent?: EntityCreatedEvent;
734
- updatedEvent?: EntityUpdatedEvent;
735
- deletedEvent?: EntityDeletedEvent;
736
- actionEvent?: ActionEvent;
737
- }
738
- interface EntityCreatedEvent {
739
- entity?: string;
740
- }
741
- interface RestoreInfo {
742
- deletedDate?: Date | null;
743
- }
744
- interface EntityUpdatedEvent {
745
- /**
746
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
747
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
748
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
749
- */
750
- currentEntity?: string;
751
- }
752
- interface EntityDeletedEvent {
753
- /** Entity that was deleted. */
754
- deletedEntity?: string | null;
755
- }
756
- interface ActionEvent {
757
- body?: string;
758
- }
759
- interface Empty {
760
- }
761
- interface UpdateApplicationAutomationsRequest {
762
- /** Automation to use for updating other automations. */
763
- automation?: Automation;
764
- /**
765
- * List of action ids to override in the automations.
766
- * @format GUID
767
- * @maxSize 100
768
- */
769
- overrideActionIds?: string[];
770
- /**
771
- * An id to identify the application automations.
772
- * @format GUID
773
- */
774
- appDefinedExternalId?: string;
775
- /**
776
- * The application id to update automations for.
777
- * @format GUID
778
- */
779
- appId?: string;
780
- /** True if the update should override the trigger. */
781
- overrideTrigger?: boolean;
782
- }
783
- interface UpdateApplicationAutomationsResponse {
784
- /**
785
- * Job id for the update process.
786
- * @format GUID
787
- */
788
- jobId?: string;
789
- }
790
- interface TestUpdateApplicationAutomationRequest {
791
- /** Automation to use for updating the test automation. */
792
- automation?: Automation;
793
- /**
794
- * Automation id in site to update with the given automation.
795
- * @format GUID
796
- */
797
- automationId?: string;
798
- /**
799
- * List of action ids to override in the automations.
800
- * @format GUID
801
- * @maxSize 100
802
- */
803
- overrideActionIds?: string[];
804
- /**
805
- * An id to identify the application automations. should be configured in the automation
806
- * @format GUID
807
- */
808
- appDefinedExternalId?: string;
809
- /**
810
- * The application id to update automations for. should be configured in the automation
811
- * @format GUID
812
- */
813
- appId?: string;
814
- /** True if the update should override the trigger. */
815
- overrideTrigger?: boolean;
816
- }
817
- interface TestUpdateApplicationAutomationResponse {
818
- /** The automation after the update. */
819
- automation?: Automation;
820
- }
821
- interface MessageEnvelope {
822
- /**
823
- * App instance ID.
824
- * @format GUID
825
- */
826
- instanceId?: string | null;
827
- /**
828
- * Event type.
829
- * @maxLength 150
830
- */
831
- eventType?: string;
832
- /** The identification type and identity data. */
833
- identity?: IdentificationData;
834
- /** Stringify payload. */
835
- data?: string;
836
- }
837
- interface IdentificationData extends IdentificationDataIdOneOf {
838
- /**
839
- * ID of a site visitor that has not logged in to the site.
840
- * @format GUID
841
- */
842
- anonymousVisitorId?: string;
843
- /**
844
- * ID of a site visitor that has logged in to the site.
845
- * @format GUID
846
- */
847
- memberId?: string;
848
- /**
849
- * ID of a Wix user (site owner, contributor, etc.).
850
- * @format GUID
851
- */
852
- wixUserId?: string;
853
- /**
854
- * ID of an app.
855
- * @format GUID
856
- */
857
- appId?: string;
858
- /** @readonly */
859
- identityType?: WebhookIdentityTypeWithLiterals;
860
- }
861
- /** @oneof */
862
- interface IdentificationDataIdOneOf {
863
- /**
864
- * ID of a site visitor that has not logged in to the site.
865
- * @format GUID
866
- */
867
- anonymousVisitorId?: string;
868
- /**
869
- * ID of a site visitor that has logged in to the site.
870
- * @format GUID
871
- */
872
- memberId?: string;
873
- /**
874
- * ID of a Wix user (site owner, contributor, etc.).
875
- * @format GUID
876
- */
877
- wixUserId?: string;
878
- /**
879
- * ID of an app.
880
- * @format GUID
881
- */
882
- appId?: string;
883
- }
884
- declare enum WebhookIdentityType {
885
- UNKNOWN = "UNKNOWN",
886
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
887
- MEMBER = "MEMBER",
888
- WIX_USER = "WIX_USER",
889
- APP = "APP"
890
- }
891
- /** @enumType */
892
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
893
- interface CodeSnippet {
894
- /** Logical operator used to evaluate the condition expressions. */
895
- language?: LanguageWithLiterals;
896
- /**
897
- * Expressions evaluated using the selected operator. this code should comply the language syntax. and format
898
- * @maxLength 1000
899
- */
900
- code?: string;
901
- }
902
- declare enum Language {
903
- /** Unknown. */
904
- UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
905
- /** `JAVASCRIPT` language. */
906
- JAVASCRIPT = "JAVASCRIPT"
907
- }
908
- /** @enumType */
909
- type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
910
- interface CodeConditionAction {
911
- /** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
912
- snippet?: CodeSnippet;
913
- /**
914
- * IDs of actions to run when the condition evaluates to `true`.
915
- * @maxSize 20
916
- * @format GUID
917
- */
918
- truePostActionIds?: string[];
919
- /**
920
- * IDs of actions to run when the condition evaluates to `false`.
921
- * @maxSize 20
922
- * @format GUID
923
- */
924
- falsePostActionIds?: string[];
925
- }
926
- interface AutoArchivePolicy {
927
- /**
928
- * Date when to archive the automation
929
- * If this date in the past, nothing will happen (automation will not go into archived state)
930
- * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE
931
- * After this date the automation may be unarchived and archived again, this date will have no influence
932
- */
933
- archiveDate?: Date | null;
934
- }
935
714
  interface CreateAutomationRequest {
936
715
  /** Automation to create. */
937
716
  automation: Automation;
@@ -1317,6 +1096,70 @@ interface ActionUsageSummary {
1317
1096
  /** Number of automations that include this action. */
1318
1097
  automationsCount?: number;
1319
1098
  }
1099
+ interface DomainEvent extends DomainEventBodyOneOf {
1100
+ createdEvent?: EntityCreatedEvent;
1101
+ updatedEvent?: EntityUpdatedEvent;
1102
+ deletedEvent?: EntityDeletedEvent;
1103
+ actionEvent?: ActionEvent;
1104
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1105
+ _id?: string;
1106
+ /**
1107
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1108
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1109
+ */
1110
+ entityFqdn?: string;
1111
+ /**
1112
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1113
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1114
+ */
1115
+ slug?: string;
1116
+ /** ID of the entity associated with the event. */
1117
+ entityId?: string;
1118
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1119
+ eventTime?: Date | null;
1120
+ /**
1121
+ * Whether the event was triggered as a result of a privacy regulation application
1122
+ * (for example, GDPR).
1123
+ */
1124
+ triggeredByAnonymizeRequest?: boolean | null;
1125
+ /** If present, indicates the action that triggered the event. */
1126
+ originatedFrom?: string | null;
1127
+ /**
1128
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1129
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1130
+ */
1131
+ entityEventSequence?: string | null;
1132
+ }
1133
+ /** @oneof */
1134
+ interface DomainEventBodyOneOf {
1135
+ createdEvent?: EntityCreatedEvent;
1136
+ updatedEvent?: EntityUpdatedEvent;
1137
+ deletedEvent?: EntityDeletedEvent;
1138
+ actionEvent?: ActionEvent;
1139
+ }
1140
+ interface EntityCreatedEvent {
1141
+ entity?: string;
1142
+ }
1143
+ interface RestoreInfo {
1144
+ deletedDate?: Date | null;
1145
+ }
1146
+ interface EntityUpdatedEvent {
1147
+ /**
1148
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1149
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1150
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1151
+ */
1152
+ currentEntity?: string;
1153
+ }
1154
+ interface EntityDeletedEvent {
1155
+ /** Entity that was deleted. */
1156
+ deletedEntity?: string | null;
1157
+ }
1158
+ interface ActionEvent {
1159
+ body?: string;
1160
+ }
1161
+ interface Empty {
1162
+ }
1320
1163
  interface CopyAutomationRequest {
1321
1164
  /**
1322
1165
  * ID of the automation to copy.
@@ -2285,6 +2128,78 @@ interface MergeOverridePreinstalledWithRuntimeVersionResponse {
2285
2128
  /** The merged automation after applying the latest runtime version of the preinstalled automation. */
2286
2129
  automation?: Automation;
2287
2130
  }
2131
+ interface MessageEnvelope {
2132
+ /**
2133
+ * App instance ID.
2134
+ * @format GUID
2135
+ */
2136
+ instanceId?: string | null;
2137
+ /**
2138
+ * Event type.
2139
+ * @maxLength 150
2140
+ */
2141
+ eventType?: string;
2142
+ /** The identification type and identity data. */
2143
+ identity?: IdentificationData;
2144
+ /** Stringify payload. */
2145
+ data?: string;
2146
+ }
2147
+ interface IdentificationData extends IdentificationDataIdOneOf {
2148
+ /**
2149
+ * ID of a site visitor that has not logged in to the site.
2150
+ * @format GUID
2151
+ */
2152
+ anonymousVisitorId?: string;
2153
+ /**
2154
+ * ID of a site visitor that has logged in to the site.
2155
+ * @format GUID
2156
+ */
2157
+ memberId?: string;
2158
+ /**
2159
+ * ID of a Wix user (site owner, contributor, etc.).
2160
+ * @format GUID
2161
+ */
2162
+ wixUserId?: string;
2163
+ /**
2164
+ * ID of an app.
2165
+ * @format GUID
2166
+ */
2167
+ appId?: string;
2168
+ /** @readonly */
2169
+ identityType?: WebhookIdentityTypeWithLiterals;
2170
+ }
2171
+ /** @oneof */
2172
+ interface IdentificationDataIdOneOf {
2173
+ /**
2174
+ * ID of a site visitor that has not logged in to the site.
2175
+ * @format GUID
2176
+ */
2177
+ anonymousVisitorId?: string;
2178
+ /**
2179
+ * ID of a site visitor that has logged in to the site.
2180
+ * @format GUID
2181
+ */
2182
+ memberId?: string;
2183
+ /**
2184
+ * ID of a Wix user (site owner, contributor, etc.).
2185
+ * @format GUID
2186
+ */
2187
+ wixUserId?: string;
2188
+ /**
2189
+ * ID of an app.
2190
+ * @format GUID
2191
+ */
2192
+ appId?: string;
2193
+ }
2194
+ declare enum WebhookIdentityType {
2195
+ UNKNOWN = "UNKNOWN",
2196
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2197
+ MEMBER = "MEMBER",
2198
+ WIX_USER = "WIX_USER",
2199
+ APP = "APP"
2200
+ }
2201
+ /** @enumType */
2202
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2288
2203
  interface GetAutomationRevisionRequest {
2289
2204
  /**
2290
2205
  * Automation ID.
@@ -2935,4 +2850,4 @@ interface GetAutomationRevisionOptions {
2935
2850
  fields?: RequestedFieldsWithLiterals[];
2936
2851
  }
2937
2852
 
2938
- export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationMigrationRequest, type AutomationOriginInfoOneOf, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedWithEntity, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, type TestUpdateApplicationAutomationRequest, type TestUpdateApplicationAutomationResponse, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateApplicationAutomationsRequest, type UpdateApplicationAutomationsResponse, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpdatedWithPreviousEntity, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
2853
+ export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedWithEntity, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpdatedWithPreviousEntity, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
@@ -675,6 +675,11 @@ var Operator = /* @__PURE__ */ ((Operator2) => {
675
675
  Operator2["AND"] = "AND";
676
676
  return Operator2;
677
677
  })(Operator || {});
678
+ var Language = /* @__PURE__ */ ((Language2) => {
679
+ Language2["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
680
+ Language2["JAVASCRIPT"] = "JAVASCRIPT";
681
+ return Language2;
682
+ })(Language || {});
678
683
  var Type = /* @__PURE__ */ ((Type2) => {
679
684
  Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
680
685
  Type2["APP_DEFINED"] = "APP_DEFINED";
@@ -696,19 +701,6 @@ var Origin = /* @__PURE__ */ ((Origin2) => {
696
701
  Origin2["PREINSTALLED"] = "PREINSTALLED";
697
702
  return Origin2;
698
703
  })(Origin || {});
699
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
700
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
701
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
702
- WebhookIdentityType2["MEMBER"] = "MEMBER";
703
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
704
- WebhookIdentityType2["APP"] = "APP";
705
- return WebhookIdentityType2;
706
- })(WebhookIdentityType || {});
707
- var Language = /* @__PURE__ */ ((Language2) => {
708
- Language2["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
709
- Language2["JAVASCRIPT"] = "JAVASCRIPT";
710
- return Language2;
711
- })(Language || {});
712
704
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
713
705
  RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
714
706
  RequestedFields2["OVERRIDE_SCHEMA"] = "OVERRIDE_SCHEMA";
@@ -833,6 +825,14 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
833
825
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
834
826
  return AutomationErrorType2;
835
827
  })(AutomationErrorType || {});
828
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
829
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
830
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
831
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
832
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
833
+ WebhookIdentityType2["APP"] = "APP";
834
+ return WebhookIdentityType2;
835
+ })(WebhookIdentityType || {});
836
836
  async function createAutomation2(automation) {
837
837
  const { httpClient, sideEffects } = arguments[1];
838
838
  const payload = renameKeysFromSDKRequestToRESTRequest({