@whitewall/blip-sdk 0.0.190 → 0.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/flow.js +13 -8
- package/dist/cjs/types/flow.js.map +1 -1
- package/dist/cjs/utils/builder.js +40 -21
- package/dist/cjs/utils/builder.js.map +1 -1
- package/dist/cjs/utils/minifier.js +460 -0
- package/dist/cjs/utils/minifier.js.map +1 -0
- package/dist/cjs/utils/whatsapp.js +7 -0
- package/dist/cjs/utils/whatsapp.js.map +1 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/flow.js +11 -6
- package/dist/esm/types/flow.js.map +1 -1
- package/dist/esm/utils/builder.js +38 -19
- package/dist/esm/utils/builder.js.map +1 -1
- package/dist/esm/utils/minifier.js +455 -0
- package/dist/esm/utils/minifier.js.map +1 -0
- package/dist/esm/utils/whatsapp.js +6 -0
- package/dist/esm/utils/whatsapp.js.map +1 -1
- package/dist/types/client.d.ts +2 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/namespaces/account.d.ts +20 -20
- package/dist/types/types/flow.d.ts +253 -96
- package/dist/types/types/flow.d.ts.map +1 -1
- package/dist/types/utils/builder.d.ts +28 -16
- package/dist/types/utils/builder.d.ts.map +1 -1
- package/dist/types/utils/minifier.d.ts +2565 -0
- package/dist/types/utils/minifier.d.ts.map +1 -0
- package/dist/types/utils/whatsapp.d.ts +2 -0
- package/dist/types/utils/whatsapp.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2 -1
- package/src/index.ts +1 -0
- package/src/types/flow.ts +12 -6
- package/src/utils/builder.ts +62 -41
- package/src/utils/minifier.ts +554 -0
- package/src/utils/whatsapp.ts +7 -0
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
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
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
4
|
declare const TYPE_OF_STATE_ID: readonly ["state", "variable"];
|
|
5
|
+
export declare const ROOT_STATE_ID = "onboarding";
|
|
5
6
|
export declare const conditionSchema: z.ZodObject<{
|
|
6
7
|
source: z.ZodEnum<{
|
|
7
8
|
context: "context";
|
|
@@ -29,6 +30,234 @@ export declare const conditionSchema: z.ZodObject<{
|
|
|
29
30
|
}>>;
|
|
30
31
|
values: z.ZodArray<z.ZodString>;
|
|
31
32
|
}, z.core.$strip>;
|
|
33
|
+
export declare const baseActionSchema: z.ZodObject<{
|
|
34
|
+
$id: z.ZodString;
|
|
35
|
+
$typeOfContent: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
"": "";
|
|
37
|
+
text: "text";
|
|
38
|
+
"select-immediate": "select-immediate";
|
|
39
|
+
select: "select";
|
|
40
|
+
media: "media";
|
|
41
|
+
"media-audio": "media-audio";
|
|
42
|
+
"media-video": "media-video";
|
|
43
|
+
"media-document": "media-document";
|
|
44
|
+
"chat-state": "chat-state";
|
|
45
|
+
"web-link": "web-link";
|
|
46
|
+
"raw-content": "raw-content";
|
|
47
|
+
}>>;
|
|
48
|
+
$title: z.ZodOptional<z.ZodString>;
|
|
49
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
source: z.ZodEnum<{
|
|
52
|
+
context: "context";
|
|
53
|
+
input: "input";
|
|
54
|
+
}>;
|
|
55
|
+
variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
comparison: z.ZodEnum<{
|
|
57
|
+
endsWith: "endsWith";
|
|
58
|
+
startsWith: "startsWith";
|
|
59
|
+
equals: "equals";
|
|
60
|
+
notEquals: "notEquals";
|
|
61
|
+
contains: "contains";
|
|
62
|
+
greaterThan: "greaterThan";
|
|
63
|
+
lessThan: "lessThan";
|
|
64
|
+
greaterThanOrEquals: "greaterThanOrEquals";
|
|
65
|
+
lessThanOrEquals: "lessThanOrEquals";
|
|
66
|
+
matches: "matches";
|
|
67
|
+
approximateTo: "approximateTo";
|
|
68
|
+
exists: "exists";
|
|
69
|
+
notExists: "notExists";
|
|
70
|
+
}>;
|
|
71
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
or: "or";
|
|
73
|
+
and: "and";
|
|
74
|
+
}>>;
|
|
75
|
+
values: z.ZodArray<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
77
|
+
$cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
78
|
+
editable: z.ZodBoolean;
|
|
79
|
+
deletable: z.ZodBoolean;
|
|
80
|
+
position: z.ZodLiteral<"left">;
|
|
81
|
+
document: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
type: z.ZodString;
|
|
84
|
+
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
85
|
+
title: z.ZodOptional<z.ZodString>;
|
|
86
|
+
text: z.ZodOptional<z.ZodString>;
|
|
87
|
+
type: z.ZodString;
|
|
88
|
+
uri: z.ZodString;
|
|
89
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
92
|
+
immediate: "immediate";
|
|
93
|
+
persistent: "persistent";
|
|
94
|
+
}>>>;
|
|
95
|
+
options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
96
|
+
text: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>]>;
|
|
98
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
99
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
text: z.ZodString;
|
|
101
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
blank: "blank";
|
|
103
|
+
self: "self";
|
|
104
|
+
selfCompact: "selfCompact";
|
|
105
|
+
selfTall: "selfTall";
|
|
106
|
+
}>>>;
|
|
107
|
+
uri: z.ZodString;
|
|
108
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
109
|
+
state: z.ZodString;
|
|
110
|
+
interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
111
|
+
}, z.core.$strip>]>, z.ZodString]>;
|
|
112
|
+
textContent: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
continueOnError: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const actionTypeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
118
|
+
type: z.ZodLiteral<"SendMessage">;
|
|
119
|
+
settings: z.ZodObject<{
|
|
120
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
"text/plain": "text/plain";
|
|
123
|
+
"application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
|
|
124
|
+
"application/vnd.lime.select+json": "application/vnd.lime.select+json";
|
|
125
|
+
"application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
|
|
126
|
+
"application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
|
|
127
|
+
}>>;
|
|
128
|
+
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
129
|
+
title: z.ZodOptional<z.ZodString>;
|
|
130
|
+
text: z.ZodOptional<z.ZodString>;
|
|
131
|
+
type: z.ZodString;
|
|
132
|
+
uri: z.ZodString;
|
|
133
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
134
|
+
text: z.ZodString;
|
|
135
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
136
|
+
immediate: "immediate";
|
|
137
|
+
persistent: "persistent";
|
|
138
|
+
}>>>;
|
|
139
|
+
options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
140
|
+
text: z.ZodString;
|
|
141
|
+
}, z.core.$strip>>]>;
|
|
142
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
143
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
text: z.ZodString;
|
|
145
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
146
|
+
blank: "blank";
|
|
147
|
+
self: "self";
|
|
148
|
+
selfCompact: "selfCompact";
|
|
149
|
+
selfTall: "selfTall";
|
|
150
|
+
}>>>;
|
|
151
|
+
uri: z.ZodString;
|
|
152
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
153
|
+
state: z.ZodString;
|
|
154
|
+
interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
155
|
+
}, z.core.$strip>]>;
|
|
156
|
+
id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"SendRawMessage">;
|
|
161
|
+
settings: z.ZodObject<{
|
|
162
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
type: z.ZodOptional<z.ZodString>;
|
|
164
|
+
rawContent: z.ZodString;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
type: z.ZodLiteral<"TrackEvent">;
|
|
168
|
+
settings: z.ZodObject<{
|
|
169
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
category: z.ZodString;
|
|
171
|
+
action: z.ZodString;
|
|
172
|
+
extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
+
type: z.ZodLiteral<"ProcessHttp">;
|
|
176
|
+
settings: z.ZodObject<{
|
|
177
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
method: z.ZodEnum<{
|
|
179
|
+
POST: "POST";
|
|
180
|
+
GET: "GET";
|
|
181
|
+
PUT: "PUT";
|
|
182
|
+
DELETE: "DELETE";
|
|
183
|
+
}>;
|
|
184
|
+
uri: z.ZodString;
|
|
185
|
+
headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
186
|
+
body: z.ZodString;
|
|
187
|
+
responseBodyVariable: z.ZodString;
|
|
188
|
+
responseStatusVariable: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"MergeContact">;
|
|
192
|
+
settings: z.ZodObject<{
|
|
193
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
200
|
+
type: z.ZodLiteral<"ExecuteScript">;
|
|
201
|
+
settings: z.ZodObject<{
|
|
202
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
function: z.ZodOptional<z.ZodLiteral<"run">>;
|
|
204
|
+
source: z.ZodString;
|
|
205
|
+
inputVariables: z.ZodArray<z.ZodString>;
|
|
206
|
+
outputVariable: z.ZodString;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
type: z.ZodLiteral<"ExecuteScriptV2">;
|
|
210
|
+
settings: z.ZodObject<{
|
|
211
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
function: z.ZodOptional<z.ZodLiteral<"run">>;
|
|
213
|
+
source: z.ZodString;
|
|
214
|
+
inputVariables: z.ZodArray<z.ZodString>;
|
|
215
|
+
outputVariable: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"SetVariable">;
|
|
219
|
+
settings: z.ZodObject<{
|
|
220
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
variable: z.ZodString;
|
|
222
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
223
|
+
expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"ProcessCommand">;
|
|
227
|
+
settings: z.ZodObject<{
|
|
228
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
to: z.ZodString;
|
|
230
|
+
method: z.ZodEnum<{
|
|
231
|
+
get: "get";
|
|
232
|
+
set: "set";
|
|
233
|
+
merge: "merge";
|
|
234
|
+
delete: "delete";
|
|
235
|
+
}>;
|
|
236
|
+
uri: z.ZodString;
|
|
237
|
+
variable: z.ZodString;
|
|
238
|
+
from: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<"ForwardToDesk">;
|
|
242
|
+
settings: z.ZodObject<{
|
|
243
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
type: z.ZodLiteral<"LeavingFromDesk">;
|
|
247
|
+
settings: z.ZodObject<{
|
|
248
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"Redirect">;
|
|
252
|
+
settings: z.ZodObject<{
|
|
253
|
+
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
address: z.ZodString;
|
|
255
|
+
context: z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"text/plain">;
|
|
257
|
+
value: z.ZodString;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
}, z.core.$strip>], "type">;
|
|
32
261
|
export declare const actionSchema: z.ZodIntersection<z.ZodObject<{
|
|
33
262
|
$id: z.ZodString;
|
|
34
263
|
$typeOfContent: z.ZodOptional<z.ZodEnum<{
|
|
@@ -79,13 +308,7 @@ export declare const actionSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
79
308
|
position: z.ZodLiteral<"left">;
|
|
80
309
|
document: z.ZodObject<{
|
|
81
310
|
id: z.ZodString;
|
|
82
|
-
type: z.
|
|
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">]>;
|
|
311
|
+
type: z.ZodString;
|
|
89
312
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
90
313
|
title: z.ZodOptional<z.ZodString>;
|
|
91
314
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -164,7 +387,7 @@ export declare const actionSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
164
387
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
165
388
|
settings: z.ZodObject<{
|
|
166
389
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
-
type: z.ZodOptional<z.
|
|
390
|
+
type: z.ZodOptional<z.ZodString>;
|
|
168
391
|
rawContent: z.ZodString;
|
|
169
392
|
}, z.core.$strip>;
|
|
170
393
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -419,13 +642,7 @@ export declare const contentActionItemSchema: z.ZodObject<{
|
|
|
419
642
|
position: z.ZodLiteral<"left">;
|
|
420
643
|
document: z.ZodObject<{
|
|
421
644
|
id: z.ZodString;
|
|
422
|
-
type: z.
|
|
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">]>;
|
|
645
|
+
type: z.ZodString;
|
|
429
646
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
430
647
|
title: z.ZodOptional<z.ZodString>;
|
|
431
648
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -504,7 +721,7 @@ export declare const contentActionItemSchema: z.ZodObject<{
|
|
|
504
721
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
505
722
|
settings: z.ZodObject<{
|
|
506
723
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
-
type: z.ZodOptional<z.
|
|
724
|
+
type: z.ZodOptional<z.ZodString>;
|
|
508
725
|
rawContent: z.ZodString;
|
|
509
726
|
}, z.core.$strip>;
|
|
510
727
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -713,13 +930,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
713
930
|
position: z.ZodLiteral<"left">;
|
|
714
931
|
document: z.ZodObject<{
|
|
715
932
|
id: z.ZodString;
|
|
716
|
-
type: z.
|
|
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">]>;
|
|
933
|
+
type: z.ZodString;
|
|
723
934
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
724
935
|
title: z.ZodOptional<z.ZodString>;
|
|
725
936
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -798,7 +1009,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
798
1009
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
799
1010
|
settings: z.ZodObject<{
|
|
800
1011
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
801
|
-
type: z.ZodOptional<z.
|
|
1012
|
+
type: z.ZodOptional<z.ZodString>;
|
|
802
1013
|
rawContent: z.ZodString;
|
|
803
1014
|
}, z.core.$strip>;
|
|
804
1015
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1046,13 +1257,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1046
1257
|
position: z.ZodLiteral<"left">;
|
|
1047
1258
|
document: z.ZodObject<{
|
|
1048
1259
|
id: z.ZodString;
|
|
1049
|
-
type: z.
|
|
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">]>;
|
|
1260
|
+
type: z.ZodString;
|
|
1056
1261
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1057
1262
|
title: z.ZodOptional<z.ZodString>;
|
|
1058
1263
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1131,7 +1336,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1131
1336
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
1132
1337
|
settings: z.ZodObject<{
|
|
1133
1338
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1134
|
-
type: z.ZodOptional<z.
|
|
1339
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1135
1340
|
rawContent: z.ZodString;
|
|
1136
1341
|
}, z.core.$strip>;
|
|
1137
1342
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1279,13 +1484,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1279
1484
|
position: z.ZodLiteral<"left">;
|
|
1280
1485
|
document: z.ZodObject<{
|
|
1281
1486
|
id: z.ZodString;
|
|
1282
|
-
type: z.
|
|
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">]>;
|
|
1487
|
+
type: z.ZodString;
|
|
1289
1488
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1290
1489
|
title: z.ZodOptional<z.ZodString>;
|
|
1291
1490
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1364,7 +1563,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1364
1563
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
1365
1564
|
settings: z.ZodObject<{
|
|
1366
1565
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1367
|
-
type: z.ZodOptional<z.
|
|
1566
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1368
1567
|
rawContent: z.ZodString;
|
|
1369
1568
|
}, z.core.$strip>;
|
|
1370
1569
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1512,13 +1711,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1512
1711
|
position: z.ZodLiteral<"left">;
|
|
1513
1712
|
document: z.ZodObject<{
|
|
1514
1713
|
id: z.ZodString;
|
|
1515
|
-
type: z.
|
|
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">]>;
|
|
1714
|
+
type: z.ZodString;
|
|
1522
1715
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1523
1716
|
title: z.ZodOptional<z.ZodString>;
|
|
1524
1717
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1597,7 +1790,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1597
1790
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
1598
1791
|
settings: z.ZodObject<{
|
|
1599
1792
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1600
|
-
type: z.ZodOptional<z.
|
|
1793
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1601
1794
|
rawContent: z.ZodString;
|
|
1602
1795
|
}, z.core.$strip>;
|
|
1603
1796
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1756,13 +1949,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1756
1949
|
position: z.ZodLiteral<"left">;
|
|
1757
1950
|
document: z.ZodObject<{
|
|
1758
1951
|
id: z.ZodString;
|
|
1759
|
-
type: z.
|
|
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">]>;
|
|
1952
|
+
type: z.ZodString;
|
|
1766
1953
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1767
1954
|
title: z.ZodOptional<z.ZodString>;
|
|
1768
1955
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1841,7 +2028,7 @@ export declare const stateSchema: z.ZodObject<{
|
|
|
1841
2028
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
1842
2029
|
settings: z.ZodObject<{
|
|
1843
2030
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1844
|
-
type: z.ZodOptional<z.
|
|
2031
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1845
2032
|
rawContent: z.ZodString;
|
|
1846
2033
|
}, z.core.$strip>;
|
|
1847
2034
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2010,13 +2197,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2010
2197
|
position: z.ZodLiteral<"left">;
|
|
2011
2198
|
document: z.ZodObject<{
|
|
2012
2199
|
id: z.ZodString;
|
|
2013
|
-
type: z.
|
|
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">]>;
|
|
2200
|
+
type: z.ZodString;
|
|
2020
2201
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2021
2202
|
title: z.ZodOptional<z.ZodString>;
|
|
2022
2203
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2095,7 +2276,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2095
2276
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
2096
2277
|
settings: z.ZodObject<{
|
|
2097
2278
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
2098
|
-
type: z.ZodOptional<z.
|
|
2279
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2099
2280
|
rawContent: z.ZodString;
|
|
2100
2281
|
}, z.core.$strip>;
|
|
2101
2282
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2343,13 +2524,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2343
2524
|
position: z.ZodLiteral<"left">;
|
|
2344
2525
|
document: z.ZodObject<{
|
|
2345
2526
|
id: z.ZodString;
|
|
2346
|
-
type: z.
|
|
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">]>;
|
|
2527
|
+
type: z.ZodString;
|
|
2353
2528
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2354
2529
|
title: z.ZodOptional<z.ZodString>;
|
|
2355
2530
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2428,7 +2603,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2428
2603
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
2429
2604
|
settings: z.ZodObject<{
|
|
2430
2605
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
2431
|
-
type: z.ZodOptional<z.
|
|
2606
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2432
2607
|
rawContent: z.ZodString;
|
|
2433
2608
|
}, z.core.$strip>;
|
|
2434
2609
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2576,13 +2751,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2576
2751
|
position: z.ZodLiteral<"left">;
|
|
2577
2752
|
document: z.ZodObject<{
|
|
2578
2753
|
id: z.ZodString;
|
|
2579
|
-
type: z.
|
|
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">]>;
|
|
2754
|
+
type: z.ZodString;
|
|
2586
2755
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2587
2756
|
title: z.ZodOptional<z.ZodString>;
|
|
2588
2757
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2661,7 +2830,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2661
2830
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
2662
2831
|
settings: z.ZodObject<{
|
|
2663
2832
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
2664
|
-
type: z.ZodOptional<z.
|
|
2833
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2665
2834
|
rawContent: z.ZodString;
|
|
2666
2835
|
}, z.core.$strip>;
|
|
2667
2836
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2809,13 +2978,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2809
2978
|
position: z.ZodLiteral<"left">;
|
|
2810
2979
|
document: z.ZodObject<{
|
|
2811
2980
|
id: z.ZodString;
|
|
2812
|
-
type: z.
|
|
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">]>;
|
|
2981
|
+
type: z.ZodString;
|
|
2819
2982
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2820
2983
|
title: z.ZodOptional<z.ZodString>;
|
|
2821
2984
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2894,7 +3057,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2894
3057
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
2895
3058
|
settings: z.ZodObject<{
|
|
2896
3059
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
2897
|
-
type: z.ZodOptional<z.
|
|
3060
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2898
3061
|
rawContent: z.ZodString;
|
|
2899
3062
|
}, z.core.$strip>;
|
|
2900
3063
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3053,13 +3216,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
3053
3216
|
position: z.ZodLiteral<"left">;
|
|
3054
3217
|
document: z.ZodObject<{
|
|
3055
3218
|
id: z.ZodString;
|
|
3056
|
-
type: z.
|
|
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">]>;
|
|
3219
|
+
type: z.ZodString;
|
|
3063
3220
|
content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3064
3221
|
title: z.ZodOptional<z.ZodString>;
|
|
3065
3222
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -3138,7 +3295,7 @@ export declare const flowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
3138
3295
|
type: z.ZodLiteral<"SendRawMessage">;
|
|
3139
3296
|
settings: z.ZodObject<{
|
|
3140
3297
|
$invalid: z.ZodOptional<z.ZodBoolean>;
|
|
3141
|
-
type: z.ZodOptional<z.
|
|
3298
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3142
3299
|
rawContent: z.ZodString;
|
|
3143
3300
|
}, z.core.$strip>;
|
|
3144
3301
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,aAAa,uJAYhB,CAAA;AACV,eAAO,MAAM,UAAU,kLAMb,CAAA;AAsBV,QAAA,MAAM,gBAAgB,gCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,aAAa,uJAYhB,CAAA;AACV,eAAO,MAAM,UAAU,kLAMb,CAAA;AAsBV,QAAA,MAAM,gBAAgB,gCAAiC,CAAA;AAEvD,eAAO,MAAM,aAAa,eAAe,CAAA;AA8IzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2B3B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,MAAM,CAAC,CAAC,CAAA;YACrD,IAAI,EAAE,MAAM,CAAA;SACf,CAAA;KACJ,CAAA;IACD,YAAY,EAAE,UAAU,CAAA;CAC3B,CAAA"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Lossy, read-only projection of a builder flow, meant for presenting a state to
|
|
3
|
+
* a human or an LLM. It renames the `$`-prefixed keys to readable ones, drops
|
|
4
|
+
* layout metadata and denormalizes state names, so it cannot be pushed back to
|
|
5
|
+
* the builder. For the round-trippable format, see `./minifier.ts`.
|
|
6
|
+
*/
|
|
7
|
+
import { type Action, type ContentActionItem, type State } from '../types/flow.ts';
|
|
8
|
+
export type ActionDigest = {
|
|
3
9
|
type: string;
|
|
4
10
|
settings: Record<string, unknown>;
|
|
5
11
|
conditions?: Array<{
|
|
@@ -10,7 +16,7 @@ export type MinifiedAction = {
|
|
|
10
16
|
values: Array<string>;
|
|
11
17
|
}>;
|
|
12
18
|
};
|
|
13
|
-
export type
|
|
19
|
+
export type InputDigest = {
|
|
14
20
|
bypass: boolean;
|
|
15
21
|
variable?: string;
|
|
16
22
|
validation?: {
|
|
@@ -20,35 +26,41 @@ export type MinifiedInput = {
|
|
|
20
26
|
error: string;
|
|
21
27
|
};
|
|
22
28
|
expiration?: string;
|
|
23
|
-
conditions?:
|
|
29
|
+
conditions?: ActionDigest['conditions'];
|
|
24
30
|
};
|
|
25
|
-
export type
|
|
31
|
+
export type OutputDigest = {
|
|
26
32
|
stateId: string;
|
|
27
33
|
stateName?: string;
|
|
28
34
|
typeOfStateId?: string;
|
|
29
|
-
conditions?:
|
|
35
|
+
conditions?: ActionDigest['conditions'];
|
|
30
36
|
};
|
|
31
|
-
export type
|
|
37
|
+
export type StateDigest = {
|
|
32
38
|
id: string;
|
|
33
39
|
name: string;
|
|
34
40
|
root?: boolean;
|
|
35
|
-
enteringActions?: Array<
|
|
41
|
+
enteringActions?: Array<ActionDigest>;
|
|
36
42
|
contentActions?: Array<{
|
|
37
|
-
action?:
|
|
38
|
-
input?:
|
|
43
|
+
action?: ActionDigest;
|
|
44
|
+
input?: InputDigest;
|
|
39
45
|
}>;
|
|
40
|
-
leavingActions?: Array<
|
|
41
|
-
outputs?: Array<
|
|
46
|
+
leavingActions?: Array<ActionDigest>;
|
|
47
|
+
outputs?: Array<OutputDigest>;
|
|
42
48
|
defaultOutput: {
|
|
43
49
|
stateId: string;
|
|
44
50
|
stateName?: string;
|
|
45
51
|
typeOfStateId?: string;
|
|
46
52
|
};
|
|
47
|
-
afterStateChangedActions?: Array<
|
|
48
|
-
localActions?: Array<
|
|
53
|
+
afterStateChangedActions?: Array<ActionDigest>;
|
|
54
|
+
localActions?: Array<ActionDigest>;
|
|
49
55
|
};
|
|
50
|
-
export declare function
|
|
56
|
+
export declare function digestAction(action: Action): ActionDigest;
|
|
57
|
+
/**
|
|
58
|
+
* Typing indicators are noise in every projection of a flow, so both the digest
|
|
59
|
+
* and the minifier drop them. The two signals are checked because `$typeOfContent`
|
|
60
|
+
* is absent from a minified flow and can come back empty from a GET, while the
|
|
61
|
+
* settings mime type is absent from a hand-written action.
|
|
62
|
+
*/
|
|
51
63
|
export declare function isChatStateSendMessage(item: ContentActionItem): boolean;
|
|
52
64
|
export declare function resolveStateName(stateId: string, flow: Record<string, State>): string | undefined;
|
|
53
|
-
export declare function
|
|
65
|
+
export declare function digestState(stateId: string, state: State, flow: Record<string, State>): StateDigest;
|
|
54
66
|
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/utils/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/utils/builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAiB,KAAK,KAA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