@livechat/developer-studio-api 5.12.0 → 6.0.0

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/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export { PaginatedResponse, Pagination, PagingQuery, mergeDeep } from 'utils';
5
5
  import { z } from 'zod';
6
6
  import * as axios from 'axios';
7
7
  import { AxiosRequestConfig } from 'axios';
8
- import { A as ApiErrorBase, U as UnauthorizeApiError, a as ApiErrorSource, G as GlobalAccountsClientAuthorization, T as TicketPriority, b as TicketStatus, I as IntegrationEventAuthorization, c as IntegrationNames, d as InternalServiceClientAuthorization, e as TextClientAuthorization, f as TextCustomerEventNames, g as TextCustomerSegmentType, W as WorkflowDto, h as AccountDto, L as LivechatWebhookDto, i as LivechatWebhook, S as SubscribeToIntegrationEventPayload, j as UnsubscribeFromIntegrationEventPayload, k as WorkflowCore, l as ApiPaginatedListQueryParams, m as WorkflowCrmOrganizationsOrderBy, n as WorkflowApiCrmAuthorization, o as ApiPaginatedResult, p as WorkflowCrmOrganization, q as WorkflowCrmWorkflowsOrderBy, r as WorkflowListItemDto, s as WorkflowExecutionListItem, t as WorkflowExecution, u as WorkflowIntrospection, v as AiAgentSkillsSummaryDto, w as UpsertWorkflowPayload, x as IntrospectWorkflowTaskPayload, y as WorkflowTaskIntrospectResponse, C as CredentialDto, z as CreateCredentialPayload, B as UpdateCredentialPayload, F as FunctionDto, D as WorkflowTemplateOrderBy, E as WorkflowTemplateListEntry, H as WorkflowTemplate } from './events-BdPlrYKo.js';
9
- export { J as AccountRoleDto, K as AiAgentSkillsCountDto, M as ApiError, N as ApiErrorKind, O as ApiErrorName, P as ApiPagination, Q as AwaitTaskCallback, R as BigCommerceEvent, V as BigCommerceEventNames, X as BigCommerceOauthCredential, Y as ChatDeactivatedLivechatWebhookData, Z as ChatTransferredLivechatWebhookData, _ as Credential, $ as CredentialCore, a0 as CredentialInjection, a1 as CredentialStatus, a2 as CredentialType, a3 as CredentialTypeDisplayNameMapping, a4 as CustomerLeftChatReason, a5 as DefaultLivechatSourceProperties, a6 as Filter, a7 as FilterGroup, a8 as FilterOperator, a9 as FilterValue, aa as Filters, ab as FunctionSchema, ac as GitHubAppCredential, ad as GitHubOauthCredential, ae as HubSpotOauthCredential, af as HubspotEvent, ag as HubspotEventNames, ah as Identity, ai as IdentityField, aj as IdentitySpec, ak as IncomingChatLivechatWebhookData, al as IncomingEventLivechatWebhookData, am as IncomingRichMessagePostbackLivechatWebhookData, an as IntegrationDisplayNameToNameMap, ao as IntegrationDisplayNames, ap as IntegrationEvent, aq as IntegrationEventProviderName, ar as IntegrationEventSource, as as IntegrationEventSourceName, at as IntegrationKey, au as IntegrationNameToDisplayMap, av as LivechatWebhookActions, aw as LivechatWebhookBaseEvent, ax as LivechatWebhookChat, ay as LivechatWebhookCustomEvent, az as LivechatWebhookData, aA as LivechatWebhookDataBase, aB as LivechatWebhookEvent, aC as LivechatWebhookEvents, aD as LivechatWebhookFileEvent, aE as LivechatWebhookFilledFormEvent, aF as LivechatWebhookFilledFormField, aG as LivechatWebhookFormEvent, aH as LivechatWebhookFormField, aI as LivechatWebhookMessageEvent, aJ as LivechatWebhookPostbackEcommerce, aK as LivechatWebhookRichMessageElement, aL as LivechatWebhookRichMessageEvent, aM as LivechatWebhookRichMessagePostback, aN as LivechatWebhookSystemEvent, aO as LivechatWebhookSystemMessageEvent, aP as LivechatWebhookSystemMessages, aQ as LivechatWebhookUser, aR as MailchimpEvent, aS as MailchimpEventNames, aT as MailchimpOauthCredential, aU as NeonOauthCredential, aV as NetlifyOauthCredential, aW as OAuthCredential, aX as OauthCredentialGrantType, aY as OpenaiCredential, aZ as PlanetScaleOauthCredential, a_ as PureHttpRequest, a$ as SalesforceOauthCredential, b0 as ShopifyEvent, b1 as ShopifyEventNames, b2 as ShopifyOauthCredential, b3 as SlackEvent, b4 as SlackEventNames, b5 as SlackOauthCredential, b6 as SortBy, b7 as SortOrder, b8 as Sorting, b9 as SubscribeToBigCommerceEventPayload, ba as SubscribeToHubspotEventPayload, bb as SubscribeToMailchimpEventPayload, bc as SubscribeToShopifyEventPayload, bd as SubscribeToSlackEventPayload, be as SubscribeToTextCustomerEventPayload, bf as SubscribeToTextHelpDeskEventPayload, bg as SubscribeToTextLivechatEventPayload, bh as TRIGGER_REFERENCE_NAME, bi as TextApiError, bj as TextAuthCredential, bk as TextClientOptions, bl as TextCustomerEvent, bm as TextHelpDeskEvent, bn as TextHelpDeskEventBaseFilters, bo as TextHelpDeskEventNames, bp as TextLiveChatEvent, bq as TextLivechatChatContext, br as TextLivechatEventContext, bs as TextLivechatEventNames, bt as TextLivechatProductCardEventType, bu as TextLivechatRichMessagePostbackEvent, bv as TextLivechatRichMessagePostbackResult, bw as TextOAuthCredential, bx as ThreadTaggedLivechatWebhookData, by as ThreadUntaggedLivechatWebhookData, bz as UnsubscribeFromBigCommerceEventPayload, bA as UnsubscribeFromHubspotEventPayload, bB as UnsubscribeFromMailchimpEventPayload, bC as UnsubscribeFromShopifyEventPayload, bD as UnsubscribeFromSlackEventPayload, bE as UnsubscribeFromTextCustomerEventPayload, bF as UnsubscribeFromTextHelpDeskEventPayload, bG as UnsubscribeFromTextLivechatEventPayload, bH as UserAddedToChatLivechatWebhookData, bI as UserRemovedFromChatWebhookData, bJ as VercelOauthCredential, bK as Workflow, bL as WorkflowActionTask, bM as WorkflowActionTaskCore, bN as WorkflowActionTaskErrorOutput, bO as WorkflowActionTaskInput, bP as WorkflowActionTaskInputParameters, bQ as WorkflowActionTaskSuccessOutput, bR as WorkflowAgentTrigger, bS as WorkflowAgentTriggerConfiguration, bT as WorkflowAgentTriggerCore, bU as WorkflowAgentTriggerInput, bV as WorkflowAgentTriggerSubType, bW as WorkflowAggregate, bX as WorkflowAwaitTask, bY as WorkflowAwaitTaskCore, bZ as WorkflowAwaitTaskInput, b_ as WorkflowBaseHttpTaskCore, b$ as WorkflowBranch, c0 as WorkflowBundle, c1 as WorkflowConditionTask, c2 as WorkflowConditionTaskCondition, c3 as WorkflowConditionTaskCore, c4 as WorkflowConditionTaskFieldType, c5 as WorkflowConditionTaskInput, c6 as WorkflowConditionTaskLogic, c7 as WorkflowConditionTaskOperator, c8 as WorkflowConditionTaskOperatorGroup, c9 as WorkflowConditionTaskOperatorValueType, ca as WorkflowConstructArrayItem, cb as WorkflowConstructObjectField, cc as WorkflowConstructOutputType, cd as WorkflowConstructTask, ce as WorkflowConstructTaskCore, cf as WorkflowConstructTaskDefinitionInputParameters, cg as WorkflowConstructTaskInput, ch as WorkflowConstructTaskInputArray, ci as WorkflowConstructTaskInputObject, cj as WorkflowConvertTask, ck as WorkflowConvertTaskCore, cl as WorkflowConvertTaskDefinitionInputParameters, cm as WorkflowConvertTaskInput, cn as WorkflowConvertTaskInputAffix, co as WorkflowConvertTaskInputFilter, cp as WorkflowConvertTaskInputJoin, cq as WorkflowConvertTaskInputMath, cr as WorkflowConvertTaskInputPickOmit, cs as WorkflowConvertTaskInputPluck, ct as WorkflowConvertTaskInputReducer, cu as WorkflowConvertTaskInputReplace, cv as WorkflowConvertTaskInputRound, cw as WorkflowConvertTaskInputSimple, cx as WorkflowConvertTaskInputSort, cy as WorkflowConvertTaskInputSplit, cz as WorkflowConvertTaskInputSum, cA as WorkflowConvertTaskMathOperation, cB as WorkflowConvertTaskTransformer, cC as WorkflowCustomHttpTaskCore, cD as WorkflowCustomTaskName, cE as WorkflowDefinitionDto, cF as WorkflowDoWhileBaseTask, cG as WorkflowDoWhileBaseTaskCore, cH as WorkflowDoWhileBaseTaskInput, cI as WorkflowDoWhileTask, cJ as WorkflowDoWhileTaskCore, cK as WorkflowElement, cL as WorkflowElementCore, cM as WorkflowElementIdentity, cN as WorkflowElementRef, cO as WorkflowExecutionActionTaskData, cP as WorkflowExecutionAwaitTaskData, cQ as WorkflowExecutionChatContext, cR as WorkflowExecutionConditionTask, cS as WorkflowExecutionConstructTask, cT as WorkflowExecutionContext, cU as WorkflowExecutionConvertTask, cV as WorkflowExecutionData, cW as WorkflowExecutionDefinitionStatus, cX as WorkflowExecutionDoWhileIterationOutput, cY as WorkflowExecutionDoWhileTaskData, cZ as WorkflowExecutionForkJoinTaskData, c_ as WorkflowExecutionHttpTaskData, c$ as WorkflowExecutionInlineBaseTask, d0 as WorkflowExecutionInlineTaskData, d1 as WorkflowExecutionJoinTaskData, d2 as WorkflowExecutionLookupTask, d3 as WorkflowExecutionNotifyAiAgentTaskData, d4 as WorkflowExecutionReasoningTaskData, d5 as WorkflowExecutionScriptTask, d6 as WorkflowExecutionSimpleBaseTaskData, d7 as WorkflowExecutionSimpleTaskData, d8 as WorkflowExecutionStatus, d9 as WorkflowExecutionSwitchBaseTask, da as WorkflowExecutionSwitchCaseTask, db as WorkflowExecutionSwitchTaskData, dc as WorkflowExecutionTaskBase, dd as WorkflowExecutionTaskData, de as WorkflowExecutionTaskStatus, df as WorkflowExecutionTerminateTaskData, dg as WorkflowExecutionTicketContext, dh as WorkflowExecutionTransformBaseTask, di as WorkflowExecutionTransformTaskData, dj as WorkflowExecutionTriggerData, dk as WorkflowExecutionTriggerDataBase, dl as WorkflowExecutionType, dm as WorkflowExecutionWaitTaskData, dn as WorkflowForEachTask, dp as WorkflowForEachTaskCore, dq as WorkflowForEachTaskInput, dr as WorkflowForkJoinTask, ds as WorkflowForkJoinTaskCore, dt as WorkflowForkJoinTaskInput, du as WorkflowFunctionErrorResponseBody, dv as WorkflowGraph, dw as WorkflowHttpRequest, dx as WorkflowHttpTask, dy as WorkflowHttpTaskCore, dz as WorkflowHttpTaskErrorResponseBody, dA as WorkflowHttpTaskFunctionErrorResponseBody, dB as WorkflowHttpTaskHeaders, dC as WorkflowHttpTaskInput, dD as WorkflowHttpTaskProviderErrorResponseBody, dE as WorkflowInactivityReason, dF as WorkflowInlineBaseTask, dG as WorkflowInlineBaseTaskCore, dH as WorkflowInlineBaseTaskInput, dI as WorkflowInlineTask, dJ as WorkflowInlineTaskCore, dK as WorkflowItemKind, dL as WorkflowJoinTask, dM as WorkflowJoinTaskCore, dN as WorkflowJoinTaskInput, dO as WorkflowLookupTask, dP as WorkflowLookupTaskCore, dQ as WorkflowLookupTaskDefinitionInputParameters, dR as WorkflowLookupTaskInput, dS as WorkflowLoopTask, dT as WorkflowLoopTaskCore, dU as WorkflowLoopTaskInput, dV as WorkflowManualTrigger, dW as WorkflowManualTriggerCore, dX as WorkflowManualTriggerParameter, dY as WorkflowManualTriggerSubType, dZ as WorkflowManualTriggerSubTypeName, d_ as WorkflowNode, d$ as WorkflowNotifyAiAgentTask, e0 as WorkflowNotifyAiAgentTaskCore, e1 as WorkflowNotifyAiAgentTaskInput, e2 as WorkflowNotifyAiAgentTaskObjectiveInput, e3 as WorkflowNotifyAiAgentTaskStrictInput, e4 as WorkflowOneTimeTrigger, e5 as WorkflowOneTimeTriggerCore, e6 as WorkflowOneTimeTriggerInput, e7 as WorkflowParentRef, e8 as WorkflowPlan, e9 as WorkflowReasoningOption, ea as WorkflowReasoningOptionAgent, eb as WorkflowReasoningOptionCustomer, ec as WorkflowReasoningTask, ed as WorkflowReasoningTaskCore, ee as WorkflowReasoningTaskInput, ef as WorkflowRecurringTrigger, eg as WorkflowRecurringTriggerCore, eh as WorkflowRecurringTriggerInput, ei as WorkflowResourceBucket, ej as WorkflowResourceRow, ek as WorkflowResources, el as WorkflowScriptTask, em as WorkflowScriptTaskCore, en as WorkflowScriptTaskInput, eo as WorkflowSimpleBaseTask, ep as WorkflowSimpleBaseTaskCore, eq as WorkflowSimpleTask, er as WorkflowSimpleTaskCore, es as WorkflowSwitchBaseTask, et as WorkflowSwitchBaseTaskCore, eu as WorkflowSwitchCaseTask, ev as WorkflowSwitchCaseTaskCore, ew as WorkflowSwitchCaseTaskInput, ex as WorkflowSwitchTask, ey as WorkflowSwitchTaskCore, ez as WorkflowSwitchTaskInput, eA as WorkflowTask, eB as WorkflowTaskBase, eC as WorkflowTaskCore, eD as WorkflowTaskIdentity, eE as WorkflowTaskIntrospection, eF as WorkflowTaskOf, eG as WorkflowTaskPlan, eH as WorkflowTaskType, eI as WorkflowTemplateCategory, eJ as WorkflowTemplateMetadataItem, eK as WorkflowTerminateTask, eL as WorkflowTerminateTaskCore, eM as WorkflowTerminateTaskInput, eN as WorkflowTransformBaseTask, eO as WorkflowTransformBaseTaskCore, eP as WorkflowTransformBaseTaskInput, eQ as WorkflowTransformTask, eR as WorkflowTransformTaskCore, eS as WorkflowTrigger, eT as WorkflowTriggerBase, eU as WorkflowTriggerCore, eV as WorkflowTriggerDto, eW as WorkflowTriggerIdentity, eX as WorkflowTriggerOf, eY as WorkflowTriggerPlan, eZ as WorkflowTriggerType, e_ as WorkflowWaitTask, e$ as WorkflowWaitTaskCore, f0 as WorkflowWaitTaskInput, f1 as WorkflowWebhook, f2 as WorkflowWebhookInput, f3 as WorkflowWebhookManualTrigger, f4 as WorkflowWebhookManualTriggerCore, f5 as WorkflowWebhookTrigger, f6 as WorkflowWebhookTriggerCore, f7 as WorkflowWebhookTriggerPure, f8 as bigcommerceEventsZods, f9 as getTextClientAuthorization, fa as getTextClientConfig, fb as getWorkflowApiCrmConfig, fc as hubspotEventsZods, fd as initTextClient, fe as integrationEventBase, ff as integrationEventsCoreZods, fg as integrationEventsZods, fh as isFilter, fi as isFilterGroup, fj as isWorkflowBaseHttpTaskCore, fk as livechatChatContext, fl as livechatEventContext, fm as mailchimpEventsZods, fn as serializeFilters, fo as shopifyEventsZods, fp as slackEventsZods, fq as textClientInstance, fr as textCustomerEventsZods, fs as textHelpDeskEventsZods, ft as textLivechatEventsZods } from './events-BdPlrYKo.js';
8
+ import { A as ApiErrorBase, U as UnauthorizeApiError, a as ApiErrorSource, G as GlobalAccountsClientAuthorization, T as TicketPriority, b as TicketStatus, I as IntegrationEventAuthorization, c as IntegrationNames, d as InternalServiceClientAuthorization, e as TextClientAuthorization, f as TextCustomerEventNames, g as TextCustomerSegmentType, W as WorkflowDto, h as AccountDto, L as LivechatWebhookDto, i as LivechatWebhook, S as SubscribeToIntegrationEventPayload, j as UnsubscribeFromIntegrationEventPayload, k as WorkflowCore, l as ApiPaginatedListQueryParams, m as WorkflowCrmOrganizationsOrderBy, n as WorkflowApiCrmAuthorization, o as ApiPaginatedResult, p as WorkflowCrmOrganization, q as WorkflowCrmWorkflowsOrderBy, r as WorkflowListItemDto, s as WorkflowExecutionListItem, t as WorkflowExecution, u as WorkflowIntrospection, v as AiAgentSkillsSummaryDto, w as UpsertWorkflowPayload, x as IntrospectWorkflowTaskPayload, y as WorkflowTaskIntrospectResponse, C as CredentialDto, z as CreateCredentialPayload, B as UpdateCredentialPayload, F as FunctionDto, D as WorkflowTemplateOrderBy, E as WorkflowTemplateListEntry, H as WorkflowTemplate } from './events-CJ8UHYDf.js';
9
+ export { J as AccountRoleDto, K as AiAgentSkillsCountDto, M as ApiError, N as ApiErrorKind, O as ApiErrorName, P as ApiPagination, Q as AwaitTaskCallback, R as BigCommerceEvent, V as BigCommerceEventNames, X as BigCommerceOauthCredential, Y as ChatDeactivatedLivechatWebhookData, Z as ChatTransferredLivechatWebhookData, _ as Credential, $ as CredentialCore, a0 as CredentialInjection, a1 as CredentialStatus, a2 as CredentialType, a3 as CredentialTypeDisplayNameMapping, a4 as CustomerLeftChatReason, a5 as DefaultLivechatSourceProperties, a6 as Filter, a7 as FilterGroup, a8 as FilterOperator, a9 as FilterValue, aa as Filters, ab as FunctionSchema, ac as GitHubAppCredential, ad as GitHubOauthCredential, ae as HubSpotOauthCredential, af as HubspotEvent, ag as HubspotEventNames, ah as Identity, ai as IdentityField, aj as IdentitySpec, ak as IncomingChatLivechatWebhookData, al as IncomingEventLivechatWebhookData, am as IncomingRichMessagePostbackLivechatWebhookData, an as IntegrationDisplayNameToNameMap, ao as IntegrationDisplayNames, ap as IntegrationEvent, aq as IntegrationEventProviderName, ar as IntegrationEventSource, as as IntegrationEventSourceName, at as IntegrationKey, au as IntegrationNameToDisplayMap, av as LivechatWebhookActions, aw as LivechatWebhookBaseEvent, ax as LivechatWebhookChat, ay as LivechatWebhookCustomEvent, az as LivechatWebhookData, aA as LivechatWebhookDataBase, aB as LivechatWebhookEvent, aC as LivechatWebhookEvents, aD as LivechatWebhookFileEvent, aE as LivechatWebhookFilledFormEvent, aF as LivechatWebhookFilledFormField, aG as LivechatWebhookFormEvent, aH as LivechatWebhookFormField, aI as LivechatWebhookMessageEvent, aJ as LivechatWebhookPostbackEcommerce, aK as LivechatWebhookRichMessageElement, aL as LivechatWebhookRichMessageEvent, aM as LivechatWebhookRichMessagePostback, aN as LivechatWebhookSystemEvent, aO as LivechatWebhookSystemMessageEvent, aP as LivechatWebhookSystemMessages, aQ as LivechatWebhookUser, aR as MailchimpEvent, aS as MailchimpEventNames, aT as MailchimpOauthCredential, aU as NeonOauthCredential, aV as NetlifyOauthCredential, aW as OAuthCredential, aX as OauthCredentialGrantType, aY as OpenaiCredential, aZ as PlanetScaleOauthCredential, a_ as PureHttpRequest, a$ as SalesforceOauthCredential, b0 as ShopifyEvent, b1 as ShopifyEventNames, b2 as ShopifyOauthCredential, b3 as SlackEvent, b4 as SlackEventNames, b5 as SlackOauthCredential, b6 as SortBy, b7 as SortOrder, b8 as Sorting, b9 as SubscribeToBigCommerceEventPayload, ba as SubscribeToHubspotEventPayload, bb as SubscribeToMailchimpEventPayload, bc as SubscribeToShopifyEventPayload, bd as SubscribeToSlackEventPayload, be as SubscribeToTextCustomerEventPayload, bf as SubscribeToTextHelpDeskEventPayload, bg as SubscribeToTextLivechatEventPayload, bh as TRIGGER_REFERENCE_NAME, bi as TextApiError, bj as TextAuthCredential, bk as TextClientOptions, bl as TextCustomerEvent, bm as TextHelpDeskEvent, bn as TextHelpDeskEventBaseFilters, bo as TextHelpDeskEventNames, bp as TextLiveChatEvent, bq as TextLivechatChatContext, br as TextLivechatEventContext, bs as TextLivechatEventNames, bt as TextLivechatProductCardEventType, bu as TextLivechatRichMessagePostbackEvent, bv as TextLivechatRichMessagePostbackResult, bw as TextOAuthCredential, bx as ThreadTaggedLivechatWebhookData, by as ThreadUntaggedLivechatWebhookData, bz as UnsubscribeFromBigCommerceEventPayload, bA as UnsubscribeFromHubspotEventPayload, bB as UnsubscribeFromMailchimpEventPayload, bC as UnsubscribeFromShopifyEventPayload, bD as UnsubscribeFromSlackEventPayload, bE as UnsubscribeFromTextCustomerEventPayload, bF as UnsubscribeFromTextHelpDeskEventPayload, bG as UnsubscribeFromTextLivechatEventPayload, bH as UserAddedToChatLivechatWebhookData, bI as UserRemovedFromChatWebhookData, bJ as VercelOauthCredential, bK as Workflow, bL as WorkflowActionTask, bM as WorkflowActionTaskCore, bN as WorkflowActionTaskErrorOutput, bO as WorkflowActionTaskInput, bP as WorkflowActionTaskInputParameters, bQ as WorkflowActionTaskSuccessOutput, bR as WorkflowAgentTrigger, bS as WorkflowAgentTriggerConfiguration, bT as WorkflowAgentTriggerCore, bU as WorkflowAgentTriggerInput, bV as WorkflowAgentTriggerSubType, bW as WorkflowAggregate, bX as WorkflowAwaitTask, bY as WorkflowAwaitTaskCore, bZ as WorkflowAwaitTaskInput, b_ as WorkflowBaseHttpTaskCore, b$ as WorkflowBranch, c0 as WorkflowBundle, c1 as WorkflowConditionTask, c2 as WorkflowConditionTaskCondition, c3 as WorkflowConditionTaskCore, c4 as WorkflowConditionTaskFieldType, c5 as WorkflowConditionTaskInput, c6 as WorkflowConditionTaskLogic, c7 as WorkflowConditionTaskOperator, c8 as WorkflowConditionTaskOperatorGroup, c9 as WorkflowConditionTaskOperatorValueType, ca as WorkflowConstructArrayItem, cb as WorkflowConstructObjectField, cc as WorkflowConstructOutputType, cd as WorkflowConstructTask, ce as WorkflowConstructTaskCore, cf as WorkflowConstructTaskDefinitionInputParameters, cg as WorkflowConstructTaskInput, ch as WorkflowConstructTaskInputArray, ci as WorkflowConstructTaskInputObject, cj as WorkflowConvertTask, ck as WorkflowConvertTaskCore, cl as WorkflowConvertTaskDefinitionInputParameters, cm as WorkflowConvertTaskInput, cn as WorkflowConvertTaskInputAffix, co as WorkflowConvertTaskInputFilter, cp as WorkflowConvertTaskInputJoin, cq as WorkflowConvertTaskInputMath, cr as WorkflowConvertTaskInputPickOmit, cs as WorkflowConvertTaskInputPluck, ct as WorkflowConvertTaskInputReducer, cu as WorkflowConvertTaskInputReplace, cv as WorkflowConvertTaskInputRound, cw as WorkflowConvertTaskInputSimple, cx as WorkflowConvertTaskInputSort, cy as WorkflowConvertTaskInputSplit, cz as WorkflowConvertTaskInputSum, cA as WorkflowConvertTaskMathOperation, cB as WorkflowConvertTaskTransformer, cC as WorkflowCustomHttpTaskCore, cD as WorkflowCustomTaskName, cE as WorkflowDefinitionDto, cF as WorkflowDoWhileBaseTask, cG as WorkflowDoWhileBaseTaskCore, cH as WorkflowDoWhileBaseTaskInput, cI as WorkflowDoWhileTask, cJ as WorkflowDoWhileTaskCore, cK as WorkflowElement, cL as WorkflowElementCore, cM as WorkflowElementIdentity, cN as WorkflowElementRef, cO as WorkflowExecutionActionTaskData, cP as WorkflowExecutionAwaitTaskData, cQ as WorkflowExecutionChatContext, cR as WorkflowExecutionConditionTask, cS as WorkflowExecutionConstructTask, cT as WorkflowExecutionContext, cU as WorkflowExecutionConvertTask, cV as WorkflowExecutionData, cW as WorkflowExecutionDefinitionStatus, cX as WorkflowExecutionDoWhileIterationOutput, cY as WorkflowExecutionDoWhileTaskData, cZ as WorkflowExecutionForkJoinTaskData, c_ as WorkflowExecutionHttpTaskData, c$ as WorkflowExecutionInlineBaseTask, d0 as WorkflowExecutionInlineTaskData, d1 as WorkflowExecutionJoinTaskData, d2 as WorkflowExecutionLookupTask, d3 as WorkflowExecutionNotifyAiAgentTaskData, d4 as WorkflowExecutionReasoningTaskData, d5 as WorkflowExecutionScriptTask, d6 as WorkflowExecutionSimpleBaseTaskData, d7 as WorkflowExecutionSimpleTaskData, d8 as WorkflowExecutionStatus, d9 as WorkflowExecutionSwitchBaseTask, da as WorkflowExecutionSwitchCaseTask, db as WorkflowExecutionSwitchTaskData, dc as WorkflowExecutionTaskBase, dd as WorkflowExecutionTaskData, de as WorkflowExecutionTaskStatus, df as WorkflowExecutionTerminateTaskData, dg as WorkflowExecutionTicketContext, dh as WorkflowExecutionTransformBaseTask, di as WorkflowExecutionTransformTaskData, dj as WorkflowExecutionTriggerData, dk as WorkflowExecutionTriggerDataBase, dl as WorkflowExecutionType, dm as WorkflowExecutionWaitTaskData, dn as WorkflowForEachTask, dp as WorkflowForEachTaskCore, dq as WorkflowForEachTaskInput, dr as WorkflowForkJoinTask, ds as WorkflowForkJoinTaskCore, dt as WorkflowForkJoinTaskInput, du as WorkflowFunctionErrorResponseBody, dv as WorkflowGraph, dw as WorkflowHttpRequest, dx as WorkflowHttpTask, dy as WorkflowHttpTaskCore, dz as WorkflowHttpTaskErrorResponseBody, dA as WorkflowHttpTaskFunctionErrorResponseBody, dB as WorkflowHttpTaskHeaders, dC as WorkflowHttpTaskInput, dD as WorkflowHttpTaskProviderErrorResponseBody, dE as WorkflowInactivityReason, dF as WorkflowInlineBaseTask, dG as WorkflowInlineBaseTaskCore, dH as WorkflowInlineBaseTaskInput, dI as WorkflowInlineTask, dJ as WorkflowInlineTaskCore, dK as WorkflowItemKind, dL as WorkflowJoinTask, dM as WorkflowJoinTaskCore, dN as WorkflowJoinTaskInput, dO as WorkflowLookupTask, dP as WorkflowLookupTaskCore, dQ as WorkflowLookupTaskDefinitionInputParameters, dR as WorkflowLookupTaskInput, dS as WorkflowLoopTask, dT as WorkflowLoopTaskCore, dU as WorkflowLoopTaskInput, dV as WorkflowManualTrigger, dW as WorkflowManualTriggerCore, dX as WorkflowManualTriggerParameter, dY as WorkflowManualTriggerSubType, dZ as WorkflowManualTriggerSubTypeName, d_ as WorkflowNode, d$ as WorkflowNotifyAiAgentTask, e0 as WorkflowNotifyAiAgentTaskCore, e1 as WorkflowNotifyAiAgentTaskInput, e2 as WorkflowNotifyAiAgentTaskObjectiveInput, e3 as WorkflowNotifyAiAgentTaskStrictInput, e4 as WorkflowOneTimeTrigger, e5 as WorkflowOneTimeTriggerCore, e6 as WorkflowOneTimeTriggerInput, e7 as WorkflowParentRef, e8 as WorkflowPlan, e9 as WorkflowReasoningOption, ea as WorkflowReasoningOptionAgent, eb as WorkflowReasoningOptionCustomer, ec as WorkflowReasoningTask, ed as WorkflowReasoningTaskCore, ee as WorkflowReasoningTaskInput, ef as WorkflowRecurringTrigger, eg as WorkflowRecurringTriggerCore, eh as WorkflowRecurringTriggerInput, ei as WorkflowResourceBucket, ej as WorkflowResourceRow, ek as WorkflowResources, el as WorkflowScriptTask, em as WorkflowScriptTaskCore, en as WorkflowScriptTaskInput, eo as WorkflowSimpleBaseTask, ep as WorkflowSimpleBaseTaskCore, eq as WorkflowSimpleTask, er as WorkflowSimpleTaskCore, es as WorkflowSwitchBaseTask, et as WorkflowSwitchBaseTaskCore, eu as WorkflowSwitchCaseTask, ev as WorkflowSwitchCaseTaskCore, ew as WorkflowSwitchCaseTaskInput, ex as WorkflowSwitchTask, ey as WorkflowSwitchTaskCore, ez as WorkflowSwitchTaskInput, eA as WorkflowTask, eB as WorkflowTaskBase, eC as WorkflowTaskCore, eD as WorkflowTaskIdentity, eE as WorkflowTaskIntrospection, eF as WorkflowTaskOf, eG as WorkflowTaskPlan, eH as WorkflowTaskType, eI as WorkflowTemplateCategory, eJ as WorkflowTemplateMetadataItem, eK as WorkflowTerminateTask, eL as WorkflowTerminateTaskCore, eM as WorkflowTerminateTaskInput, eN as WorkflowTransformBaseTask, eO as WorkflowTransformBaseTaskCore, eP as WorkflowTransformBaseTaskInput, eQ as WorkflowTransformTask, eR as WorkflowTransformTaskCore, eS as WorkflowTrigger, eT as WorkflowTriggerBase, eU as WorkflowTriggerCore, eV as WorkflowTriggerDto, eW as WorkflowTriggerIdentity, eX as WorkflowTriggerOf, eY as WorkflowTriggerPlan, eZ as WorkflowTriggerType, e_ as WorkflowWaitTask, e$ as WorkflowWaitTaskCore, f0 as WorkflowWaitTaskInput, f1 as WorkflowWebhook, f2 as WorkflowWebhookInput, f3 as WorkflowWebhookManualTrigger, f4 as WorkflowWebhookManualTriggerCore, f5 as WorkflowWebhookTrigger, f6 as WorkflowWebhookTriggerCore, f7 as WorkflowWebhookTriggerPure, f8 as bigcommerceEventsZods, f9 as getTextClientAuthorization, fa as getTextClientConfig, fb as getWorkflowApiCrmConfig, fc as hubspotEventsZods, fd as initTextClient, fe as integrationEventBase, ff as integrationEventsCoreZods, fg as integrationEventsZods, fh as isFilter, fi as isFilterGroup, fj as isWorkflowBaseHttpTaskCore, fk as livechatChatContext, fl as livechatEventContext, fm as mailchimpEventsZods, fn as serializeFilters, fo as shopifyEventsZods, fp as slackEventsZods, fq as textClientInstance, fr as textCustomerEventsZods, fs as textHelpDeskEventsZods, ft as textLivechatEventsZods } from './events-CJ8UHYDf.js';
10
10
  import { JSONSchema7 } from 'json-schema';
