@wix/auto_sdk_automations_activation-log 1.0.32 → 1.0.34
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/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +9 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +99 -28
- package/build/cjs/index.typings.js +9 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +96 -25
- package/build/cjs/meta.js +9 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +8 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +99 -28
- package/build/es/index.typings.mjs +8 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +96 -25
- package/build/es/meta.mjs +8 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +9 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +99 -28
- package/build/internal/cjs/index.typings.js +9 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +96 -25
- package/build/internal/cjs/meta.js +9 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +8 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +99 -28
- package/build/internal/es/index.typings.mjs +8 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +96 -25
- package/build/internal/es/meta.mjs +8 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ActivationLog, ListActivationLogsOptions, ListActivationLogsResponse, SearchActivationLogsByPayloadPiiValueOptions, SearchActivationLogsByPayloadPiiValueResponse } from './index.typings.js';
|
|
3
|
-
export { AIMetadata, Action, ActionEvent, ActionInfoOneOf, ActionSettings, ActivationContinuedAfterSchedule, AppDefinedAction, ApplicationOrigin, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdInfo, AutomationOriginInfoOneOf, AutomationSettings, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, ClientEntityIdsByNamespace, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CursorPaging, CursorPagingMetadata, Cursors, DelayAction, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExtendedFields, FailedStatusInfo, Filter, FilterBy, FilterByWithLiterals, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetActivationLogRequest, GetActivationLogResponse, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, InitiatedStatusInfo, Language, LanguageWithLiterals, ListActivationLogsOptionsIdentifierOneOf, ListActivationLogsRequest, ListActivationLogsRequestIdentifierOneOf, MessageEnvelope, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, OutputAction, Path, Position, PreinstalledIdentifierInfo, PreinstalledOrigin, RateLimit, RateLimitAction, RestoreInfo, ScheduledStatusInfo, SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf, SearchActivationLogsByPayloadPiiValueRequest, SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf, SetVariablesAction, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SplitAction, StartedStatusInfo, Status, StatusWithLiterals, Target, TargetWithLiterals, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerSettings, Type, TypeWithLiterals, UouDeleteRequest, Warning, WarningReason, WarningReasonWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AIMetadata, Action, ActionEvent, ActionInfoOneOf, ActionSettings, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, AppDefinedAction, ApplicationOrigin, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdInfo, AutomationOriginInfoOneOf, AutomationSettings, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, ClientEntityIdsByNamespace, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CursorPaging, CursorPagingMetadata, Cursors, DelayAction, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExtendedFields, FailedStatusInfo, Filter, FilterBy, FilterByWithLiterals, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetActivationLogRequest, GetActivationLogResponse, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, InitiatedStatusInfo, Language, LanguageWithLiterals, ListActivationLogsOptionsIdentifierOneOf, ListActivationLogsRequest, ListActivationLogsRequestIdentifierOneOf, ManualActivationInfo, MessageEnvelope, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, OutputAction, Path, Position, PreinstalledIdentifierInfo, PreinstalledOrigin, RateLimit, RateLimitAction, RestoreInfo, ScheduledStatusInfo, SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf, SearchActivationLogsByPayloadPiiValueRequest, SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf, SetVariablesAction, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SplitAction, StartedStatusInfo, Status, StatusWithLiterals, Target, TargetWithLiterals, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerSettings, Type, TypeWithLiterals, UouDeleteRequest, Warning, WarningReason, WarningReasonWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getActivationLog$1(httpClient: HttpClient): GetActivationLogSignature;
|
|
6
6
|
interface GetActivationLogSignature {
|
|
@@ -9,14 +9,14 @@ interface GetActivationLogSignature {
|
|
|
9
9
|
* @param - Activation log ID
|
|
10
10
|
* @returns Activation log
|
|
11
11
|
*/
|
|
12
|
-
(activationId: string): Promise<NonNullablePaths<ActivationLog, `_id` | `automationId` | `automationRevision` | `status` | `initiatedInfo.target` | `scheduledInfo.scheduleId` | `cancelledInfo.reason` | `failedInfo.errorDescription` | `failedInfo.errorReason` | `skippedInfo.reason` | `warnings` | `warnings.${number}.errorDescription` | `warnings.${number}.reason`, 4>>;
|
|
12
|
+
(activationId: string): Promise<NonNullablePaths<ActivationLog, `_id` | `automationId` | `automationRevision` | `status` | `initiatedInfo.target` | `scheduledInfo.scheduleId` | `cancelledInfo.reason` | `failedInfo.errorDescription` | `failedInfo.errorReason` | `skippedInfo.reason` | `warnings` | `warnings.${number}.errorDescription` | `warnings.${number}.reason` | `activationInitiationSourceInfo.manualActivationInfo.testMode` | `activationInitiationSourceInfo.activationInitiationSource`, 4>>;
|
|
13
13
|
}
|
|
14
14
|
declare function listActivationLogs$1(httpClient: HttpClient): ListActivationLogsSignature;
|
|
15
15
|
interface ListActivationLogsSignature {
|
|
16
16
|
/**
|
|
17
17
|
* List activation logs
|
|
18
18
|
*/
|
|
19
|
-
(options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>): Promise<NonNullablePaths<ListActivationLogsResponse, `activationLogs` | `activationLogs.${number}._id` | `activationLogs.${number}.automationId` | `activationLogs.${number}.automationRevision` | `activationLogs.${number}.status` | `activationLogs.${number}.initiatedInfo.target` | `activationLogs.${number}.scheduledInfo.scheduleId` | `activationLogs.${number}.cancelledInfo.reason` | `activationLogs.${number}.failedInfo.errorDescription` | `activationLogs.${number}.failedInfo.errorReason` | `activationLogs.${number}.skippedInfo.reason`,
|
|
19
|
+
(options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>): Promise<NonNullablePaths<ListActivationLogsResponse, `activationLogs` | `activationLogs.${number}._id` | `activationLogs.${number}.automationId` | `activationLogs.${number}.automationRevision` | `activationLogs.${number}.status` | `activationLogs.${number}.initiatedInfo.target` | `activationLogs.${number}.scheduledInfo.scheduleId` | `activationLogs.${number}.cancelledInfo.reason` | `activationLogs.${number}.failedInfo.errorDescription` | `activationLogs.${number}.failedInfo.errorReason` | `activationLogs.${number}.skippedInfo.reason` | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode` | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`, 6>>;
|
|
20
20
|
}
|
|
21
21
|
declare function searchActivationLogsByPayloadPiiValue$1(httpClient: HttpClient): SearchActivationLogsByPayloadPiiValueSignature;
|
|
22
22
|
interface SearchActivationLogsByPayloadPiiValueSignature {
|
|
@@ -26,7 +26,7 @@ interface SearchActivationLogsByPayloadPiiValueSignature {
|
|
|
26
26
|
* Supported are emails, phones and guids
|
|
27
27
|
* @param - Value to search in the payload
|
|
28
28
|
*/
|
|
29
|
-
(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<NonNullablePaths<SearchActivationLogsByPayloadPiiValueResponse, `activationLogs` | `activationLogs.${number}._id` | `activationLogs.${number}.automationId` | `activationLogs.${number}.automationRevision` | `activationLogs.${number}.status` | `activationLogs.${number}.initiatedInfo.target` | `activationLogs.${number}.scheduledInfo.scheduleId` | `activationLogs.${number}.cancelledInfo.reason` | `activationLogs.${number}.failedInfo.errorDescription` | `activationLogs.${number}.failedInfo.errorReason` | `activationLogs.${number}.skippedInfo.reason`,
|
|
29
|
+
(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<NonNullablePaths<SearchActivationLogsByPayloadPiiValueResponse, `activationLogs` | `activationLogs.${number}._id` | `activationLogs.${number}.automationId` | `activationLogs.${number}.automationRevision` | `activationLogs.${number}.status` | `activationLogs.${number}.initiatedInfo.target` | `activationLogs.${number}.scheduledInfo.scheduleId` | `activationLogs.${number}.cancelledInfo.reason` | `activationLogs.${number}.failedInfo.errorDescription` | `activationLogs.${number}.failedInfo.errorReason` | `activationLogs.${number}.skippedInfo.reason` | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode` | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`, 6>>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
declare const getActivationLog: MaybeContext<BuildRESTFunction<typeof getActivationLog$1> & typeof getActivationLog$1>;
|
package/build/cjs/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ActivationInitiationSource: () => ActivationInitiationSource,
|
|
23
24
|
AutomationConfigurationStatus: () => AutomationConfigurationStatus,
|
|
24
25
|
CancellationReason: () => CancellationReason,
|
|
25
26
|
Domain: () => Domain,
|
|
@@ -267,6 +268,12 @@ var WarningReason = /* @__PURE__ */ ((WarningReason2) => {
|
|
|
267
268
|
WarningReason2["GET_MEMBER_ENRICHMENT_FAILED"] = "GET_MEMBER_ENRICHMENT_FAILED";
|
|
268
269
|
return WarningReason2;
|
|
269
270
|
})(WarningReason || {});
|
|
271
|
+
var ActivationInitiationSource = /* @__PURE__ */ ((ActivationInitiationSource2) => {
|
|
272
|
+
ActivationInitiationSource2["UNKNOWN_ACTIVATION_INITIATION_SOURCE"] = "UNKNOWN_ACTIVATION_INITIATION_SOURCE";
|
|
273
|
+
ActivationInitiationSource2["TRIGGER_PROVIDER_EVENT"] = "TRIGGER_PROVIDER_EVENT";
|
|
274
|
+
ActivationInitiationSource2["MANUAL_ACTIVATION"] = "MANUAL_ACTIVATION";
|
|
275
|
+
return ActivationInitiationSource2;
|
|
276
|
+
})(ActivationInitiationSource || {});
|
|
270
277
|
var Domain = /* @__PURE__ */ ((Domain2) => {
|
|
271
278
|
Domain2["USER"] = "USER";
|
|
272
279
|
Domain2["WIX"] = "WIX";
|
|
@@ -297,6 +304,7 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
297
304
|
Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
298
305
|
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
299
306
|
Type2["CONDITION"] = "CONDITION";
|
|
307
|
+
Type2["CODE_CONDITION"] = "CODE_CONDITION";
|
|
300
308
|
Type2["DELAY"] = "DELAY";
|
|
301
309
|
Type2["RATE_LIMIT"] = "RATE_LIMIT";
|
|
302
310
|
return Type2;
|
|
@@ -473,6 +481,7 @@ var listActivationLogs4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMod
|
|
|
473
481
|
var searchActivationLogsByPayloadPiiValue4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchActivationLogsByPayloadPiiValue3);
|
|
474
482
|
// Annotate the CommonJS export names for ESM import in node:
|
|
475
483
|
0 && (module.exports = {
|
|
484
|
+
ActivationInitiationSource,
|
|
476
485
|
AutomationConfigurationStatus,
|
|
477
486
|
CancellationReason,
|
|
478
487
|
Domain,
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.universal.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.http.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.public.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.context.ts"],"sourcesContent":["export * from './src/automations-activation-logs-v1-activation-log-activation-log.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixAutomationsActivationLogsV1ActivationLog from './automations-activation-logs-v1-activation-log-activation-log.http.js';\n\nexport interface ActivationLog {\n /**\n * Activation ID\n * @format GUID\n */\n _id?: string;\n /**\n * The activated automation ID\n * @format GUID\n */\n automationId?: string;\n /** The activated automation revision */\n automationRevision?: string;\n /** Automation activation status */\n status?: StatusWithLiterals;\n /** Scheduled status additional info */\n initiatedInfo?: InitiatedStatusInfo;\n /** Scheduled status additional info */\n scheduledInfo?: ScheduledStatusInfo;\n /** Started status additional info */\n startedInfo?: StartedStatusInfo;\n /** Ended status additional info */\n endedInfo?: EndedStatusInfo;\n /** Cancelled status additional info */\n cancelledInfo?: CancelledStatusInfo;\n /** Failed status additional info */\n failedInfo?: FailedStatusInfo;\n /** Skipped status additional info */\n skippedInfo?: SkippedStatusInfo;\n /**\n * Warnings information\n * @maxSize 15\n */\n warnings?: Warning[];\n /** Created date */\n _createdDate?: Date | null;\n}\n\nexport enum Target {\n UNKNOWN_TARGET = 'UNKNOWN_TARGET',\n SCHEDULE = 'SCHEDULE',\n IMMEDIATE = 'IMMEDIATE',\n}\n\n/** @enumType */\nexport type TargetWithLiterals =\n | Target\n | 'UNKNOWN_TARGET'\n | 'SCHEDULE'\n | 'IMMEDIATE';\n\nexport enum CancellationReason {\n UNKNOWN_CANCELLATION_REASON = 'UNKNOWN_CANCELLATION_REASON',\n /** Indicating that the activation was cancelled directly */\n EVENT_CANCELLED = 'EVENT_CANCELLED',\n /** Indicating that the activation is cancelled because the automation was deactivated */\n AUTOMATION_DEACTIVATED = 'AUTOMATION_DEACTIVATED',\n /** Indicating that the activation is cancelled because the automation was deleted */\n AUTOMATION_DELETED = 'AUTOMATION_DELETED',\n /** Indicating that the activation is cancelled after the automation schedule time was reached */\n CANCELLED_BY_REFRESH_PAYLOAD = 'CANCELLED_BY_REFRESH_PAYLOAD',\n /** Indicates that the activation was cancelled due to a UoU GDPR \"Right to be Forgotten\" request. */\n CANCELLED_BY_GDPR_REQUEST = 'CANCELLED_BY_GDPR_REQUEST',\n}\n\n/** @enumType */\nexport type CancellationReasonWithLiterals =\n | CancellationReason\n | 'UNKNOWN_CANCELLATION_REASON'\n | 'EVENT_CANCELLED'\n | 'AUTOMATION_DEACTIVATED'\n | 'AUTOMATION_DELETED'\n | 'CANCELLED_BY_REFRESH_PAYLOAD'\n | 'CANCELLED_BY_GDPR_REQUEST';\n\nexport interface Identity {\n /**\n * User ID\n * @format GUID\n */\n userId?: string | null;\n /**\n * App ID\n * @format GUID\n */\n appId?: string | null;\n}\n\nexport enum ErrorReason {\n /** Unexpected error reason */\n UNEXPECTED_ERROR_REASON = 'UNEXPECTED_ERROR_REASON',\n /** Failed to evaluate the schedule date expression */\n SCHEDULE_DATE_EVALUATION_FAILED = 'SCHEDULE_DATE_EVALUATION_FAILED',\n}\n\n/** @enumType */\nexport type ErrorReasonWithLiterals =\n | ErrorReason\n | 'UNEXPECTED_ERROR_REASON'\n | 'SCHEDULE_DATE_EVALUATION_FAILED';\n\nexport enum SkipReason {\n UNKNOWN_SKIP_REASON = 'UNKNOWN_SKIP_REASON',\n /** Activation was skipped because the scheduled execution time had already passed at the time of execution */\n SCHEDULE_DATE_EXPIRED = 'SCHEDULE_DATE_EXPIRED',\n /** Activation was skipped because the trigger filters defined in the automation did not match the payload. */\n TRIGGER_FILTERS_NOT_PASSED = 'TRIGGER_FILTERS_NOT_PASSED',\n /** Activation was skipped because it exceeded the configured rate limit (maximum number of executions allowed in a time period). */\n RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED',\n /** Activation was skipped because an event with the same idempotency key was already processed. */\n EVENT_ALREADY_PROCESSED = 'EVENT_ALREADY_PROCESSED',\n}\n\n/** @enumType */\nexport type SkipReasonWithLiterals =\n | SkipReason\n | 'UNKNOWN_SKIP_REASON'\n | 'SCHEDULE_DATE_EXPIRED'\n | 'TRIGGER_FILTERS_NOT_PASSED'\n | 'RATE_LIMIT_EXCEEDED'\n | 'EVENT_ALREADY_PROCESSED';\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** This indicates activation is not started yet (no action has run yet) */\n INITIATED = 'INITIATED',\n /** The activation is in scheduled status when the automation has future date or debounce defined and we're in the waiting stage (no action has run yet) */\n SCHEDULED = 'SCHEDULED',\n /** This indicates the automation activation has started and currently in progress */\n STARTED = 'STARTED',\n /** This indicates all the automation actions were handled either by invoking them, skipping them etc. */\n ENDED = 'ENDED',\n /** This indicates the activation was cancelled */\n CANCELLED = 'CANCELLED',\n /**\n * This indicates the activation failed to start\n * Note that failure in the activation of a single action will not result a failure in activation of the entire automation\n */\n FAILED = 'FAILED',\n /**\n * Indicates that the automation activation was skipped without executing any actions.\n * Note that an activation will either be skipped immediately or move to INITIATED state.\n */\n SKIPPED = 'SKIPPED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'INITIATED'\n | 'SCHEDULED'\n | 'STARTED'\n | 'ENDED'\n | 'CANCELLED'\n | 'FAILED'\n | 'SKIPPED';\n\nexport interface InitiatedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Target */\n target?: TargetWithLiterals;\n /** The reported trigger payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface ScheduledStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /**\n * Schedule identifier\n * @format GUID\n */\n scheduleId?: string;\n /** Indicating when the activation should start */\n date?: Date | null;\n}\n\nexport interface StartedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Enriched and refreshed payload */\n payload?: Record<string, any> | null;\n}\n\nexport interface EndedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Indicates if the activation failed with errors in one or more actions. Actions that failed but eventually ended are not included */\n withFailedActions?: boolean | null;\n}\n\nexport interface CancelledStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Cancellation reason */\n reason?: CancellationReasonWithLiterals;\n /** The identity (such as user, app etc.) that caused the cancellation */\n initiator?: Identity;\n}\n\nexport interface FailedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /**\n * Error description\n * @maxLength 1000\n * @readonly\n */\n errorDescription?: string;\n /**\n * Error code\n * @maxLength 20\n */\n errorCode?: string | null;\n /** Error reason */\n errorReason?: ErrorReasonWithLiterals;\n /** Event payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface SkippedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** The reason why the automation activation was skipped */\n reason?: SkipReasonWithLiterals;\n /** The reported trigger payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface Warning {\n /** Event date */\n warningDate?: Date | null;\n /**\n * Detailed description of what caused the warning\n * @maxLength 1000\n * @readonly\n */\n errorDescription?: string;\n /**\n * Error code of what caused the warning\n * @maxLength 20\n * @readonly\n */\n errorCode?: string | null;\n /** The reason for the warning */\n reason?: WarningReasonWithLiterals;\n}\n\nexport enum WarningReason {\n UNKNOWN_WARNING_REASON = 'UNKNOWN_WARNING_REASON',\n /** Failed to enrich payload with studio site enrichment */\n STUDIO_SITE_ENRICHMENT_FAILED = 'STUDIO_SITE_ENRICHMENT_FAILED',\n /** Failed to refresh payload data */\n REFRESH_PAYLOAD_FAILED = 'REFRESH_PAYLOAD_FAILED',\n /** Failed to retrieve contact information */\n GET_CONTACT_ENRICHMENT_FAILED = 'GET_CONTACT_ENRICHMENT_FAILED',\n /** Failed to retrieve member information */\n GET_MEMBER_ENRICHMENT_FAILED = 'GET_MEMBER_ENRICHMENT_FAILED',\n}\n\n/** @enumType */\nexport type WarningReasonWithLiterals =\n | WarningReason\n | 'UNKNOWN_WARNING_REASON'\n | 'STUDIO_SITE_ENRICHMENT_FAILED'\n | 'REFRESH_PAYLOAD_FAILED'\n | 'GET_CONTACT_ENRICHMENT_FAILED'\n | 'GET_MEMBER_ENRICHMENT_FAILED';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface ActivationContinuedAfterSchedule {\n /**\n * Activation identifier\n * @format GUID\n */\n _id?: string;\n /** Activation Automation */\n automation?: Automation;\n}\n\nexport interface Automation extends AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n /**\n * Automation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Who created the automation.\n * @immutable\n * @readonly\n */\n createdBy?: AuditInfo;\n /**\n * When the automation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Who last updated the automation.\n * @readonly\n */\n updatedBy?: AuditInfo;\n /**\n * When the automation was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Automation name as displayed on the user's site.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Automation description.\n * @maxLength 2000\n */\n description?: string | null;\n /** Automation configuration. */\n configuration?: AutomationConfiguration;\n /**\n * How the automation was added to the user's site.\n * @immutable\n */\n origin?: OriginWithLiterals;\n /** Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations */\n settings?: AutomationSettings;\n /**\n * When the automation is a draft, the draft details.\n * @readonly\n */\n draftInfo?: DraftInfo;\n /**\n * Whether the automation is archived.\n *\n * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.\n */\n archived?: boolean;\n /** Auto archive policy */\n autoArchivePolicy?: AutoArchivePolicy;\n}\n\n/** @oneof */\nexport interface AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n}\n\nexport interface AIMetadata {\n /**\n * Origin agent identifier.\n * @minLength 1\n * @maxLength 64\n */\n originAgentIdentifier?: string | null;\n}\n\nexport interface ActionSettings {\n /**\n * Permanent actions. PermanentAction's skipActionExpression cannot be modified.\n *\n * When empty, all actions can be set as skipped\n * @maxSize 30\n * @format GUID\n */\n permanentActionIds?: string[];\n /**\n * Read-only actions. Read-only actions cannot be edited.\n *\n * When empty, all actions are editable.\n * @maxSize 30\n * @format GUID\n */\n readonlyActionIds?: string[];\n}\n\nexport enum Domain {\n /** User domain (default). */\n USER = 'USER',\n /** Wix domain. */\n WIX = 'WIX',\n /** Wix account-level domain. */\n WIX_ACCOUNT = 'WIX_ACCOUNT',\n}\n\n/** @enumType */\nexport type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';\n\nexport interface TriggerSettings {}\n\nexport interface Enrichment {\n /**\n * Enrichment input mappings.\n * @maxSize 2\n */\n inputMappings?: Record<string, any>[] | null;\n}\n\nexport interface AuditInfo extends AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface AutomationConfiguration {\n /** Status of the automation on the site. */\n status?: AutomationConfigurationStatusWithLiterals;\n /** Trigger configuration. */\n trigger?: Trigger;\n /**\n * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.\n *\n * > **Note**: You can currently only specify 1 root action.\n * @maxSize 20\n * @format GUID\n */\n rootActionIds?: string[];\n /** Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below. */\n actions?: Record<string, Action>;\n}\n\nexport enum TimeUnit {\n UNKNOWN_TIME_UNIT = 'UNKNOWN_TIME_UNIT',\n /** Minutes. */\n MINUTES = 'MINUTES',\n /** Hours. */\n HOURS = 'HOURS',\n /** Days. */\n DAYS = 'DAYS',\n /** Weeks. */\n WEEKS = 'WEEKS',\n /** Months. */\n MONTHS = 'MONTHS',\n}\n\n/** @enumType */\nexport type TimeUnitWithLiterals =\n | TimeUnit\n | 'UNKNOWN_TIME_UNIT'\n | 'MINUTES'\n | 'HOURS'\n | 'DAYS'\n | 'WEEKS'\n | 'MONTHS';\n\nexport interface Filter {\n /**\n * Filter ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Field key.\n *\n * You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).\n * @minLength 1\n * @maxLength 110\n */\n fieldKey?: string;\n /**\n * Filter expression.\n *\n * For the automation to run, the expression must evaluate to `true`.\n * @maxLength 2500\n */\n filterExpression?: string;\n}\n\nexport interface FutureDateActivationOffset {\n /**\n * Amount of time before the trigger to run the automation.\n *\n * > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).\n * @maxLength 1000\n */\n preScheduledEventOffsetExpression?: string;\n /** Unit in which to set the action offset. */\n scheduledEventOffsetTimeUnit?: TimeUnitWithLiterals;\n}\n\nexport interface RateLimit {\n /**\n * Maximum number of times the trigger can be activated.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Duration of the rate limit. The rate limit applies for the specified duration and then expires.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n durationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n durationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Activation identifier used to count the number of activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n}\n\nexport interface FilterValueSelection {\n /**\n * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.\n * @maxLength 80\n * @maxSize 50\n */\n selectedFilterValues?: string[];\n}\n\nexport interface ConditionExpressionGroup {\n /** Logical operator used to evaluate the condition expressions. */\n operator?: OperatorWithLiterals;\n /**\n * Expressions evaluated using the selected operator.\n * @minSize 1\n * @maxSize 20\n * @maxLength 2500\n */\n booleanExpressions?: string[];\n}\n\nexport enum Operator {\n /** Unknown. */\n UNKNOWN_OPERATOR = 'UNKNOWN_OPERATOR',\n /** `OR` operator. */\n OR = 'OR',\n /** `AND` operator. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';\n\nexport interface CodeSnippet {\n /** Logical operator used to evaluate the condition expressions. */\n language?: LanguageWithLiterals;\n /**\n * Expressions evaluated using the selected operator. this code should comply the language syntax. and format\n * @maxLength 1000\n */\n code?: string;\n}\n\nexport enum Language {\n /** Unknown. */\n UNKNOWN_LANGUAGE = 'UNKNOWN_LANGUAGE',\n /** JavaScript. */\n JAVASCRIPT = 'JAVASCRIPT',\n}\n\n/** @enumType */\nexport type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';\n\n/** Path definition */\nexport interface Path {\n /**\n * Unique path ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Path display name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * ID of the action to run when this path is taken.\n * @format GUID\n */\n postActionId?: string | null;\n}\n\nexport enum Type {\n /** Based on the trigger. */\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n /** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action). This action type is available in the site dashboard. */\n APP_DEFINED = 'APP_DEFINED',\n /** Condition. This determines which action runs next. */\n CONDITION = 'CONDITION',\n /** Delay. The automation must wait before executing the next step. */\n DELAY = 'DELAY',\n /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */\n RATE_LIMIT = 'RATE_LIMIT',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'UNKNOWN_ACTION_TYPE'\n | 'APP_DEFINED'\n | 'CONDITION'\n | 'DELAY'\n | 'RATE_LIMIT';\n\nexport interface AppDefinedAction {\n /**\n * ID of the app that defines the action.\n * @format GUID\n */\n appId?: string;\n /**\n * Action key.\n * @minLength 1\n * @maxLength 100\n */\n actionKey?: string;\n /**\n * Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\n *\n * The input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\n */\n inputMapping?: Record<string, any> | null;\n /**\n * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @maxSize 10\n * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @replacedBy skip_action_expression\n * @targetRemovalDate 2026-02-01\n */\n skipConditionOrExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions that run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n /** Action output schema. When specified, this replaces the action schema. */\n overrideOutputSchema?: Record<string, any> | null;\n}\n\nexport interface ConditionAction {\n /**\n * Condition is `true` if one or more of the expression groups evaluates to `true`.\n * @minSize 1\n * @maxSize 10\n */\n orExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n}\n\nexport interface CodeConditionAction {\n /** 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. */\n snippet?: CodeSnippet;\n /**\n * dynamic variables used in the code snippet. these variables can be used inside the code using var('variableName') function.\n * this list is mainly for validation purpose.\n * @maxSize 50\n * @maxLength 100\n */\n dynamicVariableExpressions?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n}\n\nexport interface DelayAction {\n /**\n * Time to wait before running the action. The wait time starts from when the current action completes.\n *\n * > **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.\n * @maxLength 1000\n */\n offsetExpression?: string | null;\n /** Unit in which to set the wait time to wait before the action runs. */\n offsetTimeUnit?: TimeUnitWithLiterals;\n /**\n * Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n * @deprecated Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @replacedBy due_date_expression\n * @targetRemovalDate 2026-02-01\n */\n dueDateEpochExpression?: string | null;\n /**\n * Action run date as a timestamp or DateTime expression using bracket notation.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n */\n dueDateExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the time delay.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface RateLimitAction {\n /**\n * Maximum number of times the action can run.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Rate limit duration.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n rateLimitDurationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n rateLimitDurationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Unique identifier of each activation by which rate limiter counts activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface SetVariablesAction {\n /** Output mapping. For example: `{\"someField\": \"{{10}}\", \"someOtherField\": \"{{multiply( var('account.points.balance') ;2 )}}\" }`. */\n outputMapping?: Record<string, any> | null;\n /**\n * Output JSON schema representation.\n *\n * > **Note**: To minimize request size, you can also specify a string.\n */\n outputSchema?: Record<string, any> | null;\n /**\n * IDs of actions to run in parallel after variable initialization.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface OutputAction {\n /** Output action output mapping. */\n outputMapping?: Record<string, any> | null;\n}\n\nexport interface SplitAction {\n /**\n * List of paths to split execution into.\n * @minSize 2\n * @maxSize 10\n */\n paths?: Path[];\n}\n\nexport enum AutomationConfigurationStatus {\n /** Unknown. */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** Active. Active automations can be triggered. */\n ACTIVE = 'ACTIVE',\n /** Inactive. Inactive automations cannot be triggered. */\n INACTIVE = 'INACTIVE',\n}\n\n/** @enumType */\nexport type AutomationConfigurationStatusWithLiterals =\n | AutomationConfigurationStatus\n | 'UNKNOWN_STATUS'\n | 'ACTIVE'\n | 'INACTIVE';\n\nexport interface Trigger {\n /**\n * ID of the app that defines the trigger.\n * @format GUID\n */\n appId?: string;\n /**\n * Trigger key.\n *\n * Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).\n * @minLength 1\n * @maxLength 100\n */\n triggerKey?: string;\n /**\n * Schema field filters. All filter conditions must be met for the automation to run.\n *\n * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#filters).\n * @maxSize 5\n */\n filters?: Filter[];\n /**\n * Automation offset. You can schedule automations to run before the trigger occurs.\n *\n * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).\n */\n scheduledEventOffset?: FutureDateActivationOffset;\n /** Limit on the number of times an automation can be triggered. */\n rateLimit?: RateLimit;\n /** Trigger schema override. When specified, this replaces the trigger schema. */\n overrideSchema?: Record<string, any> | null;\n}\n\nexport interface Action extends ActionInfoOneOf {\n /** Details of the action when its `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action when its `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action when its `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action when its `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action when its `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n /**\n * Action ID.\n *\n * Unique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\n *\n * If not specified, automatically generated by Wix.\n * @format GUID\n */\n _id?: string | null;\n /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type). */\n type?: TypeWithLiterals;\n /**\n * Editable display name for the action.\n * @minLength 1\n * @maxLength 60\n */\n displayName?: string | null;\n /**\n * [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\n *\n * If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.\n * @minLength 1\n * @maxLength 100\n */\n namespace?: string | null;\n /**\n * Evaluated to boolean to decide whether the action is skipped.\n * For ConditionAction: if skipped, true_post_action_ids execute; false_post_action_ids are skipped\n * SplitAction and OutputAction do not support skip_action_expression\n * @maxLength 1000\n */\n skipActionExpression?: string | null;\n}\n\n/** @oneof */\nexport interface ActionInfoOneOf {\n /** Details of the action when its `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action when its `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action when its `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action when its `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action when its `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n}\n\nexport interface FilterableAppDefinedActions {\n /**\n * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 150\n */\n actionIdentifiers?: string[];\n}\n\nexport enum Origin {\n /** Default value. */\n UNKNOWN_ORIGIN = 'UNKNOWN_ORIGIN',\n /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */\n USER = 'USER',\n /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */\n APPLICATION = 'APPLICATION',\n /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */\n PREINSTALLED = 'PREINSTALLED',\n}\n\n/** @enumType */\nexport type OriginWithLiterals =\n | Origin\n | 'UNKNOWN_ORIGIN'\n | 'USER'\n | 'APPLICATION'\n | 'PREINSTALLED';\n\nexport interface ApplicationOrigin {\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface PreinstalledOrigin {\n /**\n * ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).\n * @format GUID\n */\n appId?: string;\n /**\n * Whether the automation is an override.\n *\n * When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\n *\n * > **Note**: An override automation can no longer be updated by the app that originally installed it.\n * >\n * > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\n *\n * Default: `false`.\n * @immutable\n * @readonly\n */\n override?: boolean | null;\n}\n\nexport interface AutomationSettings {\n /**\n * Whether the automation is hidden from users.\n *\n * Default: `false`\n */\n hidden?: boolean;\n /**\n * Whether the automation is read-only.\n * If true - modifications to the automation trigger or action/s are disabled.\n * **Note**: this setting takes precedent over triggerSettings/actionSettings.\n * If false - allows selective read-only settings via those fields.\n *\n * Default: `false`\n */\n readonly?: boolean;\n /**\n * Whether to disable the option to delete the automation from the site.\n *\n * Default: `false`.\n */\n disableDelete?: boolean;\n /**\n * Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.\n *\n * Default: `false`.\n */\n disableStatusChange?: boolean;\n /** Automation action settings. */\n actionSettings?: ActionSettings;\n}\n\nexport interface DraftInfo {\n /**\n * ID of the original automation.\n * @format GUID\n * @readonly\n */\n originalAutomationId?: string | null;\n}\n\nexport interface Enrichments {\n /** Whether the studio site enrichment is wanted. */\n studioSite?: Enrichment;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface AutoArchivePolicy {\n /**\n * Date when to archive the automation\n * If this date in the past, nothing will happen (automation will not go into archived state)\n * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\n * After this date the automation may be unarchived and archived again, this date will have no influence\n */\n archiveDate?: Date | null;\n}\n\nexport interface Notes {}\n\nexport interface Note {}\n\nexport interface Position {}\n\nexport interface Offset {}\n\nexport interface Dimensions {}\n\nexport interface UouDeleteRequest {\n /** Original UouRightToBeDeletedRequest request */\n originalRequest?: Record<string, any> | null;\n /**\n * Found client ids\n * @maxSize 100\n */\n foundClientEntityIdsByNamespace?: ClientEntityIdsByNamespace[];\n}\n\nexport interface ClientEntityIdsByNamespace {\n /**\n * Client namespace\n * @minLength 5\n * @maxLength 50\n */\n namespace?: string;\n /**\n * Client entity IDs\n * @minLength 5\n * @maxLength 50\n * @maxSize 100\n */\n clientEntityIds?: string[];\n}\n\nexport interface GetActivationLogRequest {\n /**\n * Activation log ID\n * @format GUID\n */\n activationId: string;\n}\n\nexport interface GetActivationLogResponse {\n /** Activation log */\n activationLog?: ActivationLog;\n}\n\nexport interface ListActivationLogsRequest\n extends ListActivationLogsRequestIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /** From created date, If not specified, defaults to 30 days before the current time. */\n fromCreatedDate?: Date | null;\n /** To created date, If not specified, defaults to current time. */\n toCreatedDate?: Date | null;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** identifier type for the activations to list */\n identifierType: IdentifierTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ListActivationLogsRequestIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 500\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Type of identifier used to look up activation logs */\nexport enum IdentifierType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n}\n\n/** @enumType */\nexport type IdentifierTypeWithLiterals = IdentifierType | 'UNKNOWN_TYPE';\n\nexport interface AutomationIdInfo {\n /**\n * Automation ID\n * @format GUID\n */\n automationId?: string;\n}\n\nexport interface PreinstalledIdentifierInfo {\n /**\n * ID of the app that defines the preinstalled automation.\n * @format GUID\n */\n appId?: string;\n /**\n * Application component ID.\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ListActivationLogsResponse {\n /** List of activation logs */\n activationLogs?: ActivationLog[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor string that point to the next page */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n}\n\nexport interface SearchActivationLogsByPayloadPiiValueRequest\n extends SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /**\n * Value to search in the payload\n * @minLength 1\n * @maxLength 50\n */\n value: string;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** Filter by */\n filterBy?: FilterByWithLiterals;\n /** From created date */\n fromCreatedDate?: Date | null;\n /** To created date */\n toCreatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/** FilterBy */\nexport enum FilterBy {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n}\n\n/** @enumType */\nexport type FilterByWithLiterals = FilterBy | 'UNKNOWN_TYPE';\n\nexport interface SearchActivationLogsByPayloadPiiValueResponse {\n /** List of activation logs */\n activationLogs?: ActivationLog[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\n/**\n * Get activation log by ID\n * @param activationId - Activation log ID\n * @public\n * @documentationMaturity preview\n * @requiredField activationId\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @returns Activation log\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog\n */\nexport async function getActivationLog(\n activationId: string\n): Promise<\n NonNullablePaths<\n ActivationLog,\n | `_id`\n | `automationId`\n | `automationRevision`\n | `status`\n | `initiatedInfo.target`\n | `scheduledInfo.scheduleId`\n | `cancelledInfo.reason`\n | `failedInfo.errorDescription`\n | `failedInfo.errorReason`\n | `skippedInfo.reason`\n | `warnings`\n | `warnings.${number}.errorDescription`\n | `warnings.${number}.reason`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n activationId: activationId,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.getActivationLog(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.activationLog!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { activationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['activationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * List activation logs\n * @public\n * @documentationMaturity preview\n * @requiredField options.identifierType\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs\n */\nexport async function listActivationLogs(\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n): Promise<\n NonNullablePaths<\n ListActivationLogsResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fromCreatedDate: options?.fromCreatedDate,\n toCreatedDate: options?.toCreatedDate,\n cursorPaging: options?.cursorPaging,\n includePayload: options?.includePayload,\n identifierType: options?.identifierType,\n automationIdInfo: options?.automationIdInfo,\n preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.listActivationLogs(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fromCreatedDate: '$[0].fromCreatedDate',\n toCreatedDate: '$[0].toCreatedDate',\n cursorPaging: '$[0].cursorPaging',\n includePayload: '$[0].includePayload',\n identifierType: '$[0].identifierType',\n automationIdInfo: '$[0].automationIdInfo',\n preinstalledIdentifierInfo: '$[0].preinstalledIdentifierInfo',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListActivationLogsOptions\n extends ListActivationLogsOptionsIdentifierOneOf {\n /** From created date, If not specified, defaults to 30 days before the current time. */\n fromCreatedDate?: Date | null;\n /** To created date, If not specified, defaults to current time. */\n toCreatedDate?: Date | null;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** identifier type for the activations to list */\n identifierType: IdentifierTypeWithLiterals;\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/** @oneof */\nexport interface ListActivationLogsOptionsIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n * @param value - Value to search in the payload\n * @public\n * @documentationMaturity preview\n * @requiredField value\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue\n */\nexport async function searchActivationLogsByPayloadPiiValue(\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n): Promise<\n NonNullablePaths<\n SearchActivationLogsByPayloadPiiValueResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n value: value,\n cursorPaging: options?.cursorPaging,\n includePayload: options?.includePayload,\n filterBy: options?.filterBy,\n automationIdInfo: options?.automationIdInfo,\n preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,\n fromCreatedDate: options?.fromCreatedDate,\n toCreatedDate: options?.toCreatedDate,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.searchActivationLogsByPayloadPiiValue(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n value: '$[0]',\n cursorPaging: '$[1].cursorPaging',\n includePayload: '$[1].includePayload',\n filterBy: '$[1].filterBy',\n automationIdInfo: '$[1].automationIdInfo',\n preinstalledIdentifierInfo: '$[1].preinstalledIdentifierInfo',\n fromCreatedDate: '$[1].fromCreatedDate',\n toCreatedDate: '$[1].toCreatedDate',\n },\n singleArgumentUnchanged: false,\n },\n ['value', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchActivationLogsByPayloadPiiValueOptions\n extends SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** Filter by */\n filterBy?: FilterByWithLiterals;\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /** From created date */\n fromCreatedDate?: Date | null;\n /** To created date */\n toCreatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n {\n srcPath: '/_api/activation-logs',\n destPath: '/api',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_activation-log';\n\n/** Get activation log by ID */\nexport function getActivationLog(payload: object): RequestOptionsFactory<any> {\n function __getActivationLog({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs/{activationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLog.createdDate' },\n { path: 'activationLog.initiatedInfo.statusChangedDate' },\n { path: 'activationLog.scheduledInfo.statusChangedDate' },\n { path: 'activationLog.scheduledInfo.date' },\n { path: 'activationLog.startedInfo.statusChangedDate' },\n { path: 'activationLog.endedInfo.statusChangedDate' },\n { path: 'activationLog.cancelledInfo.statusChangedDate' },\n { path: 'activationLog.failedInfo.statusChangedDate' },\n { path: 'activationLog.skippedInfo.statusChangedDate' },\n { path: 'activationLog.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getActivationLog;\n}\n\n/** List activation logs */\nexport function listActivationLogs(\n payload: object\n): RequestOptionsFactory<any> {\n function __listActivationLogs({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'fromCreatedDate' }, { path: 'toCreatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLogs.createdDate' },\n { path: 'activationLogs.initiatedInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.date' },\n { path: 'activationLogs.startedInfo.statusChangedDate' },\n { path: 'activationLogs.endedInfo.statusChangedDate' },\n { path: 'activationLogs.cancelledInfo.statusChangedDate' },\n { path: 'activationLogs.failedInfo.statusChangedDate' },\n { path: 'activationLogs.skippedInfo.statusChangedDate' },\n { path: 'activationLogs.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listActivationLogs;\n}\n\n/**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n */\nexport function searchActivationLogsByPayloadPiiValue(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchActivationLogsByPayloadPiiValue({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'fromCreatedDate' }, { path: 'toCreatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs/search-by-payload-pii-value',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLogs.createdDate' },\n { path: 'activationLogs.initiatedInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.date' },\n { path: 'activationLogs.startedInfo.statusChangedDate' },\n { path: 'activationLogs.endedInfo.statusChangedDate' },\n { path: 'activationLogs.cancelledInfo.statusChangedDate' },\n { path: 'activationLogs.failedInfo.statusChangedDate' },\n { path: 'activationLogs.skippedInfo.statusChangedDate' },\n { path: 'activationLogs.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchActivationLogsByPayloadPiiValue;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ActivationLog,\n ListActivationLogsOptions,\n ListActivationLogsResponse,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueResponse,\n getActivationLog as universalGetActivationLog,\n listActivationLogs as universalListActivationLogs,\n searchActivationLogsByPayloadPiiValue as universalSearchActivationLogsByPayloadPiiValue,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\nexport function getActivationLog(\n httpClient: HttpClient\n): GetActivationLogSignature {\n return (activationId: string) =>\n universalGetActivationLog(\n activationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActivationLogSignature {\n /**\n * Get activation log by ID\n * @param - Activation log ID\n * @returns Activation log\n */\n (activationId: string): Promise<\n NonNullablePaths<\n ActivationLog,\n | `_id`\n | `automationId`\n | `automationRevision`\n | `status`\n | `initiatedInfo.target`\n | `scheduledInfo.scheduleId`\n | `cancelledInfo.reason`\n | `failedInfo.errorDescription`\n | `failedInfo.errorReason`\n | `skippedInfo.reason`\n | `warnings`\n | `warnings.${number}.errorDescription`\n | `warnings.${number}.reason`,\n 4\n >\n >;\n}\n\nexport function listActivationLogs(\n httpClient: HttpClient\n): ListActivationLogsSignature {\n return (\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n ) =>\n universalListActivationLogs(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListActivationLogsSignature {\n /**\n * List activation logs\n */\n (\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n ): Promise<\n NonNullablePaths<\n ListActivationLogsResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`,\n 5\n >\n >;\n}\n\nexport function searchActivationLogsByPayloadPiiValue(\n httpClient: HttpClient\n): SearchActivationLogsByPayloadPiiValueSignature {\n return (\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n ) =>\n universalSearchActivationLogsByPayloadPiiValue(\n value,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchActivationLogsByPayloadPiiValueSignature {\n /**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n * @param - Value to search in the payload\n */\n (\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n ): Promise<\n NonNullablePaths<\n SearchActivationLogsByPayloadPiiValueResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`,\n 5\n >\n >;\n}\n\nexport {\n AIMetadata,\n Action,\n ActionEvent,\n ActionInfoOneOf,\n ActionSettings,\n ActivationContinuedAfterSchedule,\n ActivationLog,\n AppDefinedAction,\n ApplicationOrigin,\n AuditInfo,\n AuditInfoIdOneOf,\n AutoArchivePolicy,\n Automation,\n AutomationConfiguration,\n AutomationConfigurationStatus,\n AutomationIdInfo,\n AutomationOriginInfoOneOf,\n AutomationSettings,\n CancellationReason,\n CancelledStatusInfo,\n ClientEntityIdsByNamespace,\n CodeConditionAction,\n CodeSnippet,\n ConditionAction,\n ConditionExpressionGroup,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DelayAction,\n Dimensions,\n Domain,\n DomainEvent,\n DomainEventBodyOneOf,\n DraftInfo,\n Empty,\n EndedStatusInfo,\n Enrichment,\n Enrichments,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ErrorReason,\n ExtendedFields,\n FailedStatusInfo,\n Filter,\n FilterBy,\n FilterValueSelection,\n FilterableAppDefinedActions,\n FutureDateActivationOffset,\n GetActivationLogRequest,\n GetActivationLogResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentifierType,\n Identity,\n InitiatedStatusInfo,\n Language,\n ListActivationLogsOptions,\n ListActivationLogsOptionsIdentifierOneOf,\n ListActivationLogsRequest,\n ListActivationLogsRequestIdentifierOneOf,\n ListActivationLogsResponse,\n MessageEnvelope,\n Note,\n Notes,\n Offset,\n Operator,\n Origin,\n OutputAction,\n Path,\n Position,\n PreinstalledIdentifierInfo,\n PreinstalledOrigin,\n RateLimit,\n RateLimitAction,\n RestoreInfo,\n ScheduledStatusInfo,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueRequest,\n SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueResponse,\n SetVariablesAction,\n SkipReason,\n SkippedStatusInfo,\n SplitAction,\n StartedStatusInfo,\n Status,\n Target,\n TimeUnit,\n Trigger,\n TriggerSettings,\n Type,\n UouDeleteRequest,\n Warning,\n WarningReason,\n WebhookIdentityType,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n","import {\n getActivationLog as publicGetActivationLog,\n listActivationLogs as publicListActivationLogs,\n searchActivationLogsByPayloadPiiValue as publicSearchActivationLogsByPayloadPiiValue,\n} from './automations-activation-logs-v1-activation-log-activation-log.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getActivationLog: MaybeContext<\n BuildRESTFunction<typeof publicGetActivationLog> &\n typeof publicGetActivationLog\n> = /*#__PURE__*/ createRESTModule(publicGetActivationLog);\nexport const listActivationLogs: MaybeContext<\n BuildRESTFunction<typeof publicListActivationLogs> &\n typeof publicListActivationLogs\n> = /*#__PURE__*/ createRESTModule(publicListActivationLogs);\nexport const searchActivationLogsByPayloadPiiValue: MaybeContext<\n BuildRESTFunction<typeof publicSearchActivationLogsByPayloadPiiValue> &\n typeof publicSearchActivationLogsByPayloadPiiValue\n> = /*#__PURE__*/ createRESTModule(publicSearchActivationLogsByPayloadPiiValue);\n\nexport {\n Target,\n CancellationReason,\n ErrorReason,\n SkipReason,\n Status,\n WarningReason,\n Domain,\n TimeUnit,\n Operator,\n Language,\n Type,\n AutomationConfigurationStatus,\n Origin,\n IdentifierType,\n FilterBy,\n WebhookIdentityType,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\nexport {\n ActivationLog,\n Identity,\n InitiatedStatusInfo,\n ScheduledStatusInfo,\n StartedStatusInfo,\n EndedStatusInfo,\n CancelledStatusInfo,\n FailedStatusInfo,\n SkippedStatusInfo,\n Warning,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n ActivationContinuedAfterSchedule,\n Automation,\n AutomationOriginInfoOneOf,\n AIMetadata,\n ActionSettings,\n TriggerSettings,\n Enrichment,\n AuditInfo,\n AuditInfoIdOneOf,\n AutomationConfiguration,\n Filter,\n FutureDateActivationOffset,\n RateLimit,\n FilterValueSelection,\n ConditionExpressionGroup,\n CodeSnippet,\n Path,\n AppDefinedAction,\n ConditionAction,\n CodeConditionAction,\n DelayAction,\n RateLimitAction,\n SetVariablesAction,\n OutputAction,\n SplitAction,\n Trigger,\n Action,\n ActionInfoOneOf,\n FilterableAppDefinedActions,\n ApplicationOrigin,\n PreinstalledOrigin,\n AutomationSettings,\n DraftInfo,\n Enrichments,\n ExtendedFields,\n AutoArchivePolicy,\n Notes,\n Note,\n Position,\n Offset,\n Dimensions,\n UouDeleteRequest,\n ClientEntityIdsByNamespace,\n GetActivationLogRequest,\n GetActivationLogResponse,\n ListActivationLogsRequest,\n ListActivationLogsRequestIdentifierOneOf,\n CursorPaging,\n AutomationIdInfo,\n PreinstalledIdentifierInfo,\n ListActivationLogsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchActivationLogsByPayloadPiiValueRequest,\n SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListActivationLogsOptions,\n ListActivationLogsOptionsIdentifierOneOf,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\nexport {\n TargetWithLiterals,\n CancellationReasonWithLiterals,\n ErrorReasonWithLiterals,\n SkipReasonWithLiterals,\n StatusWithLiterals,\n WarningReasonWithLiterals,\n DomainWithLiterals,\n TimeUnitWithLiterals,\n OperatorWithLiterals,\n LanguageWithLiterals,\n TypeWithLiterals,\n AutomationConfigurationStatusWithLiterals,\n OriginWithLiterals,\n IdentifierTypeWithLiterals,\n FilterByWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,6CAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAA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A,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,cAAc;AAAA,UACd,gBAAgB;AAAA,UAChB,UAAU;AAAA,UACV,kBAAkB;AAAA,UAClB,4BAA4B;AAAA,UAC5B,iBAAiB;AAAA,UACjB,eAAe;AAAA,QACjB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEvpDO,SAASG,kBACd,YAC2B;AAC3B,SAAO,CAAC,iBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA6BO,SAASC,oBACd,YAC6B;AAC7B,SAAO,CACL,YAEAA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA2BO,SAASC,uCACd,YACgD;AAChD,SAAO,CACL,OACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClGA,IAAAC,uBAAiC;AAG1B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,yCAGK,2DAAiBA,sCAA2C;","names":["getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue","import_timestamp","import_rest_modules","payload","Target","CancellationReason","ErrorReason","SkipReason","Status","WarningReason","Domain","TimeUnit","Operator","Language","Type","AutomationConfigurationStatus","Origin","IdentifierType","FilterBy","WebhookIdentityType","getActivationLog","sdkTransformError","listActivationLogs","searchActivationLogsByPayloadPiiValue","getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue","import_rest_modules","getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.universal.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.http.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.public.ts","../../src/automations-activation-logs-v1-activation-log-activation-log.context.ts"],"sourcesContent":["export * from './src/automations-activation-logs-v1-activation-log-activation-log.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixAutomationsActivationLogsV1ActivationLog from './automations-activation-logs-v1-activation-log-activation-log.http.js';\n\nexport interface ActivationLog {\n /**\n * Activation ID\n * @format GUID\n */\n _id?: string;\n /**\n * The activated automation ID\n * @format GUID\n */\n automationId?: string;\n /** The activated automation revision */\n automationRevision?: string;\n /** Automation activation status */\n status?: StatusWithLiterals;\n /** Scheduled status additional info */\n initiatedInfo?: InitiatedStatusInfo;\n /** Scheduled status additional info */\n scheduledInfo?: ScheduledStatusInfo;\n /** Started status additional info */\n startedInfo?: StartedStatusInfo;\n /** Ended status additional info */\n endedInfo?: EndedStatusInfo;\n /** Cancelled status additional info */\n cancelledInfo?: CancelledStatusInfo;\n /** Failed status additional info */\n failedInfo?: FailedStatusInfo;\n /** Skipped status additional info */\n skippedInfo?: SkippedStatusInfo;\n /**\n * Warnings information\n * @maxSize 15\n */\n warnings?: Warning[];\n /** Created date */\n _createdDate?: Date | null;\n /**\n * Activation Initiation Source information\n * Tracks whether activation was triggered by an event (TRIGGER_PROVIDER_EVENT)\n * or manually activated (MANUAL_ACTIVATION). Test mode activations (test_mode=true)\n * are excluded from activation summary counts and \"last triggered\" timestamp updates.\n * Default: TRIGGER_PROVIDER_EVENT (for backward compatibility with existing activations)\n */\n activationInitiationSourceInfo?: ActivationInitiationSourceInfo;\n}\n\nexport enum Target {\n UNKNOWN_TARGET = 'UNKNOWN_TARGET',\n SCHEDULE = 'SCHEDULE',\n IMMEDIATE = 'IMMEDIATE',\n}\n\n/** @enumType */\nexport type TargetWithLiterals =\n | Target\n | 'UNKNOWN_TARGET'\n | 'SCHEDULE'\n | 'IMMEDIATE';\n\nexport enum CancellationReason {\n UNKNOWN_CANCELLATION_REASON = 'UNKNOWN_CANCELLATION_REASON',\n /** Indicating that the activation was cancelled directly */\n EVENT_CANCELLED = 'EVENT_CANCELLED',\n /** Indicating that the activation is cancelled because the automation was deactivated */\n AUTOMATION_DEACTIVATED = 'AUTOMATION_DEACTIVATED',\n /** Indicating that the activation is cancelled because the automation was deleted */\n AUTOMATION_DELETED = 'AUTOMATION_DELETED',\n /** Indicating that the activation is cancelled after the automation schedule time was reached */\n CANCELLED_BY_REFRESH_PAYLOAD = 'CANCELLED_BY_REFRESH_PAYLOAD',\n /** Indicates that the activation was cancelled due to a UoU GDPR \"Right to be Forgotten\" request. */\n CANCELLED_BY_GDPR_REQUEST = 'CANCELLED_BY_GDPR_REQUEST',\n}\n\n/** @enumType */\nexport type CancellationReasonWithLiterals =\n | CancellationReason\n | 'UNKNOWN_CANCELLATION_REASON'\n | 'EVENT_CANCELLED'\n | 'AUTOMATION_DEACTIVATED'\n | 'AUTOMATION_DELETED'\n | 'CANCELLED_BY_REFRESH_PAYLOAD'\n | 'CANCELLED_BY_GDPR_REQUEST';\n\nexport interface Identity {\n /**\n * User ID\n * @format GUID\n */\n userId?: string | null;\n /**\n * App ID\n * @format GUID\n */\n appId?: string | null;\n}\n\nexport enum ErrorReason {\n /** Unexpected error reason */\n UNEXPECTED_ERROR_REASON = 'UNEXPECTED_ERROR_REASON',\n /** Failed to evaluate the schedule date expression */\n SCHEDULE_DATE_EVALUATION_FAILED = 'SCHEDULE_DATE_EVALUATION_FAILED',\n}\n\n/** @enumType */\nexport type ErrorReasonWithLiterals =\n | ErrorReason\n | 'UNEXPECTED_ERROR_REASON'\n | 'SCHEDULE_DATE_EVALUATION_FAILED';\n\nexport enum SkipReason {\n UNKNOWN_SKIP_REASON = 'UNKNOWN_SKIP_REASON',\n /** Activation was skipped because the scheduled execution time had already passed at the time of execution */\n SCHEDULE_DATE_EXPIRED = 'SCHEDULE_DATE_EXPIRED',\n /** Activation was skipped because the trigger filters defined in the automation did not match the payload. */\n TRIGGER_FILTERS_NOT_PASSED = 'TRIGGER_FILTERS_NOT_PASSED',\n /** Activation was skipped because it exceeded the configured rate limit (maximum number of executions allowed in a time period). */\n RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED',\n /** Activation was skipped because an event with the same idempotency key was already processed. */\n EVENT_ALREADY_PROCESSED = 'EVENT_ALREADY_PROCESSED',\n}\n\n/** @enumType */\nexport type SkipReasonWithLiterals =\n | SkipReason\n | 'UNKNOWN_SKIP_REASON'\n | 'SCHEDULE_DATE_EXPIRED'\n | 'TRIGGER_FILTERS_NOT_PASSED'\n | 'RATE_LIMIT_EXCEEDED'\n | 'EVENT_ALREADY_PROCESSED';\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** This indicates activation is not started yet (no action has run yet) */\n INITIATED = 'INITIATED',\n /** The activation is in scheduled status when the automation has future date or debounce defined and we're in the waiting stage (no action has run yet) */\n SCHEDULED = 'SCHEDULED',\n /** This indicates the automation activation has started and currently in progress */\n STARTED = 'STARTED',\n /** This indicates all the automation actions were handled either by invoking them, skipping them etc. */\n ENDED = 'ENDED',\n /** This indicates the activation was cancelled */\n CANCELLED = 'CANCELLED',\n /**\n * This indicates the activation failed to start\n * Note that failure in the activation of a single action will not result a failure in activation of the entire automation\n */\n FAILED = 'FAILED',\n /**\n * Indicates that the automation activation was skipped without executing any actions.\n * Note that an activation will either be skipped immediately or move to INITIATED state.\n */\n SKIPPED = 'SKIPPED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'INITIATED'\n | 'SCHEDULED'\n | 'STARTED'\n | 'ENDED'\n | 'CANCELLED'\n | 'FAILED'\n | 'SKIPPED';\n\nexport interface InitiatedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Target */\n target?: TargetWithLiterals;\n /** The reported trigger payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface ScheduledStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /**\n * Schedule identifier\n * @format GUID\n */\n scheduleId?: string;\n /** Indicating when the activation should start */\n date?: Date | null;\n}\n\nexport interface StartedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Enriched and refreshed payload */\n payload?: Record<string, any> | null;\n}\n\nexport interface EndedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Indicates if the activation failed with errors in one or more actions. Actions that failed but eventually ended are not included */\n withFailedActions?: boolean | null;\n}\n\nexport interface CancelledStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** Cancellation reason */\n reason?: CancellationReasonWithLiterals;\n /** The identity (such as user, app etc.) that caused the cancellation */\n initiator?: Identity;\n}\n\nexport interface FailedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /**\n * Error description\n * @maxLength 1000\n * @readonly\n */\n errorDescription?: string;\n /**\n * Error code\n * @maxLength 20\n */\n errorCode?: string | null;\n /** Error reason */\n errorReason?: ErrorReasonWithLiterals;\n /** Event payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface SkippedStatusInfo {\n /** Created date */\n statusChangedDate?: Date | null;\n /** The reason why the automation activation was skipped */\n reason?: SkipReasonWithLiterals;\n /** The reported trigger payload */\n payload?: Record<string, any> | null;\n /**\n * External entity ID\n * @maxLength 40\n */\n externalEntityId?: string | null;\n /**\n * Unique identifier for the request that initiated the automation\n * @maxLength 100\n */\n requestId?: string | null;\n}\n\nexport interface Warning {\n /** Event date */\n warningDate?: Date | null;\n /**\n * Detailed description of what caused the warning\n * @maxLength 1000\n * @readonly\n */\n errorDescription?: string;\n /**\n * Error code of what caused the warning\n * @maxLength 20\n * @readonly\n */\n errorCode?: string | null;\n /** The reason for the warning */\n reason?: WarningReasonWithLiterals;\n}\n\nexport enum WarningReason {\n UNKNOWN_WARNING_REASON = 'UNKNOWN_WARNING_REASON',\n /** Failed to enrich payload with studio site enrichment */\n STUDIO_SITE_ENRICHMENT_FAILED = 'STUDIO_SITE_ENRICHMENT_FAILED',\n /** Failed to refresh payload data */\n REFRESH_PAYLOAD_FAILED = 'REFRESH_PAYLOAD_FAILED',\n /** Failed to retrieve contact information */\n GET_CONTACT_ENRICHMENT_FAILED = 'GET_CONTACT_ENRICHMENT_FAILED',\n /** Failed to retrieve member information */\n GET_MEMBER_ENRICHMENT_FAILED = 'GET_MEMBER_ENRICHMENT_FAILED',\n}\n\n/** @enumType */\nexport type WarningReasonWithLiterals =\n | WarningReason\n | 'UNKNOWN_WARNING_REASON'\n | 'STUDIO_SITE_ENRICHMENT_FAILED'\n | 'REFRESH_PAYLOAD_FAILED'\n | 'GET_CONTACT_ENRICHMENT_FAILED'\n | 'GET_MEMBER_ENRICHMENT_FAILED';\n\n/** Activation initiation source with additional details based on origin. */\nexport interface ActivationInitiationSourceInfo\n extends ActivationInitiationSourceInfoInitiationSourceInfoOneOf {\n /** Details for MANUAL_ACTIVATION source. */\n manualActivationInfo?: ManualActivationInfo;\n /** The source type of this activation. */\n activationInitiationSource?: ActivationInitiationSourceWithLiterals;\n}\n\n/** @oneof */\nexport interface ActivationInitiationSourceInfoInitiationSourceInfoOneOf {\n /** Details for MANUAL_ACTIVATION source. */\n manualActivationInfo?: ManualActivationInfo;\n}\n\n/**\n * Source types for automation activation.\n * This enum may be extended in the future to support additional activation origins.\n */\nexport enum ActivationInitiationSource {\n /** Unspecified activation initiation source (protobuf default value). */\n UNKNOWN_ACTIVATION_INITIATION_SOURCE = 'UNKNOWN_ACTIVATION_INITIATION_SOURCE',\n /**\n * Activation triggered by a provider event (e.g., reportEvent, bulkReportEvent).\n * The automation runs in response to a business event. Uses published automations only.\n */\n TRIGGER_PROVIDER_EVENT = 'TRIGGER_PROVIDER_EVENT',\n /**\n * Activation triggered by manual execution (e.g., testAutomation, ReRunAutomation).\n * Explicitly initiated by user or API caller with explicit payload.\n */\n MANUAL_ACTIVATION = 'MANUAL_ACTIVATION',\n}\n\n/** @enumType */\nexport type ActivationInitiationSourceWithLiterals =\n | ActivationInitiationSource\n | 'UNKNOWN_ACTIVATION_INITIATION_SOURCE'\n | 'TRIGGER_PROVIDER_EVENT'\n | 'MANUAL_ACTIVATION';\n\n/** Additional information for manual automation activations. */\nexport interface ManualActivationInfo {\n /**\n * Whether this activation is running in test mode.\n *\n * In test mode:\n * - Draft automations can be executed\n * - Certain actions may be skipped (e.g., delays, rate limits)\n * - Used primarily for testing automations before publication\n *\n * Default: false (standard production mode)\n */\n testMode?: boolean;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface ActivationContinuedAfterSchedule {\n /**\n * Activation identifier\n * @format GUID\n */\n _id?: string;\n /** Activation Automation */\n automation?: Automation;\n}\n\nexport interface Automation extends AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n /**\n * Automation ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Who created the automation.\n * @immutable\n * @readonly\n */\n createdBy?: AuditInfo;\n /**\n * When the automation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Who last updated the automation.\n * @readonly\n */\n updatedBy?: AuditInfo;\n /**\n * When the automation was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Automation name as displayed on the user's site.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Automation description.\n * @maxLength 2000\n */\n description?: string | null;\n /** Automation configuration. */\n configuration?: AutomationConfiguration;\n /**\n * How the automation was added to the user's site.\n * @immutable\n */\n origin?: OriginWithLiterals;\n /** Automation settings. Applied only for pre-installed and application automations. Not applied to User origin automations */\n settings?: AutomationSettings;\n /**\n * When the automation is a draft, the draft details.\n * @readonly\n */\n draftInfo?: DraftInfo;\n /**\n * Whether the automation is archived.\n *\n * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.\n */\n archived?: boolean;\n /** Auto archive policy */\n autoArchivePolicy?: AutoArchivePolicy;\n}\n\n/** @oneof */\nexport interface AutomationOriginInfoOneOf {\n /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */\n applicationInfo?: ApplicationOrigin;\n /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */\n preinstalledInfo?: PreinstalledOrigin;\n}\n\nexport interface AIMetadata {\n /**\n * Origin agent identifier.\n * @minLength 1\n * @maxLength 64\n */\n originAgentIdentifier?: string | null;\n}\n\nexport interface ActionSettings {\n /**\n * IDs of actions whose `skipActionExpression` can't be modified.\n *\n * An action's `skipActionExpression` determines whether the action is skipped. Including an action's ID in this array makes its `skipActionExpression` permanent, so it can't be changed.\n *\n * When empty, the `skipActionExpression` of all actions can be edited.\n * @maxSize 30\n * @format GUID\n */\n permanentActionIds?: string[];\n /**\n * IDs of read-only actions. Read-only actions cannot be modified.\n *\n * When empty and the automation's `settings.readonly` is `false`, all actions are modifiable.\n * @maxSize 30\n * @format GUID\n */\n readonlyActionIds?: string[];\n}\n\nexport enum Domain {\n /** User domain (default). */\n USER = 'USER',\n /** Wix domain. */\n WIX = 'WIX',\n /** Wix account-level domain. */\n WIX_ACCOUNT = 'WIX_ACCOUNT',\n}\n\n/** @enumType */\nexport type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';\n\nexport interface TriggerSettings {}\n\nexport interface Enrichment {\n /**\n * Enrichment input mappings.\n * @maxSize 2\n */\n inputMappings?: Record<string, any>[] | null;\n}\n\nexport interface AuditInfo extends AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface AuditInfoIdOneOf {\n /**\n * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).\n * @format GUID\n */\n userId?: string;\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface AutomationConfiguration {\n /** Status of the automation on the site. */\n status?: AutomationConfigurationStatusWithLiterals;\n /** Trigger configuration. */\n trigger?: Trigger;\n /**\n * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.\n *\n * > **Note**: You can currently only specify 1 root action.\n * @maxSize 20\n * @format GUID\n */\n rootActionIds?: string[];\n /** Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below. */\n actions?: Record<string, Action>;\n}\n\nexport enum TimeUnit {\n UNKNOWN_TIME_UNIT = 'UNKNOWN_TIME_UNIT',\n /** Minutes. */\n MINUTES = 'MINUTES',\n /** Hours. */\n HOURS = 'HOURS',\n /** Days. */\n DAYS = 'DAYS',\n /** Weeks. */\n WEEKS = 'WEEKS',\n /** Months. */\n MONTHS = 'MONTHS',\n}\n\n/** @enumType */\nexport type TimeUnitWithLiterals =\n | TimeUnit\n | 'UNKNOWN_TIME_UNIT'\n | 'MINUTES'\n | 'HOURS'\n | 'DAYS'\n | 'WEEKS'\n | 'MONTHS';\n\nexport interface Filter {\n /**\n * Filter ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Field key.\n *\n * You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).\n * @minLength 1\n * @maxLength 110\n */\n fieldKey?: string;\n /**\n * Filter expression.\n *\n * For the automation to run, the expression must evaluate to `true`.\n * @maxLength 2500\n */\n filterExpression?: string;\n}\n\nexport interface FutureDateActivationOffset {\n /**\n * Amount of time before the trigger to run the automation.\n *\n * > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).\n * @maxLength 1000\n */\n preScheduledEventOffsetExpression?: string;\n /** Unit in which to set the action offset. */\n scheduledEventOffsetTimeUnit?: TimeUnitWithLiterals;\n}\n\nexport interface RateLimit {\n /**\n * Maximum number of times the trigger can be activated.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Duration of the rate limit. The rate limit applies for the specified duration and then expires.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n durationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n durationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Activation identifier used to count the number of activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n}\n\nexport interface FilterValueSelection {\n /**\n * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.\n * @maxLength 80\n * @maxSize 50\n */\n selectedFilterValues?: string[];\n}\n\nexport interface ConditionExpressionGroup {\n /** Logical operator used to evaluate the condition expressions. */\n operator?: OperatorWithLiterals;\n /**\n * Expressions evaluated using the selected operator.\n * @minSize 1\n * @maxSize 20\n * @maxLength 2500\n */\n booleanExpressions?: string[];\n}\n\nexport enum Operator {\n /** Unknown. */\n UNKNOWN_OPERATOR = 'UNKNOWN_OPERATOR',\n /** `OR` operator. */\n OR = 'OR',\n /** `AND` operator. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';\n\nexport interface CodeSnippet {\n /** Logical operator used to evaluate the condition expressions. */\n language?: LanguageWithLiterals;\n /**\n * Expressions evaluated using the selected operator. this code should comply the language syntax. and format\n * @maxLength 1000\n */\n code?: string;\n}\n\nexport enum Language {\n /** Unknown. */\n UNKNOWN_LANGUAGE = 'UNKNOWN_LANGUAGE',\n /** JavaScript. */\n JAVASCRIPT = 'JAVASCRIPT',\n}\n\n/** @enumType */\nexport type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';\n\n/** Path definition */\nexport interface Path {\n /**\n * Unique path ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Path display name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * ID of the action to run when this path is taken.\n * @format GUID\n */\n postActionId?: string | null;\n}\n\nexport enum Type {\n /** Based on the trigger. */\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n /** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action). This action type is available in the site dashboard. */\n APP_DEFINED = 'APP_DEFINED',\n /**\n * Condition action. Evaluates a condition to determine which action runs next.\n *\n * Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.\n *\n * > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `conditionInfo.truePostActionIds` run and those in `conditionInfo.falsePostActionIds` are skipped.\n */\n CONDITION = 'CONDITION',\n /**\n * Code condition action. Evaluates custom code to determine which action runs next.\n *\n * Learn more about [adding and setting up conditions](https://support.wix.com/en/article/the-new-automation-builder-understanding-conditions-operators) in Wix Automations.\n *\n * > **Note**: When `skipActionExpression` evaluates to `true`, the actions in `codeConditionInfo.truePostActionIds` run and those in `codeConditionInfo.falsePostActionIds` are skipped.\n */\n CODE_CONDITION = 'CODE_CONDITION',\n /** Delay. The automation must wait before executing the next step. */\n DELAY = 'DELAY',\n /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */\n RATE_LIMIT = 'RATE_LIMIT',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'UNKNOWN_ACTION_TYPE'\n | 'APP_DEFINED'\n | 'CONDITION'\n | 'CODE_CONDITION'\n | 'DELAY'\n | 'RATE_LIMIT';\n\nexport interface AppDefinedAction {\n /**\n * ID of the app that defines the action.\n * @format GUID\n */\n appId?: string;\n /**\n * Action key.\n * @minLength 1\n * @maxLength 100\n */\n actionKey?: string;\n /**\n * Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).\n *\n * The input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.\n */\n inputMapping?: Record<string, any> | null;\n /**\n * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @maxSize 10\n * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.\n *\n * > **Note**: Actions that follow a skipped action still run.\n * @replacedBy skip_action_expression\n * @targetRemovalDate 2026-02-01\n */\n skipConditionOrExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions that run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n /** Action output schema. When specified, this replaces the action schema. */\n overrideOutputSchema?: Record<string, any> | null;\n}\n\nexport interface ConditionAction {\n /**\n * Condition is `true` if one or more of the expression groups evaluates to `true`.\n * @minSize 1\n * @maxSize 10\n */\n orExpressionGroups?: ConditionExpressionGroup[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n}\n\nexport interface CodeConditionAction {\n /** 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. */\n snippet?: CodeSnippet;\n /**\n * dynamic variables used in the code snippet. these variables can be used inside the code using var('variableName') function.\n * this list is mainly for validation purpose.\n * @maxSize 50\n * @maxLength 100\n */\n dynamicVariableExpressions?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `true`.\n * @maxSize 1\n * @format GUID\n */\n truePostActionIds?: string[];\n /**\n * IDs of actions to run when the condition evaluates to `false`.\n * @maxSize 1\n * @format GUID\n */\n falsePostActionIds?: string[];\n}\n\nexport interface DelayAction {\n /**\n * Time to wait before running the action. The wait time starts from when the current action completes.\n *\n * > **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.\n * @maxLength 1000\n */\n offsetExpression?: string | null;\n /** Unit in which to set the wait time to wait before the action runs. */\n offsetTimeUnit?: TimeUnitWithLiterals;\n /**\n * Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n * @deprecated Action run date in milliseconds elapsed since January 1, 1970 UTC.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @replacedBy due_date_expression\n * @targetRemovalDate 2026-02-01\n */\n dueDateEpochExpression?: string | null;\n /**\n * Action run date as a timestamp or DateTime expression using bracket notation.\n *\n * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.\n * @maxLength 1000\n */\n dueDateExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the time delay.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface RateLimitAction {\n /**\n * Maximum number of times the action can run.\n * @maxLength 1000\n */\n maxActivationsExpression?: string;\n /**\n * Rate limit duration.\n *\n * When empty, the rate limit does not expire.\n * @maxLength 1000\n */\n rateLimitDurationExpression?: string | null;\n /** Unit in which to set the duration of the rate limit. */\n rateLimitDurationTimeUnit?: TimeUnitWithLiterals;\n /**\n * Unique identifier of each activation by which rate limiter counts activations.\n * @minLength 1\n * @maxLength 400\n */\n uniqueIdentifierExpression?: string | null;\n /**\n * IDs of actions to run in parallel after the action completes.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface SetVariablesAction {\n /** Output mapping. For example: `{\"someField\": \"{{10}}\", \"someOtherField\": \"{{multiply( var('account.points.balance') ;2 )}}\" }`. */\n outputMapping?: Record<string, any> | null;\n /**\n * Output JSON schema representation.\n *\n * > **Note**: To minimize request size, you can also specify a string.\n */\n outputSchema?: Record<string, any> | null;\n /**\n * IDs of actions to run in parallel after variable initialization.\n * @maxSize 1\n * @format GUID\n */\n postActionIds?: string[];\n}\n\nexport interface OutputAction {\n /** Output action output mapping. */\n outputMapping?: Record<string, any> | null;\n}\n\nexport interface SplitAction {\n /**\n * List of paths to split execution into.\n * @minSize 2\n * @maxSize 10\n */\n paths?: Path[];\n}\n\nexport enum AutomationConfigurationStatus {\n /** Unknown. */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** Active. Active automations can be triggered. */\n ACTIVE = 'ACTIVE',\n /** Inactive. Inactive automations cannot be triggered. */\n INACTIVE = 'INACTIVE',\n}\n\n/** @enumType */\nexport type AutomationConfigurationStatusWithLiterals =\n | AutomationConfigurationStatus\n | 'UNKNOWN_STATUS'\n | 'ACTIVE'\n | 'INACTIVE';\n\nexport interface Trigger {\n /**\n * ID of the app that defines the trigger.\n * @format GUID\n */\n appId?: string;\n /**\n * Trigger key.\n *\n * Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).\n * @minLength 1\n * @maxLength 100\n */\n triggerKey?: string;\n /**\n * Schema field filters. All filter conditions must be met for the automation to run.\n *\n * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#filters).\n * @maxSize 5\n */\n filters?: Filter[];\n /**\n * Automation offset. You can schedule automations to run before the trigger occurs.\n *\n * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).\n */\n scheduledEventOffset?: FutureDateActivationOffset;\n /** Limit on the number of times an automation can be triggered. */\n rateLimit?: RateLimit;\n /** Trigger schema override. When specified, this replaces the trigger schema. */\n overrideSchema?: Record<string, any> | null;\n}\n\nexport interface Action extends ActionInfoOneOf {\n /** Details of the action whose `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action whose `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action whose `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action whose `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action whose `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n /**\n * Action ID.\n *\n * Unique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.\n *\n * If not specified, automatically generated by Wix.\n * @format GUID\n */\n _id?: string | null;\n /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type). */\n type?: TypeWithLiterals;\n /**\n * Editable display name for the action.\n * @minLength 1\n * @maxLength 60\n */\n displayName?: string | null;\n /**\n * [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.\n *\n * If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.\n * @minLength 1\n * @maxLength 100\n */\n namespace?: string | null;\n /**\n * Evaluated to determine whether the action is skipped. When evaluated to `true`, the action is skipped. Otherwise, the action runs.\n *\n * When empty, the action runs.\n * @maxLength 1000\n */\n skipActionExpression?: string | null;\n}\n\n/** @oneof */\nexport interface ActionInfoOneOf {\n /** Details of the action whose `type` is `APP_DEFINED`. */\n appDefinedInfo?: AppDefinedAction;\n /** Details of the action whose `type` is `CONDITION`. */\n conditionInfo?: ConditionAction;\n /** Details of the action whose `type` is `CODE_CONDITION`. */\n codeConditionInfo?: CodeConditionAction;\n /** Details of the action whose `type` is `DELAY`. */\n delayInfo?: DelayAction;\n /** Details of the action whose `type` is `RATE_LIMIT`. */\n rateLimitInfo?: RateLimitAction;\n}\n\nexport interface FilterableAppDefinedActions {\n /**\n * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 150\n */\n actionIdentifiers?: string[];\n}\n\nexport enum Origin {\n /** Default value. */\n UNKNOWN_ORIGIN = 'UNKNOWN_ORIGIN',\n /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */\n USER = 'USER',\n /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */\n APPLICATION = 'APPLICATION',\n /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */\n PREINSTALLED = 'PREINSTALLED',\n}\n\n/** @enumType */\nexport type OriginWithLiterals =\n | Origin\n | 'UNKNOWN_ORIGIN'\n | 'USER'\n | 'APPLICATION'\n | 'PREINSTALLED';\n\nexport interface ApplicationOrigin {\n /**\n * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).\n *\n * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface PreinstalledOrigin {\n /**\n * ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).\n * @format GUID\n */\n appId?: string;\n /**\n * Whether the automation is an override.\n *\n * When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.\n *\n * > **Note**: An override automation can no longer be updated by the app that originally installed it.\n * >\n * > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.\n *\n * Default: `false`.\n * @immutable\n * @readonly\n */\n override?: boolean | null;\n}\n\nexport interface AutomationSettings {\n /**\n * Whether the automation is hidden from users.\n *\n * Default: `false`\n */\n hidden?: boolean;\n /**\n * Whether the automation is read-only.\n *\n * When `true`, site owners can't modify the automation or any of its actions. When `false`, users can configure specific actions as skippable or read-only using `settings.actionSettings`.\n *\n * Default: `false`.\n *\n * > **Note**: Setting `readOnly` to `true` overrides `settings.actionSettings`.\n */\n readonly?: boolean;\n /**\n * Whether to disable the option to delete the automation from the site.\n *\n * Default: `false`.\n */\n disableDelete?: boolean;\n /**\n * Whether to disable the option to change the automation's `configuration.status`.\n *\n * Default: `false`.\n */\n disableStatusChange?: boolean;\n /** Automation action settings. */\n actionSettings?: ActionSettings;\n}\n\nexport interface DraftInfo {\n /**\n * ID of the original automation.\n * @format GUID\n * @readonly\n */\n originalAutomationId?: string | null;\n}\n\nexport interface Enrichments {\n /** Whether the studio site enrichment is wanted. */\n studioSite?: Enrichment;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface AutoArchivePolicy {\n /**\n * Date when to archive the automation\n * If this date in the past, nothing will happen (automation will not go into archived state)\n * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE\n * After this date the automation may be unarchived and archived again, this date will have no influence\n */\n archiveDate?: Date | null;\n}\n\nexport interface Notes {}\n\nexport interface Note {}\n\nexport interface Position {}\n\nexport interface Offset {}\n\nexport interface Dimensions {}\n\nexport interface UouDeleteRequest {\n /** Original UouRightToBeDeletedRequest request */\n originalRequest?: Record<string, any> | null;\n /**\n * Found client ids\n * @maxSize 100\n */\n foundClientEntityIdsByNamespace?: ClientEntityIdsByNamespace[];\n}\n\nexport interface ClientEntityIdsByNamespace {\n /**\n * Client namespace\n * @minLength 5\n * @maxLength 50\n */\n namespace?: string;\n /**\n * Client entity IDs\n * @minLength 5\n * @maxLength 50\n * @maxSize 100\n */\n clientEntityIds?: string[];\n}\n\nexport interface GetActivationLogRequest {\n /**\n * Activation log ID\n * @format GUID\n */\n activationId: string;\n}\n\nexport interface GetActivationLogResponse {\n /** Activation log */\n activationLog?: ActivationLog;\n}\n\nexport interface ListActivationLogsRequest\n extends ListActivationLogsRequestIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /** From created date, If not specified, defaults to 30 days before the current time. */\n fromCreatedDate?: Date | null;\n /** To created date, If not specified, defaults to current time. */\n toCreatedDate?: Date | null;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** identifier type for the activations to list */\n identifierType: IdentifierTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ListActivationLogsRequestIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 500\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/** Type of identifier used to look up activation logs */\nexport enum IdentifierType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n}\n\n/** @enumType */\nexport type IdentifierTypeWithLiterals = IdentifierType | 'UNKNOWN_TYPE';\n\nexport interface AutomationIdInfo {\n /**\n * Automation ID\n * @format GUID\n */\n automationId?: string;\n}\n\nexport interface PreinstalledIdentifierInfo {\n /**\n * ID of the app that defines the preinstalled automation.\n * @format GUID\n */\n appId?: string;\n /**\n * Application component ID.\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ListActivationLogsResponse {\n /** List of activation logs */\n activationLogs?: ActivationLog[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor string that point to the next page */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n}\n\nexport interface SearchActivationLogsByPayloadPiiValueRequest\n extends SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /**\n * Value to search in the payload\n * @minLength 1\n * @maxLength 50\n */\n value: string;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** Filter by */\n filterBy?: FilterByWithLiterals;\n /** From created date */\n fromCreatedDate?: Date | null;\n /** To created date */\n toCreatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/** FilterBy */\nexport enum FilterBy {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n}\n\n/** @enumType */\nexport type FilterByWithLiterals = FilterBy | 'UNKNOWN_TYPE';\n\nexport interface SearchActivationLogsByPayloadPiiValueResponse {\n /** List of activation logs */\n activationLogs?: ActivationLog[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\n/**\n * Get activation log by ID\n * @param activationId - Activation log ID\n * @public\n * @documentationMaturity preview\n * @requiredField activationId\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @returns Activation log\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog\n */\nexport async function getActivationLog(\n activationId: string\n): Promise<\n NonNullablePaths<\n ActivationLog,\n | `_id`\n | `automationId`\n | `automationRevision`\n | `status`\n | `initiatedInfo.target`\n | `scheduledInfo.scheduleId`\n | `cancelledInfo.reason`\n | `failedInfo.errorDescription`\n | `failedInfo.errorReason`\n | `skippedInfo.reason`\n | `warnings`\n | `warnings.${number}.errorDescription`\n | `warnings.${number}.reason`\n | `activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationInitiationSourceInfo.activationInitiationSource`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n activationId: activationId,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.getActivationLog(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.activationLog!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { activationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['activationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * List activation logs\n * @public\n * @documentationMaturity preview\n * @requiredField options.identifierType\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs\n */\nexport async function listActivationLogs(\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n): Promise<\n NonNullablePaths<\n ListActivationLogsResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`\n | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fromCreatedDate: options?.fromCreatedDate,\n toCreatedDate: options?.toCreatedDate,\n cursorPaging: options?.cursorPaging,\n includePayload: options?.includePayload,\n identifierType: options?.identifierType,\n automationIdInfo: options?.automationIdInfo,\n preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.listActivationLogs(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fromCreatedDate: '$[0].fromCreatedDate',\n toCreatedDate: '$[0].toCreatedDate',\n cursorPaging: '$[0].cursorPaging',\n includePayload: '$[0].includePayload',\n identifierType: '$[0].identifierType',\n automationIdInfo: '$[0].automationIdInfo',\n preinstalledIdentifierInfo: '$[0].preinstalledIdentifierInfo',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListActivationLogsOptions\n extends ListActivationLogsOptionsIdentifierOneOf {\n /** From created date, If not specified, defaults to 30 days before the current time. */\n fromCreatedDate?: Date | null;\n /** To created date, If not specified, defaults to current time. */\n toCreatedDate?: Date | null;\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** identifier type for the activations to list */\n identifierType: IdentifierTypeWithLiterals;\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/** @oneof */\nexport interface ListActivationLogsOptionsIdentifierOneOf {\n /** Look up activations by automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Look up activations by preinstalled identifier */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n\n/**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n * @param value - Value to search in the payload\n * @public\n * @documentationMaturity preview\n * @requiredField value\n * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ\n * @applicableIdentity APP\n * @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue\n */\nexport async function searchActivationLogsByPayloadPiiValue(\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n): Promise<\n NonNullablePaths<\n SearchActivationLogsByPayloadPiiValueResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`\n | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n value: value,\n cursorPaging: options?.cursorPaging,\n includePayload: options?.includePayload,\n filterBy: options?.filterBy,\n automationIdInfo: options?.automationIdInfo,\n preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,\n fromCreatedDate: options?.fromCreatedDate,\n toCreatedDate: options?.toCreatedDate,\n });\n\n const reqOpts =\n ambassadorWixAutomationsActivationLogsV1ActivationLog.searchActivationLogsByPayloadPiiValue(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n value: '$[0]',\n cursorPaging: '$[1].cursorPaging',\n includePayload: '$[1].includePayload',\n filterBy: '$[1].filterBy',\n automationIdInfo: '$[1].automationIdInfo',\n preinstalledIdentifierInfo: '$[1].preinstalledIdentifierInfo',\n fromCreatedDate: '$[1].fromCreatedDate',\n toCreatedDate: '$[1].toCreatedDate',\n },\n singleArgumentUnchanged: false,\n },\n ['value', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchActivationLogsByPayloadPiiValueOptions\n extends SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {\n /** Paging */\n cursorPaging?: CursorPaging;\n /** Should return payload in the response */\n includePayload?: boolean | null;\n /** Filter by */\n filterBy?: FilterByWithLiterals;\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n /** From created date */\n fromCreatedDate?: Date | null;\n /** To created date */\n toCreatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {\n /** Filter activations by value and automation id */\n automationIdInfo?: AutomationIdInfo;\n /** Filter activations by value and preinstalled */\n preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/activation-logs',\n destPath: '',\n },\n {\n srcPath: '/_api/activation-logs',\n destPath: '/api',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_automations_activation-log';\n\n/** Get activation log by ID */\nexport function getActivationLog(payload: object): RequestOptionsFactory<any> {\n function __getActivationLog({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs/{activationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLog.createdDate' },\n { path: 'activationLog.initiatedInfo.statusChangedDate' },\n { path: 'activationLog.scheduledInfo.statusChangedDate' },\n { path: 'activationLog.scheduledInfo.date' },\n { path: 'activationLog.startedInfo.statusChangedDate' },\n { path: 'activationLog.endedInfo.statusChangedDate' },\n { path: 'activationLog.cancelledInfo.statusChangedDate' },\n { path: 'activationLog.failedInfo.statusChangedDate' },\n { path: 'activationLog.skippedInfo.statusChangedDate' },\n { path: 'activationLog.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getActivationLog;\n}\n\n/** List activation logs */\nexport function listActivationLogs(\n payload: object\n): RequestOptionsFactory<any> {\n function __listActivationLogs({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'fromCreatedDate' }, { path: 'toCreatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'GET' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLogs.createdDate' },\n { path: 'activationLogs.initiatedInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.date' },\n { path: 'activationLogs.startedInfo.statusChangedDate' },\n { path: 'activationLogs.endedInfo.statusChangedDate' },\n { path: 'activationLogs.cancelledInfo.statusChangedDate' },\n { path: 'activationLogs.failedInfo.statusChangedDate' },\n { path: 'activationLogs.skippedInfo.statusChangedDate' },\n { path: 'activationLogs.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listActivationLogs;\n}\n\n/**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n */\nexport function searchActivationLogsByPayloadPiiValue(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchActivationLogsByPayloadPiiValue({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'fromCreatedDate' }, { path: 'toCreatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.automations.activation_logs.v1.activation_log',\n method: 'POST' as any,\n methodFqn:\n 'wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({\n protoPath: '/v2/activation-logs/search-by-payload-pii-value',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'activationLogs.createdDate' },\n { path: 'activationLogs.initiatedInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.statusChangedDate' },\n { path: 'activationLogs.scheduledInfo.date' },\n { path: 'activationLogs.startedInfo.statusChangedDate' },\n { path: 'activationLogs.endedInfo.statusChangedDate' },\n { path: 'activationLogs.cancelledInfo.statusChangedDate' },\n { path: 'activationLogs.failedInfo.statusChangedDate' },\n { path: 'activationLogs.skippedInfo.statusChangedDate' },\n { path: 'activationLogs.warnings.warningDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchActivationLogsByPayloadPiiValue;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ActivationLog,\n ListActivationLogsOptions,\n ListActivationLogsResponse,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueResponse,\n getActivationLog as universalGetActivationLog,\n listActivationLogs as universalListActivationLogs,\n searchActivationLogsByPayloadPiiValue as universalSearchActivationLogsByPayloadPiiValue,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/automations' };\n\nexport function getActivationLog(\n httpClient: HttpClient\n): GetActivationLogSignature {\n return (activationId: string) =>\n universalGetActivationLog(\n activationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetActivationLogSignature {\n /**\n * Get activation log by ID\n * @param - Activation log ID\n * @returns Activation log\n */\n (activationId: string): Promise<\n NonNullablePaths<\n ActivationLog,\n | `_id`\n | `automationId`\n | `automationRevision`\n | `status`\n | `initiatedInfo.target`\n | `scheduledInfo.scheduleId`\n | `cancelledInfo.reason`\n | `failedInfo.errorDescription`\n | `failedInfo.errorReason`\n | `skippedInfo.reason`\n | `warnings`\n | `warnings.${number}.errorDescription`\n | `warnings.${number}.reason`\n | `activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationInitiationSourceInfo.activationInitiationSource`,\n 4\n >\n >;\n}\n\nexport function listActivationLogs(\n httpClient: HttpClient\n): ListActivationLogsSignature {\n return (\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n ) =>\n universalListActivationLogs(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListActivationLogsSignature {\n /**\n * List activation logs\n */\n (\n options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`, 2>\n ): Promise<\n NonNullablePaths<\n ListActivationLogsResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`\n | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`,\n 6\n >\n >;\n}\n\nexport function searchActivationLogsByPayloadPiiValue(\n httpClient: HttpClient\n): SearchActivationLogsByPayloadPiiValueSignature {\n return (\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n ) =>\n universalSearchActivationLogsByPayloadPiiValue(\n value,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchActivationLogsByPayloadPiiValueSignature {\n /**\n * Search activation logs by payload pii value\n * Entire field value match is supported\n * Supported are emails, phones and guids\n * @param - Value to search in the payload\n */\n (\n value: string,\n options?: SearchActivationLogsByPayloadPiiValueOptions\n ): Promise<\n NonNullablePaths<\n SearchActivationLogsByPayloadPiiValueResponse,\n | `activationLogs`\n | `activationLogs.${number}._id`\n | `activationLogs.${number}.automationId`\n | `activationLogs.${number}.automationRevision`\n | `activationLogs.${number}.status`\n | `activationLogs.${number}.initiatedInfo.target`\n | `activationLogs.${number}.scheduledInfo.scheduleId`\n | `activationLogs.${number}.cancelledInfo.reason`\n | `activationLogs.${number}.failedInfo.errorDescription`\n | `activationLogs.${number}.failedInfo.errorReason`\n | `activationLogs.${number}.skippedInfo.reason`\n | `activationLogs.${number}.activationInitiationSourceInfo.manualActivationInfo.testMode`\n | `activationLogs.${number}.activationInitiationSourceInfo.activationInitiationSource`,\n 6\n >\n >;\n}\n\nexport {\n AIMetadata,\n Action,\n ActionEvent,\n ActionInfoOneOf,\n ActionSettings,\n ActivationContinuedAfterSchedule,\n ActivationInitiationSource,\n ActivationInitiationSourceInfo,\n ActivationInitiationSourceInfoInitiationSourceInfoOneOf,\n ActivationLog,\n AppDefinedAction,\n ApplicationOrigin,\n AuditInfo,\n AuditInfoIdOneOf,\n AutoArchivePolicy,\n Automation,\n AutomationConfiguration,\n AutomationConfigurationStatus,\n AutomationIdInfo,\n AutomationOriginInfoOneOf,\n AutomationSettings,\n CancellationReason,\n CancelledStatusInfo,\n ClientEntityIdsByNamespace,\n CodeConditionAction,\n CodeSnippet,\n ConditionAction,\n ConditionExpressionGroup,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DelayAction,\n Dimensions,\n Domain,\n DomainEvent,\n DomainEventBodyOneOf,\n DraftInfo,\n Empty,\n EndedStatusInfo,\n Enrichment,\n Enrichments,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ErrorReason,\n ExtendedFields,\n FailedStatusInfo,\n Filter,\n FilterBy,\n FilterValueSelection,\n FilterableAppDefinedActions,\n FutureDateActivationOffset,\n GetActivationLogRequest,\n GetActivationLogResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentifierType,\n Identity,\n InitiatedStatusInfo,\n Language,\n ListActivationLogsOptions,\n ListActivationLogsOptionsIdentifierOneOf,\n ListActivationLogsRequest,\n ListActivationLogsRequestIdentifierOneOf,\n ListActivationLogsResponse,\n ManualActivationInfo,\n MessageEnvelope,\n Note,\n Notes,\n Offset,\n Operator,\n Origin,\n OutputAction,\n Path,\n Position,\n PreinstalledIdentifierInfo,\n PreinstalledOrigin,\n RateLimit,\n RateLimitAction,\n RestoreInfo,\n ScheduledStatusInfo,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueRequest,\n SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueResponse,\n SetVariablesAction,\n SkipReason,\n SkippedStatusInfo,\n SplitAction,\n StartedStatusInfo,\n Status,\n Target,\n TimeUnit,\n Trigger,\n TriggerSettings,\n Type,\n UouDeleteRequest,\n Warning,\n WarningReason,\n WebhookIdentityType,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n","import {\n getActivationLog as publicGetActivationLog,\n listActivationLogs as publicListActivationLogs,\n searchActivationLogsByPayloadPiiValue as publicSearchActivationLogsByPayloadPiiValue,\n} from './automations-activation-logs-v1-activation-log-activation-log.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getActivationLog: MaybeContext<\n BuildRESTFunction<typeof publicGetActivationLog> &\n typeof publicGetActivationLog\n> = /*#__PURE__*/ createRESTModule(publicGetActivationLog);\nexport const listActivationLogs: MaybeContext<\n BuildRESTFunction<typeof publicListActivationLogs> &\n typeof publicListActivationLogs\n> = /*#__PURE__*/ createRESTModule(publicListActivationLogs);\nexport const searchActivationLogsByPayloadPiiValue: MaybeContext<\n BuildRESTFunction<typeof publicSearchActivationLogsByPayloadPiiValue> &\n typeof publicSearchActivationLogsByPayloadPiiValue\n> = /*#__PURE__*/ createRESTModule(publicSearchActivationLogsByPayloadPiiValue);\n\nexport {\n Target,\n CancellationReason,\n ErrorReason,\n SkipReason,\n Status,\n WarningReason,\n ActivationInitiationSource,\n Domain,\n TimeUnit,\n Operator,\n Language,\n Type,\n AutomationConfigurationStatus,\n Origin,\n IdentifierType,\n FilterBy,\n WebhookIdentityType,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\nexport {\n ActivationLog,\n Identity,\n InitiatedStatusInfo,\n ScheduledStatusInfo,\n StartedStatusInfo,\n EndedStatusInfo,\n CancelledStatusInfo,\n FailedStatusInfo,\n SkippedStatusInfo,\n Warning,\n ActivationInitiationSourceInfo,\n ActivationInitiationSourceInfoInitiationSourceInfoOneOf,\n ManualActivationInfo,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n ActivationContinuedAfterSchedule,\n Automation,\n AutomationOriginInfoOneOf,\n AIMetadata,\n ActionSettings,\n TriggerSettings,\n Enrichment,\n AuditInfo,\n AuditInfoIdOneOf,\n AutomationConfiguration,\n Filter,\n FutureDateActivationOffset,\n RateLimit,\n FilterValueSelection,\n ConditionExpressionGroup,\n CodeSnippet,\n Path,\n AppDefinedAction,\n ConditionAction,\n CodeConditionAction,\n DelayAction,\n RateLimitAction,\n SetVariablesAction,\n OutputAction,\n SplitAction,\n Trigger,\n Action,\n ActionInfoOneOf,\n FilterableAppDefinedActions,\n ApplicationOrigin,\n PreinstalledOrigin,\n AutomationSettings,\n DraftInfo,\n Enrichments,\n ExtendedFields,\n AutoArchivePolicy,\n Notes,\n Note,\n Position,\n Offset,\n Dimensions,\n UouDeleteRequest,\n ClientEntityIdsByNamespace,\n GetActivationLogRequest,\n GetActivationLogResponse,\n ListActivationLogsRequest,\n ListActivationLogsRequestIdentifierOneOf,\n CursorPaging,\n AutomationIdInfo,\n PreinstalledIdentifierInfo,\n ListActivationLogsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchActivationLogsByPayloadPiiValueRequest,\n SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf,\n SearchActivationLogsByPayloadPiiValueResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListActivationLogsOptions,\n ListActivationLogsOptionsIdentifierOneOf,\n SearchActivationLogsByPayloadPiiValueOptions,\n SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\nexport {\n TargetWithLiterals,\n CancellationReasonWithLiterals,\n ErrorReasonWithLiterals,\n SkipReasonWithLiterals,\n StatusWithLiterals,\n WarningReasonWithLiterals,\n ActivationInitiationSourceWithLiterals,\n DomainWithLiterals,\n TimeUnitWithLiterals,\n OperatorWithLiterals,\n LanguageWithLiterals,\n TypeWithLiterals,\n AutomationConfigurationStatusWithLiterals,\n OriginWithLiterals,\n IdentifierTypeWithLiterals,\n FilterByWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './automations-activation-logs-v1-activation-log-activation-log.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,6CAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA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S;AAAA,EAC1B,CAAC;AAED,QAAM,UACkD;AAAA,IACpD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAF;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,cAAc;AAAA,UACd,gBAAgB;AAAA,UAChB,UAAU;AAAA,UACV,kBAAkB;AAAA,UAClB,4BAA4B;AAAA,UAC5B,iBAAiB;AAAA,UACjB,eAAe;AAAA,QACjB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE/uDO,SAASG,kBACd,YAC2B;AAC3B,SAAO,CAAC,iBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA+BO,SAASC,oBACd,YAC6B;AAC7B,SAAO,CACL,YAEAA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA6BO,SAASC,uCACd,YACgD;AAChD,SAAO,CACL,OACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACtGA,IAAAC,uBAAiC;AAG1B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,yCAGK,2DAAiBA,sCAA2C;","names":["getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue","import_timestamp","import_rest_modules","payload","Target","CancellationReason","ErrorReason","SkipReason","Status","WarningReason","ActivationInitiationSource","Domain","TimeUnit","Operator","Language","Type","AutomationConfigurationStatus","Origin","IdentifierType","FilterBy","WebhookIdentityType","getActivationLog","sdkTransformError","listActivationLogs","searchActivationLogsByPayloadPiiValue","getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue","import_rest_modules","getActivationLog","listActivationLogs","searchActivationLogsByPayloadPiiValue"]}
|