@selleragent/api-contract 0.1.0 → 0.3.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.
package/dist/ops.d.ts CHANGED
@@ -127,8 +127,8 @@ export declare const schemaMigrationStorageModeSchema: z.ZodEnum<{
127
127
  in_memory: "in_memory";
128
128
  }>;
129
129
  export declare const schemaMigrationApplyModeSchema: z.ZodEnum<{
130
- real: "real";
131
130
  simulated: "simulated";
131
+ real: "real";
132
132
  }>;
133
133
  export declare const schemaMigrationSourceKindSchema: z.ZodEnum<{
134
134
  manual_apply: "manual_apply";
@@ -167,8 +167,8 @@ export declare const schemaMigrationStatusSchema: z.ZodObject<{
167
167
  in_memory: "in_memory";
168
168
  }>;
169
169
  applyMode: z.ZodEnum<{
170
- real: "real";
171
170
  simulated: "simulated";
171
+ real: "real";
172
172
  }>;
173
173
  environment: z.ZodString;
174
174
  migrationRoot: z.ZodString;
@@ -378,10 +378,10 @@ export declare const restoreDrillRecordSchema: z.ZodObject<{
378
378
  notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
379
379
  }, z.core.$strip>;
380
380
  export declare const rolloutPhaseStatusSchema: z.ZodEnum<{
381
+ skipped: "skipped";
381
382
  pass: "pass";
382
383
  warn: "warn";
383
384
  fail: "fail";
384
- skipped: "skipped";
385
385
  }>;
386
386
  export declare const rolloutExecutionStatusSchema: z.ZodEnum<{
387
387
  completed: "completed";
@@ -402,10 +402,10 @@ export declare const rolloutPhaseRecordSchema: z.ZodObject<{
402
402
  phaseId: z.ZodString;
403
403
  label: z.ZodString;
404
404
  status: z.ZodEnum<{
405
+ skipped: "skipped";
405
406
  pass: "pass";
406
407
  warn: "warn";
407
408
  fail: "fail";
408
- skipped: "skipped";
409
409
  }>;
410
410
  summary: z.ZodString;
411
411
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -443,10 +443,10 @@ export declare const rolloutExecutionRecordSchema: z.ZodObject<{
443
443
  phaseId: z.ZodString;
444
444
  label: z.ZodString;
445
445
  status: z.ZodEnum<{
446
+ skipped: "skipped";
446
447
  pass: "pass";
447
448
  warn: "warn";
448
449
  fail: "fail";
449
- skipped: "skipped";
450
450
  }>;
451
451
  summary: z.ZodString;
452
452
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -459,10 +459,10 @@ export declare const releaseVerificationPhaseRecordSchema: z.ZodObject<{
459
459
  phaseId: z.ZodString;
460
460
  label: z.ZodString;
461
461
  status: z.ZodEnum<{
462
+ skipped: "skipped";
462
463
  pass: "pass";
463
464
  warn: "warn";
464
465
  fail: "fail";
465
- skipped: "skipped";
466
466
  }>;
467
467
  summary: z.ZodString;
468
468
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -501,10 +501,10 @@ export declare const releaseVerificationRecordSchema: z.ZodObject<{
501
501
  phaseId: z.ZodString;
502
502
  label: z.ZodString;
503
503
  status: z.ZodEnum<{
504
+ skipped: "skipped";
504
505
  pass: "pass";
505
506
  warn: "warn";
506
507
  fail: "fail";
507
- skipped: "skipped";
508
508
  }>;
509
509
  summary: z.ZodString;
510
510
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -545,10 +545,10 @@ export declare const opsRecordRolloutExecutionRequestSchema: z.ZodObject<{
545
545
  phaseId: z.ZodString;
546
546
  label: z.ZodString;
547
547
  status: z.ZodEnum<{
548
+ skipped: "skipped";
548
549
  pass: "pass";
549
550
  warn: "warn";
550
551
  fail: "fail";
551
- skipped: "skipped";
552
552
  }>;
553
553
  summary: z.ZodString;
554
554
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -590,10 +590,10 @@ export declare const opsRecordRolloutExecutionResponseSchema: z.ZodObject<{
590
590
  phaseId: z.ZodString;
591
591
  label: z.ZodString;
592
592
  status: z.ZodEnum<{
593
+ skipped: "skipped";
593
594
  pass: "pass";
594
595
  warn: "warn";
595
596
  fail: "fail";
596
- skipped: "skipped";
597
597
  }>;
598
598
  summary: z.ZodString;
599
599
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -639,10 +639,10 @@ export declare const opsListRolloutExecutionsResponseSchema: z.ZodObject<{
639
639
  phaseId: z.ZodString;
640
640
  label: z.ZodString;
641
641
  status: z.ZodEnum<{
642
+ skipped: "skipped";
642
643
  pass: "pass";
643
644
  warn: "warn";
644
645
  fail: "fail";
645
- skipped: "skipped";
646
646
  }>;
647
647
  summary: z.ZodString;
648
648
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -687,10 +687,10 @@ export declare const opsGetRolloutExecutionResponseSchema: z.ZodObject<{
687
687
  phaseId: z.ZodString;
688
688
  label: z.ZodString;
689
689
  status: z.ZodEnum<{
690
+ skipped: "skipped";
690
691
  pass: "pass";
691
692
  warn: "warn";
692
693
  fail: "fail";
693
- skipped: "skipped";
694
694
  }>;
695
695
  summary: z.ZodString;
696
696
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -733,10 +733,10 @@ export declare const opsRecordReleaseVerificationRequestSchema: z.ZodObject<{
733
733
  phaseId: z.ZodString;
734
734
  label: z.ZodString;
735
735
  status: z.ZodEnum<{
736
+ skipped: "skipped";
736
737
  pass: "pass";
737
738
  warn: "warn";
738
739
  fail: "fail";
739
- skipped: "skipped";
740
740
  }>;
741
741
  summary: z.ZodString;
742
742
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -779,10 +779,10 @@ export declare const opsRecordReleaseVerificationResponseSchema: z.ZodObject<{
779
779
  phaseId: z.ZodString;
780
780
  label: z.ZodString;
781
781
  status: z.ZodEnum<{
782
+ skipped: "skipped";
782
783
  pass: "pass";
783
784
  warn: "warn";
784
785
  fail: "fail";
785
- skipped: "skipped";
786
786
  }>;
787
787
  summary: z.ZodString;
788
788
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -830,10 +830,10 @@ export declare const opsListReleaseVerificationsResponseSchema: z.ZodObject<{
830
830
  phaseId: z.ZodString;
831
831
  label: z.ZodString;
832
832
  status: z.ZodEnum<{
833
+ skipped: "skipped";
833
834
  pass: "pass";
834
835
  warn: "warn";
835
836
  fail: "fail";
836
- skipped: "skipped";
837
837
  }>;
838
838
  summary: z.ZodString;
839
839
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -879,10 +879,10 @@ export declare const opsGetReleaseVerificationResponseSchema: z.ZodObject<{
879
879
  phaseId: z.ZodString;
880
880
  label: z.ZodString;
881
881
  status: z.ZodEnum<{
882
+ skipped: "skipped";
882
883
  pass: "pass";
883
884
  warn: "warn";
884
885
  fail: "fail";
885
- skipped: "skipped";
886
886
  }>;
887
887
  summary: z.ZodString;
888
888
  details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -964,8 +964,8 @@ export declare const operationsReadinessResponseSchema: z.ZodObject<{
964
964
  in_memory: "in_memory";
965
965
  }>;
966
966
  applyMode: z.ZodEnum<{
967
- real: "real";
968
967
  simulated: "simulated";
968
+ real: "real";
969
969
  }>;
970
970
  environment: z.ZodString;
971
971
  migrationRoot: z.ZodString;
@@ -1146,6 +1146,158 @@ export declare const handoffRecordSchema: z.ZodObject<{
1146
1146
  hybrid: "hybrid";
1147
1147
  }>>;
1148
1148
  }, z.core.$strip>;
1149
+ export declare const outboundPlanMediaDiscoveryRecordSchema: z.ZodObject<{
1150
+ requestKind: z.ZodEnum<{
1151
+ request_media_folders: "request_media_folders";
1152
+ request_media_folder_contents: "request_media_folder_contents";
1153
+ }>;
1154
+ status: z.ZodEnum<{
1155
+ served: "served";
1156
+ rejected: "rejected";
1157
+ }>;
1158
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1159
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1160
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1161
+ document: "document";
1162
+ image: "image";
1163
+ link: "link";
1164
+ deck: "deck";
1165
+ }>>>;
1166
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1167
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1168
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
1169
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1170
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1171
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1172
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1173
+ }, z.core.$strip>;
1174
+ export declare const outboundPlanSelectedAssetSchema: z.ZodObject<{
1175
+ assetId: z.ZodString;
1176
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1177
+ kind: z.ZodEnum<{
1178
+ document: "document";
1179
+ image: "image";
1180
+ link: "link";
1181
+ deck: "deck";
1182
+ }>;
1183
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1184
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1185
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1186
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1187
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1188
+ }, z.core.$strip>;
1189
+ export declare const outboundPlanStepDiagnosticsSchema: z.ZodObject<{
1190
+ stepId: z.ZodString;
1191
+ sequence: z.ZodNumber;
1192
+ stepType: z.ZodEnum<{
1193
+ send_text: "send_text";
1194
+ send_media: "send_media";
1195
+ send_media_group: "send_media_group";
1196
+ send_document: "send_document";
1197
+ send_link: "send_link";
1198
+ }>;
1199
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1200
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1201
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1202
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1203
+ sent: "sent";
1204
+ simulated: "simulated";
1205
+ skipped: "skipped";
1206
+ failed: "failed";
1207
+ }>>>;
1208
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1209
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1210
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1211
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1212
+ }, z.core.$strip>;
1213
+ export declare const outboundPlanDiagnosticsSchema: z.ZodObject<{
1214
+ traceId: z.ZodString;
1215
+ planId: z.ZodString;
1216
+ kind: z.ZodEnum<{
1217
+ draft_outbound_plan: "draft_outbound_plan";
1218
+ final_outbound_plan: "final_outbound_plan";
1219
+ }>;
1220
+ status: z.ZodEnum<{
1221
+ superseded: "superseded";
1222
+ sent: "sent";
1223
+ failed: "failed";
1224
+ draft: "draft";
1225
+ partial: "partial";
1226
+ }>;
1227
+ basedOnCustomerMessageId: z.ZodString;
1228
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1229
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1230
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1231
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1232
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1233
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
1234
+ requestKind: z.ZodEnum<{
1235
+ request_media_folders: "request_media_folders";
1236
+ request_media_folder_contents: "request_media_folder_contents";
1237
+ }>;
1238
+ status: z.ZodEnum<{
1239
+ served: "served";
1240
+ rejected: "rejected";
1241
+ }>;
1242
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1243
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1244
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1245
+ document: "document";
1246
+ image: "image";
1247
+ link: "link";
1248
+ deck: "deck";
1249
+ }>>>;
1250
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1251
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1252
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
1253
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1254
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1255
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1256
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1257
+ }, z.core.$strip>>>;
1258
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1259
+ assetId: z.ZodString;
1260
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1261
+ kind: z.ZodEnum<{
1262
+ document: "document";
1263
+ image: "image";
1264
+ link: "link";
1265
+ deck: "deck";
1266
+ }>;
1267
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1268
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1269
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1270
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1271
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1272
+ }, z.core.$strip>>>;
1273
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
1274
+ stepId: z.ZodString;
1275
+ sequence: z.ZodNumber;
1276
+ stepType: z.ZodEnum<{
1277
+ send_text: "send_text";
1278
+ send_media: "send_media";
1279
+ send_media_group: "send_media_group";
1280
+ send_document: "send_document";
1281
+ send_link: "send_link";
1282
+ }>;
1283
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1284
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1285
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1286
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1287
+ sent: "sent";
1288
+ simulated: "simulated";
1289
+ skipped: "skipped";
1290
+ failed: "failed";
1291
+ }>>>;
1292
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1293
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1294
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1295
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1296
+ }, z.core.$strip>>>;
1297
+ createdAt: z.ZodString;
1298
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1299
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1300
+ }, z.core.$strip>;
1149
1301
  export declare const opsListConversationFeedRequestSchema: z.ZodObject<{
1150
1302
  status: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1151
1303
  active: "active";
@@ -1404,6 +1556,7 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1404
1556
  "operator.note.added": "operator.note.added";
1405
1557
  "channel.outbound.skipped": "channel.outbound.skipped";
1406
1558
  "channel.outbound.sent": "channel.outbound.sent";
1559
+ "channel.outbound.failed": "channel.outbound.failed";
1407
1560
  "followup.classified": "followup.classified";
1408
1561
  "followup.task.scheduled": "followup.task.scheduled";
1409
1562
  "followup.task.completed": "followup.task.completed";
@@ -1457,9 +1610,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1457
1610
  message_review: "message_review";
1458
1611
  }>;
1459
1612
  status: z.ZodEnum<{
1460
- accepted: "accepted";
1461
1613
  active: "active";
1462
1614
  viewed: "viewed";
1615
+ accepted: "accepted";
1463
1616
  dismissed: "dismissed";
1464
1617
  superseded: "superseded";
1465
1618
  }>;
@@ -1528,6 +1681,45 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1528
1681
  }>>;
1529
1682
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
1530
1683
  }, z.core.$strip>;
1684
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1685
+ planId: z.ZodString;
1686
+ conversationId: z.ZodString;
1687
+ basedOnCustomerMessageId: z.ZodString;
1688
+ kind: z.ZodEnum<{
1689
+ draft_outbound_plan: "draft_outbound_plan";
1690
+ final_outbound_plan: "final_outbound_plan";
1691
+ }>;
1692
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1693
+ stepId: z.ZodString;
1694
+ sequence: z.ZodNumber;
1695
+ type: z.ZodLiteral<"send_text">;
1696
+ text: z.ZodString;
1697
+ }, z.core.$strip>, z.ZodObject<{
1698
+ stepId: z.ZodString;
1699
+ sequence: z.ZodNumber;
1700
+ type: z.ZodLiteral<"send_media">;
1701
+ assetId: z.ZodString;
1702
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1703
+ }, z.core.$strip>, z.ZodObject<{
1704
+ stepId: z.ZodString;
1705
+ sequence: z.ZodNumber;
1706
+ type: z.ZodLiteral<"send_media_group">;
1707
+ assetIds: z.ZodArray<z.ZodString>;
1708
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1709
+ }, z.core.$strip>, z.ZodObject<{
1710
+ stepId: z.ZodString;
1711
+ sequence: z.ZodNumber;
1712
+ type: z.ZodLiteral<"send_document">;
1713
+ assetId: z.ZodString;
1714
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1715
+ }, z.core.$strip>, z.ZodObject<{
1716
+ stepId: z.ZodString;
1717
+ sequence: z.ZodNumber;
1718
+ type: z.ZodLiteral<"send_link">;
1719
+ assetId: z.ZodString;
1720
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1721
+ }, z.core.$strip>], "type">>;
1722
+ }, z.core.$strip>>>;
1531
1723
  classification: z.ZodObject<{
1532
1724
  primaryIntent: z.ZodString;
1533
1725
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1644,6 +1836,34 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1644
1836
  heuristic: "heuristic";
1645
1837
  model: "model";
1646
1838
  }>;
1839
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1840
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1841
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1842
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
1843
+ requestKind: z.ZodEnum<{
1844
+ request_media_folders: "request_media_folders";
1845
+ request_media_folder_contents: "request_media_folder_contents";
1846
+ }>;
1847
+ status: z.ZodEnum<{
1848
+ served: "served";
1849
+ rejected: "rejected";
1850
+ }>;
1851
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1852
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1853
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1854
+ document: "document";
1855
+ image: "image";
1856
+ link: "link";
1857
+ deck: "deck";
1858
+ }>>>;
1859
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1860
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1861
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
1862
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1863
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1864
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1865
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1866
+ }, z.core.$strip>>>;
1647
1867
  }, z.core.$strip>>>;
1648
1868
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1649
1869
  stage: z.ZodEnum<{
@@ -1658,8 +1878,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1658
1878
  corrective_retry: "corrective_retry";
1659
1879
  }>;
1660
1880
  status: z.ZodEnum<{
1661
- succeeded: "succeeded";
1662
1881
  failed: "failed";
1882
+ succeeded: "succeeded";
1663
1883
  }>;
1664
1884
  promptMeta: z.ZodObject<{
1665
1885
  promptId: z.ZodString;
@@ -1857,8 +2077,8 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1857
2077
  confidence: z.ZodNumber;
1858
2078
  action: z.ZodEnum<{
1859
2079
  applied: "applied";
1860
- merged: "merged";
1861
2080
  rejected: "rejected";
2081
+ merged: "merged";
1862
2082
  noop: "noop";
1863
2083
  }>;
1864
2084
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1875,10 +2095,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
1875
2095
  title: z.ZodString;
1876
2096
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1877
2097
  kind: z.ZodEnum<{
2098
+ bundle: "bundle";
2099
+ service: "service";
1878
2100
  base: "base";
1879
2101
  option: "option";
1880
- service: "service";
1881
- bundle: "bundle";
1882
2102
  }>;
1883
2103
  status: z.ZodEnum<{
1884
2104
  active: "active";
@@ -2022,10 +2242,10 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2022
2242
  productCode: z.ZodString;
2023
2243
  productTitle: z.ZodString;
2024
2244
  productKind: z.ZodEnum<{
2245
+ bundle: "bundle";
2246
+ service: "service";
2025
2247
  base: "base";
2026
2248
  option: "option";
2027
- service: "service";
2028
- bundle: "bundle";
2029
2249
  }>;
2030
2250
  parentItemId: z.ZodNullable<z.ZodString>;
2031
2251
  quantity: z.ZodNumber;
@@ -2085,9 +2305,9 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2085
2305
  operator_callback: "operator_callback";
2086
2306
  }>;
2087
2307
  status: z.ZodEnum<{
2308
+ pending: "pending";
2088
2309
  completed: "completed";
2089
2310
  cancelled: "cancelled";
2090
- pending: "pending";
2091
2311
  }>;
2092
2312
  policyAction: z.ZodEnum<{
2093
2313
  schedule_ai_reactivation: "schedule_ai_reactivation";
@@ -2165,6 +2385,94 @@ export declare const opsGetConversationWorkspaceResponseSchema: z.ZodObject<{
2165
2385
  hybrid: "hybrid";
2166
2386
  }>>;
2167
2387
  }, z.core.$strip>>>;
2388
+ outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
2389
+ traceId: z.ZodString;
2390
+ planId: z.ZodString;
2391
+ kind: z.ZodEnum<{
2392
+ draft_outbound_plan: "draft_outbound_plan";
2393
+ final_outbound_plan: "final_outbound_plan";
2394
+ }>;
2395
+ status: z.ZodEnum<{
2396
+ superseded: "superseded";
2397
+ sent: "sent";
2398
+ failed: "failed";
2399
+ draft: "draft";
2400
+ partial: "partial";
2401
+ }>;
2402
+ basedOnCustomerMessageId: z.ZodString;
2403
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2404
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2405
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2406
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2407
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2408
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
2409
+ requestKind: z.ZodEnum<{
2410
+ request_media_folders: "request_media_folders";
2411
+ request_media_folder_contents: "request_media_folder_contents";
2412
+ }>;
2413
+ status: z.ZodEnum<{
2414
+ served: "served";
2415
+ rejected: "rejected";
2416
+ }>;
2417
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2418
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2419
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2420
+ document: "document";
2421
+ image: "image";
2422
+ link: "link";
2423
+ deck: "deck";
2424
+ }>>>;
2425
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2426
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2427
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
2428
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2429
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2430
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2431
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2432
+ }, z.core.$strip>>>;
2433
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2434
+ assetId: z.ZodString;
2435
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2436
+ kind: z.ZodEnum<{
2437
+ document: "document";
2438
+ image: "image";
2439
+ link: "link";
2440
+ deck: "deck";
2441
+ }>;
2442
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2443
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2444
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2445
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2446
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2447
+ }, z.core.$strip>>>;
2448
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2449
+ stepId: z.ZodString;
2450
+ sequence: z.ZodNumber;
2451
+ stepType: z.ZodEnum<{
2452
+ send_text: "send_text";
2453
+ send_media: "send_media";
2454
+ send_media_group: "send_media_group";
2455
+ send_document: "send_document";
2456
+ send_link: "send_link";
2457
+ }>;
2458
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2459
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2460
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2461
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2462
+ sent: "sent";
2463
+ simulated: "simulated";
2464
+ skipped: "skipped";
2465
+ failed: "failed";
2466
+ }>>>;
2467
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2468
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2469
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2470
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2471
+ }, z.core.$strip>>>;
2472
+ createdAt: z.ZodString;
2473
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2474
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2475
+ }, z.core.$strip>>>;
2168
2476
  }, z.core.$strip>;
2169
2477
  export declare const opsSetOwnershipModeRequestSchema: z.ZodObject<{
2170
2478
  conversationId: z.ZodString;
@@ -2251,6 +2559,7 @@ export declare const opsSetOwnershipModeResponseSchema: z.ZodObject<{
2251
2559
  "operator.note.added": "operator.note.added";
2252
2560
  "channel.outbound.skipped": "channel.outbound.skipped";
2253
2561
  "channel.outbound.sent": "channel.outbound.sent";
2562
+ "channel.outbound.failed": "channel.outbound.failed";
2254
2563
  "followup.classified": "followup.classified";
2255
2564
  "followup.task.scheduled": "followup.task.scheduled";
2256
2565
  "followup.task.completed": "followup.task.completed";
@@ -2430,6 +2739,7 @@ export declare const opsStartHandoffResponseSchema: z.ZodObject<{
2430
2739
  "operator.note.added": "operator.note.added";
2431
2740
  "channel.outbound.skipped": "channel.outbound.skipped";
2432
2741
  "channel.outbound.sent": "channel.outbound.sent";
2742
+ "channel.outbound.failed": "channel.outbound.failed";
2433
2743
  "followup.classified": "followup.classified";
2434
2744
  "followup.task.scheduled": "followup.task.scheduled";
2435
2745
  "followup.task.completed": "followup.task.completed";
@@ -2707,6 +3017,7 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2707
3017
  "operator.note.added": "operator.note.added";
2708
3018
  "channel.outbound.skipped": "channel.outbound.skipped";
2709
3019
  "channel.outbound.sent": "channel.outbound.sent";
3020
+ "channel.outbound.failed": "channel.outbound.failed";
2710
3021
  "followup.classified": "followup.classified";
2711
3022
  "followup.task.scheduled": "followup.task.scheduled";
2712
3023
  "followup.task.completed": "followup.task.completed";
@@ -2760,9 +3071,9 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2760
3071
  message_review: "message_review";
2761
3072
  }>;
2762
3073
  status: z.ZodEnum<{
2763
- accepted: "accepted";
2764
3074
  active: "active";
2765
3075
  viewed: "viewed";
3076
+ accepted: "accepted";
2766
3077
  dismissed: "dismissed";
2767
3078
  superseded: "superseded";
2768
3079
  }>;
@@ -2831,6 +3142,45 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2831
3142
  }>>;
2832
3143
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
2833
3144
  }, z.core.$strip>;
3145
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3146
+ planId: z.ZodString;
3147
+ conversationId: z.ZodString;
3148
+ basedOnCustomerMessageId: z.ZodString;
3149
+ kind: z.ZodEnum<{
3150
+ draft_outbound_plan: "draft_outbound_plan";
3151
+ final_outbound_plan: "final_outbound_plan";
3152
+ }>;
3153
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3154
+ stepId: z.ZodString;
3155
+ sequence: z.ZodNumber;
3156
+ type: z.ZodLiteral<"send_text">;
3157
+ text: z.ZodString;
3158
+ }, z.core.$strip>, z.ZodObject<{
3159
+ stepId: z.ZodString;
3160
+ sequence: z.ZodNumber;
3161
+ type: z.ZodLiteral<"send_media">;
3162
+ assetId: z.ZodString;
3163
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3164
+ }, z.core.$strip>, z.ZodObject<{
3165
+ stepId: z.ZodString;
3166
+ sequence: z.ZodNumber;
3167
+ type: z.ZodLiteral<"send_media_group">;
3168
+ assetIds: z.ZodArray<z.ZodString>;
3169
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3170
+ }, z.core.$strip>, z.ZodObject<{
3171
+ stepId: z.ZodString;
3172
+ sequence: z.ZodNumber;
3173
+ type: z.ZodLiteral<"send_document">;
3174
+ assetId: z.ZodString;
3175
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3176
+ }, z.core.$strip>, z.ZodObject<{
3177
+ stepId: z.ZodString;
3178
+ sequence: z.ZodNumber;
3179
+ type: z.ZodLiteral<"send_link">;
3180
+ assetId: z.ZodString;
3181
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3182
+ }, z.core.$strip>], "type">>;
3183
+ }, z.core.$strip>>>;
2834
3184
  classification: z.ZodObject<{
2835
3185
  primaryIntent: z.ZodString;
2836
3186
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2947,6 +3297,34 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2947
3297
  heuristic: "heuristic";
2948
3298
  model: "model";
2949
3299
  }>;
3300
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3301
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3302
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3303
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
3304
+ requestKind: z.ZodEnum<{
3305
+ request_media_folders: "request_media_folders";
3306
+ request_media_folder_contents: "request_media_folder_contents";
3307
+ }>;
3308
+ status: z.ZodEnum<{
3309
+ served: "served";
3310
+ rejected: "rejected";
3311
+ }>;
3312
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3313
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3314
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3315
+ document: "document";
3316
+ image: "image";
3317
+ link: "link";
3318
+ deck: "deck";
3319
+ }>>>;
3320
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3321
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3322
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
3323
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3324
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3325
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3326
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3327
+ }, z.core.$strip>>>;
2950
3328
  }, z.core.$strip>>>;
2951
3329
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2952
3330
  stage: z.ZodEnum<{
@@ -2961,8 +3339,8 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
2961
3339
  corrective_retry: "corrective_retry";
2962
3340
  }>;
2963
3341
  status: z.ZodEnum<{
2964
- succeeded: "succeeded";
2965
3342
  failed: "failed";
3343
+ succeeded: "succeeded";
2966
3344
  }>;
2967
3345
  promptMeta: z.ZodObject<{
2968
3346
  promptId: z.ZodString;
@@ -3036,6 +3414,7 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3036
3414
  "operator.note.added": "operator.note.added";
3037
3415
  "channel.outbound.skipped": "channel.outbound.skipped";
3038
3416
  "channel.outbound.sent": "channel.outbound.sent";
3417
+ "channel.outbound.failed": "channel.outbound.failed";
3039
3418
  "followup.classified": "followup.classified";
3040
3419
  "followup.task.scheduled": "followup.task.scheduled";
3041
3420
  "followup.task.completed": "followup.task.completed";
@@ -3068,9 +3447,9 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3068
3447
  message_review: "message_review";
3069
3448
  }>;
3070
3449
  status: z.ZodEnum<{
3071
- accepted: "accepted";
3072
3450
  active: "active";
3073
3451
  viewed: "viewed";
3452
+ accepted: "accepted";
3074
3453
  dismissed: "dismissed";
3075
3454
  superseded: "superseded";
3076
3455
  }>;
@@ -3096,10 +3475,21 @@ export declare const opsSendOperatorMessageResponseSchema: z.ZodObject<{
3096
3475
  manual: "manual";
3097
3476
  }>;
3098
3477
  deliveryStatus: z.ZodEnum<{
3478
+ sent: "sent";
3099
3479
  simulated: "simulated";
3100
3480
  skipped: "skipped";
3101
- sent: "sent";
3481
+ failed: "failed";
3102
3482
  }>;
3483
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3484
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3485
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3486
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
3487
+ send_text: "send_text";
3488
+ send_media: "send_media";
3489
+ send_media_group: "send_media_group";
3490
+ send_document: "send_document";
3491
+ send_link: "send_link";
3492
+ }>>>;
3103
3493
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3104
3494
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3105
3495
  }, z.core.$strip>>;
@@ -3240,8 +3630,8 @@ export declare const opsGetReadinessResponseSchema: z.ZodObject<{
3240
3630
  in_memory: "in_memory";
3241
3631
  }>;