11
11
 
12
12
  interface GitHubUser {
@@ -63,43 +63,7 @@ declare const integrationNotificationZods: {
63
63
  error: z.ZodNullable<z.ZodString>;
64
64
  enqueuedAt: z.ZodString;
65
65
  completedAt: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- error: string | null;
68
- status: string;
69
- source: string | null;
70
- sourceKey: string | null;
71
- callback: string;
72
- id: string;
73
- target: string;
74
- eventName: string;
75
- completedAt: string;
76
- organization_id: string;
77
- user_id: string | null;
78
- jobId: string | null;
79
- subscription_id: string;
80
- targetKey: string;
81
- statusCode: number | null;
82
- attempts: number;
83
- enqueuedAt: string;
84
- }, {
85
- error: string | null;
86
- status: string;
87
- source: string | null;
88
- sourceKey: string | null;
89
- callback: string;
90
- id: string;
91
- target: string;
92
- eventName: string;
93
- completedAt: string;
94
- organization_id: string;
95
- user_id: string | null;
96
- jobId: string | null;
97
- subscription_id: string;
98
- targetKey: string;
99
- statusCode: number | null;
100
- attempts: number;
101
- enqueuedAt: string;
102
- }>;
66
+ }, z.core.$strip>;
103
67
  };
104
68
  type IntegrationNotification = z.infer<typeof integrationNotificationZods.notification>;
105
69
 
@@ -111,27 +75,20 @@ declare const integrationNotificationRequestZods: {
111
75
  search: z.ZodOptional<z.ZodString>;
112
76
  page: z.ZodOptional<z.ZodNumber>;
113
77
  size: z.ZodOptional<z.ZodNumber>;
114
- order_by: z.ZodOptional<z.ZodEnum<["id", "status", "target", "eventName", "completedAt", "organization_id", "user_id"]>>;
115
- order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
116
- }, "strip", z.ZodTypeAny, {
117
- status?: string | undefined;
118
- page?: number | undefined;
119
- size?: number | undefined;
120
- order_by?: "status" | "id" | "target" | "eventName" | "completedAt" | "organization_id" | "user_id" | undefined;
121
- order?: "asc" | "desc" | undefined;
122
- search?: string | undefined;
123
- target?: string | undefined;
124
- eventName?: string | undefined;
125
- }, {
126
- status?: string | undefined;
127
- page?: number | undefined;
128
- size?: number | undefined;
129
- order_by?: "status" | "id" | "target" | "eventName" | "completedAt" | "organization_id" | "user_id" | undefined;
130
- order?: "asc" | "desc" | undefined;
131
- search?: string | undefined;
132
- target?: string | undefined;
133
- eventName?: string | undefined;
134
- }>;
78
+ order_by: z.ZodOptional<z.ZodEnum<{
79
+ status: "status";
80
+ target: "target";
81
+ id: "id";
82
+ eventName: "eventName";
83
+ completedAt: "completedAt";
84
+ organization_id: "organization_id";
85
+ user_id: "user_id";
86
+ }>>;
87
+ order: z.ZodOptional<z.ZodEnum<{
88
+ asc: "asc";
89
+ desc: "desc";
90
+ }>>;
91
+ }, z.core.$strip>;
135
92
  };
136
93
  type GetIntegrationNotificationsPayload = z.infer<typeof integrationNotificationRequestZods.getNotifications>;
137
94
 
@@ -148,57 +105,13 @@ declare const integrationSubscriptionZods: {
148
105
  id: z.ZodString;
149
106
  target: z.ZodString;
150
107
  targetKey: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
152
- id: string;
153
- target: string;
154
- targetKey: string;
155
- }, {
156
- id: string;
157
- target: string;
158
- targetKey: string;
159
- }>, "many">>;
108
+ }, z.core.$strip>>>;
160
109
  event: z.ZodUnknown;
161
110
  orphaned_at: z.ZodNullable<z.ZodString>;
162
111
  orphaned_reason: z.ZodNullable<z.ZodString>;
163
112
  orphaned_last_hit: z.ZodNullable<z.ZodString>;
164
113
  orphaned_hit_count: z.ZodNumber;
165
- }, "strip", z.ZodTypeAny, {
166
- source: string;
167
- sourceKey: string;
168
- callback: string;
169
- id: string;
170
- target: string;
171
- organization_id: string;
172
- user_id: string;
173
- orphaned_at: string | null;
174
- orphaned_reason: string | null;
175
- orphaned_last_hit: string | null;
176
- orphaned_hit_count: number;
177
- event?: unknown;
178
- targets?: {
179
- id: string;
180
- target: string;
181
- targetKey: string;
182
- }[] | undefined;
183
- }, {
184
- source: string;
185
- sourceKey: string;
186
- callback: string;
187
- id: string;
188
- target: string;
189
- organization_id: string;
190
- user_id: string;
191
- orphaned_at: string | null;
192
- orphaned_reason: string | null;
193
- orphaned_last_hit: string | null;
194
- orphaned_hit_count: number;
195
- event?: unknown;
196
- targets?: {
197
- id: string;
198
- target: string;
199
- targetKey: string;
200
- }[] | undefined;
201
- }>;
114
+ }, z.core.$strip>;
202
115
  stats: z.ZodObject<{
203
116
  totalSubscriptions: z.ZodNumber;
204
117
  uniqueOrganizations: z.ZodNumber;
@@ -206,84 +119,20 @@ declare const integrationSubscriptionZods: {
206
119
  byTarget: z.ZodArray<z.ZodObject<{
207
120
  target: z.ZodString;
208
121
  count: z.ZodNumber;
209
- }, "strip", z.ZodTypeAny, {
210
- count: number;
211
- target: string;
212
- }, {
213
- count: number;
214
- target: string;
215
- }>, "many">;
122
+ }, z.core.$strip>>;
216
123
  bySource: z.ZodArray<z.ZodObject<{
217
124
  source: z.ZodString;
218
125
  count: z.ZodNumber;
219
- }, "strip", z.ZodTypeAny, {
220
- count: number;
221
- source: string;
222
- }, {
223
- count: number;
224
- source: string;
225
- }>, "many">;
126
+ }, z.core.$strip>>;
226
127
  topOrganizations: z.ZodArray<z.ZodObject<{
227
128
  organizationId: z.ZodString;
228
129
  count: z.ZodNumber;
229
- }, "strip", z.ZodTypeAny, {
230
- count: number;
231
- organizationId: string;
232
- }, {
233
- count: number;
234
- organizationId: string;
235
- }>, "many">;
130
+ }, z.core.$strip>>;
236
131
  topCallbackDomains: z.ZodArray<z.ZodObject<{
237
132
  domain: z.ZodString;
238
133
  count: z.ZodNumber;
239
- }, "strip", z.ZodTypeAny, {
240
- count: number;
241
- domain: string;
242
- }, {
243
- count: number;
244
- domain: string;
245
- }>, "many">;
246
- }, "strip", z.ZodTypeAny, {
247
- totalSubscriptions: number;
248
- uniqueOrganizations: number;
249
- uniqueUsers: number;
250
- byTarget: {
251
- count: number;
252
- target: string;
253
- }[];
254
- bySource: {
255
- count: number;
256
- source: string;
257
- }[];
258
- topOrganizations: {
259
- count: number;
260
- organizationId: string;
261
- }[];
262
- topCallbackDomains: {
263
- count: number;
264
- domain: string;
265
- }[];
266
- }, {
267
- totalSubscriptions: number;
268
- uniqueOrganizations: number;
269
- uniqueUsers: number;
270
- byTarget: {
271
- count: number;
272
- target: string;
273
- }[];
274
- bySource: {
275
- count: number;
276
- source: string;
277
- }[];
278
- topOrganizations: {
279
- count: number;
280
- organizationId: string;
281
- }[];
282
- topCallbackDomains: {
283
- count: number;
284
- domain: string;
285
- }[];
286
- }>;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>;
287
136
  };
288
137
  type IntegrationSubscription = z.infer<typeof integrationSubscriptionZods.subscription>;
289
138
  type IntegrationSubscriptionStats = z.infer<typeof integrationSubscriptionZods.stats>;
@@ -296,27 +145,19 @@ declare const integrationSubscriptionRequestZods: {
296
145
  orphaned: z.ZodOptional<z.ZodBoolean>;
297
146
  page: z.ZodOptional<z.ZodNumber>;
298
147
  size: z.ZodOptional<z.ZodNumber>;
299
- order_by: z.ZodOptional<z.ZodEnum<["id", "source", "target", "organization_id", "user_id", "orphaned_at"]>>;
300
- order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
301
- }, "strip", z.ZodTypeAny, {
302
- page?: number | undefined;
303
- size?: number | undefined;
304
- order_by?: "source" | "id" | "target" | "organization_id" | "user_id" | "orphaned_at" | undefined;
305
- order?: "asc" | "desc" | undefined;
306
- source?: string | undefined;
307
- search?: string | undefined;
308
- target?: string | undefined;
309
- orphaned?: boolean | undefined;
310
- }, {
311
- page?: number | undefined;
312
- size?: number | undefined;
313
- order_by?: "source" | "id" | "target" | "organization_id" | "user_id" | "orphaned_at" | undefined;
314
- order?: "asc" | "desc" | undefined;
315
- source?: string | undefined;
316
- search?: string | undefined;
317
- target?: string | undefined;
318
- orphaned?: boolean | undefined;
319
- }>;
148
+ order_by: z.ZodOptional<z.ZodEnum<{
149
+ source: "source";
150
+ target: "target";
151
+ id: "id";
152
+ organization_id: "organization_id";
153
+ user_id: "user_id";
154
+ orphaned_at: "orphaned_at";
155
+ }>>;
156
+ order: z.ZodOptional<z.ZodEnum<{
157
+ asc: "asc";
158
+ desc: "desc";
159
+ }>>;
160
+ }, z.core.$strip>;
320
161
  };
321
162
  type GetIntegrationSubscriptionsPayload = z.infer<typeof integrationSubscriptionRequestZods.getSubscriptions>;
322
163
 
@@ -672,334 +513,60 @@ type CdpCustomerEvent = CustomerEmailSetEvent | CustomerPropertiesValuesUpdatedE
672
513
  * Runtime gate for `CdpCustomerEvent` messages — parses only the fields
673
514
  * consumers use; `data` passes unknown fields through.
674
515
  */
675
- declare const cdpCustomerEventMessageZod: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
516
+ declare const cdpCustomerEventMessageZod: z.ZodDiscriminatedUnion<[z.ZodObject<{
676
517
  id: z.ZodString;
677
518
  type: z.ZodLiteral<CdpCustomerEventType.EmailSet>;
678
- data: z.ZodObject<z.objectUtil.extendShape<{
519
+ data: z.ZodObject<{
679
520
  organization_id: z.ZodString;
680
521
  customer_id: z.ZodString;
681
522
  master_id: z.ZodString;
682
- }, {
683
523
  email: z.ZodString;
684
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
685
- organization_id: z.ZodString;
686
- customer_id: z.ZodString;
687
- master_id: z.ZodString;
688
- }, {
689
- email: z.ZodString;
690
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
691
- organization_id: z.ZodString;
692
- customer_id: z.ZodString;
693
- master_id: z.ZodString;
694
- }, {
695
- email: z.ZodString;
696
- }>, z.ZodTypeAny, "passthrough">>;
697
- }, "strip", z.ZodTypeAny, {
698
- data: {
699
- email: string;
700
- organization_id: string;
701
- customer_id: string;
702
- master_id: string;
703
- } & {
704
- [k: string]: unknown;
705
- };
706
- type: CdpCustomerEventType.EmailSet;
707
- id: string;
708
- }, {
709
- data: {
710
- email: string;
711
- organization_id: string;
712
- customer_id: string;
713
- master_id: string;
714
- } & {
715
- [k: string]: unknown;
716
- };
717
- type: CdpCustomerEventType.EmailSet;
718
- id: string;
719
- }>, z.ZodObject<{
524
+ }, z.core.$loose>;
525
+ }, z.core.$strip>, z.ZodObject<{
720
526
  id: z.ZodString;
721
527
  type: z.ZodLiteral<CdpCustomerEventType.PropertiesValuesUpdated>;
722
- data: z.ZodObject<z.objectUtil.extendShape<{
723
- organization_id: z.ZodString;
724
- customer_id: z.ZodString;
725
- master_id: z.ZodString;
726
- }, {
727
- customer_properties: z.ZodRecord<z.ZodString, z.ZodObject<{
728
- value: z.ZodUnknown;
729
- last_updated_at: z.ZodString;
730
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
731
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
732
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
733
- value: z.ZodUnknown;
734
- last_updated_at: z.ZodString;
735
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
736
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
737
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
738
- value: z.ZodUnknown;
739
- last_updated_at: z.ZodString;
740
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
741
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
742
- }, z.ZodTypeAny, "passthrough">>>;
743
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
528
+ data: z.ZodObject<{
744
529
  organization_id: z.ZodString;
745
530
  customer_id: z.ZodString;
746
531
  master_id: z.ZodString;
747
- }, {
748
532
  customer_properties: z.ZodRecord<z.ZodString, z.ZodObject<{
749
533
  value: z.ZodUnknown;
750
534
  last_updated_at: z.ZodString;
751
535
  last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
752
536
  last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
753
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
754
- value: z.ZodUnknown;
755
- last_updated_at: z.ZodString;
756
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
757
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
758
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
759
- value: z.ZodUnknown;
760
- last_updated_at: z.ZodString;
761
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
762
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
763
- }, z.ZodTypeAny, "passthrough">>>;
764
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
765
- organization_id: z.ZodString;
766
- customer_id: z.ZodString;
767
- master_id: z.ZodString;
768
- }, {
769
- customer_properties: z.ZodRecord<z.ZodString, z.ZodObject<{
770
- value: z.ZodUnknown;
771
- last_updated_at: z.ZodString;
772
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
773
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
774
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
775
- value: z.ZodUnknown;
776
- last_updated_at: z.ZodString;
777
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
778
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
779
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
780
- value: z.ZodUnknown;
781
- last_updated_at: z.ZodString;
782
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
783
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
784
- }, z.ZodTypeAny, "passthrough">>>;
785
- }>, z.ZodTypeAny, "passthrough">>;
786
- }, "strip", z.ZodTypeAny, {
787
- data: {
788
- organization_id: string;
789
- customer_id: string;
790
- master_id: string;
791
- customer_properties: Record<string, z.objectOutputType<{
792
- value: z.ZodUnknown;
793
- last_updated_at: z.ZodString;
794
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
795
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
796
- }, z.ZodTypeAny, "passthrough">>;
797
- } & {
798
- [k: string]: unknown;
799
- };
800
- type: CdpCustomerEventType.PropertiesValuesUpdated;
801
- id: string;
802
- }, {
803
- data: {
804
- organization_id: string;
805
- customer_id: string;
806
- master_id: string;
807
- customer_properties: Record<string, z.objectInputType<{
808
- value: z.ZodUnknown;
809
- last_updated_at: z.ZodString;
810
- last_updated_agent_account_id: z.ZodOptional<z.ZodString>;
811
- last_updated_agent_client_id: z.ZodOptional<z.ZodString>;
812
- }, z.ZodTypeAny, "passthrough">>;
813
- } & {
814
- [k: string]: unknown;
815
- };
816
- type: CdpCustomerEventType.PropertiesValuesUpdated;
817
- id: string;
818
- }>, z.ZodObject<{
537
+ }, z.core.$loose>>;
538
+ }, z.core.$loose>;
539
+ }, z.core.$strip>, z.ZodObject<{
819
540
  id: z.ZodString;
820
541
  type: z.ZodLiteral<CdpCustomerEventType.SegmentAdded>;
821
- data: z.ZodObject<z.objectUtil.extendShape<{
542
+ data: z.ZodObject<{
822
543
  organization_id: z.ZodString;
823
544
  customer_id: z.ZodString;
824
545
  master_id: z.ZodString;
825
- }, {
826
546
  segment_id: z.ZodNumber;
827
547
  segment_type: z.ZodString;
828
548
  membership_last_updated_at: z.ZodString;
829
549
  segment_fields: z.ZodOptional<z.ZodObject<{
830
550
  email: z.ZodOptional<z.ZodString>;
831
551
  customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
832
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
833
- email: z.ZodOptional<z.ZodString>;
834
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
835
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
836
- email: z.ZodOptional<z.ZodString>;
837
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
838
- }, z.ZodTypeAny, "passthrough">>>;
839
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
840
- organization_id: z.ZodString;
841
- customer_id: z.ZodString;
842
- master_id: z.ZodString;
843
- }, {
844
- segment_id: z.ZodNumber;
845
- segment_type: z.ZodString;
846
- membership_last_updated_at: z.ZodString;
847
- segment_fields: z.ZodOptional<z.ZodObject<{
848
- email: z.ZodOptional<z.ZodString>;
849
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
850
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
851
- email: z.ZodOptional<z.ZodString>;
852
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
853
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
854
- email: z.ZodOptional<z.ZodString>;
855
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
856
- }, z.ZodTypeAny, "passthrough">>>;
857
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
858
- organization_id: z.ZodString;
859
- customer_id: z.ZodString;
860
- master_id: z.ZodString;
861
- }, {
862
- segment_id: z.ZodNumber;
863
- segment_type: z.ZodString;
864
- membership_last_updated_at: z.ZodString;
865
- segment_fields: z.ZodOptional<z.ZodObject<{
866
- email: z.ZodOptional<z.ZodString>;
867
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
868
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
869
- email: z.ZodOptional<z.ZodString>;
870
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
871
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
872
- email: z.ZodOptional<z.ZodString>;
873
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
- }, z.ZodTypeAny, "passthrough">>>;
875
- }>, z.ZodTypeAny, "passthrough">>;
876
- }, "strip", z.ZodTypeAny, {
877
- data: {
878
- segment_type: string;
879
- organization_id: string;
880
- customer_id: string;
881
- master_id: string;
882
- segment_id: number;
883
- membership_last_updated_at: string;
884
- segment_fields?: z.objectOutputType<{
885
- email: z.ZodOptional<z.ZodString>;
886
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
- }, z.ZodTypeAny, "passthrough"> | undefined;
888
- } & {
889
- [k: string]: unknown;
890
- };
891
- type: CdpCustomerEventType.SegmentAdded;
892
- id: string;
893
- }, {
894
- data: {
895
- segment_type: string;
896
- organization_id: string;
897
- customer_id: string;
898
- master_id: string;
899
- segment_id: number;
900
- membership_last_updated_at: string;
901
- segment_fields?: z.objectInputType<{
902
- email: z.ZodOptional<z.ZodString>;
903
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
904
- }, z.ZodTypeAny, "passthrough"> | undefined;
905
- } & {
906
- [k: string]: unknown;
907
- };
908
- type: CdpCustomerEventType.SegmentAdded;
909
- id: string;
910
- }>, z.ZodObject<{
552
+ }, z.core.$loose>>;
553
+ }, z.core.$loose>;
554
+ }, z.core.$strip>, z.ZodObject<{
911
555
  id: z.ZodString;
912
556
  type: z.ZodLiteral<CdpCustomerEventType.SegmentRemoved>;
913
- data: z.ZodObject<z.objectUtil.extendShape<{
557
+ data: z.ZodObject<{
914
558
  organization_id: z.ZodString;
915
559
  customer_id: z.ZodString;
916
560
  master_id: z.ZodString;
917
- }, {
918
561
  segment_id: z.ZodNumber;
919
562
  segment_type: z.ZodString;
920
563
  membership_last_updated_at: z.ZodString;
921
564
  segment_fields: z.ZodOptional<z.ZodObject<{
922
565
  email: z.ZodOptional<z.ZodString>;
923
566
  customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
924
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
925
- email: z.ZodOptional<z.ZodString>;
926
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
927
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
928
- email: z.ZodOptional<z.ZodString>;
929
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
930
- }, z.ZodTypeAny, "passthrough">>>;
931
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
932
- organization_id: z.ZodString;
933
- customer_id: z.ZodString;
934
- master_id: z.ZodString;
935
- }, {
936
- segment_id: z.ZodNumber;
937
- segment_type: z.ZodString;
938
- membership_last_updated_at: z.ZodString;
939
- segment_fields: z.ZodOptional<z.ZodObject<{
940
- email: z.ZodOptional<z.ZodString>;
941
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
942
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
943
- email: z.ZodOptional<z.ZodString>;
944
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
945
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
946
- email: z.ZodOptional<z.ZodString>;
947
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
948
- }, z.ZodTypeAny, "passthrough">>>;
949
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
950
- organization_id: z.ZodString;
951
- customer_id: z.ZodString;
952
- master_id: z.ZodString;
953
- }, {
954
- segment_id: z.ZodNumber;
955
- segment_type: z.ZodString;
956
- membership_last_updated_at: z.ZodString;
957
- segment_fields: z.ZodOptional<z.ZodObject<{
958
- email: z.ZodOptional<z.ZodString>;
959
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
960
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
961
- email: z.ZodOptional<z.ZodString>;
962
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
963
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
964
- email: z.ZodOptional<z.ZodString>;
965
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
966
- }, z.ZodTypeAny, "passthrough">>>;
967
- }>, z.ZodTypeAny, "passthrough">>;
968
- }, "strip", z.ZodTypeAny, {
969
- data: {
970
- segment_type: string;
971
- organization_id: string;
972
- customer_id: string;
973
- master_id: string;
974
- segment_id: number;
975
- membership_last_updated_at: string;
976
- segment_fields?: z.objectOutputType<{
977
- email: z.ZodOptional<z.ZodString>;
978
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
- }, z.ZodTypeAny, "passthrough"> | undefined;
980
- } & {
981
- [k: string]: unknown;
982
- };
983
- type: CdpCustomerEventType.SegmentRemoved;
984
- id: string;
985
- }, {
986
- data: {
987
- segment_type: string;
988
- organization_id: string;
989
- customer_id: string;
990
- master_id: string;
991
- segment_id: number;
992
- membership_last_updated_at: string;
993
- segment_fields?: z.objectInputType<{
994
- email: z.ZodOptional<z.ZodString>;
995
- customer_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
996
- }, z.ZodTypeAny, "passthrough"> | undefined;
997
- } & {
998
- [k: string]: unknown;
999
- };
1000
- type: CdpCustomerEventType.SegmentRemoved;
1001
- id: string;
1002
- }>]>;
567
+ }, z.core.$loose>>;
568
+ }, z.core.$loose>;
569
+ }, z.core.$strip>], "type">;
1003
570
  type CdpCustomerEventMessage = z.infer<typeof cdpCustomerEventMessageZod>;
1004
571
 
1005
572
  interface AppBaseData {
@@ -3815,604 +3382,142 @@ interface AuthorizeActionResult {
3815
3382
 
3816
3383
  declare const textEventsZods: {
3817
3384
  provider: z.ZodLiteral<IntegrationNames.Text>;
3818
- readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<z.objectUtil.extendShape<{
3385
+ readonly event: z.ZodDiscriminatedUnion<[z.ZodObject<{
3819
3386
  version: z.ZodOptional<z.ZodString>;
3820
- }, {
3821
3387
  name: z.ZodLiteral<TextCustomerEventNames.EmailSet>;
3822
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3823
- }>, "strip", z.ZodTypeAny, {
3824
- name: TextCustomerEventNames.EmailSet;
3825
- version?: string | undefined;
3826
- filters?: string[] | undefined;
3827
- }, {
3828
- name: TextCustomerEventNames.EmailSet;
3829
- version?: string | undefined;
3830
- filters?: string[] | undefined;
3831
- }>, z.ZodObject<z.objectUtil.extendShape<{
3388
+ filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
3389
+ }, z.core.$strip>, z.ZodObject<{
3832
3390
  version: z.ZodOptional<z.ZodString>;
3833
- }, {
3834
3391
  name: z.ZodLiteral<TextCustomerEventNames.PropertiesValuesUpdated>;
3835
3392
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
3836
3393
  id: z.ZodString;
3837
- to: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3838
- }, "strip", z.ZodTypeAny, {
3839
- id: string;
3840
- to?: string | number | boolean | null | undefined;
3841
- }, {
3842
- id: string;
3843
- to?: string | number | boolean | null | undefined;
3844
- }>, "many">>;
3845
- }>, "strip", z.ZodTypeAny, {
3846
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3847
- version?: string | undefined;
3848
- properties?: {
3849
- id: string;
3850
- to?: string | number | boolean | null | undefined;
3851
- }[] | undefined;
3852
- }, {
3853
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3854
- version?: string | undefined;
3855
- properties?: {
3856
- id: string;
3857
- to?: string | number | boolean | null | undefined;
3858
- }[] | undefined;
3859
- }>, z.ZodObject<z.objectUtil.extendShape<{
3394
+ to: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3395
+ }, z.core.$strip>>>;
3396
+ }, z.core.$strip>, z.ZodObject<{
3860
3397
  version: z.ZodOptional<z.ZodString>;
3861
- }, {
3862
3398
  name: z.ZodLiteral<TextCustomerEventNames.SegmentAdded>;
3863
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
3864
- }>, "strip", z.ZodTypeAny, {
3865
- name: TextCustomerEventNames.SegmentAdded;
3866
- segment_type: TextCustomerSegmentType;
3867
- version?: string | undefined;
3868
- }, {
3869
- name: TextCustomerEventNames.SegmentAdded;
3870
- segment_type: TextCustomerSegmentType;
3871
- version?: string | undefined;
3872
- }>, z.ZodObject<z.objectUtil.extendShape<{
3399
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3400
+ }, z.core.$strip>, z.ZodObject<{
3873
3401
  version: z.ZodOptional<z.ZodString>;
3874
- }, {
3875
3402
  name: z.ZodLiteral<TextCustomerEventNames.SegmentRemoved>;
3876
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
3877
- }>, "strip", z.ZodTypeAny, {
3878
- name: TextCustomerEventNames.SegmentRemoved;
3879
- segment_type: TextCustomerSegmentType;
3880
- version?: string | undefined;
3881
- }, {
3882
- name: TextCustomerEventNames.SegmentRemoved;
3883
- segment_type: TextCustomerSegmentType;
3884
- version?: string | undefined;
3885
- }>]>;
3403
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3404
+ }, z.core.$strip>], "name">;
3886
3405
  readonly subscribe: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3887
- sourceName: z.ZodEnum<["apps", "workflows"]>;
3406
+ sourceName: z.ZodEnum<{
3407
+ workflows: "workflows";
3408
+ apps: "apps";
3409
+ }>;
3888
3410
  sourceKey: z.ZodString;
3889
- }, "strip", z.ZodTypeAny, {
3890
- sourceName: "workflows" | "apps";
3891
- sourceKey: string;
3892
- }, {
3893
- sourceName: "workflows" | "apps";
3894
- sourceKey: string;
3895
- }>, z.ZodObject<{
3896
- event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<z.objectUtil.extendShape<{
3411
+ }, z.core.$strip>, z.ZodObject<{
3412
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
3897
3413
  version: z.ZodOptional<z.ZodString>;
3898
- }, {
3899
3414
  name: z.ZodLiteral<TextCustomerEventNames.EmailSet>;
3900
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3901
- }>, "strip", z.ZodTypeAny, {
3902
- name: TextCustomerEventNames.EmailSet;
3903
- version?: string | undefined;
3904
- filters?: string[] | undefined;
3905
- }, {
3906
- name: TextCustomerEventNames.EmailSet;
3907
- version?: string | undefined;
3908
- filters?: string[] | undefined;
3909
- }>, z.ZodObject<z.objectUtil.extendShape<{
3415
+ filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
3416
+ }, z.core.$strip>, z.ZodObject<{
3910
3417
  version: z.ZodOptional<z.ZodString>;
3911
- }, {
3912
3418
  name: z.ZodLiteral<TextCustomerEventNames.PropertiesValuesUpdated>;
3913
3419
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
3914
3420
  id: z.ZodString;
3915
- to: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3916
- }, "strip", z.ZodTypeAny, {
3917
- id: string;
3918
- to?: string | number | boolean | null | undefined;
3919
- }, {
3920
- id: string;
3921
- to?: string | number | boolean | null | undefined;
3922
- }>, "many">>;
3923
- }>, "strip", z.ZodTypeAny, {
3924
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3925
- version?: string | undefined;
3926
- properties?: {
3927
- id: string;
3928
- to?: string | number | boolean | null | undefined;
3929
- }[] | undefined;
3930
- }, {
3931
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3932
- version?: string | undefined;
3933
- properties?: {
3934
- id: string;
3935
- to?: string | number | boolean | null | undefined;
3936
- }[] | undefined;
3937
- }>, z.ZodObject<z.objectUtil.extendShape<{
3421
+ to: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3422
+ }, z.core.$strip>>>;
3423
+ }, z.core.$strip>, z.ZodObject<{
3938
3424
  version: z.ZodOptional<z.ZodString>;
3939
- }, {
3940
3425
  name: z.ZodLiteral<TextCustomerEventNames.SegmentAdded>;
3941
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
3942
- }>, "strip", z.ZodTypeAny, {
3943
- name: TextCustomerEventNames.SegmentAdded;
3944
- segment_type: TextCustomerSegmentType;
3945
- version?: string | undefined;
3946
- }, {
3947
- name: TextCustomerEventNames.SegmentAdded;
3948
- segment_type: TextCustomerSegmentType;
3949
- version?: string | undefined;
3950
- }>, z.ZodObject<z.objectUtil.extendShape<{
3426
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3427
+ }, z.core.$strip>, z.ZodObject<{
3951
3428
  version: z.ZodOptional<z.ZodString>;
3952
- }, {
3953
3429
  name: z.ZodLiteral<TextCustomerEventNames.SegmentRemoved>;
3954
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
3955
- }>, "strip", z.ZodTypeAny, {
3956
- name: TextCustomerEventNames.SegmentRemoved;
3957
- segment_type: TextCustomerSegmentType;
3958
- version?: string | undefined;
3959
- }, {
3960
- name: TextCustomerEventNames.SegmentRemoved;
3961
- segment_type: TextCustomerSegmentType;
3962
- version?: string | undefined;
3963
- }>]>;
3430
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3431
+ }, z.core.$strip>], "name">;
3964
3432
  callback: z.ZodString;
3965
- }, "strip", z.ZodTypeAny, {
3966
- event: {
3967
- name: TextCustomerEventNames.EmailSet;
3968
- version?: string | undefined;
3969
- filters?: string[] | undefined;
3970
- } | {
3971
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3972
- version?: string | undefined;
3973
- properties?: {
3974
- id: string;
3975
- to?: string | number | boolean | null | undefined;
3976
- }[] | undefined;
3977
- } | {
3978
- name: TextCustomerEventNames.SegmentAdded;
3979
- segment_type: TextCustomerSegmentType;
3980
- version?: string | undefined;
3981
- } | {
3982
- name: TextCustomerEventNames.SegmentRemoved;
3983
- segment_type: TextCustomerSegmentType;
3984
- version?: string | undefined;
3985
- };
3986
- callback: string;
3987
- }, {
3988
- event: {
3989
- name: TextCustomerEventNames.EmailSet;
3990
- version?: string | undefined;
3991
- filters?: string[] | undefined;
3992
- } | {
3993
- name: TextCustomerEventNames.PropertiesValuesUpdated;
3994
- version?: string | undefined;
3995
- properties?: {
3996
- id: string;
3997
- to?: string | number | boolean | null | undefined;
3998
- }[] | undefined;
3999
- } | {
4000
- name: TextCustomerEventNames.SegmentAdded;
4001
- segment_type: TextCustomerSegmentType;
4002
- version?: string | undefined;
4003
- } | {
4004
- name: TextCustomerEventNames.SegmentRemoved;
4005
- segment_type: TextCustomerSegmentType;
4006
- version?: string | undefined;
4007
- };
4008
- callback: string;
4009
- }>>, z.ZodObject<{
3433
+ }, z.core.$strip>>, z.ZodObject<{
4010
3434
  authorization: z.ZodOptional<z.ZodObject<{
4011
3435
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4012
3436
  query_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4013
3437
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4014
- }, "strip", z.ZodTypeAny, {
4015
- data?: Record<string, string> | undefined;
4016
- headers?: Record<string, string> | undefined;
4017
- query_params?: Record<string, string> | undefined;
4018
- }, {
4019
- data?: Record<string, string> | undefined;
4020
- headers?: Record<string, string> | undefined;
4021
- query_params?: Record<string, string> | undefined;
4022
- }>>;
4023
- }, "strip", z.ZodTypeAny, {
4024
- authorization?: {
4025
- data?: Record<string, string> | undefined;
4026
- headers?: Record<string, string> | undefined;
4027
- query_params?: Record<string, string> | undefined;
4028
- } | undefined;
4029
- }, {
4030
- authorization?: {
4031
- data?: Record<string, string> | undefined;
4032
- headers?: Record<string, string> | undefined;
4033
- query_params?: Record<string, string> | undefined;
4034
- } | undefined;
4035
- }>>;
3438
+ }, z.core.$strip>>;
3439
+ }, z.core.$strip>>;
4036
3440
  readonly subscribeContent: z.ZodObject<{
4037
3441
  provider: z.ZodLiteral<IntegrationNames.Text>;
4038
- event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<z.objectUtil.extendShape<{
3442
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
4039
3443
  version: z.ZodOptional<z.ZodString>;
4040
- }, {
4041
3444
  name: z.ZodLiteral<TextCustomerEventNames.EmailSet>;
4042
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4043
- }>, "strip", z.ZodTypeAny, {
4044
- name: TextCustomerEventNames.EmailSet;
4045
- version?: string | undefined;
4046
- filters?: string[] | undefined;
4047
- }, {
4048
- name: TextCustomerEventNames.EmailSet;
4049
- version?: string | undefined;
4050
- filters?: string[] | undefined;
4051
- }>, z.ZodObject<z.objectUtil.extendShape<{
3445
+ filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
3446
+ }, z.core.$strip>, z.ZodObject<{
4052
3447
  version: z.ZodOptional<z.ZodString>;
4053
- }, {
4054
3448
  name: z.ZodLiteral<TextCustomerEventNames.PropertiesValuesUpdated>;
4055
3449
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4056
3450
  id: z.ZodString;
4057
- to: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4058
- }, "strip", z.ZodTypeAny, {
4059
- id: string;
4060
- to?: string | number | boolean | null | undefined;
4061
- }, {
4062
- id: string;
4063
- to?: string | number | boolean | null | undefined;
4064
- }>, "many">>;
4065
- }>, "strip", z.ZodTypeAny, {
4066
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4067
- version?: string | undefined;
4068
- properties?: {
4069
- id: string;
4070
- to?: string | number | boolean | null | undefined;
4071
- }[] | undefined;
4072
- }, {
4073
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4074
- version?: string | undefined;
4075
- properties?: {
4076
- id: string;
4077
- to?: string | number | boolean | null | undefined;
4078
- }[] | undefined;
4079
- }>, z.ZodObject<z.objectUtil.extendShape<{
3451
+ to: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3452
+ }, z.core.$strip>>>;
3453
+ }, z.core.$strip>, z.ZodObject<{
4080
3454
  version: z.ZodOptional<z.ZodString>;
4081
- }, {
4082
3455
  name: z.ZodLiteral<TextCustomerEventNames.SegmentAdded>;
4083
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4084
- }>, "strip", z.ZodTypeAny, {
4085
- name: TextCustomerEventNames.SegmentAdded;
4086
- segment_type: TextCustomerSegmentType;
4087
- version?: string | undefined;
4088
- }, {
4089
- name: TextCustomerEventNames.SegmentAdded;
4090
- segment_type: TextCustomerSegmentType;
4091
- version?: string | undefined;
4092
- }>, z.ZodObject<z.objectUtil.extendShape<{
3456
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3457
+ }, z.core.$strip>, z.ZodObject<{
4093
3458
  version: z.ZodOptional<z.ZodString>;
4094
- }, {
4095
3459
  name: z.ZodLiteral<TextCustomerEventNames.SegmentRemoved>;
4096
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4097
- }>, "strip", z.ZodTypeAny, {
4098
- name: TextCustomerEventNames.SegmentRemoved;
4099
- segment_type: TextCustomerSegmentType;
4100
- version?: string | undefined;
4101
- }, {
4102
- name: TextCustomerEventNames.SegmentRemoved;
4103
- segment_type: TextCustomerSegmentType;
4104
- version?: string | undefined;
4105
- }>]>;
3460
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3461
+ }, z.core.$strip>], "name">;
4106
3462
  callback: z.ZodString;
4107
- }, "strip", z.ZodTypeAny, {
4108
- event: {
4109
- name: TextCustomerEventNames.EmailSet;
4110
- version?: string | undefined;
4111
- filters?: string[] | undefined;
4112
- } | {
4113
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4114
- version?: string | undefined;
4115
- properties?: {
4116
- id: string;
4117
- to?: string | number | boolean | null | undefined;
4118
- }[] | undefined;
4119
- } | {
4120
- name: TextCustomerEventNames.SegmentAdded;
4121
- segment_type: TextCustomerSegmentType;
4122
- version?: string | undefined;
4123
- } | {
4124
- name: TextCustomerEventNames.SegmentRemoved;
4125
- segment_type: TextCustomerSegmentType;
4126
- version?: string | undefined;
4127
- };
4128
- callback: string;
4129
- provider: IntegrationNames.Text;
4130
- }, {
4131
- event: {
4132
- name: TextCustomerEventNames.EmailSet;
4133
- version?: string | undefined;
4134
- filters?: string[] | undefined;
4135
- } | {
4136
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4137
- version?: string | undefined;
4138
- properties?: {
4139
- id: string;
4140
- to?: string | number | boolean | null | undefined;
4141
- }[] | undefined;
4142
- } | {
4143
- name: TextCustomerEventNames.SegmentAdded;
4144
- segment_type: TextCustomerSegmentType;
4145
- version?: string | undefined;
4146
- } | {
4147
- name: TextCustomerEventNames.SegmentRemoved;
4148
- segment_type: TextCustomerSegmentType;
4149
- version?: string | undefined;
4150
- };
4151
- callback: string;
4152
- provider: IntegrationNames.Text;
4153
- }>;
3463
+ }, z.core.$strip>;
4154
3464
  readonly unsubscribe: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
4155
- sourceName: z.ZodEnum<["apps", "workflows"]>;
3465
+ sourceName: z.ZodEnum<{
3466
+ workflows: "workflows";
3467
+ apps: "apps";
3468
+ }>;
4156
3469
  sourceKey: z.ZodString;
4157
- }, "strip", z.ZodTypeAny, {
4158
- sourceName: "workflows" | "apps";
4159
- sourceKey: string;
4160
- }, {
4161
- sourceName: "workflows" | "apps";
4162
- sourceKey: string;
4163
- }>, z.ZodObject<{
4164
- event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<z.objectUtil.extendShape<{
3470
+ }, z.core.$strip>, z.ZodObject<{
3471
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
4165
3472
  version: z.ZodOptional<z.ZodString>;
4166
- }, {
4167
3473
  name: z.ZodLiteral<TextCustomerEventNames.EmailSet>;
4168
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4169
- }>, "strip", z.ZodTypeAny, {
4170
- name: TextCustomerEventNames.EmailSet;
4171
- version?: string | undefined;
4172
- filters?: string[] | undefined;
4173
- }, {
4174
- name: TextCustomerEventNames.EmailSet;
4175
- version?: string | undefined;
4176
- filters?: string[] | undefined;
4177
- }>, z.ZodObject<z.objectUtil.extendShape<{
3474
+ filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
3475
+ }, z.core.$strip>, z.ZodObject<{
4178
3476
  version: z.ZodOptional<z.ZodString>;
4179
- }, {
4180
3477
  name: z.ZodLiteral<TextCustomerEventNames.PropertiesValuesUpdated>;
4181
3478
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4182
3479
  id: z.ZodString;
4183
- to: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4184
- }, "strip", z.ZodTypeAny, {
4185
- id: string;
4186
- to?: string | number | boolean | null | undefined;
4187
- }, {
4188
- id: string;
4189
- to?: string | number | boolean | null | undefined;
4190
- }>, "many">>;
4191
- }>, "strip", z.ZodTypeAny, {
4192
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4193
- version?: string | undefined;
4194
- properties?: {
4195
- id: string;
4196
- to?: string | number | boolean | null | undefined;
4197
- }[] | undefined;
4198
- }, {
4199
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4200
- version?: string | undefined;
4201
- properties?: {
4202
- id: string;
4203
- to?: string | number | boolean | null | undefined;
4204
- }[] | undefined;
4205
- }>, z.ZodObject<z.objectUtil.extendShape<{
3480
+ to: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3481
+ }, z.core.$strip>>>;
3482
+ }, z.core.$strip>, z.ZodObject<{
4206
3483
  version: z.ZodOptional<z.ZodString>;
4207
- }, {
4208
3484
  name: z.ZodLiteral<TextCustomerEventNames.SegmentAdded>;
4209
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4210
- }>, "strip", z.ZodTypeAny, {
4211
- name: TextCustomerEventNames.SegmentAdded;
4212
- segment_type: TextCustomerSegmentType;
4213
- version?: string | undefined;
4214
- }, {
4215
- name: TextCustomerEventNames.SegmentAdded;
4216
- segment_type: TextCustomerSegmentType;
4217
- version?: string | undefined;
4218
- }>, z.ZodObject<z.objectUtil.extendShape<{
3485
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3486
+ }, z.core.$strip>, z.ZodObject<{
4219
3487
  version: z.ZodOptional<z.ZodString>;
4220
- }, {
4221
3488
  name: z.ZodLiteral<TextCustomerEventNames.SegmentRemoved>;
4222
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4223
- }>, "strip", z.ZodTypeAny, {
4224
- name: TextCustomerEventNames.SegmentRemoved;
4225
- segment_type: TextCustomerSegmentType;
4226
- version?: string | undefined;
4227
- }, {
4228
- name: TextCustomerEventNames.SegmentRemoved;
4229
- segment_type: TextCustomerSegmentType;
4230
- version?: string | undefined;
4231
- }>]>;
4232
- }, "strip", z.ZodTypeAny, {
4233
- event: {
4234
- name: TextCustomerEventNames.EmailSet;
4235
- version?: string | undefined;
4236
- filters?: string[] | undefined;
4237
- } | {
4238
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4239
- version?: string | undefined;
4240
- properties?: {
4241
- id: string;
4242
- to?: string | number | boolean | null | undefined;
4243
- }[] | undefined;
4244
- } | {
4245
- name: TextCustomerEventNames.SegmentAdded;
4246
- segment_type: TextCustomerSegmentType;
4247
- version?: string | undefined;
4248
- } | {
4249
- name: TextCustomerEventNames.SegmentRemoved;
4250
- segment_type: TextCustomerSegmentType;
4251
- version?: string | undefined;
4252
- };
4253
- }, {
4254
- event: {
4255
- name: TextCustomerEventNames.EmailSet;
4256
- version?: string | undefined;
4257
- filters?: string[] | undefined;
4258
- } | {
4259
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4260
- version?: string | undefined;
4261
- properties?: {
4262
- id: string;
4263
- to?: string | number | boolean | null | undefined;
4264
- }[] | undefined;
4265
- } | {
4266
- name: TextCustomerEventNames.SegmentAdded;
4267
- segment_type: TextCustomerSegmentType;
4268
- version?: string | undefined;
4269
- } | {
4270
- name: TextCustomerEventNames.SegmentRemoved;
4271
- segment_type: TextCustomerSegmentType;
4272
- version?: string | undefined;
4273
- };
4274
- }>>, z.ZodObject<{
3489
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3490
+ }, z.core.$strip>], "name">;
3491
+ }, z.core.$strip>>, z.ZodObject<{
4275
3492
  authorization: z.ZodOptional<z.ZodObject<{
4276
3493
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4277
3494
  query_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4278
3495
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4279
- }, "strip", z.ZodTypeAny, {
4280
- data?: Record<string, string> | undefined;
4281
- headers?: Record<string, string> | undefined;
4282
- query_params?: Record<string, string> | undefined;
4283
- }, {
4284
- data?: Record<string, string> | undefined;
4285
- headers?: Record<string, string> | undefined;
4286
- query_params?: Record<string, string> | undefined;
4287
- }>>;
4288
- }, "strip", z.ZodTypeAny, {
4289
- authorization?: {
4290
- data?: Record<string, string> | undefined;
4291
- headers?: Record<string, string> | undefined;
4292
- query_params?: Record<string, string> | undefined;
4293
- } | undefined;
4294
- }, {
4295
- authorization?: {
4296
- data?: Record<string, string> | undefined;
4297
- headers?: Record<string, string> | undefined;
4298
- query_params?: Record<string, string> | undefined;
4299
- } | undefined;
4300
- }>>;
3496
+ }, z.core.$strip>>;
3497
+ }, z.core.$strip>>;
4301
3498
  readonly unsubscribeContent: z.ZodObject<{
4302
3499
  provider: z.ZodLiteral<IntegrationNames.Text>;
4303
- event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<z.objectUtil.extendShape<{
3500
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
4304
3501
  version: z.ZodOptional<z.ZodString>;
4305
- }, {
4306
3502
  name: z.ZodLiteral<TextCustomerEventNames.EmailSet>;
4307
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4308
- }>, "strip", z.ZodTypeAny, {
4309
- name: TextCustomerEventNames.EmailSet;
4310
- version?: string | undefined;
4311
- filters?: string[] | undefined;
4312
- }, {
4313
- name: TextCustomerEventNames.EmailSet;
4314
- version?: string | undefined;
4315
- filters?: string[] | undefined;
4316
- }>, z.ZodObject<z.objectUtil.extendShape<{
3503
+ filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
3504
+ }, z.core.$strip>, z.ZodObject<{
4317
3505
  version: z.ZodOptional<z.ZodString>;
4318
- }, {
4319
3506
  name: z.ZodLiteral<TextCustomerEventNames.PropertiesValuesUpdated>;
4320
3507
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4321
3508
  id: z.ZodString;
4322
- to: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4323
- }, "strip", z.ZodTypeAny, {
4324
- id: string;
4325
- to?: string | number | boolean | null | undefined;
4326
- }, {
4327
- id: string;
4328
- to?: string | number | boolean | null | undefined;
4329
- }>, "many">>;
4330
- }>, "strip", z.ZodTypeAny, {
4331
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4332
- version?: string | undefined;
4333
- properties?: {
4334
- id: string;
4335
- to?: string | number | boolean | null | undefined;
4336
- }[] | undefined;
4337
- }, {
4338
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4339
- version?: string | undefined;
4340
- properties?: {
4341
- id: string;
4342
- to?: string | number | boolean | null | undefined;
4343
- }[] | undefined;
4344
- }>, z.ZodObject<z.objectUtil.extendShape<{
3509
+ to: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3510
+ }, z.core.$strip>>>;
3511
+ }, z.core.$strip>, z.ZodObject<{
4345
3512
  version: z.ZodOptional<z.ZodString>;
4346
- }, {
4347
3513
  name: z.ZodLiteral<TextCustomerEventNames.SegmentAdded>;
4348
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4349
- }>, "strip", z.ZodTypeAny, {
4350
- name: TextCustomerEventNames.SegmentAdded;
4351
- segment_type: TextCustomerSegmentType;
4352
- version?: string | undefined;
4353
- }, {
4354
- name: TextCustomerEventNames.SegmentAdded;
4355
- segment_type: TextCustomerSegmentType;
4356
- version?: string | undefined;
4357
- }>, z.ZodObject<z.objectUtil.extendShape<{
3514
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3515
+ }, z.core.$strip>, z.ZodObject<{
4358
3516
  version: z.ZodOptional<z.ZodString>;
4359
- }, {
4360
3517
  name: z.ZodLiteral<TextCustomerEventNames.SegmentRemoved>;
4361
- segment_type: z.ZodNativeEnum<typeof TextCustomerSegmentType>;
4362
- }>, "strip", z.ZodTypeAny, {
4363
- name: TextCustomerEventNames.SegmentRemoved;
4364
- segment_type: TextCustomerSegmentType;
4365
- version?: string | undefined;
4366
- }, {
4367
- name: TextCustomerEventNames.SegmentRemoved;
4368
- segment_type: TextCustomerSegmentType;
4369
- version?: string | undefined;
4370
- }>]>;
4371
- }, "strip", z.ZodTypeAny, {
4372
- event: {
4373
- name: TextCustomerEventNames.EmailSet;
4374
- version?: string | undefined;
4375
- filters?: string[] | undefined;
4376
- } | {
4377
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4378
- version?: string | undefined;
4379
- properties?: {
4380
- id: string;
4381
- to?: string | number | boolean | null | undefined;
4382
- }[] | undefined;
4383
- } | {
4384
- name: TextCustomerEventNames.SegmentAdded;
4385
- segment_type: TextCustomerSegmentType;
4386
- version?: string | undefined;
4387
- } | {
4388
- name: TextCustomerEventNames.SegmentRemoved;
4389
- segment_type: TextCustomerSegmentType;
4390
- version?: string | undefined;
4391
- };
4392
- provider: IntegrationNames.Text;
4393
- }, {
4394
- event: {
4395
- name: TextCustomerEventNames.EmailSet;
4396
- version?: string | undefined;
4397
- filters?: string[] | undefined;
4398
- } | {
4399
- name: TextCustomerEventNames.PropertiesValuesUpdated;
4400
- version?: string | undefined;
4401
- properties?: {
4402
- id: string;
4403
- to?: string | number | boolean | null | undefined;
4404
- }[] | undefined;
4405
- } | {
4406
- name: TextCustomerEventNames.SegmentAdded;
4407
- segment_type: TextCustomerSegmentType;
4408
- version?: string | undefined;
4409
- } | {
4410
- name: TextCustomerEventNames.SegmentRemoved;
4411
- segment_type: TextCustomerSegmentType;
4412
- version?: string | undefined;
4413
- };
4414
- provider: IntegrationNames.Text;
4415
- }>;
3518
+ segment_type: z.ZodEnum<typeof TextCustomerSegmentType>;
3519
+ }, z.core.$strip>], "name">;
3520
+ }, z.core.$strip>;
4416
3521
  };
4417
3522
  type TextEvent = z.infer<typeof textEventsZods.event>;
4418
3523
  type SubscribeToTextEventPayload = z.infer<typeof textEventsZods.subscribe>;