@selleragent/api-contract 0.1.0 → 0.2.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.
@@ -111,6 +111,7 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
111
111
  catalog_relations: z.ZodString;
112
112
  telegram_bots: z.ZodString;
113
113
  telegram_business_accounts: z.ZodString;
114
+ media_root: z.ZodOptional<z.ZodString>;
114
115
  strategies_root: z.ZodString;
115
116
  policies_root: z.ZodString;
116
117
  prompt_overrides: z.ZodString;
@@ -126,9 +127,126 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
126
127
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
127
128
  }, z.core.$strip>>;
128
129
  }, z.core.$strip>;
129
- export declare const businessProfileProjectFileSchema: z.ZodObject<{
130
+ export declare const businessProfileProjectFileSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
130
131
  relativePath: z.ZodString;
132
+ contentKind: z.ZodLiteral<"text">;
131
133
  content: z.ZodString;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ relativePath: z.ZodString;
136
+ contentKind: z.ZodLiteral<"binary">;
137
+ contentBase64: z.ZodString;
138
+ byteSize: z.ZodNumber;
139
+ sha256: z.ZodString;
140
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ relativePath: z.ZodString;
143
+ content: z.ZodString;
144
+ }, z.core.$strip>]>, z.ZodTransform<{
145
+ relativePath: string;
146
+ contentKind: "text";
147
+ content: string;
148
+ } | {
149
+ relativePath: string;
150
+ contentKind: "binary";
151
+ contentBase64: string;
152
+ byteSize: number;
153
+ sha256: string;
154
+ mimeType: string | null;
155
+ }, {
156
+ relativePath: string;
157
+ contentKind: "text";
158
+ content: string;
159
+ } | {
160
+ relativePath: string;
161
+ contentKind: "binary";
162
+ contentBase64: string;
163
+ byteSize: number;
164
+ sha256: string;
165
+ mimeType: string | null;
166
+ } | {
167
+ relativePath: string;
168
+ content: string;
169
+ }>>;
170
+ export declare const businessProfileMediaAssetKindSchema: z.ZodEnum<{
171
+ image: "image";
172
+ document: "document";
173
+ link: "link";
174
+ deck: "deck";
175
+ }>;
176
+ export declare const businessProfileMediaFolderSchema: z.ZodObject<{
177
+ folderKey: z.ZodString;
178
+ relativePath: z.ZodString;
179
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
180
+ purpose: z.ZodString;
181
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
182
+ assetCount: z.ZodNumber;
183
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
184
+ image: "image";
185
+ document: "document";
186
+ link: "link";
187
+ deck: "deck";
188
+ }>>>;
189
+ }, z.core.$strip>;
190
+ export declare const businessProfileMediaAssetSchema: z.ZodObject<{
191
+ assetId: z.ZodString;
192
+ folderKey: z.ZodString;
193
+ kind: z.ZodEnum<{
194
+ image: "image";
195
+ document: "document";
196
+ link: "link";
197
+ deck: "deck";
198
+ }>;
199
+ what: z.ZodString;
200
+ purpose: z.ZodString;
201
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
202
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
203
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
204
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
205
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
206
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
207
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
208
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
209
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
210
+ }, z.core.$strip>;
211
+ export declare const businessProfileMediaRegistrySchema: z.ZodObject<{
212
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
213
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
214
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
215
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
216
+ folderKey: z.ZodString;
217
+ relativePath: z.ZodString;
218
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
219
+ purpose: z.ZodString;
220
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
221
+ assetCount: z.ZodNumber;
222
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
223
+ image: "image";
224
+ document: "document";
225
+ link: "link";
226
+ deck: "deck";
227
+ }>>>;
228
+ }, z.core.$strip>>>;
229
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
230
+ assetId: z.ZodString;
231
+ folderKey: z.ZodString;
232
+ kind: z.ZodEnum<{
233
+ image: "image";
234
+ document: "document";
235
+ link: "link";
236
+ deck: "deck";
237
+ }>;
238
+ what: z.ZodString;
239
+ purpose: z.ZodString;
240
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
241
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
242
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
243
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
244
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
245
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
246
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
247
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
248
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
249
+ }, z.core.$strip>>>;
132
250
  }, z.core.$strip>;
133
251
  export declare const businessProfileProjectSecretFieldSchema: z.ZodEnum<{
134
252
  botToken: "botToken";
@@ -160,6 +278,7 @@ export declare const businessProfileProjectSecretStatusSchema: z.ZodObject<{
160
278
  export declare const businessProfileProjectApplyDeclarationSchema: z.ZodObject<{
161
279
  kind: z.ZodEnum<{
162
280
  telegram_bot: "telegram_bot";
281
+ media_folder: "media_folder";
163
282
  }>;
164
283
  key: z.ZodString;
165
284
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -184,6 +303,7 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
184
303
  catalog_relations: z.ZodString;
185
304
  telegram_bots: z.ZodString;
186
305
  telegram_business_accounts: z.ZodString;
306
+ media_root: z.ZodOptional<z.ZodString>;
187
307
  strategies_root: z.ZodString;
188
308
  policies_root: z.ZodString;
189
309
  prompt_overrides: z.ZodString;
@@ -199,10 +319,46 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
199
319
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
200
320
  }, z.core.$strip>>;
201
321
  }, z.core.$strip>;
202
- files: z.ZodArray<z.ZodObject<{
322
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
203
323
  relativePath: z.ZodString;
324
+ contentKind: z.ZodLiteral<"text">;
204
325
  content: z.ZodString;
205
- }, z.core.$strip>>;
326
+ }, z.core.$strip>, z.ZodObject<{
327
+ relativePath: z.ZodString;
328
+ contentKind: z.ZodLiteral<"binary">;
329
+ contentBase64: z.ZodString;
330
+ byteSize: z.ZodNumber;
331
+ sha256: z.ZodString;
332
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ relativePath: z.ZodString;
335
+ content: z.ZodString;
336
+ }, z.core.$strip>]>, z.ZodTransform<{
337
+ relativePath: string;
338
+ contentKind: "text";
339
+ content: string;
340
+ } | {
341
+ relativePath: string;
342
+ contentKind: "binary";
343
+ contentBase64: string;
344
+ byteSize: number;
345
+ sha256: string;
346
+ mimeType: string | null;
347
+ }, {
348
+ relativePath: string;
349
+ contentKind: "text";
350
+ content: string;
351
+ } | {
352
+ relativePath: string;
353
+ contentKind: "binary";
354
+ contentBase64: string;
355
+ byteSize: number;
356
+ sha256: string;
357
+ mimeType: string | null;
358
+ } | {
359
+ relativePath: string;
360
+ content: string;
361
+ }>>>;
206
362
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
207
363
  integrationKey: z.ZodString;
208
364
  field: z.ZodEnum<{
@@ -391,25 +547,37 @@ export declare const authCliLoginIntentStatusSchema: z.ZodEnum<{
391
547
  pending: "pending";
392
548
  completed: "completed";
393
549
  expired: "expired";
550
+ abandoned: "abandoned";
551
+ }>;
552
+ export declare const authCliLoginAttemptTokenSchema: z.ZodString;
553
+ export declare const authCliLoginIntentDeliveryModeSchema: z.ZodEnum<{
554
+ magic_link: "magic_link";
555
+ browser_flow: "browser_flow";
556
+ browser_session: "browser_session";
557
+ synthetic_local: "synthetic_local";
394
558
  }>;
395
- export declare const authCliLoginUserCodeSchema: z.ZodString;
396
559
  export declare const authCliLoginIntentSchema: z.ZodObject<{
397
560
  intentId: z.ZodString;
398
- email: z.ZodString;
399
- userCode: z.ZodString;
561
+ email: z.ZodNullable<z.ZodString>;
562
+ browserToken: z.ZodString;
400
563
  environment: z.ZodString;
401
564
  status: z.ZodEnum<{
402
565
  pending: "pending";
403
566
  completed: "completed";
404
567
  expired: "expired";
568
+ abandoned: "abandoned";
405
569
  }>;
406
570
  deliveryMode: z.ZodEnum<{
407
571
  magic_link: "magic_link";
572
+ browser_flow: "browser_flow";
573
+ browser_session: "browser_session";
408
574
  synthetic_local: "synthetic_local";
409
575
  }>;
410
576
  requestedAt: z.ZodString;
411
577
  expiresAt: z.ZodString;
412
578
  completedAt: z.ZodNullable<z.ZodString>;
579
+ lastSeenAt: z.ZodNullable<z.ZodString>;
580
+ linkSentAt: z.ZodNullable<z.ZodString>;
413
581
  nextPath: z.ZodNullable<z.ZodString>;
414
582
  sessionToken: z.ZodNullable<z.ZodString>;
415
583
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -461,27 +629,32 @@ export declare const authCliLoginIntentSchema: z.ZodObject<{
461
629
  }, z.core.$strip>>;
462
630
  }, z.core.$strip>;
463
631
  export declare const authStartCliLoginIntentRequestSchema: z.ZodObject<{
464
- email: z.ZodString;
632
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
633
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
634
  }, z.core.$strip>;
467
635
  export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
468
636
  intent: z.ZodObject<{
469
637
  intentId: z.ZodString;
470
- email: z.ZodString;
471
- userCode: z.ZodString;
638
+ email: z.ZodNullable<z.ZodString>;
639
+ browserToken: z.ZodString;
472
640
  environment: z.ZodString;
473
641
  status: z.ZodEnum<{
474
642
  pending: "pending";
475
643
  completed: "completed";
476
644
  expired: "expired";
645
+ abandoned: "abandoned";
477
646
  }>;
478
647
  deliveryMode: z.ZodEnum<{
479
648
  magic_link: "magic_link";
649
+ browser_flow: "browser_flow";
650
+ browser_session: "browser_session";
480
651
  synthetic_local: "synthetic_local";
481
652
  }>;
482
653
  requestedAt: z.ZodString;
483
654
  expiresAt: z.ZodString;
484
655
  completedAt: z.ZodNullable<z.ZodString>;
656
+ lastSeenAt: z.ZodNullable<z.ZodString>;
657
+ linkSentAt: z.ZodNullable<z.ZodString>;
485
658
  nextPath: z.ZodNullable<z.ZodString>;
486
659
  sessionToken: z.ZodNullable<z.ZodString>;
487
660
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -532,33 +705,37 @@ export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
532
705
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
533
706
  }, z.core.$strip>>;
534
707
  }, z.core.$strip>;
535
- userCode: z.ZodString;
536
- verificationUri: z.ZodString;
537
- verificationUriComplete: z.ZodString;
708
+ authorizationUrl: z.ZodString;
538
709
  pollAfterSeconds: z.ZodNumber;
539
710
  instructions: z.ZodArray<z.ZodString>;
540
711
  }, z.core.$strip>;
541
712
  export declare const authGetCliLoginIntentRequestSchema: z.ZodObject<{
542
713
  intentId: z.ZodString;
714
+ markActive: z.ZodOptional<z.ZodBoolean>;
543
715
  }, z.core.$strip>;
544
716
  export declare const authGetCliLoginIntentResponseSchema: z.ZodObject<{
545
717
  intent: z.ZodObject<{
546
718
  intentId: z.ZodString;
547
- email: z.ZodString;
548
- userCode: z.ZodString;
719
+ email: z.ZodNullable<z.ZodString>;
720
+ browserToken: z.ZodString;
549
721
  environment: z.ZodString;
550
722
  status: z.ZodEnum<{
551
723
  pending: "pending";
552
724
  completed: "completed";
553
725
  expired: "expired";
726
+ abandoned: "abandoned";
554
727
  }>;
555
728
  deliveryMode: z.ZodEnum<{
556
729
  magic_link: "magic_link";
730
+ browser_flow: "browser_flow";
731
+ browser_session: "browser_session";
557
732
  synthetic_local: "synthetic_local";
558
733
  }>;
559
734
  requestedAt: z.ZodString;
560
735
  expiresAt: z.ZodString;
561
736
  completedAt: z.ZodNullable<z.ZodString>;
737
+ lastSeenAt: z.ZodNullable<z.ZodString>;
738
+ linkSentAt: z.ZodNullable<z.ZodString>;
562
739
  nextPath: z.ZodNullable<z.ZodString>;
563
740
  sessionToken: z.ZodNullable<z.ZodString>;
564
741
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -610,59 +787,172 @@ export declare const authGetCliLoginIntentResponseSchema: z.ZodObject<{
610
787
  }, z.core.$strip>>;
611
788
  }, z.core.$strip>;
612
789
  }, z.core.$strip>;
613
- export declare const authCliDeviceLoginStatusRequestSchema: z.ZodObject<{
614
- userCode: z.ZodString;
790
+ export declare const authAbandonCliLoginIntentRequestSchema: z.ZodObject<{
791
+ intentId: z.ZodString;
615
792
  }, z.core.$strip>;
616
- export declare const authCliDeviceLoginStatusSchema: z.ZodObject<{
617
- userCode: z.ZodString;
618
- emailHint: z.ZodString;
793
+ export declare const authAbandonCliLoginIntentResponseSchema: z.ZodObject<{
794
+ intent: z.ZodObject<{
795
+ intentId: z.ZodString;
796
+ email: z.ZodNullable<z.ZodString>;
797
+ browserToken: z.ZodString;
798
+ environment: z.ZodString;
799
+ status: z.ZodEnum<{
800
+ pending: "pending";
801
+ completed: "completed";
802
+ expired: "expired";
803
+ abandoned: "abandoned";
804
+ }>;
805
+ deliveryMode: z.ZodEnum<{
806
+ magic_link: "magic_link";
807
+ browser_flow: "browser_flow";
808
+ browser_session: "browser_session";
809
+ synthetic_local: "synthetic_local";
810
+ }>;
811
+ requestedAt: z.ZodString;
812
+ expiresAt: z.ZodString;
813
+ completedAt: z.ZodNullable<z.ZodString>;
814
+ lastSeenAt: z.ZodNullable<z.ZodString>;
815
+ linkSentAt: z.ZodNullable<z.ZodString>;
816
+ nextPath: z.ZodNullable<z.ZodString>;
817
+ sessionToken: z.ZodNullable<z.ZodString>;
818
+ accessContext: z.ZodNullable<z.ZodObject<{
819
+ authenticated: z.ZodBoolean;
820
+ environment: z.ZodString;
821
+ operator: z.ZodNullable<z.ZodObject<{
822
+ operatorId: z.ZodString;
823
+ email: z.ZodString;
824
+ displayName: z.ZodNullable<z.ZodString>;
825
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
826
+ status: z.ZodEnum<{
827
+ active: "active";
828
+ disabled: "disabled";
829
+ }>;
830
+ createdAt: z.ZodString;
831
+ updatedAt: z.ZodString;
832
+ }, z.core.$strip>>;
833
+ memberships: z.ZodArray<z.ZodObject<{
834
+ membershipId: z.ZodString;
835
+ operatorId: z.ZodString;
836
+ workspaceId: z.ZodString;
837
+ workspaceSlug: z.ZodString;
838
+ workspaceName: z.ZodString;
839
+ role: z.ZodEnum<{
840
+ workspace_admin: "workspace_admin";
841
+ operator: "operator";
842
+ observer: "observer";
843
+ }>;
844
+ status: z.ZodEnum<{
845
+ active: "active";
846
+ revoked: "revoked";
847
+ }>;
848
+ createdAt: z.ZodString;
849
+ updatedAt: z.ZodString;
850
+ }, z.core.$strip>>;
851
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
852
+ session: z.ZodNullable<z.ZodObject<{
853
+ sessionId: z.ZodString;
854
+ sessionToken: z.ZodOptional<z.ZodString>;
855
+ source: z.ZodEnum<{
856
+ magic_link: "magic_link";
857
+ scenario_token: "scenario_token";
858
+ }>;
859
+ issuedAt: z.ZodString;
860
+ expiresAt: z.ZodString;
861
+ }, z.core.$strip>>;
862
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
863
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
864
+ }, z.core.$strip>>;
865
+ }, z.core.$strip>;
866
+ }, z.core.$strip>;
867
+ export declare const authCliBrowserLoginStateRequestSchema: z.ZodObject<{
868
+ token: z.ZodString;
869
+ }, z.core.$strip>;
870
+ export declare const authCliBrowserLoginStateSchema: z.ZodObject<{
871
+ token: z.ZodString;
872
+ emailHint: z.ZodNullable<z.ZodString>;
619
873
  status: z.ZodEnum<{
620
874
  pending: "pending";
621
875
  completed: "completed";
622
876
  expired: "expired";
877
+ abandoned: "abandoned";
623
878
  }>;
624
879
  requestedAt: z.ZodString;
625
880
  expiresAt: z.ZodString;
626
881
  completedAt: z.ZodNullable<z.ZodString>;
882
+ lastSeenAt: z.ZodNullable<z.ZodString>;
883
+ linkSentAt: z.ZodNullable<z.ZodString>;
627
884
  nextPath: z.ZodNullable<z.ZodString>;
628
885
  }, z.core.$strip>;
629
- export declare const authCliDeviceLoginStatusResponseSchema: z.ZodObject<{
886
+ export declare const authCliBrowserLoginStateResponseSchema: z.ZodObject<{
630
887
  intent: z.ZodNullable<z.ZodObject<{
631
- userCode: z.ZodString;
632
- emailHint: z.ZodString;
888
+ token: z.ZodString;
889
+ emailHint: z.ZodNullable<z.ZodString>;
633
890
  status: z.ZodEnum<{
634
891
  pending: "pending";
635
892
  completed: "completed";
636
893
  expired: "expired";
894
+ abandoned: "abandoned";
637
895
  }>;
638
896
  requestedAt: z.ZodString;
639
897
  expiresAt: z.ZodString;
640
898
  completedAt: z.ZodNullable<z.ZodString>;
899
+ lastSeenAt: z.ZodNullable<z.ZodString>;
900
+ linkSentAt: z.ZodNullable<z.ZodString>;
641
901
  nextPath: z.ZodNullable<z.ZodString>;
642
902
  }, z.core.$strip>>;
643
903
  }, z.core.$strip>;
644
- export declare const authCompleteCliDeviceLoginRequestSchema: z.ZodObject<{
645
- userCode: z.ZodString;
904
+ export declare const authRequestCliLoginMagicLinkRequestSchema: z.ZodObject<{
905
+ token: z.ZodString;
906
+ email: z.ZodString;
907
+ }, z.core.$strip>;
908
+ export declare const authRequestCliLoginMagicLinkResponseSchema: z.ZodObject<{
909
+ intent: z.ZodObject<{
910
+ token: z.ZodString;
911
+ emailHint: z.ZodNullable<z.ZodString>;
912
+ status: z.ZodEnum<{
913
+ pending: "pending";
914
+ completed: "completed";
915
+ expired: "expired";
916
+ abandoned: "abandoned";
917
+ }>;
918
+ requestedAt: z.ZodString;
919
+ expiresAt: z.ZodString;
920
+ completedAt: z.ZodNullable<z.ZodString>;
921
+ lastSeenAt: z.ZodNullable<z.ZodString>;
922
+ linkSentAt: z.ZodNullable<z.ZodString>;
923
+ nextPath: z.ZodNullable<z.ZodString>;
924
+ }, z.core.$strip>;
925
+ accepted: z.ZodBoolean;
926
+ email: z.ZodString;
927
+ alreadySent: z.ZodBoolean;
928
+ }, z.core.$strip>;
929
+ export declare const authCompleteCliBrowserLoginRequestSchema: z.ZodObject<{
930
+ token: z.ZodString;
646
931
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
932
  }, z.core.$strip>;
648
- export declare const authCompleteCliDeviceLoginResponseSchema: z.ZodObject<{
933
+ export declare const authCompleteCliBrowserLoginResponseSchema: z.ZodObject<{
649
934
  intent: z.ZodObject<{
650
935
  intentId: z.ZodString;
651
- email: z.ZodString;
652
- userCode: z.ZodString;
936
+ email: z.ZodNullable<z.ZodString>;
937
+ browserToken: z.ZodString;
653
938
  environment: z.ZodString;
654
939
  status: z.ZodEnum<{
655
940
  pending: "pending";
656
941
  completed: "completed";
657
942
  expired: "expired";
943
+ abandoned: "abandoned";
658
944
  }>;
659
945
  deliveryMode: z.ZodEnum<{
660
946
  magic_link: "magic_link";
947
+ browser_flow: "browser_flow";
948
+ browser_session: "browser_session";
661
949
  synthetic_local: "synthetic_local";
662
950
  }>;
663
951
  requestedAt: z.ZodString;
664
952
  expiresAt: z.ZodString;
665
953
  completedAt: z.ZodNullable<z.ZodString>;
954
+ lastSeenAt: z.ZodNullable<z.ZodString>;
955
+ linkSentAt: z.ZodNullable<z.ZodString>;
666
956
  nextPath: z.ZodNullable<z.ZodString>;
667
957
  sessionToken: z.ZodNullable<z.ZodString>;
668
958
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -884,6 +1174,50 @@ export declare const authListWorkspaceMembersResponseSchema: z.ZodObject<{
884
1174
  }, z.core.$strip>;
885
1175
  }, z.core.$strip>>;
886
1176
  }, z.core.$strip>;
1177
+ export declare const authUpsertWorkspaceMemberRequestSchema: z.ZodObject<{
1178
+ workspaceSlug: z.ZodString;
1179
+ email: z.ZodString;
1180
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
+ role: z.ZodEnum<{
1182
+ workspace_admin: "workspace_admin";
1183
+ operator: "operator";
1184
+ observer: "observer";
1185
+ }>;
1186
+ }, z.core.$strip>;
1187
+ export declare const authUpsertWorkspaceMemberResponseSchema: z.ZodObject<{
1188
+ member: z.ZodObject<{
1189
+ operator: z.ZodObject<{
1190
+ operatorId: z.ZodString;
1191
+ email: z.ZodString;
1192
+ displayName: z.ZodNullable<z.ZodString>;
1193
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1194
+ status: z.ZodEnum<{
1195
+ active: "active";
1196
+ disabled: "disabled";
1197
+ }>;
1198
+ createdAt: z.ZodString;
1199
+ updatedAt: z.ZodString;
1200
+ }, z.core.$strip>;
1201
+ membership: z.ZodObject<{
1202
+ membershipId: z.ZodString;
1203
+ operatorId: z.ZodString;
1204
+ workspaceId: z.ZodString;
1205
+ workspaceSlug: z.ZodString;
1206
+ workspaceName: z.ZodString;
1207
+ role: z.ZodEnum<{
1208
+ workspace_admin: "workspace_admin";
1209
+ operator: "operator";
1210
+ observer: "observer";
1211
+ }>;
1212
+ status: z.ZodEnum<{
1213
+ active: "active";
1214
+ revoked: "revoked";
1215
+ }>;
1216
+ createdAt: z.ZodString;
1217
+ updatedAt: z.ZodString;
1218
+ }, z.core.$strip>;
1219
+ }, z.core.$strip>;
1220
+ }, z.core.$strip>;
887
1221
  export declare const authWorkspaceTrustModeSchema: z.ZodEnum<{
888
1222
  trusted_domains: "trusted_domains";
889
1223
  trusted_emails: "trusted_emails";
@@ -1859,6 +2193,7 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
1859
2193
  catalog_relations: z.ZodString;
1860
2194
  telegram_bots: z.ZodString;
1861
2195
  telegram_business_accounts: z.ZodString;
2196
+ media_root: z.ZodOptional<z.ZodString>;
1862
2197
  strategies_root: z.ZodString;
1863
2198
  policies_root: z.ZodString;
1864
2199
  prompt_overrides: z.ZodString;
@@ -1874,10 +2209,46 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
1874
2209
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1875
2210
  }, z.core.$strip>>;
1876
2211
  }, z.core.$strip>;
1877
- files: z.ZodArray<z.ZodObject<{
2212
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1878
2213
  relativePath: z.ZodString;
2214
+ contentKind: z.ZodLiteral<"text">;
1879
2215
  content: z.ZodString;
1880
- }, z.core.$strip>>;
2216
+ }, z.core.$strip>, z.ZodObject<{
2217
+ relativePath: z.ZodString;
2218
+ contentKind: z.ZodLiteral<"binary">;
2219
+ contentBase64: z.ZodString;
2220
+ byteSize: z.ZodNumber;
2221
+ sha256: z.ZodString;
2222
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2223
+ }, z.core.$strip>, z.ZodObject<{
2224
+ relativePath: z.ZodString;
2225
+ content: z.ZodString;
2226
+ }, z.core.$strip>]>, z.ZodTransform<{
2227
+ relativePath: string;
2228
+ contentKind: "text";
2229
+ content: string;
2230
+ } | {
2231
+ relativePath: string;
2232
+ contentKind: "binary";
2233
+ contentBase64: string;
2234
+ byteSize: number;
2235
+ sha256: string;
2236
+ mimeType: string | null;
2237
+ }, {
2238
+ relativePath: string;
2239
+ contentKind: "text";
2240
+ content: string;
2241
+ } | {
2242
+ relativePath: string;
2243
+ contentKind: "binary";
2244
+ contentBase64: string;
2245
+ byteSize: number;
2246
+ sha256: string;
2247
+ mimeType: string | null;
2248
+ } | {
2249
+ relativePath: string;
2250
+ content: string;
2251
+ }>>>;
1881
2252
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1882
2253
  integrationKey: z.ZodString;
1883
2254
  field: z.ZodEnum<{
@@ -1986,11 +2357,52 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1986
2357
  createdAt: z.ZodString;
1987
2358
  updatedAt: z.ZodString;
1988
2359
  }, z.core.$strip>>;
2360
+ mediaRegistry: z.ZodObject<{
2361
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2362
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2363
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2364
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2365
+ folderKey: z.ZodString;
2366
+ relativePath: z.ZodString;
2367
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2368
+ purpose: z.ZodString;
2369
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2370
+ assetCount: z.ZodNumber;
2371
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2372
+ image: "image";
2373
+ document: "document";
2374
+ link: "link";
2375
+ deck: "deck";
2376
+ }>>>;
2377
+ }, z.core.$strip>>>;
2378
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2379
+ assetId: z.ZodString;
2380
+ folderKey: z.ZodString;
2381
+ kind: z.ZodEnum<{
2382
+ image: "image";
2383
+ document: "document";
2384
+ link: "link";
2385
+ deck: "deck";
2386
+ }>;
2387
+ what: z.ZodString;
2388
+ purpose: z.ZodString;
2389
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2390
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2391
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2392
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2393
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2394
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2395
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2396
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2397
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2398
+ }, z.core.$strip>>>;
2399
+ }, z.core.$strip>;
1989
2400
  targetEnvironment: z.ZodString;
1990
2401
  serverEnvironment: z.ZodString;
1991
2402
  appliedDeclarations: z.ZodArray<z.ZodObject<{
1992
2403
  kind: z.ZodEnum<{
1993
2404
  telegram_bot: "telegram_bot";
2405
+ media_folder: "media_folder";
1994
2406
  }>;
1995
2407
  key: z.ZodString;
1996
2408
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1998,6 +2410,7 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1998
2410
  skippedDeclarations: z.ZodArray<z.ZodObject<{
1999
2411
  kind: z.ZodEnum<{
2000
2412
  telegram_bot: "telegram_bot";
2413
+ media_folder: "media_folder";
2001
2414
  }>;
2002
2415
  key: z.ZodString;
2003
2416
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2093,6 +2506,7 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2093
2506
  catalog_relations: z.ZodString;
2094
2507
  telegram_bots: z.ZodString;
2095
2508
  telegram_business_accounts: z.ZodString;
2509
+ media_root: z.ZodOptional<z.ZodString>;
2096
2510
  strategies_root: z.ZodString;
2097
2511
  policies_root: z.ZodString;
2098
2512
  prompt_overrides: z.ZodString;
@@ -2108,10 +2522,46 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2108
2522
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2109
2523
  }, z.core.$strip>>;
2110
2524
  }, z.core.$strip>;
2111
- files: z.ZodArray<z.ZodObject<{
2525
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
2112
2526
  relativePath: z.ZodString;
2527
+ contentKind: z.ZodLiteral<"text">;
2113
2528
  content: z.ZodString;
2114
- }, z.core.$strip>>;
2529
+ }, z.core.$strip>, z.ZodObject<{
2530
+ relativePath: z.ZodString;
2531
+ contentKind: z.ZodLiteral<"binary">;
2532
+ contentBase64: z.ZodString;
2533
+ byteSize: z.ZodNumber;
2534
+ sha256: z.ZodString;
2535
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2536
+ }, z.core.$strip>, z.ZodObject<{
2537
+ relativePath: z.ZodString;
2538
+ content: z.ZodString;
2539
+ }, z.core.$strip>]>, z.ZodTransform<{
2540
+ relativePath: string;
2541
+ contentKind: "text";
2542
+ content: string;
2543
+ } | {
2544
+ relativePath: string;
2545
+ contentKind: "binary";
2546
+ contentBase64: string;
2547
+ byteSize: number;
2548
+ sha256: string;
2549
+ mimeType: string | null;
2550
+ }, {
2551
+ relativePath: string;
2552
+ contentKind: "text";
2553
+ content: string;
2554
+ } | {
2555
+ relativePath: string;
2556
+ contentKind: "binary";
2557
+ contentBase64: string;
2558
+ byteSize: number;
2559
+ sha256: string;
2560
+ mimeType: string | null;
2561
+ } | {
2562
+ relativePath: string;
2563
+ content: string;
2564
+ }>>>;
2115
2565
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2116
2566
  integrationKey: z.ZodString;
2117
2567
  field: z.ZodEnum<{
@@ -2163,6 +2613,46 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2163
2613
  createdAt: z.ZodString;
2164
2614
  updatedAt: z.ZodString;
2165
2615
  }, z.core.$strip>>;
2616
+ mediaRegistry: z.ZodObject<{
2617
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2618
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2619
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2620
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2621
+ folderKey: z.ZodString;
2622
+ relativePath: z.ZodString;
2623
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2624
+ purpose: z.ZodString;
2625
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2626
+ assetCount: z.ZodNumber;
2627
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2628
+ image: "image";
2629
+ document: "document";
2630
+ link: "link";
2631
+ deck: "deck";
2632
+ }>>>;
2633
+ }, z.core.$strip>>>;
2634
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2635
+ assetId: z.ZodString;
2636
+ folderKey: z.ZodString;
2637
+ kind: z.ZodEnum<{
2638
+ image: "image";
2639
+ document: "document";
2640
+ link: "link";
2641
+ deck: "deck";
2642
+ }>;
2643
+ what: z.ZodString;
2644
+ purpose: z.ZodString;
2645
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2646
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2647
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2648
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2649
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2650
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2651
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2652
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2653
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2654
+ }, z.core.$strip>>>;
2655
+ }, z.core.$strip>;
2166
2656
  serverEnvironment: z.ZodString;
2167
2657
  }, z.core.$strip>;
2168
2658
  export declare const telegramBusinessAccountSchema: z.ZodObject<{
@@ -3814,11 +4304,15 @@ export type AuthStartCliLoginIntentInput = z.infer<typeof authStartCliLoginInten
3814
4304
  export type AuthStartCliLoginIntentOutput = z.infer<typeof authStartCliLoginIntentResponseSchema>;
3815
4305
  export type AuthGetCliLoginIntentInput = z.infer<typeof authGetCliLoginIntentRequestSchema>;
3816
4306
  export type AuthGetCliLoginIntentOutput = z.infer<typeof authGetCliLoginIntentResponseSchema>;
3817
- export type AuthCliDeviceLoginStatusInput = z.infer<typeof authCliDeviceLoginStatusRequestSchema>;
3818
- export type AuthCliDeviceLoginStatus = z.infer<typeof authCliDeviceLoginStatusSchema>;
3819
- export type AuthCliDeviceLoginStatusOutput = z.infer<typeof authCliDeviceLoginStatusResponseSchema>;
3820
- export type AuthCompleteCliDeviceLoginInput = z.infer<typeof authCompleteCliDeviceLoginRequestSchema>;
3821
- export type AuthCompleteCliDeviceLoginOutput = z.infer<typeof authCompleteCliDeviceLoginResponseSchema>;
4307
+ export type AuthAbandonCliLoginIntentInput = z.infer<typeof authAbandonCliLoginIntentRequestSchema>;
4308
+ export type AuthAbandonCliLoginIntentOutput = z.infer<typeof authAbandonCliLoginIntentResponseSchema>;
4309
+ export type AuthCliBrowserLoginStateInput = z.infer<typeof authCliBrowserLoginStateRequestSchema>;
4310
+ export type AuthCliBrowserLoginState = z.infer<typeof authCliBrowserLoginStateSchema>;
4311
+ export type AuthCliBrowserLoginStateOutput = z.infer<typeof authCliBrowserLoginStateResponseSchema>;
4312
+ export type AuthRequestCliLoginMagicLinkInput = z.infer<typeof authRequestCliLoginMagicLinkRequestSchema>;
4313
+ export type AuthRequestCliLoginMagicLinkOutput = z.infer<typeof authRequestCliLoginMagicLinkResponseSchema>;
4314
+ export type AuthCompleteCliBrowserLoginInput = z.infer<typeof authCompleteCliBrowserLoginRequestSchema>;
4315
+ export type AuthCompleteCliBrowserLoginOutput = z.infer<typeof authCompleteCliBrowserLoginResponseSchema>;
3822
4316
  export type AuthIssueScenarioTokenInput = z.infer<typeof authIssueScenarioTokenRequestSchema>;
3823
4317
  export type AuthIssueScenarioTokenOutput = z.infer<typeof authIssueScenarioTokenResponseSchema>;
3824
4318
  export type AuthGetSessionInput = z.infer<typeof authGetSessionRequestSchema>;
@@ -3826,6 +4320,8 @@ export type AuthGetSessionOutput = z.infer<typeof authGetSessionResponseSchema>;
3826
4320
  export type AuthWorkspaceMemberEntry = z.infer<typeof authWorkspaceMemberEntrySchema>;
3827
4321
  export type AuthListWorkspaceMembersInput = z.infer<typeof authListWorkspaceMembersRequestSchema>;
3828
4322
  export type AuthListWorkspaceMembersOutput = z.infer<typeof authListWorkspaceMembersResponseSchema>;
4323
+ export type AuthUpsertWorkspaceMemberInput = z.infer<typeof authUpsertWorkspaceMemberRequestSchema>;
4324
+ export type AuthUpsertWorkspaceMemberOutput = z.infer<typeof authUpsertWorkspaceMemberResponseSchema>;
3829
4325
  export type AuthWorkspaceTrustMode = z.infer<typeof authWorkspaceTrustModeSchema>;
3830
4326
  export type AuthWorkspaceTrustPolicy = z.infer<typeof authWorkspaceTrustPolicySchema>;
3831
4327
  export type AuthInviteScope = z.infer<typeof authInviteScopeSchema>;
@@ -3855,6 +4351,10 @@ export type BusinessProfile = z.infer<typeof businessProfileSchema>;
3855
4351
  export type BusinessProfileVersion = z.infer<typeof businessProfileVersionSchema>;
3856
4352
  export type BusinessProfileProjectManifest = z.infer<typeof businessProfileProjectManifestSchema>;
3857
4353
  export type BusinessProfileProjectFile = z.infer<typeof businessProfileProjectFileSchema>;
4354
+ export type BusinessProfileMediaAssetKind = z.infer<typeof businessProfileMediaAssetKindSchema>;
4355
+ export type BusinessProfileMediaFolder = z.infer<typeof businessProfileMediaFolderSchema>;
4356
+ export type BusinessProfileMediaAsset = z.infer<typeof businessProfileMediaAssetSchema>;
4357
+ export type BusinessProfileMediaRegistry = z.infer<typeof businessProfileMediaRegistrySchema>;
3858
4358
  export type BusinessProfileProjectSecretRef = z.infer<typeof businessProfileProjectSecretRefSchema>;
3859
4359
  export type BusinessProfileProjectSecretStatus = z.infer<typeof businessProfileProjectSecretStatusSchema>;
3860
4360
  export type BusinessProfileProjectBundle = z.infer<typeof businessProfileProjectBundleSchema>;
@@ -4122,26 +4622,31 @@ export declare const authRequestMagicLinkOperation: OperationDefinition<"auth.re
4122
4622
  email: z.ZodString;
4123
4623
  }, z.core.$strip>>;
4124
4624
  export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
4125
- email: z.ZodString;
4625
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4126
4626
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4127
4627
  }, z.core.$strip>, z.ZodObject<{
4128
4628
  intent: z.ZodObject<{
4129
4629
  intentId: z.ZodString;
4130
- email: z.ZodString;
4131
- userCode: z.ZodString;
4630
+ email: z.ZodNullable<z.ZodString>;
4631
+ browserToken: z.ZodString;
4132
4632
  environment: z.ZodString;
4133
4633
  status: z.ZodEnum<{
4134
4634
  pending: "pending";
4135
4635
  completed: "completed";
4136
4636
  expired: "expired";
4637
+ abandoned: "abandoned";
4137
4638
  }>;
4138
4639
  deliveryMode: z.ZodEnum<{
4139
4640
  magic_link: "magic_link";
4641
+ browser_flow: "browser_flow";
4642
+ browser_session: "browser_session";
4140
4643
  synthetic_local: "synthetic_local";
4141
4644
  }>;
4142
4645
  requestedAt: z.ZodString;
4143
4646
  expiresAt: z.ZodString;
4144
4647
  completedAt: z.ZodNullable<z.ZodString>;
4648
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4649
+ linkSentAt: z.ZodNullable<z.ZodString>;
4145
4650
  nextPath: z.ZodNullable<z.ZodString>;
4146
4651
  sessionToken: z.ZodNullable<z.ZodString>;
4147
4652
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4192,32 +4697,112 @@ export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth
4192
4697
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4193
4698
  }, z.core.$strip>>;
4194
4699
  }, z.core.$strip>;