3242
3632
  applyMode: z.ZodEnum<{
3243
- real: "real";
3244
3633
  simulated: "simulated";
3634
+ real: "real";
3245
3635
  }>;
3246
3636
  environment: z.ZodString;
3247
3637
  migrationRoot: z.ZodString;
@@ -3297,8 +3687,8 @@ export declare const opsGetSchemaStatusResponseSchema: z.ZodObject<{
3297
3687
  in_memory: "in_memory";
3298
3688
  }>;
3299
3689
  applyMode: z.ZodEnum<{
3300
- real: "real";
3301
3690
  simulated: "simulated";
3691
+ real: "real";
3302
3692
  }>;
3303
3693
  environment: z.ZodString;
3304
3694
  migrationRoot: z.ZodString;
@@ -3368,8 +3758,8 @@ export declare const opsApplySchemaMigrationsResponseSchema: z.ZodObject<{
3368
3758
  in_memory: "in_memory";
3369
3759
  }>;
3370
3760
  applyMode: z.ZodEnum<{
3371
- real: "real";
3372
3761
  simulated: "simulated";
3762
+ real: "real";
3373
3763
  }>;
3374
3764
  environment: z.ZodString;
3375
3765
  migrationRoot: z.ZodString;
@@ -3970,8 +4360,8 @@ export declare const opsRefreshTelegramIntegrationResponseSchema: z.ZodObject<{
3970
4360
  in_memory: "in_memory";
3971
4361
  }>;
