@selleragent/api-contract 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/auth.d.ts +457 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +122 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/commerce.d.ts +1393 -0
  7. package/dist/commerce.d.ts.map +1 -0
  8. package/dist/commerce.js +255 -0
  9. package/dist/commerce.js.map +1 -0
  10. package/dist/conversations.d.ts +1956 -0
  11. package/dist/conversations.d.ts.map +1 -0
  12. package/dist/conversations.js +234 -0
  13. package/dist/conversations.js.map +1 -0
  14. package/dist/customers.d.ts +1235 -0
  15. package/dist/customers.d.ts.map +1 -0
  16. package/dist/customers.js +214 -0
  17. package/dist/customers.js.map +1 -0
  18. package/dist/followups.d.ts +382 -0
  19. package/dist/followups.d.ts.map +1 -0
  20. package/dist/followups.js +99 -0
  21. package/dist/followups.js.map +1 -0
  22. package/dist/index.d.ts +22 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +588 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/judge-files.d.ts +873 -0
  27. package/dist/judge-files.d.ts.map +1 -0
  28. package/dist/judge-files.js +280 -0
  29. package/dist/judge-files.js.map +1 -0
  30. package/dist/operations.d.ts +23537 -0
  31. package/dist/operations.d.ts.map +1 -0
  32. package/dist/operations.js +1832 -0
  33. package/dist/operations.js.map +1 -0
  34. package/dist/ops.d.ts +4438 -0
  35. package/dist/ops.d.ts.map +1 -0
  36. package/dist/ops.js +537 -0
  37. package/dist/ops.js.map +1 -0
  38. package/dist/runtime.d.ts +1051 -0
  39. package/dist/runtime.d.ts.map +1 -0
  40. package/dist/runtime.js +325 -0
  41. package/dist/runtime.js.map +1 -0
  42. package/dist/semantic-eval.d.ts +1234 -0
  43. package/dist/semantic-eval.d.ts.map +1 -0
  44. package/dist/semantic-eval.js +162 -0
  45. package/dist/semantic-eval.js.map +1 -0
  46. package/dist/system.d.ts +69 -0
  47. package/dist/system.d.ts.map +1 -0
  48. package/dist/system.js +52 -0
  49. package/dist/system.js.map +1 -0
  50. package/package.json +38 -0
