@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
package/dist/ops.d.ts ADDED
@@ -0,0 +1,4438 @@
1
+ import { z } from 'zod';
2
+ export declare const operationsEntityKindSchema: z.ZodEnum<{
3
+ telegram_integration: "telegram_integration";
4
+ telegram_business_account: "telegram_business_account";
5
+ telegram_employee_binding: "telegram_employee_binding";
6
+ runtime_provider: "runtime_provider";
7
+ runtime_routing: "runtime_routing";
8
+ }>;
9
+ export declare const operationsStatusSchema: z.ZodEnum<{
10
+ unknown: "unknown";
11
+ pass: "pass";
12
+ warn: "warn";
13
+ fail: "fail";
14
+ }>;
15
+ export declare const operationsSnapshotSourceKindSchema: z.ZodEnum<{
16
+ startup_probe: "startup_probe";
17
+ manual_refresh: "manual_refresh";
18
+ scheduled_reconcile: "scheduled_reconcile";
19
+ migration_backfill: "migration_backfill";
20
+ }>;
21
+ export declare const operationsDriftSeveritySchema: z.ZodEnum<{
22
+ warn: "warn";
23
+ fail: "fail";
24
+ }>;
25
+ export declare const operationsDriftEntrySchema: z.ZodObject<{
26
+ code: z.ZodString;
27
+ severity: z.ZodEnum<{
28
+ warn: "warn";
29
+ fail: "fail";
30
+ }>;
31
+ field: z.ZodString;
32
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
33
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
34
+ message: z.ZodString;
35
+ }, z.core.$strip>;
36
+ export declare const operationsStatusSnapshotSchema: z.ZodObject<{
37
+ snapshotId: z.ZodString;
38
+ entityKind: z.ZodEnum<{
39
+ telegram_integration: "telegram_integration";
40
+ telegram_business_account: "telegram_business_account";
41
+ telegram_employee_binding: "telegram_employee_binding";
42
+ runtime_provider: "runtime_provider";
43
+ runtime_routing: "runtime_routing";
44
+ }>;
45
+ entityId: z.ZodString;
46
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
47
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
48
+ status: z.ZodEnum<{
49
+ unknown: "unknown";
50
+ pass: "pass";
51
+ warn: "warn";
52
+ fail: "fail";
53
+ }>;
54
+ summary: z.ZodString;
55
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
57
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
58
+ code: z.ZodString;
59
+ severity: z.ZodEnum<{
60
+ warn: "warn";
61
+ fail: "fail";
62
+ }>;
63
+ field: z.ZodString;
64
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
65
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
66
+ message: z.ZodString;
67
+ }, z.core.$strip>>>;
68
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
69
+ checkedAt: z.ZodString;
70
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
71
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
+ stale: z.ZodDefault<z.ZodBoolean>;
73
+ sourceKind: z.ZodEnum<{
74
+ startup_probe: "startup_probe";
75
+ manual_refresh: "manual_refresh";
76
+ scheduled_reconcile: "scheduled_reconcile";
77
+ migration_backfill: "migration_backfill";
78
+ }>;
79
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
80
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
81
+ createdAt: z.ZodString;
82
+ updatedAt: z.ZodString;
83
+ }, z.core.$strip>;
84
+ export declare const operationsRepairResultSchema: z.ZodObject<{
85
+ entityKind: z.ZodEnum<{
86
+ telegram_integration: "telegram_integration";
87
+ telegram_business_account: "telegram_business_account";
88
+ telegram_employee_binding: "telegram_employee_binding";
89
+ runtime_provider: "runtime_provider";
90
+ runtime_routing: "runtime_routing";
91
+ }>;
92
+ entityId: z.ZodString;
93
+ operation: z.ZodString;
94
+ status: z.ZodEnum<{
95
+ unknown: "unknown";
96
+ pass: "pass";
97
+ warn: "warn";
98
+ fail: "fail";
99
+ }>;
100
+ actionsTaken: z.ZodDefault<z.ZodArray<z.ZodString>>;
101
+ changesApplied: z.ZodDefault<z.ZodArray<z.ZodString>>;
102
+ remainingDrift: z.ZodDefault<z.ZodArray<z.ZodObject<{
103
+ code: z.ZodString;
104
+ severity: z.ZodEnum<{
105
+ warn: "warn";
106
+ fail: "fail";
107
+ }>;
108
+ field: z.ZodString;
109
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
110
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
111
+ message: z.ZodString;
112
+ }, z.core.$strip>>>;
113
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
114
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
115
+ completedAt: z.ZodString;
116
+ }, z.core.$strip>;
117
+ export declare const operationsReadinessCountsSchema: z.ZodObject<{
118
+ total: z.ZodNumber;
119
+ pass: z.ZodNumber;
120
+ warn: z.ZodNumber;
121
+ fail: z.ZodNumber;
122
+ unknown: z.ZodNumber;
123
+ stale: z.ZodNumber;
124
+ }, z.core.$strip>;
125
+ export declare const schemaMigrationStorageModeSchema: z.ZodEnum<{
126
+ postgres: "postgres";
127
+ in_memory: "in_memory";
128
+ }>;
129
+ export declare const schemaMigrationApplyModeSchema: z.ZodEnum<{
130
+ real: "real";
131
+ simulated: "simulated";
132
+ }>;
133
+ export declare const schemaMigrationSourceKindSchema: z.ZodEnum<{
134
+ manual_apply: "manual_apply";
135
+ beta_rollout: "beta_rollout";
136
+ prod_rollout: "prod_rollout";
137
+ local_bootstrap: "local_bootstrap";
138
+ }>;
139
+ export declare const schemaMigrationDefinitionSchema: z.ZodObject<{
140
+ migrationId: z.ZodString;
141
+ description: z.ZodString;
142
+ checksum: z.ZodString;
143
+ relativePath: z.ZodString;
144
+ }, z.core.$strip>;
145
+ export declare const schemaMigrationLedgerEntrySchema: z.ZodObject<{
146
+ migrationId: z.ZodString;
147
+ description: z.ZodString;
148
+ checksum: z.ZodString;
149
+ relativePath: z.ZodString;
150
+ appliedAt: z.ZodString;
151
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
152
+ sourceKind: z.ZodEnum<{
153
+ manual_apply: "manual_apply";
154
+ beta_rollout: "beta_rollout";
155
+ prod_rollout: "prod_rollout";
156
+ local_bootstrap: "local_bootstrap";
157
+ }>;
158
+ }, z.core.$strip>;
159
+ export declare const schemaMigrationChecksumMismatchSchema: z.ZodObject<{
160
+ migrationId: z.ZodString;
161
+ expectedChecksum: z.ZodString;
162
+ appliedChecksum: z.ZodString;
163
+ }, z.core.$strip>;
164
+ export declare const schemaMigrationStatusSchema: z.ZodObject<{
165
+ storageMode: z.ZodEnum<{
166
+ postgres: "postgres";
167
+ in_memory: "in_memory";
168
+ }>;
169
+ applyMode: z.ZodEnum<{
170
+ real: "real";
171
+ simulated: "simulated";
172
+ }>;
173
+ environment: z.ZodString;
174
+ migrationRoot: z.ZodString;
175
+ ledgerAdopted: z.ZodBoolean;
176
+ legacyStartupSchemaSupport: z.ZodBoolean;
177
+ status: z.ZodEnum<{
178
+ unknown: "unknown";
179
+ pass: "pass";
180
+ warn: "warn";
181
+ fail: "fail";
182
+ }>;
183
+ summary: z.ZodString;
184
+ checkedAt: z.ZodString;
185
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
186
+ migrationId: z.ZodString;
187
+ description: z.ZodString;
188
+ checksum: z.ZodString;
189
+ relativePath: z.ZodString;
190
+ }, z.core.$strip>>>;
191
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
192
+ migrationId: z.ZodString;
193
+ description: z.ZodString;
194
+ checksum: z.ZodString;
195
+ relativePath: z.ZodString;
196
+ appliedAt: z.ZodString;
197
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
198
+ sourceKind: z.ZodEnum<{
199
+ manual_apply: "manual_apply";
200
+ beta_rollout: "beta_rollout";
201
+ prod_rollout: "prod_rollout";
202
+ local_bootstrap: "local_bootstrap";
203
+ }>;
204
+ }, z.core.$strip>>>;
205
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
206
+ migrationId: z.ZodString;
207
+ description: z.ZodString;
208
+ checksum: z.ZodString;
209
+ relativePath: z.ZodString;
210
+ }, z.core.$strip>>>;
211
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
+ migrationId: z.ZodString;
213
+ expectedChecksum: z.ZodString;
214
+ appliedChecksum: z.ZodString;
215
+ }, z.core.$strip>>>;
216
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
217
+ }, z.core.$strip>;
218
+ export declare const backupArtifactKindSchema: z.ZodEnum<{
219
+ scheduled: "scheduled";
220
+ pre_release: "pre_release";
221
+ manual_emergency: "manual_emergency";
222
+ }>;
223
+ export declare const backupArtifactSourceKindSchema: z.ZodEnum<{
224
+ beta_rollout: "beta_rollout";
225
+ prod_rollout: "prod_rollout";
226
+ scheduled_job: "scheduled_job";
227
+ incident_response: "incident_response";
228
+ local_drill: "local_drill";
229
+ }>;
230
+ export declare const backupArtifactFormatSchema: z.ZodEnum<{
231
+ encrypted_json: "encrypted_json";
232
+ }>;
233
+ export declare const backupArtifactEncryptionModeSchema: z.ZodEnum<{
234
+ managed: "managed";
235
+ local_fallback: "local_fallback";
236
+ }>;
237
+ export declare const backupArtifactCoverageSchema: z.ZodObject<{
238
+ operators: z.ZodNumber;
239
+ workspaceMemberships: z.ZodNumber;
240
+ businessProfiles: z.ZodNumber;
241
+ businessProfileVersions: z.ZodNumber;
242
+ systemAdmins: z.ZodNumber;
243
+ telegramIntegrations: z.ZodNumber;
244
+ telegramObservedUsers: z.ZodNumber;
245
+ telegramEmployeeBindings: z.ZodNumber;
246
+ telegramBusinessAccounts: z.ZodNumber;
247
+ runtimeProviders: z.ZodNumber;
248
+ runtimeRoutingProfiles: z.ZodNumber;
249
+ runtimeUsageEvents: z.ZodNumber;
250
+ runtimeFallbackEvents: z.ZodNumber;
251
+ operationsSnapshots: z.ZodNumber;
252
+ }, z.core.$strip>;
253
+ export declare const backupArtifactEncryptionSchema: z.ZodObject<{
254
+ encrypted: z.ZodDefault<z.ZodBoolean>;
255
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
256
+ keyId: z.ZodString;
257
+ mode: z.ZodEnum<{
258
+ managed: "managed";
259
+ local_fallback: "local_fallback";
260
+ }>;
261
+ }, z.core.$strip>;
262
+ export declare const backupArtifactManifestSchema: z.ZodObject<{
263
+ backupId: z.ZodString;
264
+ environment: z.ZodString;
265
+ backupKind: z.ZodEnum<{
266
+ scheduled: "scheduled";
267
+ pre_release: "pre_release";
268
+ manual_emergency: "manual_emergency";
269
+ }>;
270
+ sourceKind: z.ZodEnum<{
271
+ beta_rollout: "beta_rollout";
272
+ prod_rollout: "prod_rollout";
273
+ scheduled_job: "scheduled_job";
274
+ incident_response: "incident_response";
275
+ local_drill: "local_drill";
276
+ }>;
277
+ artifactFormat: z.ZodEnum<{
278
+ encrypted_json: "encrypted_json";
279
+ }>;
280
+ storageMode: z.ZodEnum<{
281
+ postgres: "postgres";
282
+ in_memory: "in_memory";
283
+ }>;
284
+ databaseIdentity: z.ZodString;
285
+ schemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
286
+ ledgerAdopted: z.ZodBoolean;
287
+ createdAt: z.ZodString;
288
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
289
+ retentionDays: z.ZodNumber;
290
+ checksum: z.ZodString;
291
+ payloadSizeBytes: z.ZodNumber;
292
+ encryption: z.ZodObject<{
293
+ encrypted: z.ZodDefault<z.ZodBoolean>;
294
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
295
+ keyId: z.ZodString;
296
+ mode: z.ZodEnum<{
297
+ managed: "managed";
298
+ local_fallback: "local_fallback";
299
+ }>;
300
+ }, z.core.$strip>;
301
+ coverage: z.ZodObject<{
302
+ operators: z.ZodNumber;
303
+ workspaceMemberships: z.ZodNumber;
304
+ businessProfiles: z.ZodNumber;
305
+ businessProfileVersions: z.ZodNumber;
306
+ systemAdmins: z.ZodNumber;
307
+ telegramIntegrations: z.ZodNumber;
308
+ telegramObservedUsers: z.ZodNumber;
309
+ telegramEmployeeBindings: z.ZodNumber;
310
+ telegramBusinessAccounts: z.ZodNumber;
311
+ runtimeProviders: z.ZodNumber;
312
+ runtimeRoutingProfiles: z.ZodNumber;
313
+ runtimeUsageEvents: z.ZodNumber;
314
+ runtimeFallbackEvents: z.ZodNumber;
315
+ operationsSnapshots: z.ZodNumber;
316
+ }, z.core.$strip>;
317
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
318
+ }, z.core.$strip>;
319
+ export declare const restoreDrillTargetKindSchema: z.ZodEnum<{
320
+ isolated_in_memory: "isolated_in_memory";
321
+ }>;
322
+ export declare const restoreDrillCheckSchema: z.ZodObject<{
323
+ checkId: z.ZodString;
324
+ status: z.ZodEnum<{
325
+ unknown: "unknown";
326
+ pass: "pass";
327
+ warn: "warn";
328
+ fail: "fail";
329
+ }>;
330
+ summary: z.ZodString;
331
+ details: z.ZodDefault<z.ZodArray<z.ZodString>>;
332
+ }, z.core.$strip>;
333
+ export declare const restoreDrillRecordSchema: z.ZodObject<{
334
+ restoreDrillId: z.ZodString;
335
+ backupId: z.ZodString;
336
+ targetKind: z.ZodEnum<{
337
+ isolated_in_memory: "isolated_in_memory";
338
+ }>;
339
+ targetEnvironment: z.ZodString;
340
+ startedAt: z.ZodString;
341
+ completedAt: z.ZodString;
342
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
343
+ status: z.ZodEnum<{
344
+ unknown: "unknown";
345
+ pass: "pass";
346
+ warn: "warn";
347
+ fail: "fail";
348
+ }>;
349
+ summary: z.ZodString;
350
+ restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
351
+ validationChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
352
+ checkId: z.ZodString;
353
+ status: z.ZodEnum<{
354
+ unknown: "unknown";
355
+ pass: "pass";
356
+ warn: "warn";
357
+ fail: "fail";
358
+ }>;
359
+ summary: z.ZodString;
360
+ details: z.ZodDefault<z.ZodArray<z.ZodString>>;
361
+ }, z.core.$strip>>>;
362
+ coverage: z.ZodObject<{
363
+ operators: z.ZodNumber;
364
+ workspaceMemberships: z.ZodNumber;
365
+ businessProfiles: z.ZodNumber;
366
+ businessProfileVersions: z.ZodNumber;
367
+ systemAdmins: z.ZodNumber;
368
+ telegramIntegrations: z.ZodNumber;
369
+ telegramObservedUsers: z.ZodNumber;
370
+ telegramEmployeeBindings: z.ZodNumber;
371
+ telegramBusinessAccounts: z.ZodNumber;
372
+ runtimeProviders: z.ZodNumber;
373
+ runtimeRoutingProfiles: z.ZodNumber;
374
+ runtimeUsageEvents: z.ZodNumber;
375
+ runtimeFallbackEvents: z.ZodNumber;
376
+ operationsSnapshots: z.ZodNumber;
377
+ }, z.core.$strip>;
378
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
379
+ }, z.core.$strip>;
380
+ export declare const rolloutPhaseStatusSchema: z.ZodEnum<{
381
+ pass: "pass";
382
+ warn: "warn";
383
+ fail: "fail";
384
+ skipped: "skipped";
385
+ }>;
386
+ export declare const rolloutExecutionStatusSchema: z.ZodEnum<{
387
+ completed: "completed";
388
+ stopped: "stopped";
389
+ rolled_back: "rolled_back";
390
+ }>;
391
+ export declare const releaseVerificationVerdictSchema: z.ZodEnum<{
392
+ accepted: "accepted";
393
+ accepted_with_warnings: "accepted_with_warnings";
394
+ rollback_recommended: "rollback_recommended";
395
+ }>;
396
+ export declare const rolloutCodeRefSchema: z.ZodObject<{
397
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
398
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
399
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
400
+ }, z.core.$strip>;
401
+ export declare const rolloutPhaseRecordSchema: z.ZodObject<{
402
+ phaseId: z.ZodString;
403
+ label: z.ZodString;
404
+ status: z.ZodEnum<{
405
+ pass: "pass";
406
+ warn: "warn";
407
+ fail: "fail";
408
+ skipped: "skipped";
409
+ }>;
410
+ summary: z.ZodString;
411
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
412
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
413
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
414
+ }, z.core.$strip>;
415
+ export declare const rolloutExecutionRecordSchema: z.ZodObject<{
416
+ rolloutId: z.ZodString;
417
+ environment: z.ZodString;
418
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
419
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
420
+ startedAt: z.ZodString;
421
+ completedAt: z.ZodString;
422
+ status: z.ZodEnum<{
423
+ completed: "completed";
424
+ stopped: "stopped";
425
+ rolled_back: "rolled_back";
426
+ }>;
427
+ summary: z.ZodString;
428
+ stopReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
429
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
430
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
431
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
432
+ unknown: "unknown";
433
+ pass: "pass";
434
+ warn: "warn";
435
+ fail: "fail";
436
+ }>>>;
437
+ codeRef: z.ZodObject<{
438
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
439
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
440
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
441
+ }, z.core.$strip>;
442
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
443
+ phaseId: z.ZodString;
444
+ label: z.ZodString;
445
+ status: z.ZodEnum<{
446
+ pass: "pass";
447
+ warn: "warn";
448
+ fail: "fail";
449
+ skipped: "skipped";
450
+ }>;
451
+ summary: z.ZodString;
452
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
453
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
454
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
455
+ }, z.core.$strip>>>;
456
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
457
+ }, z.core.$strip>;
458
+ export declare const releaseVerificationPhaseRecordSchema: z.ZodObject<{
459
+ phaseId: z.ZodString;
460
+ label: z.ZodString;
461
+ status: z.ZodEnum<{
462
+ pass: "pass";
463
+ warn: "warn";
464
+ fail: "fail";
465
+ skipped: "skipped";
466
+ }>;
467
+ summary: z.ZodString;
468
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
469
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
470
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
471
+ }, z.core.$strip>;
472
+ export declare const releaseVerificationRecordSchema: z.ZodObject<{
473
+ verificationId: z.ZodString;
474
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
475
+ environment: z.ZodString;
476
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
477
+ verifiedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
478
+ verifiedAt: z.ZodString;
479
+ verdict: z.ZodEnum<{
480
+ accepted: "accepted";
481
+ accepted_with_warnings: "accepted_with_warnings";
482
+ rollback_recommended: "rollback_recommended";
483
+ }>;
484
+ summary: z.ZodString;
485
+ rollbackRecommended: z.ZodDefault<z.ZodBoolean>;
486
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
487
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
488
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
489
+ unknown: "unknown";
490
+ pass: "pass";
491
+ warn: "warn";
492
+ fail: "fail";
493
+ }>>>;
494
+ codeRef: z.ZodObject<{
495
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
496
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
497
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
498
+ }, z.core.$strip>;
499
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
500
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
501
+ phaseId: z.ZodString;
502
+ label: z.ZodString;
503
+ status: z.ZodEnum<{
504
+ pass: "pass";
505
+ warn: "warn";
506
+ fail: "fail";
507
+ skipped: "skipped";
508
+ }>;
509
+ summary: z.ZodString;
510
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
511
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
512
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
513
+ }, z.core.$strip>>>;
514
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
515
+ }, z.core.$strip>;
516
+ export declare const opsRecordRolloutExecutionRequestSchema: z.ZodObject<{
517
+ rollout: z.ZodObject<{
518
+ rolloutId: z.ZodString;
519
+ environment: z.ZodString;
520
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
521
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
522
+ startedAt: z.ZodString;
523
+ completedAt: z.ZodString;
524
+ status: z.ZodEnum<{
525
+ completed: "completed";
526
+ stopped: "stopped";
527
+ rolled_back: "rolled_back";
528
+ }>;
529
+ summary: z.ZodString;
530
+ stopReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
531
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
532
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
533
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
534
+ unknown: "unknown";
535
+ pass: "pass";
536
+ warn: "warn";
537
+ fail: "fail";
538
+ }>>>;
539
+ codeRef: z.ZodObject<{
540
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
541
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
542
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
543
+ }, z.core.$strip>;
544
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
545
+ phaseId: z.ZodString;
546
+ label: z.ZodString;
547
+ status: z.ZodEnum<{
548
+ pass: "pass";
549
+ warn: "warn";
550
+ fail: "fail";
551
+ skipped: "skipped";
552
+ }>;
553
+ summary: z.ZodString;
554
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
555
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
556
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
557
+ }, z.core.$strip>>>;
558
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
559
+ }, z.core.$strip>;
560
+ }, z.core.$strip>;
561
+ export declare const opsRecordRolloutExecutionResponseSchema: z.ZodObject<{
562
+ rollout: z.ZodObject<{
563
+ rolloutId: z.ZodString;
564
+ environment: z.ZodString;
565
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
566
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
567
+ startedAt: z.ZodString;
568
+ completedAt: z.ZodString;
569
+ status: z.ZodEnum<{
570
+ completed: "completed";
571
+ stopped: "stopped";
572
+ rolled_back: "rolled_back";
573
+ }>;
574
+ summary: z.ZodString;
575
+ stopReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
576
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
577
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
578
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
579
+ unknown: "unknown";
580
+ pass: "pass";
581
+ warn: "warn";
582
+ fail: "fail";
583
+ }>>>;
584
+ codeRef: z.ZodObject<{
585
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
586
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
587
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
588
+ }, z.core.$strip>;
589
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
590
+ phaseId: z.ZodString;
591
+ label: z.ZodString;
592
+ status: z.ZodEnum<{
593
+ pass: "pass";
594
+ warn: "warn";
595
+ fail: "fail";
596
+ skipped: "skipped";
597
+ }>;
598
+ summary: z.ZodString;
599
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
600
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
601
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
602
+ }, z.core.$strip>>>;
603
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
604
+ }, z.core.$strip>;
605
+ }, z.core.$strip>;
606
+ export declare const opsListRolloutExecutionsRequestSchema: z.ZodObject<{
607
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
608
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
609
+ }, z.core.$strip>;
610
+ export declare const opsListRolloutExecutionsResponseSchema: z.ZodObject<{
611
+ rollouts: z.ZodDefault<z.ZodArray<z.ZodObject<{
612
+ rolloutId: z.ZodString;
613
+ environment: z.ZodString;
614
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
615
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
616
+ startedAt: z.ZodString;
617
+ completedAt: z.ZodString;
618
+ status: z.ZodEnum<{
619
+ completed: "completed";
620
+ stopped: "stopped";
621
+ rolled_back: "rolled_back";
622
+ }>;
623
+ summary: z.ZodString;
624
+ stopReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
625
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
626
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
627
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
628
+ unknown: "unknown";
629
+ pass: "pass";
630
+ warn: "warn";
631
+ fail: "fail";
632
+ }>>>;
633
+ codeRef: z.ZodObject<{
634
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
635
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
636
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
637
+ }, z.core.$strip>;
638
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
639
+ phaseId: z.ZodString;
640
+ label: z.ZodString;
641
+ status: z.ZodEnum<{
642
+ pass: "pass";
643
+ warn: "warn";
644
+ fail: "fail";
645
+ skipped: "skipped";
646
+ }>;
647
+ summary: z.ZodString;
648
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
649
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
650
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
651
+ }, z.core.$strip>>>;
652
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
653
+ }, z.core.$strip>>>;
654
+ }, z.core.$strip>;
655
+ export declare const opsGetRolloutExecutionRequestSchema: z.ZodObject<{
656
+ rolloutId: z.ZodString;
657
+ }, z.core.$strip>;
658
+ export declare const opsGetRolloutExecutionResponseSchema: z.ZodObject<{
659
+ rollout: z.ZodDefault<z.ZodNullable<z.ZodObject<{
660
+ rolloutId: z.ZodString;
661
+ environment: z.ZodString;
662
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
663
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
664
+ startedAt: z.ZodString;
665
+ completedAt: z.ZodString;
666
+ status: z.ZodEnum<{
667
+ completed: "completed";
668
+ stopped: "stopped";
669
+ rolled_back: "rolled_back";
670
+ }>;
671
+ summary: z.ZodString;
672
+ stopReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
673
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
674
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
675
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
676
+ unknown: "unknown";
677
+ pass: "pass";
678
+ warn: "warn";
679
+ fail: "fail";
680
+ }>>>;
681
+ codeRef: z.ZodObject<{
682
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
683
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
684
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
685
+ }, z.core.$strip>;
686
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
687
+ phaseId: z.ZodString;
688
+ label: z.ZodString;
689
+ status: z.ZodEnum<{
690
+ pass: "pass";
691
+ warn: "warn";
692
+ fail: "fail";
693
+ skipped: "skipped";
694
+ }>;
695
+ summary: z.ZodString;
696
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
698
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
699
+ }, z.core.$strip>>>;
700
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
701
+ }, z.core.$strip>>>;
702
+ }, z.core.$strip>;
703
+ export declare const opsRecordReleaseVerificationRequestSchema: z.ZodObject<{
704
+ verification: z.ZodObject<{
705
+ verificationId: z.ZodString;
706
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
707
+ environment: z.ZodString;
708
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
709
+ verifiedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
710
+ verifiedAt: z.ZodString;
711
+ verdict: z.ZodEnum<{
712
+ accepted: "accepted";
713
+ accepted_with_warnings: "accepted_with_warnings";
714
+ rollback_recommended: "rollback_recommended";
715
+ }>;
716
+ summary: z.ZodString;
717
+ rollbackRecommended: z.ZodDefault<z.ZodBoolean>;
718
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
719
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
720
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
721
+ unknown: "unknown";
722
+ pass: "pass";
723
+ warn: "warn";
724
+ fail: "fail";
725
+ }>>>;
726
+ codeRef: z.ZodObject<{
727
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
728
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
729
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
730
+ }, z.core.$strip>;
731
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
732
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
733
+ phaseId: z.ZodString;
734
+ label: z.ZodString;
735
+ status: z.ZodEnum<{
736
+ pass: "pass";
737
+ warn: "warn";
738
+ fail: "fail";
739
+ skipped: "skipped";
740
+ }>;
741
+ summary: z.ZodString;
742
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
743
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
744
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
745
+ }, z.core.$strip>>>;
746
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
747
+ }, z.core.$strip>;
748
+ }, z.core.$strip>;
749
+ export declare const opsRecordReleaseVerificationResponseSchema: z.ZodObject<{
750
+ verification: z.ZodObject<{
751
+ verificationId: z.ZodString;
752
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
753
+ environment: z.ZodString;
754
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
755
+ verifiedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
756
+ verifiedAt: z.ZodString;
757
+ verdict: z.ZodEnum<{
758
+ accepted: "accepted";
759
+ accepted_with_warnings: "accepted_with_warnings";
760
+ rollback_recommended: "rollback_recommended";
761
+ }>;
762
+ summary: z.ZodString;
763
+ rollbackRecommended: z.ZodDefault<z.ZodBoolean>;
764
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
765
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
766
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
767
+ unknown: "unknown";
768
+ pass: "pass";
769
+ warn: "warn";
770
+ fail: "fail";
771
+ }>>>;
772
+ codeRef: z.ZodObject<{
773
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
774
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
775
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
776
+ }, z.core.$strip>;
777
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
778
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
779
+ phaseId: z.ZodString;
780
+ label: z.ZodString;
781
+ status: z.ZodEnum<{
782
+ pass: "pass";
783
+ warn: "warn";
784
+ fail: "fail";
785
+ skipped: "skipped";
786
+ }>;
787
+ summary: z.ZodString;
788
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
789
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
790
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
791
+ }, z.core.$strip>>>;
792
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
793
+ }, z.core.$strip>;
794
+ }, z.core.$strip>;
795
+ export declare const opsListReleaseVerificationsRequestSchema: z.ZodObject<{
796
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
797
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
798
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
799
+ }, z.core.$strip>;
800
+ export declare const opsListReleaseVerificationsResponseSchema: z.ZodObject<{
801
+ verifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
802
+ verificationId: z.ZodString;
803
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
804
+ environment: z.ZodString;
805
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
806
+ verifiedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
807
+ verifiedAt: z.ZodString;
808
+ verdict: z.ZodEnum<{
809
+ accepted: "accepted";
810
+ accepted_with_warnings: "accepted_with_warnings";
811
+ rollback_recommended: "rollback_recommended";
812
+ }>;
813
+ summary: z.ZodString;
814
+ rollbackRecommended: z.ZodDefault<z.ZodBoolean>;
815
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
816
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
817
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
818
+ unknown: "unknown";
819
+ pass: "pass";
820
+ warn: "warn";
821
+ fail: "fail";
822
+ }>>>;
823
+ codeRef: z.ZodObject<{
824
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
825
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
826
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
827
+ }, z.core.$strip>;
828
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
829
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
830
+ phaseId: z.ZodString;
831
+ label: z.ZodString;
832
+ status: z.ZodEnum<{
833
+ pass: "pass";
834
+ warn: "warn";
835
+ fail: "fail";
836
+ skipped: "skipped";
837
+ }>;
838
+ summary: z.ZodString;
839
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
840
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
841
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
842
+ }, z.core.$strip>>>;
843
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
844
+ }, z.core.$strip>>>;
845
+ }, z.core.$strip>;
846
+ export declare const opsGetReleaseVerificationRequestSchema: z.ZodObject<{
847
+ verificationId: z.ZodString;
848
+ }, z.core.$strip>;
849
+ export declare const opsGetReleaseVerificationResponseSchema: z.ZodObject<{
850
+ verification: z.ZodDefault<z.ZodNullable<z.ZodObject<{
851
+ verificationId: z.ZodString;
852
+ rolloutId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
853
+ environment: z.ZodString;
854
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
855
+ verifiedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
856
+ verifiedAt: z.ZodString;
857
+ verdict: z.ZodEnum<{
858
+ accepted: "accepted";
859
+ accepted_with_warnings: "accepted_with_warnings";
860
+ rollback_recommended: "rollback_recommended";
861
+ }>;
862
+ summary: z.ZodString;
863
+ rollbackRecommended: z.ZodDefault<z.ZodBoolean>;
864
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
865
+ profileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
866
+ readinessStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
867
+ unknown: "unknown";
868
+ pass: "pass";
869
+ warn: "warn";
870
+ fail: "fail";
871
+ }>>>;
872
+ codeRef: z.ZodObject<{
873
+ repositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
874
+ commitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
875
+ branchName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
876
+ }, z.core.$strip>;
877
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
878
+ phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
879
+ phaseId: z.ZodString;
880
+ label: z.ZodString;
881
+ status: z.ZodEnum<{
882
+ pass: "pass";
883
+ warn: "warn";
884
+ fail: "fail";
885
+ skipped: "skipped";
886
+ }>;
887
+ summary: z.ZodString;
888
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
889
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
890
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
891
+ }, z.core.$strip>>>;
892
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
893
+ }, z.core.$strip>>>;
894
+ }, z.core.$strip>;
895
+ export declare const operationsReadinessResponseSchema: z.ZodObject<{
896
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
897
+ generatedAt: z.ZodString;
898
+ status: z.ZodEnum<{
899
+ unknown: "unknown";
900
+ pass: "pass";
901
+ warn: "warn";
902
+ fail: "fail";
903
+ }>;
904
+ stale: z.ZodBoolean;
905
+ counts: z.ZodObject<{
906
+ total: z.ZodNumber;
907
+ pass: z.ZodNumber;
908
+ warn: z.ZodNumber;
909
+ fail: z.ZodNumber;
910
+ unknown: z.ZodNumber;
911
+ stale: z.ZodNumber;
912
+ }, z.core.$strip>;
913
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
914
+ snapshotId: z.ZodString;
915
+ entityKind: z.ZodEnum<{
916
+ telegram_integration: "telegram_integration";
917
+ telegram_business_account: "telegram_business_account";
918
+ telegram_employee_binding: "telegram_employee_binding";
919
+ runtime_provider: "runtime_provider";
920
+ runtime_routing: "runtime_routing";
921
+ }>;
922
+ entityId: z.ZodString;
923
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
924
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
925
+ status: z.ZodEnum<{
926
+ unknown: "unknown";
927
+ pass: "pass";
928
+ warn: "warn";
929
+ fail: "fail";
930
+ }>;
931
+ summary: z.ZodString;
932
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
933
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
935
+ code: z.ZodString;
936
+ severity: z.ZodEnum<{
937
+ warn: "warn";
938
+ fail: "fail";
939
+ }>;
940
+ field: z.ZodString;
941
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
942
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
943
+ message: z.ZodString;
944
+ }, z.core.$strip>>>;
945
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
946
+ checkedAt: z.ZodString;
947
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
948
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
949
+ stale: z.ZodDefault<z.ZodBoolean>;
950
+ sourceKind: z.ZodEnum<{
951
+ startup_probe: "startup_probe";
952
+ manual_refresh: "manual_refresh";
953
+ scheduled_reconcile: "scheduled_reconcile";
954
+ migration_backfill: "migration_backfill";
955
+ }>;
956
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
957
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
958
+ createdAt: z.ZodString;
959
+ updatedAt: z.ZodString;
960
+ }, z.core.$strip>>>;
961
+ schema: z.ZodDefault<z.ZodNullable<z.ZodObject<{
962
+ storageMode: z.ZodEnum<{
963
+ postgres: "postgres";
964
+ in_memory: "in_memory";
965
+ }>;
966
+ applyMode: z.ZodEnum<{
967
+ real: "real";
968
+ simulated: "simulated";
969
+ }>;
970
+ environment: z.ZodString;
971
+ migrationRoot: z.ZodString;
972
+ ledgerAdopted: z.ZodBoolean;
973
+ legacyStartupSchemaSupport: z.ZodBoolean;
974
+ status: z.ZodEnum<{
975
+ unknown: "unknown";
976
+ pass: "pass";
977
+ warn: "warn";
978
+ fail: "fail";
979
+ }>;
980
+ summary: z.ZodString;
981
+ checkedAt: z.ZodString;
982
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
983
+ migrationId: z.ZodString;
984
+ description: z.ZodString;
985
+ checksum: z.ZodString;
986
+ relativePath: z.ZodString;
987
+ }, z.core.$strip>>>;
988
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
989
+ migrationId: z.ZodString;
990
+ description: z.ZodString;
991
+ checksum: z.ZodString;
992
+ relativePath: z.ZodString;
993
+ appliedAt: z.ZodString;
994
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
995
+ sourceKind: z.ZodEnum<{
996
+ manual_apply: "manual_apply";
997
+ beta_rollout: "beta_rollout";
998
+ prod_rollout: "prod_rollout";
999
+ local_bootstrap: "local_bootstrap";
1000
+ }>;
1001
+ }, z.core.$strip>>>;
1002
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1003
+ migrationId: z.ZodString;
1004
+ description: z.ZodString;
1005
+ checksum: z.ZodString;
1006
+ relativePath: z.ZodString;
1007
+ }, z.core.$strip>>>;
1008
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
1009
+ migrationId: z.ZodString;
1010
+ expectedChecksum: z.ZodString;
1011
+ appliedChecksum: z.ZodString;
1012
+ }, z.core.$strip>>>;
1013
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
1014
+ }, z.core.$strip>>>;
1015
+ }, z.core.$strip>;
1016
+ export declare const operatorActorSchema: z.ZodObject<{
1017
+ operatorId: z.ZodString;
1018
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1019
+ }, z.core.$strip>;
1020
+ export declare const conversationFeedFilterSchema: z.ZodObject<{
1021
+ status: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1022
+ active: "active";
1023
+ paused: "paused";
1024
+ handed_off: "handed_off";
1025
+ archived: "archived";
1026
+ }>>>;
1027
+ ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1028
+ ai: "ai";
1029
+ human: "human";
1030
+ hybrid: "hybrid";
1031
+ }>>>;
1032
+ channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1033
+ telegram: "telegram";
1034
+ telegram_business: "telegram_business";
1035
+ local_playground: "local_playground";
1036
+ web_chat: "web_chat";
1037
+ manual: "manual";
1038
+ }>>>;
1039
+ search: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1040
+ limit: z.ZodDefault<z.ZodNumber>;
1041
+ }, z.core.$strip>;
1042
+ export declare const conversationFeedItemSchema: z.ZodObject<{
1043
+ conversationId: z.ZodString;
1044
+ customerId: z.ZodString;
1045
+ channelKind: z.ZodEnum<{
1046
+ telegram: "telegram";
1047
+ telegram_business: "telegram_business";
1048
+ local_playground: "local_playground";
1049
+ web_chat: "web_chat";
1050
+ manual: "manual";
1051
+ }>;
1052
+ channelThreadRef: z.ZodString;
1053
+ status: z.ZodEnum<{
1054
+ active: "active";
1055
+ paused: "paused";
1056
+ handed_off: "handed_off";
1057
+ archived: "archived";
1058
+ }>;
1059
+ ownershipMode: z.ZodEnum<{
1060
+ ai: "ai";
1061
+ human: "human";
1062
+ hybrid: "hybrid";
1063
+ }>;
1064
+ assistMode: z.ZodEnum<{
1065
+ off: "off";
1066
+ draft_only: "draft_only";
1067
+ review_only: "review_only";
1068
+ draft_and_review: "draft_and_review";
1069
+ }>;
1070
+ sendMode: z.ZodEnum<{
1071
+ operator_only: "operator_only";
1072
+ operator_approve: "operator_approve";
1073
+ ai_auto: "ai_auto";
1074
+ }>;
1075
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1076
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1077
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1078
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1079
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1080
+ ai: "ai";
1081
+ customer: "customer";
1082
+ operator: "operator";
1083
+ system: "system";
1084
+ }>>>;
1085
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1086
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1087
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
1088
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
1089
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
1090
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1091
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1092
+ waiting_for_customer: "waiting_for_customer";
1093
+ waiting_for_assets: "waiting_for_assets";
1094
+ waiting_for_payment: "waiting_for_payment";
1095
+ waiting_for_partner_decision: "waiting_for_partner_decision";
1096
+ silent_dropoff: "silent_dropoff";
1097
+ operator_followup_needed: "operator_followup_needed";
1098
+ }>>>;
1099
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1100
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1101
+ updatedAt: z.ZodString;
1102
+ }, z.core.$strip>;
1103
+ export declare const linkedConversationSummarySchema: z.ZodObject<{
1104
+ conversationId: z.ZodString;
1105
+ channelKind: z.ZodEnum<{
1106
+ telegram: "telegram";
1107
+ telegram_business: "telegram_business";
1108
+ local_playground: "local_playground";
1109
+ web_chat: "web_chat";
1110
+ manual: "manual";
1111
+ }>;
1112
+ channelThreadRef: z.ZodString;
1113
+ status: z.ZodEnum<{
1114
+ active: "active";
1115
+ paused: "paused";
1116
+ handed_off: "handed_off";
1117
+ archived: "archived";
1118
+ }>;
1119
+ ownershipMode: z.ZodEnum<{
1120
+ ai: "ai";
1121
+ human: "human";
1122
+ hybrid: "hybrid";
1123
+ }>;
1124
+ updatedAt: z.ZodString;
1125
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1126
+ }, z.core.$strip>;
1127
+ export declare const operatorNoteSchema: z.ZodObject<{
1128
+ eventId: z.ZodString;
1129
+ conversationId: z.ZodString;
1130
+ note: z.ZodString;
1131
+ operatorId: z.ZodString;
1132
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1133
+ createdAt: z.ZodString;
1134
+ }, z.core.$strip>;
1135
+ export declare const handoffRecordSchema: z.ZodObject<{
1136
+ eventId: z.ZodString;
1137
+ conversationId: z.ZodString;
1138
+ reason: z.ZodString;
1139
+ requestedBy: z.ZodObject<{
1140
+ operatorId: z.ZodString;
1141
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1142
+ }, z.core.$strip>;
1143
+ createdAt: z.ZodString;
1144
+ nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
1145
+ human: "human";
1146
+ hybrid: "hybrid";
1147
+ }>>;
1148
+ }, z.core.$strip>;
1149
+ export declare const opsListConversationFeedRequestSchema: z.ZodObject<{
1150
+ status: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1151
+ active: "active";
1152
+ paused: "paused";
1153
+ handed_off: "handed_off";
1154
+ archived: "archived";
1155
+ }>>>;
1156
+ ownershipMode: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1157
+ ai: "ai";
1158
+ human: "human";
1159
+ hybrid: "hybrid";
1160
+ }>>>;
1161
+ channelKind: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1162
+ telegram: "telegram";
1163
+ telegram_business: "telegram_business";
1164
+ local_playground: "local_playground";
1165
+ web_chat: "web_chat";
1166
+ manual: "manual";
1167
+ }>>>;
1168
+ search: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1169
+ limit: z.ZodDefault<z.ZodNumber>;
1170
+ }, z.core.$strip>;
1171
+ export declare const opsListConversationFeedResponseSchema: z.ZodObject<{
1172
+ items: z.ZodArray<z.ZodObject<{
1173
+ conversationId: z.ZodString;
1174
+ customerId: z.ZodString;
1175
+ channelKind: z.ZodEnum<{
1176
+ telegram: "telegram";
1177
+ telegram_business: "telegram_business";
1178
+ local_playground: "local_playground";
1179
+ web_chat: "web_chat";
1180
+ manual: "manual";
1181
+ }>;
1182
+ channelThreadRef: z.ZodString;
1183
+ status: z.ZodEnum<{
1184
+ active: "active";
1185
+ paused: "paused";
1186
+ handed_off: "handed_off";
1187
+ archived: "archived";
1188
+ }>;
1189
+ ownershipMode: z.ZodEnum<{
1190
+ ai: "ai";
1191
+ human: "human";
1192
+ hybrid: "hybrid";
1193
+ }>;
1194
+ assistMode: z.ZodEnum<{
1195
+ off: "off";
1196
+ draft_only: "draft_only";
1197
+ review_only: "review_only";
1198
+ draft_and_review: "draft_and_review";
1199
+ }>;
1200
+ sendMode: z.ZodEnum<{
1201
+ operator_only: "operator_only";
1202
+ operator_approve: "operator_approve";
1203
+ ai_auto: "ai_auto";
1204
+ }>;
1205
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1206
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1207
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1208
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1209
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1210
+ ai: "ai";
1211
+ customer: "customer";
1212
+ operator: "operator";
1213
+ system: "system";
1214
+ }>>>;
1215
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1216
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1217
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
1218
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
1219
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
1220
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1221
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1222
+ waiting_for_customer: "waiting_for_customer";
1223
+ waiting_for_assets: "waiting_for_assets";
1224
+ waiting_for_payment: "waiting_for_payment";
1225
+ waiting_for_partner_decision: "waiting_for_partner_decision";
1226
+ silent_dropoff: "silent_dropoff";
1227
+ operator_followup_needed: "operator_followup_needed";
1228
+ }>>>;
1229
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1230
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1231
+ updatedAt: z.ZodString;
1232
+ }, z.core.$strip>>;
1233
+ }, z.core.$strip>;
1234
+ export declare const opsGetConversationWorkspaceRequestSchema: z.ZodObject<{
1235
+ conversationId: z.ZodString;
1236
+ }, z.core.$strip>;
1237
+ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1238
+ feedItem: z.ZodObject<{
1239
+ conversationId: z.ZodString;
1240
+ customerId: z.ZodString;
1241
+ channelKind: z.ZodEnum<{
1242
+ telegram: "telegram";
1243
+ telegram_business: "telegram_business";
1244
+ local_playground: "local_playground";
1245
+ web_chat: "web_chat";
1246
+ manual: "manual";
1247
+ }>;
1248
+ channelThreadRef: z.ZodString;
1249
+ status: z.ZodEnum<{
1250
+ active: "active";
1251
+ paused: "paused";
1252
+ handed_off: "handed_off";
1253
+ archived: "archived";
1254
+ }>;
1255
+ ownershipMode: z.ZodEnum<{
1256
+ ai: "ai";
1257
+ human: "human";
1258
+ hybrid: "hybrid";
1259
+ }>;
1260
+ assistMode: z.ZodEnum<{
1261
+ off: "off";
1262
+ draft_only: "draft_only";
1263
+ review_only: "review_only";
1264
+ draft_and_review: "draft_and_review";
1265
+ }>;
1266
+ sendMode: z.ZodEnum<{
1267
+ operator_only: "operator_only";
1268
+ operator_approve: "operator_approve";
1269
+ ai_auto: "ai_auto";
1270
+ }>;
1271
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1272
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1273
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1274
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1275
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1276
+ ai: "ai";
1277
+ customer: "customer";
1278
+ operator: "operator";
1279
+ system: "system";
1280
+ }>>>;
1281
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1282
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1283
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
1284
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
1285
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
1286
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1287
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1288
+ waiting_for_customer: "waiting_for_customer";
1289
+ waiting_for_assets: "waiting_for_assets";
1290
+ waiting_for_payment: "waiting_for_payment";
1291
+ waiting_for_partner_decision: "waiting_for_partner_decision";
1292
+ silent_dropoff: "silent_dropoff";
1293
+ operator_followup_needed: "operator_followup_needed";
1294
+ }>>>;
1295
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1296
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1297
+ updatedAt: z.ZodString;
1298
+ }, z.core.$strip>;
1299
+ conversationContext: z.ZodObject<{
1300
+ conversation: z.ZodObject<{
1301
+ conversationId: z.ZodString;
1302
+ customerId: z.ZodString;
1303
+ status: z.ZodEnum<{
1304
+ active: "active";
1305
+ paused: "paused";
1306
+ handed_off: "handed_off";
1307
+ archived: "archived";
1308
+ }>;
1309
+ channelKind: z.ZodEnum<{
1310
+ telegram: "telegram";
1311
+ telegram_business: "telegram_business";
1312
+ local_playground: "local_playground";
1313
+ web_chat: "web_chat";
1314
+ manual: "manual";
1315
+ }>;
1316
+ channelThreadRef: z.ZodString;
1317
+ ownershipMode: z.ZodEnum<{
1318
+ ai: "ai";
1319
+ human: "human";
1320
+ hybrid: "hybrid";
1321
+ }>;
1322
+ assistMode: z.ZodEnum<{
1323
+ off: "off";
1324
+ draft_only: "draft_only";
1325
+ review_only: "review_only";
1326
+ draft_and_review: "draft_and_review";
1327
+ }>;
1328
+ sendMode: z.ZodEnum<{
1329
+ operator_only: "operator_only";
1330
+ operator_approve: "operator_approve";
1331
+ ai_auto: "ai_auto";
1332
+ }>;
1333
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1334
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1335
+ currentSummaryId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1336
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1337
+ businessConnection: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1338
+ businessConnectionId: z.ZodString;
1339
+ businessAccountUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1340
+ userChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1341
+ canReply: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1342
+ status: z.ZodDefault<z.ZodEnum<{
1343
+ active: "active";
1344
+ disabled: "disabled";
1345
+ }>>;
1346
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1347
+ updatedAt: z.ZodString;
1348
+ }, z.core.$strip>>>;
1349
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1350
+ createdAt: z.ZodString;
1351
+ updatedAt: z.ZodString;
1352
+ }, z.core.$strip>;
1353
+ messages: z.ZodArray<z.ZodObject<{
1354
+ messageId: z.ZodString;
1355
+ conversationId: z.ZodString;
1356
+ authorKind: z.ZodEnum<{
1357
+ ai: "ai";
1358
+ customer: "customer";
1359
+ operator: "operator";
1360
+ system: "system";
1361
+ }>;
1362
+ deliveryKind: z.ZodEnum<{
1363
+ inbound: "inbound";
1364
+ outbound: "outbound";
1365
+ }>;
1366
+ channelMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1367
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1368
+ attachments: z.ZodArray<z.ZodObject<{
1369
+ attachmentId: z.ZodString;
1370
+ conversationId: z.ZodString;
1371
+ messageId: z.ZodString;
1372
+ kind: z.ZodEnum<{
1373
+ photo: "photo";
1374
+ document: "document";
1375
+ audio: "audio";
1376
+ video: "video";
1377
+ other: "other";
1378
+ }>;
1379
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1380
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1381
+ storageRef: z.ZodString;
1382
+ sourceRef: z.ZodString;
1383
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1384
+ createdAt: z.ZodString;
1385
+ }, z.core.$strip>>;
1386
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1387
+ createdAt: z.ZodString;
1388
+ }, z.core.$strip>>;
1389
+ events: z.ZodArray<z.ZodObject<{
1390
+ eventId: z.ZodString;
1391
+ conversationId: z.ZodString;
1392
+ eventType: z.ZodEnum<{
1393
+ "message.received": "message.received";
1394
+ "message.sent": "message.sent";
1395
+ "message.edited": "message.edited";
1396
+ "message.deleted": "message.deleted";
1397
+ "attachments.normalized": "attachments.normalized";
1398
+ "conversation.created": "conversation.created";
1399
+ "conversation.linked": "conversation.linked";
1400
+ "business.connection.updated": "business.connection.updated";
1401
+ "ownership.changed": "ownership.changed";
1402
+ "handoff.started": "handoff.started";
1403
+ "handoff.released": "handoff.released";
1404
+ "operator.note.added": "operator.note.added";
1405
+ "channel.outbound.skipped": "channel.outbound.skipped";
1406
+ "channel.outbound.sent": "channel.outbound.sent";
1407
+ "followup.classified": "followup.classified";
1408
+ "followup.task.scheduled": "followup.task.scheduled";
1409
+ "followup.task.completed": "followup.task.completed";
1410
+ "followup.task.cancelled": "followup.task.cancelled";
1411
+ "runtime.decision.recorded": "runtime.decision.recorded";
1412
+ "runtime.validation.blocked": "runtime.validation.blocked";
1413
+ "assist.draft.generated": "assist.draft.generated";
1414
+ "assist.review.generated": "assist.review.generated";
1415
+ }>;
1416
+ title: z.ZodString;
1417
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1418
+ ai: "ai";
1419
+ customer: "customer";
1420
+ operator: "operator";
1421
+ system: "system";
1422
+ }>>>;
1423
+ createdAt: z.ZodString;
1424
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1425
+ }, z.core.$strip>>;
1426
+ timeline: z.ZodArray<z.ZodObject<{
1427
+ entryId: z.ZodString;
1428
+ conversationId: z.ZodString;
1429
+ entryKind: z.ZodEnum<{
1430
+ message: "message";
1431
+ event: "event";
1432
+ }>;
1433
+ occurredAt: z.ZodString;
1434
+ title: z.ZodString;
1435
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1436
+ ai: "ai";
1437
+ customer: "customer";
1438
+ operator: "operator";
1439
+ system: "system";
1440
+ }>>>;
1441
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1442
+ messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1443
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1444
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1445
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1446
+ }, z.core.$strip>>;
1447
+ assistArtifacts: z.ZodArray<z.ZodObject<{
1448
+ artifactId: z.ZodString;
1449
+ conversationId: z.ZodString;
1450
+ targetEntityKind: z.ZodEnum<{
1451
+ message: "message";
1452
+ assist_artifact: "assist_artifact";
1453
+ }>;
1454
+ targetEntityId: z.ZodString;
1455
+ kind: z.ZodEnum<{
1456
+ reply_draft: "reply_draft";
1457
+ message_review: "message_review";
1458
+ }>;
1459
+ status: z.ZodEnum<{
1460
+ accepted: "accepted";
1461
+ active: "active";
1462
+ viewed: "viewed";
1463
+ dismissed: "dismissed";
1464
+ superseded: "superseded";
1465
+ }>;
1466
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1467
+ outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1468
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1469
+ provider: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1470
+ modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1471
+ promptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1472
+ promptVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1473
+ promptHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1474
+ attemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1475
+ createdAt: z.ZodString;
1476
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1477
+ }, z.core.$strip>>;
1478
+ decisionTraces: z.ZodDefault<z.ZodArray<z.ZodObject<{
1479
+ traceId: z.ZodString;
1480
+ conversationId: z.ZodString;
1481
+ sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1482
+ mode: z.ZodEnum<{
1483
+ reply: "reply";
1484
+ draft: "draft";
1485
+ review: "review";
1486
+ }>;
1487
+ status: z.ZodEnum<{
1488
+ applied: "applied";
1489
+ blocked: "blocked";
1490
+ }>;
1491
+ generationMode: z.ZodEnum<{
1492
+ heuristic: "heuristic";
1493
+ model: "model";
1494
+ }>;
1495
+ provider: z.ZodString;
1496
+ modelId: z.ZodString;
1497
+ promptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1498
+ promptVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1499
+ promptHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1500
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1501
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1502
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1503
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1504
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1505
+ }, z.core.$strip>>>;
1506
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1507
+ attemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1508
+ priorAttemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1509
+ selectedStrategyId: z.ZodString;
1510
+ candidateStrategyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1511
+ retrievedDocs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1512
+ docId: z.ZodString;
1513
+ kind: z.ZodEnum<{
1514
+ strategy: "strategy";
1515
+ product: "product";
1516
+ policy: "policy";
1517
+ example: "example";
1518
+ }>;
1519
+ title: z.ZodString;
1520
+ score: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1521
+ }, z.core.$strip>>>;
1522
+ decisionEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1523
+ reply: z.ZodObject<{
1524
+ text: z.ZodString;
1525
+ tone: z.ZodDefault<z.ZodEnum<{
1526
+ concise: "concise";
1527
+ standard: "standard";
1528
+ }>>;
1529
+ channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1530
+ }, z.core.$strip>;
1531
+ classification: z.ZodObject<{
1532
+ primaryIntent: z.ZodString;
1533
+ secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1534
+ readiness: z.ZodEnum<{
1535
+ low: "low";
1536
+ medium: "medium";
1537
+ high: "high";
1538
+ }>;
1539
+ emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1540
+ confidence: z.ZodNumber;
1541
+ riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1542
+ }, z.core.$strip>;
1543
+ strategy: z.ZodObject<{
1544
+ selectedId: z.ZodString;
1545
+ candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1546
+ rationaleSummary: z.ZodString;
1547
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
1548
+ }, z.core.$strip>;
1549
+ statePatch: z.ZodDefault<z.ZodObject<{
1550
+ conversation: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1551
+ commercial: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1552
+ memory: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1553
+ }, z.core.$strip>>;
1554
+ cartPatch: z.ZodOptional<z.ZodObject<{
1555
+ operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1556
+ type: z.ZodEnum<{
1557
+ ensure_base_product: "ensure_base_product";
1558
+ attach_product: "attach_product";
1559
+ }>;
1560
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1561
+ }, z.core.$strip>>>;
1562
+ }, z.core.$strip>>;
1563
+ actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1564
+ type: z.ZodEnum<{
1565
+ none: "none";
1566
+ "commerce.create_cart": "commerce.create_cart";
1567
+ "commerce.sync_cart": "commerce.sync_cart";
1568
+ "commerce.quote_deal": "commerce.quote_deal";
1569
+ "handoff.request": "handoff.request";
1570
+ "followup.schedule": "followup.schedule";
1571
+ }>;
1572
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1573
+ }, z.core.$strip>>>;
1574
+ followUp: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1575
+ needed: z.ZodBoolean;
1576
+ class: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1577
+ suggestedDelayMinutes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1578
+ }, z.core.$strip>>>;
1579
+ handoff: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1580
+ needed: z.ZodBoolean;
1581
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1582
+ priority: z.ZodDefault<z.ZodEnum<{
1583
+ normal: "normal";
1584
+ urgent: "urgent";
1585
+ }>>;
1586
+ }, z.core.$strip>>>;
1587
+ }, z.core.$strip>>>;
1588
+ turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1589
+ output: z.ZodObject<{
1590
+ classification: z.ZodObject<{
1591
+ primaryIntent: z.ZodString;
1592
+ secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1593
+ readiness: z.ZodEnum<{
1594
+ low: "low";
1595
+ medium: "medium";
1596
+ high: "high";
1597
+ }>;
1598
+ emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1599
+ confidence: z.ZodNumber;
1600
+ riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1601
+ }, z.core.$strip>;
1602
+ strategy: z.ZodObject<{
1603
+ selectedId: z.ZodString;
1604
+ candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1605
+ rationaleSummary: z.ZodString;
1606
+ }, z.core.$strip>;
1607
+ customerGoal: z.ZodString;
1608
+ relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1609
+ relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1610
+ missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1611
+ handoffSuggested: z.ZodObject<{
1612
+ needed: z.ZodBoolean;
1613
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1614
+ priority: z.ZodDefault<z.ZodEnum<{
1615
+ normal: "normal";
1616
+ urgent: "urgent";
1617
+ }>>;
1618
+ }, z.core.$strip>;
1619
+ replyGoal: z.ZodString;
1620
+ }, z.core.$strip>;
1621
+ promptMeta: z.ZodObject<{
1622
+ promptId: z.ZodString;
1623
+ family: z.ZodString;
1624
+ stage: z.ZodString;
1625
+ semanticVersion: z.ZodString;
1626
+ renderedHash: z.ZodString;
1627
+ }, z.core.$strip>;
1628
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1629
+ generationMode: z.ZodEnum<{
1630
+ heuristic: "heuristic";
1631
+ model: "model";
1632
+ }>;
1633
+ }, z.core.$strip>>>;
1634
+ decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1635
+ promptMeta: z.ZodObject<{
1636
+ promptId: z.ZodString;
1637
+ family: z.ZodString;
1638
+ stage: z.ZodString;
1639
+ semanticVersion: z.ZodString;
1640
+ renderedHash: z.ZodString;
1641
+ }, z.core.$strip>;
1642
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1643
+ generationMode: z.ZodEnum<{
1644
+ heuristic: "heuristic";
1645
+ model: "model";
1646
+ }>;
1647
+ }, z.core.$strip>>>;
1648
+ generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1649
+ stage: z.ZodEnum<{
1650
+ turn_analyze: "turn_analyze";
1651
+ turn_decide: "turn_decide";
1652
+ review_artifact: "review_artifact";
1653
+ review_message: "review_message";
1654
+ }>;
1655
+ attemptNumber: z.ZodNumber;
1656
+ attemptKind: z.ZodEnum<{
1657
+ initial: "initial";
1658
+ corrective_retry: "corrective_retry";
1659
+ }>;
1660
+ status: z.ZodEnum<{
1661
+ succeeded: "succeeded";
1662
+ failed: "failed";
1663
+ }>;
1664
+ promptMeta: z.ZodObject<{
1665
+ promptId: z.ZodString;
1666
+ family: z.ZodString;
1667
+ stage: z.ZodString;
1668
+ semanticVersion: z.ZodString;
1669
+ renderedHash: z.ZodString;
1670
+ }, z.core.$strip>;
1671
+ provider: z.ZodString;
1672
+ modelId: z.ZodString;
1673
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1674
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1675
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1676
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1677
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1678
+ }, z.core.$strip>>>;
1679
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1680
+ retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1681
+ priorAttemptNumber: z.ZodNumber;
1682
+ errorSummary: z.ZodString;
1683
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1684
+ }, z.core.$strip>>>;
1685
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1686
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1687
+ }, z.core.$strip>>>;
1688
+ historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1689
+ rawCharacterBudget: z.ZodNumber;
1690
+ recentRawCharacterCount: z.ZodNumber;
1691
+ overflowCharacterCount: z.ZodNumber;
1692
+ segmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1693
+ summaryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1694
+ }, z.core.$strip>>>;
1695
+ reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1696
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
1697
+ actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1698
+ actionType: z.ZodEnum<{
1699
+ none: "none";
1700
+ "commerce.create_cart": "commerce.create_cart";
1701
+ "commerce.sync_cart": "commerce.sync_cart";
1702
+ "commerce.quote_deal": "commerce.quote_deal";
1703
+ "handoff.request": "handoff.request";
1704
+ "followup.schedule": "followup.schedule";
1705
+ }>;
1706
+ status: z.ZodEnum<{
1707
+ skipped: "skipped";
1708
+ blocked: "blocked";
1709
+ executed: "executed";
1710
+ }>;
1711
+ summary: z.ZodString;
1712
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1713
+ }, z.core.$strip>>>;
1714
+ createdAt: z.ZodString;
1715
+ }, z.core.$strip>>>;
1716
+ }, z.core.$strip>;
1717
+ customerContext: z.ZodObject<{
1718
+ customer: z.ZodObject<{
1719
+ customerId: z.ZodString;
1720
+ createdAt: z.ZodString;
1721
+ updatedAt: z.ZodString;
1722
+ }, z.core.$strip>;
1723
+ identities: z.ZodArray<z.ZodObject<{
1724
+ identityId: z.ZodString;
1725
+ customerId: z.ZodString;
1726
+ channel: z.ZodEnum<{
1727
+ telegram: "telegram";
1728
+ telegram_business: "telegram_business";
1729
+ local_playground: "local_playground";
1730
+ web_chat: "web_chat";
1731
+ manual: "manual";
1732
+ }>;
1733
+ externalUserId: z.ZodString;
1734
+ channelAccountId: z.ZodNullable<z.ZodString>;
1735
+ displayName: z.ZodNullable<z.ZodString>;
1736
+ createdAt: z.ZodString;
1737
+ updatedAt: z.ZodString;
1738
+ }, z.core.$strip>>;
1739
+ profile: z.ZodObject<{
1740
+ customerId: z.ZodString;
1741
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1742
+ locale: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1743
+ language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1744
+ timezone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1745
+ city: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1746
+ country: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1747
+ preferredChannel: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1748
+ telegram: "telegram";
1749
+ telegram_business: "telegram_business";
1750
+ local_playground: "local_playground";
1751
+ web_chat: "web_chat";
1752
+ manual: "manual";
1753
+ }>>>;
1754
+ stableContextFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1755
+ createdAt: z.ZodString;
1756
+ updatedAt: z.ZodString;
1757
+ }, z.core.$strip>;
1758
+ commercialProfile: z.ZodObject<{
1759
+ customerId: z.ZodString;
1760
+ productInterests: z.ZodDefault<z.ZodArray<z.ZodString>>;
1761
+ priceSensitivity: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1762
+ low: "low";
1763
+ medium: "medium";
1764
+ high: "high";
1765
+ }>>>;
1766
+ decisionSpeed: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1767
+ medium: "medium";
1768
+ slow: "slow";
1769
+ fast: "fast";
1770
+ }>>>;
1771
+ recurringObjections: z.ZodDefault<z.ZodArray<z.ZodString>>;
1772
+ followUpTolerance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1773
+ low: "low";
1774
+ medium: "medium";
1775
+ high: "high";
1776
+ }>>>;
1777
+ preferredCommunicationStyle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1778
+ concise: "concise";
1779
+ balanced: "balanced";
1780
+ warm: "warm";
1781
+ }>>>;
1782
+ repeatCustomer: z.ZodDefault<z.ZodBoolean>;
1783
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1784
+ createdAt: z.ZodString;
1785
+ updatedAt: z.ZodString;
1786
+ }, z.core.$strip>;
1787
+ summaries: z.ZodArray<z.ZodObject<{
1788
+ summaryId: z.ZodString;
1789
+ customerId: z.ZodString;
1790
+ kind: z.ZodEnum<{
1791
+ conversation: "conversation";
1792
+ episode: "episode";
1793
+ }>;
1794
+ summaryKey: z.ZodString;
1795
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1796
+ summaryText: z.ZodString;
1797
+ currentIntent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1798
+ activeQuestions: z.ZodDefault<z.ZodArray<z.ZodString>>;
1799
+ blockers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1800
+ nextStep: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1801
+ currentCartSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1802
+ source: z.ZodEnum<{
1803
+ conversation_turn: "conversation_turn";
1804
+ operator_edit: "operator_edit";
1805
+ import: "import";
1806
+ system_sync: "system_sync";
1807
+ episode_close: "episode_close";
1808
+ scenario_seed: "scenario_seed";
1809
+ }>;
1810
+ createdAt: z.ZodString;
1811
+ updatedAt: z.ZodString;
1812
+ }, z.core.$strip>>;
1813
+ orderHistory: z.ZodArray<z.ZodObject<{
1814
+ orderId: z.ZodString;
1815
+ title: z.ZodString;
1816
+ status: z.ZodEnum<{
1817
+ draft: "draft";
1818
+ paid: "paid";
1819
+ fulfilled: "fulfilled";
1820
+ cancelled: "cancelled";
1821
+ }>;
1822
+ occurredAt: z.ZodString;
1823
+ totalLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1824
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1825
+ }, z.core.$strip>>;
1826
+ timeline: z.ZodArray<z.ZodObject<{
1827
+ eventId: z.ZodString;
1828
+ customerId: z.ZodString;
1829
+ eventType: z.ZodString;
1830
+ title: z.ZodString;
1831
+ occurredAt: z.ZodString;
1832
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1833
+ }, z.core.$strip>>;
1834
+ memoryUpdates: z.ZodArray<z.ZodObject<{
1835
+ updateId: z.ZodString;
1836
+ customerId: z.ZodString;
1837
+ target: z.ZodEnum<{
1838
+ summary: "summary";
1839
+ profile: "profile";
1840
+ commercial_profile: "commercial_profile";
1841
+ order_history: "order_history";
1842
+ }>;
1843
+ field: z.ZodString;
1844
+ actorType: z.ZodEnum<{
1845
+ operator: "operator";
1846
+ system: "system";
1847
+ runtime: "runtime";
1848
+ }>;
1849
+ source: z.ZodEnum<{
1850
+ conversation_turn: "conversation_turn";
1851
+ operator_edit: "operator_edit";
1852
+ import: "import";
1853
+ system_sync: "system_sync";
1854
+ episode_close: "episode_close";
1855
+ scenario_seed: "scenario_seed";
1856
+ }>;
1857
+ confidence: z.ZodNumber;
1858
+ action: z.ZodEnum<{
1859
+ applied: "applied";
1860
+ merged: "merged";
1861
+ rejected: "rejected";
1862
+ noop: "noop";
1863
+ }>;
1864
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1865
+ previousValue: z.ZodOptional<z.ZodUnknown>;
1866
+ nextValue: z.ZodOptional<z.ZodUnknown>;
1867
+ createdAt: z.ZodString;
1868
+ }, z.core.$strip>>;
1869
+ }, z.core.$strip>;
1870
+ commerceContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1871
+ catalog: z.ZodObject<{
1872
+ products: z.ZodArray<z.ZodObject<{
1873
+ productId: z.ZodString;
1874
+ code: z.ZodString;
1875
+ title: z.ZodString;
1876
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1877
+ kind: z.ZodEnum<{
1878
+ base: "base";
1879
+ option: "option";
1880
+ service: "service";
1881
+ bundle: "bundle";
1882
+ }>;
1883
+ status: z.ZodEnum<{
1884
+ active: "active";
1885
+ inactive: "inactive";
1886
+ }>;
1887
+ pricingModel: z.ZodEnum<{
1888
+ fixed: "fixed";
1889
+ per_unit: "per_unit";
1890
+ }>;
1891
+ currency: z.ZodString;
1892
+ baseUnitPrice: z.ZodNumber;
1893
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1894
+ createdAt: z.ZodString;
1895
+ updatedAt: z.ZodString;
1896
+ }, z.core.$strip>>;
1897
+ relations: z.ZodArray<z.ZodObject<{
1898
+ relationId: z.ZodString;
1899
+ fromProductId: z.ZodString;
1900
+ toProductId: z.ZodString;
1901
+ relationType: z.ZodEnum<{
1902
+ requires: "requires";
1903
+ excludes: "excludes";
1904
+ recommended_with: "recommended_with";
1905
+ default_for: "default_for";
1906
+ replaces: "replaces";
1907
+ can_attach_to: "can_attach_to";
1908
+ }>;
1909
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1910
+ createdAt: z.ZodString;
1911
+ }, z.core.$strip>>;
1912
+ }, z.core.$strip>;
1913
+ cart: z.ZodNullable<z.ZodObject<{
1914
+ cartId: z.ZodString;
1915
+ customerId: z.ZodString;
1916
+ conversationId: z.ZodNullable<z.ZodString>;
1917
+ dealId: z.ZodNullable<z.ZodString>;
1918
+ status: z.ZodEnum<{
1919
+ suggested: "suggested";
1920
+ discussing: "discussing";
1921
+ confirmed: "confirmed";
1922
+ converted: "converted";
1923
+ abandoned: "abandoned";
1924
+ }>;
1925
+ currency: z.ZodString;
1926
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1927
+ totals: z.ZodObject<{
1928
+ currency: z.ZodString;
1929
+ subtotal: z.ZodNumber;
1930
+ total: z.ZodNumber;
1931
+ itemCount: z.ZodNumber;
1932
+ }, z.core.$strip>;
1933
+ items: z.ZodArray<z.ZodObject<{
1934
+ cartItemId: z.ZodString;
1935
+ cartId: z.ZodString;
1936
+ catalogProductId: z.ZodString;
1937
+ parentItemId: z.ZodNullable<z.ZodString>;
1938
+ quantity: z.ZodNumber;
1939
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1940
+ status: z.ZodEnum<{
1941
+ active: "active";
1942
+ draft: "draft";
1943
+ removed: "removed";
1944
+ }>;
1945
+ pricingSnapshot: z.ZodObject<{
1946
+ currency: z.ZodString;
1947
+ unitPrice: z.ZodNumber;
1948
+ quantity: z.ZodNumber;
1949
+ totalPrice: z.ZodNumber;
1950
+ }, z.core.$strip>;
1951
+ createdAt: z.ZodString;
1952
+ updatedAt: z.ZodString;
1953
+ }, z.core.$strip>>;
1954
+ createdAt: z.ZodString;
1955
+ updatedAt: z.ZodString;
1956
+ }, z.core.$strip>>;
1957
+ deal: z.ZodNullable<z.ZodObject<{
1958
+ dealId: z.ZodString;
1959
+ customerId: z.ZodString;
1960
+ conversationId: z.ZodNullable<z.ZodString>;
1961
+ activeCartId: z.ZodString;
1962
+ status: z.ZodEnum<{
1963
+ draft: "draft";
1964
+ converted: "converted";
1965
+ abandoned: "abandoned";
1966
+ quoted: "quoted";
1967
+ ready_for_payment: "ready_for_payment";
1968
+ }>;
1969
+ blockers: z.ZodArray<z.ZodString>;
1970
+ nextStepHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1971
+ currentQuoteSnapshot: z.ZodNullable<z.ZodObject<{
1972
+ quoteId: z.ZodString;
1973
+ cartId: z.ZodString;
1974
+ currency: z.ZodString;
1975
+ totals: z.ZodObject<{
1976
+ currency: z.ZodString;
1977
+ subtotal: z.ZodNumber;
1978
+ total: z.ZodNumber;
1979
+ itemCount: z.ZodNumber;
1980
+ }, z.core.$strip>;
1981
+ valid: z.ZodBoolean;
1982
+ issues: z.ZodArray<z.ZodObject<{
1983
+ code: z.ZodEnum<{
1984
+ MISSING_REQUIRED: "MISSING_REQUIRED";
1985
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
1986
+ INVALID_PARENT: "INVALID_PARENT";
1987
+ MISSING_PRODUCT: "MISSING_PRODUCT";
1988
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
1989
+ EMPTY_CART: "EMPTY_CART";
1990
+ }>;
1991
+ message: z.ZodString;
1992
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1993
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1994
+ }, z.core.$strip>>;
1995
+ createdAt: z.ZodString;
1996
+ }, z.core.$strip>>;
1997
+ createdAt: z.ZodString;
1998
+ updatedAt: z.ZodString;
1999
+ }, z.core.$strip>>;
2000
+ orderSnapshots: z.ZodArray<z.ZodObject<{
2001
+ orderSnapshotId: z.ZodString;
2002
+ customerId: z.ZodString;
2003
+ dealId: z.ZodString;
2004
+ cartId: z.ZodString;
2005
+ title: z.ZodString;
2006
+ status: z.ZodEnum<{
2007
+ paid: "paid";
2008
+ fulfilled: "fulfilled";
2009
+ cancelled: "cancelled";
2010
+ confirmed: "confirmed";
2011
+ }>;
2012
+ currency: z.ZodString;
2013
+ totals: z.ZodObject<{
2014
+ currency: z.ZodString;
2015
+ subtotal: z.ZodNumber;
2016
+ total: z.ZodNumber;
2017
+ itemCount: z.ZodNumber;
2018
+ }, z.core.$strip>;
2019
+ items: z.ZodArray<z.ZodObject<{
2020
+ orderItemId: z.ZodString;
2021
+ catalogProductId: z.ZodString;
2022
+ productCode: z.ZodString;
2023
+ productTitle: z.ZodString;
2024
+ productKind: z.ZodEnum<{
2025
+ base: "base";
2026
+ option: "option";
2027
+ service: "service";
2028
+ bundle: "bundle";
2029
+ }>;
2030
+ parentItemId: z.ZodNullable<z.ZodString>;
2031
+ quantity: z.ZodNumber;
2032
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2033
+ pricingSnapshot: z.ZodObject<{
2034
+ currency: z.ZodString;
2035
+ unitPrice: z.ZodNumber;
2036
+ quantity: z.ZodNumber;
2037
+ totalPrice: z.ZodNumber;
2038
+ }, z.core.$strip>;
2039
+ }, z.core.$strip>>;
2040
+ sourceQuoteSnapshot: z.ZodObject<{
2041
+ quoteId: z.ZodString;
2042
+ cartId: z.ZodString;
2043
+ currency: z.ZodString;
2044
+ totals: z.ZodObject<{
2045
+ currency: z.ZodString;
2046
+ subtotal: z.ZodNumber;
2047
+ total: z.ZodNumber;
2048
+ itemCount: z.ZodNumber;
2049
+ }, z.core.$strip>;
2050
+ valid: z.ZodBoolean;
2051
+ issues: z.ZodArray<z.ZodObject<{
2052
+ code: z.ZodEnum<{
2053
+ MISSING_REQUIRED: "MISSING_REQUIRED";
2054
+ EXCLUDED_COMBINATION: "EXCLUDED_COMBINATION";
2055
+ INVALID_PARENT: "INVALID_PARENT";
2056
+ MISSING_PRODUCT: "MISSING_PRODUCT";
2057
+ CURRENCY_MISMATCH: "CURRENCY_MISMATCH";
2058
+ EMPTY_CART: "EMPTY_CART";
2059
+ }>;
2060
+ message: z.ZodString;
2061
+ cartItemId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2062
+ productId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2063
+ }, z.core.$strip>>;
2064
+ createdAt: z.ZodString;
2065
+ }, z.core.$strip>;
2066
+ createdAt: z.ZodString;
2067
+ }, z.core.$strip>>;
2068
+ }, z.core.$strip>>>;
2069
+ followUpTasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2070
+ taskId: z.ZodString;
2071
+ conversationId: z.ZodString;
2072
+ customerId: z.ZodString;
2073
+ dealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2074
+ cartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2075
+ ghostedClass: z.ZodEnum<{
2076
+ waiting_for_customer: "waiting_for_customer";
2077
+ waiting_for_assets: "waiting_for_assets";
2078
+ waiting_for_payment: "waiting_for_payment";
2079
+ waiting_for_partner_decision: "waiting_for_partner_decision";
2080
+ silent_dropoff: "silent_dropoff";
2081
+ operator_followup_needed: "operator_followup_needed";
2082
+ }>;
2083
+ taskKind: z.ZodEnum<{
2084
+ ai_reactivation: "ai_reactivation";
2085
+ operator_callback: "operator_callback";
2086
+ }>;
2087
+ status: z.ZodEnum<{
2088
+ completed: "completed";
2089
+ cancelled: "cancelled";
2090
+ pending: "pending";
2091
+ }>;
2092
+ policyAction: z.ZodEnum<{
2093
+ schedule_ai_reactivation: "schedule_ai_reactivation";
2094
+ schedule_operator_callback: "schedule_operator_callback";
2095
+ no_action: "no_action";
2096
+ }>;
2097
+ reason: z.ZodString;
2098
+ suggestedMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2099
+ dueAt: z.ZodString;
2100
+ lastEvaluatedAt: z.ZodString;
2101
+ createdBy: z.ZodObject<{
2102
+ actorType: z.ZodEnum<{
2103
+ operator: "operator";
2104
+ system: "system";
2105
+ scenario: "scenario";
2106
+ }>;
2107
+ operatorId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2108
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2109
+ }, z.core.$strip>;
2110
+ completionOutcome: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2111
+ cancelled: "cancelled";
2112
+ reactivated: "reactivated";
2113
+ completed_no_response: "completed_no_response";
2114
+ not_needed: "not_needed";
2115
+ }>>>;
2116
+ completionNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2117
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2118
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2119
+ createdAt: z.ZodString;
2120
+ updatedAt: z.ZodString;
2121
+ }, z.core.$strip>>>;
2122
+ linkedConversations: z.ZodArray<z.ZodObject<{
2123
+ conversationId: z.ZodString;
2124
+ channelKind: z.ZodEnum<{
2125
+ telegram: "telegram";
2126
+ telegram_business: "telegram_business";
2127
+ local_playground: "local_playground";
2128
+ web_chat: "web_chat";
2129
+ manual: "manual";
2130
+ }>;
2131
+ channelThreadRef: z.ZodString;
2132
+ status: z.ZodEnum<{
2133
+ active: "active";
2134
+ paused: "paused";
2135
+ handed_off: "handed_off";
2136
+ archived: "archived";
2137
+ }>;
2138
+ ownershipMode: z.ZodEnum<{
2139
+ ai: "ai";
2140
+ human: "human";
2141
+ hybrid: "hybrid";
2142
+ }>;
2143
+ updatedAt: z.ZodString;
2144
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2145
+ }, z.core.$strip>>;
2146
+ operatorNotes: z.ZodArray<z.ZodObject<{
2147
+ eventId: z.ZodString;
2148
+ conversationId: z.ZodString;
2149
+ note: z.ZodString;
2150
+ operatorId: z.ZodString;
2151
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2152
+ createdAt: z.ZodString;
2153
+ }, z.core.$strip>>;
2154
+ latestHandoff: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2155
+ eventId: z.ZodString;
2156
+ conversationId: z.ZodString;
2157
+ reason: z.ZodString;
2158
+ requestedBy: z.ZodObject<{
2159
+ operatorId: z.ZodString;
2160
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2161
+ }, z.core.$strip>;
2162
+ createdAt: z.ZodString;
2163
+ nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2164
+ human: "human";
2165
+ hybrid: "hybrid";
2166
+ }>>;
2167
+ }, z.core.$strip>>>;
2168
+ }, z.core.$strip>;
2169
+ export declare const opsSetOwnershipModeRequestSchema: z.ZodObject<{
2170
+ conversationId: z.ZodString;
2171
+ ownershipMode: z.ZodEnum<{
2172
+ ai: "ai";
2173
+ human: "human";
2174
+ hybrid: "hybrid";
2175
+ }>;
2176
+ requestedBy: z.ZodObject<{
2177
+ operatorId: z.ZodString;
2178
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2179
+ }, z.core.$strip>;
2180
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2181
+ }, z.core.$strip>;
2182
+ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2183
+ conversation: z.ZodObject<{
2184
+ conversationId: z.ZodString;
2185
+ customerId: z.ZodString;
2186
+ status: z.ZodEnum<{
2187
+ active: "active";
2188
+ paused: "paused";
2189
+ handed_off: "handed_off";
2190
+ archived: "archived";
2191
+ }>;
2192
+ channelKind: z.ZodEnum<{
2193
+ telegram: "telegram";
2194
+ telegram_business: "telegram_business";
2195
+ local_playground: "local_playground";
2196
+ web_chat: "web_chat";
2197
+ manual: "manual";
2198
+ }>;
2199
+ channelThreadRef: z.ZodString;
2200
+ ownershipMode: z.ZodEnum<{
2201
+ ai: "ai";
2202
+ human: "human";
2203
+ hybrid: "hybrid";
2204
+ }>;
2205
+ assistMode: z.ZodEnum<{
2206
+ off: "off";
2207
+ draft_only: "draft_only";
2208
+ review_only: "review_only";
2209
+ draft_and_review: "draft_and_review";
2210
+ }>;
2211
+ sendMode: z.ZodEnum<{
2212
+ operator_only: "operator_only";
2213
+ operator_approve: "operator_approve";
2214
+ ai_auto: "ai_auto";
2215
+ }>;
2216
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2217
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2218
+ currentSummaryId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2219
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2220
+ businessConnection: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2221
+ businessConnectionId: z.ZodString;
2222
+ businessAccountUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2223
+ userChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2224
+ canReply: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
2225
+ status: z.ZodDefault<z.ZodEnum<{
2226
+ active: "active";
2227
+ disabled: "disabled";
2228
+ }>>;
2229
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2230
+ updatedAt: z.ZodString;
2231
+ }, z.core.$strip>>>;
2232
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2233
+ createdAt: z.ZodString;
2234
+ updatedAt: z.ZodString;
2235
+ }, z.core.$strip>;
2236
+ event: z.ZodObject<{
2237
+ eventId: z.ZodString;
2238
+ conversationId: z.ZodString;
2239
+ eventType: z.ZodEnum<{
2240
+ "message.received": "message.received";
2241
+ "message.sent": "message.sent";
2242
+ "message.edited": "message.edited";
2243
+ "message.deleted": "message.deleted";
2244
+ "attachments.normalized": "attachments.normalized";
2245
+ "conversation.created": "conversation.created";
2246
+ "conversation.linked": "conversation.linked";
2247
+ "business.connection.updated": "business.connection.updated";
2248
+ "ownership.changed": "ownership.changed";
2249
+ "handoff.started": "handoff.started";
2250
+ "handoff.released": "handoff.released";
2251
+ "operator.note.added": "operator.note.added";
2252
+ "channel.outbound.skipped": "channel.outbound.skipped";
2253
+ "channel.outbound.sent": "channel.outbound.sent";
2254
+ "followup.classified": "followup.classified";
2255
+ "followup.task.scheduled": "followup.task.scheduled";
2256
+ "followup.task.completed": "followup.task.completed";
2257
+ "followup.task.cancelled": "followup.task.cancelled";
2258
+ "runtime.decision.recorded": "runtime.decision.recorded";
2259
+ "runtime.validation.blocked": "runtime.validation.blocked";
2260
+ "assist.draft.generated": "assist.draft.generated";
2261
+ "assist.review.generated": "assist.review.generated";
2262
+ }>;
2263
+ title: z.ZodString;
2264
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2265
+ ai: "ai";
2266
+ customer: "customer";
2267
+ operator: "operator";
2268
+ system: "system";
2269
+ }>>>;
2270
+ createdAt: z.ZodString;
2271
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2272
+ }, z.core.$strip>;
2273
+ feedItem: z.ZodObject<{
2274
+ conversationId: z.ZodString;
2275
+ customerId: z.ZodString;
2276
+ channelKind: z.ZodEnum<{
2277
+ telegram: "telegram";
2278
+ telegram_business: "telegram_business";
2279
+ local_playground: "local_playground";
2280
+ web_chat: "web_chat";
2281
+ manual: "manual";
2282
+ }>;
2283
+ channelThreadRef: z.ZodString;
2284
+ status: z.ZodEnum<{
2285
+ active: "active";
2286
+ paused: "paused";
2287
+ handed_off: "handed_off";
2288
+ archived: "archived";
2289
+ }>;
2290
+ ownershipMode: z.ZodEnum<{
2291
+ ai: "ai";
2292
+ human: "human";
2293
+ hybrid: "hybrid";
2294
+ }>;
2295
+ assistMode: z.ZodEnum<{
2296
+ off: "off";
2297
+ draft_only: "draft_only";
2298
+ review_only: "review_only";
2299
+ draft_and_review: "draft_and_review";
2300
+ }>;
2301
+ sendMode: z.ZodEnum<{
2302
+ operator_only: "operator_only";
2303
+ operator_approve: "operator_approve";
2304
+ ai_auto: "ai_auto";
2305
+ }>;
2306
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2307
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2308
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2309
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2310
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2311
+ ai: "ai";
2312
+ customer: "customer";
2313
+ operator: "operator";
2314
+ system: "system";
2315
+ }>>>;
2316
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2317
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2318
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
2319
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
2320
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
2321
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2322
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2323
+ waiting_for_customer: "waiting_for_customer";
2324
+ waiting_for_assets: "waiting_for_assets";
2325
+ waiting_for_payment: "waiting_for_payment";
2326
+ waiting_for_partner_decision: "waiting_for_partner_decision";
2327
+ silent_dropoff: "silent_dropoff";
2328
+ operator_followup_needed: "operator_followup_needed";
2329
+ }>>>;
2330
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2331
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2332
+ updatedAt: z.ZodString;
2333
+ }, z.core.$strip>;
2334
+ }, z.core.$strip>;
2335
+ export declare const opsStartHandoffRequestSchema: z.ZodObject<{
2336
+ conversationId: z.ZodString;
2337
+ reason: z.ZodString;
2338
+ requestedBy: z.ZodObject<{
2339
+ operatorId: z.ZodString;
2340
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2341
+ }, z.core.$strip>;
2342
+ nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2343
+ human: "human";
2344
+ hybrid: "hybrid";
2345
+ }>>;
2346
+ }, z.core.$strip>;
2347
+ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2348
+ conversation: z.ZodObject<{
2349
+ conversationId: z.ZodString;
2350
+ customerId: z.ZodString;
2351
+ status: z.ZodEnum<{
2352
+ active: "active";
2353
+ paused: "paused";
2354
+ handed_off: "handed_off";
2355
+ archived: "archived";
2356
+ }>;
2357
+ channelKind: z.ZodEnum<{
2358
+ telegram: "telegram";
2359
+ telegram_business: "telegram_business";
2360
+ local_playground: "local_playground";
2361
+ web_chat: "web_chat";
2362
+ manual: "manual";
2363
+ }>;
2364
+ channelThreadRef: z.ZodString;
2365
+ ownershipMode: z.ZodEnum<{
2366
+ ai: "ai";
2367
+ human: "human";
2368
+ hybrid: "hybrid";
2369
+ }>;
2370
+ assistMode: z.ZodEnum<{
2371
+ off: "off";
2372
+ draft_only: "draft_only";
2373
+ review_only: "review_only";
2374
+ draft_and_review: "draft_and_review";
2375
+ }>;
2376
+ sendMode: z.ZodEnum<{
2377
+ operator_only: "operator_only";
2378
+ operator_approve: "operator_approve";
2379
+ ai_auto: "ai_auto";
2380
+ }>;
2381
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2382
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2383
+ currentSummaryId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2384
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2385
+ businessConnection: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2386
+ businessConnectionId: z.ZodString;
2387
+ businessAccountUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2388
+ userChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2389
+ canReply: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
2390
+ status: z.ZodDefault<z.ZodEnum<{
2391
+ active: "active";
2392
+ disabled: "disabled";
2393
+ }>>;
2394
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2395
+ updatedAt: z.ZodString;
2396
+ }, z.core.$strip>>>;
2397
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2398
+ createdAt: z.ZodString;
2399
+ updatedAt: z.ZodString;
2400
+ }, z.core.$strip>;
2401
+ handoff: z.ZodObject<{
2402
+ eventId: z.ZodString;
2403
+ conversationId: z.ZodString;
2404
+ reason: z.ZodString;
2405
+ requestedBy: z.ZodObject<{
2406
+ operatorId: z.ZodString;
2407
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2408
+ }, z.core.$strip>;
2409
+ createdAt: z.ZodString;
2410
+ nextOwnershipMode: z.ZodDefault<z.ZodEnum<{
2411
+ human: "human";
2412
+ hybrid: "hybrid";
2413
+ }>>;
2414
+ }, z.core.$strip>;
2415
+ ownershipEvent: z.ZodObject<{
2416
+ eventId: z.ZodString;
2417
+ conversationId: z.ZodString;
2418
+ eventType: z.ZodEnum<{
2419
+ "message.received": "message.received";
2420
+ "message.sent": "message.sent";
2421
+ "message.edited": "message.edited";
2422
+ "message.deleted": "message.deleted";
2423
+ "attachments.normalized": "attachments.normalized";
2424
+ "conversation.created": "conversation.created";
2425
+ "conversation.linked": "conversation.linked";
2426
+ "business.connection.updated": "business.connection.updated";
2427
+ "ownership.changed": "ownership.changed";
2428
+ "handoff.started": "handoff.started";
2429
+ "handoff.released": "handoff.released";
2430
+ "operator.note.added": "operator.note.added";
2431
+ "channel.outbound.skipped": "channel.outbound.skipped";
2432
+ "channel.outbound.sent": "channel.outbound.sent";
2433
+ "followup.classified": "followup.classified";
2434
+ "followup.task.scheduled": "followup.task.scheduled";
2435
+ "followup.task.completed": "followup.task.completed";
2436
+ "followup.task.cancelled": "followup.task.cancelled";
2437
+ "runtime.decision.recorded": "runtime.decision.recorded";
2438
+ "runtime.validation.blocked": "runtime.validation.blocked";
2439
+ "assist.draft.generated": "assist.draft.generated";
2440
+ "assist.review.generated": "assist.review.generated";
2441
+ }>;
2442
+ title: z.ZodString;
2443
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2444
+ ai: "ai";
2445
+ customer: "customer";
2446
+ operator: "operator";
2447
+ system: "system";
2448
+ }>>>;
2449
+ createdAt: z.ZodString;
2450
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2451
+ }, z.core.$strip>;
2452
+ feedItem: z.ZodObject<{
2453
+ conversationId: z.ZodString;
2454
+ customerId: z.ZodString;
2455
+ channelKind: z.ZodEnum<{
2456
+ telegram: "telegram";
2457
+ telegram_business: "telegram_business";
2458
+ local_playground: "local_playground";
2459
+ web_chat: "web_chat";
2460
+ manual: "manual";
2461
+ }>;
2462
+ channelThreadRef: z.ZodString;
2463
+ status: z.ZodEnum<{
2464
+ active: "active";
2465
+ paused: "paused";
2466
+ handed_off: "handed_off";
2467
+ archived: "archived";
2468
+ }>;
2469
+ ownershipMode: z.ZodEnum<{
2470
+ ai: "ai";
2471
+ human: "human";
2472
+ hybrid: "hybrid";
2473
+ }>;
2474
+ assistMode: z.ZodEnum<{
2475
+ off: "off";
2476
+ draft_only: "draft_only";
2477
+ review_only: "review_only";
2478
+ draft_and_review: "draft_and_review";
2479
+ }>;
2480
+ sendMode: z.ZodEnum<{
2481
+ operator_only: "operator_only";
2482
+ operator_approve: "operator_approve";
2483
+ ai_auto: "ai_auto";
2484
+ }>;
2485
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2486
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2487
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2488
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2489
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2490
+ ai: "ai";
2491
+ customer: "customer";
2492
+ operator: "operator";
2493
+ system: "system";
2494
+ }>>>;
2495
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2496
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2497
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
2498
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
2499
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
2500
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2501
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2502
+ waiting_for_customer: "waiting_for_customer";
2503
+ waiting_for_assets: "waiting_for_assets";
2504
+ waiting_for_payment: "waiting_for_payment";
2505
+ waiting_for_partner_decision: "waiting_for_partner_decision";
2506
+ silent_dropoff: "silent_dropoff";
2507
+ operator_followup_needed: "operator_followup_needed";
2508
+ }>>>;
2509
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2510
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2511
+ updatedAt: z.ZodString;
2512
+ }, z.core.$strip>;
2513
+ }, z.core.$strip>;
2514
+ export declare const opsAddOperatorNoteRequestSchema: z.ZodObject<{
2515
+ conversationId: z.ZodString;
2516
+ note: z.ZodString;
2517
+ operator: z.ZodObject<{
2518
+ operatorId: z.ZodString;
2519
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2520
+ }, z.core.$strip>;
2521
+ }, z.core.$strip>;
2522
+ export declare const opsAddOperatorNoteResponseSchema: z.ZodObject<{
2523
+ note: z.ZodObject<{
2524
+ eventId: z.ZodString;
2525
+ conversationId: z.ZodString;
2526
+ note: z.ZodString;
2527
+ operatorId: z.ZodString;
2528
+ operatorDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2529
+ createdAt: z.ZodString;
2530
+ }, z.core.$strip>;
2531
+ feedItem: z.ZodObject<{
2532
+ conversationId: z.ZodString;
2533
+ customerId: z.ZodString;
2534
+ channelKind: z.ZodEnum<{
2535
+ telegram: "telegram";
2536
+ telegram_business: "telegram_business";
2537
+ local_playground: "local_playground";
2538
+ web_chat: "web_chat";
2539
+ manual: "manual";
2540
+ }>;
2541
+ channelThreadRef: z.ZodString;
2542
+ status: z.ZodEnum<{
2543
+ active: "active";
2544
+ paused: "paused";
2545
+ handed_off: "handed_off";
2546
+ archived: "archived";
2547
+ }>;
2548
+ ownershipMode: z.ZodEnum<{
2549
+ ai: "ai";
2550
+ human: "human";
2551
+ hybrid: "hybrid";
2552
+ }>;
2553
+ assistMode: z.ZodEnum<{
2554
+ off: "off";
2555
+ draft_only: "draft_only";
2556
+ review_only: "review_only";
2557
+ draft_and_review: "draft_and_review";
2558
+ }>;
2559
+ sendMode: z.ZodEnum<{
2560
+ operator_only: "operator_only";
2561
+ operator_approve: "operator_approve";
2562
+ ai_auto: "ai_auto";
2563
+ }>;
2564
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2565
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2566
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2567
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2568
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2569
+ ai: "ai";
2570
+ customer: "customer";
2571
+ operator: "operator";
2572
+ system: "system";
2573
+ }>>>;
2574
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2575
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2576
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
2577
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
2578
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
2579
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2580
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2581
+ waiting_for_customer: "waiting_for_customer";
2582
+ waiting_for_assets: "waiting_for_assets";
2583
+ waiting_for_payment: "waiting_for_payment";
2584
+ waiting_for_partner_decision: "waiting_for_partner_decision";
2585
+ silent_dropoff: "silent_dropoff";
2586
+ operator_followup_needed: "operator_followup_needed";
2587
+ }>>>;
2588
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2589
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2590
+ updatedAt: z.ZodString;
2591
+ }, z.core.$strip>;
2592
+ }, z.core.$strip>;
2593
+ export declare const opsSendOperatorMessageRequestSchema: z.ZodObject<{
2594
+ conversationId: z.ZodString;
2595
+ text: z.ZodString;
2596
+ operator: z.ZodObject<{
2597
+ operatorId: z.ZodString;
2598
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2599
+ }, z.core.$strip>;
2600
+ }, z.core.$strip>;
2601
+ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2602
+ conversationContext: z.ZodObject<{
2603
+ conversation: z.ZodObject<{
2604
+ conversationId: z.ZodString;
2605
+ customerId: z.ZodString;
2606
+ status: z.ZodEnum<{
2607
+ active: "active";
2608
+ paused: "paused";
2609
+ handed_off: "handed_off";
2610
+ archived: "archived";
2611
+ }>;
2612
+ channelKind: z.ZodEnum<{
2613
+ telegram: "telegram";
2614
+ telegram_business: "telegram_business";
2615
+ local_playground: "local_playground";
2616
+ web_chat: "web_chat";
2617
+ manual: "manual";
2618
+ }>;
2619
+ channelThreadRef: z.ZodString;
2620
+ ownershipMode: z.ZodEnum<{
2621
+ ai: "ai";
2622
+ human: "human";
2623
+ hybrid: "hybrid";
2624
+ }>;
2625
+ assistMode: z.ZodEnum<{
2626
+ off: "off";
2627
+ draft_only: "draft_only";
2628
+ review_only: "review_only";
2629
+ draft_and_review: "draft_and_review";
2630
+ }>;
2631
+ sendMode: z.ZodEnum<{
2632
+ operator_only: "operator_only";
2633
+ operator_approve: "operator_approve";
2634
+ ai_auto: "ai_auto";
2635
+ }>;
2636
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2637
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2638
+ currentSummaryId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2639
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2640
+ businessConnection: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2641
+ businessConnectionId: z.ZodString;
2642
+ businessAccountUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2643
+ userChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2644
+ canReply: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
2645
+ status: z.ZodDefault<z.ZodEnum<{
2646
+ active: "active";
2647
+ disabled: "disabled";
2648
+ }>>;
2649
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2650
+ updatedAt: z.ZodString;
2651
+ }, z.core.$strip>>>;
2652
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2653
+ createdAt: z.ZodString;
2654
+ updatedAt: z.ZodString;
2655
+ }, z.core.$strip>;
2656
+ messages: z.ZodArray<z.ZodObject<{
2657
+ messageId: z.ZodString;
2658
+ conversationId: z.ZodString;
2659
+ authorKind: z.ZodEnum<{
2660
+ ai: "ai";
2661
+ customer: "customer";
2662
+ operator: "operator";
2663
+ system: "system";
2664
+ }>;
2665
+ deliveryKind: z.ZodEnum<{
2666
+ inbound: "inbound";
2667
+ outbound: "outbound";
2668
+ }>;
2669
+ channelMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2670
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2671
+ attachments: z.ZodArray<z.ZodObject<{
2672
+ attachmentId: z.ZodString;
2673
+ conversationId: z.ZodString;
2674
+ messageId: z.ZodString;
2675
+ kind: z.ZodEnum<{
2676
+ photo: "photo";
2677
+ document: "document";
2678
+ audio: "audio";
2679
+ video: "video";
2680
+ other: "other";
2681
+ }>;
2682
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2683
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2684
+ storageRef: z.ZodString;
2685
+ sourceRef: z.ZodString;
2686
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2687
+ createdAt: z.ZodString;
2688
+ }, z.core.$strip>>;
2689
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2690
+ createdAt: z.ZodString;
2691
+ }, z.core.$strip>>;
2692
+ events: z.ZodArray<z.ZodObject<{
2693
+ eventId: z.ZodString;
2694
+ conversationId: z.ZodString;
2695
+ eventType: z.ZodEnum<{
2696
+ "message.received": "message.received";
2697
+ "message.sent": "message.sent";
2698
+ "message.edited": "message.edited";
2699
+ "message.deleted": "message.deleted";
2700
+ "attachments.normalized": "attachments.normalized";
2701
+ "conversation.created": "conversation.created";
2702
+ "conversation.linked": "conversation.linked";
2703
+ "business.connection.updated": "business.connection.updated";
2704
+ "ownership.changed": "ownership.changed";
2705
+ "handoff.started": "handoff.started";
2706
+ "handoff.released": "handoff.released";
2707
+ "operator.note.added": "operator.note.added";
2708
+ "channel.outbound.skipped": "channel.outbound.skipped";
2709
+ "channel.outbound.sent": "channel.outbound.sent";
2710
+ "followup.classified": "followup.classified";
2711
+ "followup.task.scheduled": "followup.task.scheduled";
2712
+ "followup.task.completed": "followup.task.completed";
2713
+ "followup.task.cancelled": "followup.task.cancelled";
2714
+ "runtime.decision.recorded": "runtime.decision.recorded";
2715
+ "runtime.validation.blocked": "runtime.validation.blocked";
2716
+ "assist.draft.generated": "assist.draft.generated";
2717
+ "assist.review.generated": "assist.review.generated";
2718
+ }>;
2719
+ title: z.ZodString;
2720
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2721
+ ai: "ai";
2722
+ customer: "customer";
2723
+ operator: "operator";
2724
+ system: "system";
2725
+ }>>>;
2726
+ createdAt: z.ZodString;
2727
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2728
+ }, z.core.$strip>>;
2729
+ timeline: z.ZodArray<z.ZodObject<{
2730
+ entryId: z.ZodString;
2731
+ conversationId: z.ZodString;
2732
+ entryKind: z.ZodEnum<{
2733
+ message: "message";
2734
+ event: "event";
2735
+ }>;
2736
+ occurredAt: z.ZodString;
2737
+ title: z.ZodString;
2738
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2739
+ ai: "ai";
2740
+ customer: "customer";
2741
+ operator: "operator";
2742
+ system: "system";
2743
+ }>>>;
2744
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2745
+ messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2746
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2747
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2748
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2749
+ }, z.core.$strip>>;
2750
+ assistArtifacts: z.ZodArray<z.ZodObject<{
2751
+ artifactId: z.ZodString;
2752
+ conversationId: z.ZodString;
2753
+ targetEntityKind: z.ZodEnum<{
2754
+ message: "message";
2755
+ assist_artifact: "assist_artifact";
2756
+ }>;
2757
+ targetEntityId: z.ZodString;
2758
+ kind: z.ZodEnum<{
2759
+ reply_draft: "reply_draft";
2760
+ message_review: "message_review";
2761
+ }>;
2762
+ status: z.ZodEnum<{
2763
+ accepted: "accepted";
2764
+ active: "active";
2765
+ viewed: "viewed";
2766
+ dismissed: "dismissed";
2767
+ superseded: "superseded";
2768
+ }>;
2769
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2770
+ outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2771
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2772
+ provider: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2773
+ modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2774
+ promptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2775
+ promptVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2776
+ promptHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2777
+ attemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2778
+ createdAt: z.ZodString;
2779
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2780
+ }, z.core.$strip>>;
2781
+ decisionTraces: z.ZodDefault<z.ZodArray<z.ZodObject<{
2782
+ traceId: z.ZodString;
2783
+ conversationId: z.ZodString;
2784
+ sourceMessageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2785
+ mode: z.ZodEnum<{
2786
+ reply: "reply";
2787
+ draft: "draft";
2788
+ review: "review";
2789
+ }>;
2790
+ status: z.ZodEnum<{
2791
+ applied: "applied";
2792
+ blocked: "blocked";
2793
+ }>;
2794
+ generationMode: z.ZodEnum<{
2795
+ heuristic: "heuristic";
2796
+ model: "model";
2797
+ }>;
2798
+ provider: z.ZodString;
2799
+ modelId: z.ZodString;
2800
+ promptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2801
+ promptVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2802
+ promptHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2803
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2804
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2805
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2806
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2807
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2808
+ }, z.core.$strip>>>;
2809
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2810
+ attemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2811
+ priorAttemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2812
+ selectedStrategyId: z.ZodString;
2813
+ candidateStrategyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2814
+ retrievedDocs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2815
+ docId: z.ZodString;
2816
+ kind: z.ZodEnum<{
2817
+ strategy: "strategy";
2818
+ product: "product";
2819
+ policy: "policy";
2820
+ example: "example";
2821
+ }>;
2822
+ title: z.ZodString;
2823
+ score: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2824
+ }, z.core.$strip>>>;
2825
+ decisionEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2826
+ reply: z.ZodObject<{
2827
+ text: z.ZodString;
2828
+ tone: z.ZodDefault<z.ZodEnum<{
2829
+ concise: "concise";
2830
+ standard: "standard";
2831
+ }>>;
2832
+ channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
2833
+ }, z.core.$strip>;
2834
+ classification: z.ZodObject<{
2835
+ primaryIntent: z.ZodString;
2836
+ secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2837
+ readiness: z.ZodEnum<{
2838
+ low: "low";
2839
+ medium: "medium";
2840
+ high: "high";
2841
+ }>;
2842
+ emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2843
+ confidence: z.ZodNumber;
2844
+ riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2845
+ }, z.core.$strip>;
2846
+ strategy: z.ZodObject<{
2847
+ selectedId: z.ZodString;
2848
+ candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2849
+ rationaleSummary: z.ZodString;
2850
+ forbiddenMoves: z.ZodDefault<z.ZodArray<z.ZodString>>;
2851
+ }, z.core.$strip>;
2852
+ statePatch: z.ZodDefault<z.ZodObject<{
2853
+ conversation: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2854
+ commercial: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2855
+ memory: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2856
+ }, z.core.$strip>>;
2857
+ cartPatch: z.ZodOptional<z.ZodObject<{
2858
+ operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
2859
+ type: z.ZodEnum<{
2860
+ ensure_base_product: "ensure_base_product";
2861
+ attach_product: "attach_product";
2862
+ }>;
2863
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2864
+ }, z.core.$strip>>>;
2865
+ }, z.core.$strip>>;
2866
+ actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2867
+ type: z.ZodEnum<{
2868
+ none: "none";
2869
+ "commerce.create_cart": "commerce.create_cart";
2870
+ "commerce.sync_cart": "commerce.sync_cart";
2871
+ "commerce.quote_deal": "commerce.quote_deal";
2872
+ "handoff.request": "handoff.request";
2873
+ "followup.schedule": "followup.schedule";
2874
+ }>;
2875
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2876
+ }, z.core.$strip>>>;
2877
+ followUp: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2878
+ needed: z.ZodBoolean;
2879
+ class: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2880
+ suggestedDelayMinutes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2881
+ }, z.core.$strip>>>;
2882
+ handoff: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2883
+ needed: z.ZodBoolean;
2884
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2885
+ priority: z.ZodDefault<z.ZodEnum<{
2886
+ normal: "normal";
2887
+ urgent: "urgent";
2888
+ }>>;
2889
+ }, z.core.$strip>>>;
2890
+ }, z.core.$strip>>>;
2891
+ turnAnalysis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2892
+ output: z.ZodObject<{
2893
+ classification: z.ZodObject<{
2894
+ primaryIntent: z.ZodString;
2895
+ secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2896
+ readiness: z.ZodEnum<{
2897
+ low: "low";
2898
+ medium: "medium";
2899
+ high: "high";
2900
+ }>;
2901
+ emotion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2902
+ confidence: z.ZodNumber;
2903
+ riskFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2904
+ }, z.core.$strip>;
2905
+ strategy: z.ZodObject<{
2906
+ selectedId: z.ZodString;
2907
+ candidateIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2908
+ rationaleSummary: z.ZodString;
2909
+ }, z.core.$strip>;
2910
+ customerGoal: z.ZodString;
2911
+ relevantProductCodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2912
+ relevantPolicyIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2913
+ missingFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
2914
+ handoffSuggested: z.ZodObject<{
2915
+ needed: z.ZodBoolean;
2916
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2917
+ priority: z.ZodDefault<z.ZodEnum<{
2918
+ normal: "normal";
2919
+ urgent: "urgent";
2920
+ }>>;
2921
+ }, z.core.$strip>;
2922
+ replyGoal: z.ZodString;
2923
+ }, z.core.$strip>;
2924
+ promptMeta: z.ZodObject<{
2925
+ promptId: z.ZodString;
2926
+ family: z.ZodString;
2927
+ stage: z.ZodString;
2928
+ semanticVersion: z.ZodString;
2929
+ renderedHash: z.ZodString;
2930
+ }, z.core.$strip>;
2931
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2932
+ generationMode: z.ZodEnum<{
2933
+ heuristic: "heuristic";
2934
+ model: "model";
2935
+ }>;
2936
+ }, z.core.$strip>>>;
2937
+ decisionStage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2938
+ promptMeta: z.ZodObject<{
2939
+ promptId: z.ZodString;
2940
+ family: z.ZodString;
2941
+ stage: z.ZodString;
2942
+ semanticVersion: z.ZodString;
2943
+ renderedHash: z.ZodString;
2944
+ }, z.core.$strip>;
2945
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2946
+ generationMode: z.ZodEnum<{
2947
+ heuristic: "heuristic";
2948
+ model: "model";
2949
+ }>;
2950
+ }, z.core.$strip>>>;
2951
+ generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2952
+ stage: z.ZodEnum<{
2953
+ turn_analyze: "turn_analyze";
2954
+ turn_decide: "turn_decide";
2955
+ review_artifact: "review_artifact";
2956
+ review_message: "review_message";
2957
+ }>;
2958
+ attemptNumber: z.ZodNumber;
2959
+ attemptKind: z.ZodEnum<{
2960
+ initial: "initial";
2961
+ corrective_retry: "corrective_retry";
2962
+ }>;
2963
+ status: z.ZodEnum<{
2964
+ succeeded: "succeeded";
2965
+ failed: "failed";
2966
+ }>;
2967
+ promptMeta: z.ZodObject<{
2968
+ promptId: z.ZodString;
2969
+ family: z.ZodString;
2970
+ stage: z.ZodString;
2971
+ semanticVersion: z.ZodString;
2972
+ renderedHash: z.ZodString;
2973
+ }, z.core.$strip>;
2974
+ provider: z.ZodString;
2975
+ modelId: z.ZodString;
2976
+ finishReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2977
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2978
+ inputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2979
+ outputTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2980
+ totalTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2981
+ }, z.core.$strip>>>;
2982
+ latencyMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2983
+ retryContext: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2984
+ priorAttemptNumber: z.ZodNumber;
2985
+ errorSummary: z.ZodString;
2986
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2987
+ }, z.core.$strip>>>;
2988
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
2989
+ errorSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2990
+ }, z.core.$strip>>>;
2991
+ historyPacking: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2992
+ rawCharacterBudget: z.ZodNumber;
2993
+ recentRawCharacterCount: z.ZodNumber;
2994
+ overflowCharacterCount: z.ZodNumber;
2995
+ segmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2996
+ summaryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2997
+ }, z.core.$strip>>>;
2998
+ reviewOutput: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
2999
+ validationIssues: z.ZodDefault<z.ZodArray<z.ZodString>>;
3000
+ actionOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
3001
+ actionType: z.ZodEnum<{
3002
+ none: "none";
3003
+ "commerce.create_cart": "commerce.create_cart";
3004
+ "commerce.sync_cart": "commerce.sync_cart";
3005
+ "commerce.quote_deal": "commerce.quote_deal";
3006
+ "handoff.request": "handoff.request";
3007
+ "followup.schedule": "followup.schedule";
3008
+ }>;
3009
+ status: z.ZodEnum<{
3010
+ skipped: "skipped";
3011
+ blocked: "blocked";
3012
+ executed: "executed";
3013
+ }>;
3014
+ summary: z.ZodString;
3015
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3016
+ }, z.core.$strip>>>;
3017
+ createdAt: z.ZodString;
3018
+ }, z.core.$strip>>>;
3019
+ }, z.core.$strip>;
3020
+ inboundMessageId: z.ZodString;
3021
+ generatedEvents: z.ZodArray<z.ZodObject<{
3022
+ eventId: z.ZodString;
3023
+ conversationId: z.ZodString;
3024
+ eventType: z.ZodEnum<{
3025
+ "message.received": "message.received";
3026
+ "message.sent": "message.sent";
3027
+ "message.edited": "message.edited";
3028
+ "message.deleted": "message.deleted";
3029
+ "attachments.normalized": "attachments.normalized";
3030
+ "conversation.created": "conversation.created";
3031
+ "conversation.linked": "conversation.linked";
3032
+ "business.connection.updated": "business.connection.updated";
3033
+ "ownership.changed": "ownership.changed";
3034
+ "handoff.started": "handoff.started";
3035
+ "handoff.released": "handoff.released";
3036
+ "operator.note.added": "operator.note.added";
3037
+ "channel.outbound.skipped": "channel.outbound.skipped";
3038
+ "channel.outbound.sent": "channel.outbound.sent";
3039
+ "followup.classified": "followup.classified";
3040
+ "followup.task.scheduled": "followup.task.scheduled";
3041
+ "followup.task.completed": "followup.task.completed";
3042
+ "followup.task.cancelled": "followup.task.cancelled";
3043
+ "runtime.decision.recorded": "runtime.decision.recorded";
3044
+ "runtime.validation.blocked": "runtime.validation.blocked";
3045
+ "assist.draft.generated": "assist.draft.generated";
3046
+ "assist.review.generated": "assist.review.generated";
3047
+ }>;
3048
+ title: z.ZodString;
3049
+ actorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3050
+ ai: "ai";
3051
+ customer: "customer";
3052
+ operator: "operator";
3053
+ system: "system";
3054
+ }>>>;
3055
+ createdAt: z.ZodString;
3056
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3057
+ }, z.core.$strip>>;
3058
+ assistArtifacts: z.ZodArray<z.ZodObject<{
3059
+ artifactId: z.ZodString;
3060
+ conversationId: z.ZodString;
3061
+ targetEntityKind: z.ZodEnum<{
3062
+ message: "message";
3063
+ assist_artifact: "assist_artifact";
3064
+ }>;
3065
+ targetEntityId: z.ZodString;
3066
+ kind: z.ZodEnum<{
3067
+ reply_draft: "reply_draft";
3068
+ message_review: "message_review";
3069
+ }>;
3070
+ status: z.ZodEnum<{
3071
+ accepted: "accepted";
3072
+ active: "active";
3073
+ viewed: "viewed";
3074
+ dismissed: "dismissed";
3075
+ superseded: "superseded";
3076
+ }>;
3077
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3078
+ outputJson: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3079
+ traceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3080
+ provider: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3081
+ modelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3082
+ promptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3083
+ promptVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3084
+ promptHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3085
+ attemptNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3086
+ createdAt: z.ZodString;
3087
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3088
+ }, z.core.$strip>>;
3089
+ outboundDispatches: z.ZodArray<z.ZodObject<{
3090
+ messageId: z.ZodString;
3091
+ channelKind: z.ZodEnum<{
3092
+ telegram: "telegram";
3093
+ telegram_business: "telegram_business";
3094
+ local_playground: "local_playground";
3095
+ web_chat: "web_chat";
3096
+ manual: "manual";
3097
+ }>;
3098
+ deliveryStatus: z.ZodEnum<{
3099
+ simulated: "simulated";
3100
+ skipped: "skipped";
3101
+ sent: "sent";
3102
+ }>;
3103
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3104
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3105
+ }, z.core.$strip>>;
3106
+ feedItem: z.ZodObject<{
3107
+ conversationId: z.ZodString;
3108
+ customerId: z.ZodString;
3109
+ channelKind: z.ZodEnum<{
3110
+ telegram: "telegram";
3111
+ telegram_business: "telegram_business";
3112
+ local_playground: "local_playground";
3113
+ web_chat: "web_chat";
3114
+ manual: "manual";
3115
+ }>;
3116
+ channelThreadRef: z.ZodString;
3117
+ status: z.ZodEnum<{
3118
+ active: "active";
3119
+ paused: "paused";
3120
+ handed_off: "handed_off";
3121
+ archived: "archived";
3122
+ }>;
3123
+ ownershipMode: z.ZodEnum<{
3124
+ ai: "ai";
3125
+ human: "human";
3126
+ hybrid: "hybrid";
3127
+ }>;
3128
+ assistMode: z.ZodEnum<{
3129
+ off: "off";
3130
+ draft_only: "draft_only";
3131
+ review_only: "review_only";
3132
+ draft_and_review: "draft_and_review";
3133
+ }>;
3134
+ sendMode: z.ZodEnum<{
3135
+ operator_only: "operator_only";
3136
+ operator_approve: "operator_approve";
3137
+ ai_auto: "ai_auto";
3138
+ }>;
3139
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3140
+ customerDisplayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3141
+ latestMessagePreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3142
+ latestMessageAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3143
+ latestActorKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3144
+ ai: "ai";
3145
+ customer: "customer";
3146
+ operator: "operator";
3147
+ system: "system";
3148
+ }>>>;
3149
+ latestEventTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3150
+ summaryText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3151
+ activeDraftCount: z.ZodDefault<z.ZodNumber>;
3152
+ activeReviewCount: z.ZodDefault<z.ZodNumber>;
3153
+ activeFollowUpTaskCount: z.ZodDefault<z.ZodNumber>;
3154
+ nextFollowUpDueAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3155
+ activeGhostedClass: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3156
+ waiting_for_customer: "waiting_for_customer";
3157
+ waiting_for_assets: "waiting_for_assets";
3158
+ waiting_for_payment: "waiting_for_payment";
3159
+ waiting_for_partner_decision: "waiting_for_partner_decision";
3160
+ silent_dropoff: "silent_dropoff";
3161
+ operator_followup_needed: "operator_followup_needed";
3162
+ }>>>;
3163
+ activeDealId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3164
+ activeCartId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3165
+ updatedAt: z.ZodString;
3166
+ }, z.core.$strip>;
3167
+ }, z.core.$strip>;
3168
+ export declare const opsGetReadinessRequestSchema: z.ZodObject<{
3169
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3170
+ }, z.core.$strip>;
3171
+ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3172
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3173
+ generatedAt: z.ZodString;
3174
+ status: z.ZodEnum<{
3175
+ unknown: "unknown";
3176
+ pass: "pass";
3177
+ warn: "warn";
3178
+ fail: "fail";
3179
+ }>;
3180
+ stale: z.ZodBoolean;
3181
+ counts: z.ZodObject<{
3182
+ total: z.ZodNumber;
3183
+ pass: z.ZodNumber;
3184
+ warn: z.ZodNumber;
3185
+ fail: z.ZodNumber;
3186
+ unknown: z.ZodNumber;
3187
+ stale: z.ZodNumber;
3188
+ }, z.core.$strip>;
3189
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
3190
+ snapshotId: z.ZodString;
3191
+ entityKind: z.ZodEnum<{
3192
+ telegram_integration: "telegram_integration";
3193
+ telegram_business_account: "telegram_business_account";
3194
+ telegram_employee_binding: "telegram_employee_binding";
3195
+ runtime_provider: "runtime_provider";
3196
+ runtime_routing: "runtime_routing";
3197
+ }>;
3198
+ entityId: z.ZodString;
3199
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3200
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3201
+ status: z.ZodEnum<{
3202
+ unknown: "unknown";
3203
+ pass: "pass";
3204
+ warn: "warn";
3205
+ fail: "fail";
3206
+ }>;
3207
+ summary: z.ZodString;
3208
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3209
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3210
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
3211
+ code: z.ZodString;
3212
+ severity: z.ZodEnum<{
3213
+ warn: "warn";
3214
+ fail: "fail";
3215
+ }>;
3216
+ field: z.ZodString;
3217
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3218
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3219
+ message: z.ZodString;
3220
+ }, z.core.$strip>>>;
3221
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3222
+ checkedAt: z.ZodString;
3223
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3224
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3225
+ stale: z.ZodDefault<z.ZodBoolean>;
3226
+ sourceKind: z.ZodEnum<{
3227
+ startup_probe: "startup_probe";
3228
+ manual_refresh: "manual_refresh";
3229
+ scheduled_reconcile: "scheduled_reconcile";
3230
+ migration_backfill: "migration_backfill";
3231
+ }>;
3232
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3233
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3234
+ createdAt: z.ZodString;
3235
+ updatedAt: z.ZodString;
3236
+ }, z.core.$strip>>>;
3237
+ schema: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3238
+ storageMode: z.ZodEnum<{
3239
+ postgres: "postgres";
3240
+ in_memory: "in_memory";
3241
+ }>;
3242
+ applyMode: z.ZodEnum<{
3243
+ real: "real";
3244
+ simulated: "simulated";
3245
+ }>;
3246
+ environment: z.ZodString;
3247
+ migrationRoot: z.ZodString;
3248
+ ledgerAdopted: z.ZodBoolean;
3249
+ legacyStartupSchemaSupport: z.ZodBoolean;
3250
+ status: z.ZodEnum<{
3251
+ unknown: "unknown";
3252
+ pass: "pass";
3253
+ warn: "warn";
3254
+ fail: "fail";
3255
+ }>;
3256
+ summary: z.ZodString;
3257
+ checkedAt: z.ZodString;
3258
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3259
+ migrationId: z.ZodString;
3260
+ description: z.ZodString;
3261
+ checksum: z.ZodString;
3262
+ relativePath: z.ZodString;
3263
+ }, z.core.$strip>>>;
3264
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3265
+ migrationId: z.ZodString;
3266
+ description: z.ZodString;
3267
+ checksum: z.ZodString;
3268
+ relativePath: z.ZodString;
3269
+ appliedAt: z.ZodString;
3270
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3271
+ sourceKind: z.ZodEnum<{
3272
+ manual_apply: "manual_apply";
3273
+ beta_rollout: "beta_rollout";
3274
+ prod_rollout: "prod_rollout";
3275
+ local_bootstrap: "local_bootstrap";
3276
+ }>;
3277
+ }, z.core.$strip>>>;
3278
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3279
+ migrationId: z.ZodString;
3280
+ description: z.ZodString;
3281
+ checksum: z.ZodString;
3282
+ relativePath: z.ZodString;
3283
+ }, z.core.$strip>>>;
3284
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
3285
+ migrationId: z.ZodString;
3286
+ expectedChecksum: z.ZodString;
3287
+ appliedChecksum: z.ZodString;
3288
+ }, z.core.$strip>>>;
3289
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
3290
+ }, z.core.$strip>>>;
3291
+ }, z.core.$strip>;
3292
+ export declare const opsGetSchemaStatusRequestSchema: z.ZodObject<{}, z.core.$strip>;
3293
+ export declare const opsGetSchemaStatusResponseSchema: z.ZodObject<{
3294
+ schema: z.ZodObject<{
3295
+ storageMode: z.ZodEnum<{
3296
+ postgres: "postgres";
3297
+ in_memory: "in_memory";
3298
+ }>;
3299
+ applyMode: z.ZodEnum<{
3300
+ real: "real";
3301
+ simulated: "simulated";
3302
+ }>;
3303
+ environment: z.ZodString;
3304
+ migrationRoot: z.ZodString;
3305
+ ledgerAdopted: z.ZodBoolean;
3306
+ legacyStartupSchemaSupport: z.ZodBoolean;
3307
+ status: z.ZodEnum<{
3308
+ unknown: "unknown";
3309
+ pass: "pass";
3310
+ warn: "warn";
3311
+ fail: "fail";
3312
+ }>;
3313
+ summary: z.ZodString;
3314
+ checkedAt: z.ZodString;
3315
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3316
+ migrationId: z.ZodString;
3317
+ description: z.ZodString;
3318
+ checksum: z.ZodString;
3319
+ relativePath: z.ZodString;
3320
+ }, z.core.$strip>>>;
3321
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3322
+ migrationId: z.ZodString;
3323
+ description: z.ZodString;
3324
+ checksum: z.ZodString;
3325
+ relativePath: z.ZodString;
3326
+ appliedAt: z.ZodString;
3327
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3328
+ sourceKind: z.ZodEnum<{
3329
+ manual_apply: "manual_apply";
3330
+ beta_rollout: "beta_rollout";
3331
+ prod_rollout: "prod_rollout";
3332
+ local_bootstrap: "local_bootstrap";
3333
+ }>;
3334
+ }, z.core.$strip>>>;
3335
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3336
+ migrationId: z.ZodString;
3337
+ description: z.ZodString;
3338
+ checksum: z.ZodString;
3339
+ relativePath: z.ZodString;
3340
+ }, z.core.$strip>>>;
3341
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
3342
+ migrationId: z.ZodString;
3343
+ expectedChecksum: z.ZodString;
3344
+ appliedChecksum: z.ZodString;
3345
+ }, z.core.$strip>>>;
3346
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
3347
+ }, z.core.$strip>;
3348
+ }, z.core.$strip>;
3349
+ export declare const opsApplySchemaMigrationsRequestSchema: z.ZodObject<{
3350
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3351
+ sourceKind: z.ZodDefault<z.ZodEnum<{
3352
+ manual_apply: "manual_apply";
3353
+ beta_rollout: "beta_rollout";
3354
+ prod_rollout: "prod_rollout";
3355
+ local_bootstrap: "local_bootstrap";
3356
+ }>>;
3357
+ }, z.core.$strip>;
3358
+ export declare const opsApplySchemaMigrationsResponseSchema: z.ZodObject<{
3359
+ applied: z.ZodDefault<z.ZodArray<z.ZodObject<{
3360
+ migrationId: z.ZodString;
3361
+ description: z.ZodString;
3362
+ checksum: z.ZodString;
3363
+ relativePath: z.ZodString;
3364
+ }, z.core.$strip>>>;
3365
+ schema: z.ZodObject<{
3366
+ storageMode: z.ZodEnum<{
3367
+ postgres: "postgres";
3368
+ in_memory: "in_memory";
3369
+ }>;
3370
+ applyMode: z.ZodEnum<{
3371
+ real: "real";
3372
+ simulated: "simulated";
3373
+ }>;
3374
+ environment: z.ZodString;
3375
+ migrationRoot: z.ZodString;
3376
+ ledgerAdopted: z.ZodBoolean;
3377
+ legacyStartupSchemaSupport: z.ZodBoolean;
3378
+ status: z.ZodEnum<{
3379
+ unknown: "unknown";
3380
+ pass: "pass";
3381
+ warn: "warn";
3382
+ fail: "fail";
3383
+ }>;
3384
+ summary: z.ZodString;
3385
+ checkedAt: z.ZodString;
3386
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3387
+ migrationId: z.ZodString;
3388
+ description: z.ZodString;
3389
+ checksum: z.ZodString;
3390
+ relativePath: z.ZodString;
3391
+ }, z.core.$strip>>>;
3392
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3393
+ migrationId: z.ZodString;
3394
+ description: z.ZodString;
3395
+ checksum: z.ZodString;
3396
+ relativePath: z.ZodString;
3397
+ appliedAt: z.ZodString;
3398
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3399
+ sourceKind: z.ZodEnum<{
3400
+ manual_apply: "manual_apply";
3401
+ beta_rollout: "beta_rollout";
3402
+ prod_rollout: "prod_rollout";
3403
+ local_bootstrap: "local_bootstrap";
3404
+ }>;
3405
+ }, z.core.$strip>>>;
3406
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3407
+ migrationId: z.ZodString;
3408
+ description: z.ZodString;
3409
+ checksum: z.ZodString;
3410
+ relativePath: z.ZodString;
3411
+ }, z.core.$strip>>>;
3412
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
3413
+ migrationId: z.ZodString;
3414
+ expectedChecksum: z.ZodString;
3415
+ appliedChecksum: z.ZodString;
3416
+ }, z.core.$strip>>>;
3417
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
3418
+ }, z.core.$strip>;
3419
+ }, z.core.$strip>;
3420
+ export declare const opsCreateBackupArtifactRequestSchema: z.ZodObject<{
3421
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3422
+ backupKind: z.ZodDefault<z.ZodEnum<{
3423
+ scheduled: "scheduled";
3424
+ pre_release: "pre_release";
3425
+ manual_emergency: "manual_emergency";
3426
+ }>>;
3427
+ sourceKind: z.ZodDefault<z.ZodEnum<{
3428
+ beta_rollout: "beta_rollout";
3429
+ prod_rollout: "prod_rollout";
3430
+ scheduled_job: "scheduled_job";
3431
+ incident_response: "incident_response";
3432
+ local_drill: "local_drill";
3433
+ }>>;
3434
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3435
+ }, z.core.$strip>;
3436
+ export declare const opsCreateBackupArtifactResponseSchema: z.ZodObject<{
3437
+ artifact: z.ZodObject<{
3438
+ backupId: z.ZodString;
3439
+ environment: z.ZodString;
3440
+ backupKind: z.ZodEnum<{
3441
+ scheduled: "scheduled";
3442
+ pre_release: "pre_release";
3443
+ manual_emergency: "manual_emergency";
3444
+ }>;
3445
+ sourceKind: z.ZodEnum<{
3446
+ beta_rollout: "beta_rollout";
3447
+ prod_rollout: "prod_rollout";
3448
+ scheduled_job: "scheduled_job";
3449
+ incident_response: "incident_response";
3450
+ local_drill: "local_drill";
3451
+ }>;
3452
+ artifactFormat: z.ZodEnum<{
3453
+ encrypted_json: "encrypted_json";
3454
+ }>;
3455
+ storageMode: z.ZodEnum<{
3456
+ postgres: "postgres";
3457
+ in_memory: "in_memory";
3458
+ }>;
3459
+ databaseIdentity: z.ZodString;
3460
+ schemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3461
+ ledgerAdopted: z.ZodBoolean;
3462
+ createdAt: z.ZodString;
3463
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3464
+ retentionDays: z.ZodNumber;
3465
+ checksum: z.ZodString;
3466
+ payloadSizeBytes: z.ZodNumber;
3467
+ encryption: z.ZodObject<{
3468
+ encrypted: z.ZodDefault<z.ZodBoolean>;
3469
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
3470
+ keyId: z.ZodString;
3471
+ mode: z.ZodEnum<{
3472
+ managed: "managed";
3473
+ local_fallback: "local_fallback";
3474
+ }>;
3475
+ }, z.core.$strip>;
3476
+ coverage: z.ZodObject<{
3477
+ operators: z.ZodNumber;
3478
+ workspaceMemberships: z.ZodNumber;
3479
+ businessProfiles: z.ZodNumber;
3480
+ businessProfileVersions: z.ZodNumber;
3481
+ systemAdmins: z.ZodNumber;
3482
+ telegramIntegrations: z.ZodNumber;
3483
+ telegramObservedUsers: z.ZodNumber;
3484
+ telegramEmployeeBindings: z.ZodNumber;
3485
+ telegramBusinessAccounts: z.ZodNumber;
3486
+ runtimeProviders: z.ZodNumber;
3487
+ runtimeRoutingProfiles: z.ZodNumber;
3488
+ runtimeUsageEvents: z.ZodNumber;
3489
+ runtimeFallbackEvents: z.ZodNumber;
3490
+ operationsSnapshots: z.ZodNumber;
3491
+ }, z.core.$strip>;
3492
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3493
+ }, z.core.$strip>;
3494
+ }, z.core.$strip>;
3495
+ export declare const opsListBackupArtifactsRequestSchema: z.ZodObject<{
3496
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3497
+ backupKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3498
+ scheduled: "scheduled";
3499
+ pre_release: "pre_release";
3500
+ manual_emergency: "manual_emergency";
3501
+ }>>>;
3502
+ }, z.core.$strip>;
3503
+ export declare const opsListBackupArtifactsResponseSchema: z.ZodObject<{
3504
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3505
+ backupId: z.ZodString;
3506
+ environment: z.ZodString;
3507
+ backupKind: z.ZodEnum<{
3508
+ scheduled: "scheduled";
3509
+ pre_release: "pre_release";
3510
+ manual_emergency: "manual_emergency";
3511
+ }>;
3512
+ sourceKind: z.ZodEnum<{
3513
+ beta_rollout: "beta_rollout";
3514
+ prod_rollout: "prod_rollout";
3515
+ scheduled_job: "scheduled_job";
3516
+ incident_response: "incident_response";
3517
+ local_drill: "local_drill";
3518
+ }>;
3519
+ artifactFormat: z.ZodEnum<{
3520
+ encrypted_json: "encrypted_json";
3521
+ }>;
3522
+ storageMode: z.ZodEnum<{
3523
+ postgres: "postgres";
3524
+ in_memory: "in_memory";
3525
+ }>;
3526
+ databaseIdentity: z.ZodString;
3527
+ schemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3528
+ ledgerAdopted: z.ZodBoolean;
3529
+ createdAt: z.ZodString;
3530
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3531
+ retentionDays: z.ZodNumber;
3532
+ checksum: z.ZodString;
3533
+ payloadSizeBytes: z.ZodNumber;
3534
+ encryption: z.ZodObject<{
3535
+ encrypted: z.ZodDefault<z.ZodBoolean>;
3536
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
3537
+ keyId: z.ZodString;
3538
+ mode: z.ZodEnum<{
3539
+ managed: "managed";
3540
+ local_fallback: "local_fallback";
3541
+ }>;
3542
+ }, z.core.$strip>;
3543
+ coverage: z.ZodObject<{
3544
+ operators: z.ZodNumber;
3545
+ workspaceMemberships: z.ZodNumber;
3546
+ businessProfiles: z.ZodNumber;
3547
+ businessProfileVersions: z.ZodNumber;
3548
+ systemAdmins: z.ZodNumber;
3549
+ telegramIntegrations: z.ZodNumber;
3550
+ telegramObservedUsers: z.ZodNumber;
3551
+ telegramEmployeeBindings: z.ZodNumber;
3552
+ telegramBusinessAccounts: z.ZodNumber;
3553
+ runtimeProviders: z.ZodNumber;
3554
+ runtimeRoutingProfiles: z.ZodNumber;
3555
+ runtimeUsageEvents: z.ZodNumber;
3556
+ runtimeFallbackEvents: z.ZodNumber;
3557
+ operationsSnapshots: z.ZodNumber;
3558
+ }, z.core.$strip>;
3559
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3560
+ }, z.core.$strip>>>;
3561
+ }, z.core.$strip>;
3562
+ export declare const opsGetBackupArtifactRequestSchema: z.ZodObject<{
3563
+ backupId: z.ZodString;
3564
+ }, z.core.$strip>;
3565
+ export declare const opsGetBackupArtifactResponseSchema: z.ZodObject<{
3566
+ artifact: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3567
+ backupId: z.ZodString;
3568
+ environment: z.ZodString;
3569
+ backupKind: z.ZodEnum<{
3570
+ scheduled: "scheduled";
3571
+ pre_release: "pre_release";
3572
+ manual_emergency: "manual_emergency";
3573
+ }>;
3574
+ sourceKind: z.ZodEnum<{
3575
+ beta_rollout: "beta_rollout";
3576
+ prod_rollout: "prod_rollout";
3577
+ scheduled_job: "scheduled_job";
3578
+ incident_response: "incident_response";
3579
+ local_drill: "local_drill";
3580
+ }>;
3581
+ artifactFormat: z.ZodEnum<{
3582
+ encrypted_json: "encrypted_json";
3583
+ }>;
3584
+ storageMode: z.ZodEnum<{
3585
+ postgres: "postgres";
3586
+ in_memory: "in_memory";
3587
+ }>;
3588
+ databaseIdentity: z.ZodString;
3589
+ schemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3590
+ ledgerAdopted: z.ZodBoolean;
3591
+ createdAt: z.ZodString;
3592
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3593
+ retentionDays: z.ZodNumber;
3594
+ checksum: z.ZodString;
3595
+ payloadSizeBytes: z.ZodNumber;
3596
+ encryption: z.ZodObject<{
3597
+ encrypted: z.ZodDefault<z.ZodBoolean>;
3598
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
3599
+ keyId: z.ZodString;
3600
+ mode: z.ZodEnum<{
3601
+ managed: "managed";
3602
+ local_fallback: "local_fallback";
3603
+ }>;
3604
+ }, z.core.$strip>;
3605
+ coverage: z.ZodObject<{
3606
+ operators: z.ZodNumber;
3607
+ workspaceMemberships: z.ZodNumber;
3608
+ businessProfiles: z.ZodNumber;
3609
+ businessProfileVersions: z.ZodNumber;
3610
+ systemAdmins: z.ZodNumber;
3611
+ telegramIntegrations: z.ZodNumber;
3612
+ telegramObservedUsers: z.ZodNumber;
3613
+ telegramEmployeeBindings: z.ZodNumber;
3614
+ telegramBusinessAccounts: z.ZodNumber;
3615
+ runtimeProviders: z.ZodNumber;
3616
+ runtimeRoutingProfiles: z.ZodNumber;
3617
+ runtimeUsageEvents: z.ZodNumber;
3618
+ runtimeFallbackEvents: z.ZodNumber;
3619
+ operationsSnapshots: z.ZodNumber;
3620
+ }, z.core.$strip>;
3621
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3622
+ }, z.core.$strip>>>;
3623
+ }, z.core.$strip>;
3624
+ export declare const opsRunRestoreDrillRequestSchema: z.ZodObject<{
3625
+ backupId: z.ZodString;
3626
+ targetKind: z.ZodDefault<z.ZodEnum<{
3627
+ isolated_in_memory: "isolated_in_memory";
3628
+ }>>;
3629
+ targetEnvironment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3630
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3631
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3632
+ }, z.core.$strip>;
3633
+ export declare const opsRunRestoreDrillResponseSchema: z.ZodObject<{
3634
+ drill: z.ZodObject<{
3635
+ restoreDrillId: z.ZodString;
3636
+ backupId: z.ZodString;
3637
+ targetKind: z.ZodEnum<{
3638
+ isolated_in_memory: "isolated_in_memory";
3639
+ }>;
3640
+ targetEnvironment: z.ZodString;
3641
+ startedAt: z.ZodString;
3642
+ completedAt: z.ZodString;
3643
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3644
+ status: z.ZodEnum<{
3645
+ unknown: "unknown";
3646
+ pass: "pass";
3647
+ warn: "warn";
3648
+ fail: "fail";
3649
+ }>;
3650
+ summary: z.ZodString;
3651
+ restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3652
+ validationChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
3653
+ checkId: z.ZodString;
3654
+ status: z.ZodEnum<{
3655
+ unknown: "unknown";
3656
+ pass: "pass";
3657
+ warn: "warn";
3658
+ fail: "fail";
3659
+ }>;
3660
+ summary: z.ZodString;
3661
+ details: z.ZodDefault<z.ZodArray<z.ZodString>>;
3662
+ }, z.core.$strip>>>;
3663
+ coverage: z.ZodObject<{
3664
+ operators: z.ZodNumber;
3665
+ workspaceMemberships: z.ZodNumber;
3666
+ businessProfiles: z.ZodNumber;
3667
+ businessProfileVersions: z.ZodNumber;
3668
+ systemAdmins: z.ZodNumber;
3669
+ telegramIntegrations: z.ZodNumber;
3670
+ telegramObservedUsers: z.ZodNumber;
3671
+ telegramEmployeeBindings: z.ZodNumber;
3672
+ telegramBusinessAccounts: z.ZodNumber;
3673
+ runtimeProviders: z.ZodNumber;
3674
+ runtimeRoutingProfiles: z.ZodNumber;
3675
+ runtimeUsageEvents: z.ZodNumber;
3676
+ runtimeFallbackEvents: z.ZodNumber;
3677
+ operationsSnapshots: z.ZodNumber;
3678
+ }, z.core.$strip>;
3679
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3680
+ }, z.core.$strip>;
3681
+ }, z.core.$strip>;
3682
+ export declare const opsListRestoreDrillsRequestSchema: z.ZodObject<{
3683
+ backupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3684
+ }, z.core.$strip>;
3685
+ export declare const opsListRestoreDrillsResponseSchema: z.ZodObject<{
3686
+ drills: z.ZodDefault<z.ZodArray<z.ZodObject<{
3687
+ restoreDrillId: z.ZodString;
3688
+ backupId: z.ZodString;
3689
+ targetKind: z.ZodEnum<{
3690
+ isolated_in_memory: "isolated_in_memory";
3691
+ }>;
3692
+ targetEnvironment: z.ZodString;
3693
+ startedAt: z.ZodString;
3694
+ completedAt: z.ZodString;
3695
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3696
+ status: z.ZodEnum<{
3697
+ unknown: "unknown";
3698
+ pass: "pass";
3699
+ warn: "warn";
3700
+ fail: "fail";
3701
+ }>;
3702
+ summary: z.ZodString;
3703
+ restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3704
+ validationChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
3705
+ checkId: z.ZodString;
3706
+ status: z.ZodEnum<{
3707
+ unknown: "unknown";
3708
+ pass: "pass";
3709
+ warn: "warn";
3710
+ fail: "fail";
3711
+ }>;
3712
+ summary: z.ZodString;
3713
+ details: z.ZodDefault<z.ZodArray<z.ZodString>>;
3714
+ }, z.core.$strip>>>;
3715
+ coverage: z.ZodObject<{
3716
+ operators: z.ZodNumber;
3717
+ workspaceMemberships: z.ZodNumber;
3718
+ businessProfiles: z.ZodNumber;
3719
+ businessProfileVersions: z.ZodNumber;
3720
+ systemAdmins: z.ZodNumber;
3721
+ telegramIntegrations: z.ZodNumber;
3722
+ telegramObservedUsers: z.ZodNumber;
3723
+ telegramEmployeeBindings: z.ZodNumber;
3724
+ telegramBusinessAccounts: z.ZodNumber;
3725
+ runtimeProviders: z.ZodNumber;
3726
+ runtimeRoutingProfiles: z.ZodNumber;
3727
+ runtimeUsageEvents: z.ZodNumber;
3728
+ runtimeFallbackEvents: z.ZodNumber;
3729
+ operationsSnapshots: z.ZodNumber;
3730
+ }, z.core.$strip>;
3731
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3732
+ }, z.core.$strip>>>;
3733
+ }, z.core.$strip>;
3734
+ export declare const opsGetRestoreDrillRequestSchema: z.ZodObject<{
3735
+ restoreDrillId: z.ZodString;
3736
+ }, z.core.$strip>;
3737
+ export declare const opsGetRestoreDrillResponseSchema: z.ZodObject<{
3738
+ drill: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3739
+ restoreDrillId: z.ZodString;
3740
+ backupId: z.ZodString;
3741
+ targetKind: z.ZodEnum<{
3742
+ isolated_in_memory: "isolated_in_memory";
3743
+ }>;
3744
+ targetEnvironment: z.ZodString;
3745
+ startedAt: z.ZodString;
3746
+ completedAt: z.ZodString;
3747
+ startedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3748
+ status: z.ZodEnum<{
3749
+ unknown: "unknown";
3750
+ pass: "pass";
3751
+ warn: "warn";
3752
+ fail: "fail";
3753
+ }>;
3754
+ summary: z.ZodString;
3755
+ restoredSchemaVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3756
+ validationChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
3757
+ checkId: z.ZodString;
3758
+ status: z.ZodEnum<{
3759
+ unknown: "unknown";
3760
+ pass: "pass";
3761
+ warn: "warn";
3762
+ fail: "fail";
3763
+ }>;
3764
+ summary: z.ZodString;
3765
+ details: z.ZodDefault<z.ZodArray<z.ZodString>>;
3766
+ }, z.core.$strip>>>;
3767
+ coverage: z.ZodObject<{
3768
+ operators: z.ZodNumber;
3769
+ workspaceMemberships: z.ZodNumber;
3770
+ businessProfiles: z.ZodNumber;
3771
+ businessProfileVersions: z.ZodNumber;
3772
+ systemAdmins: z.ZodNumber;
3773
+ telegramIntegrations: z.ZodNumber;
3774
+ telegramObservedUsers: z.ZodNumber;
3775
+ telegramEmployeeBindings: z.ZodNumber;
3776
+ telegramBusinessAccounts: z.ZodNumber;
3777
+ runtimeProviders: z.ZodNumber;
3778
+ runtimeRoutingProfiles: z.ZodNumber;
3779
+ runtimeUsageEvents: z.ZodNumber;
3780
+ runtimeFallbackEvents: z.ZodNumber;
3781
+ operationsSnapshots: z.ZodNumber;
3782
+ }, z.core.$strip>;
3783
+ notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3784
+ }, z.core.$strip>>>;
3785
+ }, z.core.$strip>;
3786
+ export declare const opsGetDiagnosticsRequestSchema: z.ZodObject<{
3787
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3788
+ entityKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3789
+ telegram_integration: "telegram_integration";
3790
+ telegram_business_account: "telegram_business_account";
3791
+ telegram_employee_binding: "telegram_employee_binding";
3792
+ runtime_provider: "runtime_provider";
3793
+ runtime_routing: "runtime_routing";
3794
+ }>>>;
3795
+ entityId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3796
+ }, z.core.$strip>;
3797
+ export declare const opsGetDiagnosticsResponseSchema: z.ZodObject<{
3798
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3799
+ generatedAt: z.ZodString;
3800
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
3801
+ snapshotId: z.ZodString;
3802
+ entityKind: z.ZodEnum<{
3803
+ telegram_integration: "telegram_integration";
3804
+ telegram_business_account: "telegram_business_account";
3805
+ telegram_employee_binding: "telegram_employee_binding";
3806
+ runtime_provider: "runtime_provider";
3807
+ runtime_routing: "runtime_routing";
3808
+ }>;
3809
+ entityId: z.ZodString;
3810
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3811
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3812
+ status: z.ZodEnum<{
3813
+ unknown: "unknown";
3814
+ pass: "pass";
3815
+ warn: "warn";
3816
+ fail: "fail";
3817
+ }>;
3818
+ summary: z.ZodString;
3819
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3820
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3821
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
3822
+ code: z.ZodString;
3823
+ severity: z.ZodEnum<{
3824
+ warn: "warn";
3825
+ fail: "fail";
3826
+ }>;
3827
+ field: z.ZodString;
3828
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3829
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3830
+ message: z.ZodString;
3831
+ }, z.core.$strip>>>;
3832
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3833
+ checkedAt: z.ZodString;
3834
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3835
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3836
+ stale: z.ZodDefault<z.ZodBoolean>;
3837
+ sourceKind: z.ZodEnum<{
3838
+ startup_probe: "startup_probe";
3839
+ manual_refresh: "manual_refresh";
3840
+ scheduled_reconcile: "scheduled_reconcile";
3841
+ migration_backfill: "migration_backfill";
3842
+ }>;
3843
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3844
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3845
+ createdAt: z.ZodString;
3846
+ updatedAt: z.ZodString;
3847
+ }, z.core.$strip>>>;
3848
+ }, z.core.$strip>;
3849
+ export declare const opsRefreshTelegramIntegrationRequestSchema: z.ZodObject<{
3850
+ integrationKey: z.ZodString;
3851
+ }, z.core.$strip>;
3852
+ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
3853
+ snapshot: z.ZodObject<{
3854
+ snapshotId: z.ZodString;
3855
+ entityKind: z.ZodEnum<{
3856
+ telegram_integration: "telegram_integration";
3857
+ telegram_business_account: "telegram_business_account";
3858
+ telegram_employee_binding: "telegram_employee_binding";
3859
+ runtime_provider: "runtime_provider";
3860
+ runtime_routing: "runtime_routing";
3861
+ }>;
3862
+ entityId: z.ZodString;
3863
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3864
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3865
+ status: z.ZodEnum<{
3866
+ unknown: "unknown";
3867
+ pass: "pass";
3868
+ warn: "warn";
3869
+ fail: "fail";
3870
+ }>;
3871
+ summary: z.ZodString;
3872
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3873
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3874
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
3875
+ code: z.ZodString;
3876
+ severity: z.ZodEnum<{
3877
+ warn: "warn";
3878
+ fail: "fail";
3879
+ }>;
3880
+ field: z.ZodString;
3881
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3882
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3883
+ message: z.ZodString;
3884
+ }, z.core.$strip>>>;
3885
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3886
+ checkedAt: z.ZodString;
3887
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3888
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3889
+ stale: z.ZodDefault<z.ZodBoolean>;
3890
+ sourceKind: z.ZodEnum<{
3891
+ startup_probe: "startup_probe";
3892
+ manual_refresh: "manual_refresh";
3893
+ scheduled_reconcile: "scheduled_reconcile";
3894
+ migration_backfill: "migration_backfill";
3895
+ }>;
3896
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3897
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3898
+ createdAt: z.ZodString;
3899
+ updatedAt: z.ZodString;
3900
+ }, z.core.$strip>;
3901
+ readiness: z.ZodObject<{
3902
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3903
+ generatedAt: z.ZodString;
3904
+ status: z.ZodEnum<{
3905
+ unknown: "unknown";
3906
+ pass: "pass";
3907
+ warn: "warn";
3908
+ fail: "fail";
3909
+ }>;
3910
+ stale: z.ZodBoolean;
3911
+ counts: z.ZodObject<{
3912
+ total: z.ZodNumber;
3913
+ pass: z.ZodNumber;
3914
+ warn: z.ZodNumber;
3915
+ fail: z.ZodNumber;
3916
+ unknown: z.ZodNumber;
3917
+ stale: z.ZodNumber;
3918
+ }, z.core.$strip>;
3919
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
3920
+ snapshotId: z.ZodString;
3921
+ entityKind: z.ZodEnum<{
3922
+ telegram_integration: "telegram_integration";
3923
+ telegram_business_account: "telegram_business_account";
3924
+ telegram_employee_binding: "telegram_employee_binding";
3925
+ runtime_provider: "runtime_provider";
3926
+ runtime_routing: "runtime_routing";
3927
+ }>;
3928
+ entityId: z.ZodString;
3929
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3930
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3931
+ status: z.ZodEnum<{
3932
+ unknown: "unknown";
3933
+ pass: "pass";
3934
+ warn: "warn";
3935
+ fail: "fail";
3936
+ }>;
3937
+ summary: z.ZodString;
3938
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3939
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3940
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
3941
+ code: z.ZodString;
3942
+ severity: z.ZodEnum<{
3943
+ warn: "warn";
3944
+ fail: "fail";
3945
+ }>;
3946
+ field: z.ZodString;
3947
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3948
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
3949
+ message: z.ZodString;
3950
+ }, z.core.$strip>>>;
3951
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3952
+ checkedAt: z.ZodString;
3953
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3954
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3955
+ stale: z.ZodDefault<z.ZodBoolean>;
3956
+ sourceKind: z.ZodEnum<{
3957
+ startup_probe: "startup_probe";
3958
+ manual_refresh: "manual_refresh";
3959
+ scheduled_reconcile: "scheduled_reconcile";
3960
+ migration_backfill: "migration_backfill";
3961
+ }>;
3962
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3963
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3964
+ createdAt: z.ZodString;
3965
+ updatedAt: z.ZodString;
3966
+ }, z.core.$strip>>>;
3967
+ schema: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3968
+ storageMode: z.ZodEnum<{
3969
+ postgres: "postgres";
3970
+ in_memory: "in_memory";
3971
+ }>;
3972
+ applyMode: z.ZodEnum<{
3973
+ real: "real";
3974
+ simulated: "simulated";
3975
+ }>;
3976
+ environment: z.ZodString;
3977
+ migrationRoot: z.ZodString;
3978
+ ledgerAdopted: z.ZodBoolean;
3979
+ legacyStartupSchemaSupport: z.ZodBoolean;
3980
+ status: z.ZodEnum<{
3981
+ unknown: "unknown";
3982
+ pass: "pass";
3983
+ warn: "warn";
3984
+ fail: "fail";
3985
+ }>;
3986
+ summary: z.ZodString;
3987
+ checkedAt: z.ZodString;
3988
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3989
+ migrationId: z.ZodString;
3990
+ description: z.ZodString;
3991
+ checksum: z.ZodString;
3992
+ relativePath: z.ZodString;
3993
+ }, z.core.$strip>>>;
3994
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
3995
+ migrationId: z.ZodString;
3996
+ description: z.ZodString;
3997
+ checksum: z.ZodString;
3998
+ relativePath: z.ZodString;
3999
+ appliedAt: z.ZodString;
4000
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4001
+ sourceKind: z.ZodEnum<{
4002
+ manual_apply: "manual_apply";
4003
+ beta_rollout: "beta_rollout";
4004
+ prod_rollout: "prod_rollout";
4005
+ local_bootstrap: "local_bootstrap";
4006
+ }>;
4007
+ }, z.core.$strip>>>;
4008
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4009
+ migrationId: z.ZodString;
4010
+ description: z.ZodString;
4011
+ checksum: z.ZodString;
4012
+ relativePath: z.ZodString;
4013
+ }, z.core.$strip>>>;
4014
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
4015
+ migrationId: z.ZodString;
4016
+ expectedChecksum: z.ZodString;
4017
+ appliedChecksum: z.ZodString;
4018
+ }, z.core.$strip>>>;
4019
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
4020
+ }, z.core.$strip>>>;
4021
+ }, z.core.$strip>;
4022
+ }, z.core.$strip>;
4023
+ export declare const opsRefreshRuntimeProviderRequestSchema: z.ZodObject<{
4024
+ providerKey: z.ZodString;
4025
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4026
+ }, z.core.$strip>;
4027
+ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4028
+ snapshot: z.ZodObject<{
4029
+ snapshotId: z.ZodString;
4030
+ entityKind: z.ZodEnum<{
4031
+ telegram_integration: "telegram_integration";
4032
+ telegram_business_account: "telegram_business_account";
4033
+ telegram_employee_binding: "telegram_employee_binding";
4034
+ runtime_provider: "runtime_provider";
4035
+ runtime_routing: "runtime_routing";
4036
+ }>;
4037
+ entityId: z.ZodString;
4038
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4039
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4040
+ status: z.ZodEnum<{
4041
+ unknown: "unknown";
4042
+ pass: "pass";
4043
+ warn: "warn";
4044
+ fail: "fail";
4045
+ }>;
4046
+ summary: z.ZodString;
4047
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4048
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4049
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4050
+ code: z.ZodString;
4051
+ severity: z.ZodEnum<{
4052
+ warn: "warn";
4053
+ fail: "fail";
4054
+ }>;
4055
+ field: z.ZodString;
4056
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4057
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4058
+ message: z.ZodString;
4059
+ }, z.core.$strip>>>;
4060
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4061
+ checkedAt: z.ZodString;
4062
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4063
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4064
+ stale: z.ZodDefault<z.ZodBoolean>;
4065
+ sourceKind: z.ZodEnum<{
4066
+ startup_probe: "startup_probe";
4067
+ manual_refresh: "manual_refresh";
4068
+ scheduled_reconcile: "scheduled_reconcile";
4069
+ migration_backfill: "migration_backfill";
4070
+ }>;
4071
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4072
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4073
+ createdAt: z.ZodString;
4074
+ updatedAt: z.ZodString;
4075
+ }, z.core.$strip>;
4076
+ readiness: z.ZodObject<{
4077
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4078
+ generatedAt: z.ZodString;
4079
+ status: z.ZodEnum<{
4080
+ unknown: "unknown";
4081
+ pass: "pass";
4082
+ warn: "warn";
4083
+ fail: "fail";
4084
+ }>;
4085
+ stale: z.ZodBoolean;
4086
+ counts: z.ZodObject<{
4087
+ total: z.ZodNumber;
4088
+ pass: z.ZodNumber;
4089
+ warn: z.ZodNumber;
4090
+ fail: z.ZodNumber;
4091
+ unknown: z.ZodNumber;
4092
+ stale: z.ZodNumber;
4093
+ }, z.core.$strip>;
4094
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
4095
+ snapshotId: z.ZodString;
4096
+ entityKind: z.ZodEnum<{
4097
+ telegram_integration: "telegram_integration";
4098
+ telegram_business_account: "telegram_business_account";
4099
+ telegram_employee_binding: "telegram_employee_binding";
4100
+ runtime_provider: "runtime_provider";
4101
+ runtime_routing: "runtime_routing";
4102
+ }>;
4103
+ entityId: z.ZodString;
4104
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4105
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4106
+ status: z.ZodEnum<{
4107
+ unknown: "unknown";
4108
+ pass: "pass";
4109
+ warn: "warn";
4110
+ fail: "fail";
4111
+ }>;
4112
+ summary: z.ZodString;
4113
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4114
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4115
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4116
+ code: z.ZodString;
4117
+ severity: z.ZodEnum<{
4118
+ warn: "warn";
4119
+ fail: "fail";
4120
+ }>;
4121
+ field: z.ZodString;
4122
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4123
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4124
+ message: z.ZodString;
4125
+ }, z.core.$strip>>>;
4126
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4127
+ checkedAt: z.ZodString;
4128
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4129
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4130
+ stale: z.ZodDefault<z.ZodBoolean>;
4131
+ sourceKind: z.ZodEnum<{
4132
+ startup_probe: "startup_probe";
4133
+ manual_refresh: "manual_refresh";
4134
+ scheduled_reconcile: "scheduled_reconcile";
4135
+ migration_backfill: "migration_backfill";
4136
+ }>;
4137
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4138
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4139
+ createdAt: z.ZodString;
4140
+ updatedAt: z.ZodString;
4141
+ }, z.core.$strip>>>;
4142
+ schema: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4143
+ storageMode: z.ZodEnum<{
4144
+ postgres: "postgres";
4145
+ in_memory: "in_memory";
4146
+ }>;
4147
+ applyMode: z.ZodEnum<{
4148
+ real: "real";
4149
+ simulated: "simulated";
4150
+ }>;
4151
+ environment: z.ZodString;
4152
+ migrationRoot: z.ZodString;
4153
+ ledgerAdopted: z.ZodBoolean;
4154
+ legacyStartupSchemaSupport: z.ZodBoolean;
4155
+ status: z.ZodEnum<{
4156
+ unknown: "unknown";
4157
+ pass: "pass";
4158
+ warn: "warn";
4159
+ fail: "fail";
4160
+ }>;
4161
+ summary: z.ZodString;
4162
+ checkedAt: z.ZodString;
4163
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4164
+ migrationId: z.ZodString;
4165
+ description: z.ZodString;
4166
+ checksum: z.ZodString;
4167
+ relativePath: z.ZodString;
4168
+ }, z.core.$strip>>>;
4169
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4170
+ migrationId: z.ZodString;
4171
+ description: z.ZodString;
4172
+ checksum: z.ZodString;
4173
+ relativePath: z.ZodString;
4174
+ appliedAt: z.ZodString;
4175
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4176
+ sourceKind: z.ZodEnum<{
4177
+ manual_apply: "manual_apply";
4178
+ beta_rollout: "beta_rollout";
4179
+ prod_rollout: "prod_rollout";
4180
+ local_bootstrap: "local_bootstrap";
4181
+ }>;
4182
+ }, z.core.$strip>>>;
4183
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4184
+ migrationId: z.ZodString;
4185
+ description: z.ZodString;
4186
+ checksum: z.ZodString;
4187
+ relativePath: z.ZodString;
4188
+ }, z.core.$strip>>>;
4189
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
4190
+ migrationId: z.ZodString;
4191
+ expectedChecksum: z.ZodString;
4192
+ appliedChecksum: z.ZodString;
4193
+ }, z.core.$strip>>>;
4194
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
4195
+ }, z.core.$strip>>>;
4196
+ }, z.core.$strip>;
4197
+ }, z.core.$strip>;
4198
+ export declare const opsReconcileBusinessRequestSchema: z.ZodObject<{
4199
+ businessProfileSlug: z.ZodString;
4200
+ }, z.core.$strip>;
4201
+ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4202
+ businessProfileSlug: z.ZodString;
4203
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
4204
+ entityKind: z.ZodEnum<{
4205
+ telegram_integration: "telegram_integration";
4206
+ telegram_business_account: "telegram_business_account";
4207
+ telegram_employee_binding: "telegram_employee_binding";
4208
+ runtime_provider: "runtime_provider";
4209
+ runtime_routing: "runtime_routing";
4210
+ }>;
4211
+ entityId: z.ZodString;
4212
+ operation: z.ZodString;
4213
+ status: z.ZodEnum<{
4214
+ unknown: "unknown";
4215
+ pass: "pass";
4216
+ warn: "warn";
4217
+ fail: "fail";
4218
+ }>;
4219
+ actionsTaken: z.ZodDefault<z.ZodArray<z.ZodString>>;
4220
+ changesApplied: z.ZodDefault<z.ZodArray<z.ZodString>>;
4221
+ remainingDrift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4222
+ code: z.ZodString;
4223
+ severity: z.ZodEnum<{
4224
+ warn: "warn";
4225
+ fail: "fail";
4226
+ }>;
4227
+ field: z.ZodString;
4228
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4229
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4230
+ message: z.ZodString;
4231
+ }, z.core.$strip>>>;
4232
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4233
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4234
+ completedAt: z.ZodString;
4235
+ }, z.core.$strip>>>;
4236
+ readiness: z.ZodObject<{
4237
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4238
+ generatedAt: z.ZodString;
4239
+ status: z.ZodEnum<{
4240
+ unknown: "unknown";
4241
+ pass: "pass";
4242
+ warn: "warn";
4243
+ fail: "fail";
4244
+ }>;
4245
+ stale: z.ZodBoolean;
4246
+ counts: z.ZodObject<{
4247
+ total: z.ZodNumber;
4248
+ pass: z.ZodNumber;
4249
+ warn: z.ZodNumber;
4250
+ fail: z.ZodNumber;
4251
+ unknown: z.ZodNumber;
4252
+ stale: z.ZodNumber;
4253
+ }, z.core.$strip>;
4254
+ snapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
4255
+ snapshotId: z.ZodString;
4256
+ entityKind: z.ZodEnum<{
4257
+ telegram_integration: "telegram_integration";
4258
+ telegram_business_account: "telegram_business_account";
4259
+ telegram_employee_binding: "telegram_employee_binding";
4260
+ runtime_provider: "runtime_provider";
4261
+ runtime_routing: "runtime_routing";
4262
+ }>;
4263
+ entityId: z.ZodString;
4264
+ businessProfileId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4265
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4266
+ status: z.ZodEnum<{
4267
+ unknown: "unknown";
4268
+ pass: "pass";
4269
+ warn: "warn";
4270
+ fail: "fail";
4271
+ }>;
4272
+ summary: z.ZodString;
4273
+ configured: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4274
+ observed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4275
+ drift: z.ZodDefault<z.ZodArray<z.ZodObject<{
4276
+ code: z.ZodString;
4277
+ severity: z.ZodEnum<{
4278
+ warn: "warn";
4279
+ fail: "fail";
4280
+ }>;
4281
+ field: z.ZodString;
4282
+ expected: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4283
+ actual: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
4284
+ message: z.ZodString;
4285
+ }, z.core.$strip>>>;
4286
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4287
+ checkedAt: z.ZodString;
4288
+ lastSuccessAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4289
+ staleAfter: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4290
+ stale: z.ZodDefault<z.ZodBoolean>;
4291
+ sourceKind: z.ZodEnum<{
4292
+ startup_probe: "startup_probe";
4293
+ manual_refresh: "manual_refresh";
4294
+ scheduled_reconcile: "scheduled_reconcile";
4295
+ migration_backfill: "migration_backfill";
4296
+ }>;
4297
+ errorCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4298
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4299
+ createdAt: z.ZodString;
4300
+ updatedAt: z.ZodString;
4301
+ }, z.core.$strip>>>;
4302
+ schema: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4303
+ storageMode: z.ZodEnum<{
4304
+ postgres: "postgres";
4305
+ in_memory: "in_memory";
4306
+ }>;
4307
+ applyMode: z.ZodEnum<{
4308
+ real: "real";
4309
+ simulated: "simulated";
4310
+ }>;
4311
+ environment: z.ZodString;
4312
+ migrationRoot: z.ZodString;
4313
+ ledgerAdopted: z.ZodBoolean;
4314
+ legacyStartupSchemaSupport: z.ZodBoolean;
4315
+ status: z.ZodEnum<{
4316
+ unknown: "unknown";
4317
+ pass: "pass";
4318
+ warn: "warn";
4319
+ fail: "fail";
4320
+ }>;
4321
+ summary: z.ZodString;
4322
+ checkedAt: z.ZodString;
4323
+ knownMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4324
+ migrationId: z.ZodString;
4325
+ description: z.ZodString;
4326
+ checksum: z.ZodString;
4327
+ relativePath: z.ZodString;
4328
+ }, z.core.$strip>>>;
4329
+ appliedMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4330
+ migrationId: z.ZodString;
4331
+ description: z.ZodString;
4332
+ checksum: z.ZodString;
4333
+ relativePath: z.ZodString;
4334
+ appliedAt: z.ZodString;
4335
+ appliedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4336
+ sourceKind: z.ZodEnum<{
4337
+ manual_apply: "manual_apply";
4338
+ beta_rollout: "beta_rollout";
4339
+ prod_rollout: "prod_rollout";
4340
+ local_bootstrap: "local_bootstrap";
4341
+ }>;
4342
+ }, z.core.$strip>>>;
4343
+ pendingMigrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
4344
+ migrationId: z.ZodString;
4345
+ description: z.ZodString;
4346
+ checksum: z.ZodString;
4347
+ relativePath: z.ZodString;
4348
+ }, z.core.$strip>>>;
4349
+ checksumMismatches: z.ZodDefault<z.ZodArray<z.ZodObject<{
4350
+ migrationId: z.ZodString;
4351
+ expectedChecksum: z.ZodString;
4352
+ appliedChecksum: z.ZodString;
4353
+ }, z.core.$strip>>>;
4354
+ orphanedLedgerEntries: z.ZodDefault<z.ZodArray<z.ZodString>>;
4355
+ }, z.core.$strip>>>;
4356
+ }, z.core.$strip>;
4357
+ }, z.core.$strip>;
4358
+ export type OperatorActor = z.infer<typeof operatorActorSchema>;
4359
+ export type ConversationFeedItem = z.infer<typeof conversationFeedItemSchema>;
4360
+ export type LinkedConversationSummary = z.infer<typeof linkedConversationSummarySchema>;
4361
+ export type OperatorNote = z.infer<typeof operatorNoteSchema>;
4362
+ export type HandoffRecord = z.infer<typeof handoffRecordSchema>;
4363
+ export type OpsListConversationFeedInput = z.infer<typeof opsListConversationFeedRequestSchema>;
4364
+ export type OpsListConversationFeedOutput = z.infer<typeof opsListConversationFeedResponseSchema>;
4365
+ export type OpsGetConversationWorkspaceInput = z.infer<typeof opsGetConversationWorkspaceRequestSchema>;
4366
+ export type OpsGetConversationWorkspaceOutput = z.infer<typeof opsGetConversationWorkspaceResponseSchema>;
4367
+ export type OpsSetOwnershipModeInput = z.infer<typeof opsSetOwnershipModeRequestSchema>;
4368
+ export type OpsSetOwnershipModeOutput = z.infer<typeof opsSetOwnershipModeResponseSchema>;
4369
+ export type OpsStartHandoffInput = z.infer<typeof opsStartHandoffRequestSchema>;
4370
+ export type OpsStartHandoffOutput = z.infer<typeof opsStartHandoffResponseSchema>;
4371
+ export type OpsAddOperatorNoteInput = z.infer<typeof opsAddOperatorNoteRequestSchema>;
4372
+ export type OpsAddOperatorNoteOutput = z.infer<typeof opsAddOperatorNoteResponseSchema>;
4373
+ export type OpsSendOperatorMessageInput = z.infer<typeof opsSendOperatorMessageRequestSchema>;
4374
+ export type OpsSendOperatorMessageOutput = z.infer<typeof opsSendOperatorMessageResponseSchema>;
4375
+ export type OperationsStatusSnapshot = z.infer<typeof operationsStatusSnapshotSchema>;
4376
+ export type OperationsDriftEntry = z.infer<typeof operationsDriftEntrySchema>;
4377
+ export type OperationsRepairResult = z.infer<typeof operationsRepairResultSchema>;
4378
+ export type OperationsReadinessResponse = z.infer<typeof operationsReadinessResponseSchema>;
4379
+ export type SchemaMigrationDefinition = z.infer<typeof schemaMigrationDefinitionSchema>;
4380
+ export type SchemaMigrationLedgerEntry = z.infer<typeof schemaMigrationLedgerEntrySchema>;
4381
+ export type SchemaMigrationChecksumMismatch = z.infer<typeof schemaMigrationChecksumMismatchSchema>;
4382
+ export type SchemaMigrationSourceKind = z.infer<typeof schemaMigrationSourceKindSchema>;
4383
+ export type SchemaMigrationStatus = z.infer<typeof schemaMigrationStatusSchema>;
4384
+ export type BackupArtifactKind = z.infer<typeof backupArtifactKindSchema>;
4385
+ export type BackupArtifactSourceKind = z.infer<typeof backupArtifactSourceKindSchema>;
4386
+ export type BackupArtifactCoverage = z.infer<typeof backupArtifactCoverageSchema>;
4387
+ export type BackupArtifactEncryption = z.infer<typeof backupArtifactEncryptionSchema>;
4388
+ export type BackupArtifactManifest = z.infer<typeof backupArtifactManifestSchema>;
4389
+ export type RestoreDrillTargetKind = z.infer<typeof restoreDrillTargetKindSchema>;
4390
+ export type RestoreDrillCheck = z.infer<typeof restoreDrillCheckSchema>;
4391
+ export type RestoreDrillRecord = z.infer<typeof restoreDrillRecordSchema>;
4392
+ export type RolloutPhaseStatus = z.infer<typeof rolloutPhaseStatusSchema>;
4393
+ export type RolloutExecutionStatus = z.infer<typeof rolloutExecutionStatusSchema>;
4394
+ export type ReleaseVerificationVerdict = z.infer<typeof releaseVerificationVerdictSchema>;
4395
+ export type RolloutCodeRef = z.infer<typeof rolloutCodeRefSchema>;
4396
+ export type RolloutPhaseRecord = z.infer<typeof rolloutPhaseRecordSchema>;
4397
+ export type RolloutExecutionRecord = z.infer<typeof rolloutExecutionRecordSchema>;
4398
+ export type ReleaseVerificationPhaseRecord = z.infer<typeof releaseVerificationPhaseRecordSchema>;
4399
+ export type ReleaseVerificationRecord = z.infer<typeof releaseVerificationRecordSchema>;
4400
+ export type OpsGetReadinessInput = z.infer<typeof opsGetReadinessRequestSchema>;
4401
+ export type OpsGetReadinessOutput = z.infer<typeof opsGetReadinessResponseSchema>;
4402
+ export type OpsGetSchemaStatusInput = z.infer<typeof opsGetSchemaStatusRequestSchema>;
4403
+ export type OpsGetSchemaStatusOutput = z.infer<typeof opsGetSchemaStatusResponseSchema>;
4404
+ export type OpsApplySchemaMigrationsInput = z.infer<typeof opsApplySchemaMigrationsRequestSchema>;
4405
+ export type OpsApplySchemaMigrationsOutput = z.infer<typeof opsApplySchemaMigrationsResponseSchema>;
4406
+ export type OpsCreateBackupArtifactInput = z.infer<typeof opsCreateBackupArtifactRequestSchema>;
4407
+ export type OpsCreateBackupArtifactOutput = z.infer<typeof opsCreateBackupArtifactResponseSchema>;
4408
+ export type OpsListBackupArtifactsInput = z.infer<typeof opsListBackupArtifactsRequestSchema>;
4409
+ export type OpsListBackupArtifactsOutput = z.infer<typeof opsListBackupArtifactsResponseSchema>;
4410
+ export type OpsGetBackupArtifactInput = z.infer<typeof opsGetBackupArtifactRequestSchema>;
4411
+ export type OpsGetBackupArtifactOutput = z.infer<typeof opsGetBackupArtifactResponseSchema>;
4412
+ export type OpsRunRestoreDrillInput = z.infer<typeof opsRunRestoreDrillRequestSchema>;
4413
+ export type OpsRunRestoreDrillOutput = z.infer<typeof opsRunRestoreDrillResponseSchema>;
4414
+ export type OpsListRestoreDrillsInput = z.infer<typeof opsListRestoreDrillsRequestSchema>;
4415
+ export type OpsListRestoreDrillsOutput = z.infer<typeof opsListRestoreDrillsResponseSchema>;
4416
+ export type OpsGetRestoreDrillInput = z.infer<typeof opsGetRestoreDrillRequestSchema>;
4417
+ export type OpsGetRestoreDrillOutput = z.infer<typeof opsGetRestoreDrillResponseSchema>;
4418
+ export type OpsRecordRolloutExecutionInput = z.infer<typeof opsRecordRolloutExecutionRequestSchema>;
4419
+ export type OpsRecordRolloutExecutionOutput = z.infer<typeof opsRecordRolloutExecutionResponseSchema>;
4420
+ export type OpsListRolloutExecutionsInput = z.infer<typeof opsListRolloutExecutionsRequestSchema>;
4421
+ export type OpsListRolloutExecutionsOutput = z.infer<typeof opsListRolloutExecutionsResponseSchema>;
4422
+ export type OpsGetRolloutExecutionInput = z.infer<typeof opsGetRolloutExecutionRequestSchema>;
4423
+ export type OpsGetRolloutExecutionOutput = z.infer<typeof opsGetRolloutExecutionResponseSchema>;
4424
+ export type OpsRecordReleaseVerificationInput = z.infer<typeof opsRecordReleaseVerificationRequestSchema>;
4425
+ export type OpsRecordReleaseVerificationOutput = z.infer<typeof opsRecordReleaseVerificationResponseSchema>;
4426
+ export type OpsListReleaseVerificationsInput = z.infer<typeof opsListReleaseVerificationsRequestSchema>;
4427
+ export type OpsListReleaseVerificationsOutput = z.infer<typeof opsListReleaseVerificationsResponseSchema>;
4428
+ export type OpsGetReleaseVerificationInput = z.infer<typeof opsGetReleaseVerificationRequestSchema>;
4429
+ export type OpsGetReleaseVerificationOutput = z.infer<typeof opsGetReleaseVerificationResponseSchema>;
4430
+ export type OpsGetDiagnosticsInput = z.infer<typeof opsGetDiagnosticsRequestSchema>;
4431
+ export type OpsGetDiagnosticsOutput = z.infer<typeof opsGetDiagnosticsResponseSchema>;
4432
+ export type OpsRefreshTelegramIntegrationInput = z.infer<typeof opsRefreshTelegramIntegrationRequestSchema>;
4433
+ export type OpsRefreshTelegramIntegrationOutput = z.infer<typeof opsRefreshTelegramIntegrationResponseSchema>;
4434
+ export type OpsRefreshRuntimeProviderInput = z.infer<typeof opsRefreshRuntimeProviderRequestSchema>;
4435
+ export type OpsRefreshRuntimeProviderOutput = z.infer<typeof opsRefreshRuntimeProviderResponseSchema>;
4436
+ export type OpsReconcileBusinessInput = z.infer<typeof opsReconcileBusinessRequestSchema>;
4437
+ export type OpsReconcileBusinessOutput = z.infer<typeof opsReconcileBusinessResponseSchema>;
4438
+ //# sourceMappingURL=ops.d.ts.map