4195
- userCode: z.ZodString;
4196
- verificationUri: z.ZodString;
4197
- verificationUriComplete: z.ZodString;
4700
+ authorizationUrl: z.ZodString;
4198
4701
  pollAfterSeconds: z.ZodNumber;
4199
4702
  instructions: z.ZodArray<z.ZodString>;
4200
4703
  }, z.core.$strip>>;
4201
4704
  export declare const authGetCliLoginIntentOperation: OperationDefinition<"auth.getCliLoginIntent", z.ZodObject<{
4202
4705
  intentId: z.ZodString;
4706
+ markActive: z.ZodOptional<z.ZodBoolean>;
4203
4707
  }, z.core.$strip>, z.ZodObject<{
4204
4708
  intent: z.ZodObject<{
4205
4709
  intentId: z.ZodString;
4206
- email: z.ZodString;
4207
- userCode: z.ZodString;
4710
+ email: z.ZodNullable<z.ZodString>;
4711
+ browserToken: z.ZodString;
4712
+ environment: z.ZodString;
4713
+ status: z.ZodEnum<{
4714
+ pending: "pending";
4715
+ completed: "completed";
4716
+ expired: "expired";
4717
+ abandoned: "abandoned";
4718
+ }>;
4719
+ deliveryMode: z.ZodEnum<{
4720
+ magic_link: "magic_link";
4721
+ browser_flow: "browser_flow";
4722
+ browser_session: "browser_session";
4723
+ synthetic_local: "synthetic_local";
4724
+ }>;
4725
+ requestedAt: z.ZodString;
4726
+ expiresAt: z.ZodString;
4727
+ completedAt: z.ZodNullable<z.ZodString>;
4728
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4729
+ linkSentAt: z.ZodNullable<z.ZodString>;
4730
+ nextPath: z.ZodNullable<z.ZodString>;
4731
+ sessionToken: z.ZodNullable<z.ZodString>;
4732
+ accessContext: z.ZodNullable<z.ZodObject<{
4733
+ authenticated: z.ZodBoolean;
4734
+ environment: z.ZodString;
4735
+ operator: z.ZodNullable<z.ZodObject<{
4736
+ operatorId: z.ZodString;
4737
+ email: z.ZodString;
4738
+ displayName: z.ZodNullable<z.ZodString>;
4739
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4740
+ status: z.ZodEnum<{
4741
+ active: "active";
4742
+ disabled: "disabled";
4743
+ }>;
4744
+ createdAt: z.ZodString;
4745
+ updatedAt: z.ZodString;
4746
+ }, z.core.$strip>>;
4747
+ memberships: z.ZodArray<z.ZodObject<{
4748
+ membershipId: z.ZodString;
4749
+ operatorId: z.ZodString;
4750
+ workspaceId: z.ZodString;
4751
+ workspaceSlug: z.ZodString;
4752
+ workspaceName: z.ZodString;
4753
+ role: z.ZodEnum<{
4754
+ workspace_admin: "workspace_admin";
4755
+ operator: "operator";
4756
+ observer: "observer";
4757
+ }>;
4758
+ status: z.ZodEnum<{
4759
+ active: "active";
4760
+ revoked: "revoked";
4761
+ }>;
4762
+ createdAt: z.ZodString;
4763
+ updatedAt: z.ZodString;
4764
+ }, z.core.$strip>>;
4765
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
4766
+ session: z.ZodNullable<z.ZodObject<{
4767
+ sessionId: z.ZodString;
4768
+ sessionToken: z.ZodOptional<z.ZodString>;
4769
+ source: z.ZodEnum<{
4770
+ magic_link: "magic_link";
4771
+ scenario_token: "scenario_token";
4772
+ }>;
4773
+ issuedAt: z.ZodString;
4774
+ expiresAt: z.ZodString;
4775
+ }, z.core.$strip>>;
4776
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
4777
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4778
+ }, z.core.$strip>>;
4779
+ }, z.core.$strip>;
4780
+ }, z.core.$strip>>;
4781
+ export declare const authAbandonCliLoginIntentOperation: OperationDefinition<"auth.abandonCliLoginIntent", z.ZodObject<{
4782
+ intentId: z.ZodString;
4783
+ }, z.core.$strip>, z.ZodObject<{
4784
+ intent: z.ZodObject<{
4785
+ intentId: z.ZodString;
4786
+ email: z.ZodNullable<z.ZodString>;
4787
+ browserToken: z.ZodString;
4208
4788
  environment: z.ZodString;
4209
4789
  status: z.ZodEnum<{
4210
4790
  pending: "pending";
4211
4791
  completed: "completed";
4212
4792
  expired: "expired";
4793
+ abandoned: "abandoned";
4213
4794
  }>;
4214
4795
  deliveryMode: z.ZodEnum<{
4215
4796
  magic_link: "magic_link";
4797
+ browser_flow: "browser_flow";
4798
+ browser_session: "browser_session";
4216
4799
  synthetic_local: "synthetic_local";
4217
4800
  }>;
4218
4801
  requestedAt: z.ZodString;
4219
4802
  expiresAt: z.ZodString;
4220
4803
  completedAt: z.ZodNullable<z.ZodString>;
4804
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4805
+ linkSentAt: z.ZodNullable<z.ZodString>;
4221
4806
  nextPath: z.ZodNullable<z.ZodString>;
4222
4807
  sessionToken: z.ZodNullable<z.ZodString>;
4223
4808
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4269,44 +4854,76 @@ export declare const authGetCliLoginIntentOperation: OperationDefinition<"auth.g
4269
4854
  }, z.core.$strip>>;
4270
4855
  }, z.core.$strip>;
4271
4856
  }, z.core.$strip>>;
4272
- export declare const authGetCliDeviceLoginStatusOperation: OperationDefinition<"auth.getCliDeviceLoginStatus", z.ZodObject<{
4273
- userCode: z.ZodString;
4857
+ export declare const authGetCliBrowserLoginStateOperation: OperationDefinition<"auth.getCliBrowserLoginState", z.ZodObject<{
4858
+ token: z.ZodString;
4274
4859
  }, z.core.$strip>, z.ZodObject<{
4275
4860
  intent: z.ZodNullable<z.ZodObject<{
4276
- userCode: z.ZodString;
4277
- emailHint: z.ZodString;
4861
+ token: z.ZodString;
4862
+ emailHint: z.ZodNullable<z.ZodString>;
4278
4863
  status: z.ZodEnum<{
4279
4864
  pending: "pending";
4280
4865
  completed: "completed";
4281
4866
  expired: "expired";
4867
+ abandoned: "abandoned";
4282
4868
  }>;
4283
4869
  requestedAt: z.ZodString;
4284
4870
  expiresAt: z.ZodString;
4285
4871
  completedAt: z.ZodNullable<z.ZodString>;
4872
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4873
+ linkSentAt: z.ZodNullable<z.ZodString>;
4286
4874
  nextPath: z.ZodNullable<z.ZodString>;
4287
4875
  }, z.core.$strip>>;
4288
4876
  }, z.core.$strip>>;
4289
- export declare const authCompleteCliDeviceLoginOperation: OperationDefinition<"auth.completeCliDeviceLogin", z.ZodObject<{
4290
- userCode: z.ZodString;
4877
+ export declare const authRequestCliLoginMagicLinkOperation: OperationDefinition<"auth.requestCliLoginMagicLink", z.ZodObject<{
4878
+ token: z.ZodString;
4879
+ email: z.ZodString;
4880
+ }, z.core.$strip>, z.ZodObject<{
4881
+ intent: z.ZodObject<{
4882
+ token: z.ZodString;
4883
+ emailHint: z.ZodNullable<z.ZodString>;
4884
+ status: z.ZodEnum<{
4885
+ pending: "pending";
4886
+ completed: "completed";
4887
+ expired: "expired";
4888
+ abandoned: "abandoned";
4889
+ }>;
4890
+ requestedAt: z.ZodString;
4891
+ expiresAt: z.ZodString;
4892
+ completedAt: z.ZodNullable<z.ZodString>;
4893
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4894
+ linkSentAt: z.ZodNullable<z.ZodString>;
4895
+ nextPath: z.ZodNullable<z.ZodString>;
4896
+ }, z.core.$strip>;
4897
+ accepted: z.ZodBoolean;
4898
+ email: z.ZodString;
4899
+ alreadySent: z.ZodBoolean;
4900
+ }, z.core.$strip>>;
4901
+ export declare const authCompleteCliBrowserLoginOperation: OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
4902
+ token: z.ZodString;
4291
4903
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4292
4904
  }, z.core.$strip>, z.ZodObject<{
4293
4905
  intent: z.ZodObject<{
4294
4906
  intentId: z.ZodString;
4295
- email: z.ZodString;
4296
- userCode: z.ZodString;
4907
+ email: z.ZodNullable<z.ZodString>;
4908
+ browserToken: z.ZodString;
4297
4909
  environment: z.ZodString;
4298
4910
  status: z.ZodEnum<{
4299
4911
  pending: "pending";
4300
4912
  completed: "completed";
4301
4913
  expired: "expired";
4914
+ abandoned: "abandoned";
4302
4915
  }>;
4303
4916
  deliveryMode: z.ZodEnum<{
4304
4917
  magic_link: "magic_link";
4918
+ browser_flow: "browser_flow";
4919
+ browser_session: "browser_session";
4305
4920
  synthetic_local: "synthetic_local";
4306
4921
  }>;
4307
4922
  requestedAt: z.ZodString;
4308
4923
  expiresAt: z.ZodString;
4309
4924
  completedAt: z.ZodNullable<z.ZodString>;
4925
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4926
+ linkSentAt: z.ZodNullable<z.ZodString>;
4310
4927
  nextPath: z.ZodNullable<z.ZodString>;
4311
4928
  sessionToken: z.ZodNullable<z.ZodString>;
4312
4929
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4491,7 +5108,50 @@ export declare const authListWorkspaceMembersOperation: OperationDefinition<"aut
4491
5108
  createdAt: z.ZodString;
4492
5109
  updatedAt: z.ZodString;
4493
5110
  }, z.core.$strip>;
4494
- }, z.core.$strip>>;
5111
+ }, z.core.$strip>>;
5112
+ }, z.core.$strip>>;
5113
+ export declare const authUpsertWorkspaceMemberOperation: OperationDefinition<"auth.upsertWorkspaceMember", z.ZodObject<{
5114
+ workspaceSlug: z.ZodString;
5115
+ email: z.ZodString;
5116
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5117
+ role: z.ZodEnum<{
5118
+ workspace_admin: "workspace_admin";
5119
+ operator: "operator";
5120
+ observer: "observer";
5121
+ }>;
5122
+ }, z.core.$strip>, z.ZodObject<{
5123
+ member: z.ZodObject<{
5124
+ operator: z.ZodObject<{
5125
+ operatorId: z.ZodString;
5126
+ email: z.ZodString;
5127
+ displayName: z.ZodNullable<z.ZodString>;
5128
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5129
+ status: z.ZodEnum<{
5130
+ active: "active";
5131
+ disabled: "disabled";
5132
+ }>;
5133
+ createdAt: z.ZodString;
5134
+ updatedAt: z.ZodString;
5135
+ }, z.core.$strip>;
5136
+ membership: z.ZodObject<{
5137
+ membershipId: z.ZodString;
5138
+ operatorId: z.ZodString;
5139
+ workspaceId: z.ZodString;
5140
+ workspaceSlug: z.ZodString;
5141
+ workspaceName: z.ZodString;
5142
+ role: z.ZodEnum<{
5143
+ workspace_admin: "workspace_admin";
5144
+ operator: "operator";
5145
+ observer: "observer";
5146
+ }>;
5147
+ status: z.ZodEnum<{
5148
+ active: "active";
5149
+ revoked: "revoked";
5150
+ }>;
5151
+ createdAt: z.ZodString;
5152
+ updatedAt: z.ZodString;
5153
+ }, z.core.$strip>;
5154
+ }, z.core.$strip>;
4495
5155
  }, z.core.$strip>>;
4496
5156
  export declare const authCheckAccessOperation: OperationDefinition<"auth.checkAccess", z.ZodObject<{
4497
5157
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4982,6 +5642,7 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
4982
5642
  catalog_relations: z.ZodString;
4983
5643
  telegram_bots: z.ZodString;
4984
5644
  telegram_business_accounts: z.ZodString;
5645
+ media_root: z.ZodOptional<z.ZodString>;
4985
5646
  strategies_root: z.ZodString;
4986
5647
  policies_root: z.ZodString;
4987
5648
  prompt_overrides: z.ZodString;
@@ -4997,10 +5658,46 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
4997
5658
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
4998
5659
  }, z.core.$strip>>;
4999
5660
  }, z.core.$strip>;
5000
- files: z.ZodArray<z.ZodObject<{
5661
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
5001
5662
  relativePath: z.ZodString;
5663
+ contentKind: z.ZodLiteral<"text">;
5002
5664
  content: z.ZodString;
5003
- }, z.core.$strip>>;
5665
+ }, z.core.$strip>, z.ZodObject<{
5666
+ relativePath: z.ZodString;
5667
+ contentKind: z.ZodLiteral<"binary">;
5668
+ contentBase64: z.ZodString;
5669
+ byteSize: z.ZodNumber;
5670
+ sha256: z.ZodString;
5671
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5672
+ }, z.core.$strip>, z.ZodObject<{
5673
+ relativePath: z.ZodString;
5674
+ content: z.ZodString;
5675
+ }, z.core.$strip>]>, z.ZodTransform<{
5676
+ relativePath: string;
5677
+ contentKind: "text";
5678
+ content: string;
5679
+ } | {
5680
+ relativePath: string;
5681
+ contentKind: "binary";
5682
+ contentBase64: string;
5683
+ byteSize: number;
5684
+ sha256: string;
5685
+ mimeType: string | null;
5686
+ }, {
5687
+ relativePath: string;
5688
+ contentKind: "text";
5689
+ content: string;
5690
+ } | {
5691
+ relativePath: string;
5692
+ contentKind: "binary";
5693
+ contentBase64: string;
5694
+ byteSize: number;
5695
+ sha256: string;
5696
+ mimeType: string | null;
5697
+ } | {
5698
+ relativePath: string;
5699
+ content: string;
5700
+ }>>>;
5004
5701
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
5005
5702
  integrationKey: z.ZodString;
5006
5703
  field: z.ZodEnum<{
@@ -5108,11 +5805,52 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5108
5805
  createdAt: z.ZodString;
5109
5806
  updatedAt: z.ZodString;
5110
5807
  }, z.core.$strip>>;
5808
+ mediaRegistry: z.ZodObject<{
5809
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5810
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5811
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5812
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
5813
+ folderKey: z.ZodString;
5814
+ relativePath: z.ZodString;
5815
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5816
+ purpose: z.ZodString;
5817
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
5818
+ assetCount: z.ZodNumber;
5819
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5820
+ image: "image";
5821
+ document: "document";
5822
+ link: "link";
5823
+ deck: "deck";
5824
+ }>>>;
5825
+ }, z.core.$strip>>>;
5826
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5827
+ assetId: z.ZodString;
5828
+ folderKey: z.ZodString;
5829
+ kind: z.ZodEnum<{
5830
+ image: "image";
5831
+ document: "document";
5832
+ link: "link";
5833
+ deck: "deck";
5834
+ }>;
5835
+ what: z.ZodString;
5836
+ purpose: z.ZodString;
5837
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
5838
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
5839
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5840
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5841
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5842
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5843
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5844
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5845
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5846
+ }, z.core.$strip>>>;
5847
+ }, z.core.$strip>;
5111
5848
  targetEnvironment: z.ZodString;
5112
5849
  serverEnvironment: z.ZodString;
5113
5850
  appliedDeclarations: z.ZodArray<z.ZodObject<{
5114
5851
  kind: z.ZodEnum<{
5115
5852
  telegram_bot: "telegram_bot";
5853
+ media_folder: "media_folder";
5116
5854
  }>;
5117
5855
  key: z.ZodString;
5118
5856
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5120,6 +5858,7 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5120
5858
  skippedDeclarations: z.ZodArray<z.ZodObject<{
5121
5859
  kind: z.ZodEnum<{
5122
5860
  telegram_bot: "telegram_bot";
5861
+ media_folder: "media_folder";
5123
5862
  }>;
5124
5863
  key: z.ZodString;
5125
5864
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5213,6 +5952,7 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5213
5952
  catalog_relations: z.ZodString;
5214
5953
  telegram_bots: z.ZodString;
5215
5954
  telegram_business_accounts: z.ZodString;
5955
+ media_root: z.ZodOptional<z.ZodString>;
5216
5956
  strategies_root: z.ZodString;
5217
5957
  policies_root: z.ZodString;
5218
5958
  prompt_overrides: z.ZodString;
@@ -5228,10 +5968,46 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5228
5968
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
5229
5969
  }, z.core.$strip>>;
5230
5970
  }, z.core.$strip>;
5231
- files: z.ZodArray<z.ZodObject<{
5971
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
5232
5972
  relativePath: z.ZodString;
5973
+ contentKind: z.ZodLiteral<"text">;
5233
5974
  content: z.ZodString;
5234
- }, z.core.$strip>>;
5975
+ }, z.core.$strip>, z.ZodObject<{
5976
+ relativePath: z.ZodString;
5977
+ contentKind: z.ZodLiteral<"binary">;
5978
+ contentBase64: z.ZodString;
5979
+ byteSize: z.ZodNumber;
5980
+ sha256: z.ZodString;
5981
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5982
+ }, z.core.$strip>, z.ZodObject<{
5983
+ relativePath: z.ZodString;
5984
+ content: z.ZodString;
5985
+ }, z.core.$strip>]>, z.ZodTransform<{
5986
+ relativePath: string;
5987
+ contentKind: "text";
5988
+ content: string;
5989
+ } | {
5990
+ relativePath: string;
5991
+ contentKind: "binary";
5992
+ contentBase64: string;
5993
+ byteSize: number;
5994
+ sha256: string;
5995
+ mimeType: string | null;
5996
+ }, {
5997
+ relativePath: string;
5998
+ contentKind: "text";
5999
+ content: string;
6000
+ } | {
6001
+ relativePath: string;
6002
+ contentKind: "binary";
6003
+ contentBase64: string;
6004
+ byteSize: number;
6005
+ sha256: string;
6006
+ mimeType: string | null;
6007
+ } | {
6008
+ relativePath: string;
6009
+ content: string;
6010
+ }>>>;
5235
6011
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
5236
6012
  integrationKey: z.ZodString;
5237
6013
  field: z.ZodEnum<{
@@ -5283,6 +6059,46 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5283
6059
  createdAt: z.ZodString;
5284
6060
  updatedAt: z.ZodString;
5285
6061
  }, z.core.$strip>>;
6062
+ mediaRegistry: z.ZodObject<{
6063
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6064
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6065
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6066
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
6067
+ folderKey: z.ZodString;
6068
+ relativePath: z.ZodString;
6069
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6070
+ purpose: z.ZodString;
6071
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6072
+ assetCount: z.ZodNumber;
6073
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6074
+ image: "image";
6075
+ document: "document";
6076
+ link: "link";
6077
+ deck: "deck";
6078
+ }>>>;
6079
+ }, z.core.$strip>>>;
6080
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6081
+ assetId: z.ZodString;
6082
+ folderKey: z.ZodString;
6083
+ kind: z.ZodEnum<{
6084
+ image: "image";
6085
+ document: "document";
6086
+ link: "link";
6087
+ deck: "deck";
6088
+ }>;
6089
+ what: z.ZodString;
6090
+ purpose: z.ZodString;
6091
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6092
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
6093
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6094
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6095
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6096
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6097
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6098
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6099
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6100
+ }, z.core.$strip>>>;
6101
+ }, z.core.$strip>;
5286
6102
  serverEnvironment: z.ZodString;
5287
6103
  }, z.core.$strip>>;
5288
6104
  export declare const integrationsUpsertTelegramBotOperation: OperationDefinition<"integrations.upsertTelegramBot", z.ZodObject<{
@@ -6992,11 +7808,11 @@ export declare const commerceCreateCartOperation: OperationDefinition<"commerce.
6992
7808
  conversationId: z.ZodNullable<z.ZodString>;
6993
7809
  dealId: z.ZodNullable<z.ZodString>;
6994
7810
  status: z.ZodEnum<{
7811
+ abandoned: "abandoned";
6995
7812
  suggested: "suggested";
6996
7813
  discussing: "discussing";
6997
7814
  confirmed: "confirmed";
6998
7815
  converted: "converted";
6999
- abandoned: "abandoned";
7000
7816
  }>;
7001
7817
  currency: z.ZodString;
7002
7818
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7036,9 +7852,9 @@ export declare const commerceCreateCartOperation: OperationDefinition<"commerce.
7036
7852
  conversationId: z.ZodNullable<z.ZodString>;
7037
7853
  activeCartId: z.ZodString;
7038
7854
  status: z.ZodEnum<{
7855
+ abandoned: "abandoned";
7039
7856
  draft: "draft";
7040
7857
  converted: "converted";
7041
- abandoned: "abandoned";
7042
7858
  quoted: "quoted";
7043
7859
  ready_for_payment: "ready_for_payment";
7044
7860
  }>;
@@ -7095,11 +7911,11 @@ export declare const commerceReplaceCartItemsOperation: OperationDefinition<"com
7095
7911
  conversationId: z.ZodNullable<z.ZodString>;
7096
7912
  dealId: z.ZodNullable<z.ZodString>;
7097
7913
  status: z.ZodEnum<{
7914
+ abandoned: "abandoned";
7098
7915
  suggested: "suggested";
7099
7916
  discussing: "discussing";
7100
7917
  confirmed: "confirmed";
7101
7918
  converted: "converted";
7102
- abandoned: "abandoned";
7103
7919
  }>;
7104
7920
  currency: z.ZodString;
7105
7921
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7159,11 +7975,11 @@ export declare const commerceQuoteDealOperation: OperationDefinition<"commerce.q
7159
7975
  conversationId: z.ZodNullable<z.ZodString>;
7160
7976
  dealId: z.ZodNullable<z.ZodString>;
7161
7977
  status: z.ZodEnum<{
7978
+ abandoned: "abandoned";
7162
7979
  suggested: "suggested";
7163
7980
  discussing: "discussing";
7164
7981
  confirmed: "confirmed";
7165
7982
  converted: "converted";
7166
- abandoned: "abandoned";
7167
7983
  }>;
7168
7984
  currency: z.ZodString;
7169
7985
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7203,9 +8019,9 @@ export declare const commerceQuoteDealOperation: OperationDefinition<"commerce.q
7203
8019
  conversationId: z.ZodNullable<z.ZodString>;
7204
8020
  activeCartId: z.ZodString;
7205
8021
  status: z.ZodEnum<{
8022
+ abandoned: "abandoned";
7206
8023
  draft: "draft";
7207
8024
  converted: "converted";
7208
- abandoned: "abandoned";
7209
8025
  quoted: "quoted";
7210
8026
  ready_for_payment: "ready_for_payment";
7211
8027
  }>;
@@ -7335,9 +8151,9 @@ export declare const commerceCreateOrderSnapshotOperation: OperationDefinition<"
7335
8151
  conversationId: z.ZodNullable<z.ZodString>;
7336
8152
  activeCartId: z.ZodString;
7337
8153
  status: z.ZodEnum<{
8154
+ abandoned: "abandoned";
7338
8155
  draft: "draft";
7339
8156
  converted: "converted";
7340
- abandoned: "abandoned";
7341
8157
  quoted: "quoted";
7342
8158
  ready_for_payment: "ready_for_payment";
7343
8159
  }>;
@@ -7378,11 +8194,11 @@ export declare const commerceCreateOrderSnapshotOperation: OperationDefinition<"
7378
8194
  conversationId: z.ZodNullable<z.ZodString>;
7379
8195
  dealId: z.ZodNullable<z.ZodString>;
7380
8196
  status: z.ZodEnum<{
8197
+ abandoned: "abandoned";
7381
8198
  suggested: "suggested";
7382
8199
  discussing: "discussing";
7383
8200
  confirmed: "confirmed";
7384
8201
  converted: "converted";
7385
- abandoned: "abandoned";
7386
8202
  }>;
7387
8203
  currency: z.ZodString;
7388
8204
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7469,11 +8285,11 @@ export declare const commerceGetContextOperation: OperationDefinition<"commerce.
7469
8285
  conversationId: z.ZodNullable<z.ZodString>;
7470
8286
  dealId: z.ZodNullable<z.ZodString>;
7471
8287
  status: z.ZodEnum<{
8288
+ abandoned: "abandoned";
7472
8289
  suggested: "suggested";
7473
8290
  discussing: "discussing";
7474
8291
  confirmed: "confirmed";
7475
8292
  converted: "converted";
7476
- abandoned: "abandoned";
7477
8293
  }>;
7478
8294
  currency: z.ZodString;
7479
8295
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7513,9 +8329,9 @@ export declare const commerceGetContextOperation: OperationDefinition<"commerce.
7513
8329
  conversationId: z.ZodNullable<z.ZodString>;
7514
8330
  activeCartId: z.ZodString;
7515
8331
  status: z.ZodEnum<{
8332
+ abandoned: "abandoned";
7516
8333
  draft: "draft";
7517
8334
  converted: "converted";
7518
- abandoned: "abandoned";
7519
8335
  quoted: "quoted";
7520
8336
  ready_for_payment: "ready_for_payment";
7521
8337
  }>;
@@ -7647,8 +8463,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7647
8463
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7648
8464
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
7649
8465
  kind: z.ZodEnum<{
7650
- photo: "photo";
7651
8466
  document: "document";
8467
+ photo: "photo";
7652
8468
  audio: "audio";
7653
8469
  video: "video";
7654
8470
  other: "other";
@@ -7659,6 +8475,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7659
8475
  sourceRef: z.ZodString;
7660
8476
  metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7661
8477
  }, z.core.$strip>>>;
8478
+ mediaRegistryOverride: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7662
8479
  deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
7663
8480
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7664
8481
  ownershipMode: z.ZodOptional<z.ZodEnum<{
@@ -7764,8 +8581,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7764
8581
  conversationId: z.ZodString;
7765
8582
  messageId: z.ZodString;
7766
8583
  kind: z.ZodEnum<{
7767
- photo: "photo";
7768
8584
  document: "document";
8585
+ photo: "photo";
7769
8586
  audio: "audio";
7770
8587
  video: "video";
7771
8588
  other: "other";
@@ -7798,6 +8615,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7798
8615
  "operator.note.added": "operator.note.added";
7799
8616
  "channel.outbound.skipped": "channel.outbound.skipped";
7800
8617
  "channel.outbound.sent": "channel.outbound.sent";
8618
+ "channel.outbound.failed": "channel.outbound.failed";
7801
8619
  "followup.classified": "followup.classified";
7802
8620
  "followup.task.scheduled": "followup.task.scheduled";
7803
8621
  "followup.task.completed": "followup.task.completed";
@@ -7922,6 +8740,45 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7922
8740
  }>>;
7923
8741
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
7924
8742
  }, z.core.$strip>;
8743
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
8744
+ planId: z.ZodString;
8745
+ conversationId: z.ZodString;
8746
+ basedOnCustomerMessageId: z.ZodString;
8747
+ kind: z.ZodEnum<{
8748
+ draft_outbound_plan: "draft_outbound_plan";
8749
+ final_outbound_plan: "final_outbound_plan";
8750
+ }>;
8751
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8752
+ stepId: z.ZodString;
8753
+ sequence: z.ZodNumber;
8754
+ type: z.ZodLiteral<"send_text">;
8755
+ text: z.ZodString;
8756
+ }, z.core.$strip>, z.ZodObject<{
8757
+ stepId: z.ZodString;
8758
+ sequence: z.ZodNumber;
8759
+ type: z.ZodLiteral<"send_media">;
8760
+ assetId: z.ZodString;
8761
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8762
+ }, z.core.$strip>, z.ZodObject<{
8763
+ stepId: z.ZodString;
8764
+ sequence: z.ZodNumber;
8765
+ type: z.ZodLiteral<"send_media_group">;
8766
+ assetIds: z.ZodArray<z.ZodString>;
8767
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8768
+ }, z.core.$strip>, z.ZodObject<{
8769
+ stepId: z.ZodString;
8770
+ sequence: z.ZodNumber;
8771
+ type: z.ZodLiteral<"send_document">;
8772
+ assetId: z.ZodString;
8773
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8774
+ }, z.core.$strip>, z.ZodObject<{
8775
+ stepId: z.ZodString;
8776
+ sequence: z.ZodNumber;
8777
+ type: z.ZodLiteral<"send_link">;
8778
+ assetId: z.ZodString;
8779
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8780
+ }, z.core.$strip>], "type">>;
8781
+ }, z.core.$strip>>>;
7925
8782
  classification: z.ZodObject<{
7926
8783
  primaryIntent: z.ZodString;
7927
8784
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8038,6 +8895,34 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8038
8895
  heuristic: "heuristic";
8039
8896
  model: "model";
8040
8897
  }>;
8898
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8899
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8900
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
8901
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
8902
+ requestKind: z.ZodEnum<{
8903
+ request_media_folders: "request_media_folders";
8904
+ request_media_folder_contents: "request_media_folder_contents";
8905
+ }>;
8906
+ status: z.ZodEnum<{
8907
+ rejected: "rejected";
8908
+ served: "served";
8909
+ }>;
8910
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8911
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8912
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
8913
+ image: "image";
8914
+ document: "document";
8915
+ link: "link";
8916
+ deck: "deck";
8917
+ }>>>;
8918
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8919
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
8920
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
8921
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
8922
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8923
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
8924
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8925
+ }, z.core.$strip>>>;
8041
8926
  }, z.core.$strip>>>;
8042
8927
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8043
8928
  stage: z.ZodEnum<{
@@ -8128,8 +9013,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8128
9013
  conversationId: z.ZodString;
8129
9014
  messageId: z.ZodString;
8130
9015
  kind: z.ZodEnum<{
8131
- photo: "photo";
8132
9016
  document: "document";
9017
+ photo: "photo";
8133
9018
  audio: "audio";
8134
9019
  video: "video";
8135
9020
  other: "other";
@@ -8164,8 +9049,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8164
9049
  conversationId: z.ZodString;
8165
9050
  messageId: z.ZodString;
8166
9051
  kind: z.ZodEnum<{
8167
- photo: "photo";
8168
9052
  document: "document";
9053
+ photo: "photo";
8169
9054
  audio: "audio";
8170
9055
  video: "video";
8171
9056
  other: "other";
@@ -8198,6 +9083,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8198
9083
  "operator.note.added": "operator.note.added";
8199
9084
  "channel.outbound.skipped": "channel.outbound.skipped";
8200
9085
  "channel.outbound.sent": "channel.outbound.sent";
9086
+ "channel.outbound.failed": "channel.outbound.failed";
8201
9087
  "followup.classified": "followup.classified";
8202
9088
  "followup.task.scheduled": "followup.task.scheduled";
8203
9089
  "followup.task.completed": "followup.task.completed";
@@ -8260,8 +9146,19 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8260
9146
  deliveryStatus: z.ZodEnum<{
8261
9147
  skipped: "skipped";
8262
9148
  simulated: "simulated";
9149
+ failed: "failed";
8263
9150
  sent: "sent";
8264
9151
  }>;
9152
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9153
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9154
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9155
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
9156
+ send_text: "send_text";
9157
+ send_media: "send_media";
9158
+ send_media_group: "send_media_group";
9159
+ send_document: "send_document";
9160
+ send_link: "send_link";
9161
+ }>>>;
8265
9162
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8266
9163
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8267
9164
  }, z.core.$strip>>;
@@ -8352,8 +9249,8 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8352
9249
  conversationId: z.ZodString;
8353
9250
  messageId: z.ZodString;
8354
9251
  kind: z.ZodEnum<{
8355
- photo: "photo";
8356
9252
  document: "document";
9253
+ photo: "photo";
8357
9254
  audio: "audio";
8358
9255
  video: "video";
8359
9256
  other: "other";
@@ -8386,6 +9283,7 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8386
9283
  "operator.note.added": "operator.note.added";
8387
9284
  "channel.outbound.skipped": "channel.outbound.skipped";
8388
9285
  "channel.outbound.sent": "channel.outbound.sent";
9286
+ "channel.outbound.failed": "channel.outbound.failed";
8389
9287
  "followup.classified": "followup.classified";
8390
9288
  "followup.task.scheduled": "followup.task.scheduled";
8391
9289
  "followup.task.completed": "followup.task.completed";
@@ -8510,6 +9408,45 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8510
9408
  }>>;
8511
9409
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
8512
9410
  }, z.core.$strip>;
9411
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
9412
+ planId: z.ZodString;
9413
+ conversationId: z.ZodString;
9414
+ basedOnCustomerMessageId: z.ZodString;
9415
+ kind: z.ZodEnum<{
9416
+ draft_outbound_plan: "draft_outbound_plan";
9417
+ final_outbound_plan: "final_outbound_plan";
9418
+ }>;
9419
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9420
+ stepId: z.ZodString;
9421
+ sequence: z.ZodNumber;
9422
+ type: z.ZodLiteral<"send_text">;
9423
+ text: z.ZodString;
9424
+ }, z.core.$strip>, z.ZodObject<{
9425
+ stepId: z.ZodString;
9426
+ sequence: z.ZodNumber;
9427
+ type: z.ZodLiteral<"send_media">;
9428
+ assetId: z.ZodString;
9429
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9430
+ }, z.core.$strip>, z.ZodObject<{
9431
+ stepId: z.ZodString;
9432
+ sequence: z.ZodNumber;
9433
+ type: z.ZodLiteral<"send_media_group">;
9434
+ assetIds: z.ZodArray<z.ZodString>;
9435
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9436
+ }, z.core.$strip>, z.ZodObject<{
9437
+ stepId: z.ZodString;
9438
+ sequence: z.ZodNumber;
9439
+ type: z.ZodLiteral<"send_document">;
9440
+ assetId: z.ZodString;
9441
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9442
+ }, z.core.$strip>, z.ZodObject<{
9443
+ stepId: z.ZodString;
9444
+ sequence: z.ZodNumber;
9445
+ type: z.ZodLiteral<"send_link">;
9446
+ assetId: z.ZodString;
9447
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9448
+ }, z.core.$strip>], "type">>;
9449
+ }, z.core.$strip>>>;
8513
9450
  classification: z.ZodObject<{
8514
9451
  primaryIntent: z.ZodString;
8515
9452
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8626,6 +9563,34 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8626
9563
  heuristic: "heuristic";
8627
9564
  model: "model";
8628
9565
  }>;
9566
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9567
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9568
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9569
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
9570
+ requestKind: z.ZodEnum<{
9571
+ request_media_folders: "request_media_folders";
9572
+ request_media_folder_contents: "request_media_folder_contents";
9573
+ }>;
9574
+ status: z.ZodEnum<{
9575
+ rejected: "rejected";
9576
+ served: "served";
9577
+ }>;
9578
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9579
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9580
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
9581
+ image: "image";
9582
+ document: "document";
9583
+ link: "link";
9584
+ deck: "deck";
9585
+ }>>>;
9586
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9587
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9588
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
9589
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
9590
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9591
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9592
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9593
+ }, z.core.$strip>>>;
8629
9594
  }, z.core.$strip>>>;
8630
9595
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8631
9596
  stage: z.ZodEnum<{
@@ -8863,6 +9828,45 @@ export declare const runtimeListDecisionTracesOperation: OperationDefinition<"ru
8863
9828
  }>>;
8864
9829
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
8865
9830
  }, z.core.$strip>;
9831
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
9832
+ planId: z.ZodString;
9833
+ conversationId: z.ZodString;
9834
+ basedOnCustomerMessageId: z.ZodString;
9835
+ kind: z.ZodEnum<{
9836
+ draft_outbound_plan: "draft_outbound_plan";
9837
+ final_outbound_plan: "final_outbound_plan";
9838
+ }>;
9839
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9840
+ stepId: z.ZodString;
9841
+ sequence: z.ZodNumber;
9842
+ type: z.ZodLiteral<"send_text">;
9843
+ text: z.ZodString;
9844
+ }, z.core.$strip>, z.ZodObject<{
9845
+ stepId: z.ZodString;
9846
+ sequence: z.ZodNumber;
9847
+ type: z.ZodLiteral<"send_media">;
9848
+ assetId: z.ZodString;
9849
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9850
+ }, z.core.$strip>, z.ZodObject<{
9851
+ stepId: z.ZodString;
9852
+ sequence: z.ZodNumber;
9853
+ type: z.ZodLiteral<"send_media_group">;
9854
+ assetIds: z.ZodArray<z.ZodString>;
9855
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9856
+ }, z.core.$strip>, z.ZodObject<{
9857
+ stepId: z.ZodString;
9858
+ sequence: z.ZodNumber;
9859
+ type: z.ZodLiteral<"send_document">;
9860
+ assetId: z.ZodString;
9861
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9862
+ }, z.core.$strip>, z.ZodObject<{
9863
+ stepId: z.ZodString;
9864
+ sequence: z.ZodNumber;
9865
+ type: z.ZodLiteral<"send_link">;
9866
+ assetId: z.ZodString;
9867
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9868
+ }, z.core.$strip>], "type">>;
9869
+ }, z.core.$strip>>>;
8866
9870
  classification: z.ZodObject<{
8867
9871
  primaryIntent: z.ZodString;
8868
9872
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8979,6 +9983,34 @@ export declare const runtimeListDecisionTracesOperation: OperationDefinition<"ru
8979
9983
  heuristic: "heuristic";
8980
9984
  model: "model";
8981
9985
  }>;
9986
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9987
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9988
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9989
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
9990
+ requestKind: z.ZodEnum<{
9991
+ request_media_folders: "request_media_folders";
9992
+ request_media_folder_contents: "request_media_folder_contents";
9993
+ }>;
9994
+ status: z.ZodEnum<{
9995
+ rejected: "rejected";
9996
+ served: "served";
9997
+ }>;
9998
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9999
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10000
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
10001
+ image: "image";
10002
+ document: "document";
10003
+ link: "link";
10004
+ deck: "deck";
10005
+ }>>>;
10006
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10007
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10008
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
10009
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10010
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10011
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10012
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10013
+ }, z.core.$strip>>>;
8982
10014
  }, z.core.$strip>>>;
8983
10015
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8984
10016
  stage: z.ZodEnum<{
@@ -10079,8 +11111,8 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10079
11111
  conversationId: z.ZodString;
10080
11112
  messageId: z.ZodString;
10081
11113
  kind: z.ZodEnum<{
10082
- photo: "photo";
10083
11114
  document: "document";
11115
+ photo: "photo";
10084
11116
  audio: "audio";
10085
11117
  video: "video";
10086
11118
  other: "other";
@@ -10113,6 +11145,7 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10113
11145
  "operator.note.added": "operator.note.added";
10114
11146
  "channel.outbound.skipped": "channel.outbound.skipped";
10115
11147
  "channel.outbound.sent": "channel.outbound.sent";
11148
+ "channel.outbound.failed": "channel.outbound.failed";
10116
11149
  "followup.classified": "followup.classified";
10117
11150
  "followup.task.scheduled": "followup.task.scheduled";
10118
11151
  "followup.task.completed": "followup.task.completed";
@@ -10237,6 +11270,45 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10237
11270
  }>>;
10238
11271
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
10239
11272
  }, z.core.$strip>;
11273
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
11274
+ planId: z.ZodString;
11275
+ conversationId: z.ZodString;
11276
+ basedOnCustomerMessageId: z.ZodString;
11277
+ kind: z.ZodEnum<{
11278
+ draft_outbound_plan: "draft_outbound_plan";
11279
+ final_outbound_plan: "final_outbound_plan";
11280
+ }>;
11281
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
11282
+ stepId: z.ZodString;
11283
+ sequence: z.ZodNumber;
11284
+ type: z.ZodLiteral<"send_text">;
11285
+ text: z.ZodString;
11286
+ }, z.core.$strip>, z.ZodObject<{
11287
+ stepId: z.ZodString;
11288
+ sequence: z.ZodNumber;
11289
+ type: z.ZodLiteral<"send_media">;
11290
+ assetId: z.ZodString;
11291
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11292
+ }, z.core.$strip>, z.ZodObject<{
11293
+ stepId: z.ZodString;
11294
+ sequence: z.ZodNumber;
11295
+ type: z.ZodLiteral<"send_media_group">;
11296
+ assetIds: z.ZodArray<z.ZodString>;
11297
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11298
+ }, z.core.$strip>, z.ZodObject<{
11299
+ stepId: z.ZodString;
11300
+ sequence: z.ZodNumber;
11301
+ type: z.ZodLiteral<"send_document">;
11302
+ assetId: z.ZodString;
11303
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11304
+ }, z.core.$strip>, z.ZodObject<{
11305
+ stepId: z.ZodString;
11306
+ sequence: z.ZodNumber;
11307
+ type: z.ZodLiteral<"send_link">;
11308
+ assetId: z.ZodString;
11309
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11310
+ }, z.core.$strip>], "type">>;
11311
+ }, z.core.$strip>>>;
10240
11312
  classification: z.ZodObject<{
10241
11313
  primaryIntent: z.ZodString;
10242
11314
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -10353,6 +11425,34 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10353
11425
  heuristic: "heuristic";
10354
11426
  model: "model";
10355
11427
  }>;
11428
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11429
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11430
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11431
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
11432
+ requestKind: z.ZodEnum<{
11433
+ request_media_folders: "request_media_folders";
11434
+ request_media_folder_contents: "request_media_folder_contents";
11435
+ }>;
11436
+ status: z.ZodEnum<{
11437
+ rejected: "rejected";
11438
+ served: "served";
11439
+ }>;
11440
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11441
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11442
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
11443
+ image: "image";
11444
+ document: "document";
11445
+ link: "link";
11446
+ deck: "deck";
11447
+ }>>>;
11448
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11449
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11450
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
11451
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
11452
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11453
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11454
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11455
+ }, z.core.$strip>>>;
10356
11456
  }, z.core.$strip>>>;
10357
11457
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
10358
11458
  stage: z.ZodEnum<{
@@ -10625,11 +11725,11 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10625
11725
  conversationId: z.ZodNullable<z.ZodString>;
10626
11726
  dealId: z.ZodNullable<z.ZodString>;
10627
11727
  status: z.ZodEnum<{
11728
+ abandoned: "abandoned";
10628
11729
  suggested: "suggested";
10629
11730
  discussing: "discussing";
10630
11731
  confirmed: "confirmed";
10631
11732
  converted: "converted";
10632
- abandoned: "abandoned";
10633
11733
  }>;
10634
11734
  currency: z.ZodString;
10635
11735
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -10669,9 +11769,9 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10669
11769
  conversationId: z.ZodNullable<z.ZodString>;
10670
11770
  activeCartId: z.ZodString;
10671
11771
  status: z.ZodEnum<{
11772
+ abandoned: "abandoned";
10672
11773
  draft: "draft";
10673
11774
  converted: "converted";
10674
- abandoned: "abandoned";
10675
11775
  quoted: "quoted";
10676
11776
  ready_for_payment: "ready_for_payment";
10677
11777
  }>;
@@ -10874,6 +11974,94 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10874
11974
  human: "human";
10875
11975
  }>>;
10876
11976
  }, z.core.$strip>>>;
11977
+ outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
11978
+ traceId: z.ZodString;
11979
+ planId: z.ZodString;
11980
+ kind: z.ZodEnum<{
11981
+ draft_outbound_plan: "draft_outbound_plan";
11982
+ final_outbound_plan: "final_outbound_plan";
11983
+ }>;
11984
+ status: z.ZodEnum<{
11985
+ failed: "failed";
11986
+ draft: "draft";
11987
+ superseded: "superseded";
11988
+ sent: "sent";
11989
+ partial: "partial";
11990
+ }>;
11991
+ basedOnCustomerMessageId: z.ZodString;
11992
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11993
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11994
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11995
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11996
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11997
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
11998
+ requestKind: z.ZodEnum<{
11999
+ request_media_folders: "request_media_folders";
12000
+ request_media_folder_contents: "request_media_folder_contents";
12001
+ }>;
12002
+ status: z.ZodEnum<{
12003
+ rejected: "rejected";
12004
+ served: "served";
12005
+ }>;
12006
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12007
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12008
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
12009
+ image: "image";
12010
+ document: "document";
12011
+ link: "link";
12012
+ deck: "deck";
12013
+ }>>>;
12014
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12015
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12016
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
12017
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
12018
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12019
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12020
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12021
+ }, z.core.$strip>>>;
12022
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
12023
+ assetId: z.ZodString;
12024
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12025
+ kind: z.ZodEnum<{
12026
+ image: "image";
12027
+ document: "document";
12028
+ link: "link";
12029
+ deck: "deck";
12030
+ }>;
12031
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12032
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12033
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12034
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12035
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12036
+ }, z.core.$strip>>>;
12037
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
12038
+ stepId: z.ZodString;
12039
+ sequence: z.ZodNumber;
12040
+ stepType: z.ZodEnum<{
12041
+ send_text: "send_text";
12042
+ send_media: "send_media";
12043
+ send_media_group: "send_media_group";
12044
+ send_document: "send_document";
12045
+ send_link: "send_link";
12046
+ }>;
12047
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12048
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12049
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
12050
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
12051
+ skipped: "skipped";
12052
+ simulated: "simulated";
12053
+ failed: "failed";
12054
+ sent: "sent";
12055
+ }>>>;
12056
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12057
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12058
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12059
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12060
+ }, z.core.$strip>>>;
12061
+ createdAt: z.ZodString;
12062
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12063
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12064
+ }, z.core.$strip>>>;
10877
12065
  }, z.core.$strip>>;
10878
12066
  export declare const opsGetReadinessOperation: OperationDefinition<"ops.getReadiness", z.ZodObject<{
10879
12067
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -12003,6 +13191,7 @@ export declare const opsSetOwnershipModeOperation: OperationDefinition<"ops.setO
12003
13191
  "operator.note.added": "operator.note.added";
12004
13192
  "channel.outbound.skipped": "channel.outbound.skipped";
12005
13193
  "channel.outbound.sent": "channel.outbound.sent";
13194
+ "channel.outbound.failed": "channel.outbound.failed";
12006
13195
  "followup.classified": "followup.classified";
12007
13196
  "followup.task.scheduled": "followup.task.scheduled";
12008
13197
  "followup.task.completed": "followup.task.completed";
@@ -12181,6 +13370,7 @@ export declare const opsStartHandoffOperation: OperationDefinition<"ops.startHan
12181
13370
  "operator.note.added": "operator.note.added";
12182
13371
  "channel.outbound.skipped": "channel.outbound.skipped";
12183
13372
  "channel.outbound.sent": "channel.outbound.sent";
13373
+ "channel.outbound.failed": "channel.outbound.failed";
12184
13374
  "followup.classified": "followup.classified";
12185
13375
  "followup.task.scheduled": "followup.task.scheduled";
12186
13376
  "followup.task.completed": "followup.task.completed";
@@ -12422,8 +13612,8 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12422
13612
  conversationId: z.ZodString;
12423
13613
  messageId: z.ZodString;
12424
13614
  kind: z.ZodEnum<{
12425
- photo: "photo";
12426
13615
  document: "document";
13616
+ photo: "photo";
12427
13617
  audio: "audio";
12428
13618
  video: "video";
12429
13619
  other: "other";
@@ -12456,6 +13646,7 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12456
13646
  "operator.note.added": "operator.note.added";
12457
13647
  "channel.outbound.skipped": "channel.outbound.skipped";
12458
13648
  "channel.outbound.sent": "channel.outbound.sent";
13649
+ "channel.outbound.failed": "channel.outbound.failed";
12459
13650
  "followup.classified": "followup.classified";
12460
13651
  "followup.task.scheduled": "followup.task.scheduled";
12461
13652
  "followup.task.completed": "followup.task.completed";
@@ -12580,6 +13771,45 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12580
13771
  }>>;
12581
13772
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
12582
13773
  }, z.core.$strip>;
13774
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
13775
+ planId: z.ZodString;
13776
+ conversationId: z.ZodString;
13777
+ basedOnCustomerMessageId: z.ZodString;
13778
+ kind: z.ZodEnum<{
13779
+ draft_outbound_plan: "draft_outbound_plan";
13780
+ final_outbound_plan: "final_outbound_plan";
13781
+ }>;
13782
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
13783
+ stepId: z.ZodString;
13784
+ sequence: z.ZodNumber;
13785
+ type: z.ZodLiteral<"send_text">;
13786
+ text: z.ZodString;
13787
+ }, z.core.$strip>, z.ZodObject<{
13788
+ stepId: z.ZodString;
13789
+ sequence: z.ZodNumber;
13790
+ type: z.ZodLiteral<"send_media">;
13791
+ assetId: z.ZodString;
13792
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13793
+ }, z.core.$strip>, z.ZodObject<{
13794
+ stepId: z.ZodString;
13795
+ sequence: z.ZodNumber;
13796
+ type: z.ZodLiteral<"send_media_group">;
13797
+ assetIds: z.ZodArray<z.ZodString>;
13798
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13799
+ }, z.core.$strip>, z.ZodObject<{
13800
+ stepId: z.ZodString;
13801
+ sequence: z.ZodNumber;
13802
+ type: z.ZodLiteral<"send_document">;
13803
+ assetId: z.ZodString;
13804
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13805
+ }, z.core.$strip>, z.ZodObject<{
13806
+ stepId: z.ZodString;
13807
+ sequence: z.ZodNumber;
13808
+ type: z.ZodLiteral<"send_link">;
13809
+ assetId: z.ZodString;
13810
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13811
+ }, z.core.$strip>], "type">>;
13812
+ }, z.core.$strip>>>;
12583
13813
  classification: z.ZodObject<{
12584
13814
  primaryIntent: z.ZodString;
12585
13815
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -12696,6 +13926,34 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12696
13926
  heuristic: "heuristic";
12697
13927
  model: "model";
12698
13928
  }>;
13929
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13930
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13931
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
13932
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
13933
+ requestKind: z.ZodEnum<{
13934
+ request_media_folders: "request_media_folders";
13935
+ request_media_folder_contents: "request_media_folder_contents";
13936
+ }>;
13937
+ status: z.ZodEnum<{
13938
+ rejected: "rejected";
13939
+ served: "served";
13940
+ }>;
13941
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13942
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13943
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
13944
+ image: "image";
13945
+ document: "document";
13946
+ link: "link";
13947
+ deck: "deck";
13948
+ }>>>;
13949
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13950
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
13951
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
13952
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
13953
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13954
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
13955
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13956
+ }, z.core.$strip>>>;
12699
13957
  }, z.core.$strip>>>;
12700
13958
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
12701
13959
  stage: z.ZodEnum<{
@@ -12785,6 +14043,7 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12785
14043
  "operator.note.added": "operator.note.added";
12786
14044
  "channel.outbound.skipped": "channel.outbound.skipped";
12787
14045
  "channel.outbound.sent": "channel.outbound.sent";
14046
+ "channel.outbound.failed": "channel.outbound.failed";
12788
14047
  "followup.classified": "followup.classified";
12789
14048
  "followup.task.scheduled": "followup.task.scheduled";
12790
14049
  "followup.task.completed": "followup.task.completed";
@@ -12847,8 +14106,19 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12847
14106
  deliveryStatus: z.ZodEnum<{
12848
14107
  skipped: "skipped";
12849
14108
  simulated: "simulated";
14109
+ failed: "failed";
12850
14110
  sent: "sent";
12851
14111
  }>;
14112
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14113
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14114
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14115
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
14116
+ send_text: "send_text";
14117
+ send_media: "send_media";
14118
+ send_media_group: "send_media_group";
14119
+ send_document: "send_document";
14120
+ send_link: "send_link";
14121
+ }>>>;
12852
14122
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12853
14123
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12854
14124
  }, z.core.$strip>>;
@@ -13732,54 +15002,139 @@ export declare const operationDefinitions: {
13732
15002
  createdAt: z.ZodString;
13733
15003
  updatedAt: z.ZodString;
13734
15004
  }, z.core.$strip>;
13735
- memberships: z.ZodArray<z.ZodObject<{
13736
- membershipId: z.ZodString;
13737
- operatorId: z.ZodString;
13738
- workspaceId: z.ZodString;
13739
- workspaceSlug: z.ZodString;
13740
- workspaceName: z.ZodString;
13741
- role: z.ZodEnum<{
13742
- workspace_admin: "workspace_admin";
13743
- operator: "operator";
13744
- observer: "observer";
13745
- }>;
13746
- status: z.ZodEnum<{
13747
- active: "active";
13748
- revoked: "revoked";
13749
- }>;
13750
- createdAt: z.ZodString;
13751
- updatedAt: z.ZodString;
13752
- }, z.core.$strip>>;
13753
- created: z.ZodBoolean;
13754
- }, z.core.$strip>>;
13755
- readonly "auth.requestMagicLink": OperationDefinition<"auth.requestMagicLink", z.ZodObject<{
13756
- email: z.ZodString;
13757
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13758
- }, z.core.$strip>, z.ZodObject<{
13759
- accepted: z.ZodBoolean;
13760
- email: z.ZodString;
15005
+ memberships: z.ZodArray<z.ZodObject<{
15006
+ membershipId: z.ZodString;
15007
+ operatorId: z.ZodString;
15008
+ workspaceId: z.ZodString;
15009
+ workspaceSlug: z.ZodString;
15010
+ workspaceName: z.ZodString;
15011
+ role: z.ZodEnum<{
15012
+ workspace_admin: "workspace_admin";
15013
+ operator: "operator";
15014
+ observer: "observer";
15015
+ }>;
15016
+ status: z.ZodEnum<{
15017
+ active: "active";
15018
+ revoked: "revoked";
15019
+ }>;
15020
+ createdAt: z.ZodString;
15021
+ updatedAt: z.ZodString;
15022
+ }, z.core.$strip>>;
15023
+ created: z.ZodBoolean;
15024
+ }, z.core.$strip>>;
15025
+ readonly "auth.requestMagicLink": OperationDefinition<"auth.requestMagicLink", z.ZodObject<{
15026
+ email: z.ZodString;
15027
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15028
+ }, z.core.$strip>, z.ZodObject<{
15029
+ accepted: z.ZodBoolean;
15030
+ email: z.ZodString;
15031
+ }, z.core.$strip>>;
15032
+ readonly "auth.startCliLoginIntent": OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
15033
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15034
+ nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15035
+ }, z.core.$strip>, z.ZodObject<{
15036
+ intent: z.ZodObject<{
15037
+ intentId: z.ZodString;
15038
+ email: z.ZodNullable<z.ZodString>;
15039
+ browserToken: z.ZodString;
15040
+ environment: z.ZodString;
15041
+ status: z.ZodEnum<{
15042
+ pending: "pending";
15043
+ completed: "completed";
15044
+ expired: "expired";
15045
+ abandoned: "abandoned";
15046
+ }>;
15047
+ deliveryMode: z.ZodEnum<{
15048
+ magic_link: "magic_link";
15049
+ browser_flow: "browser_flow";
15050
+ browser_session: "browser_session";
15051
+ synthetic_local: "synthetic_local";
15052
+ }>;
15053
+ requestedAt: z.ZodString;
15054
+ expiresAt: z.ZodString;
15055
+ completedAt: z.ZodNullable<z.ZodString>;
15056
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15057
+ linkSentAt: z.ZodNullable<z.ZodString>;
15058
+ nextPath: z.ZodNullable<z.ZodString>;
15059
+ sessionToken: z.ZodNullable<z.ZodString>;
15060
+ accessContext: z.ZodNullable<z.ZodObject<{
15061
+ authenticated: z.ZodBoolean;
15062
+ environment: z.ZodString;
15063
+ operator: z.ZodNullable<z.ZodObject<{
15064
+ operatorId: z.ZodString;
15065
+ email: z.ZodString;
15066
+ displayName: z.ZodNullable<z.ZodString>;
15067
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15068
+ status: z.ZodEnum<{
15069
+ active: "active";
15070
+ disabled: "disabled";
15071
+ }>;
15072
+ createdAt: z.ZodString;
15073
+ updatedAt: z.ZodString;
15074
+ }, z.core.$strip>>;
15075
+ memberships: z.ZodArray<z.ZodObject<{
15076
+ membershipId: z.ZodString;
15077
+ operatorId: z.ZodString;
15078
+ workspaceId: z.ZodString;
15079
+ workspaceSlug: z.ZodString;
15080
+ workspaceName: z.ZodString;
15081
+ role: z.ZodEnum<{
15082
+ workspace_admin: "workspace_admin";
15083
+ operator: "operator";
15084
+ observer: "observer";
15085
+ }>;
15086
+ status: z.ZodEnum<{
15087
+ active: "active";
15088
+ revoked: "revoked";
15089
+ }>;
15090
+ createdAt: z.ZodString;
15091
+ updatedAt: z.ZodString;
15092
+ }, z.core.$strip>>;
15093
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
15094
+ session: z.ZodNullable<z.ZodObject<{
15095
+ sessionId: z.ZodString;
15096
+ sessionToken: z.ZodOptional<z.ZodString>;
15097
+ source: z.ZodEnum<{
15098
+ magic_link: "magic_link";
15099
+ scenario_token: "scenario_token";
15100
+ }>;
15101
+ issuedAt: z.ZodString;
15102
+ expiresAt: z.ZodString;
15103
+ }, z.core.$strip>>;
15104
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
15105
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15106
+ }, z.core.$strip>>;
15107
+ }, z.core.$strip>;
15108
+ authorizationUrl: z.ZodString;
15109
+ pollAfterSeconds: z.ZodNumber;
15110
+ instructions: z.ZodArray<z.ZodString>;
13761
15111
  }, z.core.$strip>>;
13762
- readonly "auth.startCliLoginIntent": OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
13763
- email: z.ZodString;
13764
- nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15112
+ readonly "auth.getCliLoginIntent": OperationDefinition<"auth.getCliLoginIntent", z.ZodObject<{
15113
+ intentId: z.ZodString;
15114
+ markActive: z.ZodOptional<z.ZodBoolean>;
13765
15115
  }, z.core.$strip>, z.ZodObject<{
13766
15116
  intent: z.ZodObject<{
13767
15117
  intentId: z.ZodString;
13768
- email: z.ZodString;
13769
- userCode: z.ZodString;
15118
+ email: z.ZodNullable<z.ZodString>;
15119
+ browserToken: z.ZodString;
13770
15120
  environment: z.ZodString;
13771
15121
  status: z.ZodEnum<{
13772
15122
  pending: "pending";
13773
15123
  completed: "completed";
13774
15124
  expired: "expired";
15125
+ abandoned: "abandoned";
13775
15126
  }>;
13776
15127
  deliveryMode: z.ZodEnum<{
13777
15128
  magic_link: "magic_link";
15129
+ browser_flow: "browser_flow";
15130
+ browser_session: "browser_session";
13778
15131
  synthetic_local: "synthetic_local";
13779
15132
  }>;
13780
15133
  requestedAt: z.ZodString;
13781
15134
  expiresAt: z.ZodString;
13782
15135
  completedAt: z.ZodNullable<z.ZodString>;
15136
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15137
+ linkSentAt: z.ZodNullable<z.ZodString>;
13783
15138
  nextPath: z.ZodNullable<z.ZodString>;
13784
15139
  sessionToken: z.ZodNullable<z.ZodString>;
13785
15140
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -13830,32 +15185,32 @@ export declare const operationDefinitions: {
13830
15185
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13831
15186
  }, z.core.$strip>>;
13832
15187
  }, z.core.$strip>;
13833
- userCode: z.ZodString;
13834
- verificationUri: z.ZodString;
13835
- verificationUriComplete: z.ZodString;
13836
- pollAfterSeconds: z.ZodNumber;
13837
- instructions: z.ZodArray<z.ZodString>;
13838
15188
  }, z.core.$strip>>;
13839
- readonly "auth.getCliLoginIntent": OperationDefinition<"auth.getCliLoginIntent", z.ZodObject<{
15189
+ readonly "auth.abandonCliLoginIntent": OperationDefinition<"auth.abandonCliLoginIntent", z.ZodObject<{
13840
15190
  intentId: z.ZodString;
13841
15191
  }, z.core.$strip>, z.ZodObject<{
13842
15192
  intent: z.ZodObject<{
13843
15193
  intentId: z.ZodString;
13844
- email: z.ZodString;
13845
- userCode: z.ZodString;
15194
+ email: z.ZodNullable<z.ZodString>;
15195
+ browserToken: z.ZodString;
13846
15196
  environment: z.ZodString;
13847
15197
  status: z.ZodEnum<{
13848
15198
  pending: "pending";
13849
15199
  completed: "completed";
13850
15200
  expired: "expired";
15201
+ abandoned: "abandoned";
13851
15202
  }>;
13852
15203
  deliveryMode: z.ZodEnum<{
13853
15204
  magic_link: "magic_link";
15205
+ browser_flow: "browser_flow";
15206
+ browser_session: "browser_session";
13854
15207
  synthetic_local: "synthetic_local";
13855
15208
  }>;
13856
15209
  requestedAt: z.ZodString;
13857
15210
  expiresAt: z.ZodString;
13858
15211
  completedAt: z.ZodNullable<z.ZodString>;
15212
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15213
+ linkSentAt: z.ZodNullable<z.ZodString>;
13859
15214
  nextPath: z.ZodNullable<z.ZodString>;
13860
15215
  sessionToken: z.ZodNullable<z.ZodString>;
13861
15216
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -13907,44 +15262,76 @@ export declare const operationDefinitions: {
13907
15262
  }, z.core.$strip>>;
13908
15263
  }, z.core.$strip>;
13909
15264
  }, z.core.$strip>>;
13910
- readonly "auth.getCliDeviceLoginStatus": OperationDefinition<"auth.getCliDeviceLoginStatus", z.ZodObject<{
13911
- userCode: z.ZodString;
15265
+ readonly "auth.getCliBrowserLoginState": OperationDefinition<"auth.getCliBrowserLoginState", z.ZodObject<{
15266
+ token: z.ZodString;
13912
15267
  }, z.core.$strip>, z.ZodObject<{
13913
15268
  intent: z.ZodNullable<z.ZodObject<{
13914
- userCode: z.ZodString;
13915
- emailHint: z.ZodString;
15269
+ token: z.ZodString;
15270
+ emailHint: z.ZodNullable<z.ZodString>;
13916
15271
  status: z.ZodEnum<{
13917
15272
  pending: "pending";
13918
15273
  completed: "completed";
13919
15274
  expired: "expired";
15275
+ abandoned: "abandoned";
13920
15276
  }>;
13921
15277
  requestedAt: z.ZodString;
13922
15278
  expiresAt: z.ZodString;
13923
15279
  completedAt: z.ZodNullable<z.ZodString>;
15280
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15281
+ linkSentAt: z.ZodNullable<z.ZodString>;
13924
15282
  nextPath: z.ZodNullable<z.ZodString>;
13925
15283
  }, z.core.$strip>>;
13926
15284
  }, z.core.$strip>>;
13927
- readonly "auth.completeCliDeviceLogin": OperationDefinition<"auth.completeCliDeviceLogin", z.ZodObject<{
13928
- userCode: z.ZodString;
15285
+ readonly "auth.requestCliLoginMagicLink": OperationDefinition<"auth.requestCliLoginMagicLink", z.ZodObject<{
15286
+ token: z.ZodString;
15287
+ email: z.ZodString;
15288
+ }, z.core.$strip>, z.ZodObject<{
15289
+ intent: z.ZodObject<{
15290
+ token: z.ZodString;
15291
+ emailHint: z.ZodNullable<z.ZodString>;
15292
+ status: z.ZodEnum<{
15293
+ pending: "pending";
15294
+ completed: "completed";
15295
+ expired: "expired";
15296
+ abandoned: "abandoned";
15297
+ }>;
15298
+ requestedAt: z.ZodString;
15299
+ expiresAt: z.ZodString;
15300
+ completedAt: z.ZodNullable<z.ZodString>;
15301
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15302
+ linkSentAt: z.ZodNullable<z.ZodString>;
15303
+ nextPath: z.ZodNullable<z.ZodString>;
15304
+ }, z.core.$strip>;
15305
+ accepted: z.ZodBoolean;
15306
+ email: z.ZodString;
15307
+ alreadySent: z.ZodBoolean;
15308
+ }, z.core.$strip>>;
15309
+ readonly "auth.completeCliBrowserLogin": OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
15310
+ token: z.ZodString;
13929
15311
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13930
15312
  }, z.core.$strip>, z.ZodObject<{
13931
15313
  intent: z.ZodObject<{
13932
15314
  intentId: z.ZodString;
13933
- email: z.ZodString;
13934
- userCode: z.ZodString;
15315
+ email: z.ZodNullable<z.ZodString>;
15316
+ browserToken: z.ZodString;
13935
15317
  environment: z.ZodString;
13936
15318
  status: z.ZodEnum<{
13937
15319
  pending: "pending";
13938
15320
  completed: "completed";
13939
15321
  expired: "expired";
15322
+ abandoned: "abandoned";
13940
15323
  }>;
13941
15324
  deliveryMode: z.ZodEnum<{
13942
15325
  magic_link: "magic_link";
15326
+ browser_flow: "browser_flow";
15327
+ browser_session: "browser_session";
13943
15328
  synthetic_local: "synthetic_local";
13944
15329
  }>;
13945
15330
  requestedAt: z.ZodString;
13946
15331
  expiresAt: z.ZodString;
13947
15332
  completedAt: z.ZodNullable<z.ZodString>;
15333
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15334
+ linkSentAt: z.ZodNullable<z.ZodString>;
13948
15335
  nextPath: z.ZodNullable<z.ZodString>;
13949
15336
  sessionToken: z.ZodNullable<z.ZodString>;
13950
15337
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -14131,6 +15518,49 @@ export declare const operationDefinitions: {
14131
15518
  }, z.core.$strip>;
14132
15519
  }, z.core.$strip>>;
14133
15520
  }, z.core.$strip>>;
15521
+ readonly "auth.upsertWorkspaceMember": OperationDefinition<"auth.upsertWorkspaceMember", z.ZodObject<{
15522
+ workspaceSlug: z.ZodString;
15523
+ email: z.ZodString;
15524
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15525
+ role: z.ZodEnum<{
15526
+ workspace_admin: "workspace_admin";
15527
+ operator: "operator";
15528
+ observer: "observer";
15529
+ }>;
15530
+ }, z.core.$strip>, z.ZodObject<{
15531
+ member: z.ZodObject<{
15532
+ operator: z.ZodObject<{
15533
+ operatorId: z.ZodString;
15534
+ email: z.ZodString;
15535
+ displayName: z.ZodNullable<z.ZodString>;
15536
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15537
+ status: z.ZodEnum<{
15538
+ active: "active";
15539
+ disabled: "disabled";
15540
+ }>;
15541
+ createdAt: z.ZodString;
15542
+ updatedAt: z.ZodString;
15543
+ }, z.core.$strip>;
15544
+ membership: z.ZodObject<{
15545
+ membershipId: z.ZodString;
15546
+ operatorId: z.ZodString;
15547
+ workspaceId: z.ZodString;
15548
+ workspaceSlug: z.ZodString;
15549
+ workspaceName: z.ZodString;
15550
+ role: z.ZodEnum<{
15551
+ workspace_admin: "workspace_admin";
15552
+ operator: "operator";
15553
+ observer: "observer";
15554
+ }>;
15555
+ status: z.ZodEnum<{
15556
+ active: "active";
15557
+ revoked: "revoked";
15558
+ }>;
15559
+ createdAt: z.ZodString;
15560
+ updatedAt: z.ZodString;
15561
+ }, z.core.$strip>;
15562
+ }, z.core.$strip>;
15563
+ }, z.core.$strip>>;
14134
15564
  readonly "auth.checkAccess": OperationDefinition<"auth.checkAccess", z.ZodObject<{
14135
15565
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14136
15566
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14620,6 +16050,7 @@ export declare const operationDefinitions: {
14620
16050
  catalog_relations: z.ZodString;
14621
16051
  telegram_bots: z.ZodString;
14622
16052
  telegram_business_accounts: z.ZodString;
16053
+ media_root: z.ZodOptional<z.ZodString>;
14623
16054
  strategies_root: z.ZodString;
14624
16055
  policies_root: z.ZodString;
14625
16056
  prompt_overrides: z.ZodString;
@@ -14635,10 +16066,46 @@ export declare const operationDefinitions: {
14635
16066
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
14636
16067
  }, z.core.$strip>>;
14637
16068
  }, z.core.$strip>;
14638
- files: z.ZodArray<z.ZodObject<{
16069
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
14639
16070
  relativePath: z.ZodString;
16071
+ contentKind: z.ZodLiteral<"text">;
14640
16072
  content: z.ZodString;
14641
- }, z.core.$strip>>;
16073
+ }, z.core.$strip>, z.ZodObject<{
16074
+ relativePath: z.ZodString;
16075
+ contentKind: z.ZodLiteral<"binary">;
16076
+ contentBase64: z.ZodString;
16077
+ byteSize: z.ZodNumber;
16078
+ sha256: z.ZodString;
16079
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16080
+ }, z.core.$strip>, z.ZodObject<{
16081
+ relativePath: z.ZodString;
16082
+ content: z.ZodString;
16083
+ }, z.core.$strip>]>, z.ZodTransform<{
16084
+ relativePath: string;
16085
+ contentKind: "text";
16086
+ content: string;
16087
+ } | {
16088
+ relativePath: string;
16089
+ contentKind: "binary";
16090
+ contentBase64: string;
16091
+ byteSize: number;
16092
+ sha256: string;
16093
+ mimeType: string | null;
16094
+ }, {
16095
+ relativePath: string;
16096
+ contentKind: "text";
16097
+ content: string;
16098
+ } | {
16099
+ relativePath: string;
16100
+ contentKind: "binary";
16101
+ contentBase64: string;
16102
+ byteSize: number;
16103
+ sha256: string;
16104
+ mimeType: string | null;
16105
+ } | {
16106
+ relativePath: string;
16107
+ content: string;
16108
+ }>>>;
14642
16109
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
14643
16110
  integrationKey: z.ZodString;
14644
16111
  field: z.ZodEnum<{
@@ -14746,11 +16213,52 @@ export declare const operationDefinitions: {
14746
16213
  createdAt: z.ZodString;
14747
16214
  updatedAt: z.ZodString;
14748
16215
  }, z.core.$strip>>;
16216
+ mediaRegistry: z.ZodObject<{
16217
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16218
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16219
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16220
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
16221
+ folderKey: z.ZodString;
16222
+ relativePath: z.ZodString;
16223
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16224
+ purpose: z.ZodString;
16225
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16226
+ assetCount: z.ZodNumber;
16227
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
16228
+ image: "image";
16229
+ document: "document";
16230
+ link: "link";
16231
+ deck: "deck";
16232
+ }>>>;
16233
+ }, z.core.$strip>>>;
16234
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
16235
+ assetId: z.ZodString;
16236
+ folderKey: z.ZodString;
16237
+ kind: z.ZodEnum<{
16238
+ image: "image";
16239
+ document: "document";
16240
+ link: "link";
16241
+ deck: "deck";
16242
+ }>;
16243
+ what: z.ZodString;
16244
+ purpose: z.ZodString;
16245
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16246
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
16247
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16248
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16249
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16250
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16251
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16252
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16253
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16254
+ }, z.core.$strip>>>;
16255
+ }, z.core.$strip>;
14749
16256
  targetEnvironment: z.ZodString;
14750
16257
  serverEnvironment: z.ZodString;
14751
16258
  appliedDeclarations: z.ZodArray<z.ZodObject<{
14752
16259
  kind: z.ZodEnum<{
14753
16260
  telegram_bot: "telegram_bot";
16261
+ media_folder: "media_folder";
14754
16262
  }>;
14755
16263
  key: z.ZodString;
14756
16264
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14758,6 +16266,7 @@ export declare const operationDefinitions: {
14758
16266
  skippedDeclarations: z.ZodArray<z.ZodObject<{
14759
16267
  kind: z.ZodEnum<{
14760
16268
  telegram_bot: "telegram_bot";
16269
+ media_folder: "media_folder";
14761
16270
  }>;
14762
16271
  key: z.ZodString;
14763
16272
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14851,6 +16360,7 @@ export declare const operationDefinitions: {
14851
16360
  catalog_relations: z.ZodString;
14852
16361
  telegram_bots: z.ZodString;
14853
16362
  telegram_business_accounts: z.ZodString;
16363
+ media_root: z.ZodOptional<z.ZodString>;
14854
16364
  strategies_root: z.ZodString;
14855
16365
  policies_root: z.ZodString;
14856
16366
  prompt_overrides: z.ZodString;
@@ -14866,10 +16376,46 @@ export declare const operationDefinitions: {
14866
16376
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
14867
16377
  }, z.core.$strip>>;
14868
16378
  }, z.core.$strip>;
14869
- files: z.ZodArray<z.ZodObject<{
16379
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
14870
16380
  relativePath: z.ZodString;
16381
+ contentKind: z.ZodLiteral<"text">;
14871
16382
  content: z.ZodString;
14872
- }, z.core.$strip>>;
16383
+ }, z.core.$strip>, z.ZodObject<{
16384
+ relativePath: z.ZodString;
16385
+ contentKind: z.ZodLiteral<"binary">;
16386
+ contentBase64: z.ZodString;
16387
+ byteSize: z.ZodNumber;
16388
+ sha256: z.ZodString;
16389
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16390
+ }, z.core.$strip>, z.ZodObject<{
16391
+ relativePath: z.ZodString;
16392
+ content: z.ZodString;
16393
+ }, z.core.$strip>]>, z.ZodTransform<{
16394
+ relativePath: string;
16395
+ contentKind: "text";
16396
+ content: string;
16397
+ } | {
16398
+ relativePath: string;
16399
+ contentKind: "binary";
16400
+ contentBase64: string;
16401
+ byteSize: number;
16402
+ sha256: string;
16403
+ mimeType: string | null;
16404
+ }, {
16405
+ relativePath: string;
16406
+ contentKind: "text";
16407
+ content: string;
16408
+ } | {
16409
+ relativePath: string;
16410
+ contentKind: "binary";
16411
+ contentBase64: string;
16412
+ byteSize: number;
16413
+ sha256: string;
16414
+ mimeType: string | null;
16415
+ } | {
16416
+ relativePath: string;
16417
+ content: string;
16418
+ }>>>;
14873
16419
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
14874
16420
  integrationKey: z.ZodString;
14875
16421
  field: z.ZodEnum<{
@@ -14921,6 +16467,46 @@ export declare const operationDefinitions: {
14921
16467
  createdAt: z.ZodString;
14922
16468
  updatedAt: z.ZodString;
14923
16469
  }, z.core.$strip>>;
16470
+ mediaRegistry: z.ZodObject<{
16471
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16472
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16473
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16474
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
16475
+ folderKey: z.ZodString;
16476
+ relativePath: z.ZodString;
16477
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16478
+ purpose: z.ZodString;
16479
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16480
+ assetCount: z.ZodNumber;
16481
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
16482
+ image: "image";
16483
+ document: "document";
16484
+ link: "link";
16485
+ deck: "deck";
16486
+ }>>>;
16487
+ }, z.core.$strip>>>;
16488
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
16489
+ assetId: z.ZodString;
16490
+ folderKey: z.ZodString;
16491
+ kind: z.ZodEnum<{
16492
+ image: "image";
16493
+ document: "document";
16494
+ link: "link";
16495
+ deck: "deck";
16496
+ }>;
16497
+ what: z.ZodString;
16498
+ purpose: z.ZodString;
16499
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16500
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
16501
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16502
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16503
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16504
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16505
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16506
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16507
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16508
+ }, z.core.$strip>>>;
16509
+ }, z.core.$strip>;
14924
16510
  serverEnvironment: z.ZodString;
14925
16511
  }, z.core.$strip>>;
14926
16512
  readonly "integrations.upsertTelegramBot": OperationDefinition<"integrations.upsertTelegramBot", z.ZodObject<{
@@ -16630,11 +18216,11 @@ export declare const operationDefinitions: {
16630
18216
  conversationId: z.ZodNullable<z.ZodString>;
16631
18217
  dealId: z.ZodNullable<z.ZodString>;
16632
18218
  status: z.ZodEnum<{
18219
+ abandoned: "abandoned";
16633
18220
  suggested: "suggested";
16634
18221
  discussing: "discussing";
16635
18222
  confirmed: "confirmed";
16636
18223
  converted: "converted";
16637
- abandoned: "abandoned";
16638
18224
  }>;
16639
18225
  currency: z.ZodString;
16640
18226
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16674,9 +18260,9 @@ export declare const operationDefinitions: {
16674
18260
  conversationId: z.ZodNullable<z.ZodString>;
16675
18261
  activeCartId: z.ZodString;
16676
18262
  status: z.ZodEnum<{
18263
+ abandoned: "abandoned";
16677
18264
  draft: "draft";
16678
18265
  converted: "converted";
16679
- abandoned: "abandoned";
16680
18266
  quoted: "quoted";
16681
18267
  ready_for_payment: "ready_for_payment";
16682
18268
  }>;
@@ -16733,11 +18319,11 @@ export declare const operationDefinitions: {
16733
18319
  conversationId: z.ZodNullable<z.ZodString>;
16734
18320
  dealId: z.ZodNullable<z.ZodString>;
16735
18321
  status: z.ZodEnum<{
18322
+ abandoned: "abandoned";
16736
18323
  suggested: "suggested";
16737
18324
  discussing: "discussing";
16738
18325
  confirmed: "confirmed";
16739
18326
  converted: "converted";
16740
- abandoned: "abandoned";
16741
18327
  }>;
16742
18328
  currency: z.ZodString;
16743
18329
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16797,11 +18383,11 @@ export declare const operationDefinitions: {
16797
18383
  conversationId: z.ZodNullable<z.ZodString>;
16798
18384
  dealId: z.ZodNullable<z.ZodString>;
16799
18385
  status: z.ZodEnum<{
18386
+ abandoned: "abandoned";
16800
18387
  suggested: "suggested";
16801
18388
  discussing: "discussing";
16802
18389
  confirmed: "confirmed";
16803
18390
  converted: "converted";
16804
- abandoned: "abandoned";
16805
18391
  }>;
16806
18392
  currency: z.ZodString;
16807
18393
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16841,9 +18427,9 @@ export declare const operationDefinitions: {
16841
18427
  conversationId: z.ZodNullable<z.ZodString>;
16842
18428
  activeCartId: z.ZodString;
16843
18429
  status: z.ZodEnum<{
18430
+ abandoned: "abandoned";
16844
18431
  draft: "draft";
16845
18432
  converted: "converted";
16846
- abandoned: "abandoned";
16847
18433
  quoted: "quoted";
16848
18434
  ready_for_payment: "ready_for_payment";
16849
18435
  }>;
@@ -16973,9 +18559,9 @@ export declare const operationDefinitions: {
16973
18559
  conversationId: z.ZodNullable<z.ZodString>;
16974
18560
  activeCartId: z.ZodString;
16975
18561
  status: z.ZodEnum<{
18562
+ abandoned: "abandoned";
16976
18563
  draft: "draft";
16977
18564
  converted: "converted";
16978
- abandoned: "abandoned";
16979
18565
  quoted: "quoted";
16980
18566
  ready_for_payment: "ready_for_payment";
16981
18567
  }>;
@@ -17016,11 +18602,11 @@ export declare const operationDefinitions: {
17016
18602
  conversationId: z.ZodNullable<z.ZodString>;
17017
18603
  dealId: z.ZodNullable<z.ZodString>;
17018
18604
  status: z.ZodEnum<{
18605
+ abandoned: "abandoned";
17019
18606
  suggested: "suggested";
17020
18607
  discussing: "discussing";
17021
18608
  confirmed: "confirmed";
17022
18609
  converted: "converted";
17023
- abandoned: "abandoned";
17024
18610
  }>;
17025
18611
  currency: z.ZodString;
17026
18612
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -17107,11 +18693,11 @@ export declare const operationDefinitions: {
17107
18693
  conversationId: z.ZodNullable<z.ZodString>;
17108
18694
  dealId: z.ZodNullable<z.ZodString>;
17109
18695
  status: z.ZodEnum<{
18696
+ abandoned: "abandoned";
17110
18697
  suggested: "suggested";
17111
18698
  discussing: "discussing";
17112
18699
  confirmed: "confirmed";
17113
18700
  converted: "converted";
17114
- abandoned: "abandoned";
17115
18701
  }>;
17116
18702
  currency: z.ZodString;
17117
18703
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -17151,9 +18737,9 @@ export declare const operationDefinitions: {
17151
18737
  conversationId: z.ZodNullable<z.ZodString>;
17152
18738
  activeCartId: z.ZodString;
17153
18739
  status: z.ZodEnum<{
18740
+ abandoned: "abandoned";
17154
18741
  draft: "draft";
17155
18742
  converted: "converted";
17156
- abandoned: "abandoned";
17157
18743
  quoted: "quoted";
17158
18744
  ready_for_payment: "ready_for_payment";
17159
18745
  }>;
@@ -17285,8 +18871,8 @@ export declare const operationDefinitions: {
17285
18871
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17286
18872
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
17287
18873
  kind: z.ZodEnum<{
17288
- photo: "photo";
17289
18874
  document: "document";
18875
+ photo: "photo";
17290
18876
  audio: "audio";
17291
18877
  video: "video";
17292
18878
  other: "other";
@@ -17297,6 +18883,7 @@ export declare const operationDefinitions: {
17297
18883
  sourceRef: z.ZodString;
17298
18884
  metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17299
18885
  }, z.core.$strip>>>;
18886
+ mediaRegistryOverride: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17300
18887
  deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
17301
18888
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17302
18889
  ownershipMode: z.ZodOptional<z.ZodEnum<{
@@ -17402,8 +18989,8 @@ export declare const operationDefinitions: {
17402
18989
  conversationId: z.ZodString;
17403
18990
  messageId: z.ZodString;
17404
18991
  kind: z.ZodEnum<{
17405
- photo: "photo";
17406
18992
  document: "document";
18993
+ photo: "photo";
17407
18994
  audio: "audio";
17408
18995
  video: "video";
17409
18996
  other: "other";
@@ -17436,6 +19023,7 @@ export declare const operationDefinitions: {
17436
19023
  "operator.note.added": "operator.note.added";
17437
19024
  "channel.outbound.skipped": "channel.outbound.skipped";
17438
19025
  "channel.outbound.sent": "channel.outbound.sent";
19026
+ "channel.outbound.failed": "channel.outbound.failed";
17439
19027
  "followup.classified": "followup.classified";
17440
19028
  "followup.task.scheduled": "followup.task.scheduled";
17441
19029
  "followup.task.completed": "followup.task.completed";
@@ -17560,6 +19148,45 @@ export declare const operationDefinitions: {
17560
19148
  }>>;
17561
19149
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
17562
19150
  }, z.core.$strip>;
19151
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
19152
+ planId: z.ZodString;
19153
+ conversationId: z.ZodString;
19154
+ basedOnCustomerMessageId: z.ZodString;
19155
+ kind: z.ZodEnum<{
19156
+ draft_outbound_plan: "draft_outbound_plan";
19157
+ final_outbound_plan: "final_outbound_plan";
19158
+ }>;
19159
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
19160
+ stepId: z.ZodString;
19161
+ sequence: z.ZodNumber;
19162
+ type: z.ZodLiteral<"send_text">;
19163
+ text: z.ZodString;
19164
+ }, z.core.$strip>, z.ZodObject<{
19165
+ stepId: z.ZodString;
19166
+ sequence: z.ZodNumber;
19167
+ type: z.ZodLiteral<"send_media">;
19168
+ assetId: z.ZodString;
19169
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19170
+ }, z.core.$strip>, z.ZodObject<{
19171
+ stepId: z.ZodString;
19172
+ sequence: z.ZodNumber;
19173
+ type: z.ZodLiteral<"send_media_group">;
19174
+ assetIds: z.ZodArray<z.ZodString>;
19175
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19176
+ }, z.core.$strip>, z.ZodObject<{
19177
+ stepId: z.ZodString;
19178
+ sequence: z.ZodNumber;
19179
+ type: z.ZodLiteral<"send_document">;
19180
+ assetId: z.ZodString;
19181
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19182
+ }, z.core.$strip>, z.ZodObject<{
19183
+ stepId: z.ZodString;
19184
+ sequence: z.ZodNumber;
19185
+ type: z.ZodLiteral<"send_link">;
19186
+ assetId: z.ZodString;
19187
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19188
+ }, z.core.$strip>], "type">>;
19189
+ }, z.core.$strip>>>;
17563
19190
  classification: z.ZodObject<{
17564
19191
  primaryIntent: z.ZodString;
17565
19192
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -17676,6 +19303,34 @@ export declare const operationDefinitions: {
17676
19303
  heuristic: "heuristic";
17677
19304
  model: "model";
17678
19305
  }>;
19306
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19307
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19308
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19309
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
19310
+ requestKind: z.ZodEnum<{
19311
+ request_media_folders: "request_media_folders";
19312
+ request_media_folder_contents: "request_media_folder_contents";
19313
+ }>;
19314
+ status: z.ZodEnum<{
19315
+ rejected: "rejected";
19316
+ served: "served";
19317
+ }>;
19318
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19319
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19320
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
19321
+ image: "image";
19322
+ document: "document";
19323
+ link: "link";
19324
+ deck: "deck";
19325
+ }>>>;
19326
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19327
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19328
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
19329
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
19330
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19331
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19332
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19333
+ }, z.core.$strip>>>;
17679
19334
  }, z.core.$strip>>>;
17680
19335
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
17681
19336
  stage: z.ZodEnum<{
@@ -17766,8 +19421,8 @@ export declare const operationDefinitions: {
17766
19421
  conversationId: z.ZodString;
17767
19422
  messageId: z.ZodString;
17768
19423
  kind: z.ZodEnum<{
17769
- photo: "photo";
17770
19424
  document: "document";
19425
+ photo: "photo";
17771
19426
  audio: "audio";
17772
19427
  video: "video";
17773
19428
  other: "other";
@@ -17802,8 +19457,8 @@ export declare const operationDefinitions: {
17802
19457
  conversationId: z.ZodString;
17803
19458
  messageId: z.ZodString;
17804
19459
  kind: z.ZodEnum<{
17805
- photo: "photo";
17806
19460
  document: "document";
19461
+ photo: "photo";
17807
19462
  audio: "audio";
17808
19463
  video: "video";
17809
19464
  other: "other";
@@ -17836,6 +19491,7 @@ export declare const operationDefinitions: {
17836
19491
  "operator.note.added": "operator.note.added";
17837
19492
  "channel.outbound.skipped": "channel.outbound.skipped";
17838
19493
  "channel.outbound.sent": "channel.outbound.sent";
19494
+ "channel.outbound.failed": "channel.outbound.failed";
17839
19495
  "followup.classified": "followup.classified";
17840
19496
  "followup.task.scheduled": "followup.task.scheduled";
17841
19497
  "followup.task.completed": "followup.task.completed";
@@ -17898,8 +19554,19 @@ export declare const operationDefinitions: {
17898
19554
  deliveryStatus: z.ZodEnum<{
17899
19555
  skipped: "skipped";
17900
19556
  simulated: "simulated";
19557
+ failed: "failed";
17901
19558
  sent: "sent";
17902
19559
  }>;
19560
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19561
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19562
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19563
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
19564
+ send_text: "send_text";
19565
+ send_media: "send_media";
19566
+ send_media_group: "send_media_group";
19567
+ send_document: "send_document";
19568
+ send_link: "send_link";
19569
+ }>>>;
17903
19570
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17904
19571
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17905
19572
  }, z.core.$strip>>;
@@ -17990,8 +19657,8 @@ export declare const operationDefinitions: {
17990
19657
  conversationId: z.ZodString;
17991
19658
  messageId: z.ZodString;
17992
19659
  kind: z.ZodEnum<{
17993
- photo: "photo";
17994
19660
  document: "document";
19661
+ photo: "photo";
17995
19662
  audio: "audio";
17996
19663
  video: "video";
17997
19664
  other: "other";
@@ -18024,6 +19691,7 @@ export declare const operationDefinitions: {
18024
19691
  "operator.note.added": "operator.note.added";
18025
19692
  "channel.outbound.skipped": "channel.outbound.skipped";
18026
19693
  "channel.outbound.sent": "channel.outbound.sent";
19694
+ "channel.outbound.failed": "channel.outbound.failed";
18027
19695
  "followup.classified": "followup.classified";
18028
19696
  "followup.task.scheduled": "followup.task.scheduled";
18029
19697
  "followup.task.completed": "followup.task.completed";
@@ -18148,6 +19816,45 @@ export declare const operationDefinitions: {
18148
19816
  }>>;
18149
19817
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
18150
19818
  }, z.core.$strip>;
19819
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
19820
+ planId: z.ZodString;
19821
+ conversationId: z.ZodString;
19822
+ basedOnCustomerMessageId: z.ZodString;
19823
+ kind: z.ZodEnum<{
19824
+ draft_outbound_plan: "draft_outbound_plan";
19825
+ final_outbound_plan: "final_outbound_plan";
19826
+ }>;
19827
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
19828
+ stepId: z.ZodString;
19829
+ sequence: z.ZodNumber;
19830
+ type: z.ZodLiteral<"send_text">;
19831
+ text: z.ZodString;
19832
+ }, z.core.$strip>, z.ZodObject<{
19833
+ stepId: z.ZodString;
19834
+ sequence: z.ZodNumber;
19835
+ type: z.ZodLiteral<"send_media">;
19836
+ assetId: z.ZodString;
19837
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19838
+ }, z.core.$strip>, z.ZodObject<{
19839
+ stepId: z.ZodString;
19840
+ sequence: z.ZodNumber;
19841
+ type: z.ZodLiteral<"send_media_group">;
19842
+ assetIds: z.ZodArray<z.ZodString>;
19843
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19844
+ }, z.core.$strip>, z.ZodObject<{
19845
+ stepId: z.ZodString;
19846
+ sequence: z.ZodNumber;
19847
+ type: z.ZodLiteral<"send_document">;
19848
+ assetId: z.ZodString;
19849
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19850
+ }, z.core.$strip>, z.ZodObject<{
19851
+ stepId: z.ZodString;
19852
+ sequence: z.ZodNumber;
19853
+ type: z.ZodLiteral<"send_link">;
19854
+ assetId: z.ZodString;
19855
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19856
+ }, z.core.$strip>], "type">>;
19857
+ }, z.core.$strip>>>;
18151
19858
  classification: z.ZodObject<{
18152
19859
  primaryIntent: z.ZodString;
18153
19860
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -18264,6 +19971,34 @@ export declare const operationDefinitions: {
18264
19971
  heuristic: "heuristic";
18265
19972
  model: "model";
18266
19973
  }>;
19974
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19975
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19976
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19977
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
19978
+ requestKind: z.ZodEnum<{
19979
+ request_media_folders: "request_media_folders";
19980
+ request_media_folder_contents: "request_media_folder_contents";
19981
+ }>;
19982
+ status: z.ZodEnum<{
19983
+ rejected: "rejected";
19984
+ served: "served";
19985
+ }>;
19986
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19987
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19988
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
19989
+ image: "image";
19990
+ document: "document";
19991
+ link: "link";
19992
+ deck: "deck";
19993
+ }>>>;
19994
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19995
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19996
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
19997
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
19998
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19999
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20000
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20001
+ }, z.core.$strip>>>;
18267
20002
  }, z.core.$strip>>>;
18268
20003
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
18269
20004
  stage: z.ZodEnum<{
@@ -18501,6 +20236,45 @@ export declare const operationDefinitions: {
18501
20236
  }>>;
18502
20237
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
18503
20238
  }, z.core.$strip>;
20239
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
20240
+ planId: z.ZodString;
20241
+ conversationId: z.ZodString;
20242
+ basedOnCustomerMessageId: z.ZodString;
20243
+ kind: z.ZodEnum<{
20244
+ draft_outbound_plan: "draft_outbound_plan";
20245
+ final_outbound_plan: "final_outbound_plan";
20246
+ }>;
20247
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20248
+ stepId: z.ZodString;
20249
+ sequence: z.ZodNumber;
20250
+ type: z.ZodLiteral<"send_text">;
20251
+ text: z.ZodString;
20252
+ }, z.core.$strip>, z.ZodObject<{
20253
+ stepId: z.ZodString;
20254
+ sequence: z.ZodNumber;
20255
+ type: z.ZodLiteral<"send_media">;
20256
+ assetId: z.ZodString;
20257
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20258
+ }, z.core.$strip>, z.ZodObject<{
20259
+ stepId: z.ZodString;
20260
+ sequence: z.ZodNumber;
20261
+ type: z.ZodLiteral<"send_media_group">;
20262
+ assetIds: z.ZodArray<z.ZodString>;
20263
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20264
+ }, z.core.$strip>, z.ZodObject<{
20265
+ stepId: z.ZodString;
20266
+ sequence: z.ZodNumber;
20267
+ type: z.ZodLiteral<"send_document">;
20268
+ assetId: z.ZodString;
20269
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20270
+ }, z.core.$strip>, z.ZodObject<{
20271
+ stepId: z.ZodString;
20272
+ sequence: z.ZodNumber;
20273
+ type: z.ZodLiteral<"send_link">;
20274
+ assetId: z.ZodString;
20275
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20276
+ }, z.core.$strip>], "type">>;
20277
+ }, z.core.$strip>>>;
18504
20278
  classification: z.ZodObject<{
18505
20279
  primaryIntent: z.ZodString;
18506
20280
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -18617,6 +20391,34 @@ export declare const operationDefinitions: {
18617
20391
  heuristic: "heuristic";
18618
20392
  model: "model";
18619
20393
  }>;
20394
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20395
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20396
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20397
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
20398
+ requestKind: z.ZodEnum<{
20399
+ request_media_folders: "request_media_folders";
20400
+ request_media_folder_contents: "request_media_folder_contents";
20401
+ }>;
20402
+ status: z.ZodEnum<{
20403
+ rejected: "rejected";
20404
+ served: "served";
20405
+ }>;
20406
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20407
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20408
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
20409
+ image: "image";
20410
+ document: "document";
20411
+ link: "link";
20412
+ deck: "deck";
20413
+ }>>>;
20414
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20415
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20416
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
20417
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
20418
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20419
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20420
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20421
+ }, z.core.$strip>>>;
18620
20422
  }, z.core.$strip>>>;
18621
20423
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
18622
20424
  stage: z.ZodEnum<{
@@ -19717,8 +21519,8 @@ export declare const operationDefinitions: {
19717
21519
  conversationId: z.ZodString;
19718
21520
  messageId: z.ZodString;
19719
21521
  kind: z.ZodEnum<{
19720
- photo: "photo";
19721
21522
  document: "document";
21523
+ photo: "photo";
19722
21524
  audio: "audio";
19723
21525
  video: "video";
19724
21526
  other: "other";
@@ -19751,6 +21553,7 @@ export declare const operationDefinitions: {
19751
21553
  "operator.note.added": "operator.note.added";
19752
21554
  "channel.outbound.skipped": "channel.outbound.skipped";
19753
21555
  "channel.outbound.sent": "channel.outbound.sent";
21556
+ "channel.outbound.failed": "channel.outbound.failed";
19754
21557
  "followup.classified": "followup.classified";
19755
21558
  "followup.task.scheduled": "followup.task.scheduled";
19756
21559
  "followup.task.completed": "followup.task.completed";
@@ -19875,6 +21678,45 @@ export declare const operationDefinitions: {
19875
21678
  }>>;
19876
21679
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
19877
21680
  }, z.core.$strip>;
21681
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
21682
+ planId: z.ZodString;
21683
+ conversationId: z.ZodString;
21684
+ basedOnCustomerMessageId: z.ZodString;
21685
+ kind: z.ZodEnum<{
21686
+ draft_outbound_plan: "draft_outbound_plan";
21687
+ final_outbound_plan: "final_outbound_plan";
21688
+ }>;
21689
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
21690
+ stepId: z.ZodString;
21691
+ sequence: z.ZodNumber;
21692
+ type: z.ZodLiteral<"send_text">;
21693
+ text: z.ZodString;
21694
+ }, z.core.$strip>, z.ZodObject<{
21695
+ stepId: z.ZodString;
21696
+ sequence: z.ZodNumber;
21697
+ type: z.ZodLiteral<"send_media">;
21698
+ assetId: z.ZodString;
21699
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21700
+ }, z.core.$strip>, z.ZodObject<{
21701
+ stepId: z.ZodString;
21702
+ sequence: z.ZodNumber;
21703
+ type: z.ZodLiteral<"send_media_group">;
21704
+ assetIds: z.ZodArray<z.ZodString>;
21705
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21706
+ }, z.core.$strip>, z.ZodObject<{
21707
+ stepId: z.ZodString;
21708
+ sequence: z.ZodNumber;
21709
+ type: z.ZodLiteral<"send_document">;
21710
+ assetId: z.ZodString;
21711
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21712
+ }, z.core.$strip>, z.ZodObject<{
21713
+ stepId: z.ZodString;
21714
+ sequence: z.ZodNumber;
21715
+ type: z.ZodLiteral<"send_link">;
21716
+ assetId: z.ZodString;
21717
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21718
+ }, z.core.$strip>], "type">>;
21719
+ }, z.core.$strip>>>;
19878
21720
  classification: z.ZodObject<{
19879
21721
  primaryIntent: z.ZodString;
19880
21722
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -19991,6 +21833,34 @@ export declare const operationDefinitions: {
19991
21833
  heuristic: "heuristic";
19992
21834
  model: "model";
19993
21835
  }>;
21836
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21837
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21838
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21839
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
21840
+ requestKind: z.ZodEnum<{
21841
+ request_media_folders: "request_media_folders";
21842
+ request_media_folder_contents: "request_media_folder_contents";
21843
+ }>;
21844
+ status: z.ZodEnum<{
21845
+ rejected: "rejected";
21846
+ served: "served";
21847
+ }>;
21848
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21849
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21850
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
21851
+ image: "image";
21852
+ document: "document";
21853
+ link: "link";
21854
+ deck: "deck";
21855
+ }>>>;
21856
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21857
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21858
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
21859
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
21860
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21861
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21862
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21863
+ }, z.core.$strip>>>;
19994
21864
  }, z.core.$strip>>>;
19995
21865
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
19996
21866
  stage: z.ZodEnum<{
@@ -20263,11 +22133,11 @@ export declare const operationDefinitions: {
20263
22133
  conversationId: z.ZodNullable<z.ZodString>;
20264
22134
  dealId: z.ZodNullable<z.ZodString>;
20265
22135
  status: z.ZodEnum<{
22136
+ abandoned: "abandoned";
20266
22137
  suggested: "suggested";
20267
22138
  discussing: "discussing";
20268
22139
  confirmed: "confirmed";
20269
22140
  converted: "converted";
20270
- abandoned: "abandoned";
20271
22141
  }>;
20272
22142
  currency: z.ZodString;
20273
22143
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -20307,9 +22177,9 @@ export declare const operationDefinitions: {
20307
22177
  conversationId: z.ZodNullable<z.ZodString>;
20308
22178
  activeCartId: z.ZodString;
20309
22179
  status: z.ZodEnum<{
22180
+ abandoned: "abandoned";
20310
22181
  draft: "draft";
20311
22182
  converted: "converted";
20312
- abandoned: "abandoned";
20313
22183
  quoted: "quoted";
20314
22184
  ready_for_payment: "ready_for_payment";
20315
22185
  }>;
@@ -20512,6 +22382,94 @@ export declare const operationDefinitions: {
20512
22382
  human: "human";
20513
22383
  }>>;
20514
22384
  }, z.core.$strip>>>;
22385
+ outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
22386
+ traceId: z.ZodString;
22387
+ planId: z.ZodString;
22388
+ kind: z.ZodEnum<{
22389
+ draft_outbound_plan: "draft_outbound_plan";
22390
+ final_outbound_plan: "final_outbound_plan";
22391
+ }>;
22392
+ status: z.ZodEnum<{
22393
+ failed: "failed";
22394
+ draft: "draft";
22395
+ superseded: "superseded";
22396
+ sent: "sent";
22397
+ partial: "partial";
22398
+ }>;
22399
+ basedOnCustomerMessageId: z.ZodString;
22400
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22401
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22402
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22403
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22404
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22405
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
22406
+ requestKind: z.ZodEnum<{
22407
+ request_media_folders: "request_media_folders";
22408
+ request_media_folder_contents: "request_media_folder_contents";
22409
+ }>;
22410
+ status: z.ZodEnum<{
22411
+ rejected: "rejected";
22412
+ served: "served";
22413
+ }>;
22414
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22415
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22416
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
22417
+ image: "image";
22418
+ document: "document";
22419
+ link: "link";
22420
+ deck: "deck";
22421
+ }>>>;
22422
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22423
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22424
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
22425
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
22426
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22427
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22428
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22429
+ }, z.core.$strip>>>;
22430
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
22431
+ assetId: z.ZodString;
22432
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22433
+ kind: z.ZodEnum<{
22434
+ image: "image";
22435
+ document: "document";
22436
+ link: "link";
22437
+ deck: "deck";
22438
+ }>;
22439
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22440
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22441
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22442
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22443
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22444
+ }, z.core.$strip>>>;
22445
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
22446
+ stepId: z.ZodString;
22447
+ sequence: z.ZodNumber;
22448
+ stepType: z.ZodEnum<{
22449
+ send_text: "send_text";
22450
+ send_media: "send_media";
22451
+ send_media_group: "send_media_group";
22452
+ send_document: "send_document";
22453
+ send_link: "send_link";
22454
+ }>;
22455
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22456
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22457
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
22458
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
22459
+ skipped: "skipped";
22460
+ simulated: "simulated";
22461
+ failed: "failed";
22462
+ sent: "sent";
22463
+ }>>>;
22464
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22465
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22466
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22467
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22468
+ }, z.core.$strip>>>;
22469
+ createdAt: z.ZodString;
22470
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22471
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22472
+ }, z.core.$strip>>>;
20515
22473
  }, z.core.$strip>>;
20516
22474
  readonly "ops.getReadiness": OperationDefinition<"ops.getReadiness", z.ZodObject<{
20517
22475
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -21641,6 +23599,7 @@ export declare const operationDefinitions: {
21641
23599
  "operator.note.added": "operator.note.added";
21642
23600
  "channel.outbound.skipped": "channel.outbound.skipped";
21643
23601
  "channel.outbound.sent": "channel.outbound.sent";
23602
+ "channel.outbound.failed": "channel.outbound.failed";
21644
23603
  "followup.classified": "followup.classified";
21645
23604
  "followup.task.scheduled": "followup.task.scheduled";
21646
23605
  "followup.task.completed": "followup.task.completed";
@@ -21819,6 +23778,7 @@ export declare const operationDefinitions: {
21819
23778
  "operator.note.added": "operator.note.added";
21820
23779
  "channel.outbound.skipped": "channel.outbound.skipped";
21821
23780
  "channel.outbound.sent": "channel.outbound.sent";
23781
+ "channel.outbound.failed": "channel.outbound.failed";
21822
23782
  "followup.classified": "followup.classified";
21823
23783
  "followup.task.scheduled": "followup.task.scheduled";
21824
23784
  "followup.task.completed": "followup.task.completed";
@@ -22060,8 +24020,8 @@ export declare const operationDefinitions: {
22060
24020
  conversationId: z.ZodString;
22061
24021
  messageId: z.ZodString;
22062
24022
  kind: z.ZodEnum<{
22063
- photo: "photo";
22064
24023
  document: "document";
24024
+ photo: "photo";
22065
24025
  audio: "audio";
22066
24026
  video: "video";
22067
24027
  other: "other";
@@ -22094,6 +24054,7 @@ export declare const operationDefinitions: {
22094
24054
  "operator.note.added": "operator.note.added";
22095
24055
  "channel.outbound.skipped": "channel.outbound.skipped";
22096
24056
  "channel.outbound.sent": "channel.outbound.sent";
24057
+ "channel.outbound.failed": "channel.outbound.failed";
22097
24058
  "followup.classified": "followup.classified";
22098
24059
  "followup.task.scheduled": "followup.task.scheduled";
22099
24060
  "followup.task.completed": "followup.task.completed";
@@ -22218,6 +24179,45 @@ export declare const operationDefinitions: {
22218
24179
  }>>;
22219
24180
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
22220
24181
  }, z.core.$strip>;
24182
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
24183
+ planId: z.ZodString;
24184
+ conversationId: z.ZodString;
24185
+ basedOnCustomerMessageId: z.ZodString;
24186
+ kind: z.ZodEnum<{
24187
+ draft_outbound_plan: "draft_outbound_plan";
24188
+ final_outbound_plan: "final_outbound_plan";
24189
+ }>;
24190
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
24191
+ stepId: z.ZodString;
24192
+ sequence: z.ZodNumber;
24193
+ type: z.ZodLiteral<"send_text">;
24194
+ text: z.ZodString;
24195
+ }, z.core.$strip>, z.ZodObject<{
24196
+ stepId: z.ZodString;
24197
+ sequence: z.ZodNumber;
24198
+ type: z.ZodLiteral<"send_media">;
24199
+ assetId: z.ZodString;
24200
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24201
+ }, z.core.$strip>, z.ZodObject<{
24202
+ stepId: z.ZodString;
24203
+ sequence: z.ZodNumber;
24204
+ type: z.ZodLiteral<"send_media_group">;
24205
+ assetIds: z.ZodArray<z.ZodString>;
24206
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24207
+ }, z.core.$strip>, z.ZodObject<{
24208
+ stepId: z.ZodString;
24209
+ sequence: z.ZodNumber;
24210
+ type: z.ZodLiteral<"send_document">;
24211
+ assetId: z.ZodString;
24212
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24213
+ }, z.core.$strip>, z.ZodObject<{
24214
+ stepId: z.ZodString;
24215
+ sequence: z.ZodNumber;
24216
+ type: z.ZodLiteral<"send_link">;
24217
+ assetId: z.ZodString;
24218
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24219
+ }, z.core.$strip>], "type">>;
24220
+ }, z.core.$strip>>>;
22221
24221
  classification: z.ZodObject<{
22222
24222
  primaryIntent: z.ZodString;
22223
24223
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -22334,6 +24334,34 @@ export declare const operationDefinitions: {
22334
24334
  heuristic: "heuristic";
22335
24335
  model: "model";
22336
24336
  }>;
24337
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24338
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24339
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24340
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
24341
+ requestKind: z.ZodEnum<{
24342
+ request_media_folders: "request_media_folders";
24343
+ request_media_folder_contents: "request_media_folder_contents";
24344
+ }>;
24345
+ status: z.ZodEnum<{
24346
+ rejected: "rejected";
24347
+ served: "served";
24348
+ }>;
24349
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24350
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24351
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
24352
+ image: "image";
24353
+ document: "document";
24354
+ link: "link";
24355
+ deck: "deck";
24356
+ }>>>;
24357
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24358
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24359
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
24360
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
24361
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24362
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24363
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24364
+ }, z.core.$strip>>>;
22337
24365
  }, z.core.$strip>>>;
22338
24366
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
22339
24367
  stage: z.ZodEnum<{
@@ -22423,6 +24451,7 @@ export declare const operationDefinitions: {
22423
24451
  "operator.note.added": "operator.note.added";
22424
24452
  "channel.outbound.skipped": "channel.outbound.skipped";
22425
24453
  "channel.outbound.sent": "channel.outbound.sent";
24454
+ "channel.outbound.failed": "channel.outbound.failed";
22426
24455
  "followup.classified": "followup.classified";
22427
24456
  "followup.task.scheduled": "followup.task.scheduled";
22428
24457
  "followup.task.completed": "followup.task.completed";
@@ -22485,8 +24514,19 @@ export declare const operationDefinitions: {
22485
24514
  deliveryStatus: z.ZodEnum<{
22486
24515
  skipped: "skipped";
22487
24516
  simulated: "simulated";
24517
+ failed: "failed";
22488
24518
  sent: "sent";
22489
24519
  }>;
24520
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24521
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24522
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24523
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
24524
+ send_text: "send_text";
24525
+ send_media: "send_media";
24526
+ send_media_group: "send_media_group";
24527
+ send_document: "send_document";
24528
+ send_link: "send_link";
24529
+ }>>>;
22490
24530
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22491
24531
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22492
24532
  }, z.core.$strip>>;
@@ -23307,11 +25347,14 @@ export type OperationInputMap = {
23307
25347
  'auth.requestMagicLink': z.infer<typeof authRequestMagicLinkRequestSchema>;
23308
25348
  'auth.startCliLoginIntent': z.infer<typeof authStartCliLoginIntentRequestSchema>;
23309
25349
  'auth.getCliLoginIntent': z.infer<typeof authGetCliLoginIntentRequestSchema>;
23310
- 'auth.getCliDeviceLoginStatus': z.infer<typeof authCliDeviceLoginStatusRequestSchema>;
23311
- 'auth.completeCliDeviceLogin': z.infer<typeof authCompleteCliDeviceLoginRequestSchema>;
25350
+ 'auth.abandonCliLoginIntent': z.infer<typeof authAbandonCliLoginIntentRequestSchema>;
25351
+ 'auth.getCliBrowserLoginState': z.infer<typeof authCliBrowserLoginStateRequestSchema>;
25352
+ 'auth.requestCliLoginMagicLink': z.infer<typeof authRequestCliLoginMagicLinkRequestSchema>;
25353
+ 'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginRequestSchema>;
23312
25354
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenRequestSchema>;
23313
25355
  'auth.getSession': z.infer<typeof authGetSessionRequestSchema>;
23314
25356
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersRequestSchema>;
25357
+ 'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberRequestSchema>;
23315
25358
  'auth.checkAccess': z.infer<typeof authCheckAccessRequestSchema>;
23316
25359
  'auth.getWorkspaceTrustPolicy': z.infer<typeof authGetWorkspaceTrustPolicyRequestSchema>;
23317
25360
  'auth.setWorkspaceTrustPolicy': z.infer<typeof authSetWorkspaceTrustPolicyRequestSchema>;
@@ -23409,11 +25452,14 @@ export type OperationOutputMap = {
23409
25452
  'auth.requestMagicLink': z.infer<typeof authRequestMagicLinkResponseSchema>;
23410
25453
  'auth.startCliLoginIntent': z.infer<typeof authStartCliLoginIntentResponseSchema>;
23411
25454
  'auth.getCliLoginIntent': z.infer<typeof authGetCliLoginIntentResponseSchema>;
23412
- 'auth.getCliDeviceLoginStatus': z.infer<typeof authCliDeviceLoginStatusResponseSchema>;
23413
- 'auth.completeCliDeviceLogin': z.infer<typeof authCompleteCliDeviceLoginResponseSchema>;
25455
+ 'auth.abandonCliLoginIntent': z.infer<typeof authAbandonCliLoginIntentResponseSchema>;
25456
+ 'auth.getCliBrowserLoginState': z.infer<typeof authCliBrowserLoginStateResponseSchema>;
25457
+ 'auth.requestCliLoginMagicLink': z.infer<typeof authRequestCliLoginMagicLinkResponseSchema>;
25458
+ 'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginResponseSchema>;
23414
25459
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenResponseSchema>;
23415
25460
  'auth.getSession': z.infer<typeof authGetSessionResponseSchema>;
23416
25461
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersResponseSchema>;
25462
+ 'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberResponseSchema>;
23417
25463
  'auth.checkAccess': z.infer<typeof authCheckAccessResponseSchema>;
23418
25464
  'auth.getWorkspaceTrustPolicy': z.infer<typeof authGetWorkspaceTrustPolicyResponseSchema>;
23419
25465
  'auth.setWorkspaceTrustPolicy': z.infer<typeof authSetWorkspaceTrustPolicyResponseSchema>;