@@ -0,0 +1,1235 @@
1
+ import { z } from 'zod';
2
+ export declare const customerChannelSchema: z.ZodEnum<{
3
+ telegram: "telegram";
4
+ telegram_business: "telegram_business";
5
+ local_playground: "local_playground";
6
+ web_chat: "web_chat";
7
+ manual: "manual";
8
+ }>;
9
+ export type CustomerChannel = z.infer<typeof customerChannelSchema>;
10
+ export declare const customerPriceSensitivitySchema: z.ZodEnum<{
11
+ low: "low";
12
+ medium: "medium";
13
+ high: "high";
14
+ }>;
15
+ export declare const customerDecisionSpeedSchema: z.ZodEnum<{
16
+ medium: "medium";
17
+ slow: "slow";
18
+ fast: "fast";
19
+ }>;
20
+ export declare const customerFollowUpToleranceSchema: z.ZodEnum<{
21
+ low: "low";
22
+ medium: "medium";
23
+ high: "high";
24
+ }>;
25
+ export declare const customerCommunicationStyleSchema: z.ZodEnum<{
26
+ concise: "concise";
27
+ balanced: "balanced";
28
+ warm: "warm";
29
+ }>;
30
+ export declare const customerSummaryKindSchema: z.ZodEnum<{
31
+ conversation: "conversation";
32
+ episode: "episode";
33
+ }>;
34
+ export declare const memoryActorTypeSchema: z.ZodEnum<{
35
+ operator: "operator";
36
+ system: "system";
37
+ runtime: "runtime";
38
+ }>;
39
+ export declare const memorySourceSchema: z.ZodEnum<{
40
+ conversation_turn: "conversation_turn";
41
+ operator_edit: "operator_edit";
42
+ import: "import";
43
+ system_sync: "system_sync";
44
+ episode_close: "episode_close";
45
+ scenario_seed: "scenario_seed";
46
+ }>;
47
+ export declare const memoryUpdateActionSchema: z.ZodEnum<{
48
+ applied: "applied";
49
+ merged: "merged";
50
+ rejected: "rejected";
51
+ noop: "noop";
52
+ }>;
53
+ export declare const customerIdentityLookupSchema: z.ZodObject<{
54
+ channel: z.ZodEnum<{
55
+ telegram: "telegram";
56
+ telegram_business: "telegram_business";
57
+ local_playground: "local_playground";
58
+ web_chat: "web_chat";
59
+ manual: "manual";
60
+ }>;
61
+ externalUserId: z.ZodString;
62
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
63
+ }, z.core.$strip>;
64
+ export type CustomerIdentityLookup = z.infer<typeof customerIdentityLookupSchema>;
65
+ export declare const customerIdentitySchema: z.ZodObject<{
66
+ identityId: z.ZodString;
67
+ customerId: z.ZodString;
68
+ channel: z.ZodEnum<{
69
+ telegram: "telegram";
70
+ telegram_business: "telegram_business";
71
+ local_playground: "local_playground";
72
+ web_chat: "web_chat";
73
+ manual: "manual";
74
+ }>;
75
+ externalUserId: z.ZodString;
76
+ channelAccountId: z.ZodNullable<z.ZodString>;
77
+ displayName: z.ZodNullable<z.ZodString>;
78
+ createdAt: z.ZodString;
79
+ updatedAt: z.ZodString;
80
+ }, z.core.$strip>;
81
+ export type CustomerIdentity = z.infer<typeof customerIdentitySchema>;
82
+ export declare const customerProfileSchema: z.ZodObject<{
83
+ customerId: z.ZodString;
84
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
85
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
86
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
87
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
88
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
89
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
90
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
91
+ telegram: "telegram";
92
+ telegram_business: "telegram_business";
93
+ local_playground: "local_playground";
94
+ web_chat: "web_chat";
95
+ manual: "manual";
96
+ }>>>;
97
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
98
+ createdAt: z.ZodString;
99
+ updatedAt: z.ZodString;
100
+ }, z.core.$strip>;
101
+ export type CustomerProfile = z.infer<typeof customerProfileSchema>;
102
+ export declare const customerProfilePatchSchema: z.ZodObject<{
103
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ preferredChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
110
+ telegram: "telegram";
111
+ telegram_business: "telegram_business";
112
+ local_playground: "local_playground";
113
+ web_chat: "web_chat";
114
+ manual: "manual";
115
+ }>>>;
116
+ stableContextFacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ }, z.core.$strip>;
118
+ export type CustomerProfilePatch = z.infer<typeof customerProfilePatchSchema>;
119
+ export declare const customerCommercialProfileSchema: z.ZodObject<{
120
+ customerId: z.ZodString;
121
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
122
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
123
+ low: "low";
124
+ medium: "medium";
125
+ high: "high";
126
+ }>>>;
127
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
128
+ medium: "medium";
129
+ slow: "slow";
130
+ fast: "fast";
131
+ }>>>;
132
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
133
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
134
+ low: "low";
135
+ medium: "medium";
136
+ high: "high";
137
+ }>>>;
138
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
139
+ concise: "concise";
140
+ balanced: "balanced";
141
+ warm: "warm";
142
+ }>>>;
143
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
144
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
145
+ createdAt: z.ZodString;
146
+ updatedAt: z.ZodString;
147
+ }, z.core.$strip>;
148
+ export type CustomerCommercialProfile = z.infer<typeof customerCommercialProfileSchema>;
149
+ export declare const customerCommercialProfilePatchSchema: z.ZodObject<{
150
+ productInterests: z.ZodOptional<z.ZodArray<z.ZodString>>;
151
+ priceSensitivity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
152
+ low: "low";
153
+ medium: "medium";
154
+ high: "high";
155
+ }>>>;
156
+ decisionSpeed: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
157
+ medium: "medium";
158
+ slow: "slow";
159
+ fast: "fast";
160
+ }>>>;
161
+ recurringObjections: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ followUpTolerance: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
163
+ low: "low";
164
+ medium: "medium";
165
+ high: "high";
166
+ }>>>;
167
+ preferredCommunicationStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
168
+ concise: "concise";
169
+ balanced: "balanced";
170
+ warm: "warm";
171
+ }>>>;
172
+ repeatCustomer: z.ZodOptional<z.ZodBoolean>;
173
+ notes: z.ZodOptional<z.ZodArray<z.ZodString>>;
174
+ }, z.core.$strip>;
175
+ export type CustomerCommercialProfilePatch = z.infer<typeof customerCommercialProfilePatchSchema>;
176
+ export declare const customerSummarySchema: z.ZodObject<{
177
+ summaryId: z.ZodString;
178
+ customerId: z.ZodString;
179
+ kind: z.ZodEnum<{
180
+ conversation: "conversation";
181
+ episode: "episode";
182
+ }>;
183
+ summaryKey: z.ZodString;
184
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
185
+ summaryText: z.ZodString;
186
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
187
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
188
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
189
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
190
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
191
+ source: z.ZodEnum<{
192
+ conversation_turn: "conversation_turn";
193
+ operator_edit: "operator_edit";
194
+ import: "import";
195
+ system_sync: "system_sync";
196
+ episode_close: "episode_close";
197
+ scenario_seed: "scenario_seed";
198
+ }>;
199
+ createdAt: z.ZodString;
200
+ updatedAt: z.ZodString;
201
+ }, z.core.$strip>;
202
+ export type CustomerSummary = z.infer<typeof customerSummarySchema>;
203
+ export declare const customerSummaryPatchSchema: z.ZodObject<{
204
+ kind: z.ZodEnum<{
205
+ conversation: "conversation";
206
+ episode: "episode";
207
+ }>;
208
+ summaryKey: z.ZodString;
209
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ summaryText: z.ZodString;
211
+ currentIntent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ activeQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ nextStep: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ currentCartSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ }, z.core.$strip>;
217
+ export type CustomerSummaryPatch = z.infer<typeof customerSummaryPatchSchema>;
218
+ export declare const customerOrderHistoryEntrySchema: z.ZodObject<{
219
+ orderId: z.ZodString;
220
+ title: z.ZodString;
221
+ status: z.ZodEnum<{
222
+ draft: "draft";
223
+ paid: "paid";
224
+ fulfilled: "fulfilled";
225
+ cancelled: "cancelled";
226
+ }>;
227
+ occurredAt: z.ZodString;
228
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
229
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
230
+ }, z.core.$strip>;
231
+ export type CustomerOrderHistoryEntry = z.infer<typeof customerOrderHistoryEntrySchema>;
232
+ export declare const customerTimelineEventSchema: z.ZodObject<{
233
+ eventId: z.ZodString;
234
+ customerId: z.ZodString;
235
+ eventType: z.ZodString;
236
+ title: z.ZodString;
237
+ occurredAt: z.ZodString;
238
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
+ }, z.core.$strip>;
240
+ export type CustomerTimelineEvent = z.infer<typeof customerTimelineEventSchema>;
241
+ export declare const memoryUpdateRecordSchema: z.ZodObject<{
242
+ updateId: z.ZodString;
243
+ customerId: z.ZodString;
244
+ target: z.ZodEnum<{
245
+ summary: "summary";
246
+ profile: "profile";
247
+ commercial_profile: "commercial_profile";
248
+ order_history: "order_history";
249
+ }>;
250
+ field: z.ZodString;
251
+ actorType: z.ZodEnum<{
252
+ operator: "operator";
253
+ system: "system";
254
+ runtime: "runtime";
255
+ }>;
256
+ source: z.ZodEnum<{
257
+ conversation_turn: "conversation_turn";
258
+ operator_edit: "operator_edit";
259
+ import: "import";
260
+ system_sync: "system_sync";
261
+ episode_close: "episode_close";
262
+ scenario_seed: "scenario_seed";
263
+ }>;
264
+ confidence: z.ZodNumber;
265
+ action: z.ZodEnum<{
266
+ applied: "applied";
267
+ merged: "merged";
268
+ rejected: "rejected";
269
+ noop: "noop";
270
+ }>;
271
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
272
+ previousValue: z.ZodOptional<z.ZodUnknown>;
273
+ nextValue: z.ZodOptional<z.ZodUnknown>;
274
+ createdAt: z.ZodString;
275
+ }, z.core.$strip>;
276
+ export type MemoryUpdateRecord = z.infer<typeof memoryUpdateRecordSchema>;
277
+ export declare const customerRecordSchema: z.ZodObject<{
278
+ customerId: z.ZodString;
279
+ createdAt: z.ZodString;
280
+ updatedAt: z.ZodString;
281
+ }, z.core.$strip>;
282
+ export type CustomerRecord = z.infer<typeof customerRecordSchema>;
283
+ export declare const customerContextSchema: z.ZodObject<{
284
+ customer: z.ZodObject<{
285
+ customerId: z.ZodString;
286
+ createdAt: z.ZodString;
287
+ updatedAt: z.ZodString;
288
+ }, z.core.$strip>;
289
+ identities: z.ZodArray<z.ZodObject<{
290
+ identityId: z.ZodString;
291
+ customerId: z.ZodString;
292
+ channel: z.ZodEnum<{
293
+ telegram: "telegram";
294
+ telegram_business: "telegram_business";
295
+ local_playground: "local_playground";
296
+ web_chat: "web_chat";
297
+ manual: "manual";
298
+ }>;
299
+ externalUserId: z.ZodString;
300
+ channelAccountId: z.ZodNullable<z.ZodString>;
301
+ displayName: z.ZodNullable<z.ZodString>;
302
+ createdAt: z.ZodString;
303
+ updatedAt: z.ZodString;
304
+ }, z.core.$strip>>;
305
+ profile: z.ZodObject<{
306
+ customerId: z.ZodString;
307
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
308
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
310
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
311
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
312
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
313
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
314
+ telegram: "telegram";
315
+ telegram_business: "telegram_business";
316
+ local_playground: "local_playground";
317
+ web_chat: "web_chat";
318
+ manual: "manual";
319
+ }>>>;
320
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
321
+ createdAt: z.ZodString;
322
+ updatedAt: z.ZodString;
323
+ }, z.core.$strip>;
324
+ commercialProfile: z.ZodObject<{
325
+ customerId: z.ZodString;
326
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
327
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
328
+ low: "low";
329
+ medium: "medium";
330
+ high: "high";
331
+ }>>>;
332
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
333
+ medium: "medium";
334
+ slow: "slow";
335
+ fast: "fast";
336
+ }>>>;
337
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
338
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
339
+ low: "low";
340
+ medium: "medium";
341
+ high: "high";
342
+ }>>>;
343
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
344
+ concise: "concise";
345
+ balanced: "balanced";
346
+ warm: "warm";
347
+ }>>>;
348
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
349
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
350
+ createdAt: z.ZodString;
351
+ updatedAt: z.ZodString;
352
+ }, z.core.$strip>;
353
+ summaries: z.ZodArray<z.ZodObject<{
354
+ summaryId: z.ZodString;
355
+ customerId: z.ZodString;
356
+ kind: z.ZodEnum<{
357
+ conversation: "conversation";
358
+ episode: "episode";
359
+ }>;
360
+ summaryKey: z.ZodString;
361
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
362
+ summaryText: z.ZodString;
363
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
364
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
365
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
366
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
367
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
368
+ source: z.ZodEnum<{
369
+ conversation_turn: "conversation_turn";
370
+ operator_edit: "operator_edit";
371
+ import: "import";
372
+ system_sync: "system_sync";
373
+ episode_close: "episode_close";
374
+ scenario_seed: "scenario_seed";
375
+ }>;
376
+ createdAt: z.ZodString;
377
+ updatedAt: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ orderHistory: z.ZodArray<z.ZodObject<{
380
+ orderId: z.ZodString;
381
+ title: z.ZodString;
382
+ status: z.ZodEnum<{
383
+ draft: "draft";
384
+ paid: "paid";
385
+ fulfilled: "fulfilled";
386
+ cancelled: "cancelled";
387
+ }>;
388
+ occurredAt: z.ZodString;
389
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
390
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
391
+ }, z.core.$strip>>;
392
+ timeline: z.ZodArray<z.ZodObject<{
393
+ eventId: z.ZodString;
394
+ customerId: z.ZodString;
395
+ eventType: z.ZodString;
396
+ title: z.ZodString;
397
+ occurredAt: z.ZodString;
398
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ }, z.core.$strip>>;
400
+ memoryUpdates: z.ZodArray<z.ZodObject<{
401
+ updateId: z.ZodString;
402
+ customerId: z.ZodString;
403
+ target: z.ZodEnum<{
404
+ summary: "summary";
405
+ profile: "profile";
406
+ commercial_profile: "commercial_profile";
407
+ order_history: "order_history";
408
+ }>;
409
+ field: z.ZodString;
410
+ actorType: z.ZodEnum<{
411
+ operator: "operator";
412
+ system: "system";
413
+ runtime: "runtime";
414
+ }>;
415
+ source: z.ZodEnum<{
416
+ conversation_turn: "conversation_turn";
417
+ operator_edit: "operator_edit";
418
+ import: "import";
419
+ system_sync: "system_sync";
420
+ episode_close: "episode_close";
421
+ scenario_seed: "scenario_seed";
422
+ }>;
423
+ confidence: z.ZodNumber;
424
+ action: z.ZodEnum<{
425
+ applied: "applied";
426
+ merged: "merged";
427
+ rejected: "rejected";
428
+ noop: "noop";
429
+ }>;
430
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
431
+ previousValue: z.ZodOptional<z.ZodUnknown>;
432
+ nextValue: z.ZodOptional<z.ZodUnknown>;
433
+ createdAt: z.ZodString;
434
+ }, z.core.$strip>>;
435
+ }, z.core.$strip>;
436
+ export type CustomerContext = z.infer<typeof customerContextSchema>;
437
+ export declare const customersEnsureIdentityRequestSchema: z.ZodObject<{
438
+ channel: z.ZodEnum<{
439
+ telegram: "telegram";
440
+ telegram_business: "telegram_business";
441
+ local_playground: "local_playground";
442
+ web_chat: "web_chat";
443
+ manual: "manual";
444
+ }>;
445
+ externalUserId: z.ZodString;
446
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
447
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
448
+ profileHints: z.ZodDefault<z.ZodObject<{
449
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ preferredChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
456
+ telegram: "telegram";
457
+ telegram_business: "telegram_business";
458
+ local_playground: "local_playground";
459
+ web_chat: "web_chat";
460
+ manual: "manual";
461
+ }>>>;
462
+ stableContextFacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
463
+ }, z.core.$strip>>;
464
+ }, z.core.$strip>;
465
+ export declare const customersEnsureIdentityResponseSchema: z.ZodObject<{
466
+ resolution: z.ZodObject<{
467
+ createdCustomer: z.ZodBoolean;
468
+ createdIdentity: z.ZodBoolean;
469
+ matchedBy: z.ZodLiteral<"identity">;
470
+ }, z.core.$strip>;
471
+ context: z.ZodObject<{
472
+ customer: z.ZodObject<{
473
+ customerId: z.ZodString;
474
+ createdAt: z.ZodString;
475
+ updatedAt: z.ZodString;
476
+ }, z.core.$strip>;
477
+ identities: z.ZodArray<z.ZodObject<{
478
+ identityId: z.ZodString;
479
+ customerId: z.ZodString;
480
+ channel: z.ZodEnum<{
481
+ telegram: "telegram";
482
+ telegram_business: "telegram_business";
483
+ local_playground: "local_playground";
484
+ web_chat: "web_chat";
485
+ manual: "manual";
486
+ }>;
487
+ externalUserId: z.ZodString;
488
+ channelAccountId: z.ZodNullable<z.ZodString>;
489
+ displayName: z.ZodNullable<z.ZodString>;
490
+ createdAt: z.ZodString;
491
+ updatedAt: z.ZodString;
492
+ }, z.core.$strip>>;
493
+ profile: z.ZodObject<{
494
+ customerId: z.ZodString;
495
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
496
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
497
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
498
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
499
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
500
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
501
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
502
+ telegram: "telegram";
503
+ telegram_business: "telegram_business";
504
+ local_playground: "local_playground";
505
+ web_chat: "web_chat";
506
+ manual: "manual";
507
+ }>>>;
508
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
509
+ createdAt: z.ZodString;
510
+ updatedAt: z.ZodString;
511
+ }, z.core.$strip>;
512
+ commercialProfile: z.ZodObject<{
513
+ customerId: z.ZodString;
514
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
515
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
516
+ low: "low";
517
+ medium: "medium";
518
+ high: "high";
519
+ }>>>;
520
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
521
+ medium: "medium";
522
+ slow: "slow";
523
+ fast: "fast";
524
+ }>>>;
525
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
526
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
527
+ low: "low";
528
+ medium: "medium";
529
+ high: "high";
530
+ }>>>;
531
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
532
+ concise: "concise";
533
+ balanced: "balanced";
534
+ warm: "warm";
535
+ }>>>;
536
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
537
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
538
+ createdAt: z.ZodString;
539
+ updatedAt: z.ZodString;
540
+ }, z.core.$strip>;
541
+ summaries: z.ZodArray<z.ZodObject<{
542
+ summaryId: z.ZodString;
543
+ customerId: z.ZodString;
544
+ kind: z.ZodEnum<{
545
+ conversation: "conversation";
546
+ episode: "episode";
547
+ }>;
548
+ summaryKey: z.ZodString;
549
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
550
+ summaryText: z.ZodString;
551
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
552
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
553
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
554
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
555
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
556
+ source: z.ZodEnum<{
557
+ conversation_turn: "conversation_turn";
558
+ operator_edit: "operator_edit";
559
+ import: "import";
560
+ system_sync: "system_sync";
561
+ episode_close: "episode_close";
562
+ scenario_seed: "scenario_seed";
563
+ }>;
564
+ createdAt: z.ZodString;
565
+ updatedAt: z.ZodString;
566
+ }, z.core.$strip>>;
567
+ orderHistory: z.ZodArray<z.ZodObject<{
568
+ orderId: z.ZodString;
569
+ title: z.ZodString;
570
+ status: z.ZodEnum<{
571
+ draft: "draft";
572
+ paid: "paid";
573
+ fulfilled: "fulfilled";
574
+ cancelled: "cancelled";
575
+ }>;
576
+ occurredAt: z.ZodString;
577
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
578
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
579
+ }, z.core.$strip>>;
580
+ timeline: z.ZodArray<z.ZodObject<{
581
+ eventId: z.ZodString;
582
+ customerId: z.ZodString;
583
+ eventType: z.ZodString;
584
+ title: z.ZodString;
585
+ occurredAt: z.ZodString;
586
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
587
+ }, z.core.$strip>>;
588
+ memoryUpdates: z.ZodArray<z.ZodObject<{
589
+ updateId: z.ZodString;
590
+ customerId: z.ZodString;
591
+ target: z.ZodEnum<{
592
+ summary: "summary";
593
+ profile: "profile";
594
+ commercial_profile: "commercial_profile";
595
+ order_history: "order_history";
596
+ }>;
597
+ field: z.ZodString;
598
+ actorType: z.ZodEnum<{
599
+ operator: "operator";
600
+ system: "system";
601
+ runtime: "runtime";
602
+ }>;
603
+ source: z.ZodEnum<{
604
+ conversation_turn: "conversation_turn";
605
+ operator_edit: "operator_edit";
606
+ import: "import";
607
+ system_sync: "system_sync";
608
+ episode_close: "episode_close";
609
+ scenario_seed: "scenario_seed";
610
+ }>;
611
+ confidence: z.ZodNumber;
612
+ action: z.ZodEnum<{
613
+ applied: "applied";
614
+ merged: "merged";
615
+ rejected: "rejected";
616
+ noop: "noop";
617
+ }>;
618
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
619
+ previousValue: z.ZodOptional<z.ZodUnknown>;
620
+ nextValue: z.ZodOptional<z.ZodUnknown>;
621
+ createdAt: z.ZodString;
622
+ }, z.core.$strip>>;
623
+ }, z.core.$strip>;
624
+ }, z.core.$strip>;
625
+ export declare const customersGetContextRequestSchema: z.ZodObject<{
626
+ customerId: z.ZodOptional<z.ZodString>;
627
+ identity: z.ZodOptional<z.ZodObject<{
628
+ channel: z.ZodEnum<{
629
+ telegram: "telegram";
630
+ telegram_business: "telegram_business";
631
+ local_playground: "local_playground";
632
+ web_chat: "web_chat";
633
+ manual: "manual";
634
+ }>;
635
+ externalUserId: z.ZodString;
636
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
637
+ }, z.core.$strip>>;
638
+ }, z.core.$strip>;
639
+ export declare const customersGetContextResponseSchema: z.ZodObject<{
640
+ found: z.ZodBoolean;
641
+ foundBy: z.ZodNullable<z.ZodEnum<{
642
+ customerId: "customerId";
643
+ identity: "identity";
644
+ }>>;
645
+ context: z.ZodNullable<z.ZodObject<{
646
+ customer: z.ZodObject<{
647
+ customerId: z.ZodString;
648
+ createdAt: z.ZodString;
649
+ updatedAt: z.ZodString;
650
+ }, z.core.$strip>;
651
+ identities: z.ZodArray<z.ZodObject<{
652
+ identityId: z.ZodString;
653
+ customerId: z.ZodString;
654
+ channel: z.ZodEnum<{
655
+ telegram: "telegram";
656
+ telegram_business: "telegram_business";
657
+ local_playground: "local_playground";
658
+ web_chat: "web_chat";
659
+ manual: "manual";
660
+ }>;
661
+ externalUserId: z.ZodString;
662
+ channelAccountId: z.ZodNullable<z.ZodString>;
663
+ displayName: z.ZodNullable<z.ZodString>;
664
+ createdAt: z.ZodString;
665
+ updatedAt: z.ZodString;
666
+ }, z.core.$strip>>;
667
+ profile: z.ZodObject<{
668
+ customerId: z.ZodString;
669
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
670
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
671
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
672
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
673
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
674
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
675
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
676
+ telegram: "telegram";
677
+ telegram_business: "telegram_business";
678
+ local_playground: "local_playground";
679
+ web_chat: "web_chat";
680
+ manual: "manual";
681
+ }>>>;
682
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
683
+ createdAt: z.ZodString;
684
+ updatedAt: z.ZodString;
685
+ }, z.core.$strip>;
686
+ commercialProfile: z.ZodObject<{
687
+ customerId: z.ZodString;
688
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
689
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
690
+ low: "low";
691
+ medium: "medium";
692
+ high: "high";
693
+ }>>>;
694
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
695
+ medium: "medium";
696
+ slow: "slow";
697
+ fast: "fast";
698
+ }>>>;
699
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
700
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
701
+ low: "low";
702
+ medium: "medium";
703
+ high: "high";
704
+ }>>>;
705
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
706
+ concise: "concise";
707
+ balanced: "balanced";
708
+ warm: "warm";
709
+ }>>>;
710
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
711
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
712
+ createdAt: z.ZodString;
713
+ updatedAt: z.ZodString;
714
+ }, z.core.$strip>;
715
+ summaries: z.ZodArray<z.ZodObject<{
716
+ summaryId: z.ZodString;
717
+ customerId: z.ZodString;
718
+ kind: z.ZodEnum<{
719
+ conversation: "conversation";
720
+ episode: "episode";
721
+ }>;
722
+ summaryKey: z.ZodString;
723
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
724
+ summaryText: z.ZodString;
725
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
726
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
727
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
728
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
729
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
730
+ source: z.ZodEnum<{
731
+ conversation_turn: "conversation_turn";
732
+ operator_edit: "operator_edit";
733
+ import: "import";
734
+ system_sync: "system_sync";
735
+ episode_close: "episode_close";
736
+ scenario_seed: "scenario_seed";
737
+ }>;
738
+ createdAt: z.ZodString;
739
+ updatedAt: z.ZodString;
740
+ }, z.core.$strip>>;
741
+ orderHistory: z.ZodArray<z.ZodObject<{
742
+ orderId: z.ZodString;
743
+ title: z.ZodString;
744
+ status: z.ZodEnum<{
745
+ draft: "draft";
746
+ paid: "paid";
747
+ fulfilled: "fulfilled";
748
+ cancelled: "cancelled";
749
+ }>;
750
+ occurredAt: z.ZodString;
751
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
752
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
753
+ }, z.core.$strip>>;
754
+ timeline: z.ZodArray<z.ZodObject<{
755
+ eventId: z.ZodString;
756
+ customerId: z.ZodString;
757
+ eventType: z.ZodString;
758
+ title: z.ZodString;
759
+ occurredAt: z.ZodString;
760
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
761
+ }, z.core.$strip>>;
762
+ memoryUpdates: z.ZodArray<z.ZodObject<{
763
+ updateId: z.ZodString;
764
+ customerId: z.ZodString;
765
+ target: z.ZodEnum<{
766
+ summary: "summary";
767
+ profile: "profile";
768
+ commercial_profile: "commercial_profile";
769
+ order_history: "order_history";
770
+ }>;
771
+ field: z.ZodString;
772
+ actorType: z.ZodEnum<{
773
+ operator: "operator";
774
+ system: "system";
775
+ runtime: "runtime";
776
+ }>;
777
+ source: z.ZodEnum<{
778
+ conversation_turn: "conversation_turn";
779
+ operator_edit: "operator_edit";
780
+ import: "import";
781
+ system_sync: "system_sync";
782
+ episode_close: "episode_close";
783
+ scenario_seed: "scenario_seed";
784
+ }>;
785
+ confidence: z.ZodNumber;
786
+ action: z.ZodEnum<{
787
+ applied: "applied";
788
+ merged: "merged";
789
+ rejected: "rejected";
790
+ noop: "noop";
791
+ }>;
792
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
793
+ previousValue: z.ZodOptional<z.ZodUnknown>;
794
+ nextValue: z.ZodOptional<z.ZodUnknown>;
795
+ createdAt: z.ZodString;
796
+ }, z.core.$strip>>;
797
+ }, z.core.$strip>>;
798
+ }, z.core.$strip>;
799
+ export declare const customersPatchMemoryRequestSchema: z.ZodObject<{
800
+ customerId: z.ZodString;
801
+ actorType: z.ZodEnum<{
802
+ operator: "operator";
803
+ system: "system";
804
+ runtime: "runtime";
805
+ }>;
806
+ source: z.ZodEnum<{
807
+ conversation_turn: "conversation_turn";
808
+ operator_edit: "operator_edit";
809
+ import: "import";
810
+ system_sync: "system_sync";
811
+ episode_close: "episode_close";
812
+ scenario_seed: "scenario_seed";
813
+ }>;
814
+ confidence: z.ZodDefault<z.ZodNumber>;
815
+ profilePatch: z.ZodOptional<z.ZodObject<{
816
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ preferredChannel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
823
+ telegram: "telegram";
824
+ telegram_business: "telegram_business";
825
+ local_playground: "local_playground";
826
+ web_chat: "web_chat";
827
+ manual: "manual";
828
+ }>>>;
829
+ stableContextFacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
830
+ }, z.core.$strip>>;
831
+ commercialPatch: z.ZodOptional<z.ZodObject<{
832
+ productInterests: z.ZodOptional<z.ZodArray<z.ZodString>>;
833
+ priceSensitivity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
834
+ low: "low";
835
+ medium: "medium";
836
+ high: "high";
837
+ }>>>;
838
+ decisionSpeed: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
839
+ medium: "medium";
840
+ slow: "slow";
841
+ fast: "fast";
842
+ }>>>;
843
+ recurringObjections: z.ZodOptional<z.ZodArray<z.ZodString>>;
844
+ followUpTolerance: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
845
+ low: "low";
846
+ medium: "medium";
847
+ high: "high";
848
+ }>>>;
849
+ preferredCommunicationStyle: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
850
+ concise: "concise";
851
+ balanced: "balanced";
852
+ warm: "warm";
853
+ }>>>;
854
+ repeatCustomer: z.ZodOptional<z.ZodBoolean>;
855
+ notes: z.ZodOptional<z.ZodArray<z.ZodString>>;
856
+ }, z.core.$strip>>;
857
+ summaryPatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
858
+ kind: z.ZodEnum<{
859
+ conversation: "conversation";
860
+ episode: "episode";
861
+ }>;
862
+ summaryKey: z.ZodString;
863
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
864
+ summaryText: z.ZodString;
865
+ currentIntent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
+ activeQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
867
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
868
+ nextStep: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
+ currentCartSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ }, z.core.$strip>>>;
871
+ orderHistoryEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
872
+ orderId: z.ZodString;
873
+ title: z.ZodString;
874
+ status: z.ZodEnum<{
875
+ draft: "draft";
876
+ paid: "paid";
877
+ fulfilled: "fulfilled";
878
+ cancelled: "cancelled";
879
+ }>;
880
+ occurredAt: z.ZodString;
881
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
882
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
883
+ }, z.core.$strip>>>;
884
+ }, z.core.$strip>;
885
+ export declare const memoryPatchOutcomeSchema: z.ZodObject<{
886
+ updateId: z.ZodString;
887
+ target: z.ZodString;
888
+ field: z.ZodString;
889
+ action: z.ZodEnum<{
890
+ applied: "applied";
891
+ merged: "merged";
892
+ rejected: "rejected";
893
+ noop: "noop";
894
+ }>;
895
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
896
+ }, z.core.$strip>;
897
+ export declare const customersPatchMemoryResponseSchema: z.ZodObject<{
898
+ context: z.ZodObject<{
899
+ customer: z.ZodObject<{
900
+ customerId: z.ZodString;
901
+ createdAt: z.ZodString;
902
+ updatedAt: z.ZodString;
903
+ }, z.core.$strip>;
904
+ identities: z.ZodArray<z.ZodObject<{
905
+ identityId: z.ZodString;
906
+ customerId: z.ZodString;
907
+ channel: z.ZodEnum<{
908
+ telegram: "telegram";
909
+ telegram_business: "telegram_business";
910
+ local_playground: "local_playground";
911
+ web_chat: "web_chat";
912
+ manual: "manual";
913
+ }>;
914
+ externalUserId: z.ZodString;
915
+ channelAccountId: z.ZodNullable<z.ZodString>;
916
+ displayName: z.ZodNullable<z.ZodString>;
917
+ createdAt: z.ZodString;
918
+ updatedAt: z.ZodString;
919
+ }, z.core.$strip>>;
920
+ profile: z.ZodObject<{
921
+ customerId: z.ZodString;
922
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
923
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
924
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
925
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
926
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
927
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
928
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
929
+ telegram: "telegram";
930
+ telegram_business: "telegram_business";
931
+ local_playground: "local_playground";
932
+ web_chat: "web_chat";
933
+ manual: "manual";
934
+ }>>>;
935
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
936
+ createdAt: z.ZodString;
937
+ updatedAt: z.ZodString;
938
+ }, z.core.$strip>;
939
+ commercialProfile: z.ZodObject<{
940
+ customerId: z.ZodString;
941
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
942
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
943
+ low: "low";
944
+ medium: "medium";
945
+ high: "high";
946
+ }>>>;
947
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
948
+ medium: "medium";
949
+ slow: "slow";
950
+ fast: "fast";
951
+ }>>>;
952
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
953
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
954
+ low: "low";
955
+ medium: "medium";
956
+ high: "high";
957
+ }>>>;
958
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
959
+ concise: "concise";
960
+ balanced: "balanced";
961
+ warm: "warm";
962
+ }>>>;
963
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
964
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
965
+ createdAt: z.ZodString;
966
+ updatedAt: z.ZodString;
967
+ }, z.core.$strip>;
968
+ summaries: z.ZodArray<z.ZodObject<{
969
+ summaryId: z.ZodString;
970
+ customerId: z.ZodString;
971
+ kind: z.ZodEnum<{
972
+ conversation: "conversation";
973
+ episode: "episode";
974
+ }>;
975
+ summaryKey: z.ZodString;
976
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
977
+ summaryText: z.ZodString;
978
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
979
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
980
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
981
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
982
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
983
+ source: z.ZodEnum<{
984
+ conversation_turn: "conversation_turn";
985
+ operator_edit: "operator_edit";
986
+ import: "import";
987
+ system_sync: "system_sync";
988
+ episode_close: "episode_close";
989
+ scenario_seed: "scenario_seed";
990
+ }>;
991
+ createdAt: z.ZodString;
992
+ updatedAt: z.ZodString;
993
+ }, z.core.$strip>>;
994
+ orderHistory: z.ZodArray<z.ZodObject<{
995
+ orderId: z.ZodString;
996
+ title: z.ZodString;
997
+ status: z.ZodEnum<{
998
+ draft: "draft";
999
+ paid: "paid";
1000
+ fulfilled: "fulfilled";
1001
+ cancelled: "cancelled";
1002
+ }>;
1003
+ occurredAt: z.ZodString;
1004
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1005
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1006
+ }, z.core.$strip>>;
1007
+ timeline: z.ZodArray<z.ZodObject<{
1008
+ eventId: z.ZodString;
1009
+ customerId: z.ZodString;
1010
+ eventType: z.ZodString;
1011
+ title: z.ZodString;
1012
+ occurredAt: z.ZodString;
1013
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1014
+ }, z.core.$strip>>;
1015
+ memoryUpdates: z.ZodArray<z.ZodObject<{
1016
+ updateId: z.ZodString;
1017
+ customerId: z.ZodString;
1018
+ target: z.ZodEnum<{
1019
+ summary: "summary";
1020
+ profile: "profile";
1021
+ commercial_profile: "commercial_profile";
1022
+ order_history: "order_history";
1023
+ }>;
1024
+ field: z.ZodString;
1025
+ actorType: z.ZodEnum<{
1026
+ operator: "operator";
1027
+ system: "system";
1028
+ runtime: "runtime";
1029
+ }>;
1030
+ source: z.ZodEnum<{
1031
+ conversation_turn: "conversation_turn";
1032
+ operator_edit: "operator_edit";
1033
+ import: "import";
1034
+ system_sync: "system_sync";
1035
+ episode_close: "episode_close";
1036
+ scenario_seed: "scenario_seed";
1037
+ }>;
1038
+ confidence: z.ZodNumber;
1039
+ action: z.ZodEnum<{
1040
+ applied: "applied";
1041
+ merged: "merged";
1042
+ rejected: "rejected";
1043
+ noop: "noop";
1044
+ }>;
1045
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1046
+ previousValue: z.ZodOptional<z.ZodUnknown>;
1047
+ nextValue: z.ZodOptional<z.ZodUnknown>;
1048
+ createdAt: z.ZodString;
1049
+ }, z.core.$strip>>;
1050
+ }, z.core.$strip>;
1051
+ beforeContext: z.ZodObject<{
1052
+ customer: z.ZodObject<{
1053
+ customerId: z.ZodString;
1054
+ createdAt: z.ZodString;
1055
+ updatedAt: z.ZodString;
1056
+ }, z.core.$strip>;
1057
+ identities: z.ZodArray<z.ZodObject<{
1058
+ identityId: z.ZodString;
1059
+ customerId: z.ZodString;
1060
+ channel: z.ZodEnum<{
1061
+ telegram: "telegram";
1062
+ telegram_business: "telegram_business";
1063
+ local_playground: "local_playground";
1064
+ web_chat: "web_chat";
1065
+ manual: "manual";
1066
+ }>;
1067
+ externalUserId: z.ZodString;
1068
+ channelAccountId: z.ZodNullable<z.ZodString>;
1069
+ displayName: z.ZodNullable<z.ZodString>;
1070
+ createdAt: z.ZodString;
1071
+ updatedAt: z.ZodString;
1072
+ }, z.core.$strip>>;
1073
+ profile: z.ZodObject<{
1074
+ customerId: z.ZodString;
1075
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1076
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1077
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1078
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1079
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1080
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1081
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1082
+ telegram: "telegram";
1083
+ telegram_business: "telegram_business";
1084
+ local_playground: "local_playground";
1085
+ web_chat: "web_chat";
1086
+ manual: "manual";
1087
+ }>>>;
1088
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1089
+ createdAt: z.ZodString;
1090
+ updatedAt: z.ZodString;
1091
+ }, z.core.$strip>;
1092
+ commercialProfile: z.ZodObject<{
1093
+ customerId: z.ZodString;
1094
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
1095
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1096
+ low: "low";
1097
+ medium: "medium";
1098
+ high: "high";
1099
+ }>>>;
1100
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1101
+ medium: "medium";
1102
+ slow: "slow";
1103
+ fast: "fast";
1104
+ }>>>;
1105
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
1106
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1107
+ low: "low";
1108
+ medium: "medium";
1109
+ high: "high";
1110
+ }>>>;
1111
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1112
+ concise: "concise";
1113
+ balanced: "balanced";
1114
+ warm: "warm";
1115
+ }>>>;
1116
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
1117
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1118
+ createdAt: z.ZodString;
1119
+ updatedAt: z.ZodString;
1120
+ }, z.core.$strip>;
1121
+ summaries: z.ZodArray<z.ZodObject<{
1122
+ summaryId: z.ZodString;
1123
+ customerId: z.ZodString;
1124
+ kind: z.ZodEnum<{
1125
+ conversation: "conversation";
1126
+ episode: "episode";
1127
+ }>;
1128
+ summaryKey: z.ZodString;
1129
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1130
+ summaryText: z.ZodString;
1131
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1132
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
1133
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1134
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1135
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1136
+ source: z.ZodEnum<{
1137
+ conversation_turn: "conversation_turn";
1138
+ operator_edit: "operator_edit";
1139
+ import: "import";
1140
+ system_sync: "system_sync";
1141
+ episode_close: "episode_close";
1142
+ scenario_seed: "scenario_seed";
1143
+ }>;
1144
+ createdAt: z.ZodString;
1145
+ updatedAt: z.ZodString;
1146
+ }, z.core.$strip>>;
1147
+ orderHistory: z.ZodArray<z.ZodObject<{
1148
+ orderId: z.ZodString;
1149
+ title: z.ZodString;
1150
+ status: z.ZodEnum<{
1151
+ draft: "draft";
1152
+ paid: "paid";
1153
+ fulfilled: "fulfilled";
1154
+ cancelled: "cancelled";
1155
+ }>;
1156
+ occurredAt: z.ZodString;
1157
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1158
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1159
+ }, z.core.$strip>>;
1160
+ timeline: z.ZodArray<z.ZodObject<{
1161
+ eventId: z.ZodString;
1162
+ customerId: z.ZodString;
1163
+ eventType: z.ZodString;
1164
+ title: z.ZodString;
1165
+ occurredAt: z.ZodString;
1166
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1167
+ }, z.core.$strip>>;
1168
+ memoryUpdates: z.ZodArray<z.ZodObject<{
1169
+ updateId: z.ZodString;
1170
+ customerId: z.ZodString;
1171
+ target: z.ZodEnum<{
1172
+ summary: "summary";
1173
+ profile: "profile";
1174
+ commercial_profile: "commercial_profile";
1175
+ order_history: "order_history";
1176
+ }>;
1177
+ field: z.ZodString;
1178
+ actorType: z.ZodEnum<{
1179
+ operator: "operator";
1180
+ system: "system";
1181
+ runtime: "runtime";
1182
+ }>;
1183
+ source: z.ZodEnum<{
1184
+ conversation_turn: "conversation_turn";
1185
+ operator_edit: "operator_edit";
1186
+ import: "import";
1187
+ system_sync: "system_sync";
1188
+ episode_close: "episode_close";
1189
+ scenario_seed: "scenario_seed";
1190
+ }>;
1191
+ confidence: z.ZodNumber;
1192
+ action: z.ZodEnum<{
1193
+ applied: "applied";
1194
+ merged: "merged";
1195
+ rejected: "rejected";
1196
+ noop: "noop";
1197
+ }>;
1198
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1199
+ previousValue: z.ZodOptional<z.ZodUnknown>;
1200
+ nextValue: z.ZodOptional<z.ZodUnknown>;
1201
+ createdAt: z.ZodString;
1202
+ }, z.core.$strip>>;
1203
+ }, z.core.$strip>;
1204
+ appliedUpdates: z.ZodArray<z.ZodObject<{
1205
+ updateId: z.ZodString;
1206
+ target: z.ZodString;
1207
+ field: z.ZodString;
1208
+ action: z.ZodEnum<{
1209
+ applied: "applied";
1210
+ merged: "merged";
1211
+ rejected: "rejected";
1212
+ noop: "noop";
1213
+ }>;
1214
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1215
+ }, z.core.$strip>>;
1216
+ rejectedUpdates: z.ZodArray<z.ZodObject<{
1217
+ updateId: z.ZodString;
1218
+ target: z.ZodString;
1219
+ field: z.ZodString;
1220
+ action: z.ZodEnum<{
1221
+ applied: "applied";
1222
+ merged: "merged";
1223
+ rejected: "rejected";
1224
+ noop: "noop";
1225
+ }>;
1226
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1227
+ }, z.core.$strip>>;
1228
+ }, z.core.$strip>;
1229
+ export type CustomersEnsureIdentityInput = z.infer<typeof customersEnsureIdentityRequestSchema>;
1230
+ export type CustomersEnsureIdentityOutput = z.infer<typeof customersEnsureIdentityResponseSchema>;
1231
+ export type CustomersGetContextInput = z.infer<typeof customersGetContextRequestSchema>;
1232
+ export type CustomersGetContextOutput = z.infer<typeof customersGetContextResponseSchema>;
1233
+ export type CustomersPatchMemoryInput = z.infer<typeof customersPatchMemoryRequestSchema>;
1234
+ export type CustomersPatchMemoryOutput = z.infer<typeof customersPatchMemoryResponseSchema>;
1235
+ //# sourceMappingURL=customers.d.ts.map