@livechat/developer-studio-api 5.11.1 → 5.12.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.js CHANGED
@@ -103,6 +103,7 @@ __export(src_exports, {
103
103
  ORGANIZATION_ID_HEADER: () => ORGANIZATION_ID_HEADER,
104
104
  OauthCredentialGrantType: () => OauthCredentialGrantType,
105
105
  PROXY_AUTHORIZATION_HEADER: () => PROXY_AUTHORIZATION_HEADER,
106
+ RegenerateIntentRejectionError: () => RegenerateIntentRejectionError,
106
107
  SERVICE_ACCOUNT_ID_HEADER: () => SERVICE_ACCOUNT_ID_HEADER,
107
108
  SERVICE_ORGANIZATION_ID_HEADER: () => SERVICE_ORGANIZATION_ID_HEADER,
108
109
  ShopifyApiError: () => ShopifyApiError,
@@ -235,7 +236,9 @@ __export(src_exports, {
235
236
  isFilter: () => isFilter,
236
237
  isFilterGroup: () => isFilterGroup,
237
238
  isWorkflowBaseHttpTaskCore: () => isWorkflowBaseHttpTaskCore,
239
+ livechatChatContext: () => livechatChatContext,
238
240
  livechatClientInstance: () => livechatClientInstance,
241
+ livechatEventContext: () => livechatEventContext,
239
242
  mailchimpClientInstance: () => mailchimpClientInstance,
240
243
  mailchimpEventsZods: () => mailchimpEventsZods,
241
244
  mergeDeep: () => mergeDeep,
@@ -1031,7 +1034,7 @@ var textHelpDeskEventsZods = {
1031
1034
  ticketMessageAdded: import_zod8.z.discriminatedUnion("version", [
1032
1035
  import_zod8.z.object({
1033
1036
  name: import_zod8.z.literal("ticket_message_added" /* TicketMessageAdded */),
1034
- version: import_zod8.z.undefined()
1037
+ version: import_zod8.z.literal("v0").optional()
1035
1038
  }).extend(baseFiltersZod.shape),
1036
1039
  import_zod8.z.object({
1037
1040
  name: import_zod8.z.literal("ticket_message_added" /* TicketMessageAdded */),
@@ -1102,6 +1105,7 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
1102
1105
  TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
1103
1106
  TextLivechatEventNames2["ChatIdle"] = "chat_idle";
1104
1107
  TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
1108
+ TextLivechatEventNames2["RichMessagePostback"] = "rich_message_postback";
1105
1109
  TextLivechatEventNames2["FormFilled"] = "form_filled";
1106
1110
  TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
1107
1111
  return TextLivechatEventNames2;
@@ -1117,43 +1121,49 @@ var TextLivechatProductCardEventType = /* @__PURE__ */ ((TextLivechatProductCard
1117
1121
  TextLivechatProductCardEventType2["AddToCart"] = "add_to_cart";
1118
1122
  return TextLivechatProductCardEventType2;
1119
1123
  })(TextLivechatProductCardEventType || {});
1124
+ var livechatChatContext = import_zod9.z.object({
1125
+ chat_id: import_zod9.z.string().min(1).optional(),
1126
+ thread_id: import_zod9.z.string().min(1).optional()
1127
+ });
1128
+ var livechatEventContext = import_zod9.z.object({
1129
+ event_id: import_zod9.z.string().min(1).optional()
1130
+ });
1120
1131
  var textLivechatEventsZods = {
1121
1132
  provider: import_zod9.z.literal("text-livechat" /* LiveChat */),
1122
1133
  eventName: import_zod9.z.nativeEnum(TextLivechatEventNames),
1123
1134
  events: {
1124
- chatStarted: integrationEventBase.extend({
1135
+ chatStarted: integrationEventBase.extend(livechatChatContext.shape).extend({
1125
1136
  name: import_zod9.z.literal("chat_started" /* ChatStarted */),
1126
1137
  targetAgentId: import_zod9.z.string().optional()
1127
1138
  }),
1128
- chatEnded: integrationEventBase.extend({
1139
+ chatEnded: integrationEventBase.extend(livechatChatContext.shape).extend({
1129
1140
  name: import_zod9.z.literal("chat_ended" /* ChatEnded */)
1130
1141
  }),
1131
- chatTransferred: integrationEventBase.extend({
1142
+ chatTransferred: integrationEventBase.extend(livechatChatContext.shape).extend({
1132
1143
  name: import_zod9.z.literal("chat_transferred" /* ChatTransferred */),
1133
1144
  targetGroups: import_zod9.z.array(import_zod9.z.number()).optional(),
1134
1145
  targetAgents: import_zod9.z.array(import_zod9.z.string()).optional()
1135
1146
  }),
1136
- chatTagged: integrationEventBase.extend({
1147
+ chatTagged: integrationEventBase.extend(livechatChatContext.shape).extend({
1137
1148
  name: import_zod9.z.literal("chat_tagged" /* ChatTagged */),
1138
- tag: import_zod9.z.string().optional(),
1139
- exact: import_zod9.z.boolean().optional()
1149
+ tag: import_zod9.z.string().optional()
1140
1150
  }),
1141
- chatRated: integrationEventBase.extend({
1151
+ chatRated: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1142
1152
  name: import_zod9.z.literal("chat_rated" /* ChatRated */),
1143
1153
  rating: import_zod9.z.enum(["good", "bad", "all"]).optional()
1144
1154
  }),
1145
- chatCommented: integrationEventBase.extend({
1155
+ chatCommented: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1146
1156
  name: import_zod9.z.literal("chat_commented" /* ChatCommented */)
1147
1157
  }),
1148
1158
  chatMessage: import_zod9.z.discriminatedUnion("version", [
1149
- import_zod9.z.object({
1159
+ integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1150
1160
  name: import_zod9.z.literal("chat_message" /* ChatMessage */),
1151
- version: import_zod9.z.undefined(),
1161
+ version: import_zod9.z.literal("v0").optional(),
1152
1162
  filter: import_zod9.z.string().optional(),
1153
1163
  caseInsensitive: import_zod9.z.boolean().optional(),
1154
1164
  matchWholeWords: import_zod9.z.boolean().optional()
1155
1165
  }),
1156
- import_zod9.z.object({
1166
+ integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1157
1167
  name: import_zod9.z.literal("chat_message" /* ChatMessage */),
1158
1168
  version: import_zod9.z.enum(["v1", "v2"]),
1159
1169
  filters: import_zod9.z.array(import_zod9.z.string()),
@@ -1161,31 +1171,42 @@ var textLivechatEventsZods = {
1161
1171
  matchWholeWords: import_zod9.z.boolean().optional()
1162
1172
  })
1163
1173
  ]),
1164
- userAddedToChat: integrationEventBase.extend({
1174
+ userAddedToChat: integrationEventBase.extend(livechatChatContext.shape).extend({
1165
1175
  name: import_zod9.z.literal("user_added_to_chat" /* UserAddedToChat */),
1166
1176
  userType: import_zod9.z.enum(["agent", "customer"]).optional(),
1167
1177
  targetAgentId: import_zod9.z.string().optional()
1168
1178
  }),
1169
- userRemovedFromChat: integrationEventBase.extend({
1179
+ userRemovedFromChat: integrationEventBase.extend(livechatChatContext.shape).extend({
1170
1180
  name: import_zod9.z.literal("user_removed_from_chat" /* UserRemovedFromChat */)
1171
1181
  }),
1172
- customerLeftChat: integrationEventBase.extend({
1182
+ customerLeftChat: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1173
1183
  name: import_zod9.z.literal("customer_left_chat" /* CustomerLeftChat */),
1174
1184
  reasons: import_zod9.z.array(import_zod9.z.nativeEnum(CustomerLeftChatReason)).optional()
1175
1185
  }),
1176
- chatIdle: integrationEventBase.extend({
1186
+ chatIdle: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1177
1187
  name: import_zod9.z.literal("chat_idle" /* ChatIdle */)
1178
1188
  }),
1179
- productCardEvent: integrationEventBase.extend({
1189
+ productCardEvent: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1180
1190
  name: import_zod9.z.literal("product_card_event" /* ProductCardEvent */),
1181
1191
  type: import_zod9.z.nativeEnum(TextLivechatProductCardEventType),
1182
1192
  product_id: import_zod9.z.string().optional()
1183
1193
  }),
1184
- formFilled: integrationEventBase.extend({
1194
+ richMessagePostback: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1195
+ name: import_zod9.z.literal("rich_message_postback" /* RichMessagePostback */),
1196
+ postbacks: import_zod9.z.union([
1197
+ import_zod9.z.array(import_zod9.z.string().min(1)),
1198
+ import_zod9.z.record(import_zod9.z.string().min(1), import_zod9.z.string().min(1))
1199
+ ]).refine((input) => {
1200
+ const ids = Array.isArray(input) ? input : Object.values(input);
1201
+ return ids.length > 0 && new Set(ids).size === ids.length;
1202
+ }, "Postbacks must be nonempty and IDs must be unique"),
1203
+ user_ids: import_zod9.z.array(import_zod9.z.string().min(1)).min(1).optional()
1204
+ }),
1205
+ formFilled: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1185
1206
  name: import_zod9.z.literal("form_filled" /* FormFilled */),
1186
1207
  form_id: import_zod9.z.string().optional()
1187
1208
  }),
1188
- customFormFilled: integrationEventBase.extend({
1209
+ customFormFilled: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
1189
1210
  name: import_zod9.z.literal("custom_form_filled" /* CustomFormFilled */),
1190
1211
  form_id: import_zod9.z.string().optional()
1191
1212
  })
@@ -1204,6 +1225,7 @@ var textLivechatEventsZods = {
1204
1225
  this.events.customerLeftChat,
1205
1226
  this.events.chatIdle,
1206
1227
  this.events.productCardEvent,
1228
+ this.events.richMessagePostback,
1207
1229
  this.events.formFilled,
1208
1230
  this.events.customFormFilled
1209
1231
  ]);
@@ -4014,6 +4036,14 @@ function initTextClient(baseUrl, token) {
4014
4036
  }
4015
4037
  }
4016
4038
 
4039
+ // src/apis/integrations/text/ai-agent/contracts.ts
4040
+ var RegenerateIntentRejectionError = class extends ApiErrorBase {
4041
+ constructor() {
4042
+ super(...arguments);
4043
+ this.name = "text";
4044
+ }
4045
+ };
4046
+
4017
4047
  // src/apis/integrations/text/ai-agent/api.ts
4018
4048
  var textAiAgentApi = {
4019
4049
  generateResponses(payload, authorization) {
@@ -4027,6 +4057,40 @@ var textAiAgentApi = {
4027
4057
  );
4028
4058
  return response;
4029
4059
  });
4060
+ },
4061
+ regenerateIntent(payload, authorization) {
4062
+ return __async(this, null, function* () {
4063
+ const getRejection = (error) => {
4064
+ var _a;
4065
+ const isTextApiError = error instanceof TextApiError;
4066
+ if (!isTextApiError) {
4067
+ return void 0;
4068
+ }
4069
+ const data = error.data;
4070
+ const { message, suggestion } = (_a = data == null ? void 0 : data.innerError) != null ? _a : {};
4071
+ if (typeof message === "string" && typeof suggestion === "string") {
4072
+ return { message, suggestion };
4073
+ }
4074
+ return void 0;
4075
+ };
4076
+ return textClientInstance.post(
4077
+ "/nlp-gateway/v2/agents/skills/regenerate-intent",
4078
+ payload,
4079
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
4080
+ ensureAuthorizationToken: true
4081
+ }))
4082
+ ).then(({ data }) => data).catch((error) => {
4083
+ const rejection = getRejection(error);
4084
+ if (rejection) {
4085
+ throw new RegenerateIntentRejectionError(
4086
+ rejection.message,
4087
+ rejection,
4088
+ error.code
4089
+ );
4090
+ }
4091
+ throw error;
4092
+ });
4093
+ });
4030
4094
  }
4031
4095
  };
4032
4096
 
@@ -10108,6 +10172,7 @@ function initApi(config, tokens) {
10108
10172
  ORGANIZATION_ID_HEADER,
10109
10173
  OauthCredentialGrantType,
10110
10174
  PROXY_AUTHORIZATION_HEADER,
10175
+ RegenerateIntentRejectionError,
10111
10176
  SERVICE_ACCOUNT_ID_HEADER,
10112
10177
  SERVICE_ORGANIZATION_ID_HEADER,
10113
10178
  ShopifyApiError,
@@ -10240,7 +10305,9 @@ function initApi(config, tokens) {
10240
10305
  isFilter,
10241
10306
  isFilterGroup,
10242
10307
  isWorkflowBaseHttpTaskCore,
10308
+ livechatChatContext,
10243
10309
  livechatClientInstance,
10310
+ livechatEventContext,
10244
10311
  mailchimpClientInstance,
10245
10312
  mailchimpEventsZods,
10246
10313
  mergeDeep,
package/dist/index.mjs CHANGED
@@ -35,6 +35,7 @@ import {
35
35
  ORGANIZATION_ID_HEADER,
36
36
  OauthCredentialGrantType,
37
37
  PROXY_AUTHORIZATION_HEADER,
38
+ RegenerateIntentRejectionError,
38
39
  SERVICE_ACCOUNT_ID_HEADER,
39
40
  SERVICE_ORGANIZATION_ID_HEADER,
40
41
  ShopifyApiError,
@@ -167,7 +168,9 @@ import {
167
168
  isFilter,
168
169
  isFilterGroup,
169
170
  isWorkflowBaseHttpTaskCore,
171
+ livechatChatContext,
170
172
  livechatClientInstance,
173
+ livechatEventContext,
171
174
  mailchimpClientInstance,
172
175
  mailchimpEventsZods,
173
176
  mergeDeep,
@@ -201,7 +204,7 @@ import {
201
204
  updateWorkflowsClient,
202
205
  vercelClientInstance,
203
206
  workflowsClientInstance
204
- } from "./chunk-QGX7NFQO.mjs";
207
+ } from "./chunk-XVLSQUPO.mjs";
205
208
  export {
206
209
  ACCOUNT_ID_HEADER,
207
210
  API_NOTIFICATIONS,
@@ -239,6 +242,7 @@ export {
239
242
  ORGANIZATION_ID_HEADER,
240
243
  OauthCredentialGrantType,
241
244
  PROXY_AUTHORIZATION_HEADER,
245
+ RegenerateIntentRejectionError,
242
246
  SERVICE_ACCOUNT_ID_HEADER,
243
247
  SERVICE_ORGANIZATION_ID_HEADER,
244
248
  ShopifyApiError,
@@ -371,7 +375,9 @@ export {
371
375
  isFilter,
372
376
  isFilterGroup,
373
377
  isWorkflowBaseHttpTaskCore,
378
+ livechatChatContext,
374
379
  livechatClientInstance,
380
+ livechatEventContext,
375
381
  mailchimpClientInstance,
376
382
  mailchimpEventsZods,
377
383
  mergeDeep,
@@ -1,4 +1,4 @@
1
- export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as WorkflowConvertTaskInputAffix, bO as WorkflowConvertTaskInputFilter, bP as WorkflowConvertTaskInputJoin, bQ as WorkflowConvertTaskInputMath, bR as WorkflowConvertTaskInputPickOmit, bS as WorkflowConvertTaskInputPluck, bT as WorkflowConvertTaskInputReducer, bU as WorkflowConvertTaskInputReplace, bV as WorkflowConvertTaskInputRound, bW as WorkflowConvertTaskInputSimple, bX as WorkflowConvertTaskInputSort, bY as WorkflowConvertTaskInputSplit, bZ as WorkflowConvertTaskInputSum, b_ as WorkflowConvertTaskMathOperation, b$ as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, c0 as WorkflowCustomHttpTaskCore, c1 as WorkflowCustomTaskName, c2 as WorkflowDefinitionDto, c3 as WorkflowDoWhileBaseTask, c4 as WorkflowDoWhileBaseTaskCore, c5 as WorkflowDoWhileBaseTaskInput, c6 as WorkflowDoWhileTask, c7 as WorkflowDoWhileTaskCore, W as WorkflowDto, c8 as WorkflowElement, c9 as WorkflowElementCore, ca as WorkflowElementIdentity, cb as WorkflowElementRef, s as WorkflowExecution, cc as WorkflowExecutionActionTaskData, cd as WorkflowExecutionAwaitTaskData, ce as WorkflowExecutionChatContext, cf as WorkflowExecutionConditionTask, cg as WorkflowExecutionConstructTask, ch as WorkflowExecutionContext, ci as WorkflowExecutionConvertTask, cj as WorkflowExecutionData, ck as WorkflowExecutionDefinitionStatus, cl as WorkflowExecutionDoWhileIterationOutput, cm as WorkflowExecutionDoWhileTaskData, cn as WorkflowExecutionForkJoinTaskData, co as WorkflowExecutionHttpTaskData, cp as WorkflowExecutionInlineBaseTask, cq as WorkflowExecutionInlineTaskData, cr as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cs as WorkflowExecutionLookupTask, ct as WorkflowExecutionNotifyAiAgentTaskData, cu as WorkflowExecutionReasoningTaskData, cv as WorkflowExecutionScriptTask, cw as WorkflowExecutionSimpleBaseTaskData, cx as WorkflowExecutionSimpleTaskData, cy as WorkflowExecutionStatus, cz as WorkflowExecutionSwitchBaseTask, cA as WorkflowExecutionSwitchCaseTask, cB as WorkflowExecutionSwitchTaskData, cC as WorkflowExecutionTaskBase, cD as WorkflowExecutionTaskData, cE as WorkflowExecutionTaskStatus, cF as WorkflowExecutionTerminateTaskData, cG as WorkflowExecutionTicketContext, cH as WorkflowExecutionTransformBaseTask, cI as WorkflowExecutionTransformTaskData, cJ as WorkflowExecutionTriggerData, cK as WorkflowExecutionTriggerDataBase, cL as WorkflowExecutionType, cM as WorkflowExecutionWaitTaskData, cN as WorkflowForEachTask, cO as WorkflowForEachTaskCore, cP as WorkflowForEachTaskInput, cQ as WorkflowForkJoinTask, cR as WorkflowForkJoinTaskCore, cS as WorkflowForkJoinTaskInput, cT as WorkflowFunctionErrorResponseBody, cU as WorkflowGraph, cV as WorkflowHttpRequest, cW as WorkflowHttpTask, cX as WorkflowHttpTaskCore, cY as WorkflowHttpTaskErrorResponseBody, cZ as WorkflowHttpTaskFunctionErrorResponseBody, c_ as WorkflowHttpTaskHeaders, c$ as WorkflowHttpTaskInput, d0 as WorkflowHttpTaskProviderErrorResponseBody, d1 as WorkflowInactivityReason, d2 as WorkflowInlineBaseTask, d3 as WorkflowInlineBaseTaskCore, d4 as WorkflowInlineBaseTaskInput, d5 as WorkflowInlineTask, d6 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d7 as WorkflowItemKind, d8 as WorkflowJoinTask, d9 as WorkflowJoinTaskCore, da as WorkflowJoinTaskInput, q as WorkflowListItemDto, db as WorkflowLookupTask, dc as WorkflowLookupTaskCore, dd as WorkflowLookupTaskDefinitionInputParameters, de as WorkflowLookupTaskInput, df as WorkflowLoopTask, dg as WorkflowLoopTaskCore, dh as WorkflowLoopTaskInput, di as WorkflowManualTrigger, dj as WorkflowManualTriggerCore, dk as WorkflowManualTriggerParameter, dl as WorkflowManualTriggerSubType, dm as WorkflowManualTriggerSubTypeName, dn as WorkflowNode, dp as WorkflowNotifyAiAgentTask, dq as WorkflowNotifyAiAgentTaskCore, dr as WorkflowNotifyAiAgentTaskInput, ds as WorkflowNotifyAiAgentTaskObjectiveInput, dt as WorkflowNotifyAiAgentTaskStrictInput, du as WorkflowOneTimeTrigger, dv as WorkflowOneTimeTriggerCore, dw as WorkflowOneTimeTriggerInput, dx as WorkflowParentRef, dy as WorkflowPlan, dz as WorkflowReasoningOption, dA as WorkflowReasoningOptionAgent, dB as WorkflowReasoningOptionCustomer, dC as WorkflowReasoningTask, dD as WorkflowReasoningTaskCore, dE as WorkflowReasoningTaskInput, dF as WorkflowRecurringTrigger, dG as WorkflowRecurringTriggerCore, dH as WorkflowRecurringTriggerInput, dI as WorkflowResourceBucket, dJ as WorkflowResourceRow, dK as WorkflowResources, dL as WorkflowScriptTask, dM as WorkflowScriptTaskCore, dN as WorkflowScriptTaskInput, dO as WorkflowSimpleBaseTask, dP as WorkflowSimpleBaseTaskCore, dQ as WorkflowSimpleTask, dR as WorkflowSimpleTaskCore, dS as WorkflowSwitchBaseTask, dT as WorkflowSwitchBaseTaskCore, dU as WorkflowSwitchCaseTask, dV as WorkflowSwitchCaseTaskCore, dW as WorkflowSwitchCaseTaskInput, dX as WorkflowSwitchTask, dY as WorkflowSwitchTaskCore, dZ as WorkflowSwitchTaskInput, d_ as WorkflowTask, d$ as WorkflowTaskBase, e0 as WorkflowTaskCore, e1 as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, e2 as WorkflowTaskIntrospection, e3 as WorkflowTaskOf, e4 as WorkflowTaskPlan, e5 as WorkflowTaskType, E as WorkflowTemplate, e6 as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, e7 as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, e8 as WorkflowTerminateTask, e9 as WorkflowTerminateTaskCore, ea as WorkflowTerminateTaskInput, eb as WorkflowTransformBaseTask, ec as WorkflowTransformBaseTaskCore, ed as WorkflowTransformBaseTaskInput, ee as WorkflowTransformTask, ef as WorkflowTransformTaskCore, eg as WorkflowTrigger, eh as WorkflowTriggerBase, ei as WorkflowTriggerCore, ej as WorkflowTriggerDto, ek as WorkflowTriggerIdentity, el as WorkflowTriggerOf, em as WorkflowTriggerPlan, en as WorkflowTriggerType, eo as WorkflowWaitTask, ep as WorkflowWaitTaskCore, eq as WorkflowWaitTaskInput, er as WorkflowWebhook, es as WorkflowWebhookInput, et as WorkflowWebhookManualTrigger, eu as WorkflowWebhookManualTriggerCore, ev as WorkflowWebhookTrigger, ew as WorkflowWebhookTriggerCore, ex as WorkflowWebhookTriggerPure, eB as getWorkflowApiCrmConfig, eH as isFilter, eI as isFilterGroup, eJ as isWorkflowBaseHttpTaskCore, eL as serializeFilters } from './events-Cbu2KbXk.mjs';
1
+ export { K as AiAgentSkillsCountDto, v as AiAgentSkillsSummaryDto, l as ApiPaginatedListQueryParams, o as ApiPaginatedResult, P as ApiPagination, Q as AwaitTaskCallback, X as BigCommerceOauthCredential, z as CreateCredentialPayload, _ as Credential, $ as CredentialCore, C as CredentialDto, a0 as CredentialInjection, a1 as CredentialStatus, a2 as CredentialType, a3 as CredentialTypeDisplayNameMapping, a6 as Filter, a7 as FilterGroup, a8 as FilterOperator, a9 as FilterValue, aa as Filters, F as FunctionDto, ab as FunctionSchema, ac as GitHubAppCredential, ad as GitHubOauthCredential, ae as HubSpotOauthCredential, x as IntrospectWorkflowTaskPayload, 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, b2 as ShopifyOauthCredential, b5 as SlackOauthCredential, b6 as SortBy, b7 as SortOrder, b8 as Sorting, bh as TRIGGER_REFERENCE_NAME, bj as TextAuthCredential, bw as TextOAuthCredential, B as UpdateCredentialPayload, w as UpsertWorkflowPayload, 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, n as WorkflowApiCrmAuthorization, 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, k as WorkflowCore, p as WorkflowCrmOrganization, m as WorkflowCrmOrganizationsOrderBy, q as WorkflowCrmWorkflowsOrderBy, cC as WorkflowCustomHttpTaskCore, cD as WorkflowCustomTaskName, cE as WorkflowDefinitionDto, cF as WorkflowDoWhileBaseTask, cG as WorkflowDoWhileBaseTaskCore, cH as WorkflowDoWhileBaseTaskInput, cI as WorkflowDoWhileTask, cJ as WorkflowDoWhileTaskCore, W as WorkflowDto, cK as WorkflowElement, cL as WorkflowElementCore, cM as WorkflowElementIdentity, cN as WorkflowElementRef, t as WorkflowExecution, 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, s as WorkflowExecutionListItem, 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, u as WorkflowIntrospection, dK as WorkflowItemKind, dL as WorkflowJoinTask, dM as WorkflowJoinTaskCore, dN as WorkflowJoinTaskInput, r as WorkflowListItemDto, 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, y as WorkflowTaskIntrospectResponse, eE as WorkflowTaskIntrospection, eF as WorkflowTaskOf, eG as WorkflowTaskPlan, eH as WorkflowTaskType, H as WorkflowTemplate, eI as WorkflowTemplateCategory, E as WorkflowTemplateListEntry, eJ as WorkflowTemplateMetadataItem, D as WorkflowTemplateOrderBy, 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, fb as getWorkflowApiCrmConfig, fh as isFilter, fi as isFilterGroup, fj as isWorkflowBaseHttpTaskCore, fn as serializeFilters } from './events-BdPlrYKo.mjs';
2
2
  import 'utils';
3
3
  import 'json-schema';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { J as AiAgentSkillsCountDto, u as AiAgentSkillsSummaryDto, k as ApiPaginatedListQueryParams, n as ApiPaginatedResult, N as ApiPagination, O as AwaitTaskCallback, R as BigCommerceOauthCredential, y as CreateCredentialPayload, V as Credential, X as CredentialCore, C as CredentialDto, Y as CredentialInjection, Z as CredentialStatus, _ as CredentialType, $ as CredentialTypeDisplayNameMapping, a1 as Filter, a2 as FilterGroup, a3 as FilterOperator, a4 as FilterValue, a5 as Filters, F as FunctionDto, a6 as FunctionSchema, a7 as GitHubAppCredential, a8 as GitHubOauthCredential, a9 as HubSpotOauthCredential, w as IntrospectWorkflowTaskPayload, ap as MailchimpOauthCredential, aq as NeonOauthCredential, ar as NetlifyOauthCredential, as as OAuthCredential, at as OauthCredentialGrantType, au as OpenaiCredential, av as PlanetScaleOauthCredential, aw as PureHttpRequest, ax as SalesforceOauthCredential, aA as ShopifyOauthCredential, aD as SlackOauthCredential, aE as SortBy, aF as SortOrder, aG as Sorting, aP as TRIGGER_REFERENCE_NAME, aR as TextAuthCredential, a_ as TextOAuthCredential, z as UpdateCredentialPayload, v as UpsertWorkflowPayload, b7 as VercelOauthCredential, b8 as Workflow, b9 as WorkflowActionTask, ba as WorkflowActionTaskCore, bb as WorkflowActionTaskErrorOutput, bc as WorkflowActionTaskInput, bd as WorkflowActionTaskInputParameters, be as WorkflowActionTaskSuccessOutput, bf as WorkflowAgentTrigger, bg as WorkflowAgentTriggerConfiguration, bh as WorkflowAgentTriggerCore, bi as WorkflowAgentTriggerInput, bj as WorkflowAgentTriggerSubType, bk as WorkflowAggregate, m as WorkflowApiCrmAuthorization, bl as WorkflowAwaitTask, bm as WorkflowAwaitTaskCore, bn as WorkflowAwaitTaskInput, bo as WorkflowBaseHttpTaskCore, bp as WorkflowBranch, bq as WorkflowBundle, br as WorkflowConditionTask, bs as WorkflowConditionTaskCondition, bt as WorkflowConditionTaskCore, bu as WorkflowConditionTaskFieldType, bv as WorkflowConditionTaskInput, bw as WorkflowConditionTaskLogic, bx as WorkflowConditionTaskOperator, by as WorkflowConditionTaskOperatorGroup, bz as WorkflowConditionTaskOperatorValueType, bA as WorkflowConstructArrayItem, bB as WorkflowConstructObjectField, bC as WorkflowConstructOutputType, bD as WorkflowConstructTask, bE as WorkflowConstructTaskCore, bF as WorkflowConstructTaskDefinitionInputParameters, bG as WorkflowConstructTaskInput, bH as WorkflowConstructTaskInputArray, bI as WorkflowConstructTaskInputObject, bJ as WorkflowConvertTask, bK as WorkflowConvertTaskCore, bL as WorkflowConvertTaskDefinitionInputParameters, bM as WorkflowConvertTaskInput, bN as WorkflowConvertTaskInputAffix, bO as WorkflowConvertTaskInputFilter, bP as WorkflowConvertTaskInputJoin, bQ as WorkflowConvertTaskInputMath, bR as WorkflowConvertTaskInputPickOmit, bS as WorkflowConvertTaskInputPluck, bT as WorkflowConvertTaskInputReducer, bU as WorkflowConvertTaskInputReplace, bV as WorkflowConvertTaskInputRound, bW as WorkflowConvertTaskInputSimple, bX as WorkflowConvertTaskInputSort, bY as WorkflowConvertTaskInputSplit, bZ as WorkflowConvertTaskInputSum, b_ as WorkflowConvertTaskMathOperation, b$ as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, c0 as WorkflowCustomHttpTaskCore, c1 as WorkflowCustomTaskName, c2 as WorkflowDefinitionDto, c3 as WorkflowDoWhileBaseTask, c4 as WorkflowDoWhileBaseTaskCore, c5 as WorkflowDoWhileBaseTaskInput, c6 as WorkflowDoWhileTask, c7 as WorkflowDoWhileTaskCore, W as WorkflowDto, c8 as WorkflowElement, c9 as WorkflowElementCore, ca as WorkflowElementIdentity, cb as WorkflowElementRef, s as WorkflowExecution, cc as WorkflowExecutionActionTaskData, cd as WorkflowExecutionAwaitTaskData, ce as WorkflowExecutionChatContext, cf as WorkflowExecutionConditionTask, cg as WorkflowExecutionConstructTask, ch as WorkflowExecutionContext, ci as WorkflowExecutionConvertTask, cj as WorkflowExecutionData, ck as WorkflowExecutionDefinitionStatus, cl as WorkflowExecutionDoWhileIterationOutput, cm as WorkflowExecutionDoWhileTaskData, cn as WorkflowExecutionForkJoinTaskData, co as WorkflowExecutionHttpTaskData, cp as WorkflowExecutionInlineBaseTask, cq as WorkflowExecutionInlineTaskData, cr as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cs as WorkflowExecutionLookupTask, ct as WorkflowExecutionNotifyAiAgentTaskData, cu as WorkflowExecutionReasoningTaskData, cv as WorkflowExecutionScriptTask, cw as WorkflowExecutionSimpleBaseTaskData, cx as WorkflowExecutionSimpleTaskData, cy as WorkflowExecutionStatus, cz as WorkflowExecutionSwitchBaseTask, cA as WorkflowExecutionSwitchCaseTask, cB as WorkflowExecutionSwitchTaskData, cC as WorkflowExecutionTaskBase, cD as WorkflowExecutionTaskData, cE as WorkflowExecutionTaskStatus, cF as WorkflowExecutionTerminateTaskData, cG as WorkflowExecutionTicketContext, cH as WorkflowExecutionTransformBaseTask, cI as WorkflowExecutionTransformTaskData, cJ as WorkflowExecutionTriggerData, cK as WorkflowExecutionTriggerDataBase, cL as WorkflowExecutionType, cM as WorkflowExecutionWaitTaskData, cN as WorkflowForEachTask, cO as WorkflowForEachTaskCore, cP as WorkflowForEachTaskInput, cQ as WorkflowForkJoinTask, cR as WorkflowForkJoinTaskCore, cS as WorkflowForkJoinTaskInput, cT as WorkflowFunctionErrorResponseBody, cU as WorkflowGraph, cV as WorkflowHttpRequest, cW as WorkflowHttpTask, cX as WorkflowHttpTaskCore, cY as WorkflowHttpTaskErrorResponseBody, cZ as WorkflowHttpTaskFunctionErrorResponseBody, c_ as WorkflowHttpTaskHeaders, c$ as WorkflowHttpTaskInput, d0 as WorkflowHttpTaskProviderErrorResponseBody, d1 as WorkflowInactivityReason, d2 as WorkflowInlineBaseTask, d3 as WorkflowInlineBaseTaskCore, d4 as WorkflowInlineBaseTaskInput, d5 as WorkflowInlineTask, d6 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d7 as WorkflowItemKind, d8 as WorkflowJoinTask, d9 as WorkflowJoinTaskCore, da as WorkflowJoinTaskInput, q as WorkflowListItemDto, db as WorkflowLookupTask, dc as WorkflowLookupTaskCore, dd as WorkflowLookupTaskDefinitionInputParameters, de as WorkflowLookupTaskInput, df as WorkflowLoopTask, dg as WorkflowLoopTaskCore, dh as WorkflowLoopTaskInput, di as WorkflowManualTrigger, dj as WorkflowManualTriggerCore, dk as WorkflowManualTriggerParameter, dl as WorkflowManualTriggerSubType, dm as WorkflowManualTriggerSubTypeName, dn as WorkflowNode, dp as WorkflowNotifyAiAgentTask, dq as WorkflowNotifyAiAgentTaskCore, dr as WorkflowNotifyAiAgentTaskInput, ds as WorkflowNotifyAiAgentTaskObjectiveInput, dt as WorkflowNotifyAiAgentTaskStrictInput, du as WorkflowOneTimeTrigger, dv as WorkflowOneTimeTriggerCore, dw as WorkflowOneTimeTriggerInput, dx as WorkflowParentRef, dy as WorkflowPlan, dz as WorkflowReasoningOption, dA as WorkflowReasoningOptionAgent, dB as WorkflowReasoningOptionCustomer, dC as WorkflowReasoningTask, dD as WorkflowReasoningTaskCore, dE as WorkflowReasoningTaskInput, dF as WorkflowRecurringTrigger, dG as WorkflowRecurringTriggerCore, dH as WorkflowRecurringTriggerInput, dI as WorkflowResourceBucket, dJ as WorkflowResourceRow, dK as WorkflowResources, dL as WorkflowScriptTask, dM as WorkflowScriptTaskCore, dN as WorkflowScriptTaskInput, dO as WorkflowSimpleBaseTask, dP as WorkflowSimpleBaseTaskCore, dQ as WorkflowSimpleTask, dR as WorkflowSimpleTaskCore, dS as WorkflowSwitchBaseTask, dT as WorkflowSwitchBaseTaskCore, dU as WorkflowSwitchCaseTask, dV as WorkflowSwitchCaseTaskCore, dW as WorkflowSwitchCaseTaskInput, dX as WorkflowSwitchTask, dY as WorkflowSwitchTaskCore, dZ as WorkflowSwitchTaskInput, d_ as WorkflowTask, d$ as WorkflowTaskBase, e0 as WorkflowTaskCore, e1 as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, e2 as WorkflowTaskIntrospection, e3 as WorkflowTaskOf, e4 as WorkflowTaskPlan, e5 as WorkflowTaskType, E as WorkflowTemplate, e6 as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, e7 as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, e8 as WorkflowTerminateTask, e9 as WorkflowTerminateTaskCore, ea as WorkflowTerminateTaskInput, eb as WorkflowTransformBaseTask, ec as WorkflowTransformBaseTaskCore, ed as WorkflowTransformBaseTaskInput, ee as WorkflowTransformTask, ef as WorkflowTransformTaskCore, eg as WorkflowTrigger, eh as WorkflowTriggerBase, ei as WorkflowTriggerCore, ej as WorkflowTriggerDto, ek as WorkflowTriggerIdentity, el as WorkflowTriggerOf, em as WorkflowTriggerPlan, en as WorkflowTriggerType, eo as WorkflowWaitTask, ep as WorkflowWaitTaskCore, eq as WorkflowWaitTaskInput, er as WorkflowWebhook, es as WorkflowWebhookInput, et as WorkflowWebhookManualTrigger, eu as WorkflowWebhookManualTriggerCore, ev as WorkflowWebhookTrigger, ew as WorkflowWebhookTriggerCore, ex as WorkflowWebhookTriggerPure, eB as getWorkflowApiCrmConfig, eH as isFilter, eI as isFilterGroup, eJ as isWorkflowBaseHttpTaskCore, eL as serializeFilters } from './events-Cbu2KbXk.js';
1
+ export { K as AiAgentSkillsCountDto, v as AiAgentSkillsSummaryDto, l as ApiPaginatedListQueryParams, o as ApiPaginatedResult, P as ApiPagination, Q as AwaitTaskCallback, X as BigCommerceOauthCredential, z as CreateCredentialPayload, _ as Credential, $ as CredentialCore, C as CredentialDto, a0 as CredentialInjection, a1 as CredentialStatus, a2 as CredentialType, a3 as CredentialTypeDisplayNameMapping, a6 as Filter, a7 as FilterGroup, a8 as FilterOperator, a9 as FilterValue, aa as Filters, F as FunctionDto, ab as FunctionSchema, ac as GitHubAppCredential, ad as GitHubOauthCredential, ae as HubSpotOauthCredential, x as IntrospectWorkflowTaskPayload, 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, b2 as ShopifyOauthCredential, b5 as SlackOauthCredential, b6 as SortBy, b7 as SortOrder, b8 as Sorting, bh as TRIGGER_REFERENCE_NAME, bj as TextAuthCredential, bw as TextOAuthCredential, B as UpdateCredentialPayload, w as UpsertWorkflowPayload, 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, n as WorkflowApiCrmAuthorization, 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, k as WorkflowCore, p as WorkflowCrmOrganization, m as WorkflowCrmOrganizationsOrderBy, q as WorkflowCrmWorkflowsOrderBy, cC as WorkflowCustomHttpTaskCore, cD as WorkflowCustomTaskName, cE as WorkflowDefinitionDto, cF as WorkflowDoWhileBaseTask, cG as WorkflowDoWhileBaseTaskCore, cH as WorkflowDoWhileBaseTaskInput, cI as WorkflowDoWhileTask, cJ as WorkflowDoWhileTaskCore, W as WorkflowDto, cK as WorkflowElement, cL as WorkflowElementCore, cM as WorkflowElementIdentity, cN as WorkflowElementRef, t as WorkflowExecution, 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, s as WorkflowExecutionListItem, 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, u as WorkflowIntrospection, dK as WorkflowItemKind, dL as WorkflowJoinTask, dM as WorkflowJoinTaskCore, dN as WorkflowJoinTaskInput, r as WorkflowListItemDto, 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, y as WorkflowTaskIntrospectResponse, eE as WorkflowTaskIntrospection, eF as WorkflowTaskOf, eG as WorkflowTaskPlan, eH as WorkflowTaskType, H as WorkflowTemplate, eI as WorkflowTemplateCategory, E as WorkflowTemplateListEntry, eJ as WorkflowTemplateMetadataItem, D as WorkflowTemplateOrderBy, 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, fb as getWorkflowApiCrmConfig, fh as isFilter, fi as isFilterGroup, fj as isWorkflowBaseHttpTaskCore, fn as serializeFilters } from './events-BdPlrYKo.js';
2
2
  import 'utils';
3
3
  import 'json-schema';
4
4
  import 'zod';
@@ -2018,7 +2018,7 @@ var textHelpDeskEventsZods = {
2018
2018
  ticketMessageAdded: import_zod13.z.discriminatedUnion("version", [
2019
2019
  import_zod13.z.object({
2020
2020
  name: import_zod13.z.literal("ticket_message_added" /* TicketMessageAdded */),
2021
- version: import_zod13.z.undefined()
2021
+ version: import_zod13.z.literal("v0").optional()
2022
2022
  }).extend(baseFiltersZod.shape),
2023
2023
  import_zod13.z.object({
2024
2024
  name: import_zod13.z.literal("ticket_message_added" /* TicketMessageAdded */),
@@ -2089,6 +2089,7 @@ var TextLivechatEventNames = /* @__PURE__ */ ((TextLivechatEventNames2) => {
2089
2089
  TextLivechatEventNames2["CustomerLeftChat"] = "customer_left_chat";
2090
2090
  TextLivechatEventNames2["ChatIdle"] = "chat_idle";
2091
2091
  TextLivechatEventNames2["ProductCardEvent"] = "product_card_event";
2092
+ TextLivechatEventNames2["RichMessagePostback"] = "rich_message_postback";
2092
2093
  TextLivechatEventNames2["FormFilled"] = "form_filled";
2093
2094
  TextLivechatEventNames2["CustomFormFilled"] = "custom_form_filled";
2094
2095
  return TextLivechatEventNames2;
@@ -2104,43 +2105,49 @@ var TextLivechatProductCardEventType = /* @__PURE__ */ ((TextLivechatProductCard
2104
2105
  TextLivechatProductCardEventType2["AddToCart"] = "add_to_cart";
2105
2106
  return TextLivechatProductCardEventType2;
2106
2107
  })(TextLivechatProductCardEventType || {});
2108
+ var livechatChatContext = import_zod14.z.object({
2109
+ chat_id: import_zod14.z.string().min(1).optional(),
2110
+ thread_id: import_zod14.z.string().min(1).optional()
2111
+ });
2112
+ var livechatEventContext = import_zod14.z.object({
2113
+ event_id: import_zod14.z.string().min(1).optional()
2114
+ });
2107
2115
  var textLivechatEventsZods = {
2108
2116
  provider: import_zod14.z.literal("text-livechat" /* LiveChat */),
2109
2117
  eventName: import_zod14.z.nativeEnum(TextLivechatEventNames),
2110
2118
  events: {
2111
- chatStarted: integrationEventBase.extend({
2119
+ chatStarted: integrationEventBase.extend(livechatChatContext.shape).extend({
2112
2120
  name: import_zod14.z.literal("chat_started" /* ChatStarted */),
2113
2121
  targetAgentId: import_zod14.z.string().optional()
2114
2122
  }),
2115
- chatEnded: integrationEventBase.extend({
2123
+ chatEnded: integrationEventBase.extend(livechatChatContext.shape).extend({
2116
2124
  name: import_zod14.z.literal("chat_ended" /* ChatEnded */)
2117
2125
  }),
2118
- chatTransferred: integrationEventBase.extend({
2126
+ chatTransferred: integrationEventBase.extend(livechatChatContext.shape).extend({
2119
2127
  name: import_zod14.z.literal("chat_transferred" /* ChatTransferred */),
2120
2128
  targetGroups: import_zod14.z.array(import_zod14.z.number()).optional(),
2121
2129
  targetAgents: import_zod14.z.array(import_zod14.z.string()).optional()
2122
2130
  }),
2123
- chatTagged: integrationEventBase.extend({
2131
+ chatTagged: integrationEventBase.extend(livechatChatContext.shape).extend({
2124
2132
  name: import_zod14.z.literal("chat_tagged" /* ChatTagged */),
2125
- tag: import_zod14.z.string().optional(),
2126
- exact: import_zod14.z.boolean().optional()
2133
+ tag: import_zod14.z.string().optional()
2127
2134
  }),
2128
- chatRated: integrationEventBase.extend({
2135
+ chatRated: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2129
2136
  name: import_zod14.z.literal("chat_rated" /* ChatRated */),
2130
2137
  rating: import_zod14.z.enum(["good", "bad", "all"]).optional()
2131
2138
  }),
2132
- chatCommented: integrationEventBase.extend({
2139
+ chatCommented: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2133
2140
  name: import_zod14.z.literal("chat_commented" /* ChatCommented */)
2134
2141
  }),
2135
2142
  chatMessage: import_zod14.z.discriminatedUnion("version", [
2136
- import_zod14.z.object({
2143
+ integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2137
2144
  name: import_zod14.z.literal("chat_message" /* ChatMessage */),
2138
- version: import_zod14.z.undefined(),
2145
+ version: import_zod14.z.literal("v0").optional(),
2139
2146
  filter: import_zod14.z.string().optional(),
2140
2147
  caseInsensitive: import_zod14.z.boolean().optional(),
2141
2148
  matchWholeWords: import_zod14.z.boolean().optional()
2142
2149
  }),
2143
- import_zod14.z.object({
2150
+ integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2144
2151
  name: import_zod14.z.literal("chat_message" /* ChatMessage */),
2145
2152
  version: import_zod14.z.enum(["v1", "v2"]),
2146
2153
  filters: import_zod14.z.array(import_zod14.z.string()),
@@ -2148,31 +2155,42 @@ var textLivechatEventsZods = {
2148
2155
  matchWholeWords: import_zod14.z.boolean().optional()
2149
2156
  })
2150
2157
  ]),
2151
- userAddedToChat: integrationEventBase.extend({
2158
+ userAddedToChat: integrationEventBase.extend(livechatChatContext.shape).extend({
2152
2159
  name: import_zod14.z.literal("user_added_to_chat" /* UserAddedToChat */),
2153
2160
  userType: import_zod14.z.enum(["agent", "customer"]).optional(),
2154
2161
  targetAgentId: import_zod14.z.string().optional()
2155
2162
  }),
2156
- userRemovedFromChat: integrationEventBase.extend({
2163
+ userRemovedFromChat: integrationEventBase.extend(livechatChatContext.shape).extend({
2157
2164
  name: import_zod14.z.literal("user_removed_from_chat" /* UserRemovedFromChat */)
2158
2165
  }),
2159
- customerLeftChat: integrationEventBase.extend({
2166
+ customerLeftChat: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2160
2167
  name: import_zod14.z.literal("customer_left_chat" /* CustomerLeftChat */),
2161
2168
  reasons: import_zod14.z.array(import_zod14.z.nativeEnum(CustomerLeftChatReason)).optional()
2162
2169
  }),
2163
- chatIdle: integrationEventBase.extend({
2170
+ chatIdle: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2164
2171
  name: import_zod14.z.literal("chat_idle" /* ChatIdle */)
2165
2172
  }),
2166
- productCardEvent: integrationEventBase.extend({
2173
+ productCardEvent: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2167
2174
  name: import_zod14.z.literal("product_card_event" /* ProductCardEvent */),
2168
2175
  type: import_zod14.z.nativeEnum(TextLivechatProductCardEventType),
2169
2176
  product_id: import_zod14.z.string().optional()
2170
2177
  }),
2171
- formFilled: integrationEventBase.extend({
2178
+ richMessagePostback: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2179
+ name: import_zod14.z.literal("rich_message_postback" /* RichMessagePostback */),
2180
+ postbacks: import_zod14.z.union([
2181
+ import_zod14.z.array(import_zod14.z.string().min(1)),
2182
+ import_zod14.z.record(import_zod14.z.string().min(1), import_zod14.z.string().min(1))
2183
+ ]).refine((input) => {
2184
+ const ids = Array.isArray(input) ? input : Object.values(input);
2185
+ return ids.length > 0 && new Set(ids).size === ids.length;
2186
+ }, "Postbacks must be nonempty and IDs must be unique"),
2187
+ user_ids: import_zod14.z.array(import_zod14.z.string().min(1)).min(1).optional()
2188
+ }),
2189
+ formFilled: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2172
2190
  name: import_zod14.z.literal("form_filled" /* FormFilled */),
2173
2191
  form_id: import_zod14.z.string().optional()
2174
2192
  }),
2175
- customFormFilled: integrationEventBase.extend({
2193
+ customFormFilled: integrationEventBase.extend(livechatEventContext.shape).extend(livechatChatContext.shape).extend({
2176
2194
  name: import_zod14.z.literal("custom_form_filled" /* CustomFormFilled */),
2177
2195
  form_id: import_zod14.z.string().optional()
2178
2196
  })
@@ -2191,6 +2209,7 @@ var textLivechatEventsZods = {
2191
2209
  this.events.customerLeftChat,
2192
2210
  this.events.chatIdle,
2193
2211
  this.events.productCardEvent,
2212
+ this.events.richMessagePostback,
2194
2213
  this.events.formFilled,
2195
2214
  this.events.customFormFilled
2196
2215
  ]);
@@ -29,7 +29,7 @@ import {
29
29
  isFilterGroup,
30
30
  isWorkflowBaseHttpTaskCore,
31
31
  serializeFilters
32
- } from "./chunk-QGX7NFQO.mjs";
32
+ } from "./chunk-XVLSQUPO.mjs";
33
33
  export {
34
34
  CredentialStatus,
35
35
  CredentialType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "5.11.1",
3
+ "version": "5.12.0",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -36,9 +36,9 @@
36
36
  "eslint": "^9.39.1",
37
37
  "tsup": "^8.5.1",
38
38
  "typescript": "^5.1.6",
39
- "utils": "0.3.5",
40
39
  "tsconfig": "0.2.1",
41
- "eslint-config-custom": "0.0.15"
40
+ "eslint-config-custom": "0.0.15",
41
+ "utils": "0.4.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup",