@livechat/developer-studio-api 5.7.0 → 5.10.1

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
@@ -117,6 +117,7 @@ __export(src_exports, {
117
117
  TextApiError: () => TextApiError,
118
118
  TextBillingApiError: () => TextBillingApiError,
119
119
  TextCustomerEventNames: () => TextCustomerEventNames,
120
+ TextCustomerSegmentType: () => TextCustomerSegmentType,
120
121
  TextHelpDeskEventNames: () => TextHelpDeskEventNames,
121
122
  TextLivechatEventNames: () => TextLivechatEventNames,
122
123
  TextLivechatProductCardEventType: () => TextLivechatProductCardEventType,
@@ -136,6 +137,7 @@ __export(src_exports, {
136
137
  WorkflowExecutionStatus: () => WorkflowExecutionStatus,
137
138
  WorkflowExecutionTaskStatus: () => WorkflowExecutionTaskStatus,
138
139
  WorkflowExecutionType: () => WorkflowExecutionType,
140
+ WorkflowInactivityReason: () => WorkflowInactivityReason,
139
141
  WorkflowItemKind: () => WorkflowItemKind,
140
142
  WorkflowManualTriggerSubType: () => WorkflowManualTriggerSubType,
141
143
  WorkflowManualTriggerSubTypeName: () => WorkflowManualTriggerSubTypeName,
@@ -872,8 +874,16 @@ var import_zod7 = require("zod");
872
874
  var TextCustomerEventNames = /* @__PURE__ */ ((TextCustomerEventNames2) => {
873
875
  TextCustomerEventNames2["EmailSet"] = "customer_email_set";
874
876
  TextCustomerEventNames2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
877
+ TextCustomerEventNames2["SegmentAdded"] = "segment_added";
878
+ TextCustomerEventNames2["SegmentRemoved"] = "segment_removed";
875
879
  return TextCustomerEventNames2;
876
880
  })(TextCustomerEventNames || {});
881
+ var TextCustomerSegmentType = /* @__PURE__ */ ((TextCustomerSegmentType2) => {
882
+ TextCustomerSegmentType2["Lead"] = "lead";
883
+ TextCustomerSegmentType2["QualifiedLead"] = "qualified_lead";
884
+ TextCustomerSegmentType2["Custom"] = "custom";
885
+ return TextCustomerSegmentType2;
886
+ })(TextCustomerSegmentType || {});
877
887
  var textCustomerEventsZods = {
878
888
  eventName: import_zod7.z.nativeEnum(TextCustomerEventNames),
879
889
  events: {
@@ -889,12 +899,22 @@ var textCustomerEventsZods = {
889
899
  to: import_zod7.z.union([import_zod7.z.string(), import_zod7.z.number(), import_zod7.z.boolean()]).nullish()
890
900
  })
891
901
  ).optional()
902
+ }),
903
+ segmentAdded: integrationEventBase.extend({
904
+ name: import_zod7.z.literal("segment_added" /* SegmentAdded */),
905
+ segment_type: import_zod7.z.nativeEnum(TextCustomerSegmentType)
906
+ }),
907
+ segmentRemoved: integrationEventBase.extend({
908
+ name: import_zod7.z.literal("segment_removed" /* SegmentRemoved */),
909
+ segment_type: import_zod7.z.nativeEnum(TextCustomerSegmentType)
892
910
  })
893
911
  },
894
912
  get event() {
895
913
  return import_zod7.z.discriminatedUnion("name", [
896
914
  this.events.emailSet,
897
- this.events.propertiesValuesUpdated
915
+ this.events.propertiesValuesUpdated,
916
+ this.events.segmentAdded,
917
+ this.events.segmentRemoved
898
918
  ]);
899
919
  },
900
920
  get subscribe() {
@@ -1133,7 +1153,7 @@ var textLivechatEventsZods = {
1133
1153
  }),
1134
1154
  import_zod9.z.object({
1135
1155
  name: import_zod9.z.literal("chat_message" /* ChatMessage */),
1136
- version: import_zod9.z.literal("v1"),
1156
+ version: import_zod9.z.enum(["v1", "v2"]),
1137
1157
  filters: import_zod9.z.array(import_zod9.z.string()),
1138
1158
  caseInsensitive: import_zod9.z.boolean().optional(),
1139
1159
  matchWholeWords: import_zod9.z.boolean().optional()
@@ -1303,7 +1323,9 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
1303
1323
  const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
1304
1324
  const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
1305
1325
  state: serializedState,
1306
- sessionId
1326
+ sessionId,
1327
+ ds: config.ds,
1328
+ theme: config.theme
1307
1329
  }, trigger), context));
1308
1330
  const isNotFullySupportedProvider = ["shopify" /* Shopify */].includes(
1309
1331
  name
@@ -4925,6 +4947,12 @@ var WorkflowManualTriggerSubTypeName = {
4925
4947
  [WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
4926
4948
  };
4927
4949
 
4950
+ // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
4951
+ var WorkflowInactivityReason = /* @__PURE__ */ ((WorkflowInactivityReason2) => {
4952
+ WorkflowInactivityReason2["OwnerRemoved"] = "owner_removed";
4953
+ return WorkflowInactivityReason2;
4954
+ })(WorkflowInactivityReason || {});
4955
+
4928
4956
  // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflowElement.ts
4929
4957
  var TRIGGER_REFERENCE_NAME = "trigger";
4930
4958
 
@@ -4991,6 +5019,7 @@ var getUrl5 = (segments = [], version) => buildUrlFromSegments(
4991
5019
  );
4992
5020
  var urls7 = {
4993
5021
  getWorkflows: (queryParams) => enrichUrlWithQueryParams(getUrl5([], "v1.0" /* V1 */), queryParams),
5022
+ getAiAgentSkillsSummary: () => getUrl5(["ai_agent", "skills", "summary"], "v1.0" /* V1 */),
4994
5023
  createWorkflow: () => getUrl5(),
4995
5024
  getWorkflow: (id) => getUrl5([id], "v1.0" /* V1 */),
4996
5025
  updateWorkflow: (id) => getUrl5([id]),
@@ -5024,6 +5053,17 @@ var textPlatformWorkflowsApi = {
5024
5053
  return workflows;
5025
5054
  });
5026
5055
  },
5056
+ getAiAgentSkillsSummary(authorization) {
5057
+ return __async(this, null, function* () {
5058
+ const { data } = yield textClientInstance.get(
5059
+ urls7.getAiAgentSkillsSummary(),
5060
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
5061
+ ensureAuthorizationToken: true
5062
+ }))
5063
+ );
5064
+ return data;
5065
+ });
5066
+ },
5027
5067
  getWorkflow(workflowId, version, authorization) {
5028
5068
  return __async(this, null, function* () {
5029
5069
  const searchParams = new URLSearchParams();
@@ -5220,6 +5260,25 @@ var textResourcerApi = {
5220
5260
  });
5221
5261
  });
5222
5262
  },
