import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.js'; export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationOptions, RerunActivationRequest, RerunActivationResponse, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TestAutomationResponse, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, V1RunAutomationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature; interface ReportEventSignature { /** * Reports an event and activates site automations with the specified trigger key. * * * Only the app that created a trigger can report events for it. * This means other apps can't report events for your triggers, * and you can't report events for another app's triggers. * * If your app supports canceling events, * `externalEntityId` must be provided. * `externalEntityId` is required when calling [cancelEvent()](#cancel-event). * @param - Trigger key as defined in your app's trigger configuration * in the app dashboard. * For example, `form_submitted` or `invoice_due`. */ (triggerKey: string, options?: ReportEventOptions): Promise & { __applicationErrorsType?: ReportEventApplicationErrors; }>; } declare function bulkReportEvent$1(httpClient: HttpClient): BulkReportEventSignature; interface BulkReportEventSignature { /** * Bulk reports events and activates site automations with the specified trigger key. * @param - Trigger key as defined in your app's trigger configuration * in the app dashboard. * For example, `form_submitted` or `invoice_due`. * @param - Repeated list of event details for bulk reporting. */ (triggerKey: string, eventsInfo: EventInfo[]): Promise>; } declare function bulkCancelEvent$1(httpClient: HttpClient): BulkCancelEventSignature; interface BulkCancelEventSignature { /** * Bulk cancels any remaining actions for a trigger and external entities. * @param - Trigger key whose events you want to cancel. * For example, `form_submitted` or `invoice_due`. * @param - Repeated list of external_entity_id, representing the related resources' IDs. */ (triggerKey: string, externalEntityIds: string[]): Promise>; } declare function cancelEvent$1(httpClient: HttpClient): CancelEventSignature; interface CancelEventSignature { /** * Cancels any remaining actions for a trigger and external entity. * * * Events are not cancelable by default. * To make an event cancelable, * you must first pass an `externalEntityId` * and the applicable `triggerKey` to [reportEvent()](#report-event). * When you call cancelEvent() with the same `externalEntityId` and `triggerKey`, * the event is canceled, * as are all other events that share the `externalEntityId` and `triggerKey`. * @param - Trigger key whose event you want to cancel. * For example, `form_submitted` or `invoice_due`. * @param - ID of the related resource in GUID format. * For example, `fc81a355-3429-50fc-a4c7-def486e828f3`. * * Typically, this ID is defined in your system, * but you can also use any Wix resource GUID, * such as contact ID, member ID, or invoice ID. * See * [Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid) * for more information. */ (triggerKey: string, externalEntityId: string): Promise; } declare function reportActionInvocationCompleted$1(httpClient: HttpClient): ReportActionInvocationCompletedSignature; interface ReportActionInvocationCompletedSignature { /** * > **Note**: Call this method when using the [Action Provider service plugin](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) to run an action with a timeout. * * Reports to Wix that your action has completed. * * When Wix calls [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke) to run your [action that has a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction#action-timeouts), it pauses the automation until you call this method or until the timeout period ends. If your action has an [output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema), include your action's results. * * If you don't call this method in the timeout period, Wix [marks the action as failed](https://support.wix.com/en/article/wix-automations-understanding-run-logs#understanding-statuses) and continues to the next step in the automation. Subsequent actions may fail if they rely on your action's output. * @param - Action completion status. * @param - Invocation token from Wix's original call to [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke). Wix uses this token to match your results with the correct automation run. * * Learn more about [running an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow#run-an-invoked-action-with-a-timeout). */ (status: StatusWithLiterals, invocationToken: string, options?: ReportActionInvocationCompletedOptions): Promise; } declare const reportEvent: MaybeContext & typeof reportEvent$1>; declare const bulkReportEvent: MaybeContext & typeof bulkReportEvent$1>; declare const bulkCancelEvent: MaybeContext & typeof bulkCancelEvent$1>; declare const cancelEvent: MaybeContext & typeof cancelEvent$1>; declare const reportActionInvocationCompleted: MaybeContext & typeof reportActionInvocationCompleted$1>; export { BulkCancelEventResponse, BulkReportEventResponse, EventInfo, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, StatusWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent };