@whitewall/blip-sdk 0.0.174 → 0.0.175

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.
Files changed (131) hide show
  1. package/README.md +13 -6
  2. package/dist/cjs/client.js +3 -0
  3. package/dist/cjs/client.js.map +1 -1
  4. package/dist/cjs/index.js +3 -0
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/namespaces/account.js +21 -10
  7. package/dist/cjs/namespaces/account.js.map +1 -1
  8. package/dist/cjs/namespaces/analytics.js +54 -0
  9. package/dist/cjs/namespaces/analytics.js.map +1 -1
  10. package/dist/cjs/namespaces/desk.js +264 -45
  11. package/dist/cjs/namespaces/desk.js.map +1 -1
  12. package/dist/cjs/namespaces/plugins.js +1 -0
  13. package/dist/cjs/namespaces/plugins.js.map +1 -1
  14. package/dist/cjs/namespaces/portal.js +45 -0
  15. package/dist/cjs/namespaces/portal.js.map +1 -1
  16. package/dist/cjs/namespaces/tunnel.js +46 -0
  17. package/dist/cjs/namespaces/tunnel.js.map +1 -0
  18. package/dist/cjs/namespaces/whatsapp.js +2 -23
  19. package/dist/cjs/namespaces/whatsapp.js.map +1 -1
  20. package/dist/cjs/sender/multi/multisender.js +28 -9
  21. package/dist/cjs/sender/multi/multisender.js.map +1 -1
  22. package/dist/cjs/sender/sessionnegotiator.js +1 -1
  23. package/dist/cjs/sender/sessionnegotiator.js.map +1 -1
  24. package/dist/cjs/sender/tcp/tcpsender.js +35 -2
  25. package/dist/cjs/sender/tcp/tcpsender.js.map +1 -1
  26. package/dist/cjs/sender/websocket/websocketsender.js +1 -1
  27. package/dist/cjs/sender/websocket/websocketsender.js.map +1 -1
  28. package/dist/cjs/types/desk.js.map +1 -1
  29. package/dist/cjs/types/flow.js +344 -0
  30. package/dist/cjs/types/flow.js.map +1 -1
  31. package/dist/cjs/utils/desk.js +65 -0
  32. package/dist/cjs/utils/desk.js.map +1 -0
  33. package/dist/cjs/utils/thread.js +84 -0
  34. package/dist/cjs/utils/thread.js.map +1 -0
  35. package/dist/cjs/utils/whatsapp.js +268 -0
  36. package/dist/cjs/utils/whatsapp.js.map +1 -0
  37. package/dist/esm/client.js +3 -0
  38. package/dist/esm/client.js.map +1 -1
  39. package/dist/esm/index.js +3 -0
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/namespaces/account.js +17 -9
  42. package/dist/esm/namespaces/account.js.map +1 -1
  43. package/dist/esm/namespaces/analytics.js +54 -0
  44. package/dist/esm/namespaces/analytics.js.map +1 -1
  45. package/dist/esm/namespaces/desk.js +264 -45
  46. package/dist/esm/namespaces/desk.js.map +1 -1
  47. package/dist/esm/namespaces/plugins.js +1 -0
  48. package/dist/esm/namespaces/plugins.js.map +1 -1
  49. package/dist/esm/namespaces/portal.js +45 -0
  50. package/dist/esm/namespaces/portal.js.map +1 -1
  51. package/dist/esm/namespaces/tunnel.js +42 -0
  52. package/dist/esm/namespaces/tunnel.js.map +1 -0
  53. package/dist/esm/namespaces/whatsapp.js +2 -23
  54. package/dist/esm/namespaces/whatsapp.js.map +1 -1
  55. package/dist/esm/sender/multi/multisender.js +28 -9
  56. package/dist/esm/sender/multi/multisender.js.map +1 -1
  57. package/dist/esm/sender/sessionnegotiator.js +1 -1
  58. package/dist/esm/sender/sessionnegotiator.js.map +1 -1
  59. package/dist/esm/sender/tcp/tcpsender.js +1 -1
  60. package/dist/esm/sender/tcp/tcpsender.js.map +1 -1
  61. package/dist/esm/sender/websocket/websocketsender.js +1 -1
  62. package/dist/esm/sender/websocket/websocketsender.js.map +1 -1
  63. package/dist/esm/types/desk.js.map +1 -1
  64. package/dist/esm/types/flow.js +343 -1
  65. package/dist/esm/types/flow.js.map +1 -1
  66. package/dist/esm/utils/desk.js +59 -0
  67. package/dist/esm/utils/desk.js.map +1 -0
  68. package/dist/esm/utils/thread.js +80 -0
  69. package/dist/esm/utils/thread.js.map +1 -0
  70. package/dist/esm/utils/whatsapp.js +263 -0
  71. package/dist/esm/utils/whatsapp.js.map +1 -0
  72. package/dist/types/client.d.ts +2 -0
  73. package/dist/types/client.d.ts.map +1 -1
  74. package/dist/types/index.d.ts +3 -0
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/namespaces/account.d.ts +1790 -2
  77. package/dist/types/namespaces/account.d.ts.map +1 -1
  78. package/dist/types/namespaces/analytics.d.ts +60 -0
  79. package/dist/types/namespaces/analytics.d.ts.map +1 -1
  80. package/dist/types/namespaces/desk.d.ts +124 -4
  81. package/dist/types/namespaces/desk.d.ts.map +1 -1
  82. package/dist/types/namespaces/plugins.d.ts +1 -0
  83. package/dist/types/namespaces/plugins.d.ts.map +1 -1
  84. package/dist/types/namespaces/portal.d.ts +45 -0
  85. package/dist/types/namespaces/portal.d.ts.map +1 -1
  86. package/dist/types/namespaces/tunnel.d.ts +28 -0
  87. package/dist/types/namespaces/tunnel.d.ts.map +1 -0
  88. package/dist/types/namespaces/whatsapp.d.ts +3 -2
  89. package/dist/types/namespaces/whatsapp.d.ts.map +1 -1
  90. package/dist/types/schemas/webhook.d.ts +2 -2
  91. package/dist/types/sender/gateway/customgatewaysender.d.ts +1 -1
  92. package/dist/types/sender/http/httpsender.d.ts +1 -1
  93. package/dist/types/sender/multi/multisender.d.ts +1 -0
  94. package/dist/types/sender/multi/multisender.d.ts.map +1 -1
  95. package/dist/types/sender/sender.d.ts +1 -1
  96. package/dist/types/sender/tcp/tcpsender.d.ts +1 -1
  97. package/dist/types/sender/websocket/websocketsender.d.ts +1 -1
  98. package/dist/types/types/desk.d.ts +57 -1
  99. package/dist/types/types/desk.d.ts.map +1 -1
  100. package/dist/types/types/flow.d.ts +3269 -142
  101. package/dist/types/types/flow.d.ts.map +1 -1
  102. package/dist/types/types/message.d.ts +1 -1
  103. package/dist/types/types/whatsapp.d.ts +10 -2
  104. package/dist/types/types/whatsapp.d.ts.map +1 -1
  105. package/dist/types/utils/desk.d.ts +6 -0
  106. package/dist/types/utils/desk.d.ts.map +1 -0
  107. package/dist/types/utils/thread.d.ts +4 -0
  108. package/dist/types/utils/thread.d.ts.map +1 -0
  109. package/dist/types/utils/whatsapp.d.ts +103 -0
  110. package/dist/types/utils/whatsapp.d.ts.map +1 -0
  111. package/package.json +8 -11
  112. package/src/client.ts +3 -0
  113. package/src/index.ts +3 -0
  114. package/src/namespaces/account.ts +20 -12
  115. package/src/namespaces/analytics.ts +154 -0
  116. package/src/namespaces/desk.ts +428 -77
  117. package/src/namespaces/plugins.ts +2 -0
  118. package/src/namespaces/portal.ts +110 -0
  119. package/src/namespaces/tunnel.ts +58 -0
  120. package/src/namespaces/whatsapp.ts +4 -39
  121. package/src/sender/multi/multisender.ts +38 -14
  122. package/src/sender/sessionnegotiator.ts +1 -1
  123. package/src/sender/tcp/tcpsender.ts +1 -1
  124. package/src/sender/websocket/websocketsender.ts +1 -1
  125. package/src/types/desk.ts +66 -1
  126. package/src/types/flow.ts +387 -246
  127. package/src/types/message.ts +1 -1
  128. package/src/types/whatsapp.ts +11 -2
  129. package/src/utils/desk.ts +78 -0
  130. package/src/utils/thread.ts +119 -0
  131. package/src/utils/whatsapp.ts +530 -0
@@ -1,150 +1,3274 @@
1
- import type { MessageTypesContent } from './message.ts';
2
- type SendMessageActionSettings = {
3
- $invalid?: boolean;
4
- id: string;
5
- type: keyof MessageTypesContent;
6
- content: MessageTypesContent[keyof MessageTypesContent];
7
- };
8
- type ProcessHttpActionSettings = {
9
- $invalid?: boolean;
10
- method: 'POST' | 'GET' | 'PUT' | 'DELETE';
11
- uri: string;
12
- headers: Record<string, string>;
13
- body: string;
14
- responseBodyVariable: string;
15
- responseStatusVariable: string;
16
- };
17
- type TrackEventActionSettings = {
18
- $invalid?: boolean;
19
- category: string;
20
- action: string;
21
- extras: Record<string, string>;
22
- };
23
- type MergeContactActionSettings = {
24
- $invalid?: boolean;
25
- name: string;
26
- email: string;
27
- city: string;
28
- extras: Record<string, string>;
29
- };
30
- type ExecuteScriptActionSettings = {
31
- $invalid?: boolean;
32
- function: 'run';
33
- source: string;
34
- inputVariables: Array<string>;
35
- outputVariable: string;
36
- };
37
- type SendRawMessageActionSettings = {
38
- $invalid?: boolean;
39
- type: 'application/json';
40
- rawContent: string;
41
- };
42
- type SetVariableActionSettings = {
43
- $invalid?: boolean;
44
- variable: string;
45
- value: string;
46
- expiration?: number;
47
- };
48
- type TypeOfStateId = 'state' | 'variable';
49
- export type Condition = {
50
- source: 'input' | 'context';
51
- variable?: string;
52
- comparison: 'equals' | 'notEquals' | 'contains' | 'startsWith' | 'endsWith' | 'greaterThan' | 'lessThan' | 'greaterThanOrEquals' | 'lessThanOrEquals' | 'matches' | 'approximateTo' | 'exists' | 'notExists';
53
- operator?: 'or' | 'and';
54
- values: Array<string>;
55
- };
56
- export type Action = {
57
- $id: string;
58
- $typeOfContent?: '' | 'text' | 'select-immediate' | 'select' | 'media' | 'media-audio' | 'media-video' | 'media-document' | 'chat-state' | 'web-link' | 'raw-content';
59
- type: 'SendMessage' | 'SendRawMessage' | 'TrackEvent' | 'ProcessHttp' | 'MergeContact' | 'ExecuteScript' | 'SetVariable' | 'ForwardToDesk' | 'LeavingFromDesk';
60
- $title?: string;
61
- $invalid?: boolean;
62
- settings: SendMessageActionSettings | SendRawMessageActionSettings | TrackEventActionSettings | ProcessHttpActionSettings | MergeContactActionSettings | ExecuteScriptActionSettings | SetVariableActionSettings | Record<string, never>;
63
- $cardContent?: {
64
- document: {
65
- id: string;
66
- type: keyof MessageTypesContent | 'application/json';
67
- content: MessageTypesContent[keyof MessageTypesContent] | string;
68
- textContent?: string;
69
- };
70
- editable: boolean;
71
- deletable: boolean;
72
- position: 'left';
73
- };
74
- conditions?: Array<Condition>;
75
- };
76
- type InputState = {
77
- $cardContent: {
78
- document: {
79
- id: string;
80
- type: 'text/plain';
81
- content?: 'Entrada do usuário';
82
- textContent?: string;
83
- };
84
- editable: boolean;
85
- editing: boolean;
86
- deletable: boolean;
87
- position: 'right';
88
- };
89
- $invalid: boolean;
90
- bypass: boolean;
91
- validation?: {
92
- rule: 'text' | 'number' | 'date' | 'regex' | 'type';
93
- regex?: string;
94
- type?: string;
95
- error: string;
96
- };
97
- expiration?: string;
98
- variable?: string;
99
- conditions?: Array<Condition>;
100
- };
101
- type Output = {
102
- stateId: string;
103
- typeOfStateId?: TypeOfStateId;
104
- $id?: string;
105
- conditions: Array<Condition>;
106
- $invalid?: boolean;
107
- $isDeskOutput?: boolean;
108
- $isDeskDefaultOutput?: boolean;
109
- };
110
- export type State = {
111
- $contentActions: Array<{
112
- action?: Action;
113
- input?: InputState;
1
+ import { z } from 'zod';
2
+ export declare const CONTENT_TYPES: readonly ["text", "select-immediate", "select", "media", "media-audio", "media-video", "media-document", "chat-state", "web-link", "raw-content", ""];
3
+ export declare const MIME_TYPES: readonly ["text/plain", "application/vnd.lime.media-link+json", "application/vnd.lime.select+json", "application/vnd.lime.chatstate+json", "application/vnd.lime.web-link+json"];
4
+ declare const TYPE_OF_STATE_ID: readonly ["state", "variable"];
5
+ export declare const conditionSchema: z.ZodObject<{
6
+ source: z.ZodEnum<{
7
+ context: "context";
8
+ input: "input";
114
9
  }>;
115
- $conditionOutputs: Array<Output>;
116
- $enteringCustomActions: Array<Action>;
117
- $leavingCustomActions: Array<Action>;
118
- $localCustomActions: Array<Action>;
119
- $inputSuggestions: [];
120
- $defaultOutput: Output;
121
- isAiGenerated?: boolean;
122
- deskStateVersion?: string;
123
- $afterStateChangedActions?: Array<Action>;
124
- $tags: Array<{
125
- id: string;
126
- label: string;
127
- background: string;
128
- canChangeBackground: boolean;
10
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ comparison: z.ZodEnum<{
12
+ endsWith: "endsWith";
13
+ startsWith: "startsWith";
14
+ equals: "equals";
15
+ notEquals: "notEquals";
16
+ contains: "contains";
17
+ greaterThan: "greaterThan";
18
+ lessThan: "lessThan";
19
+ greaterThanOrEquals: "greaterThanOrEquals";
20
+ lessThanOrEquals: "lessThanOrEquals";
21
+ matches: "matches";
22
+ approximateTo: "approximateTo";
23
+ exists: "exists";
24
+ notExists: "notExists";
129
25
  }>;
130
- id?: string;
131
- root?: boolean;
132
- $title: string;
133
- $position?: {
134
- top: string;
135
- left: string;
136
- };
137
- $invalidContentActions: boolean;
138
- $invalidOutputs: boolean;
139
- $invalidCustomActions: boolean;
140
- $invalid?: boolean;
141
- };
26
+ operator: z.ZodOptional<z.ZodEnum<{
27
+ or: "or";
28
+ and: "and";
29
+ }>>;
30
+ values: z.ZodArray<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ export declare const actionSchema: z.ZodIntersection<z.ZodObject<{
33
+ $id: z.ZodString;
34
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
35
+ "": "";
36
+ text: "text";
37
+ "select-immediate": "select-immediate";
38
+ select: "select";
39
+ media: "media";
40
+ "media-audio": "media-audio";
41
+ "media-video": "media-video";
42
+ "media-document": "media-document";
43
+ "chat-state": "chat-state";
44
+ "web-link": "web-link";
45
+ "raw-content": "raw-content";
46
+ }>>;
47
+ $title: z.ZodOptional<z.ZodString>;
48
+ $invalid: z.ZodOptional<z.ZodBoolean>;
49
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ source: z.ZodEnum<{
51
+ context: "context";
52
+ input: "input";
53
+ }>;
54
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ comparison: z.ZodEnum<{
56
+ endsWith: "endsWith";
57
+ startsWith: "startsWith";
58
+ equals: "equals";
59
+ notEquals: "notEquals";
60
+ contains: "contains";
61
+ greaterThan: "greaterThan";
62
+ lessThan: "lessThan";
63
+ greaterThanOrEquals: "greaterThanOrEquals";
64
+ lessThanOrEquals: "lessThanOrEquals";
65
+ matches: "matches";
66
+ approximateTo: "approximateTo";
67
+ exists: "exists";
68
+ notExists: "notExists";
69
+ }>;
70
+ operator: z.ZodOptional<z.ZodEnum<{
71
+ or: "or";
72
+ and: "and";
73
+ }>>;
74
+ values: z.ZodArray<z.ZodString>;
75
+ }, z.core.$strip>>>;
76
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
+ editable: z.ZodBoolean;
78
+ deletable: z.ZodBoolean;
79
+ position: z.ZodLiteral<"left">;
80
+ document: z.ZodObject<{
81
+ id: z.ZodString;
82
+ type: z.ZodUnion<[z.ZodEnum<{
83
+ "text/plain": "text/plain";
84
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
85
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
86
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
87
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
88
+ }>, z.ZodLiteral<"application/json">]>;
89
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ title: z.ZodOptional<z.ZodString>;
91
+ text: z.ZodOptional<z.ZodString>;
92
+ type: z.ZodString;
93
+ uri: z.ZodString;
94
+ }, z.core.$strip>]>, z.ZodObject<{
95
+ text: z.ZodString;
96
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
97
+ immediate: "immediate";
98
+ persistent: "persistent";
99
+ }>>>;
100
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
101
+ text: z.ZodString;
102
+ }, z.core.$strip>>]>;
103
+ }, z.core.$strip>]>, z.ZodObject<{
104
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ text: z.ZodString;
106
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
107
+ blank: "blank";
108
+ self: "self";
109
+ selfCompact: "selfCompact";
110
+ selfTall: "selfTall";
111
+ }>>>;
112
+ uri: z.ZodString;
113
+ }, z.core.$strip>]>, z.ZodObject<{
114
+ state: z.ZodString;
115
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
116
+ }, z.core.$strip>]>, z.ZodString]>;
117
+ textContent: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>>>;
120
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
121
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
122
+ type: z.ZodLiteral<"SendMessage">;
123
+ settings: z.ZodObject<{
124
+ $invalid: z.ZodOptional<z.ZodBoolean>;
125
+ type: z.ZodOptional<z.ZodEnum<{
126
+ "text/plain": "text/plain";
127
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
128
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
129
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
130
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
131
+ }>>;
132
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
133
+ title: z.ZodOptional<z.ZodString>;
134
+ text: z.ZodOptional<z.ZodString>;
135
+ type: z.ZodString;
136
+ uri: z.ZodString;
137
+ }, z.core.$strip>]>, z.ZodObject<{
138
+ text: z.ZodString;
139
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
140
+ immediate: "immediate";
141
+ persistent: "persistent";
142
+ }>>>;
143
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
144
+ text: z.ZodString;
145
+ }, z.core.$strip>>]>;
146
+ }, z.core.$strip>]>, z.ZodObject<{
147
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ text: z.ZodString;
149
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
150
+ blank: "blank";
151
+ self: "self";
152
+ selfCompact: "selfCompact";
153
+ selfTall: "selfTall";
154
+ }>>>;
155
+ uri: z.ZodString;
156
+ }, z.core.$strip>]>, z.ZodObject<{
157
+ state: z.ZodString;
158
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
159
+ }, z.core.$strip>]>;
160
+ id: z.ZodOptional<z.ZodString>;
161
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
162
+ }, z.core.$strip>;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ type: z.ZodLiteral<"SendRawMessage">;
165
+ settings: z.ZodObject<{
166
+ $invalid: z.ZodOptional<z.ZodBoolean>;
167
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
168
+ rawContent: z.ZodString;
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ type: z.ZodLiteral<"TrackEvent">;
172
+ settings: z.ZodObject<{
173
+ $invalid: z.ZodOptional<z.ZodBoolean>;
174
+ category: z.ZodString;
175
+ action: z.ZodString;
176
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ type: z.ZodLiteral<"ProcessHttp">;
180
+ settings: z.ZodObject<{
181
+ $invalid: z.ZodOptional<z.ZodBoolean>;
182
+ method: z.ZodEnum<{
183
+ POST: "POST";
184
+ GET: "GET";
185
+ PUT: "PUT";
186
+ DELETE: "DELETE";
187
+ }>;
188
+ uri: z.ZodString;
189
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
190
+ body: z.ZodString;
191
+ responseBodyVariable: z.ZodString;
192
+ responseStatusVariable: z.ZodString;
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ type: z.ZodLiteral<"MergeContact">;
196
+ settings: z.ZodObject<{
197
+ $invalid: z.ZodOptional<z.ZodBoolean>;
198
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
202
+ }, z.core.$strip>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ type: z.ZodLiteral<"ExecuteScript">;
205
+ settings: z.ZodObject<{
206
+ $invalid: z.ZodOptional<z.ZodBoolean>;
207
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
208
+ source: z.ZodString;
209
+ inputVariables: z.ZodArray<z.ZodString>;
210
+ outputVariable: z.ZodString;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>, z.ZodObject<{
213
+ type: z.ZodLiteral<"ExecuteScriptV2">;
214
+ settings: z.ZodObject<{
215
+ $invalid: z.ZodOptional<z.ZodBoolean>;
216
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
217
+ source: z.ZodString;
218
+ inputVariables: z.ZodArray<z.ZodString>;
219
+ outputVariable: z.ZodString;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ type: z.ZodLiteral<"SetVariable">;
223
+ settings: z.ZodObject<{
224
+ $invalid: z.ZodOptional<z.ZodBoolean>;
225
+ variable: z.ZodString;
226
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
227
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
+ }, z.core.$strip>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"ProcessCommand">;
231
+ settings: z.ZodObject<{
232
+ $invalid: z.ZodOptional<z.ZodBoolean>;
233
+ to: z.ZodString;
234
+ method: z.ZodEnum<{
235
+ get: "get";
236
+ set: "set";
237
+ merge: "merge";
238
+ delete: "delete";
239
+ }>;
240
+ uri: z.ZodString;
241
+ variable: z.ZodString;
242
+ from: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ type: z.ZodLiteral<"ForwardToDesk">;
246
+ settings: z.ZodObject<{
247
+ $invalid: z.ZodOptional<z.ZodBoolean>;
248
+ }, z.core.$strip>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"LeavingFromDesk">;
251
+ settings: z.ZodObject<{
252
+ $invalid: z.ZodOptional<z.ZodBoolean>;
253
+ }, z.core.$strip>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ type: z.ZodLiteral<"Redirect">;
256
+ settings: z.ZodObject<{
257
+ $invalid: z.ZodOptional<z.ZodBoolean>;
258
+ address: z.ZodString;
259
+ context: z.ZodObject<{
260
+ type: z.ZodLiteral<"text/plain">;
261
+ value: z.ZodString;
262
+ }, z.core.$strip>;
263
+ }, z.core.$strip>;
264
+ }, z.core.$strip>], "type">>;
265
+ export declare const inputStateSchema: z.ZodObject<{
266
+ $cardContent: z.ZodObject<{
267
+ document: z.ZodObject<{
268
+ id: z.ZodString;
269
+ type: z.ZodLiteral<"text/plain">;
270
+ content: z.ZodOptional<z.ZodString>;
271
+ textContent: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strip>;
273
+ editable: z.ZodBoolean;
274
+ editing: z.ZodBoolean;
275
+ deletable: z.ZodBoolean;
276
+ position: z.ZodLiteral<"right">;
277
+ }, z.core.$strip>;
278
+ $invalid: z.ZodBoolean;
279
+ bypass: z.ZodBoolean;
280
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
+ rule: z.ZodEnum<{
282
+ number: "number";
283
+ type: "type";
284
+ text: "text";
285
+ date: "date";
286
+ regex: "regex";
287
+ }>;
288
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ error: z.ZodString;
291
+ }, z.core.$strip>>>;
292
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
295
+ source: z.ZodEnum<{
296
+ context: "context";
297
+ input: "input";
298
+ }>;
299
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ comparison: z.ZodEnum<{
301
+ endsWith: "endsWith";
302
+ startsWith: "startsWith";
303
+ equals: "equals";
304
+ notEquals: "notEquals";
305
+ contains: "contains";
306
+ greaterThan: "greaterThan";
307
+ lessThan: "lessThan";
308
+ greaterThanOrEquals: "greaterThanOrEquals";
309
+ lessThanOrEquals: "lessThanOrEquals";
310
+ matches: "matches";
311
+ approximateTo: "approximateTo";
312
+ exists: "exists";
313
+ notExists: "notExists";
314
+ }>;
315
+ operator: z.ZodOptional<z.ZodEnum<{
316
+ or: "or";
317
+ and: "and";
318
+ }>>;
319
+ values: z.ZodArray<z.ZodString>;
320
+ }, z.core.$strip>>>;
321
+ }, z.core.$strip>;
322
+ export declare const conditionOutputSchema: z.ZodObject<{
323
+ stateId: z.ZodString;
324
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
325
+ state: "state";
326
+ variable: "variable";
327
+ }>>;
328
+ $id: z.ZodOptional<z.ZodString>;
329
+ $invalid: z.ZodOptional<z.ZodBoolean>;
330
+ $connId: z.ZodOptional<z.ZodString>;
331
+ $contentId: z.ZodOptional<z.ZodString>;
332
+ $isDeskOutput: z.ZodOptional<z.ZodBoolean>;
333
+ $isDeskCustomOutput: z.ZodOptional<z.ZodBoolean>;
334
+ $isDeskDefaultOutput: z.ZodOptional<z.ZodBoolean>;
335
+ conditions: z.ZodArray<z.ZodObject<{
336
+ source: z.ZodEnum<{
337
+ context: "context";
338
+ input: "input";
339
+ }>;
340
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ comparison: z.ZodEnum<{
342
+ endsWith: "endsWith";
343
+ startsWith: "startsWith";
344
+ equals: "equals";
345
+ notEquals: "notEquals";
346
+ contains: "contains";
347
+ greaterThan: "greaterThan";
348
+ lessThan: "lessThan";
349
+ greaterThanOrEquals: "greaterThanOrEquals";
350
+ lessThanOrEquals: "lessThanOrEquals";
351
+ matches: "matches";
352
+ approximateTo: "approximateTo";
353
+ exists: "exists";
354
+ notExists: "notExists";
355
+ }>;
356
+ operator: z.ZodOptional<z.ZodEnum<{
357
+ or: "or";
358
+ and: "and";
359
+ }>>;
360
+ values: z.ZodArray<z.ZodString>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ export declare const defaultOutputSchema: z.ZodObject<{
364
+ stateId: z.ZodString;
365
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
366
+ state: "state";
367
+ variable: "variable";
368
+ }>>;
369
+ $invalid: z.ZodOptional<z.ZodBoolean>;
370
+ }, z.core.$strip>;
371
+ export declare const contentActionItemSchema: z.ZodObject<{
372
+ action: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
373
+ $id: z.ZodString;
374
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
375
+ "": "";
376
+ text: "text";
377
+ "select-immediate": "select-immediate";
378
+ select: "select";
379
+ media: "media";
380
+ "media-audio": "media-audio";
381
+ "media-video": "media-video";
382
+ "media-document": "media-document";
383
+ "chat-state": "chat-state";
384
+ "web-link": "web-link";
385
+ "raw-content": "raw-content";
386
+ }>>;
387
+ $title: z.ZodOptional<z.ZodString>;
388
+ $invalid: z.ZodOptional<z.ZodBoolean>;
389
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
390
+ source: z.ZodEnum<{
391
+ context: "context";
392
+ input: "input";
393
+ }>;
394
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ comparison: z.ZodEnum<{
396
+ endsWith: "endsWith";
397
+ startsWith: "startsWith";
398
+ equals: "equals";
399
+ notEquals: "notEquals";
400
+ contains: "contains";
401
+ greaterThan: "greaterThan";
402
+ lessThan: "lessThan";
403
+ greaterThanOrEquals: "greaterThanOrEquals";
404
+ lessThanOrEquals: "lessThanOrEquals";
405
+ matches: "matches";
406
+ approximateTo: "approximateTo";
407
+ exists: "exists";
408
+ notExists: "notExists";
409
+ }>;
410
+ operator: z.ZodOptional<z.ZodEnum<{
411
+ or: "or";
412
+ and: "and";
413
+ }>>;
414
+ values: z.ZodArray<z.ZodString>;
415
+ }, z.core.$strip>>>;
416
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
417
+ editable: z.ZodBoolean;
418
+ deletable: z.ZodBoolean;
419
+ position: z.ZodLiteral<"left">;
420
+ document: z.ZodObject<{
421
+ id: z.ZodString;
422
+ type: z.ZodUnion<[z.ZodEnum<{
423
+ "text/plain": "text/plain";
424
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
425
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
426
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
427
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
428
+ }>, z.ZodLiteral<"application/json">]>;
429
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
430
+ title: z.ZodOptional<z.ZodString>;
431
+ text: z.ZodOptional<z.ZodString>;
432
+ type: z.ZodString;
433
+ uri: z.ZodString;
434
+ }, z.core.$strip>]>, z.ZodObject<{
435
+ text: z.ZodString;
436
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
437
+ immediate: "immediate";
438
+ persistent: "persistent";
439
+ }>>>;
440
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
441
+ text: z.ZodString;
442
+ }, z.core.$strip>>]>;
443
+ }, z.core.$strip>]>, z.ZodObject<{
444
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ text: z.ZodString;
446
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
447
+ blank: "blank";
448
+ self: "self";
449
+ selfCompact: "selfCompact";
450
+ selfTall: "selfTall";
451
+ }>>>;
452
+ uri: z.ZodString;
453
+ }, z.core.$strip>]>, z.ZodObject<{
454
+ state: z.ZodString;
455
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
456
+ }, z.core.$strip>]>, z.ZodString]>;
457
+ textContent: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strip>;
459
+ }, z.core.$strip>>>;
460
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
461
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
462
+ type: z.ZodLiteral<"SendMessage">;
463
+ settings: z.ZodObject<{
464
+ $invalid: z.ZodOptional<z.ZodBoolean>;
465
+ type: z.ZodOptional<z.ZodEnum<{
466
+ "text/plain": "text/plain";
467
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
468
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
469
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
470
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
471
+ }>>;
472
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
473
+ title: z.ZodOptional<z.ZodString>;
474
+ text: z.ZodOptional<z.ZodString>;
475
+ type: z.ZodString;
476
+ uri: z.ZodString;
477
+ }, z.core.$strip>]>, z.ZodObject<{
478
+ text: z.ZodString;
479
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
480
+ immediate: "immediate";
481
+ persistent: "persistent";
482
+ }>>>;
483
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
484
+ text: z.ZodString;
485
+ }, z.core.$strip>>]>;
486
+ }, z.core.$strip>]>, z.ZodObject<{
487
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ text: z.ZodString;
489
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
490
+ blank: "blank";
491
+ self: "self";
492
+ selfCompact: "selfCompact";
493
+ selfTall: "selfTall";
494
+ }>>>;
495
+ uri: z.ZodString;
496
+ }, z.core.$strip>]>, z.ZodObject<{
497
+ state: z.ZodString;
498
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
499
+ }, z.core.$strip>]>;
500
+ id: z.ZodOptional<z.ZodString>;
501
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
502
+ }, z.core.$strip>;
503
+ }, z.core.$strip>, z.ZodObject<{
504
+ type: z.ZodLiteral<"SendRawMessage">;
505
+ settings: z.ZodObject<{
506
+ $invalid: z.ZodOptional<z.ZodBoolean>;
507
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
508
+ rawContent: z.ZodString;
509
+ }, z.core.$strip>;
510
+ }, z.core.$strip>, z.ZodObject<{
511
+ type: z.ZodLiteral<"TrackEvent">;
512
+ settings: z.ZodObject<{
513
+ $invalid: z.ZodOptional<z.ZodBoolean>;
514
+ category: z.ZodString;
515
+ action: z.ZodString;
516
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
517
+ }, z.core.$strip>;
518
+ }, z.core.$strip>, z.ZodObject<{
519
+ type: z.ZodLiteral<"ProcessHttp">;
520
+ settings: z.ZodObject<{
521
+ $invalid: z.ZodOptional<z.ZodBoolean>;
522
+ method: z.ZodEnum<{
523
+ POST: "POST";
524
+ GET: "GET";
525
+ PUT: "PUT";
526
+ DELETE: "DELETE";
527
+ }>;
528
+ uri: z.ZodString;
529
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
530
+ body: z.ZodString;
531
+ responseBodyVariable: z.ZodString;
532
+ responseStatusVariable: z.ZodString;
533
+ }, z.core.$strip>;
534
+ }, z.core.$strip>, z.ZodObject<{
535
+ type: z.ZodLiteral<"MergeContact">;
536
+ settings: z.ZodObject<{
537
+ $invalid: z.ZodOptional<z.ZodBoolean>;
538
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
542
+ }, z.core.$strip>;
543
+ }, z.core.$strip>, z.ZodObject<{
544
+ type: z.ZodLiteral<"ExecuteScript">;
545
+ settings: z.ZodObject<{
546
+ $invalid: z.ZodOptional<z.ZodBoolean>;
547
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
548
+ source: z.ZodString;
549
+ inputVariables: z.ZodArray<z.ZodString>;
550
+ outputVariable: z.ZodString;
551
+ }, z.core.$strip>;
552
+ }, z.core.$strip>, z.ZodObject<{
553
+ type: z.ZodLiteral<"ExecuteScriptV2">;
554
+ settings: z.ZodObject<{
555
+ $invalid: z.ZodOptional<z.ZodBoolean>;
556
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
557
+ source: z.ZodString;
558
+ inputVariables: z.ZodArray<z.ZodString>;
559
+ outputVariable: z.ZodString;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ type: z.ZodLiteral<"SetVariable">;
563
+ settings: z.ZodObject<{
564
+ $invalid: z.ZodOptional<z.ZodBoolean>;
565
+ variable: z.ZodString;
566
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
567
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
568
+ }, z.core.$strip>;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ type: z.ZodLiteral<"ProcessCommand">;
571
+ settings: z.ZodObject<{
572
+ $invalid: z.ZodOptional<z.ZodBoolean>;
573
+ to: z.ZodString;
574
+ method: z.ZodEnum<{
575
+ get: "get";
576
+ set: "set";
577
+ merge: "merge";
578
+ delete: "delete";
579
+ }>;
580
+ uri: z.ZodString;
581
+ variable: z.ZodString;
582
+ from: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strip>;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ type: z.ZodLiteral<"ForwardToDesk">;
586
+ settings: z.ZodObject<{
587
+ $invalid: z.ZodOptional<z.ZodBoolean>;
588
+ }, z.core.$strip>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ type: z.ZodLiteral<"LeavingFromDesk">;
591
+ settings: z.ZodObject<{
592
+ $invalid: z.ZodOptional<z.ZodBoolean>;
593
+ }, z.core.$strip>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ type: z.ZodLiteral<"Redirect">;
596
+ settings: z.ZodObject<{
597
+ $invalid: z.ZodOptional<z.ZodBoolean>;
598
+ address: z.ZodString;
599
+ context: z.ZodObject<{
600
+ type: z.ZodLiteral<"text/plain">;
601
+ value: z.ZodString;
602
+ }, z.core.$strip>;
603
+ }, z.core.$strip>;
604
+ }, z.core.$strip>], "type">>>;
605
+ input: z.ZodOptional<z.ZodObject<{
606
+ $cardContent: z.ZodObject<{
607
+ document: z.ZodObject<{
608
+ id: z.ZodString;
609
+ type: z.ZodLiteral<"text/plain">;
610
+ content: z.ZodOptional<z.ZodString>;
611
+ textContent: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strip>;
613
+ editable: z.ZodBoolean;
614
+ editing: z.ZodBoolean;
615
+ deletable: z.ZodBoolean;
616
+ position: z.ZodLiteral<"right">;
617
+ }, z.core.$strip>;
618
+ $invalid: z.ZodBoolean;
619
+ bypass: z.ZodBoolean;
620
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
621
+ rule: z.ZodEnum<{
622
+ number: "number";
623
+ type: "type";
624
+ text: "text";
625
+ date: "date";
626
+ regex: "regex";
627
+ }>;
628
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
+ error: z.ZodString;
631
+ }, z.core.$strip>>>;
632
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
+ source: z.ZodEnum<{
636
+ context: "context";
637
+ input: "input";
638
+ }>;
639
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ comparison: z.ZodEnum<{
641
+ endsWith: "endsWith";
642
+ startsWith: "startsWith";
643
+ equals: "equals";
644
+ notEquals: "notEquals";
645
+ contains: "contains";
646
+ greaterThan: "greaterThan";
647
+ lessThan: "lessThan";
648
+ greaterThanOrEquals: "greaterThanOrEquals";
649
+ lessThanOrEquals: "lessThanOrEquals";
650
+ matches: "matches";
651
+ approximateTo: "approximateTo";
652
+ exists: "exists";
653
+ notExists: "notExists";
654
+ }>;
655
+ operator: z.ZodOptional<z.ZodEnum<{
656
+ or: "or";
657
+ and: "and";
658
+ }>>;
659
+ values: z.ZodArray<z.ZodString>;
660
+ }, z.core.$strip>>>;
661
+ }, z.core.$strip>>;
662
+ $invalid: z.ZodOptional<z.ZodBoolean>;
663
+ }, z.core.$strip>;
664
+ export declare const stateSchema: z.ZodObject<{
665
+ $contentActions: z.ZodArray<z.ZodObject<{
666
+ action: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
667
+ $id: z.ZodString;
668
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
669
+ "": "";
670
+ text: "text";
671
+ "select-immediate": "select-immediate";
672
+ select: "select";
673
+ media: "media";
674
+ "media-audio": "media-audio";
675
+ "media-video": "media-video";
676
+ "media-document": "media-document";
677
+ "chat-state": "chat-state";
678
+ "web-link": "web-link";
679
+ "raw-content": "raw-content";
680
+ }>>;
681
+ $title: z.ZodOptional<z.ZodString>;
682
+ $invalid: z.ZodOptional<z.ZodBoolean>;
683
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
684
+ source: z.ZodEnum<{
685
+ context: "context";
686
+ input: "input";
687
+ }>;
688
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ comparison: z.ZodEnum<{
690
+ endsWith: "endsWith";
691
+ startsWith: "startsWith";
692
+ equals: "equals";
693
+ notEquals: "notEquals";
694
+ contains: "contains";
695
+ greaterThan: "greaterThan";
696
+ lessThan: "lessThan";
697
+ greaterThanOrEquals: "greaterThanOrEquals";
698
+ lessThanOrEquals: "lessThanOrEquals";
699
+ matches: "matches";
700
+ approximateTo: "approximateTo";
701
+ exists: "exists";
702
+ notExists: "notExists";
703
+ }>;
704
+ operator: z.ZodOptional<z.ZodEnum<{
705
+ or: "or";
706
+ and: "and";
707
+ }>>;
708
+ values: z.ZodArray<z.ZodString>;
709
+ }, z.core.$strip>>>;
710
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
711
+ editable: z.ZodBoolean;
712
+ deletable: z.ZodBoolean;
713
+ position: z.ZodLiteral<"left">;
714
+ document: z.ZodObject<{
715
+ id: z.ZodString;
716
+ type: z.ZodUnion<[z.ZodEnum<{
717
+ "text/plain": "text/plain";
718
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
719
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
720
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
721
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
722
+ }>, z.ZodLiteral<"application/json">]>;
723
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
724
+ title: z.ZodOptional<z.ZodString>;
725
+ text: z.ZodOptional<z.ZodString>;
726
+ type: z.ZodString;
727
+ uri: z.ZodString;
728
+ }, z.core.$strip>]>, z.ZodObject<{
729
+ text: z.ZodString;
730
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
731
+ immediate: "immediate";
732
+ persistent: "persistent";
733
+ }>>>;
734
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
735
+ text: z.ZodString;
736
+ }, z.core.$strip>>]>;
737
+ }, z.core.$strip>]>, z.ZodObject<{
738
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ text: z.ZodString;
740
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
741
+ blank: "blank";
742
+ self: "self";
743
+ selfCompact: "selfCompact";
744
+ selfTall: "selfTall";
745
+ }>>>;
746
+ uri: z.ZodString;
747
+ }, z.core.$strip>]>, z.ZodObject<{
748
+ state: z.ZodString;
749
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
750
+ }, z.core.$strip>]>, z.ZodString]>;
751
+ textContent: z.ZodOptional<z.ZodString>;
752
+ }, z.core.$strip>;
753
+ }, z.core.$strip>>>;
754
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
755
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
756
+ type: z.ZodLiteral<"SendMessage">;
757
+ settings: z.ZodObject<{
758
+ $invalid: z.ZodOptional<z.ZodBoolean>;
759
+ type: z.ZodOptional<z.ZodEnum<{
760
+ "text/plain": "text/plain";
761
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
762
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
763
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
764
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
765
+ }>>;
766
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
767
+ title: z.ZodOptional<z.ZodString>;
768
+ text: z.ZodOptional<z.ZodString>;
769
+ type: z.ZodString;
770
+ uri: z.ZodString;
771
+ }, z.core.$strip>]>, z.ZodObject<{
772
+ text: z.ZodString;
773
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
774
+ immediate: "immediate";
775
+ persistent: "persistent";
776
+ }>>>;
777
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
778
+ text: z.ZodString;
779
+ }, z.core.$strip>>]>;
780
+ }, z.core.$strip>]>, z.ZodObject<{
781
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ text: z.ZodString;
783
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
784
+ blank: "blank";
785
+ self: "self";
786
+ selfCompact: "selfCompact";
787
+ selfTall: "selfTall";
788
+ }>>>;
789
+ uri: z.ZodString;
790
+ }, z.core.$strip>]>, z.ZodObject<{
791
+ state: z.ZodString;
792
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
793
+ }, z.core.$strip>]>;
794
+ id: z.ZodOptional<z.ZodString>;
795
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
796
+ }, z.core.$strip>;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ type: z.ZodLiteral<"SendRawMessage">;
799
+ settings: z.ZodObject<{
800
+ $invalid: z.ZodOptional<z.ZodBoolean>;
801
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
802
+ rawContent: z.ZodString;
803
+ }, z.core.$strip>;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ type: z.ZodLiteral<"TrackEvent">;
806
+ settings: z.ZodObject<{
807
+ $invalid: z.ZodOptional<z.ZodBoolean>;
808
+ category: z.ZodString;
809
+ action: z.ZodString;
810
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
811
+ }, z.core.$strip>;
812
+ }, z.core.$strip>, z.ZodObject<{
813
+ type: z.ZodLiteral<"ProcessHttp">;
814
+ settings: z.ZodObject<{
815
+ $invalid: z.ZodOptional<z.ZodBoolean>;
816
+ method: z.ZodEnum<{
817
+ POST: "POST";
818
+ GET: "GET";
819
+ PUT: "PUT";
820
+ DELETE: "DELETE";
821
+ }>;
822
+ uri: z.ZodString;
823
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
824
+ body: z.ZodString;
825
+ responseBodyVariable: z.ZodString;
826
+ responseStatusVariable: z.ZodString;
827
+ }, z.core.$strip>;
828
+ }, z.core.$strip>, z.ZodObject<{
829
+ type: z.ZodLiteral<"MergeContact">;
830
+ settings: z.ZodObject<{
831
+ $invalid: z.ZodOptional<z.ZodBoolean>;
832
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
836
+ }, z.core.$strip>;
837
+ }, z.core.$strip>, z.ZodObject<{
838
+ type: z.ZodLiteral<"ExecuteScript">;
839
+ settings: z.ZodObject<{
840
+ $invalid: z.ZodOptional<z.ZodBoolean>;
841
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
842
+ source: z.ZodString;
843
+ inputVariables: z.ZodArray<z.ZodString>;
844
+ outputVariable: z.ZodString;
845
+ }, z.core.$strip>;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ type: z.ZodLiteral<"ExecuteScriptV2">;
848
+ settings: z.ZodObject<{
849
+ $invalid: z.ZodOptional<z.ZodBoolean>;
850
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
851
+ source: z.ZodString;
852
+ inputVariables: z.ZodArray<z.ZodString>;
853
+ outputVariable: z.ZodString;
854
+ }, z.core.$strip>;
855
+ }, z.core.$strip>, z.ZodObject<{
856
+ type: z.ZodLiteral<"SetVariable">;
857
+ settings: z.ZodObject<{
858
+ $invalid: z.ZodOptional<z.ZodBoolean>;
859
+ variable: z.ZodString;
860
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
861
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
862
+ }, z.core.$strip>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ type: z.ZodLiteral<"ProcessCommand">;
865
+ settings: z.ZodObject<{
866
+ $invalid: z.ZodOptional<z.ZodBoolean>;
867
+ to: z.ZodString;
868
+ method: z.ZodEnum<{
869
+ get: "get";
870
+ set: "set";
871
+ merge: "merge";
872
+ delete: "delete";
873
+ }>;
874
+ uri: z.ZodString;
875
+ variable: z.ZodString;
876
+ from: z.ZodOptional<z.ZodString>;
877
+ }, z.core.$strip>;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ type: z.ZodLiteral<"ForwardToDesk">;
880
+ settings: z.ZodObject<{
881
+ $invalid: z.ZodOptional<z.ZodBoolean>;
882
+ }, z.core.$strip>;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ type: z.ZodLiteral<"LeavingFromDesk">;
885
+ settings: z.ZodObject<{
886
+ $invalid: z.ZodOptional<z.ZodBoolean>;
887
+ }, z.core.$strip>;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ type: z.ZodLiteral<"Redirect">;
890
+ settings: z.ZodObject<{
891
+ $invalid: z.ZodOptional<z.ZodBoolean>;
892
+ address: z.ZodString;
893
+ context: z.ZodObject<{
894
+ type: z.ZodLiteral<"text/plain">;
895
+ value: z.ZodString;
896
+ }, z.core.$strip>;
897
+ }, z.core.$strip>;
898
+ }, z.core.$strip>], "type">>>;
899
+ input: z.ZodOptional<z.ZodObject<{
900
+ $cardContent: z.ZodObject<{
901
+ document: z.ZodObject<{
902
+ id: z.ZodString;
903
+ type: z.ZodLiteral<"text/plain">;
904
+ content: z.ZodOptional<z.ZodString>;
905
+ textContent: z.ZodOptional<z.ZodString>;
906
+ }, z.core.$strip>;
907
+ editable: z.ZodBoolean;
908
+ editing: z.ZodBoolean;
909
+ deletable: z.ZodBoolean;
910
+ position: z.ZodLiteral<"right">;
911
+ }, z.core.$strip>;
912
+ $invalid: z.ZodBoolean;
913
+ bypass: z.ZodBoolean;
914
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
915
+ rule: z.ZodEnum<{
916
+ number: "number";
917
+ type: "type";
918
+ text: "text";
919
+ date: "date";
920
+ regex: "regex";
921
+ }>;
922
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
923
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
+ error: z.ZodString;
925
+ }, z.core.$strip>>>;
926
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
929
+ source: z.ZodEnum<{
930
+ context: "context";
931
+ input: "input";
932
+ }>;
933
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ comparison: z.ZodEnum<{
935
+ endsWith: "endsWith";
936
+ startsWith: "startsWith";
937
+ equals: "equals";
938
+ notEquals: "notEquals";
939
+ contains: "contains";
940
+ greaterThan: "greaterThan";
941
+ lessThan: "lessThan";
942
+ greaterThanOrEquals: "greaterThanOrEquals";
943
+ lessThanOrEquals: "lessThanOrEquals";
944
+ matches: "matches";
945
+ approximateTo: "approximateTo";
946
+ exists: "exists";
947
+ notExists: "notExists";
948
+ }>;
949
+ operator: z.ZodOptional<z.ZodEnum<{
950
+ or: "or";
951
+ and: "and";
952
+ }>>;
953
+ values: z.ZodArray<z.ZodString>;
954
+ }, z.core.$strip>>>;
955
+ }, z.core.$strip>>;
956
+ $invalid: z.ZodOptional<z.ZodBoolean>;
957
+ }, z.core.$strip>>;
958
+ $conditionOutputs: z.ZodArray<z.ZodObject<{
959
+ stateId: z.ZodString;
960
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
961
+ state: "state";
962
+ variable: "variable";
963
+ }>>;
964
+ $id: z.ZodOptional<z.ZodString>;
965
+ $invalid: z.ZodOptional<z.ZodBoolean>;
966
+ $connId: z.ZodOptional<z.ZodString>;
967
+ $contentId: z.ZodOptional<z.ZodString>;
968
+ $isDeskOutput: z.ZodOptional<z.ZodBoolean>;
969
+ $isDeskCustomOutput: z.ZodOptional<z.ZodBoolean>;
970
+ $isDeskDefaultOutput: z.ZodOptional<z.ZodBoolean>;
971
+ conditions: z.ZodArray<z.ZodObject<{
972
+ source: z.ZodEnum<{
973
+ context: "context";
974
+ input: "input";
975
+ }>;
976
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ comparison: z.ZodEnum<{
978
+ endsWith: "endsWith";
979
+ startsWith: "startsWith";
980
+ equals: "equals";
981
+ notEquals: "notEquals";
982
+ contains: "contains";
983
+ greaterThan: "greaterThan";
984
+ lessThan: "lessThan";
985
+ greaterThanOrEquals: "greaterThanOrEquals";
986
+ lessThanOrEquals: "lessThanOrEquals";
987
+ matches: "matches";
988
+ approximateTo: "approximateTo";
989
+ exists: "exists";
990
+ notExists: "notExists";
991
+ }>;
992
+ operator: z.ZodOptional<z.ZodEnum<{
993
+ or: "or";
994
+ and: "and";
995
+ }>>;
996
+ values: z.ZodArray<z.ZodString>;
997
+ }, z.core.$strip>>;
998
+ }, z.core.$strip>>;
999
+ $enteringCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1000
+ $id: z.ZodString;
1001
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1002
+ "": "";
1003
+ text: "text";
1004
+ "select-immediate": "select-immediate";
1005
+ select: "select";
1006
+ media: "media";
1007
+ "media-audio": "media-audio";
1008
+ "media-video": "media-video";
1009
+ "media-document": "media-document";
1010
+ "chat-state": "chat-state";
1011
+ "web-link": "web-link";
1012
+ "raw-content": "raw-content";
1013
+ }>>;
1014
+ $title: z.ZodOptional<z.ZodString>;
1015
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1016
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1017
+ source: z.ZodEnum<{
1018
+ context: "context";
1019
+ input: "input";
1020
+ }>;
1021
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
+ comparison: z.ZodEnum<{
1023
+ endsWith: "endsWith";
1024
+ startsWith: "startsWith";
1025
+ equals: "equals";
1026
+ notEquals: "notEquals";
1027
+ contains: "contains";
1028
+ greaterThan: "greaterThan";
1029
+ lessThan: "lessThan";
1030
+ greaterThanOrEquals: "greaterThanOrEquals";
1031
+ lessThanOrEquals: "lessThanOrEquals";
1032
+ matches: "matches";
1033
+ approximateTo: "approximateTo";
1034
+ exists: "exists";
1035
+ notExists: "notExists";
1036
+ }>;
1037
+ operator: z.ZodOptional<z.ZodEnum<{
1038
+ or: "or";
1039
+ and: "and";
1040
+ }>>;
1041
+ values: z.ZodArray<z.ZodString>;
1042
+ }, z.core.$strip>>>;
1043
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1044
+ editable: z.ZodBoolean;
1045
+ deletable: z.ZodBoolean;
1046
+ position: z.ZodLiteral<"left">;
1047
+ document: z.ZodObject<{
1048
+ id: z.ZodString;
1049
+ type: z.ZodUnion<[z.ZodEnum<{
1050
+ "text/plain": "text/plain";
1051
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1052
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1053
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1054
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1055
+ }>, z.ZodLiteral<"application/json">]>;
1056
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1057
+ title: z.ZodOptional<z.ZodString>;
1058
+ text: z.ZodOptional<z.ZodString>;
1059
+ type: z.ZodString;
1060
+ uri: z.ZodString;
1061
+ }, z.core.$strip>]>, z.ZodObject<{
1062
+ text: z.ZodString;
1063
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1064
+ immediate: "immediate";
1065
+ persistent: "persistent";
1066
+ }>>>;
1067
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1068
+ text: z.ZodString;
1069
+ }, z.core.$strip>>]>;
1070
+ }, z.core.$strip>]>, z.ZodObject<{
1071
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
+ text: z.ZodString;
1073
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1074
+ blank: "blank";
1075
+ self: "self";
1076
+ selfCompact: "selfCompact";
1077
+ selfTall: "selfTall";
1078
+ }>>>;
1079
+ uri: z.ZodString;
1080
+ }, z.core.$strip>]>, z.ZodObject<{
1081
+ state: z.ZodString;
1082
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1083
+ }, z.core.$strip>]>, z.ZodString]>;
1084
+ textContent: z.ZodOptional<z.ZodString>;
1085
+ }, z.core.$strip>;
1086
+ }, z.core.$strip>>>;
1087
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1088
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1089
+ type: z.ZodLiteral<"SendMessage">;
1090
+ settings: z.ZodObject<{
1091
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1092
+ type: z.ZodOptional<z.ZodEnum<{
1093
+ "text/plain": "text/plain";
1094
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1095
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1096
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1097
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1098
+ }>>;
1099
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1100
+ title: z.ZodOptional<z.ZodString>;
1101
+ text: z.ZodOptional<z.ZodString>;
1102
+ type: z.ZodString;
1103
+ uri: z.ZodString;
1104
+ }, z.core.$strip>]>, z.ZodObject<{
1105
+ text: z.ZodString;
1106
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1107
+ immediate: "immediate";
1108
+ persistent: "persistent";
1109
+ }>>>;
1110
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1111
+ text: z.ZodString;
1112
+ }, z.core.$strip>>]>;
1113
+ }, z.core.$strip>]>, z.ZodObject<{
1114
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1115
+ text: z.ZodString;
1116
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1117
+ blank: "blank";
1118
+ self: "self";
1119
+ selfCompact: "selfCompact";
1120
+ selfTall: "selfTall";
1121
+ }>>>;
1122
+ uri: z.ZodString;
1123
+ }, z.core.$strip>]>, z.ZodObject<{
1124
+ state: z.ZodString;
1125
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1126
+ }, z.core.$strip>]>;
1127
+ id: z.ZodOptional<z.ZodString>;
1128
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1129
+ }, z.core.$strip>;
1130
+ }, z.core.$strip>, z.ZodObject<{
1131
+ type: z.ZodLiteral<"SendRawMessage">;
1132
+ settings: z.ZodObject<{
1133
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1134
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
1135
+ rawContent: z.ZodString;
1136
+ }, z.core.$strip>;
1137
+ }, z.core.$strip>, z.ZodObject<{
1138
+ type: z.ZodLiteral<"TrackEvent">;
1139
+ settings: z.ZodObject<{
1140
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1141
+ category: z.ZodString;
1142
+ action: z.ZodString;
1143
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1144
+ }, z.core.$strip>;
1145
+ }, z.core.$strip>, z.ZodObject<{
1146
+ type: z.ZodLiteral<"ProcessHttp">;
1147
+ settings: z.ZodObject<{
1148
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1149
+ method: z.ZodEnum<{
1150
+ POST: "POST";
1151
+ GET: "GET";
1152
+ PUT: "PUT";
1153
+ DELETE: "DELETE";
1154
+ }>;
1155
+ uri: z.ZodString;
1156
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1157
+ body: z.ZodString;
1158
+ responseBodyVariable: z.ZodString;
1159
+ responseStatusVariable: z.ZodString;
1160
+ }, z.core.$strip>;
1161
+ }, z.core.$strip>, z.ZodObject<{
1162
+ type: z.ZodLiteral<"MergeContact">;
1163
+ settings: z.ZodObject<{
1164
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1165
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1166
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1167
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1168
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1169
+ }, z.core.$strip>;
1170
+ }, z.core.$strip>, z.ZodObject<{
1171
+ type: z.ZodLiteral<"ExecuteScript">;
1172
+ settings: z.ZodObject<{
1173
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1174
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1175
+ source: z.ZodString;
1176
+ inputVariables: z.ZodArray<z.ZodString>;
1177
+ outputVariable: z.ZodString;
1178
+ }, z.core.$strip>;
1179
+ }, z.core.$strip>, z.ZodObject<{
1180
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1181
+ settings: z.ZodObject<{
1182
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1183
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1184
+ source: z.ZodString;
1185
+ inputVariables: z.ZodArray<z.ZodString>;
1186
+ outputVariable: z.ZodString;
1187
+ }, z.core.$strip>;
1188
+ }, z.core.$strip>, z.ZodObject<{
1189
+ type: z.ZodLiteral<"SetVariable">;
1190
+ settings: z.ZodObject<{
1191
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1192
+ variable: z.ZodString;
1193
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1194
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1195
+ }, z.core.$strip>;
1196
+ }, z.core.$strip>, z.ZodObject<{
1197
+ type: z.ZodLiteral<"ProcessCommand">;
1198
+ settings: z.ZodObject<{
1199
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1200
+ to: z.ZodString;
1201
+ method: z.ZodEnum<{
1202
+ get: "get";
1203
+ set: "set";
1204
+ merge: "merge";
1205
+ delete: "delete";
1206
+ }>;
1207
+ uri: z.ZodString;
1208
+ variable: z.ZodString;
1209
+ from: z.ZodOptional<z.ZodString>;
1210
+ }, z.core.$strip>;
1211
+ }, z.core.$strip>, z.ZodObject<{
1212
+ type: z.ZodLiteral<"ForwardToDesk">;
1213
+ settings: z.ZodObject<{
1214
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1215
+ }, z.core.$strip>;
1216
+ }, z.core.$strip>, z.ZodObject<{
1217
+ type: z.ZodLiteral<"LeavingFromDesk">;
1218
+ settings: z.ZodObject<{
1219
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1220
+ }, z.core.$strip>;
1221
+ }, z.core.$strip>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"Redirect">;
1223
+ settings: z.ZodObject<{
1224
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1225
+ address: z.ZodString;
1226
+ context: z.ZodObject<{
1227
+ type: z.ZodLiteral<"text/plain">;
1228
+ value: z.ZodString;
1229
+ }, z.core.$strip>;
1230
+ }, z.core.$strip>;
1231
+ }, z.core.$strip>], "type">>>;
1232
+ $leavingCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1233
+ $id: z.ZodString;
1234
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1235
+ "": "";
1236
+ text: "text";
1237
+ "select-immediate": "select-immediate";
1238
+ select: "select";
1239
+ media: "media";
1240
+ "media-audio": "media-audio";
1241
+ "media-video": "media-video";
1242
+ "media-document": "media-document";
1243
+ "chat-state": "chat-state";
1244
+ "web-link": "web-link";
1245
+ "raw-content": "raw-content";
1246
+ }>>;
1247
+ $title: z.ZodOptional<z.ZodString>;
1248
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1249
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1250
+ source: z.ZodEnum<{
1251
+ context: "context";
1252
+ input: "input";
1253
+ }>;
1254
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1255
+ comparison: z.ZodEnum<{
1256
+ endsWith: "endsWith";
1257
+ startsWith: "startsWith";
1258
+ equals: "equals";
1259
+ notEquals: "notEquals";
1260
+ contains: "contains";
1261
+ greaterThan: "greaterThan";
1262
+ lessThan: "lessThan";
1263
+ greaterThanOrEquals: "greaterThanOrEquals";
1264
+ lessThanOrEquals: "lessThanOrEquals";
1265
+ matches: "matches";
1266
+ approximateTo: "approximateTo";
1267
+ exists: "exists";
1268
+ notExists: "notExists";
1269
+ }>;
1270
+ operator: z.ZodOptional<z.ZodEnum<{
1271
+ or: "or";
1272
+ and: "and";
1273
+ }>>;
1274
+ values: z.ZodArray<z.ZodString>;
1275
+ }, z.core.$strip>>>;
1276
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1277
+ editable: z.ZodBoolean;
1278
+ deletable: z.ZodBoolean;
1279
+ position: z.ZodLiteral<"left">;
1280
+ document: z.ZodObject<{
1281
+ id: z.ZodString;
1282
+ type: z.ZodUnion<[z.ZodEnum<{
1283
+ "text/plain": "text/plain";
1284
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1285
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1286
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1287
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1288
+ }>, z.ZodLiteral<"application/json">]>;
1289
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1290
+ title: z.ZodOptional<z.ZodString>;
1291
+ text: z.ZodOptional<z.ZodString>;
1292
+ type: z.ZodString;
1293
+ uri: z.ZodString;
1294
+ }, z.core.$strip>]>, z.ZodObject<{
1295
+ text: z.ZodString;
1296
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1297
+ immediate: "immediate";
1298
+ persistent: "persistent";
1299
+ }>>>;
1300
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1301
+ text: z.ZodString;
1302
+ }, z.core.$strip>>]>;
1303
+ }, z.core.$strip>]>, z.ZodObject<{
1304
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1305
+ text: z.ZodString;
1306
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1307
+ blank: "blank";
1308
+ self: "self";
1309
+ selfCompact: "selfCompact";
1310
+ selfTall: "selfTall";
1311
+ }>>>;
1312
+ uri: z.ZodString;
1313
+ }, z.core.$strip>]>, z.ZodObject<{
1314
+ state: z.ZodString;
1315
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1316
+ }, z.core.$strip>]>, z.ZodString]>;
1317
+ textContent: z.ZodOptional<z.ZodString>;
1318
+ }, z.core.$strip>;
1319
+ }, z.core.$strip>>>;
1320
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1321
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1322
+ type: z.ZodLiteral<"SendMessage">;
1323
+ settings: z.ZodObject<{
1324
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1325
+ type: z.ZodOptional<z.ZodEnum<{
1326
+ "text/plain": "text/plain";
1327
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1328
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1329
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1330
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1331
+ }>>;
1332
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1333
+ title: z.ZodOptional<z.ZodString>;
1334
+ text: z.ZodOptional<z.ZodString>;
1335
+ type: z.ZodString;
1336
+ uri: z.ZodString;
1337
+ }, z.core.$strip>]>, z.ZodObject<{
1338
+ text: z.ZodString;
1339
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1340
+ immediate: "immediate";
1341
+ persistent: "persistent";
1342
+ }>>>;
1343
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1344
+ text: z.ZodString;
1345
+ }, z.core.$strip>>]>;
1346
+ }, z.core.$strip>]>, z.ZodObject<{
1347
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ text: z.ZodString;
1349
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1350
+ blank: "blank";
1351
+ self: "self";
1352
+ selfCompact: "selfCompact";
1353
+ selfTall: "selfTall";
1354
+ }>>>;
1355
+ uri: z.ZodString;
1356
+ }, z.core.$strip>]>, z.ZodObject<{
1357
+ state: z.ZodString;
1358
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1359
+ }, z.core.$strip>]>;
1360
+ id: z.ZodOptional<z.ZodString>;
1361
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1362
+ }, z.core.$strip>;
1363
+ }, z.core.$strip>, z.ZodObject<{
1364
+ type: z.ZodLiteral<"SendRawMessage">;
1365
+ settings: z.ZodObject<{
1366
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1367
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
1368
+ rawContent: z.ZodString;
1369
+ }, z.core.$strip>;
1370
+ }, z.core.$strip>, z.ZodObject<{
1371
+ type: z.ZodLiteral<"TrackEvent">;
1372
+ settings: z.ZodObject<{
1373
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1374
+ category: z.ZodString;
1375
+ action: z.ZodString;
1376
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1377
+ }, z.core.$strip>;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ type: z.ZodLiteral<"ProcessHttp">;
1380
+ settings: z.ZodObject<{
1381
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1382
+ method: z.ZodEnum<{
1383
+ POST: "POST";
1384
+ GET: "GET";
1385
+ PUT: "PUT";
1386
+ DELETE: "DELETE";
1387
+ }>;
1388
+ uri: z.ZodString;
1389
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1390
+ body: z.ZodString;
1391
+ responseBodyVariable: z.ZodString;
1392
+ responseStatusVariable: z.ZodString;
1393
+ }, z.core.$strip>;
1394
+ }, z.core.$strip>, z.ZodObject<{
1395
+ type: z.ZodLiteral<"MergeContact">;
1396
+ settings: z.ZodObject<{
1397
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1398
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1402
+ }, z.core.$strip>;
1403
+ }, z.core.$strip>, z.ZodObject<{
1404
+ type: z.ZodLiteral<"ExecuteScript">;
1405
+ settings: z.ZodObject<{
1406
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1407
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1408
+ source: z.ZodString;
1409
+ inputVariables: z.ZodArray<z.ZodString>;
1410
+ outputVariable: z.ZodString;
1411
+ }, z.core.$strip>;
1412
+ }, z.core.$strip>, z.ZodObject<{
1413
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1414
+ settings: z.ZodObject<{
1415
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1416
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1417
+ source: z.ZodString;
1418
+ inputVariables: z.ZodArray<z.ZodString>;
1419
+ outputVariable: z.ZodString;
1420
+ }, z.core.$strip>;
1421
+ }, z.core.$strip>, z.ZodObject<{
1422
+ type: z.ZodLiteral<"SetVariable">;
1423
+ settings: z.ZodObject<{
1424
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1425
+ variable: z.ZodString;
1426
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1427
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1428
+ }, z.core.$strip>;
1429
+ }, z.core.$strip>, z.ZodObject<{
1430
+ type: z.ZodLiteral<"ProcessCommand">;
1431
+ settings: z.ZodObject<{
1432
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1433
+ to: z.ZodString;
1434
+ method: z.ZodEnum<{
1435
+ get: "get";
1436
+ set: "set";
1437
+ merge: "merge";
1438
+ delete: "delete";
1439
+ }>;
1440
+ uri: z.ZodString;
1441
+ variable: z.ZodString;
1442
+ from: z.ZodOptional<z.ZodString>;
1443
+ }, z.core.$strip>;
1444
+ }, z.core.$strip>, z.ZodObject<{
1445
+ type: z.ZodLiteral<"ForwardToDesk">;
1446
+ settings: z.ZodObject<{
1447
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1448
+ }, z.core.$strip>;
1449
+ }, z.core.$strip>, z.ZodObject<{
1450
+ type: z.ZodLiteral<"LeavingFromDesk">;
1451
+ settings: z.ZodObject<{
1452
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1453
+ }, z.core.$strip>;
1454
+ }, z.core.$strip>, z.ZodObject<{
1455
+ type: z.ZodLiteral<"Redirect">;
1456
+ settings: z.ZodObject<{
1457
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1458
+ address: z.ZodString;
1459
+ context: z.ZodObject<{
1460
+ type: z.ZodLiteral<"text/plain">;
1461
+ value: z.ZodString;
1462
+ }, z.core.$strip>;
1463
+ }, z.core.$strip>;
1464
+ }, z.core.$strip>], "type">>>;
1465
+ $localCustomActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1466
+ $id: z.ZodString;
1467
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1468
+ "": "";
1469
+ text: "text";
1470
+ "select-immediate": "select-immediate";
1471
+ select: "select";
1472
+ media: "media";
1473
+ "media-audio": "media-audio";
1474
+ "media-video": "media-video";
1475
+ "media-document": "media-document";
1476
+ "chat-state": "chat-state";
1477
+ "web-link": "web-link";
1478
+ "raw-content": "raw-content";
1479
+ }>>;
1480
+ $title: z.ZodOptional<z.ZodString>;
1481
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1482
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1483
+ source: z.ZodEnum<{
1484
+ context: "context";
1485
+ input: "input";
1486
+ }>;
1487
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ comparison: z.ZodEnum<{
1489
+ endsWith: "endsWith";
1490
+ startsWith: "startsWith";
1491
+ equals: "equals";
1492
+ notEquals: "notEquals";
1493
+ contains: "contains";
1494
+ greaterThan: "greaterThan";
1495
+ lessThan: "lessThan";
1496
+ greaterThanOrEquals: "greaterThanOrEquals";
1497
+ lessThanOrEquals: "lessThanOrEquals";
1498
+ matches: "matches";
1499
+ approximateTo: "approximateTo";
1500
+ exists: "exists";
1501
+ notExists: "notExists";
1502
+ }>;
1503
+ operator: z.ZodOptional<z.ZodEnum<{
1504
+ or: "or";
1505
+ and: "and";
1506
+ }>>;
1507
+ values: z.ZodArray<z.ZodString>;
1508
+ }, z.core.$strip>>>;
1509
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1510
+ editable: z.ZodBoolean;
1511
+ deletable: z.ZodBoolean;
1512
+ position: z.ZodLiteral<"left">;
1513
+ document: z.ZodObject<{
1514
+ id: z.ZodString;
1515
+ type: z.ZodUnion<[z.ZodEnum<{
1516
+ "text/plain": "text/plain";
1517
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1518
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1519
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1520
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1521
+ }>, z.ZodLiteral<"application/json">]>;
1522
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1523
+ title: z.ZodOptional<z.ZodString>;
1524
+ text: z.ZodOptional<z.ZodString>;
1525
+ type: z.ZodString;
1526
+ uri: z.ZodString;
1527
+ }, z.core.$strip>]>, z.ZodObject<{
1528
+ text: z.ZodString;
1529
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1530
+ immediate: "immediate";
1531
+ persistent: "persistent";
1532
+ }>>>;
1533
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1534
+ text: z.ZodString;
1535
+ }, z.core.$strip>>]>;
1536
+ }, z.core.$strip>]>, z.ZodObject<{
1537
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
+ text: z.ZodString;
1539
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1540
+ blank: "blank";
1541
+ self: "self";
1542
+ selfCompact: "selfCompact";
1543
+ selfTall: "selfTall";
1544
+ }>>>;
1545
+ uri: z.ZodString;
1546
+ }, z.core.$strip>]>, z.ZodObject<{
1547
+ state: z.ZodString;
1548
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1549
+ }, z.core.$strip>]>, z.ZodString]>;
1550
+ textContent: z.ZodOptional<z.ZodString>;
1551
+ }, z.core.$strip>;
1552
+ }, z.core.$strip>>>;
1553
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1554
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1555
+ type: z.ZodLiteral<"SendMessage">;
1556
+ settings: z.ZodObject<{
1557
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1558
+ type: z.ZodOptional<z.ZodEnum<{
1559
+ "text/plain": "text/plain";
1560
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1561
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1562
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1563
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1564
+ }>>;
1565
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1566
+ title: z.ZodOptional<z.ZodString>;
1567
+ text: z.ZodOptional<z.ZodString>;
1568
+ type: z.ZodString;
1569
+ uri: z.ZodString;
1570
+ }, z.core.$strip>]>, z.ZodObject<{
1571
+ text: z.ZodString;
1572
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1573
+ immediate: "immediate";
1574
+ persistent: "persistent";
1575
+ }>>>;
1576
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1577
+ text: z.ZodString;
1578
+ }, z.core.$strip>>]>;
1579
+ }, z.core.$strip>]>, z.ZodObject<{
1580
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
+ text: z.ZodString;
1582
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1583
+ blank: "blank";
1584
+ self: "self";
1585
+ selfCompact: "selfCompact";
1586
+ selfTall: "selfTall";
1587
+ }>>>;
1588
+ uri: z.ZodString;
1589
+ }, z.core.$strip>]>, z.ZodObject<{
1590
+ state: z.ZodString;
1591
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1592
+ }, z.core.$strip>]>;
1593
+ id: z.ZodOptional<z.ZodString>;
1594
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1595
+ }, z.core.$strip>;
1596
+ }, z.core.$strip>, z.ZodObject<{
1597
+ type: z.ZodLiteral<"SendRawMessage">;
1598
+ settings: z.ZodObject<{
1599
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1600
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
1601
+ rawContent: z.ZodString;
1602
+ }, z.core.$strip>;
1603
+ }, z.core.$strip>, z.ZodObject<{
1604
+ type: z.ZodLiteral<"TrackEvent">;
1605
+ settings: z.ZodObject<{
1606
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1607
+ category: z.ZodString;
1608
+ action: z.ZodString;
1609
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1610
+ }, z.core.$strip>;
1611
+ }, z.core.$strip>, z.ZodObject<{
1612
+ type: z.ZodLiteral<"ProcessHttp">;
1613
+ settings: z.ZodObject<{
1614
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1615
+ method: z.ZodEnum<{
1616
+ POST: "POST";
1617
+ GET: "GET";
1618
+ PUT: "PUT";
1619
+ DELETE: "DELETE";
1620
+ }>;
1621
+ uri: z.ZodString;
1622
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1623
+ body: z.ZodString;
1624
+ responseBodyVariable: z.ZodString;
1625
+ responseStatusVariable: z.ZodString;
1626
+ }, z.core.$strip>;
1627
+ }, z.core.$strip>, z.ZodObject<{
1628
+ type: z.ZodLiteral<"MergeContact">;
1629
+ settings: z.ZodObject<{
1630
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1631
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1632
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1633
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1634
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ type: z.ZodLiteral<"ExecuteScript">;
1638
+ settings: z.ZodObject<{
1639
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1640
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1641
+ source: z.ZodString;
1642
+ inputVariables: z.ZodArray<z.ZodString>;
1643
+ outputVariable: z.ZodString;
1644
+ }, z.core.$strip>;
1645
+ }, z.core.$strip>, z.ZodObject<{
1646
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1647
+ settings: z.ZodObject<{
1648
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1649
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1650
+ source: z.ZodString;
1651
+ inputVariables: z.ZodArray<z.ZodString>;
1652
+ outputVariable: z.ZodString;
1653
+ }, z.core.$strip>;
1654
+ }, z.core.$strip>, z.ZodObject<{
1655
+ type: z.ZodLiteral<"SetVariable">;
1656
+ settings: z.ZodObject<{
1657
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1658
+ variable: z.ZodString;
1659
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1660
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1661
+ }, z.core.$strip>;
1662
+ }, z.core.$strip>, z.ZodObject<{
1663
+ type: z.ZodLiteral<"ProcessCommand">;
1664
+ settings: z.ZodObject<{
1665
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1666
+ to: z.ZodString;
1667
+ method: z.ZodEnum<{
1668
+ get: "get";
1669
+ set: "set";
1670
+ merge: "merge";
1671
+ delete: "delete";
1672
+ }>;
1673
+ uri: z.ZodString;
1674
+ variable: z.ZodString;
1675
+ from: z.ZodOptional<z.ZodString>;
1676
+ }, z.core.$strip>;
1677
+ }, z.core.$strip>, z.ZodObject<{
1678
+ type: z.ZodLiteral<"ForwardToDesk">;
1679
+ settings: z.ZodObject<{
1680
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1681
+ }, z.core.$strip>;
1682
+ }, z.core.$strip>, z.ZodObject<{
1683
+ type: z.ZodLiteral<"LeavingFromDesk">;
1684
+ settings: z.ZodObject<{
1685
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1686
+ }, z.core.$strip>;
1687
+ }, z.core.$strip>, z.ZodObject<{
1688
+ type: z.ZodLiteral<"Redirect">;
1689
+ settings: z.ZodObject<{
1690
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1691
+ address: z.ZodString;
1692
+ context: z.ZodObject<{
1693
+ type: z.ZodLiteral<"text/plain">;
1694
+ value: z.ZodString;
1695
+ }, z.core.$strip>;
1696
+ }, z.core.$strip>;
1697
+ }, z.core.$strip>], "type">>>>;
1698
+ $inputSuggestions: z.ZodArray<z.ZodString>;
1699
+ $defaultOutput: z.ZodObject<{
1700
+ stateId: z.ZodString;
1701
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
1702
+ state: "state";
1703
+ variable: "variable";
1704
+ }>>;
1705
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1706
+ }, z.core.$strip>;
1707
+ isAiGenerated: z.ZodOptional<z.ZodBoolean>;
1708
+ deskStateVersion: z.ZodOptional<z.ZodString>;
1709
+ $afterStateChangedActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1710
+ $id: z.ZodString;
1711
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1712
+ "": "";
1713
+ text: "text";
1714
+ "select-immediate": "select-immediate";
1715
+ select: "select";
1716
+ media: "media";
1717
+ "media-audio": "media-audio";
1718
+ "media-video": "media-video";
1719
+ "media-document": "media-document";
1720
+ "chat-state": "chat-state";
1721
+ "web-link": "web-link";
1722
+ "raw-content": "raw-content";
1723
+ }>>;
1724
+ $title: z.ZodOptional<z.ZodString>;
1725
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1726
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1727
+ source: z.ZodEnum<{
1728
+ context: "context";
1729
+ input: "input";
1730
+ }>;
1731
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
+ comparison: z.ZodEnum<{
1733
+ endsWith: "endsWith";
1734
+ startsWith: "startsWith";
1735
+ equals: "equals";
1736
+ notEquals: "notEquals";
1737
+ contains: "contains";
1738
+ greaterThan: "greaterThan";
1739
+ lessThan: "lessThan";
1740
+ greaterThanOrEquals: "greaterThanOrEquals";
1741
+ lessThanOrEquals: "lessThanOrEquals";
1742
+ matches: "matches";
1743
+ approximateTo: "approximateTo";
1744
+ exists: "exists";
1745
+ notExists: "notExists";
1746
+ }>;
1747
+ operator: z.ZodOptional<z.ZodEnum<{
1748
+ or: "or";
1749
+ and: "and";
1750
+ }>>;
1751
+ values: z.ZodArray<z.ZodString>;
1752
+ }, z.core.$strip>>>;
1753
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1754
+ editable: z.ZodBoolean;
1755
+ deletable: z.ZodBoolean;
1756
+ position: z.ZodLiteral<"left">;
1757
+ document: z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ type: z.ZodUnion<[z.ZodEnum<{
1760
+ "text/plain": "text/plain";
1761
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1762
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1763
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1764
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1765
+ }>, z.ZodLiteral<"application/json">]>;
1766
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1767
+ title: z.ZodOptional<z.ZodString>;
1768
+ text: z.ZodOptional<z.ZodString>;
1769
+ type: z.ZodString;
1770
+ uri: z.ZodString;
1771
+ }, z.core.$strip>]>, z.ZodObject<{
1772
+ text: z.ZodString;
1773
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1774
+ immediate: "immediate";
1775
+ persistent: "persistent";
1776
+ }>>>;
1777
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1778
+ text: z.ZodString;
1779
+ }, z.core.$strip>>]>;
1780
+ }, z.core.$strip>]>, z.ZodObject<{
1781
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1782
+ text: z.ZodString;
1783
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1784
+ blank: "blank";
1785
+ self: "self";
1786
+ selfCompact: "selfCompact";
1787
+ selfTall: "selfTall";
1788
+ }>>>;
1789
+ uri: z.ZodString;
1790
+ }, z.core.$strip>]>, z.ZodObject<{
1791
+ state: z.ZodString;
1792
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1793
+ }, z.core.$strip>]>, z.ZodString]>;
1794
+ textContent: z.ZodOptional<z.ZodString>;
1795
+ }, z.core.$strip>;
1796
+ }, z.core.$strip>>>;
1797
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1798
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1799
+ type: z.ZodLiteral<"SendMessage">;
1800
+ settings: z.ZodObject<{
1801
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1802
+ type: z.ZodOptional<z.ZodEnum<{
1803
+ "text/plain": "text/plain";
1804
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1805
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1806
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1807
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1808
+ }>>;
1809
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1810
+ title: z.ZodOptional<z.ZodString>;
1811
+ text: z.ZodOptional<z.ZodString>;
1812
+ type: z.ZodString;
1813
+ uri: z.ZodString;
1814
+ }, z.core.$strip>]>, z.ZodObject<{
1815
+ text: z.ZodString;
1816
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1817
+ immediate: "immediate";
1818
+ persistent: "persistent";
1819
+ }>>>;
1820
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1821
+ text: z.ZodString;
1822
+ }, z.core.$strip>>]>;
1823
+ }, z.core.$strip>]>, z.ZodObject<{
1824
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
+ text: z.ZodString;
1826
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1827
+ blank: "blank";
1828
+ self: "self";
1829
+ selfCompact: "selfCompact";
1830
+ selfTall: "selfTall";
1831
+ }>>>;
1832
+ uri: z.ZodString;
1833
+ }, z.core.$strip>]>, z.ZodObject<{
1834
+ state: z.ZodString;
1835
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1836
+ }, z.core.$strip>]>;
1837
+ id: z.ZodOptional<z.ZodString>;
1838
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1839
+ }, z.core.$strip>;
1840
+ }, z.core.$strip>, z.ZodObject<{
1841
+ type: z.ZodLiteral<"SendRawMessage">;
1842
+ settings: z.ZodObject<{
1843
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1844
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
1845
+ rawContent: z.ZodString;
1846
+ }, z.core.$strip>;
1847
+ }, z.core.$strip>, z.ZodObject<{
1848
+ type: z.ZodLiteral<"TrackEvent">;
1849
+ settings: z.ZodObject<{
1850
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1851
+ category: z.ZodString;
1852
+ action: z.ZodString;
1853
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1854
+ }, z.core.$strip>;
1855
+ }, z.core.$strip>, z.ZodObject<{
1856
+ type: z.ZodLiteral<"ProcessHttp">;
1857
+ settings: z.ZodObject<{
1858
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1859
+ method: z.ZodEnum<{
1860
+ POST: "POST";
1861
+ GET: "GET";
1862
+ PUT: "PUT";
1863
+ DELETE: "DELETE";
1864
+ }>;
1865
+ uri: z.ZodString;
1866
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1867
+ body: z.ZodString;
1868
+ responseBodyVariable: z.ZodString;
1869
+ responseStatusVariable: z.ZodString;
1870
+ }, z.core.$strip>;
1871
+ }, z.core.$strip>, z.ZodObject<{
1872
+ type: z.ZodLiteral<"MergeContact">;
1873
+ settings: z.ZodObject<{
1874
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1875
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1876
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1877
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1878
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1879
+ }, z.core.$strip>;
1880
+ }, z.core.$strip>, z.ZodObject<{
1881
+ type: z.ZodLiteral<"ExecuteScript">;
1882
+ settings: z.ZodObject<{
1883
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1884
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1885
+ source: z.ZodString;
1886
+ inputVariables: z.ZodArray<z.ZodString>;
1887
+ outputVariable: z.ZodString;
1888
+ }, z.core.$strip>;
1889
+ }, z.core.$strip>, z.ZodObject<{
1890
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1891
+ settings: z.ZodObject<{
1892
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1893
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1894
+ source: z.ZodString;
1895
+ inputVariables: z.ZodArray<z.ZodString>;
1896
+ outputVariable: z.ZodString;
1897
+ }, z.core.$strip>;
1898
+ }, z.core.$strip>, z.ZodObject<{
1899
+ type: z.ZodLiteral<"SetVariable">;
1900
+ settings: z.ZodObject<{
1901
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1902
+ variable: z.ZodString;
1903
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1904
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1905
+ }, z.core.$strip>;
1906
+ }, z.core.$strip>, z.ZodObject<{
1907
+ type: z.ZodLiteral<"ProcessCommand">;
1908
+ settings: z.ZodObject<{
1909
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1910
+ to: z.ZodString;
1911
+ method: z.ZodEnum<{
1912
+ get: "get";
1913
+ set: "set";
1914
+ merge: "merge";
1915
+ delete: "delete";
1916
+ }>;
1917
+ uri: z.ZodString;
1918
+ variable: z.ZodString;
1919
+ from: z.ZodOptional<z.ZodString>;
1920
+ }, z.core.$strip>;
1921
+ }, z.core.$strip>, z.ZodObject<{
1922
+ type: z.ZodLiteral<"ForwardToDesk">;
1923
+ settings: z.ZodObject<{
1924
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1925
+ }, z.core.$strip>;
1926
+ }, z.core.$strip>, z.ZodObject<{
1927
+ type: z.ZodLiteral<"LeavingFromDesk">;
1928
+ settings: z.ZodObject<{
1929
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1930
+ }, z.core.$strip>;
1931
+ }, z.core.$strip>, z.ZodObject<{
1932
+ type: z.ZodLiteral<"Redirect">;
1933
+ settings: z.ZodObject<{
1934
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1935
+ address: z.ZodString;
1936
+ context: z.ZodObject<{
1937
+ type: z.ZodLiteral<"text/plain">;
1938
+ value: z.ZodString;
1939
+ }, z.core.$strip>;
1940
+ }, z.core.$strip>;
1941
+ }, z.core.$strip>], "type">>>>;
1942
+ $tags: z.ZodArray<z.ZodObject<{
1943
+ id: z.ZodString;
1944
+ label: z.ZodString;
1945
+ background: z.ZodString;
1946
+ canChangeBackground: z.ZodBoolean;
1947
+ }, z.core.$strip>>;
1948
+ id: z.ZodOptional<z.ZodString>;
1949
+ root: z.ZodOptional<z.ZodBoolean>;
1950
+ $title: z.ZodString;
1951
+ $position: z.ZodOptional<z.ZodObject<{
1952
+ top: z.ZodString;
1953
+ left: z.ZodString;
1954
+ }, z.core.$strip>>;
1955
+ $invalidContentActions: z.ZodBoolean;
1956
+ $invalidOutputs: z.ZodBoolean;
1957
+ $invalidCustomActions: z.ZodBoolean;
1958
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1959
+ $whiteWallIntegration: z.ZodOptional<z.ZodUnknown>;
1960
+ }, z.core.$strip>;
1961
+ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1962
+ $contentActions: z.ZodArray<z.ZodObject<{
1963
+ action: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
1964
+ $id: z.ZodString;
1965
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1966
+ "": "";
1967
+ text: "text";
1968
+ "select-immediate": "select-immediate";
1969
+ select: "select";
1970
+ media: "media";
1971
+ "media-audio": "media-audio";
1972
+ "media-video": "media-video";
1973
+ "media-document": "media-document";
1974
+ "chat-state": "chat-state";
1975
+ "web-link": "web-link";
1976
+ "raw-content": "raw-content";
1977
+ }>>;
1978
+ $title: z.ZodOptional<z.ZodString>;
1979
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1980
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1981
+ source: z.ZodEnum<{
1982
+ context: "context";
1983
+ input: "input";
1984
+ }>;
1985
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
+ comparison: z.ZodEnum<{
1987
+ endsWith: "endsWith";
1988
+ startsWith: "startsWith";
1989
+ equals: "equals";
1990
+ notEquals: "notEquals";
1991
+ contains: "contains";
1992
+ greaterThan: "greaterThan";
1993
+ lessThan: "lessThan";
1994
+ greaterThanOrEquals: "greaterThanOrEquals";
1995
+ lessThanOrEquals: "lessThanOrEquals";
1996
+ matches: "matches";
1997
+ approximateTo: "approximateTo";
1998
+ exists: "exists";
1999
+ notExists: "notExists";
2000
+ }>;
2001
+ operator: z.ZodOptional<z.ZodEnum<{
2002
+ or: "or";
2003
+ and: "and";
2004
+ }>>;
2005
+ values: z.ZodArray<z.ZodString>;
2006
+ }, z.core.$strip>>>;
2007
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2008
+ editable: z.ZodBoolean;
2009
+ deletable: z.ZodBoolean;
2010
+ position: z.ZodLiteral<"left">;
2011
+ document: z.ZodObject<{
2012
+ id: z.ZodString;
2013
+ type: z.ZodUnion<[z.ZodEnum<{
2014
+ "text/plain": "text/plain";
2015
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2016
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2017
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2018
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2019
+ }>, z.ZodLiteral<"application/json">]>;
2020
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2021
+ title: z.ZodOptional<z.ZodString>;
2022
+ text: z.ZodOptional<z.ZodString>;
2023
+ type: z.ZodString;
2024
+ uri: z.ZodString;
2025
+ }, z.core.$strip>]>, z.ZodObject<{
2026
+ text: z.ZodString;
2027
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2028
+ immediate: "immediate";
2029
+ persistent: "persistent";
2030
+ }>>>;
2031
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2032
+ text: z.ZodString;
2033
+ }, z.core.$strip>>]>;
2034
+ }, z.core.$strip>]>, z.ZodObject<{
2035
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2036
+ text: z.ZodString;
2037
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2038
+ blank: "blank";
2039
+ self: "self";
2040
+ selfCompact: "selfCompact";
2041
+ selfTall: "selfTall";
2042
+ }>>>;
2043
+ uri: z.ZodString;
2044
+ }, z.core.$strip>]>, z.ZodObject<{
2045
+ state: z.ZodString;
2046
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2047
+ }, z.core.$strip>]>, z.ZodString]>;
2048
+ textContent: z.ZodOptional<z.ZodString>;
2049
+ }, z.core.$strip>;
2050
+ }, z.core.$strip>>>;
2051
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2052
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2053
+ type: z.ZodLiteral<"SendMessage">;
2054
+ settings: z.ZodObject<{
2055
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2056
+ type: z.ZodOptional<z.ZodEnum<{
2057
+ "text/plain": "text/plain";
2058
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2059
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2060
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2061
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2062
+ }>>;
2063
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2064
+ title: z.ZodOptional<z.ZodString>;
2065
+ text: z.ZodOptional<z.ZodString>;
2066
+ type: z.ZodString;
2067
+ uri: z.ZodString;
2068
+ }, z.core.$strip>]>, z.ZodObject<{
2069
+ text: z.ZodString;
2070
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2071
+ immediate: "immediate";
2072
+ persistent: "persistent";
2073
+ }>>>;
2074
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2075
+ text: z.ZodString;
2076
+ }, z.core.$strip>>]>;
2077
+ }, z.core.$strip>]>, z.ZodObject<{
2078
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2079
+ text: z.ZodString;
2080
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2081
+ blank: "blank";
2082
+ self: "self";
2083
+ selfCompact: "selfCompact";
2084
+ selfTall: "selfTall";
2085
+ }>>>;
2086
+ uri: z.ZodString;
2087
+ }, z.core.$strip>]>, z.ZodObject<{
2088
+ state: z.ZodString;
2089
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2090
+ }, z.core.$strip>]>;
2091
+ id: z.ZodOptional<z.ZodString>;
2092
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2093
+ }, z.core.$strip>;
2094
+ }, z.core.$strip>, z.ZodObject<{
2095
+ type: z.ZodLiteral<"SendRawMessage">;
2096
+ settings: z.ZodObject<{
2097
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2098
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
2099
+ rawContent: z.ZodString;
2100
+ }, z.core.$strip>;
2101
+ }, z.core.$strip>, z.ZodObject<{
2102
+ type: z.ZodLiteral<"TrackEvent">;
2103
+ settings: z.ZodObject<{
2104
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2105
+ category: z.ZodString;
2106
+ action: z.ZodString;
2107
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2108
+ }, z.core.$strip>;
2109
+ }, z.core.$strip>, z.ZodObject<{
2110
+ type: z.ZodLiteral<"ProcessHttp">;
2111
+ settings: z.ZodObject<{
2112
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2113
+ method: z.ZodEnum<{
2114
+ POST: "POST";
2115
+ GET: "GET";
2116
+ PUT: "PUT";
2117
+ DELETE: "DELETE";
2118
+ }>;
2119
+ uri: z.ZodString;
2120
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2121
+ body: z.ZodString;
2122
+ responseBodyVariable: z.ZodString;
2123
+ responseStatusVariable: z.ZodString;
2124
+ }, z.core.$strip>;
2125
+ }, z.core.$strip>, z.ZodObject<{
2126
+ type: z.ZodLiteral<"MergeContact">;
2127
+ settings: z.ZodObject<{
2128
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2129
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2130
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2131
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2133
+ }, z.core.$strip>;
2134
+ }, z.core.$strip>, z.ZodObject<{
2135
+ type: z.ZodLiteral<"ExecuteScript">;
2136
+ settings: z.ZodObject<{
2137
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2138
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2139
+ source: z.ZodString;
2140
+ inputVariables: z.ZodArray<z.ZodString>;
2141
+ outputVariable: z.ZodString;
2142
+ }, z.core.$strip>;
2143
+ }, z.core.$strip>, z.ZodObject<{
2144
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2145
+ settings: z.ZodObject<{
2146
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2147
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2148
+ source: z.ZodString;
2149
+ inputVariables: z.ZodArray<z.ZodString>;
2150
+ outputVariable: z.ZodString;
2151
+ }, z.core.$strip>;
2152
+ }, z.core.$strip>, z.ZodObject<{
2153
+ type: z.ZodLiteral<"SetVariable">;
2154
+ settings: z.ZodObject<{
2155
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2156
+ variable: z.ZodString;
2157
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2158
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2159
+ }, z.core.$strip>;
2160
+ }, z.core.$strip>, z.ZodObject<{
2161
+ type: z.ZodLiteral<"ProcessCommand">;
2162
+ settings: z.ZodObject<{
2163
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2164
+ to: z.ZodString;
2165
+ method: z.ZodEnum<{
2166
+ get: "get";
2167
+ set: "set";
2168
+ merge: "merge";
2169
+ delete: "delete";
2170
+ }>;
2171
+ uri: z.ZodString;
2172
+ variable: z.ZodString;
2173
+ from: z.ZodOptional<z.ZodString>;
2174
+ }, z.core.$strip>;
2175
+ }, z.core.$strip>, z.ZodObject<{
2176
+ type: z.ZodLiteral<"ForwardToDesk">;
2177
+ settings: z.ZodObject<{
2178
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2179
+ }, z.core.$strip>;
2180
+ }, z.core.$strip>, z.ZodObject<{
2181
+ type: z.ZodLiteral<"LeavingFromDesk">;
2182
+ settings: z.ZodObject<{
2183
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2184
+ }, z.core.$strip>;
2185
+ }, z.core.$strip>, z.ZodObject<{
2186
+ type: z.ZodLiteral<"Redirect">;
2187
+ settings: z.ZodObject<{
2188
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2189
+ address: z.ZodString;
2190
+ context: z.ZodObject<{
2191
+ type: z.ZodLiteral<"text/plain">;
2192
+ value: z.ZodString;
2193
+ }, z.core.$strip>;
2194
+ }, z.core.$strip>;
2195
+ }, z.core.$strip>], "type">>>;
2196
+ input: z.ZodOptional<z.ZodObject<{
2197
+ $cardContent: z.ZodObject<{
2198
+ document: z.ZodObject<{
2199
+ id: z.ZodString;
2200
+ type: z.ZodLiteral<"text/plain">;
2201
+ content: z.ZodOptional<z.ZodString>;
2202
+ textContent: z.ZodOptional<z.ZodString>;
2203
+ }, z.core.$strip>;
2204
+ editable: z.ZodBoolean;
2205
+ editing: z.ZodBoolean;
2206
+ deletable: z.ZodBoolean;
2207
+ position: z.ZodLiteral<"right">;
2208
+ }, z.core.$strip>;
2209
+ $invalid: z.ZodBoolean;
2210
+ bypass: z.ZodBoolean;
2211
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2212
+ rule: z.ZodEnum<{
2213
+ number: "number";
2214
+ type: "type";
2215
+ text: "text";
2216
+ date: "date";
2217
+ regex: "regex";
2218
+ }>;
2219
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2221
+ error: z.ZodString;
2222
+ }, z.core.$strip>>>;
2223
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2224
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2225
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2226
+ source: z.ZodEnum<{
2227
+ context: "context";
2228
+ input: "input";
2229
+ }>;
2230
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2231
+ comparison: z.ZodEnum<{
2232
+ endsWith: "endsWith";
2233
+ startsWith: "startsWith";
2234
+ equals: "equals";
2235
+ notEquals: "notEquals";
2236
+ contains: "contains";
2237
+ greaterThan: "greaterThan";
2238
+ lessThan: "lessThan";
2239
+ greaterThanOrEquals: "greaterThanOrEquals";
2240
+ lessThanOrEquals: "lessThanOrEquals";
2241
+ matches: "matches";
2242
+ approximateTo: "approximateTo";
2243
+ exists: "exists";
2244
+ notExists: "notExists";
2245
+ }>;
2246
+ operator: z.ZodOptional<z.ZodEnum<{
2247
+ or: "or";
2248
+ and: "and";
2249
+ }>>;
2250
+ values: z.ZodArray<z.ZodString>;
2251
+ }, z.core.$strip>>>;
2252
+ }, z.core.$strip>>;
2253
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2254
+ }, z.core.$strip>>;
2255
+ $conditionOutputs: z.ZodArray<z.ZodObject<{
2256
+ stateId: z.ZodString;
2257
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
2258
+ state: "state";
2259
+ variable: "variable";
2260
+ }>>;
2261
+ $id: z.ZodOptional<z.ZodString>;
2262
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2263
+ $connId: z.ZodOptional<z.ZodString>;
2264
+ $contentId: z.ZodOptional<z.ZodString>;
2265
+ $isDeskOutput: z.ZodOptional<z.ZodBoolean>;
2266
+ $isDeskCustomOutput: z.ZodOptional<z.ZodBoolean>;
2267
+ $isDeskDefaultOutput: z.ZodOptional<z.ZodBoolean>;
2268
+ conditions: z.ZodArray<z.ZodObject<{
2269
+ source: z.ZodEnum<{
2270
+ context: "context";
2271
+ input: "input";
2272
+ }>;
2273
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2274
+ comparison: z.ZodEnum<{
2275
+ endsWith: "endsWith";
2276
+ startsWith: "startsWith";
2277
+ equals: "equals";
2278
+ notEquals: "notEquals";
2279
+ contains: "contains";
2280
+ greaterThan: "greaterThan";
2281
+ lessThan: "lessThan";
2282
+ greaterThanOrEquals: "greaterThanOrEquals";
2283
+ lessThanOrEquals: "lessThanOrEquals";
2284
+ matches: "matches";
2285
+ approximateTo: "approximateTo";
2286
+ exists: "exists";
2287
+ notExists: "notExists";
2288
+ }>;
2289
+ operator: z.ZodOptional<z.ZodEnum<{
2290
+ or: "or";
2291
+ and: "and";
2292
+ }>>;
2293
+ values: z.ZodArray<z.ZodString>;
2294
+ }, z.core.$strip>>;
2295
+ }, z.core.$strip>>;
2296
+ $enteringCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
2297
+ $id: z.ZodString;
2298
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
2299
+ "": "";
2300
+ text: "text";
2301
+ "select-immediate": "select-immediate";
2302
+ select: "select";
2303
+ media: "media";
2304
+ "media-audio": "media-audio";
2305
+ "media-video": "media-video";
2306
+ "media-document": "media-document";
2307
+ "chat-state": "chat-state";
2308
+ "web-link": "web-link";
2309
+ "raw-content": "raw-content";
2310
+ }>>;
2311
+ $title: z.ZodOptional<z.ZodString>;
2312
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2313
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2314
+ source: z.ZodEnum<{
2315
+ context: "context";
2316
+ input: "input";
2317
+ }>;
2318
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2319
+ comparison: z.ZodEnum<{
2320
+ endsWith: "endsWith";
2321
+ startsWith: "startsWith";
2322
+ equals: "equals";
2323
+ notEquals: "notEquals";
2324
+ contains: "contains";
2325
+ greaterThan: "greaterThan";
2326
+ lessThan: "lessThan";
2327
+ greaterThanOrEquals: "greaterThanOrEquals";
2328
+ lessThanOrEquals: "lessThanOrEquals";
2329
+ matches: "matches";
2330
+ approximateTo: "approximateTo";
2331
+ exists: "exists";
2332
+ notExists: "notExists";
2333
+ }>;
2334
+ operator: z.ZodOptional<z.ZodEnum<{
2335
+ or: "or";
2336
+ and: "and";
2337
+ }>>;
2338
+ values: z.ZodArray<z.ZodString>;
2339
+ }, z.core.$strip>>>;
2340
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2341
+ editable: z.ZodBoolean;
2342
+ deletable: z.ZodBoolean;
2343
+ position: z.ZodLiteral<"left">;
2344
+ document: z.ZodObject<{
2345
+ id: z.ZodString;
2346
+ type: z.ZodUnion<[z.ZodEnum<{
2347
+ "text/plain": "text/plain";
2348
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2349
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2350
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2351
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2352
+ }>, z.ZodLiteral<"application/json">]>;
2353
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2354
+ title: z.ZodOptional<z.ZodString>;
2355
+ text: z.ZodOptional<z.ZodString>;
2356
+ type: z.ZodString;
2357
+ uri: z.ZodString;
2358
+ }, z.core.$strip>]>, z.ZodObject<{
2359
+ text: z.ZodString;
2360
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2361
+ immediate: "immediate";
2362
+ persistent: "persistent";
2363
+ }>>>;
2364
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2365
+ text: z.ZodString;
2366
+ }, z.core.$strip>>]>;
2367
+ }, z.core.$strip>]>, z.ZodObject<{
2368
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2369
+ text: z.ZodString;
2370
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2371
+ blank: "blank";
2372
+ self: "self";
2373
+ selfCompact: "selfCompact";
2374
+ selfTall: "selfTall";
2375
+ }>>>;
2376
+ uri: z.ZodString;
2377
+ }, z.core.$strip>]>, z.ZodObject<{
2378
+ state: z.ZodString;
2379
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2380
+ }, z.core.$strip>]>, z.ZodString]>;
2381
+ textContent: z.ZodOptional<z.ZodString>;
2382
+ }, z.core.$strip>;
2383
+ }, z.core.$strip>>>;
2384
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2385
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2386
+ type: z.ZodLiteral<"SendMessage">;
2387
+ settings: z.ZodObject<{
2388
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2389
+ type: z.ZodOptional<z.ZodEnum<{
2390
+ "text/plain": "text/plain";
2391
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2392
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2393
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2394
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2395
+ }>>;
2396
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2397
+ title: z.ZodOptional<z.ZodString>;
2398
+ text: z.ZodOptional<z.ZodString>;
2399
+ type: z.ZodString;
2400
+ uri: z.ZodString;
2401
+ }, z.core.$strip>]>, z.ZodObject<{
2402
+ text: z.ZodString;
2403
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2404
+ immediate: "immediate";
2405
+ persistent: "persistent";
2406
+ }>>>;
2407
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2408
+ text: z.ZodString;
2409
+ }, z.core.$strip>>]>;
2410
+ }, z.core.$strip>]>, z.ZodObject<{
2411
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2412
+ text: z.ZodString;
2413
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2414
+ blank: "blank";
2415
+ self: "self";
2416
+ selfCompact: "selfCompact";
2417
+ selfTall: "selfTall";
2418
+ }>>>;
2419
+ uri: z.ZodString;
2420
+ }, z.core.$strip>]>, z.ZodObject<{
2421
+ state: z.ZodString;
2422
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2423
+ }, z.core.$strip>]>;
2424
+ id: z.ZodOptional<z.ZodString>;
2425
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2426
+ }, z.core.$strip>;
2427
+ }, z.core.$strip>, z.ZodObject<{
2428
+ type: z.ZodLiteral<"SendRawMessage">;
2429
+ settings: z.ZodObject<{
2430
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2431
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
2432
+ rawContent: z.ZodString;
2433
+ }, z.core.$strip>;
2434
+ }, z.core.$strip>, z.ZodObject<{
2435
+ type: z.ZodLiteral<"TrackEvent">;
2436
+ settings: z.ZodObject<{
2437
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2438
+ category: z.ZodString;
2439
+ action: z.ZodString;
2440
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2441
+ }, z.core.$strip>;
2442
+ }, z.core.$strip>, z.ZodObject<{
2443
+ type: z.ZodLiteral<"ProcessHttp">;
2444
+ settings: z.ZodObject<{
2445
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2446
+ method: z.ZodEnum<{
2447
+ POST: "POST";
2448
+ GET: "GET";
2449
+ PUT: "PUT";
2450
+ DELETE: "DELETE";
2451
+ }>;
2452
+ uri: z.ZodString;
2453
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2454
+ body: z.ZodString;
2455
+ responseBodyVariable: z.ZodString;
2456
+ responseStatusVariable: z.ZodString;
2457
+ }, z.core.$strip>;
2458
+ }, z.core.$strip>, z.ZodObject<{
2459
+ type: z.ZodLiteral<"MergeContact">;
2460
+ settings: z.ZodObject<{
2461
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2462
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2463
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2464
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2465
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2466
+ }, z.core.$strip>;
2467
+ }, z.core.$strip>, z.ZodObject<{
2468
+ type: z.ZodLiteral<"ExecuteScript">;
2469
+ settings: z.ZodObject<{
2470
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2471
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2472
+ source: z.ZodString;
2473
+ inputVariables: z.ZodArray<z.ZodString>;
2474
+ outputVariable: z.ZodString;
2475
+ }, z.core.$strip>;
2476
+ }, z.core.$strip>, z.ZodObject<{
2477
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2478
+ settings: z.ZodObject<{
2479
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2480
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2481
+ source: z.ZodString;
2482
+ inputVariables: z.ZodArray<z.ZodString>;
2483
+ outputVariable: z.ZodString;
2484
+ }, z.core.$strip>;
2485
+ }, z.core.$strip>, z.ZodObject<{
2486
+ type: z.ZodLiteral<"SetVariable">;
2487
+ settings: z.ZodObject<{
2488
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2489
+ variable: z.ZodString;
2490
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2491
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2492
+ }, z.core.$strip>;
2493
+ }, z.core.$strip>, z.ZodObject<{
2494
+ type: z.ZodLiteral<"ProcessCommand">;
2495
+ settings: z.ZodObject<{
2496
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2497
+ to: z.ZodString;
2498
+ method: z.ZodEnum<{
2499
+ get: "get";
2500
+ set: "set";
2501
+ merge: "merge";
2502
+ delete: "delete";
2503
+ }>;
2504
+ uri: z.ZodString;
2505
+ variable: z.ZodString;
2506
+ from: z.ZodOptional<z.ZodString>;
2507
+ }, z.core.$strip>;
2508
+ }, z.core.$strip>, z.ZodObject<{
2509
+ type: z.ZodLiteral<"ForwardToDesk">;
2510
+ settings: z.ZodObject<{
2511
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2512
+ }, z.core.$strip>;
2513
+ }, z.core.$strip>, z.ZodObject<{
2514
+ type: z.ZodLiteral<"LeavingFromDesk">;
2515
+ settings: z.ZodObject<{
2516
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2517
+ }, z.core.$strip>;
2518
+ }, z.core.$strip>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"Redirect">;
2520
+ settings: z.ZodObject<{
2521
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2522
+ address: z.ZodString;
2523
+ context: z.ZodObject<{
2524
+ type: z.ZodLiteral<"text/plain">;
2525
+ value: z.ZodString;
2526
+ }, z.core.$strip>;
2527
+ }, z.core.$strip>;
2528
+ }, z.core.$strip>], "type">>>;
2529
+ $leavingCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
2530
+ $id: z.ZodString;
2531
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
2532
+ "": "";
2533
+ text: "text";
2534
+ "select-immediate": "select-immediate";
2535
+ select: "select";
2536
+ media: "media";
2537
+ "media-audio": "media-audio";
2538
+ "media-video": "media-video";
2539
+ "media-document": "media-document";
2540
+ "chat-state": "chat-state";
2541
+ "web-link": "web-link";
2542
+ "raw-content": "raw-content";
2543
+ }>>;
2544
+ $title: z.ZodOptional<z.ZodString>;
2545
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2546
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2547
+ source: z.ZodEnum<{
2548
+ context: "context";
2549
+ input: "input";
2550
+ }>;
2551
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2552
+ comparison: z.ZodEnum<{
2553
+ endsWith: "endsWith";
2554
+ startsWith: "startsWith";
2555
+ equals: "equals";
2556
+ notEquals: "notEquals";
2557
+ contains: "contains";
2558
+ greaterThan: "greaterThan";
2559
+ lessThan: "lessThan";
2560
+ greaterThanOrEquals: "greaterThanOrEquals";
2561
+ lessThanOrEquals: "lessThanOrEquals";
2562
+ matches: "matches";
2563
+ approximateTo: "approximateTo";
2564
+ exists: "exists";
2565
+ notExists: "notExists";
2566
+ }>;
2567
+ operator: z.ZodOptional<z.ZodEnum<{
2568
+ or: "or";
2569
+ and: "and";
2570
+ }>>;
2571
+ values: z.ZodArray<z.ZodString>;
2572
+ }, z.core.$strip>>>;
2573
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2574
+ editable: z.ZodBoolean;
2575
+ deletable: z.ZodBoolean;
2576
+ position: z.ZodLiteral<"left">;
2577
+ document: z.ZodObject<{
2578
+ id: z.ZodString;
2579
+ type: z.ZodUnion<[z.ZodEnum<{
2580
+ "text/plain": "text/plain";
2581
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2582
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2583
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2584
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2585
+ }>, z.ZodLiteral<"application/json">]>;
2586
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2587
+ title: z.ZodOptional<z.ZodString>;
2588
+ text: z.ZodOptional<z.ZodString>;
2589
+ type: z.ZodString;
2590
+ uri: z.ZodString;
2591
+ }, z.core.$strip>]>, z.ZodObject<{
2592
+ text: z.ZodString;
2593
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2594
+ immediate: "immediate";
2595
+ persistent: "persistent";
2596
+ }>>>;
2597
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2598
+ text: z.ZodString;
2599
+ }, z.core.$strip>>]>;
2600
+ }, z.core.$strip>]>, z.ZodObject<{
2601
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2602
+ text: z.ZodString;
2603
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2604
+ blank: "blank";
2605
+ self: "self";
2606
+ selfCompact: "selfCompact";
2607
+ selfTall: "selfTall";
2608
+ }>>>;
2609
+ uri: z.ZodString;
2610
+ }, z.core.$strip>]>, z.ZodObject<{
2611
+ state: z.ZodString;
2612
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2613
+ }, z.core.$strip>]>, z.ZodString]>;
2614
+ textContent: z.ZodOptional<z.ZodString>;
2615
+ }, z.core.$strip>;
2616
+ }, z.core.$strip>>>;
2617
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2618
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2619
+ type: z.ZodLiteral<"SendMessage">;
2620
+ settings: z.ZodObject<{
2621
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2622
+ type: z.ZodOptional<z.ZodEnum<{
2623
+ "text/plain": "text/plain";
2624
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2625
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2626
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2627
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2628
+ }>>;
2629
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2630
+ title: z.ZodOptional<z.ZodString>;
2631
+ text: z.ZodOptional<z.ZodString>;
2632
+ type: z.ZodString;
2633
+ uri: z.ZodString;
2634
+ }, z.core.$strip>]>, z.ZodObject<{
2635
+ text: z.ZodString;
2636
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2637
+ immediate: "immediate";
2638
+ persistent: "persistent";
2639
+ }>>>;
2640
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2641
+ text: z.ZodString;
2642
+ }, z.core.$strip>>]>;
2643
+ }, z.core.$strip>]>, z.ZodObject<{
2644
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2645
+ text: z.ZodString;
2646
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2647
+ blank: "blank";
2648
+ self: "self";
2649
+ selfCompact: "selfCompact";
2650
+ selfTall: "selfTall";
2651
+ }>>>;
2652
+ uri: z.ZodString;
2653
+ }, z.core.$strip>]>, z.ZodObject<{
2654
+ state: z.ZodString;
2655
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2656
+ }, z.core.$strip>]>;
2657
+ id: z.ZodOptional<z.ZodString>;
2658
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2659
+ }, z.core.$strip>;
2660
+ }, z.core.$strip>, z.ZodObject<{
2661
+ type: z.ZodLiteral<"SendRawMessage">;
2662
+ settings: z.ZodObject<{
2663
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2664
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
2665
+ rawContent: z.ZodString;
2666
+ }, z.core.$strip>;
2667
+ }, z.core.$strip>, z.ZodObject<{
2668
+ type: z.ZodLiteral<"TrackEvent">;
2669
+ settings: z.ZodObject<{
2670
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2671
+ category: z.ZodString;
2672
+ action: z.ZodString;
2673
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2674
+ }, z.core.$strip>;
2675
+ }, z.core.$strip>, z.ZodObject<{
2676
+ type: z.ZodLiteral<"ProcessHttp">;
2677
+ settings: z.ZodObject<{
2678
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2679
+ method: z.ZodEnum<{
2680
+ POST: "POST";
2681
+ GET: "GET";
2682
+ PUT: "PUT";
2683
+ DELETE: "DELETE";
2684
+ }>;
2685
+ uri: z.ZodString;
2686
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2687
+ body: z.ZodString;
2688
+ responseBodyVariable: z.ZodString;
2689
+ responseStatusVariable: z.ZodString;
2690
+ }, z.core.$strip>;
2691
+ }, z.core.$strip>, z.ZodObject<{
2692
+ type: z.ZodLiteral<"MergeContact">;
2693
+ settings: z.ZodObject<{
2694
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2695
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2696
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2697
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2698
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2699
+ }, z.core.$strip>;
2700
+ }, z.core.$strip>, z.ZodObject<{
2701
+ type: z.ZodLiteral<"ExecuteScript">;
2702
+ settings: z.ZodObject<{
2703
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2704
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2705
+ source: z.ZodString;
2706
+ inputVariables: z.ZodArray<z.ZodString>;
2707
+ outputVariable: z.ZodString;
2708
+ }, z.core.$strip>;
2709
+ }, z.core.$strip>, z.ZodObject<{
2710
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2711
+ settings: z.ZodObject<{
2712
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2713
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2714
+ source: z.ZodString;
2715
+ inputVariables: z.ZodArray<z.ZodString>;
2716
+ outputVariable: z.ZodString;
2717
+ }, z.core.$strip>;
2718
+ }, z.core.$strip>, z.ZodObject<{
2719
+ type: z.ZodLiteral<"SetVariable">;
2720
+ settings: z.ZodObject<{
2721
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2722
+ variable: z.ZodString;
2723
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2724
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2725
+ }, z.core.$strip>;
2726
+ }, z.core.$strip>, z.ZodObject<{
2727
+ type: z.ZodLiteral<"ProcessCommand">;
2728
+ settings: z.ZodObject<{
2729
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2730
+ to: z.ZodString;
2731
+ method: z.ZodEnum<{
2732
+ get: "get";
2733
+ set: "set";
2734
+ merge: "merge";
2735
+ delete: "delete";
2736
+ }>;
2737
+ uri: z.ZodString;
2738
+ variable: z.ZodString;
2739
+ from: z.ZodOptional<z.ZodString>;
2740
+ }, z.core.$strip>;
2741
+ }, z.core.$strip>, z.ZodObject<{
2742
+ type: z.ZodLiteral<"ForwardToDesk">;
2743
+ settings: z.ZodObject<{
2744
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2745
+ }, z.core.$strip>;
2746
+ }, z.core.$strip>, z.ZodObject<{
2747
+ type: z.ZodLiteral<"LeavingFromDesk">;
2748
+ settings: z.ZodObject<{
2749
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2750
+ }, z.core.$strip>;
2751
+ }, z.core.$strip>, z.ZodObject<{
2752
+ type: z.ZodLiteral<"Redirect">;
2753
+ settings: z.ZodObject<{
2754
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2755
+ address: z.ZodString;
2756
+ context: z.ZodObject<{
2757
+ type: z.ZodLiteral<"text/plain">;
2758
+ value: z.ZodString;
2759
+ }, z.core.$strip>;
2760
+ }, z.core.$strip>;
2761
+ }, z.core.$strip>], "type">>>;
2762
+ $localCustomActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
2763
+ $id: z.ZodString;
2764
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
2765
+ "": "";
2766
+ text: "text";
2767
+ "select-immediate": "select-immediate";
2768
+ select: "select";
2769
+ media: "media";
2770
+ "media-audio": "media-audio";
2771
+ "media-video": "media-video";
2772
+ "media-document": "media-document";
2773
+ "chat-state": "chat-state";
2774
+ "web-link": "web-link";
2775
+ "raw-content": "raw-content";
2776
+ }>>;
2777
+ $title: z.ZodOptional<z.ZodString>;
2778
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2779
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2780
+ source: z.ZodEnum<{
2781
+ context: "context";
2782
+ input: "input";
2783
+ }>;
2784
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2785
+ comparison: z.ZodEnum<{
2786
+ endsWith: "endsWith";
2787
+ startsWith: "startsWith";
2788
+ equals: "equals";
2789
+ notEquals: "notEquals";
2790
+ contains: "contains";
2791
+ greaterThan: "greaterThan";
2792
+ lessThan: "lessThan";
2793
+ greaterThanOrEquals: "greaterThanOrEquals";
2794
+ lessThanOrEquals: "lessThanOrEquals";
2795
+ matches: "matches";
2796
+ approximateTo: "approximateTo";
2797
+ exists: "exists";
2798
+ notExists: "notExists";
2799
+ }>;
2800
+ operator: z.ZodOptional<z.ZodEnum<{
2801
+ or: "or";
2802
+ and: "and";
2803
+ }>>;
2804
+ values: z.ZodArray<z.ZodString>;
2805
+ }, z.core.$strip>>>;
2806
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2807
+ editable: z.ZodBoolean;
2808
+ deletable: z.ZodBoolean;
2809
+ position: z.ZodLiteral<"left">;
2810
+ document: z.ZodObject<{
2811
+ id: z.ZodString;
2812
+ type: z.ZodUnion<[z.ZodEnum<{
2813
+ "text/plain": "text/plain";
2814
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2815
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2816
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2817
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2818
+ }>, z.ZodLiteral<"application/json">]>;
2819
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2820
+ title: z.ZodOptional<z.ZodString>;
2821
+ text: z.ZodOptional<z.ZodString>;
2822
+ type: z.ZodString;
2823
+ uri: z.ZodString;
2824
+ }, z.core.$strip>]>, z.ZodObject<{
2825
+ text: z.ZodString;
2826
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2827
+ immediate: "immediate";
2828
+ persistent: "persistent";
2829
+ }>>>;
2830
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2831
+ text: z.ZodString;
2832
+ }, z.core.$strip>>]>;
2833
+ }, z.core.$strip>]>, z.ZodObject<{
2834
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2835
+ text: z.ZodString;
2836
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2837
+ blank: "blank";
2838
+ self: "self";
2839
+ selfCompact: "selfCompact";
2840
+ selfTall: "selfTall";
2841
+ }>>>;
2842
+ uri: z.ZodString;
2843
+ }, z.core.$strip>]>, z.ZodObject<{
2844
+ state: z.ZodString;
2845
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2846
+ }, z.core.$strip>]>, z.ZodString]>;
2847
+ textContent: z.ZodOptional<z.ZodString>;
2848
+ }, z.core.$strip>;
2849
+ }, z.core.$strip>>>;
2850
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2851
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2852
+ type: z.ZodLiteral<"SendMessage">;
2853
+ settings: z.ZodObject<{
2854
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2855
+ type: z.ZodOptional<z.ZodEnum<{
2856
+ "text/plain": "text/plain";
2857
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2858
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2859
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2860
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2861
+ }>>;
2862
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2863
+ title: z.ZodOptional<z.ZodString>;
2864
+ text: z.ZodOptional<z.ZodString>;
2865
+ type: z.ZodString;
2866
+ uri: z.ZodString;
2867
+ }, z.core.$strip>]>, z.ZodObject<{
2868
+ text: z.ZodString;
2869
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2870
+ immediate: "immediate";
2871
+ persistent: "persistent";
2872
+ }>>>;
2873
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2874
+ text: z.ZodString;
2875
+ }, z.core.$strip>>]>;
2876
+ }, z.core.$strip>]>, z.ZodObject<{
2877
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2878
+ text: z.ZodString;
2879
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2880
+ blank: "blank";
2881
+ self: "self";
2882
+ selfCompact: "selfCompact";
2883
+ selfTall: "selfTall";
2884
+ }>>>;
2885
+ uri: z.ZodString;
2886
+ }, z.core.$strip>]>, z.ZodObject<{
2887
+ state: z.ZodString;
2888
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2889
+ }, z.core.$strip>]>;
2890
+ id: z.ZodOptional<z.ZodString>;
2891
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2892
+ }, z.core.$strip>;
2893
+ }, z.core.$strip>, z.ZodObject<{
2894
+ type: z.ZodLiteral<"SendRawMessage">;
2895
+ settings: z.ZodObject<{
2896
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2897
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
2898
+ rawContent: z.ZodString;
2899
+ }, z.core.$strip>;
2900
+ }, z.core.$strip>, z.ZodObject<{
2901
+ type: z.ZodLiteral<"TrackEvent">;
2902
+ settings: z.ZodObject<{
2903
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2904
+ category: z.ZodString;
2905
+ action: z.ZodString;
2906
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2907
+ }, z.core.$strip>;
2908
+ }, z.core.$strip>, z.ZodObject<{
2909
+ type: z.ZodLiteral<"ProcessHttp">;
2910
+ settings: z.ZodObject<{
2911
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2912
+ method: z.ZodEnum<{
2913
+ POST: "POST";
2914
+ GET: "GET";
2915
+ PUT: "PUT";
2916
+ DELETE: "DELETE";
2917
+ }>;
2918
+ uri: z.ZodString;
2919
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2920
+ body: z.ZodString;
2921
+ responseBodyVariable: z.ZodString;
2922
+ responseStatusVariable: z.ZodString;
2923
+ }, z.core.$strip>;
2924
+ }, z.core.$strip>, z.ZodObject<{
2925
+ type: z.ZodLiteral<"MergeContact">;
2926
+ settings: z.ZodObject<{
2927
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2928
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2929
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2930
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2931
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2932
+ }, z.core.$strip>;
2933
+ }, z.core.$strip>, z.ZodObject<{
2934
+ type: z.ZodLiteral<"ExecuteScript">;
2935
+ settings: z.ZodObject<{
2936
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2937
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2938
+ source: z.ZodString;
2939
+ inputVariables: z.ZodArray<z.ZodString>;
2940
+ outputVariable: z.ZodString;
2941
+ }, z.core.$strip>;
2942
+ }, z.core.$strip>, z.ZodObject<{
2943
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2944
+ settings: z.ZodObject<{
2945
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2946
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2947
+ source: z.ZodString;
2948
+ inputVariables: z.ZodArray<z.ZodString>;
2949
+ outputVariable: z.ZodString;
2950
+ }, z.core.$strip>;
2951
+ }, z.core.$strip>, z.ZodObject<{
2952
+ type: z.ZodLiteral<"SetVariable">;
2953
+ settings: z.ZodObject<{
2954
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2955
+ variable: z.ZodString;
2956
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2957
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2958
+ }, z.core.$strip>;
2959
+ }, z.core.$strip>, z.ZodObject<{
2960
+ type: z.ZodLiteral<"ProcessCommand">;
2961
+ settings: z.ZodObject<{
2962
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2963
+ to: z.ZodString;
2964
+ method: z.ZodEnum<{
2965
+ get: "get";
2966
+ set: "set";
2967
+ merge: "merge";
2968
+ delete: "delete";
2969
+ }>;
2970
+ uri: z.ZodString;
2971
+ variable: z.ZodString;
2972
+ from: z.ZodOptional<z.ZodString>;
2973
+ }, z.core.$strip>;
2974
+ }, z.core.$strip>, z.ZodObject<{
2975
+ type: z.ZodLiteral<"ForwardToDesk">;
2976
+ settings: z.ZodObject<{
2977
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2978
+ }, z.core.$strip>;
2979
+ }, z.core.$strip>, z.ZodObject<{
2980
+ type: z.ZodLiteral<"LeavingFromDesk">;
2981
+ settings: z.ZodObject<{
2982
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2983
+ }, z.core.$strip>;
2984
+ }, z.core.$strip>, z.ZodObject<{
2985
+ type: z.ZodLiteral<"Redirect">;
2986
+ settings: z.ZodObject<{
2987
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2988
+ address: z.ZodString;
2989
+ context: z.ZodObject<{
2990
+ type: z.ZodLiteral<"text/plain">;
2991
+ value: z.ZodString;
2992
+ }, z.core.$strip>;
2993
+ }, z.core.$strip>;
2994
+ }, z.core.$strip>], "type">>>>;
2995
+ $inputSuggestions: z.ZodArray<z.ZodString>;
2996
+ $defaultOutput: z.ZodObject<{
2997
+ stateId: z.ZodString;
2998
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
2999
+ state: "state";
3000
+ variable: "variable";
3001
+ }>>;
3002
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3003
+ }, z.core.$strip>;
3004
+ isAiGenerated: z.ZodOptional<z.ZodBoolean>;
3005
+ deskStateVersion: z.ZodOptional<z.ZodString>;
3006
+ $afterStateChangedActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
3007
+ $id: z.ZodString;
3008
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
3009
+ "": "";
3010
+ text: "text";
3011
+ "select-immediate": "select-immediate";
3012
+ select: "select";
3013
+ media: "media";
3014
+ "media-audio": "media-audio";
3015
+ "media-video": "media-video";
3016
+ "media-document": "media-document";
3017
+ "chat-state": "chat-state";
3018
+ "web-link": "web-link";
3019
+ "raw-content": "raw-content";
3020
+ }>>;
3021
+ $title: z.ZodOptional<z.ZodString>;
3022
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3023
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3024
+ source: z.ZodEnum<{
3025
+ context: "context";
3026
+ input: "input";
3027
+ }>;
3028
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3029
+ comparison: z.ZodEnum<{
3030
+ endsWith: "endsWith";
3031
+ startsWith: "startsWith";
3032
+ equals: "equals";
3033
+ notEquals: "notEquals";
3034
+ contains: "contains";
3035
+ greaterThan: "greaterThan";
3036
+ lessThan: "lessThan";
3037
+ greaterThanOrEquals: "greaterThanOrEquals";
3038
+ lessThanOrEquals: "lessThanOrEquals";
3039
+ matches: "matches";
3040
+ approximateTo: "approximateTo";
3041
+ exists: "exists";
3042
+ notExists: "notExists";
3043
+ }>;
3044
+ operator: z.ZodOptional<z.ZodEnum<{
3045
+ or: "or";
3046
+ and: "and";
3047
+ }>>;
3048
+ values: z.ZodArray<z.ZodString>;
3049
+ }, z.core.$strip>>>;
3050
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3051
+ editable: z.ZodBoolean;
3052
+ deletable: z.ZodBoolean;
3053
+ position: z.ZodLiteral<"left">;
3054
+ document: z.ZodObject<{
3055
+ id: z.ZodString;
3056
+ type: z.ZodUnion<[z.ZodEnum<{
3057
+ "text/plain": "text/plain";
3058
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
3059
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
3060
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
3061
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
3062
+ }>, z.ZodLiteral<"application/json">]>;
3063
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
3064
+ title: z.ZodOptional<z.ZodString>;
3065
+ text: z.ZodOptional<z.ZodString>;
3066
+ type: z.ZodString;
3067
+ uri: z.ZodString;
3068
+ }, z.core.$strip>]>, z.ZodObject<{
3069
+ text: z.ZodString;
3070
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3071
+ immediate: "immediate";
3072
+ persistent: "persistent";
3073
+ }>>>;
3074
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
3075
+ text: z.ZodString;
3076
+ }, z.core.$strip>>]>;
3077
+ }, z.core.$strip>]>, z.ZodObject<{
3078
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3079
+ text: z.ZodString;
3080
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3081
+ blank: "blank";
3082
+ self: "self";
3083
+ selfCompact: "selfCompact";
3084
+ selfTall: "selfTall";
3085
+ }>>>;
3086
+ uri: z.ZodString;
3087
+ }, z.core.$strip>]>, z.ZodObject<{
3088
+ state: z.ZodString;
3089
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
3090
+ }, z.core.$strip>]>, z.ZodString]>;
3091
+ textContent: z.ZodOptional<z.ZodString>;
3092
+ }, z.core.$strip>;
3093
+ }, z.core.$strip>>>;
3094
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
3095
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3096
+ type: z.ZodLiteral<"SendMessage">;
3097
+ settings: z.ZodObject<{
3098
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3099
+ type: z.ZodOptional<z.ZodEnum<{
3100
+ "text/plain": "text/plain";
3101
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
3102
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
3103
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
3104
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
3105
+ }>>;
3106
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
3107
+ title: z.ZodOptional<z.ZodString>;
3108
+ text: z.ZodOptional<z.ZodString>;
3109
+ type: z.ZodString;
3110
+ uri: z.ZodString;
3111
+ }, z.core.$strip>]>, z.ZodObject<{
3112
+ text: z.ZodString;
3113
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3114
+ immediate: "immediate";
3115
+ persistent: "persistent";
3116
+ }>>>;
3117
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
3118
+ text: z.ZodString;
3119
+ }, z.core.$strip>>]>;
3120
+ }, z.core.$strip>]>, z.ZodObject<{
3121
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3122
+ text: z.ZodString;
3123
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3124
+ blank: "blank";
3125
+ self: "self";
3126
+ selfCompact: "selfCompact";
3127
+ selfTall: "selfTall";
3128
+ }>>>;
3129
+ uri: z.ZodString;
3130
+ }, z.core.$strip>]>, z.ZodObject<{
3131
+ state: z.ZodString;
3132
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
3133
+ }, z.core.$strip>]>;
3134
+ id: z.ZodOptional<z.ZodString>;
3135
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3136
+ }, z.core.$strip>;
3137
+ }, z.core.$strip>, z.ZodObject<{
3138
+ type: z.ZodLiteral<"SendRawMessage">;
3139
+ settings: z.ZodObject<{
3140
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3141
+ type: z.ZodOptional<z.ZodLiteral<"application/json">>;
3142
+ rawContent: z.ZodString;
3143
+ }, z.core.$strip>;
3144
+ }, z.core.$strip>, z.ZodObject<{
3145
+ type: z.ZodLiteral<"TrackEvent">;
3146
+ settings: z.ZodObject<{
3147
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3148
+ category: z.ZodString;
3149
+ action: z.ZodString;
3150
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
3151
+ }, z.core.$strip>;
3152
+ }, z.core.$strip>, z.ZodObject<{
3153
+ type: z.ZodLiteral<"ProcessHttp">;
3154
+ settings: z.ZodObject<{
3155
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3156
+ method: z.ZodEnum<{
3157
+ POST: "POST";
3158
+ GET: "GET";
3159
+ PUT: "PUT";
3160
+ DELETE: "DELETE";
3161
+ }>;
3162
+ uri: z.ZodString;
3163
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
3164
+ body: z.ZodString;
3165
+ responseBodyVariable: z.ZodString;
3166
+ responseStatusVariable: z.ZodString;
3167
+ }, z.core.$strip>;
3168
+ }, z.core.$strip>, z.ZodObject<{
3169
+ type: z.ZodLiteral<"MergeContact">;
3170
+ settings: z.ZodObject<{
3171
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3172
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3173
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3174
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3175
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
3176
+ }, z.core.$strip>;
3177
+ }, z.core.$strip>, z.ZodObject<{
3178
+ type: z.ZodLiteral<"ExecuteScript">;
3179
+ settings: z.ZodObject<{
3180
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3181
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
3182
+ source: z.ZodString;
3183
+ inputVariables: z.ZodArray<z.ZodString>;
3184
+ outputVariable: z.ZodString;
3185
+ }, z.core.$strip>;
3186
+ }, z.core.$strip>, z.ZodObject<{
3187
+ type: z.ZodLiteral<"ExecuteScriptV2">;
3188
+ settings: z.ZodObject<{
3189
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3190
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
3191
+ source: z.ZodString;
3192
+ inputVariables: z.ZodArray<z.ZodString>;
3193
+ outputVariable: z.ZodString;
3194
+ }, z.core.$strip>;
3195
+ }, z.core.$strip>, z.ZodObject<{
3196
+ type: z.ZodLiteral<"SetVariable">;
3197
+ settings: z.ZodObject<{
3198
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3199
+ variable: z.ZodString;
3200
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3201
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3202
+ }, z.core.$strip>;
3203
+ }, z.core.$strip>, z.ZodObject<{
3204
+ type: z.ZodLiteral<"ProcessCommand">;
3205
+ settings: z.ZodObject<{
3206
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3207
+ to: z.ZodString;
3208
+ method: z.ZodEnum<{
3209
+ get: "get";
3210
+ set: "set";
3211
+ merge: "merge";
3212
+ delete: "delete";
3213
+ }>;
3214
+ uri: z.ZodString;
3215
+ variable: z.ZodString;
3216
+ from: z.ZodOptional<z.ZodString>;
3217
+ }, z.core.$strip>;
3218
+ }, z.core.$strip>, z.ZodObject<{
3219
+ type: z.ZodLiteral<"ForwardToDesk">;
3220
+ settings: z.ZodObject<{
3221
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3222
+ }, z.core.$strip>;
3223
+ }, z.core.$strip>, z.ZodObject<{
3224
+ type: z.ZodLiteral<"LeavingFromDesk">;
3225
+ settings: z.ZodObject<{
3226
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3227
+ }, z.core.$strip>;
3228
+ }, z.core.$strip>, z.ZodObject<{
3229
+ type: z.ZodLiteral<"Redirect">;
3230
+ settings: z.ZodObject<{
3231
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3232
+ address: z.ZodString;
3233
+ context: z.ZodObject<{
3234
+ type: z.ZodLiteral<"text/plain">;
3235
+ value: z.ZodString;
3236
+ }, z.core.$strip>;
3237
+ }, z.core.$strip>;
3238
+ }, z.core.$strip>], "type">>>>;
3239
+ $tags: z.ZodArray<z.ZodObject<{
3240
+ id: z.ZodString;
3241
+ label: z.ZodString;
3242
+ background: z.ZodString;
3243
+ canChangeBackground: z.ZodBoolean;
3244
+ }, z.core.$strip>>;
3245
+ id: z.ZodOptional<z.ZodString>;
3246
+ root: z.ZodOptional<z.ZodBoolean>;
3247
+ $title: z.ZodString;
3248
+ $position: z.ZodOptional<z.ZodObject<{
3249
+ top: z.ZodString;
3250
+ left: z.ZodString;
3251
+ }, z.core.$strip>>;
3252
+ $invalidContentActions: z.ZodBoolean;
3253
+ $invalidOutputs: z.ZodBoolean;
3254
+ $invalidCustomActions: z.ZodBoolean;
3255
+ $invalid: z.ZodOptional<z.ZodBoolean>;
3256
+ $whiteWallIntegration: z.ZodOptional<z.ZodUnknown>;
3257
+ }, z.core.$strip>>;
3258
+ export type Condition = z.infer<typeof conditionSchema>;
3259
+ export type Action = z.infer<typeof actionSchema>;
3260
+ export type InputState = z.infer<typeof inputStateSchema>;
3261
+ export type ConditionOutput = z.infer<typeof conditionOutputSchema>;
3262
+ export type DefaultOutput = z.infer<typeof defaultOutputSchema>;
3263
+ export type ContentActionItem = z.infer<typeof contentActionItemSchema>;
3264
+ export type State = z.infer<typeof stateSchema>;
3265
+ export type Flow = z.infer<typeof flowSchema>;
3266
+ export type BuilderFlow = Flow;
142
3267
  export type BuilderConfiguration = {
143
3268
  'builder:minimumIntentScore'?: string;
144
3269
  'builder:stateTrack'?: string;
145
3270
  'builder:#localTimeZone'?: string;
146
3271
  } & Record<string, string | number>;
147
- export type BuilderFlow = Record<'onboarding' | 'fallback' | string, State>;
148
3272
  export type HistoryIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
149
3273
  export type Publication = {
150
3274
  authorIdentity: string;
@@ -163,19 +3287,22 @@ export type BuilderLatestPublication = {
163
3287
  globalActions?: State;
164
3288
  configuration?: BuilderConfiguration;
165
3289
  };
166
- type RecursivelyRemoveDollar<T> = T extends object ? T extends Array<infer U> ? Array<RecursivelyRemoveDollar<U>> : {
167
- [K in keyof T as K extends `$${string}` ? never : K]: RecursivelyRemoveDollar<T[K]>;
3290
+ type RecursivelyRemoveDollar<T> = T extends object ? T extends Array<infer Item> ? Array<RecursivelyRemoveDollar<Item>> : {
3291
+ [Key in keyof T as Key extends `$${string}` ? never : Key]: RecursivelyRemoveDollar<T[Key]>;
168
3292
  } : T;
3293
+ type TypeOfStateId = (typeof TYPE_OF_STATE_ID)[number];
169
3294
  export type StateApplication = {
170
3295
  id: string;
171
3296
  root?: boolean;
172
3297
  name: string;
3298
+ deskStateVersion?: string;
173
3299
  inputActions: RecursivelyRemoveDollar<Array<Action>>;
174
3300
  input: RecursivelyRemoveDollar<InputState>;
175
3301
  outputActions: RecursivelyRemoveDollar<Array<Action>>;
176
3302
  afterStateChangedActions: RecursivelyRemoveDollar<Array<Action>>;
177
3303
  outputs: Array<{
178
3304
  stateId: string;
3305
+ typeOfStateId?: TypeOfStateId;
179
3306
  conditions?: RecursivelyRemoveDollar<Array<Condition>>;
180
3307
  }>;
181
3308
  };