5263
+ createResource(resource, credentialId, payload, authorization) {
5264
+ return __async(this, null, function* () {
5265
+ const config = getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
5266
+ ensureAuthorizationToken: true
5267
+ }));
5268
+ return textClientInstance.post(urls8.getResource(resource), payload, __spreadProps(__spreadValues({}, config), {
5269
+ headers: __spreadProps(__spreadValues({}, config.headers), {
5270
+ "X-Credential-ID": credentialId
5271
+ })
5272
+ })).catch((error) => {
5273
+ if (error instanceof TextApiError) {
5274
+ throw error.withCustomMessage(
5275
+ `Couldn't create resourcer resource. [${error.message}]`
5276
+ );
5277
+ }
5278
+ throw error;
5279
+ });
5280
+ });
5281
+ },
5223
5282
  listSchema(credentialId, authorization) {
5224
5283
  return __async(this, null, function* () {
5225
5284
  const config = getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
@@ -8634,7 +8693,7 @@ var livechatBotsTemplatesApi = {
8634
8693
  };
8635
8694
 
8636
8695
  // src/apis/products/livechat/configuration/properties/api.ts
8637
- var API_BASE_URL = "/v3.4/configuration/action";
8696
+ var API_BASE_URL = "/v3.6/configuration/action";
8638
8697
  var livechatPropertyApi = {
8639
8698
  getProperties(clientId, isAgent, authorization) {
8640
8699
  return __async(this, null, function* () {
@@ -9721,6 +9780,8 @@ var import_zod12 = require("zod");
9721
9780
  var CdpCustomerEventType = /* @__PURE__ */ ((CdpCustomerEventType2) => {
9722
9781
  CdpCustomerEventType2["EmailSet"] = "customer_email_set";
9723
9782
  CdpCustomerEventType2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
9783
+ CdpCustomerEventType2["SegmentAdded"] = "segment_added";
9784
+ CdpCustomerEventType2["SegmentRemoved"] = "segment_removed";
9724
9785
  return CdpCustomerEventType2;
9725
9786
  })(CdpCustomerEventType || {});
9726
9787
  var customerMetadataZod = import_zod12.z.object({
@@ -9728,6 +9789,11 @@ var customerMetadataZod = import_zod12.z.object({
9728
9789
  customer_id: import_zod12.z.string(),
9729
9790
  master_id: import_zod12.z.string()
9730
9791
  });
9792
+ var segmentMembershipDataZod = customerMetadataZod.extend({
9793
+ segment_id: import_zod12.z.number(),
9794
+ segment_type: import_zod12.z.string(),
9795
+ membership_last_updated_at: import_zod12.z.string()
9796
+ }).passthrough();
9731
9797
  var cdpCustomerEventMessageZod = import_zod12.z.discriminatedUnion("type", [
9732
9798
  import_zod12.z.object({
9733
9799
  id: import_zod12.z.string(),
@@ -9749,6 +9815,16 @@ var cdpCustomerEventMessageZod = import_zod12.z.discriminatedUnion("type", [
9749
9815
  }).passthrough()
9750
9816
  )
9751
9817
  }).passthrough()
9818
+ }),
9819
+ import_zod12.z.object({
9820
+ id: import_zod12.z.string(),
9821
+ type: import_zod12.z.literal("segment_added" /* SegmentAdded */),
9822
+ data: segmentMembershipDataZod
9823
+ }),
9824
+ import_zod12.z.object({
9825
+ id: import_zod12.z.string(),
9826
+ type: import_zod12.z.literal("segment_removed" /* SegmentRemoved */),
9827
+ data: segmentMembershipDataZod
9752
9828
  })
9753
9829
  ]);
9754
9830
 
@@ -10027,6 +10103,7 @@ function initApi(config, tokens) {
10027
10103
  TextApiError,
10028
10104
  TextBillingApiError,
10029
10105
  TextCustomerEventNames,
10106
+ TextCustomerSegmentType,
10030
10107
  TextHelpDeskEventNames,
10031
10108
  TextLivechatEventNames,
10032
10109
  TextLivechatProductCardEventType,
@@ -10046,6 +10123,7 @@ function initApi(config, tokens) {
10046
10123
  WorkflowExecutionStatus,
10047
10124
  WorkflowExecutionTaskStatus,
10048
10125
  WorkflowExecutionType,
10126
+ WorkflowInactivityReason,
10049
10127
  WorkflowItemKind,
10050
10128
  WorkflowManualTriggerSubType,
10051
10129
  WorkflowManualTriggerSubTypeName,
package/dist/index.mjs CHANGED
@@ -49,6 +49,7 @@ import {
49
49
  TextApiError,
50
50
  TextBillingApiError,
51
51
  TextCustomerEventNames,
52
+ TextCustomerSegmentType,
52
53
  TextHelpDeskEventNames,
53
54
  TextLivechatEventNames,
54
55
  TextLivechatProductCardEventType,
@@ -68,6 +69,7 @@ import {
68
69
  WorkflowExecutionStatus,
69
70
  WorkflowExecutionTaskStatus,
70
71
  WorkflowExecutionType,
72
+ WorkflowInactivityReason,
71
73
  WorkflowItemKind,
72
74
  WorkflowManualTriggerSubType,
73
75
  WorkflowManualTriggerSubTypeName,
@@ -199,7 +201,7 @@ import {
199
201
  updateWorkflowsClient,
200
202
  vercelClientInstance,
201
203
  workflowsClientInstance
202
- } from "./chunk-GND2D76F.mjs";
204
+ } from "./chunk-BZVBB5BG.mjs";
203
205
  export {
204
206
  ACCOUNT_ID_HEADER,
205
207
  API_NOTIFICATIONS,
@@ -251,6 +253,7 @@ export {
251
253
  TextApiError,
252
254
  TextBillingApiError,
253
255
  TextCustomerEventNames,
256
+ TextCustomerSegmentType,
254
257
  TextHelpDeskEventNames,
255
258
  TextLivechatEventNames,
256
259
  TextLivechatProductCardEventType,
@@ -270,6 +273,7 @@ export {
270
273
  WorkflowExecutionStatus,
271
274
  WorkflowExecutionTaskStatus,
272
275
  WorkflowExecutionType,
276
+ WorkflowInactivityReason,
273
277
  WorkflowItemKind,
274
278
  WorkflowManualTriggerSubType,
275
279
  WorkflowManualTriggerSubTypeName,
@@ -1,4 +1,4 @@
1
- export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, K as ApiPagination, L as AwaitTaskCallback, O as BigCommerceOauthCredential, w as CreateCredentialPayload, P as Credential, Q as CredentialCore, C as CredentialDto, R as CredentialInjection, V as CredentialStatus, X as CredentialType, Y as CredentialTypeDisplayNameMapping, _ as Filter, $ as FilterGroup, a0 as FilterOperator, a1 as FilterValue, a2 as Filters, F as FunctionDto, a3 as FunctionSchema, a4 as GitHubAppCredential, a5 as GitHubOauthCredential, a6 as HubSpotOauthCredential, u as IntrospectWorkflowTaskPayload, am as MailchimpOauthCredential, an as NeonOauthCredential, ao as NetlifyOauthCredential, ap as OAuthCredential, aq as OauthCredentialGrantType, ar as OpenaiCredential, as as PlanetScaleOauthCredential, at as PureHttpRequest, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, x as UpdateCredentialPayload, t as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerConfiguration, be as WorkflowAgentTriggerCore, bf as WorkflowAgentTriggerInput, bg as WorkflowAgentTriggerSubType, bh as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bi as WorkflowAwaitTask, bj as WorkflowAwaitTaskCore, bk as WorkflowAwaitTaskInput, bl as WorkflowBaseHttpTaskCore, bm as WorkflowBranch, bn as WorkflowBundle, bo as WorkflowConditionTask, bp as WorkflowConditionTaskCondition, bq as WorkflowConditionTaskCore, br as WorkflowConditionTaskFieldType, bs as WorkflowConditionTaskInput, bt as WorkflowConditionTaskLogic, bu as WorkflowConditionTaskOperator, bv as WorkflowConditionTaskOperatorGroup, bw as WorkflowConditionTaskOperatorValueType, bx as WorkflowConstructArrayItem, by as WorkflowConstructObjectField, bz as WorkflowConstructOutputType, bA as WorkflowConstructTask, bB as WorkflowConstructTaskCore, bC as WorkflowConstructTaskDefinitionInputParameters, bD as WorkflowConstructTaskInput, bE as WorkflowConstructTaskInputArray, bF as WorkflowConstructTaskInputObject, bG as WorkflowConvertTask, bH as WorkflowConvertTaskCore, bI as WorkflowConvertTaskDefinitionInputParameters, bJ as WorkflowConvertTaskInput, bK as WorkflowConvertTaskInputFilter, bL as WorkflowConvertTaskInputJoin, bM as WorkflowConvertTaskInputLookup, bN as WorkflowConvertTaskInputPickOmit, bO as WorkflowConvertTaskInputPluck, bP as WorkflowConvertTaskInputReducer, bQ as WorkflowConvertTaskInputReplace, bR as WorkflowConvertTaskInputSimple, bS as WorkflowConvertTaskInputSort, bT as WorkflowConvertTaskInputSplit, bU as WorkflowConvertTaskInputSum, bV as WorkflowConvertTaskTransformer, i as WorkflowCore, n as WorkflowCrmOrganization, k as WorkflowCrmOrganizationsOrderBy, o as WorkflowCrmWorkflowsOrderBy, bW as WorkflowCustomHttpTaskCore, bX as WorkflowCustomTaskName, bY as WorkflowDefinitionDto, bZ as WorkflowDoWhileBaseTask, b_ as WorkflowDoWhileBaseTaskCore, b$ as WorkflowDoWhileBaseTaskInput, c0 as WorkflowDoWhileTask, c1 as WorkflowDoWhileTaskCore, W as WorkflowDto, c2 as WorkflowElement, c3 as WorkflowElementCore, c4 as WorkflowElementIdentity, c5 as WorkflowElementRef, r as WorkflowExecution, c6 as WorkflowExecutionActionTaskData, c7 as WorkflowExecutionAwaitTaskData, c8 as WorkflowExecutionChatContext, c9 as WorkflowExecutionConditionTask, ca as WorkflowExecutionConstructTask, cb as WorkflowExecutionContext, cc as WorkflowExecutionConvertTask, cd as WorkflowExecutionData, ce as WorkflowExecutionDefinitionStatus, cf as WorkflowExecutionDoWhileIterationOutput, cg as WorkflowExecutionDoWhileTaskData, ch as WorkflowExecutionForkJoinTaskData, ci as WorkflowExecutionHttpTaskData, cj as WorkflowExecutionInlineBaseTask, ck as WorkflowExecutionInlineTaskData, cl as WorkflowExecutionJoinTaskData, q as WorkflowExecutionListItem, cm as WorkflowExecutionNotifyAiAgentTaskData, cn as WorkflowExecutionReasoningTaskData, co as WorkflowExecutionScriptTask, cp as WorkflowExecutionSimpleBaseTaskData, cq as WorkflowExecutionSimpleTaskData, cr as WorkflowExecutionStatus, cs as WorkflowExecutionSwitchBaseTask, ct as WorkflowExecutionSwitchCaseTask, cu as WorkflowExecutionSwitchTaskData, cv as WorkflowExecutionTaskBase, cw as WorkflowExecutionTaskData, cx as WorkflowExecutionTaskStatus, cy as WorkflowExecutionTerminateTaskData, cz as WorkflowExecutionTicketContext, cA as WorkflowExecutionTransformBaseTask, cB as WorkflowExecutionTransformTaskData, cC as WorkflowExecutionTriggerData, cD as WorkflowExecutionTriggerDataBase, cE as WorkflowExecutionType, cF as WorkflowExecutionWaitTaskData, cG as WorkflowForEachTask, cH as WorkflowForEachTaskCore, cI as WorkflowForEachTaskInput, cJ as WorkflowForkJoinTask, cK as WorkflowForkJoinTaskCore, cL as WorkflowForkJoinTaskInput, cM as WorkflowFunctionErrorResponseBody, cN as WorkflowGraph, cO as WorkflowHttpRequest, cP as WorkflowHttpTask, cQ as WorkflowHttpTaskCore, cR as WorkflowHttpTaskErrorResponseBody, cS as WorkflowHttpTaskFunctionErrorResponseBody, cT as WorkflowHttpTaskHeaders, cU as WorkflowHttpTaskInput, cV as WorkflowHttpTaskProviderErrorResponseBody, cW as WorkflowInlineBaseTask, cX as WorkflowInlineBaseTaskCore, cY as WorkflowInlineBaseTaskInput, cZ as WorkflowInlineTask, c_ as WorkflowInlineTaskCore, s as WorkflowIntrospection, c$ as WorkflowItemKind, d0 as WorkflowJoinTask, d1 as WorkflowJoinTaskCore, d2 as WorkflowJoinTaskInput, p as WorkflowListItemDto, d3 as WorkflowLoopTask, d4 as WorkflowLoopTaskCore, d5 as WorkflowLoopTaskInput, d6 as WorkflowManualTrigger, d7 as WorkflowManualTriggerCore, d8 as WorkflowManualTriggerParameter, d9 as WorkflowManualTriggerSubType, da as WorkflowManualTriggerSubTypeName, db as WorkflowNode, dc as WorkflowNotifyAiAgentTask, dd as WorkflowNotifyAiAgentTaskCore, de as WorkflowNotifyAiAgentTaskInput, df as WorkflowNotifyAiAgentTaskObjectiveInput, dg as WorkflowNotifyAiAgentTaskStrictInput, dh as WorkflowOneTimeTrigger, di as WorkflowOneTimeTriggerCore, dj as WorkflowOneTimeTriggerInput, dk as WorkflowParentRef, dl as WorkflowPlan, dm as WorkflowPlanTask, dn as WorkflowPlanTrigger, dp as WorkflowReasoningOption, dq as WorkflowReasoningOptionAgent, dr as WorkflowReasoningOptionCustomer, ds as WorkflowReasoningTask, dt as WorkflowReasoningTaskCore, du as WorkflowReasoningTaskInput, dv as WorkflowRecurringTrigger, dw as WorkflowRecurringTriggerCore, dx as WorkflowRecurringTriggerInput, dy as WorkflowScriptTask, dz as WorkflowScriptTaskCore, dA as WorkflowScriptTaskInput, dB as WorkflowSimpleBaseTask, dC as WorkflowSimpleBaseTaskCore, dD as WorkflowSimpleTask, dE as WorkflowSimpleTaskCore, dF as WorkflowSwitchBaseTask, dG as WorkflowSwitchBaseTaskCore, dH as WorkflowSwitchCaseTask, dI as WorkflowSwitchCaseTaskCore, dJ as WorkflowSwitchCaseTaskInput, dK as WorkflowSwitchTask, dL as WorkflowSwitchTaskCore, dM as WorkflowSwitchTaskInput, dN as WorkflowTask, dO as WorkflowTaskBase, dP as WorkflowTaskCore, dQ as WorkflowTaskIdentity, v as WorkflowTaskIntrospectResponse, dR as WorkflowTaskIntrospection, dS as WorkflowTaskOf, dT as WorkflowTaskType, B as WorkflowTemplate, dU as WorkflowTemplateCategory, z as WorkflowTemplateListEntry, dV as WorkflowTemplateMetadataItem, y as WorkflowTemplateOrderBy, dW as WorkflowTerminateTask, dX as WorkflowTerminateTaskCore, dY as WorkflowTerminateTaskInput, dZ as WorkflowTransformBaseTask, d_ as WorkflowTransformBaseTaskCore, d$ as WorkflowTransformBaseTaskInput, e0 as WorkflowTransformTask, e1 as WorkflowTransformTaskCore, e2 as WorkflowTrigger, e3 as WorkflowTriggerBase, e4 as WorkflowTriggerCore, e5 as WorkflowTriggerDto, e6 as WorkflowTriggerIdentity, e7 as WorkflowTriggerOf, e8 as WorkflowTriggerType, e9 as WorkflowWaitTask, ea as WorkflowWaitTaskCore, eb as WorkflowWaitTaskInput, ec as WorkflowWebhook, ed as WorkflowWebhookInput, ee as WorkflowWebhookManualTrigger, ef as WorkflowWebhookManualTriggerCore, eg as WorkflowWebhookTrigger, eh as WorkflowWebhookTriggerCore, ei as WorkflowWebhookTriggerPure, em as getWorkflowApiCrmConfig, es as isFilter, et as isFilterGroup, eu as isWorkflowBaseHttpTaskCore, ew as serializeFilters } from './events-yWjeW2vl.mjs';
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 WorkflowConvertTaskInputFilter, bO as WorkflowConvertTaskInputJoin, bP as WorkflowConvertTaskInputLookup, bQ as WorkflowConvertTaskInputPickOmit, bR as WorkflowConvertTaskInputPluck, bS as WorkflowConvertTaskInputReducer, bT as WorkflowConvertTaskInputReplace, bU as WorkflowConvertTaskInputSimple, bV as WorkflowConvertTaskInputSort, bW as WorkflowConvertTaskInputSplit, bX as WorkflowConvertTaskInputSum, bY as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, bZ as WorkflowCustomHttpTaskCore, b_ as WorkflowCustomTaskName, b$ as WorkflowDefinitionDto, c0 as WorkflowDoWhileBaseTask, c1 as WorkflowDoWhileBaseTaskCore, c2 as WorkflowDoWhileBaseTaskInput, c3 as WorkflowDoWhileTask, c4 as WorkflowDoWhileTaskCore, W as WorkflowDto, c5 as WorkflowElement, c6 as WorkflowElementCore, c7 as WorkflowElementIdentity, c8 as WorkflowElementRef, s as WorkflowExecution, c9 as WorkflowExecutionActionTaskData, ca as WorkflowExecutionAwaitTaskData, cb as WorkflowExecutionChatContext, cc as WorkflowExecutionConditionTask, cd as WorkflowExecutionConstructTask, ce as WorkflowExecutionContext, cf as WorkflowExecutionConvertTask, cg as WorkflowExecutionData, ch as WorkflowExecutionDefinitionStatus, ci as WorkflowExecutionDoWhileIterationOutput, cj as WorkflowExecutionDoWhileTaskData, ck as WorkflowExecutionForkJoinTaskData, cl as WorkflowExecutionHttpTaskData, cm as WorkflowExecutionInlineBaseTask, cn as WorkflowExecutionInlineTaskData, co as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cp as WorkflowExecutionNotifyAiAgentTaskData, cq as WorkflowExecutionReasoningTaskData, cr as WorkflowExecutionScriptTask, cs as WorkflowExecutionSimpleBaseTaskData, ct as WorkflowExecutionSimpleTaskData, cu as WorkflowExecutionStatus, cv as WorkflowExecutionSwitchBaseTask, cw as WorkflowExecutionSwitchCaseTask, cx as WorkflowExecutionSwitchTaskData, cy as WorkflowExecutionTaskBase, cz as WorkflowExecutionTaskData, cA as WorkflowExecutionTaskStatus, cB as WorkflowExecutionTerminateTaskData, cC as WorkflowExecutionTicketContext, cD as WorkflowExecutionTransformBaseTask, cE as WorkflowExecutionTransformTaskData, cF as WorkflowExecutionTriggerData, cG as WorkflowExecutionTriggerDataBase, cH as WorkflowExecutionType, cI as WorkflowExecutionWaitTaskData, cJ as WorkflowForEachTask, cK as WorkflowForEachTaskCore, cL as WorkflowForEachTaskInput, cM as WorkflowForkJoinTask, cN as WorkflowForkJoinTaskCore, cO as WorkflowForkJoinTaskInput, cP as WorkflowFunctionErrorResponseBody, cQ as WorkflowGraph, cR as WorkflowHttpRequest, cS as WorkflowHttpTask, cT as WorkflowHttpTaskCore, cU as WorkflowHttpTaskErrorResponseBody, cV as WorkflowHttpTaskFunctionErrorResponseBody, cW as WorkflowHttpTaskHeaders, cX as WorkflowHttpTaskInput, cY as WorkflowHttpTaskProviderErrorResponseBody, cZ as WorkflowInactivityReason, c_ as WorkflowInlineBaseTask, c$ as WorkflowInlineBaseTaskCore, d0 as WorkflowInlineBaseTaskInput, d1 as WorkflowInlineTask, d2 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d3 as WorkflowItemKind, d4 as WorkflowJoinTask, d5 as WorkflowJoinTaskCore, d6 as WorkflowJoinTaskInput, q as WorkflowListItemDto, d7 as WorkflowLoopTask, d8 as WorkflowLoopTaskCore, d9 as WorkflowLoopTaskInput, da as WorkflowManualTrigger, db as WorkflowManualTriggerCore, dc as WorkflowManualTriggerParameter, dd as WorkflowManualTriggerSubType, de as WorkflowManualTriggerSubTypeName, df as WorkflowNode, dg as WorkflowNotifyAiAgentTask, dh as WorkflowNotifyAiAgentTaskCore, di as WorkflowNotifyAiAgentTaskInput, dj as WorkflowNotifyAiAgentTaskObjectiveInput, dk as WorkflowNotifyAiAgentTaskStrictInput, dl as WorkflowOneTimeTrigger, dm as WorkflowOneTimeTriggerCore, dn as WorkflowOneTimeTriggerInput, dp as WorkflowParentRef, dq as WorkflowPlan, dr as WorkflowReasoningOption, ds as WorkflowReasoningOptionAgent, dt as WorkflowReasoningOptionCustomer, du as WorkflowReasoningTask, dv as WorkflowReasoningTaskCore, dw as WorkflowReasoningTaskInput, dx as WorkflowRecurringTrigger, dy as WorkflowRecurringTriggerCore, dz as WorkflowRecurringTriggerInput, dA as WorkflowScriptTask, dB as WorkflowScriptTaskCore, dC as WorkflowScriptTaskInput, dD as WorkflowSimpleBaseTask, dE as WorkflowSimpleBaseTaskCore, dF as WorkflowSimpleTask, dG as WorkflowSimpleTaskCore, dH as WorkflowSwitchBaseTask, dI as WorkflowSwitchBaseTaskCore, dJ as WorkflowSwitchCaseTask, dK as WorkflowSwitchCaseTaskCore, dL as WorkflowSwitchCaseTaskInput, dM as WorkflowSwitchTask, dN as WorkflowSwitchTaskCore, dO as WorkflowSwitchTaskInput, dP as WorkflowTask, dQ as WorkflowTaskBase, dR as WorkflowTaskCore, dS as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, dT as WorkflowTaskIntrospection, dU as WorkflowTaskOf, dV as WorkflowTaskPlan, dW as WorkflowTaskType, E as WorkflowTemplate, dX as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, dY as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, dZ as WorkflowTerminateTask, d_ as WorkflowTerminateTaskCore, d$ as WorkflowTerminateTaskInput, e0 as WorkflowTransformBaseTask, e1 as WorkflowTransformBaseTaskCore, e2 as WorkflowTransformBaseTaskInput, e3 as WorkflowTransformTask, e4 as WorkflowTransformTaskCore, e5 as WorkflowTrigger, e6 as WorkflowTriggerBase, e7 as WorkflowTriggerCore, e8 as WorkflowTriggerDto, e9 as WorkflowTriggerIdentity, ea as WorkflowTriggerOf, eb as WorkflowTriggerPlan, ec as WorkflowTriggerType, ed as WorkflowWaitTask, ee as WorkflowWaitTaskCore, ef as WorkflowWaitTaskInput, eg as WorkflowWebhook, eh as WorkflowWebhookInput, ei as WorkflowWebhookManualTrigger, ej as WorkflowWebhookManualTriggerCore, ek as WorkflowWebhookTrigger, el as WorkflowWebhookTriggerCore, em as WorkflowWebhookTriggerPure, eq as getWorkflowApiCrmConfig, ew as isFilter, ex as isFilterGroup, ey as isWorkflowBaseHttpTaskCore, eA as serializeFilters } from './events-00ZFjf-6.mjs';
2
2
  import 'utils';
3
3
  import 'json-schema';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { j as ApiPaginatedListQueryParams, m as ApiPaginatedResult, K as ApiPagination, L as AwaitTaskCallback, O as BigCommerceOauthCredential, w as CreateCredentialPayload, P as Credential, Q as CredentialCore, C as CredentialDto, R as CredentialInjection, V as CredentialStatus, X as CredentialType, Y as CredentialTypeDisplayNameMapping, _ as Filter, $ as FilterGroup, a0 as FilterOperator, a1 as FilterValue, a2 as Filters, F as FunctionDto, a3 as FunctionSchema, a4 as GitHubAppCredential, a5 as GitHubOauthCredential, a6 as HubSpotOauthCredential, u as IntrospectWorkflowTaskPayload, am as MailchimpOauthCredential, an as NeonOauthCredential, ao as NetlifyOauthCredential, ap as OAuthCredential, aq as OauthCredentialGrantType, ar as OpenaiCredential, as as PlanetScaleOauthCredential, at as PureHttpRequest, au as SalesforceOauthCredential, ax as ShopifyOauthCredential, aA as SlackOauthCredential, aB as SortBy, aC as SortOrder, aD as Sorting, aM as TRIGGER_REFERENCE_NAME, aO as TextAuthCredential, aX as TextOAuthCredential, x as UpdateCredentialPayload, t as UpsertWorkflowPayload, b4 as VercelOauthCredential, b5 as Workflow, b6 as WorkflowActionTask, b7 as WorkflowActionTaskCore, b8 as WorkflowActionTaskErrorOutput, b9 as WorkflowActionTaskInput, ba as WorkflowActionTaskInputParameters, bb as WorkflowActionTaskSuccessOutput, bc as WorkflowAgentTrigger, bd as WorkflowAgentTriggerConfiguration, be as WorkflowAgentTriggerCore, bf as WorkflowAgentTriggerInput, bg as WorkflowAgentTriggerSubType, bh as WorkflowAggregate, l as WorkflowApiCrmAuthorization, bi as WorkflowAwaitTask, bj as WorkflowAwaitTaskCore, bk as WorkflowAwaitTaskInput, bl as WorkflowBaseHttpTaskCore, bm as WorkflowBranch, bn as WorkflowBundle, bo as WorkflowConditionTask, bp as WorkflowConditionTaskCondition, bq as WorkflowConditionTaskCore, br as WorkflowConditionTaskFieldType, bs as WorkflowConditionTaskInput, bt as WorkflowConditionTaskLogic, bu as WorkflowConditionTaskOperator, bv as WorkflowConditionTaskOperatorGroup, bw as WorkflowConditionTaskOperatorValueType, bx as WorkflowConstructArrayItem, by as WorkflowConstructObjectField, bz as WorkflowConstructOutputType, bA as WorkflowConstructTask, bB as WorkflowConstructTaskCore, bC as WorkflowConstructTaskDefinitionInputParameters, bD as WorkflowConstructTaskInput, bE as WorkflowConstructTaskInputArray, bF as WorkflowConstructTaskInputObject, bG as WorkflowConvertTask, bH as WorkflowConvertTaskCore, bI as WorkflowConvertTaskDefinitionInputParameters, bJ as WorkflowConvertTaskInput, bK as WorkflowConvertTaskInputFilter, bL as WorkflowConvertTaskInputJoin, bM as WorkflowConvertTaskInputLookup, bN as WorkflowConvertTaskInputPickOmit, bO as WorkflowConvertTaskInputPluck, bP as WorkflowConvertTaskInputReducer, bQ as WorkflowConvertTaskInputReplace, bR as WorkflowConvertTaskInputSimple, bS as WorkflowConvertTaskInputSort, bT as WorkflowConvertTaskInputSplit, bU as WorkflowConvertTaskInputSum, bV as WorkflowConvertTaskTransformer, i as WorkflowCore, n as WorkflowCrmOrganization, k as WorkflowCrmOrganizationsOrderBy, o as WorkflowCrmWorkflowsOrderBy, bW as WorkflowCustomHttpTaskCore, bX as WorkflowCustomTaskName, bY as WorkflowDefinitionDto, bZ as WorkflowDoWhileBaseTask, b_ as WorkflowDoWhileBaseTaskCore, b$ as WorkflowDoWhileBaseTaskInput, c0 as WorkflowDoWhileTask, c1 as WorkflowDoWhileTaskCore, W as WorkflowDto, c2 as WorkflowElement, c3 as WorkflowElementCore, c4 as WorkflowElementIdentity, c5 as WorkflowElementRef, r as WorkflowExecution, c6 as WorkflowExecutionActionTaskData, c7 as WorkflowExecutionAwaitTaskData, c8 as WorkflowExecutionChatContext, c9 as WorkflowExecutionConditionTask, ca as WorkflowExecutionConstructTask, cb as WorkflowExecutionContext, cc as WorkflowExecutionConvertTask, cd as WorkflowExecutionData, ce as WorkflowExecutionDefinitionStatus, cf as WorkflowExecutionDoWhileIterationOutput, cg as WorkflowExecutionDoWhileTaskData, ch as WorkflowExecutionForkJoinTaskData, ci as WorkflowExecutionHttpTaskData, cj as WorkflowExecutionInlineBaseTask, ck as WorkflowExecutionInlineTaskData, cl as WorkflowExecutionJoinTaskData, q as WorkflowExecutionListItem, cm as WorkflowExecutionNotifyAiAgentTaskData, cn as WorkflowExecutionReasoningTaskData, co as WorkflowExecutionScriptTask, cp as WorkflowExecutionSimpleBaseTaskData, cq as WorkflowExecutionSimpleTaskData, cr as WorkflowExecutionStatus, cs as WorkflowExecutionSwitchBaseTask, ct as WorkflowExecutionSwitchCaseTask, cu as WorkflowExecutionSwitchTaskData, cv as WorkflowExecutionTaskBase, cw as WorkflowExecutionTaskData, cx as WorkflowExecutionTaskStatus, cy as WorkflowExecutionTerminateTaskData, cz as WorkflowExecutionTicketContext, cA as WorkflowExecutionTransformBaseTask, cB as WorkflowExecutionTransformTaskData, cC as WorkflowExecutionTriggerData, cD as WorkflowExecutionTriggerDataBase, cE as WorkflowExecutionType, cF as WorkflowExecutionWaitTaskData, cG as WorkflowForEachTask, cH as WorkflowForEachTaskCore, cI as WorkflowForEachTaskInput, cJ as WorkflowForkJoinTask, cK as WorkflowForkJoinTaskCore, cL as WorkflowForkJoinTaskInput, cM as WorkflowFunctionErrorResponseBody, cN as WorkflowGraph, cO as WorkflowHttpRequest, cP as WorkflowHttpTask, cQ as WorkflowHttpTaskCore, cR as WorkflowHttpTaskErrorResponseBody, cS as WorkflowHttpTaskFunctionErrorResponseBody, cT as WorkflowHttpTaskHeaders, cU as WorkflowHttpTaskInput, cV as WorkflowHttpTaskProviderErrorResponseBody, cW as WorkflowInlineBaseTask, cX as WorkflowInlineBaseTaskCore, cY as WorkflowInlineBaseTaskInput, cZ as WorkflowInlineTask, c_ as WorkflowInlineTaskCore, s as WorkflowIntrospection, c$ as WorkflowItemKind, d0 as WorkflowJoinTask, d1 as WorkflowJoinTaskCore, d2 as WorkflowJoinTaskInput, p as WorkflowListItemDto, d3 as WorkflowLoopTask, d4 as WorkflowLoopTaskCore, d5 as WorkflowLoopTaskInput, d6 as WorkflowManualTrigger, d7 as WorkflowManualTriggerCore, d8 as WorkflowManualTriggerParameter, d9 as WorkflowManualTriggerSubType, da as WorkflowManualTriggerSubTypeName, db as WorkflowNode, dc as WorkflowNotifyAiAgentTask, dd as WorkflowNotifyAiAgentTaskCore, de as WorkflowNotifyAiAgentTaskInput, df as WorkflowNotifyAiAgentTaskObjectiveInput, dg as WorkflowNotifyAiAgentTaskStrictInput, dh as WorkflowOneTimeTrigger, di as WorkflowOneTimeTriggerCore, dj as WorkflowOneTimeTriggerInput, dk as WorkflowParentRef, dl as WorkflowPlan, dm as WorkflowPlanTask, dn as WorkflowPlanTrigger, dp as WorkflowReasoningOption, dq as WorkflowReasoningOptionAgent, dr as WorkflowReasoningOptionCustomer, ds as WorkflowReasoningTask, dt as WorkflowReasoningTaskCore, du as WorkflowReasoningTaskInput, dv as WorkflowRecurringTrigger, dw as WorkflowRecurringTriggerCore, dx as WorkflowRecurringTriggerInput, dy as WorkflowScriptTask, dz as WorkflowScriptTaskCore, dA as WorkflowScriptTaskInput, dB as WorkflowSimpleBaseTask, dC as WorkflowSimpleBaseTaskCore, dD as WorkflowSimpleTask, dE as WorkflowSimpleTaskCore, dF as WorkflowSwitchBaseTask, dG as WorkflowSwitchBaseTaskCore, dH as WorkflowSwitchCaseTask, dI as WorkflowSwitchCaseTaskCore, dJ as WorkflowSwitchCaseTaskInput, dK as WorkflowSwitchTask, dL as WorkflowSwitchTaskCore, dM as WorkflowSwitchTaskInput, dN as WorkflowTask, dO as WorkflowTaskBase, dP as WorkflowTaskCore, dQ as WorkflowTaskIdentity, v as WorkflowTaskIntrospectResponse, dR as WorkflowTaskIntrospection, dS as WorkflowTaskOf, dT as WorkflowTaskType, B as WorkflowTemplate, dU as WorkflowTemplateCategory, z as WorkflowTemplateListEntry, dV as WorkflowTemplateMetadataItem, y as WorkflowTemplateOrderBy, dW as WorkflowTerminateTask, dX as WorkflowTerminateTaskCore, dY as WorkflowTerminateTaskInput, dZ as WorkflowTransformBaseTask, d_ as WorkflowTransformBaseTaskCore, d$ as WorkflowTransformBaseTaskInput, e0 as WorkflowTransformTask, e1 as WorkflowTransformTaskCore, e2 as WorkflowTrigger, e3 as WorkflowTriggerBase, e4 as WorkflowTriggerCore, e5 as WorkflowTriggerDto, e6 as WorkflowTriggerIdentity, e7 as WorkflowTriggerOf, e8 as WorkflowTriggerType, e9 as WorkflowWaitTask, ea as WorkflowWaitTaskCore, eb as WorkflowWaitTaskInput, ec as WorkflowWebhook, ed as WorkflowWebhookInput, ee as WorkflowWebhookManualTrigger, ef as WorkflowWebhookManualTriggerCore, eg as WorkflowWebhookTrigger, eh as WorkflowWebhookTriggerCore, ei as WorkflowWebhookTriggerPure, em as getWorkflowApiCrmConfig, es as isFilter, et as isFilterGroup, eu as isWorkflowBaseHttpTaskCore, ew as serializeFilters } from './events-yWjeW2vl.js';
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 WorkflowConvertTaskInputFilter, bO as WorkflowConvertTaskInputJoin, bP as WorkflowConvertTaskInputLookup, bQ as WorkflowConvertTaskInputPickOmit, bR as WorkflowConvertTaskInputPluck, bS as WorkflowConvertTaskInputReducer, bT as WorkflowConvertTaskInputReplace, bU as WorkflowConvertTaskInputSimple, bV as WorkflowConvertTaskInputSort, bW as WorkflowConvertTaskInputSplit, bX as WorkflowConvertTaskInputSum, bY as WorkflowConvertTaskTransformer, j as WorkflowCore, o as WorkflowCrmOrganization, l as WorkflowCrmOrganizationsOrderBy, p as WorkflowCrmWorkflowsOrderBy, bZ as WorkflowCustomHttpTaskCore, b_ as WorkflowCustomTaskName, b$ as WorkflowDefinitionDto, c0 as WorkflowDoWhileBaseTask, c1 as WorkflowDoWhileBaseTaskCore, c2 as WorkflowDoWhileBaseTaskInput, c3 as WorkflowDoWhileTask, c4 as WorkflowDoWhileTaskCore, W as WorkflowDto, c5 as WorkflowElement, c6 as WorkflowElementCore, c7 as WorkflowElementIdentity, c8 as WorkflowElementRef, s as WorkflowExecution, c9 as WorkflowExecutionActionTaskData, ca as WorkflowExecutionAwaitTaskData, cb as WorkflowExecutionChatContext, cc as WorkflowExecutionConditionTask, cd as WorkflowExecutionConstructTask, ce as WorkflowExecutionContext, cf as WorkflowExecutionConvertTask, cg as WorkflowExecutionData, ch as WorkflowExecutionDefinitionStatus, ci as WorkflowExecutionDoWhileIterationOutput, cj as WorkflowExecutionDoWhileTaskData, ck as WorkflowExecutionForkJoinTaskData, cl as WorkflowExecutionHttpTaskData, cm as WorkflowExecutionInlineBaseTask, cn as WorkflowExecutionInlineTaskData, co as WorkflowExecutionJoinTaskData, r as WorkflowExecutionListItem, cp as WorkflowExecutionNotifyAiAgentTaskData, cq as WorkflowExecutionReasoningTaskData, cr as WorkflowExecutionScriptTask, cs as WorkflowExecutionSimpleBaseTaskData, ct as WorkflowExecutionSimpleTaskData, cu as WorkflowExecutionStatus, cv as WorkflowExecutionSwitchBaseTask, cw as WorkflowExecutionSwitchCaseTask, cx as WorkflowExecutionSwitchTaskData, cy as WorkflowExecutionTaskBase, cz as WorkflowExecutionTaskData, cA as WorkflowExecutionTaskStatus, cB as WorkflowExecutionTerminateTaskData, cC as WorkflowExecutionTicketContext, cD as WorkflowExecutionTransformBaseTask, cE as WorkflowExecutionTransformTaskData, cF as WorkflowExecutionTriggerData, cG as WorkflowExecutionTriggerDataBase, cH as WorkflowExecutionType, cI as WorkflowExecutionWaitTaskData, cJ as WorkflowForEachTask, cK as WorkflowForEachTaskCore, cL as WorkflowForEachTaskInput, cM as WorkflowForkJoinTask, cN as WorkflowForkJoinTaskCore, cO as WorkflowForkJoinTaskInput, cP as WorkflowFunctionErrorResponseBody, cQ as WorkflowGraph, cR as WorkflowHttpRequest, cS as WorkflowHttpTask, cT as WorkflowHttpTaskCore, cU as WorkflowHttpTaskErrorResponseBody, cV as WorkflowHttpTaskFunctionErrorResponseBody, cW as WorkflowHttpTaskHeaders, cX as WorkflowHttpTaskInput, cY as WorkflowHttpTaskProviderErrorResponseBody, cZ as WorkflowInactivityReason, c_ as WorkflowInlineBaseTask, c$ as WorkflowInlineBaseTaskCore, d0 as WorkflowInlineBaseTaskInput, d1 as WorkflowInlineTask, d2 as WorkflowInlineTaskCore, t as WorkflowIntrospection, d3 as WorkflowItemKind, d4 as WorkflowJoinTask, d5 as WorkflowJoinTaskCore, d6 as WorkflowJoinTaskInput, q as WorkflowListItemDto, d7 as WorkflowLoopTask, d8 as WorkflowLoopTaskCore, d9 as WorkflowLoopTaskInput, da as WorkflowManualTrigger, db as WorkflowManualTriggerCore, dc as WorkflowManualTriggerParameter, dd as WorkflowManualTriggerSubType, de as WorkflowManualTriggerSubTypeName, df as WorkflowNode, dg as WorkflowNotifyAiAgentTask, dh as WorkflowNotifyAiAgentTaskCore, di as WorkflowNotifyAiAgentTaskInput, dj as WorkflowNotifyAiAgentTaskObjectiveInput, dk as WorkflowNotifyAiAgentTaskStrictInput, dl as WorkflowOneTimeTrigger, dm as WorkflowOneTimeTriggerCore, dn as WorkflowOneTimeTriggerInput, dp as WorkflowParentRef, dq as WorkflowPlan, dr as WorkflowReasoningOption, ds as WorkflowReasoningOptionAgent, dt as WorkflowReasoningOptionCustomer, du as WorkflowReasoningTask, dv as WorkflowReasoningTaskCore, dw as WorkflowReasoningTaskInput, dx as WorkflowRecurringTrigger, dy as WorkflowRecurringTriggerCore, dz as WorkflowRecurringTriggerInput, dA as WorkflowScriptTask, dB as WorkflowScriptTaskCore, dC as WorkflowScriptTaskInput, dD as WorkflowSimpleBaseTask, dE as WorkflowSimpleBaseTaskCore, dF as WorkflowSimpleTask, dG as WorkflowSimpleTaskCore, dH as WorkflowSwitchBaseTask, dI as WorkflowSwitchBaseTaskCore, dJ as WorkflowSwitchCaseTask, dK as WorkflowSwitchCaseTaskCore, dL as WorkflowSwitchCaseTaskInput, dM as WorkflowSwitchTask, dN as WorkflowSwitchTaskCore, dO as WorkflowSwitchTaskInput, dP as WorkflowTask, dQ as WorkflowTaskBase, dR as WorkflowTaskCore, dS as WorkflowTaskIdentity, x as WorkflowTaskIntrospectResponse, dT as WorkflowTaskIntrospection, dU as WorkflowTaskOf, dV as WorkflowTaskPlan, dW as WorkflowTaskType, E as WorkflowTemplate, dX as WorkflowTemplateCategory, D as WorkflowTemplateListEntry, dY as WorkflowTemplateMetadataItem, B as WorkflowTemplateOrderBy, dZ as WorkflowTerminateTask, d_ as WorkflowTerminateTaskCore, d$ as WorkflowTerminateTaskInput, e0 as WorkflowTransformBaseTask, e1 as WorkflowTransformBaseTaskCore, e2 as WorkflowTransformBaseTaskInput, e3 as WorkflowTransformTask, e4 as WorkflowTransformTaskCore, e5 as WorkflowTrigger, e6 as WorkflowTriggerBase, e7 as WorkflowTriggerCore, e8 as WorkflowTriggerDto, e9 as WorkflowTriggerIdentity, ea as WorkflowTriggerOf, eb as WorkflowTriggerPlan, ec as WorkflowTriggerType, ed as WorkflowWaitTask, ee as WorkflowWaitTaskCore, ef as WorkflowWaitTaskInput, eg as WorkflowWebhook, eh as WorkflowWebhookInput, ei as WorkflowWebhookManualTrigger, ej as WorkflowWebhookManualTriggerCore, ek as WorkflowWebhookTrigger, el as WorkflowWebhookTriggerCore, em as WorkflowWebhookTriggerPure, eq as getWorkflowApiCrmConfig, ew as isFilter, ex as isFilterGroup, ey as isWorkflowBaseHttpTaskCore, eA as serializeFilters } from './events-00ZFjf-6.js';
2
2
  import 'utils';
3
3
  import 'json-schema';
4
4
  import 'zod';
@@ -85,6 +85,7 @@ __export(contracts_exports, {
85
85
  WorkflowExecutionStatus: () => WorkflowExecutionStatus,
86
86
  WorkflowExecutionTaskStatus: () => WorkflowExecutionTaskStatus,
87
87
  WorkflowExecutionType: () => WorkflowExecutionType,
88
+ WorkflowInactivityReason: () => WorkflowInactivityReason,
88
89
  WorkflowItemKind: () => WorkflowItemKind,
89
90
  WorkflowManualTriggerSubType: () => WorkflowManualTriggerSubType,
90
91
  WorkflowManualTriggerSubTypeName: () => WorkflowManualTriggerSubTypeName,
@@ -332,6 +333,12 @@ var WorkflowManualTriggerSubTypeName = {
332
333
  [WorkflowManualTriggerSubType.forSelectedTicket]: "text-helpdesk-manual"
333
334
  };
334
335
 
336
+ // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflow.ts
337
+ var WorkflowInactivityReason = /* @__PURE__ */ ((WorkflowInactivityReason2) => {
338
+ WorkflowInactivityReason2["OwnerRemoved"] = "owner_removed";
339
+ return WorkflowInactivityReason2;
340
+ })(WorkflowInactivityReason || {});
341
+
335
342
  // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflowElement.ts
336
343
  var TRIGGER_REFERENCE_NAME = "trigger";
337
344
 
@@ -1303,6 +1310,11 @@ var customerMetadataZod = import_zod.z.object({
1303
1310
  customer_id: import_zod.z.string(),
1304
1311
  master_id: import_zod.z.string()
1305
1312
  });
1313
+ var segmentMembershipDataZod = customerMetadataZod.extend({
1314
+ segment_id: import_zod.z.number(),
1315
+ segment_type: import_zod.z.string(),
1316
+ membership_last_updated_at: import_zod.z.string()
1317
+ }).passthrough();
1306
1318
  var cdpCustomerEventMessageZod = import_zod.z.discriminatedUnion("type", [
1307
1319
  import_zod.z.object({
1308
1320
  id: import_zod.z.string(),
@@ -1324,6 +1336,16 @@ var cdpCustomerEventMessageZod = import_zod.z.discriminatedUnion("type", [
1324
1336
  }).passthrough()
1325
1337
  )
1326
1338
  }).passthrough()
1339
+ }),
1340
+ import_zod.z.object({
1341
+ id: import_zod.z.string(),
1342
+ type: import_zod.z.literal("segment_added" /* SegmentAdded */),
1343
+ data: segmentMembershipDataZod
1344
+ }),
1345
+ import_zod.z.object({
1346
+ id: import_zod.z.string(),
1347
+ type: import_zod.z.literal("segment_removed" /* SegmentRemoved */),
1348
+ data: segmentMembershipDataZod
1327
1349
  })
1328
1350
  ]);
1329
1351
 
@@ -1851,8 +1873,16 @@ var import_zod12 = require("zod");
1851
1873
  var TextCustomerEventNames = /* @__PURE__ */ ((TextCustomerEventNames2) => {
1852
1874
  TextCustomerEventNames2["EmailSet"] = "customer_email_set";
1853
1875
  TextCustomerEventNames2["PropertiesValuesUpdated"] = "customer_properties_values_updated";
1876
+ TextCustomerEventNames2["SegmentAdded"] = "segment_added";
1877
+ TextCustomerEventNames2["SegmentRemoved"] = "segment_removed";
1854
1878
  return TextCustomerEventNames2;
1855
1879
  })(TextCustomerEventNames || {});
1880
+ var TextCustomerSegmentType = /* @__PURE__ */ ((TextCustomerSegmentType2) => {
1881
+ TextCustomerSegmentType2["Lead"] = "lead";
1882
+ TextCustomerSegmentType2["QualifiedLead"] = "qualified_lead";
1883
+ TextCustomerSegmentType2["Custom"] = "custom";
1884
+ return TextCustomerSegmentType2;
1885
+ })(TextCustomerSegmentType || {});
1856
1886
  var textCustomerEventsZods = {
1857
1887
  eventName: import_zod12.z.nativeEnum(TextCustomerEventNames),
1858
1888
  events: {
@@ -1868,12 +1898,22 @@ var textCustomerEventsZods = {
1868
1898
  to: import_zod12.z.union([import_zod12.z.string(), import_zod12.z.number(), import_zod12.z.boolean()]).nullish()
1869
1899
  })
1870
1900
  ).optional()
1901
+ }),
1902
+ segmentAdded: integrationEventBase.extend({
1903
+ name: import_zod12.z.literal("segment_added" /* SegmentAdded */),
1904
+ segment_type: import_zod12.z.nativeEnum(TextCustomerSegmentType)
1905
+ }),
1906
+ segmentRemoved: integrationEventBase.extend({
1907
+ name: import_zod12.z.literal("segment_removed" /* SegmentRemoved */),
1908
+ segment_type: import_zod12.z.nativeEnum(TextCustomerSegmentType)
1871
1909
  })
1872
1910
  },
1873
1911
  get event() {
1874
1912
  return import_zod12.z.discriminatedUnion("name", [
1875
1913
  this.events.emailSet,
1876
- this.events.propertiesValuesUpdated
1914
+ this.events.propertiesValuesUpdated,
1915
+ this.events.segmentAdded,
1916
+ this.events.segmentRemoved
1877
1917
  ]);
1878
1918
  },
1879
1919
  get subscribe() {
@@ -2093,7 +2133,7 @@ var textLivechatEventsZods = {
2093
2133
  }),
2094
2134
  import_zod14.z.object({
2095
2135
  name: import_zod14.z.literal("chat_message" /* ChatMessage */),
2096
- version: import_zod14.z.literal("v1"),
2136
+ version: import_zod14.z.enum(["v1", "v2"]),
2097
2137
  filters: import_zod14.z.array(import_zod14.z.string()),
2098
2138
  caseInsensitive: import_zod14.z.boolean().optional(),
2099
2139
  matchWholeWords: import_zod14.z.boolean().optional()
@@ -2319,6 +2359,7 @@ function getWorkflowApiCrmConfig(authorization) {
2319
2359
  WorkflowExecutionStatus,
2320
2360
  WorkflowExecutionTaskStatus,
2321
2361
  WorkflowExecutionType,
2362
+ WorkflowInactivityReason,
2322
2363
  WorkflowItemKind,
2323
2364
  WorkflowManualTriggerSubType,
2324
2365
  WorkflowManualTriggerSubTypeName,
@@ -17,6 +17,7 @@ import {
17
17
  WorkflowExecutionStatus,
18
18
  WorkflowExecutionTaskStatus,
19
19
  WorkflowExecutionType,
20
+ WorkflowInactivityReason,
20
21
  WorkflowItemKind,
21
22
  WorkflowManualTriggerSubType,
22
23
  WorkflowManualTriggerSubTypeName,
@@ -28,7 +29,7 @@ import {
28
29
  isFilterGroup,
29
30
  isWorkflowBaseHttpTaskCore,
30
31
  serializeFilters
31
- } from "./chunk-GND2D76F.mjs";
32
+ } from "./chunk-BZVBB5BG.mjs";
32
33
  export {
33
34
  CredentialStatus,
34
35
  CredentialType,
@@ -48,6 +49,7 @@ export {
48
49
  WorkflowExecutionStatus,
49
50
  WorkflowExecutionTaskStatus,
50
51
  WorkflowExecutionType,
52
+ WorkflowInactivityReason,
51
53
  WorkflowItemKind,
52
54
  WorkflowManualTriggerSubType,
53
55
  WorkflowManualTriggerSubTypeName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "5.7.0",
3
+ "version": "5.10.1",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  "tsup": "^8.5.1",
38
38
  "typescript": "^5.1.6",
39
39
  "eslint-config-custom": "0.0.15",
40
- "tsconfig": "0.2.1",
41
- "utils": "0.3.4"
40
+ "utils": "0.3.4",
41
+ "tsconfig": "0.2.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup",