@requence/service 1.0.0-alpha.4 → 1.0.0-alpha.40

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 (94) hide show
  1. package/CHANGELOG.md +216 -0
  2. package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
  3. package/build/chunk-6w7td62p.js.map +10 -0
  4. package/build/cli.js +19 -12
  5. package/build/cli.js.map +3 -3
  6. package/build/index.js +930 -863
  7. package/build/index.js.map +18 -16
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +10 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +12 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +29 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +12 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +447 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +471 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +5 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  45. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts +22 -0
  47. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +636 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +354 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  55. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  58. package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  59. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  61. package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
  62. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  64. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  65. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  66. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  68. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  70. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/types.d.ts +4 -0
  72. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  73. package/build/types/service/src/createAmqpConnection.d.ts +19 -20
  74. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  75. package/build/types/service/src/helpers.d.ts +72 -99
  76. package/build/types/service/src/helpers.d.ts.map +1 -1
  77. package/build/types/service/src/index.d.ts +8 -4
  78. package/build/types/service/src/index.d.ts.map +1 -1
  79. package/build/types/service/src/macro.d.ts +2 -0
  80. package/build/types/service/src/macro.d.ts.map +1 -0
  81. package/build/types/service/src/mapInput.d.ts +2 -0
  82. package/build/types/service/src/mapInput.d.ts.map +1 -0
  83. package/build/types/service/src/utils.d.ts +6 -0
  84. package/build/types/service/src/utils.d.ts.map +1 -0
  85. package/package.json +7 -8
  86. package/build/chunk-0x9092n4.js.map +0 -12
  87. package/build/types/helpers/src/clone.d.ts +0 -3
  88. package/build/types/helpers/src/clone.d.ts.map +0 -1
  89. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  90. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  91. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  92. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  93. package/build/types/helpers/src/utils.d.ts.map +0 -1
  94. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,354 @@
1
+ import { z } from 'zod/v4';
2
+ declare const nodeInitUpdateSchema: z.ZodObject<{
3
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
4
+ id: z.ZodUUID;
5
+ node: z.ZodObject<{
6
+ id: z.ZodUUID;
7
+ type: z.ZodEnum<{
8
+ service: "service";
9
+ logic: "logic";
10
+ or: "or";
11
+ reference: "reference";
12
+ }>;
13
+ alias: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ type: z.ZodLiteral<"NODE_INIT">;
16
+ triggers: z.ZodArray<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ export type NodeInitUpdate = z.infer<typeof nodeInitUpdateSchema>;
19
+ declare const nodeStartUpdateSchema: z.ZodObject<{
20
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
21
+ id: z.ZodUUID;
22
+ node: z.ZodObject<{
23
+ id: z.ZodUUID;
24
+ type: z.ZodEnum<{
25
+ service: "service";
26
+ logic: "logic";
27
+ or: "or";
28
+ reference: "reference";
29
+ }>;
30
+ alias: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ type: z.ZodLiteral<"NODE_START">;
33
+ libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
+ triggers: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ export type NodeStartUpdate = z.infer<typeof nodeStartUpdateSchema>;
37
+ declare const nodeErrorUpdateSchema: z.ZodObject<{
38
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
39
+ id: z.ZodUUID;
40
+ node: z.ZodObject<{
41
+ id: z.ZodUUID;
42
+ type: z.ZodEnum<{
43
+ service: "service";
44
+ logic: "logic";
45
+ or: "or";
46
+ reference: "reference";
47
+ }>;
48
+ alias: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>;
50
+ type: z.ZodLiteral<"NODE_ERROR">;
51
+ error: z.ZodString;
52
+ }, z.core.$strip>;
53
+ export type NodeErrorUpdate = z.infer<typeof nodeErrorUpdateSchema>;
54
+ declare const nodeUpdateSchema: z.ZodObject<{
55
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
56
+ id: z.ZodUUID;
57
+ node: z.ZodObject<{
58
+ id: z.ZodUUID;
59
+ type: z.ZodEnum<{
60
+ service: "service";
61
+ logic: "logic";
62
+ or: "or";
63
+ reference: "reference";
64
+ }>;
65
+ alias: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ type: z.ZodLiteral<"NODE_UPDATE">;
68
+ output: z.ZodNullable<z.ZodString>;
69
+ data: z.ZodUnknown;
70
+ }, z.core.$strip>;
71
+ export type NodeUpdate = z.infer<typeof nodeUpdateSchema>;
72
+ declare const nodeCallbackSchema: z.ZodObject<{
73
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
74
+ id: z.ZodUUID;
75
+ node: z.ZodObject<{
76
+ id: z.ZodUUID;
77
+ type: z.ZodEnum<{
78
+ service: "service";
79
+ logic: "logic";
80
+ or: "or";
81
+ reference: "reference";
82
+ }>;
83
+ alias: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ type: z.ZodLiteral<"NODE_CALLBACK">;
86
+ targetNode: z.ZodObject<{
87
+ id: z.ZodUUID;
88
+ type: z.ZodEnum<{
89
+ service: "service";
90
+ logic: "logic";
91
+ or: "or";
92
+ reference: "reference";
93
+ }>;
94
+ alias: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>;
96
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
97
+ output: z.ZodNullable<z.ZodString>;
98
+ data: z.ZodUnknown;
99
+ }, z.core.$strip>;
100
+ export type NodeCallback = z.infer<typeof nodeCallbackSchema>;
101
+ declare const nodeEndUpdateSchema: z.ZodObject<{
102
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
103
+ id: z.ZodUUID;
104
+ node: z.ZodObject<{
105
+ id: z.ZodUUID;
106
+ type: z.ZodEnum<{
107
+ service: "service";
108
+ logic: "logic";
109
+ or: "or";
110
+ reference: "reference";
111
+ }>;
112
+ alias: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ type: z.ZodLiteral<"NODE_END">;
115
+ }, z.core.$strip>;
116
+ export type NodeEndUpdate = z.infer<typeof nodeEndUpdateSchema>;
117
+ declare const nodeDebugUpdateSchema: z.ZodObject<{
118
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
119
+ id: z.ZodUUID;
120
+ node: z.ZodObject<{
121
+ id: z.ZodUUID;
122
+ type: z.ZodEnum<{
123
+ service: "service";
124
+ logic: "logic";
125
+ or: "or";
126
+ reference: "reference";
127
+ }>;
128
+ alias: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ type: z.ZodLiteral<"NODE_DEBUG">;
131
+ severity: z.ZodEnum<{
132
+ error: "error";
133
+ log: "log";
134
+ warn: "warn";
135
+ info: "info";
136
+ system: "system";
137
+ }>;
138
+ data: z.ZodUnknown;
139
+ }, z.core.$strip>;
140
+ export type NodeDebugUpdate = z.infer<typeof nodeDebugUpdateSchema>;
141
+ declare const nodeDeferUpdateSchema: z.ZodObject<{
142
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
143
+ id: z.ZodUUID;
144
+ node: z.ZodObject<{
145
+ id: z.ZodUUID;
146
+ type: z.ZodEnum<{
147
+ service: "service";
148
+ logic: "logic";
149
+ or: "or";
150
+ reference: "reference";
151
+ }>;
152
+ alias: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ type: z.ZodLiteral<"NODE_DEFER">;
155
+ reason: z.ZodUnknown;
156
+ }, z.core.$strip>;
157
+ export type NodeDeferUpdate = z.infer<typeof nodeDeferUpdateSchema>;
158
+ declare const taskStartUpdateSchema: z.ZodObject<{
159
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
160
+ id: z.ZodUUID;
161
+ type: z.ZodLiteral<"TASK_START">;
162
+ parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
163
+ taskId: z.ZodUUID;
164
+ nodeId: z.ZodUUID;
165
+ messageId: z.ZodUUID;
166
+ }, z.core.$strip>>>;
167
+ input: z.ZodUnknown;
168
+ }, z.core.$strip>;
169
+ export type TaskStartUpdate = z.infer<typeof taskStartUpdateSchema>;
170
+ declare const taskErrorUpdateSchema: z.ZodObject<{
171
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
172
+ id: z.ZodUUID;
173
+ type: z.ZodLiteral<"TASK_ERROR">;
174
+ reason: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>;
176
+ export type TaskErrorUpdate = z.infer<typeof taskErrorUpdateSchema>;
177
+ declare const taskEndUpdateSchema: z.ZodObject<{
178
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
179
+ id: z.ZodUUID;
180
+ type: z.ZodLiteral<"TASK_END">;
181
+ exitName: z.ZodNullable<z.ZodString>;
182
+ result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
183
+ }, z.core.$strip>;
184
+ export type TaskEndUpdate = z.infer<typeof taskEndUpdateSchema>;
185
+ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
186
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
187
+ id: z.ZodUUID;
188
+ node: z.ZodObject<{
189
+ id: z.ZodUUID;
190
+ type: z.ZodEnum<{
191
+ service: "service";
192
+ logic: "logic";
193
+ or: "or";
194
+ reference: "reference";
195
+ }>;
196
+ alias: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ type: z.ZodLiteral<"NODE_INIT">;
199
+ triggers: z.ZodArray<z.ZodString>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
202
+ id: z.ZodUUID;
203
+ node: z.ZodObject<{
204
+ id: z.ZodUUID;
205
+ type: z.ZodEnum<{
206
+ service: "service";
207
+ logic: "logic";
208
+ or: "or";
209
+ reference: "reference";
210
+ }>;
211
+ alias: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>;
213
+ type: z.ZodLiteral<"NODE_START">;
214
+ libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
215
+ triggers: z.ZodArray<z.ZodString>;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
218
+ id: z.ZodUUID;
219
+ node: z.ZodObject<{
220
+ id: z.ZodUUID;
221
+ type: z.ZodEnum<{
222
+ service: "service";
223
+ logic: "logic";
224
+ or: "or";
225
+ reference: "reference";
226
+ }>;
227
+ alias: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strip>;
229
+ type: z.ZodLiteral<"NODE_ERROR">;
230
+ error: z.ZodString;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
233
+ id: z.ZodUUID;
234
+ node: z.ZodObject<{
235
+ id: z.ZodUUID;
236
+ type: z.ZodEnum<{
237
+ service: "service";
238
+ logic: "logic";
239
+ or: "or";
240
+ reference: "reference";
241
+ }>;
242
+ alias: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>;
244
+ type: z.ZodLiteral<"NODE_UPDATE">;
245
+ output: z.ZodNullable<z.ZodString>;
246
+ data: z.ZodUnknown;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
249
+ id: z.ZodUUID;
250
+ node: z.ZodObject<{
251
+ id: z.ZodUUID;
252
+ type: z.ZodEnum<{
253
+ service: "service";
254
+ logic: "logic";
255
+ or: "or";
256
+ reference: "reference";
257
+ }>;
258
+ alias: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strip>;
260
+ type: z.ZodLiteral<"NODE_CALLBACK">;
261
+ targetNode: z.ZodObject<{
262
+ id: z.ZodUUID;
263
+ type: z.ZodEnum<{
264
+ service: "service";
265
+ logic: "logic";
266
+ or: "or";
267
+ reference: "reference";
268
+ }>;
269
+ alias: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>;
271
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
272
+ output: z.ZodNullable<z.ZodString>;
273
+ data: z.ZodUnknown;
274
+ }, z.core.$strip>, z.ZodObject<{
275
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
276
+ id: z.ZodUUID;
277
+ node: z.ZodObject<{
278
+ id: z.ZodUUID;
279
+ type: z.ZodEnum<{
280
+ service: "service";
281
+ logic: "logic";
282
+ or: "or";
283
+ reference: "reference";
284
+ }>;
285
+ alias: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>;
287
+ type: z.ZodLiteral<"NODE_END">;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
290
+ id: z.ZodUUID;
291
+ node: z.ZodObject<{
292
+ id: z.ZodUUID;
293
+ type: z.ZodEnum<{
294
+ service: "service";
295
+ logic: "logic";
296
+ or: "or";
297
+ reference: "reference";
298
+ }>;
299
+ alias: z.ZodOptional<z.ZodString>;
300
+ }, z.core.$strip>;
301
+ type: z.ZodLiteral<"NODE_DEBUG">;
302
+ severity: z.ZodEnum<{
303
+ error: "error";
304
+ log: "log";
305
+ warn: "warn";
306
+ info: "info";
307
+ system: "system";
308
+ }>;
309
+ data: z.ZodUnknown;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
312
+ id: z.ZodUUID;
313
+ node: z.ZodObject<{
314
+ id: z.ZodUUID;
315
+ type: z.ZodEnum<{
316
+ service: "service";
317
+ logic: "logic";
318
+ or: "or";
319
+ reference: "reference";
320
+ }>;
321
+ alias: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>;
323
+ type: z.ZodLiteral<"NODE_DEFER">;
324
+ reason: z.ZodUnknown;
325
+ }, z.core.$strip>, z.ZodObject<{
326
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
327
+ id: z.ZodUUID;
328
+ type: z.ZodLiteral<"TASK_START">;
329
+ parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
330
+ taskId: z.ZodUUID;
331
+ nodeId: z.ZodUUID;
332
+ messageId: z.ZodUUID;
333
+ }, z.core.$strip>>>;
334
+ input: z.ZodUnknown;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
337
+ id: z.ZodUUID;
338
+ type: z.ZodLiteral<"TASK_ERROR">;
339
+ reason: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
342
+ id: z.ZodUUID;
343
+ type: z.ZodLiteral<"TASK_END">;
344
+ exitName: z.ZodNullable<z.ZodString>;
345
+ result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
348
+ id: z.ZodUUID;
349
+ type: z.ZodLiteral<"TASK_ABORTED">;
350
+ reason: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strip>]>;
352
+ export type Update = z.infer<typeof updateSchema>;
353
+ export {};
354
+ //# sourceMappingURL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eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;iBAWzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,mBAAmB;;;;;;iBAIvB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAO/D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAavB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare function callbackToAsyncIterator<T>(subscribe: (push: (value: T) => void, fail: (error: Error) => void, end: () => void) => void): AsyncIterator<T>;
2
+ export declare function callbackToAsyncIterable<T>(...args: Parameters<typeof callbackToAsyncIterator<T>>): AsyncIterable<T>;
3
+ //# sourceMappingURL=callbackToAsyncIterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callbackToAsyncIterator.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/callbackToAsyncIterator.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,SAAS,EAAE,CACT,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EAC5B,GAAG,EAAE,MAAM,IAAI,KACZ,IAAI,GACR,aAAa,CAAC,CAAC,CAAC,CAgDlB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,GACrD,aAAa,CAAC,CAAC,CAAC,CAMlB"}
@@ -0,0 +1,3 @@
1
+ export declare const CLONE_SYMBOL: unique symbol;
2
+ export declare function clone(data: any): any;
3
+ //# sourceMappingURL=clone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/clone.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAqB,CAAA;AAE9C,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAiBpC"}
@@ -0,0 +1,2 @@
1
+ export declare function createObjectProxy(obj: Record<string, unknown>, onChange: (newObj: Record<string, unknown>) => void): Record<string, unknown>;
2
+ //# sourceMappingURL=createObjectProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createObjectProxy.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/createObjectProxy.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,2BA2BpD"}
@@ -1,4 +1,4 @@
1
- export default function createRemotePromise<T = void>(onAwait?: (resolve: (value: T) => void, reject: (error: any) => void) => void | Promise<void>): Promise<T> & {
1
+ export declare function createRemotePromise<T = void>(onAwait?: (resolve: (value: T) => void, reject: (error: any) => void) => void | Promise<void>): Promise<T> & {
2
2
  resolve: (value: T | PromiseLike<T>) => void;
3
3
  reject: (reason?: any) => void;
4
4
  promise: Promise<T>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRemotePromise.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/createRemotePromise.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,CAAC,GAAG,IAAI,EAC1C,OAAO,CAAC,EAAE,CACR,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,KACzB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;qBAEI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI;sBAC1B,GAAG,KAAK,IAAI;;EAgC3C;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function isRecord(data: unknown): data is Record<string, unknown>;
2
+ //# sourceMappingURL=isRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRecord.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/isRecord.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvE"}
@@ -0,0 +1,18 @@
1
+ type DataVistor<T> = (data: T, path: Array<string | number>) => Promise<any> | any;
2
+ interface DataVistors {
3
+ Null?: DataVistor<null>;
4
+ String?: DataVistor<string>;
5
+ Number?: DataVistor<number>;
6
+ Object?: DataVistor<object>;
7
+ Array?: DataVistor<Array<any>>;
8
+ Buffer?: DataVistor<Buffer>;
9
+ Function?: DataVistor<(...args: any[]) => any>;
10
+ Symbol?: DataVistor<symbol>;
11
+ }
12
+ type HasPromiseVistor<T extends DataVistors, Then, Else> = T[keyof T] extends (...args: any[]) => any ? Promise<any> extends ReturnType<T[keyof T]> ? Then : Else : Else;
13
+ export declare function mapData<Output, Input = unknown, V extends DataVistors = DataVistors>(data: Input, visitors: V): HasPromiseVistor<V, Promise<unknown extends Output ? Input : Output>, unknown extends Output ? Input : Output>;
14
+ export declare namespace mapData {
15
+ var abort: () => never;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=mapData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapData.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/mapData.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,CAAC,CAAC,IAAI,CACnB,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KACzB,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AAEvB,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,IAAI,GACJ,IAAI,GACN,IAAI,CAAA;AAmBR,wBAAgB,OAAO,CACrB,MAAM,EACN,KAAK,GAAG,OAAO,EACf,CAAC,SAAS,WAAW,GAAG,WAAW,EAEnC,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,CAAC,GACV,gBAAgB,CACjB,CAAC,EACD,OAAO,CAAC,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC,EAChD,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CACxC,CAiFA;yBA5Fe,OAAO"}
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type { z } from 'zod/v4';
2
2
  export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema, input: unknown): input is z.infer<Schema>;
3
3
  export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema): (input: unknown) => input is z.infer<Schema>;
4
- //# sourceMappingURL=utils.d.ts.map
4
+ //# sourceMappingURL=matchSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchSchema.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/matchSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAC3B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,GACb,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"obfuscate.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/obfuscate.ts"],"names":[],"mappings":"AAUA,wBAAgB,SAAS,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,UA0BhD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,UAU1C;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,YA4BtC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod/v4';
2
+ declare const callbackObjectSchema: z.ZodObject<{
3
+ sourceId: z.ZodString;
4
+ outputName: z.ZodNullable<z.ZodString>;
5
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
6
+ callbackId: z.ZodUUID;
7
+ __REQUENCE_type: z.ZodLiteral<"RequenceCallback">;
8
+ }, z.core.$strip>;
9
+ export type CallbackObject = z.infer<typeof callbackObjectSchema>;
10
+ export declare function isCallbackObject(data: unknown): data is CallbackObject;
11
+ export type RequenceCallback<T> = (arg: T) => void;
12
+ export type WrappedRequenceCallback<T> = RequenceCallback<T> & {
13
+ response(): Promise<T>;
14
+ };
15
+ export declare function createCallback<T>(callback?: (arg: T) => void): WrappedRequenceCallback<T>;
16
+ export {};
17
+ //# sourceMappingURL=requenceCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requenceCallback.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/requenceCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,oBAAoB;;;;;;iBAMxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,cAAc,CAEtE;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAA;AAClD,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC7D,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAA;CACvB,CAAA;AAED,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,GAC1B,uBAAuB,CAAC,CAAC,CAAC,CAgB5B"}
@@ -0,0 +1,8 @@
1
+ export declare function resolveRequenceTypes(data: any, onCallback?: (params: {
2
+ sourceId: string;
3
+ callbackId: string;
4
+ outputName: string | null;
5
+ propertyPath: (string | number)[];
6
+ arg: unknown;
7
+ }) => void): any;
8
+ //# sourceMappingURL=resolveRequenceTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRequenceTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/resolveRequenceTypes.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IACjC,GAAG,EAAE,OAAO,CAAA;CACb,KAAK,IAAI,OAmBX"}
@@ -0,0 +1,4 @@
1
+ export type Prettify<T> = {
2
+ [K in keyof T]: T[K];
3
+ } & {};
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
@@ -1,19 +1,17 @@
1
- import { type ExtendendContextHelper, type JSONValue } from './helpers.ts';
2
- type Input<V extends keyof Requence.Version> = Requence.Version[V]['input'];
3
- type Configuration<V extends keyof Requence.Version> = Requence.Version[V]['configuration'];
4
- type OutputName<V extends keyof Requence.Version, K = keyof Requence.Version[V]['outputs']> = K extends '__default__' ? null : K;
5
- type OutputValue<V extends keyof Requence.Version, O extends OutputName<V> | null> = Requence.Version[V]['outputs'][O extends null ? '__default__' : O];
6
- interface ServiceContextHelper<V extends keyof Requence.Version> extends Omit<ExtendendContextHelper, 'getData' | 'getConfiguration' | 'toOutput'> {
7
- getData: {
8
- (): Input<V>;
9
- (alias?: string): unknown;
10
- };
11
- getConfiguration(): Configuration<V>;
1
+ import { type AmqpConnectionManagerOptions } from 'amqp-connection-manager';
2
+ import { type ContextHelper, type JSONValue } from './helpers.ts';
3
+ type Input<V extends keyof RequenceService.Version> = RequenceService.Version[V]['input'];
4
+ type Configuration<V extends keyof RequenceService.Version> = RequenceService.Version[V]['configuration'];
5
+ type OutputName<V extends keyof RequenceService.Version, K = keyof RequenceService.Version[V]['outputs']> = K extends '__default__' ? null : K;
6
+ type OutputValue<V extends keyof RequenceService.Version, O extends OutputName<V> | null> = RequenceService.Version[V]['outputs'][O extends null ? '__default__' : O];
7
+ interface ServiceContextHelper<V extends keyof RequenceService.Version> extends Omit<ContextHelper, 'input' | 'configuration' | 'getData' | 'getConfiguration' | 'toOutput'> {
8
+ input: Input<V>;
9
+ configuration: Configuration<V>;
12
10
  toOutput<O extends OutputName<V>>(name: O, value: OutputValue<V, O>): '__output_value__';
13
11
  }
14
- type ReturnValue<V extends keyof Requence.Version> = ReturnType<ServiceContextHelper<V>['toOutput']> | OutputValue<V, null> | '__output_value__';
15
- type ApiOutputName<V> = V extends keyof Requence.Version ? OutputName<V> : string | null;
16
- type ApiOutputValue<V, O> = V extends keyof Requence.Version ? O extends OutputName<V> ? OutputValue<V, O> : unknown : unknown;
12
+ type ReturnValue<V extends keyof RequenceService.Version> = ReturnType<ServiceContextHelper<V>['toOutput']> | OutputValue<V, null> | '__output_value__';
13
+ type ApiOutputName<V> = V extends keyof RequenceService.Version ? OutputName<V> : string | null;
14
+ type ApiOutputValue<V, O> = V extends keyof RequenceService.Version ? O extends OutputName<V> ? OutputValue<V, O> : unknown : unknown;
17
15
  interface ActorApi<V> {
18
16
  sendToOutput<O extends ApiOutputName<V>>(outputName: O, data: ApiOutputValue<V, O>): void;
19
17
  send(data: ApiOutputValue<V, null>): void;
@@ -31,13 +29,14 @@ interface ConnectionOptions {
31
29
  connectionTimeout: number;
32
30
  prefetch?: number;
33
31
  silent?: boolean;
32
+ connectionOptions?: AmqpConnectionManagerOptions['connectionOptions'];
34
33
  }
35
- type MessageHandlerContext<V> = V extends keyof Requence.Version ? ServiceContextHelper<V> : ExtendendContextHelper;
36
- type MessageHandlerReturnValue<V> = V extends keyof Requence.Version ? ReturnValue<V> : JSONValue;
34
+ type MessageHandlerContext<V> = V extends keyof RequenceService.Version ? ServiceContextHelper<V> : ContextHelper;
35
+ type MessageHandlerReturnValue<V> = V extends keyof RequenceService.Version ? ReturnValue<V> : JSONValue;
37
36
  type MessageHandlerFunction<V> = (context: MessageHandlerContext<V>) => MaybePromise<MessageHandlerReturnValue<V> | void>;
38
- type MessageHandlerGenerator<V> = (context: MessageHandlerContext<V>) => Generator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V>, void>;
39
- type MessageHandlerAsyncGenerator<V> = (context: MessageHandlerContext<V>) => AsyncGenerator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V>, void>;
40
- export type MessageHandler<V> = MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V>;
41
- export default function createConnection<V>({ url, version, prefetch, silent, connectionTimeout, }: ConnectionOptions, messageHandler: MessageHandler<V>): ConnectionApi<V>;
37
+ type MessageHandlerGenerator<V> = (context: MessageHandlerContext<V>) => Generator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V> | void, void>;
38
+ type MessageHandlerAsyncGenerator<V> = (context: MessageHandlerContext<V>) => AsyncGenerator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V> | void, void>;
39
+ export type MessageHandler<V> = V extends keyof RequenceService.Version ? RequenceService.Version[V]['mode'] extends 'linear' ? MessageHandlerFunction<V> : MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V> : MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V>;
40
+ export default function createConnection<V>({ url, version, prefetch, silent, connectionTimeout, connectionOptions, }: ConnectionOptions, messageHandler: MessageHandler<V>): ConnectionApi<V>;
42
41
  export {};
43
42
  //# sourceMappingURL=createAmqpConnection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createAmqpConnection.d.ts","sourceRoot":"","sources":["../../../../src/createAmqpConnection.ts"],"names":[],"mappings":"AAOA,OAAoC,EAElC,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AAC3E,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,QAAQ,CAAC,OAAO,IACjD,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAA;AACtC,KAAK,UAAU,CACb,CAAC,SAAS,MAAM,QAAQ,CAAC,OAAO,EAChC,CAAC,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IACtC,CAAC,SAAS,aAAa,GAAG,IAAI,GAAG,CAAC,CAAA;AAEtC,KAAK,WAAW,CACd,CAAC,SAAS,MAAM,QAAQ,CAAC,OAAO,EAChC,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,IAC5B,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAAI,GA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