3972
4362
  applyMode: z.ZodEnum<{
3973
- real: "real";
3974
4363
  simulated: "simulated";
4364
+ real: "real";
3975
4365
  }>;
3976
4366
  environment: z.ZodString;
3977
4367
  migrationRoot: z.ZodString;
@@ -4145,8 +4535,8 @@ export declare const opsRefreshRuntimeProviderResponseSchema: z.ZodObject<{
4145
4535
  in_memory: "in_memory";
4146
4536
  }>;
4147
4537
  applyMode: z.ZodEnum<{
4148
- real: "real";
4149
4538
  simulated: "simulated";
4539
+ real: "real";
4150
4540
  }>;
4151
4541
  environment: z.ZodString;
4152
4542
  migrationRoot: z.ZodString;
@@ -4305,8 +4695,8 @@ export declare const opsReconcileBusinessResponseSchema: z.ZodObject<{
4305
4695
  in_memory: "in_memory";
4306
4696
  }>;
4307
4697
  applyMode: z.ZodEnum<{
4308
- real: "real";
4309
4698
  simulated: "simulated";
4699
+ real: "real";
4310
4700
  }>;
4311
4701
  environment: z.ZodString;
4312
4702
  migrationRoot: z.ZodString;
@@ -4360,6 +4750,10 @@ export type ConversationFeedItem = z.infer<typeof conversationFeedItemSchema>;
4360
4750
  export type LinkedConversationSummary = z.infer<typeof linkedConversationSummarySchema>;
4361
4751
  export type OperatorNote = z.infer<typeof operatorNoteSchema>;
4362
4752
  export type HandoffRecord = z.infer<typeof handoffRecordSchema>;
4753
+ export type OutboundPlanMediaDiscoveryRecord = z.infer<typeof outboundPlanMediaDiscoveryRecordSchema>;
4754
+ export type OutboundPlanSelectedAsset = z.infer<typeof outboundPlanSelectedAssetSchema>;
4755
+ export type OutboundPlanStepDiagnostics = z.infer<typeof outboundPlanStepDiagnosticsSchema>;
4756
+ export type OutboundPlanDiagnostics = z.infer<typeof outboundPlanDiagnosticsSchema>;
4363
4757
  export type OpsListConversationFeedInput = z.infer<typeof opsListConversationFeedRequestSchema>;
4364
4758
  export type OpsListConversationFeedOutput = z.infer<typeof opsListConversationFeedResponseSchema>;
4365
4759
  export type OpsGetConversationWorkspaceInput = z.infer<typeof opsGetConversationWorkspaceRequestSchema>;