@selleragent/api-contract 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,16 +22,26 @@ export declare const workspaceMembershipStatusSchema: z.ZodEnum<{
22
22
  export declare const authSessionSourceSchema: z.ZodEnum<{
23
23
  magic_link: "magic_link";
24
24
  scenario_token: "scenario_token";
25
+ cli_login: "cli_login";
26
+ deploy_token: "deploy_token";
27
+ }>;
28
+ export declare const authDeployActionSchema: z.ZodEnum<{
29
+ profile_read: "profile_read";
30
+ profile_upload: "profile_upload";
31
+ profile_activate: "profile_activate";
32
+ integrations_apply: "integrations_apply";
33
+ media_apply: "media_apply";
34
+ team_access_manage: "team_access_manage";
25
35
  }>;
26
36
  export declare const businessProfileStatusSchema: z.ZodEnum<{
27
37
  active: "active";
28
38
  archived: "archived";
29
39
  }>;
30
40
  export declare const businessProfileVersionSourceSchema: z.ZodEnum<{
41
+ profile_upload: "profile_upload";
31
42
  backfill: "backfill";
32
43
  ensure_operator: "ensure_operator";
33
44
  system: "system";
34
- profile_upload: "profile_upload";
35
45
  }>;
36
46
  export declare const operatorRecordSchema: z.ZodObject<{
37
47
  operatorId: z.ZodString;
@@ -81,10 +91,10 @@ export declare const businessProfileVersionSchema: z.ZodObject<{
81
91
  businessProfileSlug: z.ZodString;
82
92
  versionNumber: z.ZodNumber;
83
93
  source: z.ZodEnum<{
94
+ profile_upload: "profile_upload";
84
95
  backfill: "backfill";
85
96
  ensure_operator: "ensure_operator";
86
97
  system: "system";
87
- profile_upload: "profile_upload";
88
98
  }>;
89
99
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
90
100
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -111,6 +121,7 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
111
121
  catalog_relations: z.ZodString;
112
122
  telegram_bots: z.ZodString;
113
123
  telegram_business_accounts: z.ZodString;
124
+ media_root: z.ZodOptional<z.ZodString>;
114
125
  strategies_root: z.ZodString;
115
126
  policies_root: z.ZodString;
116
127
  prompt_overrides: z.ZodString;
@@ -126,9 +137,126 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
126
137
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
127
138
  }, z.core.$strip>>;
128
139
  }, z.core.$strip>;
129
- export declare const businessProfileProjectFileSchema: z.ZodObject<{
140
+ export declare const businessProfileProjectFileSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
141
+ relativePath: z.ZodString;
142
+ contentKind: z.ZodLiteral<"text">;
143
+ content: z.ZodString;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ relativePath: z.ZodString;
146
+ contentKind: z.ZodLiteral<"binary">;
147
+ contentBase64: z.ZodString;
148
+ byteSize: z.ZodNumber;
149
+ sha256: z.ZodString;
150
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
151
+ }, z.core.$strip>, z.ZodObject<{
130
152
  relativePath: z.ZodString;
131
153
  content: z.ZodString;
154
+ }, z.core.$strip>]>, z.ZodTransform<{
155
+ relativePath: string;
156
+ contentKind: "text";
157
+ content: string;
158
+ } | {
159
+ relativePath: string;
160
+ contentKind: "binary";
161
+ contentBase64: string;
162
+ byteSize: number;
163
+ sha256: string;
164
+ mimeType: string | null;
165
+ }, {
166
+ relativePath: string;
167
+ contentKind: "text";
168
+ content: string;
169
+ } | {
170
+ relativePath: string;
171
+ contentKind: "binary";
172
+ contentBase64: string;
173
+ byteSize: number;
174
+ sha256: string;
175
+ mimeType: string | null;
176
+ } | {
177
+ relativePath: string;
178
+ content: string;
179
+ }>>;
180
+ export declare const businessProfileMediaAssetKindSchema: z.ZodEnum<{
181
+ image: "image";
182
+ document: "document";
183
+ link: "link";
184
+ deck: "deck";
185
+ }>;
186
+ export declare const businessProfileMediaFolderSchema: z.ZodObject<{
187
+ folderKey: z.ZodString;
188
+ relativePath: z.ZodString;
189
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
190
+ purpose: z.ZodString;
191
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
192
+ assetCount: z.ZodNumber;
193
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
194
+ image: "image";
195
+ document: "document";
196
+ link: "link";
197
+ deck: "deck";
198
+ }>>>;
199
+ }, z.core.$strip>;
200
+ export declare const businessProfileMediaAssetSchema: z.ZodObject<{
201
+ assetId: z.ZodString;
202
+ folderKey: z.ZodString;
203
+ kind: z.ZodEnum<{
204
+ image: "image";
205
+ document: "document";
206
+ link: "link";
207
+ deck: "deck";
208
+ }>;
209
+ what: z.ZodString;
210
+ purpose: z.ZodString;
211
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
212
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
213
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
214
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
215
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
216
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
217
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
218
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
219
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
+ }, z.core.$strip>;
221
+ export declare const businessProfileMediaRegistrySchema: z.ZodObject<{
222
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
223
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
224
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
225
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ folderKey: z.ZodString;
227
+ relativePath: z.ZodString;
228
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
229
+ purpose: z.ZodString;
230
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
231
+ assetCount: z.ZodNumber;
232
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
233
+ image: "image";
234
+ document: "document";
235
+ link: "link";
236
+ deck: "deck";
237
+ }>>>;
238
+ }, z.core.$strip>>>;
239
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
240
+ assetId: z.ZodString;
241
+ folderKey: z.ZodString;
242
+ kind: z.ZodEnum<{
243
+ image: "image";
244
+ document: "document";
245
+ link: "link";
246
+ deck: "deck";
247
+ }>;
248
+ what: z.ZodString;
249
+ purpose: z.ZodString;
250
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
251
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
252
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
253
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
254
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
255
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
256
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
257
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
258
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
259
+ }, z.core.$strip>>>;
132
260
  }, z.core.$strip>;
133
261
  export declare const businessProfileProjectSecretFieldSchema: z.ZodEnum<{
134
262
  botToken: "botToken";
@@ -160,6 +288,7 @@ export declare const businessProfileProjectSecretStatusSchema: z.ZodObject<{
160
288
  export declare const businessProfileProjectApplyDeclarationSchema: z.ZodObject<{
161
289
  kind: z.ZodEnum<{
162
290
  telegram_bot: "telegram_bot";
291
+ media_folder: "media_folder";
163
292
  }>;
164
293
  key: z.ZodString;
165
294
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -184,6 +313,7 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
184
313
  catalog_relations: z.ZodString;
185
314
  telegram_bots: z.ZodString;
186
315
  telegram_business_accounts: z.ZodString;
316
+ media_root: z.ZodOptional<z.ZodString>;
187
317
  strategies_root: z.ZodString;
188
318
  policies_root: z.ZodString;
189
319
  prompt_overrides: z.ZodString;
@@ -199,10 +329,46 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
199
329
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
200
330
  }, z.core.$strip>>;
201
331
  }, z.core.$strip>;
202
- files: z.ZodArray<z.ZodObject<{
332
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
203
333
  relativePath: z.ZodString;
334
+ contentKind: z.ZodLiteral<"text">;
204
335
  content: z.ZodString;
205
- }, z.core.$strip>>;
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ relativePath: z.ZodString;
338
+ contentKind: z.ZodLiteral<"binary">;
339
+ contentBase64: z.ZodString;
340
+ byteSize: z.ZodNumber;
341
+ sha256: z.ZodString;
342
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
343
+ }, z.core.$strip>, z.ZodObject<{
344
+ relativePath: z.ZodString;
345
+ content: z.ZodString;
346
+ }, z.core.$strip>]>, z.ZodTransform<{
347
+ relativePath: string;
348
+ contentKind: "text";
349
+ content: string;
350
+ } | {
351
+ relativePath: string;
352
+ contentKind: "binary";
353
+ contentBase64: string;
354
+ byteSize: number;
355
+ sha256: string;
356
+ mimeType: string | null;
357
+ }, {
358
+ relativePath: string;
359
+ contentKind: "text";
360
+ content: string;
361
+ } | {
362
+ relativePath: string;
363
+ contentKind: "binary";
364
+ contentBase64: string;
365
+ byteSize: number;
366
+ sha256: string;
367
+ mimeType: string | null;
368
+ } | {
369
+ relativePath: string;
370
+ content: string;
371
+ }>>>;
206
372
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
207
373
  integrationKey: z.ZodString;
208
374
  field: z.ZodEnum<{
@@ -283,9 +449,48 @@ export declare const authSessionSchema: z.ZodObject<{
283
449
  source: z.ZodEnum<{
284
450
  magic_link: "magic_link";
285
451
  scenario_token: "scenario_token";
452
+ cli_login: "cli_login";
453
+ deploy_token: "deploy_token";
286
454
  }>;
287
455
  issuedAt: z.ZodString;
288
456
  expiresAt: z.ZodString;
457
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
459
+ profile_read: "profile_read";
460
+ profile_upload: "profile_upload";
461
+ profile_activate: "profile_activate";
462
+ integrations_apply: "integrations_apply";
463
+ media_apply: "media_apply";
464
+ team_access_manage: "team_access_manage";
465
+ }>>>;
466
+ }, z.core.$strip>;
467
+ export declare const authSessionRecordSchema: z.ZodObject<{
468
+ sessionId: z.ZodString;
469
+ operatorId: z.ZodString;
470
+ operatorEmail: z.ZodNullable<z.ZodString>;
471
+ source: z.ZodEnum<{
472
+ magic_link: "magic_link";
473
+ scenario_token: "scenario_token";
474
+ cli_login: "cli_login";
475
+ deploy_token: "deploy_token";
476
+ }>;
477
+ environment: z.ZodString;
478
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
479
+ allowedActions: z.ZodArray<z.ZodEnum<{
480
+ profile_read: "profile_read";
481
+ profile_upload: "profile_upload";
482
+ profile_activate: "profile_activate";
483
+ integrations_apply: "integrations_apply";
484
+ media_apply: "media_apply";
485
+ team_access_manage: "team_access_manage";
486
+ }>>;
487
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
488
+ issuedAt: z.ZodString;
489
+ expiresAt: z.ZodString;
490
+ lastSeenAt: z.ZodNullable<z.ZodString>;
491
+ revokedAt: z.ZodNullable<z.ZodString>;
492
+ revokeReason: z.ZodNullable<z.ZodString>;
493
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
289
494
  }, z.core.$strip>;
290
495
  export declare const operatorAccessContextSchema: z.ZodObject<{
291
496
  authenticated: z.ZodBoolean;
@@ -327,9 +532,20 @@ export declare const operatorAccessContextSchema: z.ZodObject<{
327
532
  source: z.ZodEnum<{
328
533
  magic_link: "magic_link";
329
534
  scenario_token: "scenario_token";
535
+ cli_login: "cli_login";
536
+ deploy_token: "deploy_token";
330
537
  }>;
331
538
  issuedAt: z.ZodString;
332
539
  expiresAt: z.ZodString;
540
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
542
+ profile_read: "profile_read";
543
+ profile_upload: "profile_upload";
544
+ profile_activate: "profile_activate";
545
+ integrations_apply: "integrations_apply";
546
+ media_apply: "media_apply";
547
+ team_access_manage: "team_access_manage";
548
+ }>>>;
333
549
  }, z.core.$strip>>;
334
550
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
335
551
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -391,25 +607,37 @@ export declare const authCliLoginIntentStatusSchema: z.ZodEnum<{
391
607
  pending: "pending";
392
608
  completed: "completed";
393
609
  expired: "expired";
610
+ abandoned: "abandoned";
611
+ }>;
612
+ export declare const authCliLoginAttemptTokenSchema: z.ZodString;
613
+ export declare const authCliLoginIntentDeliveryModeSchema: z.ZodEnum<{
614
+ magic_link: "magic_link";
615
+ browser_flow: "browser_flow";
616
+ browser_session: "browser_session";
617
+ synthetic_local: "synthetic_local";
394
618
  }>;
395
- export declare const authCliLoginUserCodeSchema: z.ZodString;
396
619
  export declare const authCliLoginIntentSchema: z.ZodObject<{
397
620
  intentId: z.ZodString;
398
- email: z.ZodString;
399
- userCode: z.ZodString;
621
+ email: z.ZodNullable<z.ZodString>;
622
+ browserToken: z.ZodString;
400
623
  environment: z.ZodString;
401
624
  status: z.ZodEnum<{
402
625
  pending: "pending";
403
626
  completed: "completed";
404
627
  expired: "expired";
628
+ abandoned: "abandoned";
405
629
  }>;
406
630
  deliveryMode: z.ZodEnum<{
407
631
  magic_link: "magic_link";
632
+ browser_flow: "browser_flow";
633
+ browser_session: "browser_session";
408
634
  synthetic_local: "synthetic_local";
409
635
  }>;
410
636
  requestedAt: z.ZodString;
411
637
  expiresAt: z.ZodString;
412
638
  completedAt: z.ZodNullable<z.ZodString>;
639
+ lastSeenAt: z.ZodNullable<z.ZodString>;
640
+ linkSentAt: z.ZodNullable<z.ZodString>;
413
641
  nextPath: z.ZodNullable<z.ZodString>;
414
642
  sessionToken: z.ZodNullable<z.ZodString>;
415
643
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -452,36 +680,53 @@ export declare const authCliLoginIntentSchema: z.ZodObject<{
452
680
  source: z.ZodEnum<{
453
681
  magic_link: "magic_link";
454
682
  scenario_token: "scenario_token";
683
+ cli_login: "cli_login";
684
+ deploy_token: "deploy_token";
455
685
  }>;
456
686
  issuedAt: z.ZodString;
457
687
  expiresAt: z.ZodString;
688
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
690
+ profile_read: "profile_read";
691
+ profile_upload: "profile_upload";
692
+ profile_activate: "profile_activate";
693
+ integrations_apply: "integrations_apply";
694
+ media_apply: "media_apply";
695
+ team_access_manage: "team_access_manage";
696
+ }>>>;
458
697
  }, z.core.$strip>>;
459
698
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
460
699
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
461
700
  }, z.core.$strip>>;
462
701
  }, z.core.$strip>;
463
702
  export declare const authStartCliLoginIntentRequestSchema: z.ZodObject<{
464
- email: z.ZodString;
703
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
705
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
706
  }, z.core.$strip>;
467
707
  export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
468
708
  intent: z.ZodObject<{
469
709
  intentId: z.ZodString;
470
- email: z.ZodString;
471
- userCode: z.ZodString;
710
+ email: z.ZodNullable<z.ZodString>;
711
+ browserToken: z.ZodString;
472
712
  environment: z.ZodString;
473
713
  status: z.ZodEnum<{
474
714
  pending: "pending";
475
715
  completed: "completed";
476
716
  expired: "expired";
717
+ abandoned: "abandoned";
477
718
  }>;
478
719
  deliveryMode: z.ZodEnum<{
479
720
  magic_link: "magic_link";
721
+ browser_flow: "browser_flow";
722
+ browser_session: "browser_session";
480
723
  synthetic_local: "synthetic_local";
481
724
  }>;
482
725
  requestedAt: z.ZodString;
483
726
  expiresAt: z.ZodString;
484
727
  completedAt: z.ZodNullable<z.ZodString>;
728
+ lastSeenAt: z.ZodNullable<z.ZodString>;
729
+ linkSentAt: z.ZodNullable<z.ZodString>;
485
730
  nextPath: z.ZodNullable<z.ZodString>;
486
731
  sessionToken: z.ZodNullable<z.ZodString>;
487
732
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -524,41 +769,144 @@ export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
524
769
  source: z.ZodEnum<{
525
770
  magic_link: "magic_link";
526
771
  scenario_token: "scenario_token";
772
+ cli_login: "cli_login";
773
+ deploy_token: "deploy_token";
527
774
  }>;
528
775
  issuedAt: z.ZodString;
529
776
  expiresAt: z.ZodString;
777
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
779
+ profile_read: "profile_read";
780
+ profile_upload: "profile_upload";
781
+ profile_activate: "profile_activate";
782
+ integrations_apply: "integrations_apply";
783
+ media_apply: "media_apply";
784
+ team_access_manage: "team_access_manage";
785
+ }>>>;
530
786
  }, z.core.$strip>>;
531
787
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
532
788
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
533
789
  }, z.core.$strip>>;
534
790
  }, z.core.$strip>;
535
- userCode: z.ZodString;
536
- verificationUri: z.ZodString;
537
- verificationUriComplete: z.ZodString;
791
+ authorizationUrl: z.ZodString;
538
792
  pollAfterSeconds: z.ZodNumber;
539
793
  instructions: z.ZodArray<z.ZodString>;
540
794
  }, z.core.$strip>;
541
795
  export declare const authGetCliLoginIntentRequestSchema: z.ZodObject<{
542
796
  intentId: z.ZodString;
797
+ markActive: z.ZodOptional<z.ZodBoolean>;
543
798
  }, z.core.$strip>;
544
799
  export declare const authGetCliLoginIntentResponseSchema: z.ZodObject<{
545
800
  intent: z.ZodObject<{
546
801
  intentId: z.ZodString;
547
- email: z.ZodString;
548
- userCode: z.ZodString;
802
+ email: z.ZodNullable<z.ZodString>;
803
+ browserToken: z.ZodString;
804
+ environment: z.ZodString;
805
+ status: z.ZodEnum<{
806
+ pending: "pending";
807
+ completed: "completed";
808
+ expired: "expired";
809
+ abandoned: "abandoned";
810
+ }>;
811
+ deliveryMode: z.ZodEnum<{
812
+ magic_link: "magic_link";
813
+ browser_flow: "browser_flow";
814
+ browser_session: "browser_session";
815
+ synthetic_local: "synthetic_local";
816
+ }>;
817
+ requestedAt: z.ZodString;
818
+ expiresAt: z.ZodString;
819
+ completedAt: z.ZodNullable<z.ZodString>;
820
+ lastSeenAt: z.ZodNullable<z.ZodString>;
821
+ linkSentAt: z.ZodNullable<z.ZodString>;
822
+ nextPath: z.ZodNullable<z.ZodString>;
823
+ sessionToken: z.ZodNullable<z.ZodString>;
824
+ accessContext: z.ZodNullable<z.ZodObject<{
825
+ authenticated: z.ZodBoolean;
826
+ environment: z.ZodString;
827
+ operator: z.ZodNullable<z.ZodObject<{
828
+ operatorId: z.ZodString;
829
+ email: z.ZodString;
830
+ displayName: z.ZodNullable<z.ZodString>;
831
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
832
+ status: z.ZodEnum<{
833
+ active: "active";
834
+ disabled: "disabled";
835
+ }>;
836
+ createdAt: z.ZodString;
837
+ updatedAt: z.ZodString;
838
+ }, z.core.$strip>>;
839
+ memberships: z.ZodArray<z.ZodObject<{
840
+ membershipId: z.ZodString;
841
+ operatorId: z.ZodString;
842
+ workspaceId: z.ZodString;
843
+ workspaceSlug: z.ZodString;
844
+ workspaceName: z.ZodString;
845
+ role: z.ZodEnum<{
846
+ workspace_admin: "workspace_admin";
847
+ operator: "operator";
848
+ observer: "observer";
849
+ }>;
850
+ status: z.ZodEnum<{
851
+ active: "active";
852
+ revoked: "revoked";
853
+ }>;
854
+ createdAt: z.ZodString;
855
+ updatedAt: z.ZodString;
856
+ }, z.core.$strip>>;
857
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
858
+ session: z.ZodNullable<z.ZodObject<{
859
+ sessionId: z.ZodString;
860
+ sessionToken: z.ZodOptional<z.ZodString>;
861
+ source: z.ZodEnum<{
862
+ magic_link: "magic_link";
863
+ scenario_token: "scenario_token";
864
+ cli_login: "cli_login";
865
+ deploy_token: "deploy_token";
866
+ }>;
867
+ issuedAt: z.ZodString;
868
+ expiresAt: z.ZodString;
869
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
871
+ profile_read: "profile_read";
872
+ profile_upload: "profile_upload";
873
+ profile_activate: "profile_activate";
874
+ integrations_apply: "integrations_apply";
875
+ media_apply: "media_apply";
876
+ team_access_manage: "team_access_manage";
877
+ }>>>;
878
+ }, z.core.$strip>>;
879
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
880
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
881
+ }, z.core.$strip>>;
882
+ }, z.core.$strip>;
883
+ }, z.core.$strip>;
884
+ export declare const authAbandonCliLoginIntentRequestSchema: z.ZodObject<{
885
+ intentId: z.ZodString;
886
+ }, z.core.$strip>;
887
+ export declare const authAbandonCliLoginIntentResponseSchema: z.ZodObject<{
888
+ intent: z.ZodObject<{
889
+ intentId: z.ZodString;
890
+ email: z.ZodNullable<z.ZodString>;
891
+ browserToken: z.ZodString;
549
892
  environment: z.ZodString;
550
893
  status: z.ZodEnum<{
551
894
  pending: "pending";
552
895
  completed: "completed";
553
896
  expired: "expired";
897
+ abandoned: "abandoned";
554
898
  }>;
555
899
  deliveryMode: z.ZodEnum<{
556
900
  magic_link: "magic_link";
901
+ browser_flow: "browser_flow";
902
+ browser_session: "browser_session";
557
903
  synthetic_local: "synthetic_local";
558
904
  }>;
559
905
  requestedAt: z.ZodString;
560
906
  expiresAt: z.ZodString;
561
907
  completedAt: z.ZodNullable<z.ZodString>;
908
+ lastSeenAt: z.ZodNullable<z.ZodString>;
909
+ linkSentAt: z.ZodNullable<z.ZodString>;
562
910
  nextPath: z.ZodNullable<z.ZodString>;
563
911
  sessionToken: z.ZodNullable<z.ZodString>;
564
912
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -601,68 +949,116 @@ export declare const authGetCliLoginIntentResponseSchema: z.ZodObject<{
601
949
  source: z.ZodEnum<{
602
950
  magic_link: "magic_link";
603
951
  scenario_token: "scenario_token";
952
+ cli_login: "cli_login";
953
+ deploy_token: "deploy_token";
604
954
  }>;
605
955
  issuedAt: z.ZodString;
606
956
  expiresAt: z.ZodString;
957
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
959
+ profile_read: "profile_read";
960
+ profile_upload: "profile_upload";
961
+ profile_activate: "profile_activate";
962
+ integrations_apply: "integrations_apply";
963
+ media_apply: "media_apply";
964
+ team_access_manage: "team_access_manage";
965
+ }>>>;
607
966
  }, z.core.$strip>>;
608
967
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
609
968
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
610
969
  }, z.core.$strip>>;
611
970
  }, z.core.$strip>;
612
971
  }, z.core.$strip>;
613
- export declare const authCliDeviceLoginStatusRequestSchema: z.ZodObject<{
614
- userCode: z.ZodString;
972
+ export declare const authCliBrowserLoginStateRequestSchema: z.ZodObject<{
973
+ token: z.ZodString;
615
974
  }, z.core.$strip>;
616
- export declare const authCliDeviceLoginStatusSchema: z.ZodObject<{
617
- userCode: z.ZodString;
618
- emailHint: z.ZodString;
975
+ export declare const authCliBrowserLoginStateSchema: z.ZodObject<{
976
+ token: z.ZodString;
977
+ emailHint: z.ZodNullable<z.ZodString>;
619
978
  status: z.ZodEnum<{
620
979
  pending: "pending";
621
980
  completed: "completed";
622
981
  expired: "expired";
982
+ abandoned: "abandoned";
623
983
  }>;
624
984
  requestedAt: z.ZodString;
625
985
  expiresAt: z.ZodString;
626
986
  completedAt: z.ZodNullable<z.ZodString>;
987
+ lastSeenAt: z.ZodNullable<z.ZodString>;
988
+ linkSentAt: z.ZodNullable<z.ZodString>;
627
989
  nextPath: z.ZodNullable<z.ZodString>;
628
990
  }, z.core.$strip>;
629
- export declare const authCliDeviceLoginStatusResponseSchema: z.ZodObject<{
991
+ export declare const authCliBrowserLoginStateResponseSchema: z.ZodObject<{
630
992
  intent: z.ZodNullable<z.ZodObject<{
631
- userCode: z.ZodString;
632
- emailHint: z.ZodString;
993
+ token: z.ZodString;
994
+ emailHint: z.ZodNullable<z.ZodString>;
633
995
  status: z.ZodEnum<{
634
996
  pending: "pending";
635
997
  completed: "completed";
636
998
  expired: "expired";
999
+ abandoned: "abandoned";
637
1000
  }>;
638
1001
  requestedAt: z.ZodString;
639
1002
  expiresAt: z.ZodString;
640
1003
  completedAt: z.ZodNullable<z.ZodString>;
1004
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1005
+ linkSentAt: z.ZodNullable<z.ZodString>;
641
1006
  nextPath: z.ZodNullable<z.ZodString>;
642
1007
  }, z.core.$strip>>;
643
1008
  }, z.core.$strip>;
644
- export declare const authCompleteCliDeviceLoginRequestSchema: z.ZodObject<{
645
- userCode: z.ZodString;
1009
+ export declare const authRequestCliLoginMagicLinkRequestSchema: z.ZodObject<{
1010
+ token: z.ZodString;
1011
+ email: z.ZodString;
1012
+ }, z.core.$strip>;
1013
+ export declare const authRequestCliLoginMagicLinkResponseSchema: z.ZodObject<{
1014
+ intent: z.ZodObject<{
1015
+ token: z.ZodString;
1016
+ emailHint: z.ZodNullable<z.ZodString>;
1017
+ status: z.ZodEnum<{
1018
+ pending: "pending";
1019
+ completed: "completed";
1020
+ expired: "expired";
1021
+ abandoned: "abandoned";
1022
+ }>;
1023
+ requestedAt: z.ZodString;
1024
+ expiresAt: z.ZodString;
1025
+ completedAt: z.ZodNullable<z.ZodString>;
1026
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1027
+ linkSentAt: z.ZodNullable<z.ZodString>;
1028
+ nextPath: z.ZodNullable<z.ZodString>;
1029
+ }, z.core.$strip>;
1030
+ accepted: z.ZodBoolean;
1031
+ email: z.ZodString;
1032
+ alreadySent: z.ZodBoolean;
1033
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
+ }, z.core.$strip>;
1035
+ export declare const authCompleteCliBrowserLoginRequestSchema: z.ZodObject<{
1036
+ token: z.ZodString;
646
1037
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
1038
  }, z.core.$strip>;
648
- export declare const authCompleteCliDeviceLoginResponseSchema: z.ZodObject<{
1039
+ export declare const authCompleteCliBrowserLoginResponseSchema: z.ZodObject<{
649
1040
  intent: z.ZodObject<{
650
1041
  intentId: z.ZodString;
651
- email: z.ZodString;
652
- userCode: z.ZodString;
1042
+ email: z.ZodNullable<z.ZodString>;
1043
+ browserToken: z.ZodString;
653
1044
  environment: z.ZodString;
654
1045
  status: z.ZodEnum<{
655
1046
  pending: "pending";
656
1047
  completed: "completed";
657
1048
  expired: "expired";
1049
+ abandoned: "abandoned";
658
1050
  }>;
659
1051
  deliveryMode: z.ZodEnum<{
660
1052
  magic_link: "magic_link";
1053
+ browser_flow: "browser_flow";
1054
+ browser_session: "browser_session";
661
1055
  synthetic_local: "synthetic_local";
662
1056
  }>;
663
1057
  requestedAt: z.ZodString;
664
1058
  expiresAt: z.ZodString;
665
1059
  completedAt: z.ZodNullable<z.ZodString>;
1060
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1061
+ linkSentAt: z.ZodNullable<z.ZodString>;
666
1062
  nextPath: z.ZodNullable<z.ZodString>;
667
1063
  sessionToken: z.ZodNullable<z.ZodString>;
668
1064
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -705,9 +1101,20 @@ export declare const authCompleteCliDeviceLoginResponseSchema: z.ZodObject<{
705
1101
  source: z.ZodEnum<{
706
1102
  magic_link: "magic_link";
707
1103
  scenario_token: "scenario_token";
1104
+ cli_login: "cli_login";
1105
+ deploy_token: "deploy_token";
708
1106
  }>;
709
1107
  issuedAt: z.ZodString;
710
1108
  expiresAt: z.ZodString;
1109
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1111
+ profile_read: "profile_read";
1112
+ profile_upload: "profile_upload";
1113
+ profile_activate: "profile_activate";
1114
+ integrations_apply: "integrations_apply";
1115
+ media_apply: "media_apply";
1116
+ team_access_manage: "team_access_manage";
1117
+ }>>>;
711
1118
  }, z.core.$strip>>;
712
1119
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
713
1120
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -805,14 +1212,147 @@ export declare const authGetSessionResponseSchema: z.ZodObject<{
805
1212
  source: z.ZodEnum<{
806
1213
  magic_link: "magic_link";
807
1214
  scenario_token: "scenario_token";
1215
+ cli_login: "cli_login";
1216
+ deploy_token: "deploy_token";
808
1217
  }>;
809
1218
  issuedAt: z.ZodString;
810
1219
  expiresAt: z.ZodString;
1220
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1222
+ profile_read: "profile_read";
1223
+ profile_upload: "profile_upload";
1224
+ profile_activate: "profile_activate";
1225
+ integrations_apply: "integrations_apply";
1226
+ media_apply: "media_apply";
1227
+ team_access_manage: "team_access_manage";
1228
+ }>>>;
811
1229
  }, z.core.$strip>>;
812
1230
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
813
1231
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
814
1232
  }, z.core.$strip>;
815
1233
  }, z.core.$strip>;
1234
+ export declare const authListSessionsRequestSchema: z.ZodObject<{
1235
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1236
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1237
+ magic_link: "magic_link";
1238
+ scenario_token: "scenario_token";
1239
+ cli_login: "cli_login";
1240
+ deploy_token: "deploy_token";
1241
+ }>>>;
1242
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1243
+ includeRevoked: z.ZodOptional<z.ZodBoolean>;
1244
+ }, z.core.$strip>;
1245
+ export declare const authListSessionsResponseSchema: z.ZodObject<{
1246
+ sessions: z.ZodArray<z.ZodObject<{
1247
+ sessionId: z.ZodString;
1248
+ operatorId: z.ZodString;
1249
+ operatorEmail: z.ZodNullable<z.ZodString>;
1250
+ source: z.ZodEnum<{
1251
+ magic_link: "magic_link";
1252
+ scenario_token: "scenario_token";
1253
+ cli_login: "cli_login";
1254
+ deploy_token: "deploy_token";
1255
+ }>;
1256
+ environment: z.ZodString;
1257
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
1258
+ allowedActions: z.ZodArray<z.ZodEnum<{
1259
+ profile_read: "profile_read";
1260
+ profile_upload: "profile_upload";
1261
+ profile_activate: "profile_activate";
1262
+ integrations_apply: "integrations_apply";
1263
+ media_apply: "media_apply";
1264
+ team_access_manage: "team_access_manage";
1265
+ }>>;
1266
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
1267
+ issuedAt: z.ZodString;
1268
+ expiresAt: z.ZodString;
1269
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1270
+ revokedAt: z.ZodNullable<z.ZodString>;
1271
+ revokeReason: z.ZodNullable<z.ZodString>;
1272
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
1273
+ }, z.core.$strip>>;
1274
+ }, z.core.$strip>;
1275
+ export declare const authRevokeSessionRequestSchema: z.ZodObject<{
1276
+ currentSessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1277
+ sessionId: z.ZodString;
1278
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
+ }, z.core.$strip>;
1280
+ export declare const authRevokeSessionResponseSchema: z.ZodObject<{
1281
+ revoked: z.ZodBoolean;
1282
+ session: z.ZodNullable<z.ZodObject<{
1283
+ sessionId: z.ZodString;
1284
+ operatorId: z.ZodString;
1285
+ operatorEmail: z.ZodNullable<z.ZodString>;
1286
+ source: z.ZodEnum<{
1287
+ magic_link: "magic_link";
1288
+ scenario_token: "scenario_token";
1289
+ cli_login: "cli_login";
1290
+ deploy_token: "deploy_token";
1291
+ }>;
1292
+ environment: z.ZodString;
1293
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
1294
+ allowedActions: z.ZodArray<z.ZodEnum<{
1295
+ profile_read: "profile_read";
1296
+ profile_upload: "profile_upload";
1297
+ profile_activate: "profile_activate";
1298
+ integrations_apply: "integrations_apply";
1299
+ media_apply: "media_apply";
1300
+ team_access_manage: "team_access_manage";
1301
+ }>>;
1302
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
1303
+ issuedAt: z.ZodString;
1304
+ expiresAt: z.ZodString;
1305
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1306
+ revokedAt: z.ZodNullable<z.ZodString>;
1307
+ revokeReason: z.ZodNullable<z.ZodString>;
1308
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
1309
+ }, z.core.$strip>>;
1310
+ }, z.core.$strip>;
1311
+ export declare const authIssueDeployTokenRequestSchema: z.ZodObject<{
1312
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
+ businessProfileSlug: z.ZodString;
1314
+ targetEnvironment: z.ZodString;
1315
+ allowedActions: z.ZodArray<z.ZodEnum<{
1316
+ profile_read: "profile_read";
1317
+ profile_upload: "profile_upload";
1318
+ profile_activate: "profile_activate";
1319
+ integrations_apply: "integrations_apply";
1320
+ media_apply: "media_apply";
1321
+ team_access_manage: "team_access_manage";
1322
+ }>>;
1323
+ ttlMinutes: z.ZodNumber;
1324
+ }, z.core.$strip>;
1325
+ export declare const authIssueDeployTokenResponseSchema: z.ZodObject<{
1326
+ token: z.ZodString;
1327
+ session: z.ZodObject<{
1328
+ sessionId: z.ZodString;
1329
+ operatorId: z.ZodString;
1330
+ operatorEmail: z.ZodNullable<z.ZodString>;
1331
+ source: z.ZodEnum<{
1332
+ magic_link: "magic_link";
1333
+ scenario_token: "scenario_token";
1334
+ cli_login: "cli_login";
1335
+ deploy_token: "deploy_token";
1336
+ }>;
1337
+ environment: z.ZodString;
1338
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
1339
+ allowedActions: z.ZodArray<z.ZodEnum<{
1340
+ profile_read: "profile_read";
1341
+ profile_upload: "profile_upload";
1342
+ profile_activate: "profile_activate";
1343
+ integrations_apply: "integrations_apply";
1344
+ media_apply: "media_apply";
1345
+ team_access_manage: "team_access_manage";
1346
+ }>>;
1347
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
1348
+ issuedAt: z.ZodString;
1349
+ expiresAt: z.ZodString;
1350
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1351
+ revokedAt: z.ZodNullable<z.ZodString>;
1352
+ revokeReason: z.ZodNullable<z.ZodString>;
1353
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
1354
+ }, z.core.$strip>;
1355
+ }, z.core.$strip>;
816
1356
  export declare const authWorkspaceMemberEntrySchema: z.ZodObject<{
817
1357
  operator: z.ZodObject<{
818
1358
  operatorId: z.ZodString;
@@ -884,6 +1424,50 @@ export declare const authListWorkspaceMembersResponseSchema: z.ZodObject<{
884
1424
  }, z.core.$strip>;
885
1425
  }, z.core.$strip>>;
886
1426
  }, z.core.$strip>;
1427
+ export declare const authUpsertWorkspaceMemberRequestSchema: z.ZodObject<{
1428
+ workspaceSlug: z.ZodString;
1429
+ email: z.ZodString;
1430
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1431
+ role: z.ZodEnum<{
1432
+ workspace_admin: "workspace_admin";
1433
+ operator: "operator";
1434
+ observer: "observer";
1435
+ }>;
1436
+ }, z.core.$strip>;
1437
+ export declare const authUpsertWorkspaceMemberResponseSchema: z.ZodObject<{
1438
+ member: z.ZodObject<{
1439
+ operator: z.ZodObject<{
1440
+ operatorId: z.ZodString;
1441
+ email: z.ZodString;
1442
+ displayName: z.ZodNullable<z.ZodString>;
1443
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1444
+ status: z.ZodEnum<{
1445
+ active: "active";
1446
+ disabled: "disabled";
1447
+ }>;
1448
+ createdAt: z.ZodString;
1449
+ updatedAt: z.ZodString;
1450
+ }, z.core.$strip>;
1451
+ membership: z.ZodObject<{
1452
+ membershipId: z.ZodString;
1453
+ operatorId: z.ZodString;
1454
+ workspaceId: z.ZodString;
1455
+ workspaceSlug: z.ZodString;
1456
+ workspaceName: z.ZodString;
1457
+ role: z.ZodEnum<{
1458
+ workspace_admin: "workspace_admin";
1459
+ operator: "operator";
1460
+ observer: "observer";
1461
+ }>;
1462
+ status: z.ZodEnum<{
1463
+ active: "active";
1464
+ revoked: "revoked";
1465
+ }>;
1466
+ createdAt: z.ZodString;
1467
+ updatedAt: z.ZodString;
1468
+ }, z.core.$strip>;
1469
+ }, z.core.$strip>;
1470
+ }, z.core.$strip>;
887
1471
  export declare const authWorkspaceTrustModeSchema: z.ZodEnum<{
888
1472
  trusted_domains: "trusted_domains";
889
1473
  trusted_emails: "trusted_emails";
@@ -1290,9 +1874,20 @@ export declare const authExchangeScenarioTokenResponseSchema: z.ZodObject<{
1290
1874
  source: z.ZodEnum<{
1291
1875
  magic_link: "magic_link";
1292
1876
  scenario_token: "scenario_token";
1877
+ cli_login: "cli_login";
1878
+ deploy_token: "deploy_token";
1293
1879
  }>;
1294
1880
  issuedAt: z.ZodString;
1295
1881
  expiresAt: z.ZodString;
1882
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1884
+ profile_read: "profile_read";
1885
+ profile_upload: "profile_upload";
1886
+ profile_activate: "profile_activate";
1887
+ integrations_apply: "integrations_apply";
1888
+ media_apply: "media_apply";
1889
+ team_access_manage: "team_access_manage";
1890
+ }>>>;
1296
1891
  }, z.core.$strip>>;
1297
1892
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1298
1893
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1346,9 +1941,20 @@ export declare const authCompleteMagicLinkResponseSchema: z.ZodObject<{
1346
1941
  source: z.ZodEnum<{
1347
1942
  magic_link: "magic_link";
1348
1943
  scenario_token: "scenario_token";
1944
+ cli_login: "cli_login";
1945
+ deploy_token: "deploy_token";
1349
1946
  }>;
1350
1947
  issuedAt: z.ZodString;
1351
1948
  expiresAt: z.ZodString;
1949
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1950
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1951
+ profile_read: "profile_read";
1952
+ profile_upload: "profile_upload";
1953
+ profile_activate: "profile_activate";
1954
+ integrations_apply: "integrations_apply";
1955
+ media_apply: "media_apply";
1956
+ team_access_manage: "team_access_manage";
1957
+ }>>>;
1352
1958
  }, z.core.$strip>>;
1353
1959
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1354
1960
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1408,9 +2014,20 @@ export declare const authCheckAccessResponseSchema: z.ZodObject<{
1408
2014
  source: z.ZodEnum<{
1409
2015
  magic_link: "magic_link";
1410
2016
  scenario_token: "scenario_token";
2017
+ cli_login: "cli_login";
2018
+ deploy_token: "deploy_token";
1411
2019
  }>;
1412
2020
  issuedAt: z.ZodString;
1413
2021
  expiresAt: z.ZodString;
2022
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2023
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2024
+ profile_read: "profile_read";
2025
+ profile_upload: "profile_upload";
2026
+ profile_activate: "profile_activate";
2027
+ integrations_apply: "integrations_apply";
2028
+ media_apply: "media_apply";
2029
+ team_access_manage: "team_access_manage";
2030
+ }>>>;
1414
2031
  }, z.core.$strip>>;
1415
2032
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1416
2033
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1469,10 +2086,10 @@ export declare const businessProfilesGetResponseSchema: z.ZodObject<{
1469
2086
  businessProfileSlug: z.ZodString;
1470
2087
  versionNumber: z.ZodNumber;
1471
2088
  source: z.ZodEnum<{
2089
+ profile_upload: "profile_upload";
1472
2090
  backfill: "backfill";
1473
2091
  ensure_operator: "ensure_operator";
1474
2092
  system: "system";
1475
- profile_upload: "profile_upload";
1476
2093
  }>;
1477
2094
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1478
2095
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1495,10 +2112,10 @@ export declare const businessProfilesListVersionsResponseSchema: z.ZodObject<{
1495
2112
  businessProfileSlug: z.ZodString;
1496
2113
  versionNumber: z.ZodNumber;
1497
2114
  source: z.ZodEnum<{
2115
+ profile_upload: "profile_upload";
1498
2116
  backfill: "backfill";
1499
2117
  ensure_operator: "ensure_operator";
1500
2118
  system: "system";
1501
- profile_upload: "profile_upload";
1502
2119
  }>;
1503
2120
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1504
2121
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1859,6 +2476,7 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
1859
2476
  catalog_relations: z.ZodString;
1860
2477
  telegram_bots: z.ZodString;
1861
2478
  telegram_business_accounts: z.ZodString;
2479
+ media_root: z.ZodOptional<z.ZodString>;
1862
2480
  strategies_root: z.ZodString;
1863
2481
  policies_root: z.ZodString;
1864
2482
  prompt_overrides: z.ZodString;
@@ -1874,10 +2492,46 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
1874
2492
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1875
2493
  }, z.core.$strip>>;
1876
2494
  }, z.core.$strip>;
1877
- files: z.ZodArray<z.ZodObject<{
2495
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1878
2496
  relativePath: z.ZodString;
2497
+ contentKind: z.ZodLiteral<"text">;
1879
2498
  content: z.ZodString;
1880
- }, z.core.$strip>>;
2499
+ }, z.core.$strip>, z.ZodObject<{
2500
+ relativePath: z.ZodString;
2501
+ contentKind: z.ZodLiteral<"binary">;
2502
+ contentBase64: z.ZodString;
2503
+ byteSize: z.ZodNumber;
2504
+ sha256: z.ZodString;
2505
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2506
+ }, z.core.$strip>, z.ZodObject<{
2507
+ relativePath: z.ZodString;
2508
+ content: z.ZodString;
2509
+ }, z.core.$strip>]>, z.ZodTransform<{
2510
+ relativePath: string;
2511
+ contentKind: "text";
2512
+ content: string;
2513
+ } | {
2514
+ relativePath: string;
2515
+ contentKind: "binary";
2516
+ contentBase64: string;
2517
+ byteSize: number;
2518
+ sha256: string;
2519
+ mimeType: string | null;
2520
+ }, {
2521
+ relativePath: string;
2522
+ contentKind: "text";
2523
+ content: string;
2524
+ } | {
2525
+ relativePath: string;
2526
+ contentKind: "binary";
2527
+ contentBase64: string;
2528
+ byteSize: number;
2529
+ sha256: string;
2530
+ mimeType: string | null;
2531
+ } | {
2532
+ relativePath: string;
2533
+ content: string;
2534
+ }>>>;
1881
2535
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1882
2536
  integrationKey: z.ZodString;
1883
2537
  field: z.ZodEnum<{
@@ -1931,10 +2585,10 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1931
2585
  businessProfileSlug: z.ZodString;
1932
2586
  versionNumber: z.ZodNumber;
1933
2587
  source: z.ZodEnum<{
2588
+ profile_upload: "profile_upload";
1934
2589
  backfill: "backfill";
1935
2590
  ensure_operator: "ensure_operator";
1936
2591
  system: "system";
1937
- profile_upload: "profile_upload";
1938
2592
  }>;
1939
2593
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1940
2594
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1948,10 +2602,10 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1948
2602
  businessProfileSlug: z.ZodString;
1949
2603
  versionNumber: z.ZodNumber;
1950
2604
  source: z.ZodEnum<{
2605
+ profile_upload: "profile_upload";
1951
2606
  backfill: "backfill";
1952
2607
  ensure_operator: "ensure_operator";
1953
2608
  system: "system";
1954
- profile_upload: "profile_upload";
1955
2609
  }>;
1956
2610
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1957
2611
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1986,11 +2640,52 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1986
2640
  createdAt: z.ZodString;
1987
2641
  updatedAt: z.ZodString;
1988
2642
  }, z.core.$strip>>;
2643
+ mediaRegistry: z.ZodObject<{
2644
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2645
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2646
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2647
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2648
+ folderKey: z.ZodString;
2649
+ relativePath: z.ZodString;
2650
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2651
+ purpose: z.ZodString;
2652
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2653
+ assetCount: z.ZodNumber;
2654
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2655
+ image: "image";
2656
+ document: "document";
2657
+ link: "link";
2658
+ deck: "deck";
2659
+ }>>>;
2660
+ }, z.core.$strip>>>;
2661
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2662
+ assetId: z.ZodString;
2663
+ folderKey: z.ZodString;
2664
+ kind: z.ZodEnum<{
2665
+ image: "image";
2666
+ document: "document";
2667
+ link: "link";
2668
+ deck: "deck";
2669
+ }>;
2670
+ what: z.ZodString;
2671
+ purpose: z.ZodString;
2672
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2673
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2674
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2675
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2676
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2677
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2678
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2679
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2680
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2681
+ }, z.core.$strip>>>;
2682
+ }, z.core.$strip>;
1989
2683
  targetEnvironment: z.ZodString;
1990
2684
  serverEnvironment: z.ZodString;
1991
2685
  appliedDeclarations: z.ZodArray<z.ZodObject<{
1992
2686
  kind: z.ZodEnum<{
1993
2687
  telegram_bot: "telegram_bot";
2688
+ media_folder: "media_folder";
1994
2689
  }>;
1995
2690
  key: z.ZodString;
1996
2691
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1998,6 +2693,7 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
1998
2693
  skippedDeclarations: z.ZodArray<z.ZodObject<{
1999
2694
  kind: z.ZodEnum<{
2000
2695
  telegram_bot: "telegram_bot";
2696
+ media_folder: "media_folder";
2001
2697
  }>;
2002
2698
  key: z.ZodString;
2003
2699
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2027,10 +2723,10 @@ export declare const businessProfilesActivateVersionResponseSchema: z.ZodObject<
2027
2723
  businessProfileSlug: z.ZodString;
2028
2724
  versionNumber: z.ZodNumber;
2029
2725
  source: z.ZodEnum<{
2726
+ profile_upload: "profile_upload";
2030
2727
  backfill: "backfill";
2031
2728
  ensure_operator: "ensure_operator";
2032
2729
  system: "system";
2033
- profile_upload: "profile_upload";
2034
2730
  }>;
2035
2731
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2036
2732
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2062,10 +2758,10 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2062
2758
  businessProfileSlug: z.ZodString;
2063
2759
  versionNumber: z.ZodNumber;
2064
2760
  source: z.ZodEnum<{
2761
+ profile_upload: "profile_upload";
2065
2762
  backfill: "backfill";
2066
2763
  ensure_operator: "ensure_operator";
2067
2764
  system: "system";
2068
- profile_upload: "profile_upload";
2069
2765
  }>;
2070
2766
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2071
2767
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2093,6 +2789,7 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2093
2789
  catalog_relations: z.ZodString;
2094
2790
  telegram_bots: z.ZodString;
2095
2791
  telegram_business_accounts: z.ZodString;
2792
+ media_root: z.ZodOptional<z.ZodString>;
2096
2793
  strategies_root: z.ZodString;
2097
2794
  policies_root: z.ZodString;
2098
2795
  prompt_overrides: z.ZodString;
@@ -2108,10 +2805,46 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2108
2805
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2109
2806
  }, z.core.$strip>>;
2110
2807
  }, z.core.$strip>;
2111
- files: z.ZodArray<z.ZodObject<{
2808
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
2112
2809
  relativePath: z.ZodString;
2810
+ contentKind: z.ZodLiteral<"text">;
2113
2811
  content: z.ZodString;
2114
- }, z.core.$strip>>;
2812
+ }, z.core.$strip>, z.ZodObject<{
2813
+ relativePath: z.ZodString;
2814
+ contentKind: z.ZodLiteral<"binary">;
2815
+ contentBase64: z.ZodString;
2816
+ byteSize: z.ZodNumber;
2817
+ sha256: z.ZodString;
2818
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2819
+ }, z.core.$strip>, z.ZodObject<{
2820
+ relativePath: z.ZodString;
2821
+ content: z.ZodString;
2822
+ }, z.core.$strip>]>, z.ZodTransform<{
2823
+ relativePath: string;
2824
+ contentKind: "text";
2825
+ content: string;
2826
+ } | {
2827
+ relativePath: string;
2828
+ contentKind: "binary";
2829
+ contentBase64: string;
2830
+ byteSize: number;
2831
+ sha256: string;
2832
+ mimeType: string | null;
2833
+ }, {
2834
+ relativePath: string;
2835
+ contentKind: "text";
2836
+ content: string;
2837
+ } | {
2838
+ relativePath: string;
2839
+ contentKind: "binary";
2840
+ contentBase64: string;
2841
+ byteSize: number;
2842
+ sha256: string;
2843
+ mimeType: string | null;
2844
+ } | {
2845
+ relativePath: string;
2846
+ content: string;
2847
+ }>>>;
2115
2848
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2116
2849
  integrationKey: z.ZodString;
2117
2850
  field: z.ZodEnum<{
@@ -2163,6 +2896,46 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2163
2896
  createdAt: z.ZodString;
2164
2897
  updatedAt: z.ZodString;
2165
2898
  }, z.core.$strip>>;
2899
+ mediaRegistry: z.ZodObject<{
2900
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2901
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2902
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2903
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2904
+ folderKey: z.ZodString;
2905
+ relativePath: z.ZodString;
2906
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2907
+ purpose: z.ZodString;
2908
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2909
+ assetCount: z.ZodNumber;
2910
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2911
+ image: "image";
2912
+ document: "document";
2913
+ link: "link";
2914
+ deck: "deck";
2915
+ }>>>;
2916
+ }, z.core.$strip>>>;
2917
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2918
+ assetId: z.ZodString;
2919
+ folderKey: z.ZodString;
2920
+ kind: z.ZodEnum<{
2921
+ image: "image";
2922
+ document: "document";
2923
+ link: "link";
2924
+ deck: "deck";
2925
+ }>;
2926
+ what: z.ZodString;
2927
+ purpose: z.ZodString;
2928
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
2929
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2930
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2931
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2932
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2933
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2934
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2935
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2936
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2937
+ }, z.core.$strip>>>;
2938
+ }, z.core.$strip>;
2166
2939
  serverEnvironment: z.ZodString;
2167
2940
  }, z.core.$strip>;
2168
2941
  export declare const telegramBusinessAccountSchema: z.ZodObject<{
@@ -3804,7 +4577,9 @@ export type WorkspaceMembershipStatus = z.infer<typeof workspaceMembershipStatus
3804
4577
  export type OperatorRecord = z.infer<typeof operatorRecordSchema>;
3805
4578
  export type WorkspaceMembership = z.infer<typeof workspaceMembershipSchema>;
3806
4579
  export type AuthSessionSource = z.infer<typeof authSessionSourceSchema>;
4580
+ export type AuthDeployAction = z.infer<typeof authDeployActionSchema>;
3807
4581
  export type AuthSession = z.infer<typeof authSessionSchema>;
4582
+ export type AuthSessionRecord = z.infer<typeof authSessionRecordSchema>;
3808
4583
  export type OperatorAccessContext = z.infer<typeof operatorAccessContextSchema>;
3809
4584
  export type AuthEnsureOperatorInput = z.infer<typeof authEnsureOperatorRequestSchema>;
3810
4585
  export type AuthEnsureOperatorOutput = z.infer<typeof authEnsureOperatorResponseSchema>;
@@ -3814,18 +4589,30 @@ export type AuthStartCliLoginIntentInput = z.infer<typeof authStartCliLoginInten
3814
4589
  export type AuthStartCliLoginIntentOutput = z.infer<typeof authStartCliLoginIntentResponseSchema>;
3815
4590
  export type AuthGetCliLoginIntentInput = z.infer<typeof authGetCliLoginIntentRequestSchema>;
3816
4591
  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>;
4592
+ export type AuthAbandonCliLoginIntentInput = z.infer<typeof authAbandonCliLoginIntentRequestSchema>;
4593
+ export type AuthAbandonCliLoginIntentOutput = z.infer<typeof authAbandonCliLoginIntentResponseSchema>;
4594
+ export type AuthCliBrowserLoginStateInput = z.infer<typeof authCliBrowserLoginStateRequestSchema>;
4595
+ export type AuthCliBrowserLoginState = z.infer<typeof authCliBrowserLoginStateSchema>;
4596
+ export type AuthCliBrowserLoginStateOutput = z.infer<typeof authCliBrowserLoginStateResponseSchema>;
4597
+ export type AuthRequestCliLoginMagicLinkInput = z.infer<typeof authRequestCliLoginMagicLinkRequestSchema>;
4598
+ export type AuthRequestCliLoginMagicLinkOutput = z.infer<typeof authRequestCliLoginMagicLinkResponseSchema>;
4599
+ export type AuthCompleteCliBrowserLoginInput = z.infer<typeof authCompleteCliBrowserLoginRequestSchema>;
4600
+ export type AuthCompleteCliBrowserLoginOutput = z.infer<typeof authCompleteCliBrowserLoginResponseSchema>;
3822
4601
  export type AuthIssueScenarioTokenInput = z.infer<typeof authIssueScenarioTokenRequestSchema>;
3823
4602
  export type AuthIssueScenarioTokenOutput = z.infer<typeof authIssueScenarioTokenResponseSchema>;
3824
4603
  export type AuthGetSessionInput = z.infer<typeof authGetSessionRequestSchema>;
3825
4604
  export type AuthGetSessionOutput = z.infer<typeof authGetSessionResponseSchema>;
4605
+ export type AuthListSessionsInput = z.infer<typeof authListSessionsRequestSchema>;
4606
+ export type AuthListSessionsOutput = z.infer<typeof authListSessionsResponseSchema>;
4607
+ export type AuthRevokeSessionInput = z.infer<typeof authRevokeSessionRequestSchema>;
4608
+ export type AuthRevokeSessionOutput = z.infer<typeof authRevokeSessionResponseSchema>;
4609
+ export type AuthIssueDeployTokenInput = z.infer<typeof authIssueDeployTokenRequestSchema>;
4610
+ export type AuthIssueDeployTokenOutput = z.infer<typeof authIssueDeployTokenResponseSchema>;
3826
4611
  export type AuthWorkspaceMemberEntry = z.infer<typeof authWorkspaceMemberEntrySchema>;
3827
4612
  export type AuthListWorkspaceMembersInput = z.infer<typeof authListWorkspaceMembersRequestSchema>;
3828
4613
  export type AuthListWorkspaceMembersOutput = z.infer<typeof authListWorkspaceMembersResponseSchema>;
4614
+ export type AuthUpsertWorkspaceMemberInput = z.infer<typeof authUpsertWorkspaceMemberRequestSchema>;
4615
+ export type AuthUpsertWorkspaceMemberOutput = z.infer<typeof authUpsertWorkspaceMemberResponseSchema>;
3829
4616
  export type AuthWorkspaceTrustMode = z.infer<typeof authWorkspaceTrustModeSchema>;
3830
4617
  export type AuthWorkspaceTrustPolicy = z.infer<typeof authWorkspaceTrustPolicySchema>;
3831
4618
  export type AuthInviteScope = z.infer<typeof authInviteScopeSchema>;
@@ -3855,6 +4642,10 @@ export type BusinessProfile = z.infer<typeof businessProfileSchema>;
3855
4642
  export type BusinessProfileVersion = z.infer<typeof businessProfileVersionSchema>;
3856
4643
  export type BusinessProfileProjectManifest = z.infer<typeof businessProfileProjectManifestSchema>;
3857
4644
  export type BusinessProfileProjectFile = z.infer<typeof businessProfileProjectFileSchema>;
4645
+ export type BusinessProfileMediaAssetKind = z.infer<typeof businessProfileMediaAssetKindSchema>;
4646
+ export type BusinessProfileMediaFolder = z.infer<typeof businessProfileMediaFolderSchema>;
4647
+ export type BusinessProfileMediaAsset = z.infer<typeof businessProfileMediaAssetSchema>;
4648
+ export type BusinessProfileMediaRegistry = z.infer<typeof businessProfileMediaRegistrySchema>;
3858
4649
  export type BusinessProfileProjectSecretRef = z.infer<typeof businessProfileProjectSecretRefSchema>;
3859
4650
  export type BusinessProfileProjectSecretStatus = z.infer<typeof businessProfileProjectSecretStatusSchema>;
3860
4651
  export type BusinessProfileProjectBundle = z.infer<typeof businessProfileProjectBundleSchema>;
@@ -4122,26 +4913,32 @@ export declare const authRequestMagicLinkOperation: OperationDefinition<"auth.re
4122
4913
  email: z.ZodString;
4123
4914
  }, z.core.$strip>>;
4124
4915
  export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
4125
- email: z.ZodString;
4916
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4917
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4126
4918
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4127
4919
  }, z.core.$strip>, z.ZodObject<{
4128
4920
  intent: z.ZodObject<{
4129
4921
  intentId: z.ZodString;
4130
- email: z.ZodString;
4131
- userCode: z.ZodString;
4922
+ email: z.ZodNullable<z.ZodString>;
4923
+ browserToken: z.ZodString;
4132
4924
  environment: z.ZodString;
4133
4925
  status: z.ZodEnum<{
4134
4926
  pending: "pending";
4135
4927
  completed: "completed";
4136
4928
  expired: "expired";
4929
+ abandoned: "abandoned";
4137
4930
  }>;
4138
4931
  deliveryMode: z.ZodEnum<{
4139
4932
  magic_link: "magic_link";
4933
+ browser_flow: "browser_flow";
4934
+ browser_session: "browser_session";
4140
4935
  synthetic_local: "synthetic_local";
4141
4936
  }>;
4142
4937
  requestedAt: z.ZodString;
4143
4938
  expiresAt: z.ZodString;
4144
4939
  completedAt: z.ZodNullable<z.ZodString>;
4940
+ lastSeenAt: z.ZodNullable<z.ZodString>;
4941
+ linkSentAt: z.ZodNullable<z.ZodString>;
4145
4942
  nextPath: z.ZodNullable<z.ZodString>;
4146
4943
  sessionToken: z.ZodNullable<z.ZodString>;
4147
4944
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4184,40 +4981,142 @@ export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth
4184
4981
  source: z.ZodEnum<{
4185
4982
  magic_link: "magic_link";
4186
4983
  scenario_token: "scenario_token";
4984
+ cli_login: "cli_login";
4985
+ deploy_token: "deploy_token";
4187
4986
  }>;
4188
4987
  issuedAt: z.ZodString;
4189
4988
  expiresAt: z.ZodString;
4989
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4990
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4991
+ profile_read: "profile_read";
4992
+ profile_upload: "profile_upload";
4993
+ profile_activate: "profile_activate";
4994
+ integrations_apply: "integrations_apply";
4995
+ media_apply: "media_apply";
4996
+ team_access_manage: "team_access_manage";
4997
+ }>>>;
4190
4998
  }, z.core.$strip>>;
4191
4999
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4192
5000
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4193
5001
  }, z.core.$strip>>;
4194
5002
  }, z.core.$strip>;
4195
- userCode: z.ZodString;
4196
- verificationUri: z.ZodString;
4197
- verificationUriComplete: z.ZodString;
5003
+ authorizationUrl: z.ZodString;
4198
5004
  pollAfterSeconds: z.ZodNumber;
4199
5005
  instructions: z.ZodArray<z.ZodString>;
4200
5006
  }, z.core.$strip>>;
4201
5007
  export declare const authGetCliLoginIntentOperation: OperationDefinition<"auth.getCliLoginIntent", z.ZodObject<{
4202
5008
  intentId: z.ZodString;
5009
+ markActive: z.ZodOptional<z.ZodBoolean>;
4203
5010
  }, z.core.$strip>, z.ZodObject<{
4204
5011
  intent: z.ZodObject<{
4205
5012
  intentId: z.ZodString;
4206
- email: z.ZodString;
4207
- userCode: z.ZodString;
5013
+ email: z.ZodNullable<z.ZodString>;
5014
+ browserToken: z.ZodString;
5015
+ environment: z.ZodString;
5016
+ status: z.ZodEnum<{
5017
+ pending: "pending";
5018
+ completed: "completed";
5019
+ expired: "expired";
5020
+ abandoned: "abandoned";
5021
+ }>;
5022
+ deliveryMode: z.ZodEnum<{
5023
+ magic_link: "magic_link";
5024
+ browser_flow: "browser_flow";
5025
+ browser_session: "browser_session";
5026
+ synthetic_local: "synthetic_local";
5027
+ }>;
5028
+ requestedAt: z.ZodString;
5029
+ expiresAt: z.ZodString;
5030
+ completedAt: z.ZodNullable<z.ZodString>;
5031
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5032
+ linkSentAt: z.ZodNullable<z.ZodString>;
5033
+ nextPath: z.ZodNullable<z.ZodString>;
5034
+ sessionToken: z.ZodNullable<z.ZodString>;
5035
+ accessContext: z.ZodNullable<z.ZodObject<{
5036
+ authenticated: z.ZodBoolean;
5037
+ environment: z.ZodString;
5038
+ operator: z.ZodNullable<z.ZodObject<{
5039
+ operatorId: z.ZodString;
5040
+ email: z.ZodString;
5041
+ displayName: z.ZodNullable<z.ZodString>;
5042
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5043
+ status: z.ZodEnum<{
5044
+ active: "active";
5045
+ disabled: "disabled";
5046
+ }>;
5047
+ createdAt: z.ZodString;
5048
+ updatedAt: z.ZodString;
5049
+ }, z.core.$strip>>;
5050
+ memberships: z.ZodArray<z.ZodObject<{
5051
+ membershipId: z.ZodString;
5052
+ operatorId: z.ZodString;
5053
+ workspaceId: z.ZodString;
5054
+ workspaceSlug: z.ZodString;
5055
+ workspaceName: z.ZodString;
5056
+ role: z.ZodEnum<{
5057
+ workspace_admin: "workspace_admin";
5058
+ operator: "operator";
5059
+ observer: "observer";
5060
+ }>;
5061
+ status: z.ZodEnum<{
5062
+ active: "active";
5063
+ revoked: "revoked";
5064
+ }>;
5065
+ createdAt: z.ZodString;
5066
+ updatedAt: z.ZodString;
5067
+ }, z.core.$strip>>;
5068
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
5069
+ session: z.ZodNullable<z.ZodObject<{
5070
+ sessionId: z.ZodString;
5071
+ sessionToken: z.ZodOptional<z.ZodString>;
5072
+ source: z.ZodEnum<{
5073
+ magic_link: "magic_link";
5074
+ scenario_token: "scenario_token";
5075
+ cli_login: "cli_login";
5076
+ deploy_token: "deploy_token";
5077
+ }>;
5078
+ issuedAt: z.ZodString;
5079
+ expiresAt: z.ZodString;
5080
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5081
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5082
+ profile_read: "profile_read";
5083
+ profile_upload: "profile_upload";
5084
+ profile_activate: "profile_activate";
5085
+ integrations_apply: "integrations_apply";
5086
+ media_apply: "media_apply";
5087
+ team_access_manage: "team_access_manage";
5088
+ }>>>;
5089
+ }, z.core.$strip>>;
5090
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
5091
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5092
+ }, z.core.$strip>>;
5093
+ }, z.core.$strip>;
5094
+ }, z.core.$strip>>;
5095
+ export declare const authAbandonCliLoginIntentOperation: OperationDefinition<"auth.abandonCliLoginIntent", z.ZodObject<{
5096
+ intentId: z.ZodString;
5097
+ }, z.core.$strip>, z.ZodObject<{
5098
+ intent: z.ZodObject<{
5099
+ intentId: z.ZodString;
5100
+ email: z.ZodNullable<z.ZodString>;
5101
+ browserToken: z.ZodString;
4208
5102
  environment: z.ZodString;
4209
5103
  status: z.ZodEnum<{
4210
5104
  pending: "pending";
4211
5105
  completed: "completed";
4212
5106
  expired: "expired";
5107
+ abandoned: "abandoned";
4213
5108
  }>;
4214
5109
  deliveryMode: z.ZodEnum<{
4215
5110
  magic_link: "magic_link";
5111
+ browser_flow: "browser_flow";
5112
+ browser_session: "browser_session";
4216
5113
  synthetic_local: "synthetic_local";
4217
5114
  }>;
4218
5115
  requestedAt: z.ZodString;
4219
5116
  expiresAt: z.ZodString;
4220
5117
  completedAt: z.ZodNullable<z.ZodString>;
5118
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5119
+ linkSentAt: z.ZodNullable<z.ZodString>;
4221
5120
  nextPath: z.ZodNullable<z.ZodString>;
4222
5121
  sessionToken: z.ZodNullable<z.ZodString>;
4223
5122
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4260,53 +5159,97 @@ export declare const authGetCliLoginIntentOperation: OperationDefinition<"auth.g
4260
5159
  source: z.ZodEnum<{
4261
5160
  magic_link: "magic_link";
4262
5161
  scenario_token: "scenario_token";
5162
+ cli_login: "cli_login";
5163
+ deploy_token: "deploy_token";
4263
5164
  }>;
4264
5165
  issuedAt: z.ZodString;
4265
5166
  expiresAt: z.ZodString;
5167
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5168
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5169
+ profile_read: "profile_read";
5170
+ profile_upload: "profile_upload";
5171
+ profile_activate: "profile_activate";
5172
+ integrations_apply: "integrations_apply";
5173
+ media_apply: "media_apply";
5174
+ team_access_manage: "team_access_manage";
5175
+ }>>>;
4266
5176
  }, z.core.$strip>>;
4267
5177
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4268
5178
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4269
5179
  }, z.core.$strip>>;
4270
5180
  }, z.core.$strip>;
4271
5181
  }, z.core.$strip>>;
4272
- export declare const authGetCliDeviceLoginStatusOperation: OperationDefinition<"auth.getCliDeviceLoginStatus", z.ZodObject<{
4273
- userCode: z.ZodString;
5182
+ export declare const authGetCliBrowserLoginStateOperation: OperationDefinition<"auth.getCliBrowserLoginState", z.ZodObject<{
5183
+ token: z.ZodString;
4274
5184
  }, z.core.$strip>, z.ZodObject<{
4275
5185
  intent: z.ZodNullable<z.ZodObject<{
4276
- userCode: z.ZodString;
4277
- emailHint: z.ZodString;
5186
+ token: z.ZodString;
5187
+ emailHint: z.ZodNullable<z.ZodString>;
4278
5188
  status: z.ZodEnum<{
4279
5189
  pending: "pending";
4280
5190
  completed: "completed";
4281
5191
  expired: "expired";
5192
+ abandoned: "abandoned";
4282
5193
  }>;
4283
5194
  requestedAt: z.ZodString;
4284
5195
  expiresAt: z.ZodString;
4285
5196
  completedAt: z.ZodNullable<z.ZodString>;
5197
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5198
+ linkSentAt: z.ZodNullable<z.ZodString>;
4286
5199
  nextPath: z.ZodNullable<z.ZodString>;
4287
5200
  }, z.core.$strip>>;
4288
5201
  }, z.core.$strip>>;
4289
- export declare const authCompleteCliDeviceLoginOperation: OperationDefinition<"auth.completeCliDeviceLogin", z.ZodObject<{
4290
- userCode: z.ZodString;
5202
+ export declare const authRequestCliLoginMagicLinkOperation: OperationDefinition<"auth.requestCliLoginMagicLink", z.ZodObject<{
5203
+ token: z.ZodString;
5204
+ email: z.ZodString;
5205
+ }, z.core.$strip>, z.ZodObject<{
5206
+ intent: z.ZodObject<{
5207
+ token: z.ZodString;
5208
+ emailHint: z.ZodNullable<z.ZodString>;
5209
+ status: z.ZodEnum<{
5210
+ pending: "pending";
5211
+ completed: "completed";
5212
+ expired: "expired";
5213
+ abandoned: "abandoned";
5214
+ }>;
5215
+ requestedAt: z.ZodString;
5216
+ expiresAt: z.ZodString;
5217
+ completedAt: z.ZodNullable<z.ZodString>;
5218
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5219
+ linkSentAt: z.ZodNullable<z.ZodString>;
5220
+ nextPath: z.ZodNullable<z.ZodString>;
5221
+ }, z.core.$strip>;
5222
+ accepted: z.ZodBoolean;
5223
+ email: z.ZodString;
5224
+ alreadySent: z.ZodBoolean;
5225
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5226
+ }, z.core.$strip>>;
5227
+ export declare const authCompleteCliBrowserLoginOperation: OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
5228
+ token: z.ZodString;
4291
5229
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4292
5230
  }, z.core.$strip>, z.ZodObject<{
4293
5231
  intent: z.ZodObject<{
4294
5232
  intentId: z.ZodString;
4295
- email: z.ZodString;
4296
- userCode: z.ZodString;
5233
+ email: z.ZodNullable<z.ZodString>;
5234
+ browserToken: z.ZodString;
4297
5235
  environment: z.ZodString;
4298
5236
  status: z.ZodEnum<{
4299
5237
  pending: "pending";
4300
5238
  completed: "completed";
4301
5239
  expired: "expired";
5240
+ abandoned: "abandoned";
4302
5241
  }>;
4303
5242
  deliveryMode: z.ZodEnum<{
4304
5243
  magic_link: "magic_link";
5244
+ browser_flow: "browser_flow";
5245
+ browser_session: "browser_session";
4305
5246
  synthetic_local: "synthetic_local";
4306
5247
  }>;
4307
5248
  requestedAt: z.ZodString;
4308
5249
  expiresAt: z.ZodString;
4309
5250
  completedAt: z.ZodNullable<z.ZodString>;
5251
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5252
+ linkSentAt: z.ZodNullable<z.ZodString>;
4310
5253
  nextPath: z.ZodNullable<z.ZodString>;
4311
5254
  sessionToken: z.ZodNullable<z.ZodString>;
4312
5255
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -4349,9 +5292,20 @@ export declare const authCompleteCliDeviceLoginOperation: OperationDefinition<"a
4349
5292
  source: z.ZodEnum<{
4350
5293
  magic_link: "magic_link";
4351
5294
  scenario_token: "scenario_token";
5295
+ cli_login: "cli_login";
5296
+ deploy_token: "deploy_token";
4352
5297
  }>;
4353
5298
  issuedAt: z.ZodString;
4354
5299
  expiresAt: z.ZodString;
5300
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5301
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5302
+ profile_read: "profile_read";
5303
+ profile_upload: "profile_upload";
5304
+ profile_activate: "profile_activate";
5305
+ integrations_apply: "integrations_apply";
5306
+ media_apply: "media_apply";
5307
+ team_access_manage: "team_access_manage";
5308
+ }>>>;
4355
5309
  }, z.core.$strip>>;
4356
5310
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4357
5311
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4447,14 +5401,144 @@ export declare const authGetSessionOperation: OperationDefinition<"auth.getSessi
4447
5401
  source: z.ZodEnum<{
4448
5402
  magic_link: "magic_link";
4449
5403
  scenario_token: "scenario_token";
5404
+ cli_login: "cli_login";
5405
+ deploy_token: "deploy_token";
4450
5406
  }>;
4451
5407
  issuedAt: z.ZodString;
4452
5408
  expiresAt: z.ZodString;
5409
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5410
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5411
+ profile_read: "profile_read";
5412
+ profile_upload: "profile_upload";
5413
+ profile_activate: "profile_activate";
5414
+ integrations_apply: "integrations_apply";
5415
+ media_apply: "media_apply";
5416
+ team_access_manage: "team_access_manage";
5417
+ }>>>;
4453
5418
  }, z.core.$strip>>;
4454
5419
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4455
5420
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4456
5421
  }, z.core.$strip>;
4457
5422
  }, z.core.$strip>>;
5423
+ export declare const authListSessionsOperation: OperationDefinition<"auth.listSessions", z.ZodObject<{
5424
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5425
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5426
+ magic_link: "magic_link";
5427
+ scenario_token: "scenario_token";
5428
+ cli_login: "cli_login";
5429
+ deploy_token: "deploy_token";
5430
+ }>>>;
5431
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5432
+ includeRevoked: z.ZodOptional<z.ZodBoolean>;
5433
+ }, z.core.$strip>, z.ZodObject<{
5434
+ sessions: z.ZodArray<z.ZodObject<{
5435
+ sessionId: z.ZodString;
5436
+ operatorId: z.ZodString;
5437
+ operatorEmail: z.ZodNullable<z.ZodString>;
5438
+ source: z.ZodEnum<{
5439
+ magic_link: "magic_link";
5440
+ scenario_token: "scenario_token";
5441
+ cli_login: "cli_login";
5442
+ deploy_token: "deploy_token";
5443
+ }>;
5444
+ environment: z.ZodString;
5445
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
5446
+ allowedActions: z.ZodArray<z.ZodEnum<{
5447
+ profile_read: "profile_read";
5448
+ profile_upload: "profile_upload";
5449
+ profile_activate: "profile_activate";
5450
+ integrations_apply: "integrations_apply";
5451
+ media_apply: "media_apply";
5452
+ team_access_manage: "team_access_manage";
5453
+ }>>;
5454
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
5455
+ issuedAt: z.ZodString;
5456
+ expiresAt: z.ZodString;
5457
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5458
+ revokedAt: z.ZodNullable<z.ZodString>;
5459
+ revokeReason: z.ZodNullable<z.ZodString>;
5460
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
5461
+ }, z.core.$strip>>;
5462
+ }, z.core.$strip>>;
5463
+ export declare const authRevokeSessionOperation: OperationDefinition<"auth.revokeSession", z.ZodObject<{
5464
+ currentSessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5465
+ sessionId: z.ZodString;
5466
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5467
+ }, z.core.$strip>, z.ZodObject<{
5468
+ revoked: z.ZodBoolean;
5469
+ session: z.ZodNullable<z.ZodObject<{
5470
+ sessionId: z.ZodString;
5471
+ operatorId: z.ZodString;
5472
+ operatorEmail: z.ZodNullable<z.ZodString>;
5473
+ source: z.ZodEnum<{
5474
+ magic_link: "magic_link";
5475
+ scenario_token: "scenario_token";
5476
+ cli_login: "cli_login";
5477
+ deploy_token: "deploy_token";
5478
+ }>;
5479
+ environment: z.ZodString;
5480
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
5481
+ allowedActions: z.ZodArray<z.ZodEnum<{
5482
+ profile_read: "profile_read";
5483
+ profile_upload: "profile_upload";
5484
+ profile_activate: "profile_activate";
5485
+ integrations_apply: "integrations_apply";
5486
+ media_apply: "media_apply";
5487
+ team_access_manage: "team_access_manage";
5488
+ }>>;
5489
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
5490
+ issuedAt: z.ZodString;
5491
+ expiresAt: z.ZodString;
5492
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5493
+ revokedAt: z.ZodNullable<z.ZodString>;
5494
+ revokeReason: z.ZodNullable<z.ZodString>;
5495
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
5496
+ }, z.core.$strip>>;
5497
+ }, z.core.$strip>>;
5498
+ export declare const authIssueDeployTokenOperation: OperationDefinition<"auth.issueDeployToken", z.ZodObject<{
5499
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5500
+ businessProfileSlug: z.ZodString;
5501
+ targetEnvironment: z.ZodString;
5502
+ allowedActions: z.ZodArray<z.ZodEnum<{
5503
+ profile_read: "profile_read";
5504
+ profile_upload: "profile_upload";
5505
+ profile_activate: "profile_activate";
5506
+ integrations_apply: "integrations_apply";
5507
+ media_apply: "media_apply";
5508
+ team_access_manage: "team_access_manage";
5509
+ }>>;
5510
+ ttlMinutes: z.ZodNumber;
5511
+ }, z.core.$strip>, z.ZodObject<{
5512
+ token: z.ZodString;
5513
+ session: z.ZodObject<{
5514
+ sessionId: z.ZodString;
5515
+ operatorId: z.ZodString;
5516
+ operatorEmail: z.ZodNullable<z.ZodString>;
5517
+ source: z.ZodEnum<{
5518
+ magic_link: "magic_link";
5519
+ scenario_token: "scenario_token";
5520
+ cli_login: "cli_login";
5521
+ deploy_token: "deploy_token";
5522
+ }>;
5523
+ environment: z.ZodString;
5524
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
5525
+ allowedActions: z.ZodArray<z.ZodEnum<{
5526
+ profile_read: "profile_read";
5527
+ profile_upload: "profile_upload";
5528
+ profile_activate: "profile_activate";
5529
+ integrations_apply: "integrations_apply";
5530
+ media_apply: "media_apply";
5531
+ team_access_manage: "team_access_manage";
5532
+ }>>;
5533
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
5534
+ issuedAt: z.ZodString;
5535
+ expiresAt: z.ZodString;
5536
+ lastSeenAt: z.ZodNullable<z.ZodString>;
5537
+ revokedAt: z.ZodNullable<z.ZodString>;
5538
+ revokeReason: z.ZodNullable<z.ZodString>;
5539
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
5540
+ }, z.core.$strip>;
5541
+ }, z.core.$strip>>;
4458
5542
  export declare const authListWorkspaceMembersOperation: OperationDefinition<"auth.listWorkspaceMembers", z.ZodObject<{
4459
5543
  workspaceSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4460
5544
  }, z.core.$strip>, z.ZodObject<{
@@ -4493,6 +5577,49 @@ export declare const authListWorkspaceMembersOperation: OperationDefinition<"aut
4493
5577
  }, z.core.$strip>;
4494
5578
  }, z.core.$strip>>;
4495
5579
  }, z.core.$strip>>;
5580
+ export declare const authUpsertWorkspaceMemberOperation: OperationDefinition<"auth.upsertWorkspaceMember", z.ZodObject<{
5581
+ workspaceSlug: z.ZodString;
5582
+ email: z.ZodString;
5583
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5584
+ role: z.ZodEnum<{
5585
+ workspace_admin: "workspace_admin";
5586
+ operator: "operator";
5587
+ observer: "observer";
5588
+ }>;
5589
+ }, z.core.$strip>, z.ZodObject<{
5590
+ member: z.ZodObject<{
5591
+ operator: z.ZodObject<{
5592
+ operatorId: z.ZodString;
5593
+ email: z.ZodString;
5594
+ displayName: z.ZodNullable<z.ZodString>;
5595
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5596
+ status: z.ZodEnum<{
5597
+ active: "active";
5598
+ disabled: "disabled";
5599
+ }>;
5600
+ createdAt: z.ZodString;
5601
+ updatedAt: z.ZodString;
5602
+ }, z.core.$strip>;
5603
+ membership: z.ZodObject<{
5604
+ membershipId: z.ZodString;
5605
+ operatorId: z.ZodString;
5606
+ workspaceId: z.ZodString;
5607
+ workspaceSlug: z.ZodString;
5608
+ workspaceName: z.ZodString;
5609
+ role: z.ZodEnum<{
5610
+ workspace_admin: "workspace_admin";
5611
+ operator: "operator";
5612
+ observer: "observer";
5613
+ }>;
5614
+ status: z.ZodEnum<{
5615
+ active: "active";
5616
+ revoked: "revoked";
5617
+ }>;
5618
+ createdAt: z.ZodString;
5619
+ updatedAt: z.ZodString;
5620
+ }, z.core.$strip>;
5621
+ }, z.core.$strip>;
5622
+ }, z.core.$strip>>;
4496
5623
  export declare const authCheckAccessOperation: OperationDefinition<"auth.checkAccess", z.ZodObject<{
4497
5624
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4498
5625
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4544,9 +5671,20 @@ export declare const authCheckAccessOperation: OperationDefinition<"auth.checkAc
4544
5671
  source: z.ZodEnum<{
4545
5672
  magic_link: "magic_link";
4546
5673
  scenario_token: "scenario_token";
5674
+ cli_login: "cli_login";
5675
+ deploy_token: "deploy_token";
4547
5676
  }>;
4548
5677
  issuedAt: z.ZodString;
4549
5678
  expiresAt: z.ZodString;
5679
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5680
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5681
+ profile_read: "profile_read";
5682
+ profile_upload: "profile_upload";
5683
+ profile_activate: "profile_activate";
5684
+ integrations_apply: "integrations_apply";
5685
+ media_apply: "media_apply";
5686
+ team_access_manage: "team_access_manage";
5687
+ }>>>;
4550
5688
  }, z.core.$strip>>;
4551
5689
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4552
5690
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4886,10 +6024,10 @@ export declare const businessProfilesGetOperation: OperationDefinition<"business
4886
6024
  businessProfileSlug: z.ZodString;
4887
6025
  versionNumber: z.ZodNumber;
4888
6026
  source: z.ZodEnum<{
6027
+ profile_upload: "profile_upload";
4889
6028
  backfill: "backfill";
4890
6029
  ensure_operator: "ensure_operator";
4891
6030
  system: "system";
4892
- profile_upload: "profile_upload";
4893
6031
  }>;
4894
6032
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4895
6033
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4911,10 +6049,10 @@ export declare const businessProfilesListVersionsOperation: OperationDefinition<
4911
6049
  businessProfileSlug: z.ZodString;
4912
6050
  versionNumber: z.ZodNumber;
4913
6051
  source: z.ZodEnum<{
6052
+ profile_upload: "profile_upload";
4914
6053
  backfill: "backfill";
4915
6054
  ensure_operator: "ensure_operator";
4916
6055
  system: "system";
4917
- profile_upload: "profile_upload";
4918
6056
  }>;
4919
6057
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4920
6058
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4982,6 +6120,7 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
4982
6120
  catalog_relations: z.ZodString;
4983
6121
  telegram_bots: z.ZodString;
4984
6122
  telegram_business_accounts: z.ZodString;
6123
+ media_root: z.ZodOptional<z.ZodString>;
4985
6124
  strategies_root: z.ZodString;
4986
6125
  policies_root: z.ZodString;
4987
6126
  prompt_overrides: z.ZodString;
@@ -4997,10 +6136,46 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
4997
6136
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
4998
6137
  }, z.core.$strip>>;
4999
6138
  }, z.core.$strip>;
5000
- files: z.ZodArray<z.ZodObject<{
6139
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
5001
6140
  relativePath: z.ZodString;
6141
+ contentKind: z.ZodLiteral<"text">;
5002
6142
  content: z.ZodString;
5003
- }, z.core.$strip>>;
6143
+ }, z.core.$strip>, z.ZodObject<{
6144
+ relativePath: z.ZodString;
6145
+ contentKind: z.ZodLiteral<"binary">;
6146
+ contentBase64: z.ZodString;
6147
+ byteSize: z.ZodNumber;
6148
+ sha256: z.ZodString;
6149
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6150
+ }, z.core.$strip>, z.ZodObject<{
6151
+ relativePath: z.ZodString;
6152
+ content: z.ZodString;
6153
+ }, z.core.$strip>]>, z.ZodTransform<{
6154
+ relativePath: string;
6155
+ contentKind: "text";
6156
+ content: string;
6157
+ } | {
6158
+ relativePath: string;
6159
+ contentKind: "binary";
6160
+ contentBase64: string;
6161
+ byteSize: number;
6162
+ sha256: string;
6163
+ mimeType: string | null;
6164
+ }, {
6165
+ relativePath: string;
6166
+ contentKind: "text";
6167
+ content: string;
6168
+ } | {
6169
+ relativePath: string;
6170
+ contentKind: "binary";
6171
+ contentBase64: string;
6172
+ byteSize: number;
6173
+ sha256: string;
6174
+ mimeType: string | null;
6175
+ } | {
6176
+ relativePath: string;
6177
+ content: string;
6178
+ }>>>;
5004
6179
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
5005
6180
  integrationKey: z.ZodString;
5006
6181
  field: z.ZodEnum<{
@@ -5053,10 +6228,10 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5053
6228
  businessProfileSlug: z.ZodString;
5054
6229
  versionNumber: z.ZodNumber;
5055
6230
  source: z.ZodEnum<{
6231
+ profile_upload: "profile_upload";
5056
6232
  backfill: "backfill";
5057
6233
  ensure_operator: "ensure_operator";
5058
6234
  system: "system";
5059
- profile_upload: "profile_upload";
5060
6235
  }>;
5061
6236
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5062
6237
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5070,10 +6245,10 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5070
6245
  businessProfileSlug: z.ZodString;
5071
6246
  versionNumber: z.ZodNumber;
5072
6247
  source: z.ZodEnum<{
6248
+ profile_upload: "profile_upload";
5073
6249
  backfill: "backfill";
5074
6250
  ensure_operator: "ensure_operator";
5075
6251
  system: "system";
5076
- profile_upload: "profile_upload";
5077
6252
  }>;
5078
6253
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5079
6254
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5108,11 +6283,52 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5108
6283
  createdAt: z.ZodString;
5109
6284
  updatedAt: z.ZodString;
5110
6285
  }, z.core.$strip>>;
6286
+ mediaRegistry: z.ZodObject<{
6287
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6288
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6289
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6290
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
6291
+ folderKey: z.ZodString;
6292
+ relativePath: z.ZodString;
6293
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6294
+ purpose: z.ZodString;
6295
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6296
+ assetCount: z.ZodNumber;
6297
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6298
+ image: "image";
6299
+ document: "document";
6300
+ link: "link";
6301
+ deck: "deck";
6302
+ }>>>;
6303
+ }, z.core.$strip>>>;
6304
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6305
+ assetId: z.ZodString;
6306
+ folderKey: z.ZodString;
6307
+ kind: z.ZodEnum<{
6308
+ image: "image";
6309
+ document: "document";
6310
+ link: "link";
6311
+ deck: "deck";
6312
+ }>;
6313
+ what: z.ZodString;
6314
+ purpose: z.ZodString;
6315
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6316
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
6317
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6318
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6319
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6320
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6321
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6322
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6323
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6324
+ }, z.core.$strip>>>;
6325
+ }, z.core.$strip>;
5111
6326
  targetEnvironment: z.ZodString;
5112
6327
  serverEnvironment: z.ZodString;
5113
6328
  appliedDeclarations: z.ZodArray<z.ZodObject<{
5114
6329
  kind: z.ZodEnum<{
5115
6330
  telegram_bot: "telegram_bot";
6331
+ media_folder: "media_folder";
5116
6332
  }>;
5117
6333
  key: z.ZodString;
5118
6334
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5120,6 +6336,7 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5120
6336
  skippedDeclarations: z.ZodArray<z.ZodObject<{
5121
6337
  kind: z.ZodEnum<{
5122
6338
  telegram_bot: "telegram_bot";
6339
+ media_folder: "media_folder";
5123
6340
  }>;
5124
6341
  key: z.ZodString;
5125
6342
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5148,10 +6365,10 @@ export declare const businessProfilesActivateVersionOperation: OperationDefiniti
5148
6365
  businessProfileSlug: z.ZodString;
5149
6366
  versionNumber: z.ZodNumber;
5150
6367
  source: z.ZodEnum<{
6368
+ profile_upload: "profile_upload";
5151
6369
  backfill: "backfill";
5152
6370
  ensure_operator: "ensure_operator";
5153
6371
  system: "system";
5154
- profile_upload: "profile_upload";
5155
6372
  }>;
5156
6373
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5157
6374
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5182,10 +6399,10 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5182
6399
  businessProfileSlug: z.ZodString;
5183
6400
  versionNumber: z.ZodNumber;
5184
6401
  source: z.ZodEnum<{
6402
+ profile_upload: "profile_upload";
5185
6403
  backfill: "backfill";
5186
6404
  ensure_operator: "ensure_operator";
5187
6405
  system: "system";
5188
- profile_upload: "profile_upload";
5189
6406
  }>;
5190
6407
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5191
6408
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5213,6 +6430,7 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5213
6430
  catalog_relations: z.ZodString;
5214
6431
  telegram_bots: z.ZodString;
5215
6432
  telegram_business_accounts: z.ZodString;
6433
+ media_root: z.ZodOptional<z.ZodString>;
5216
6434
  strategies_root: z.ZodString;
5217
6435
  policies_root: z.ZodString;
5218
6436
  prompt_overrides: z.ZodString;
@@ -5228,10 +6446,46 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5228
6446
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
5229
6447
  }, z.core.$strip>>;
5230
6448
  }, z.core.$strip>;
5231
- files: z.ZodArray<z.ZodObject<{
6449
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
5232
6450
  relativePath: z.ZodString;
6451
+ contentKind: z.ZodLiteral<"text">;
5233
6452
  content: z.ZodString;
5234
- }, z.core.$strip>>;
6453
+ }, z.core.$strip>, z.ZodObject<{
6454
+ relativePath: z.ZodString;
6455
+ contentKind: z.ZodLiteral<"binary">;
6456
+ contentBase64: z.ZodString;
6457
+ byteSize: z.ZodNumber;
6458
+ sha256: z.ZodString;
6459
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6460
+ }, z.core.$strip>, z.ZodObject<{
6461
+ relativePath: z.ZodString;
6462
+ content: z.ZodString;
6463
+ }, z.core.$strip>]>, z.ZodTransform<{
6464
+ relativePath: string;
6465
+ contentKind: "text";
6466
+ content: string;
6467
+ } | {
6468
+ relativePath: string;
6469
+ contentKind: "binary";
6470
+ contentBase64: string;
6471
+ byteSize: number;
6472
+ sha256: string;
6473
+ mimeType: string | null;
6474
+ }, {
6475
+ relativePath: string;
6476
+ contentKind: "text";
6477
+ content: string;
6478
+ } | {
6479
+ relativePath: string;
6480
+ contentKind: "binary";
6481
+ contentBase64: string;
6482
+ byteSize: number;
6483
+ sha256: string;
6484
+ mimeType: string | null;
6485
+ } | {
6486
+ relativePath: string;
6487
+ content: string;
6488
+ }>>>;
5235
6489
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
5236
6490
  integrationKey: z.ZodString;
5237
6491
  field: z.ZodEnum<{
@@ -5283,6 +6537,46 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5283
6537
  createdAt: z.ZodString;
5284
6538
  updatedAt: z.ZodString;
5285
6539
  }, z.core.$strip>>;
6540
+ mediaRegistry: z.ZodObject<{
6541
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6542
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6543
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6544
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
6545
+ folderKey: z.ZodString;
6546
+ relativePath: z.ZodString;
6547
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6548
+ purpose: z.ZodString;
6549
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6550
+ assetCount: z.ZodNumber;
6551
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6552
+ image: "image";
6553
+ document: "document";
6554
+ link: "link";
6555
+ deck: "deck";
6556
+ }>>>;
6557
+ }, z.core.$strip>>>;
6558
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6559
+ assetId: z.ZodString;
6560
+ folderKey: z.ZodString;
6561
+ kind: z.ZodEnum<{
6562
+ image: "image";
6563
+ document: "document";
6564
+ link: "link";
6565
+ deck: "deck";
6566
+ }>;
6567
+ what: z.ZodString;
6568
+ purpose: z.ZodString;
6569
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
6570
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
6571
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6572
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6573
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6574
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6575
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6576
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6577
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6578
+ }, z.core.$strip>>>;
6579
+ }, z.core.$strip>;
5286
6580
  serverEnvironment: z.ZodString;
5287
6581
  }, z.core.$strip>>;
5288
6582
  export declare const integrationsUpsertTelegramBotOperation: OperationDefinition<"integrations.upsertTelegramBot", z.ZodObject<{
@@ -6992,11 +8286,11 @@ export declare const commerceCreateCartOperation: OperationDefinition<"commerce.
6992
8286
  conversationId: z.ZodNullable<z.ZodString>;
6993
8287
  dealId: z.ZodNullable<z.ZodString>;
6994
8288
  status: z.ZodEnum<{
8289
+ abandoned: "abandoned";
6995
8290
  suggested: "suggested";
6996
8291
  discussing: "discussing";
6997
8292
  confirmed: "confirmed";
6998
8293
  converted: "converted";
6999
- abandoned: "abandoned";
7000
8294
  }>;
7001
8295
  currency: z.ZodString;
7002
8296
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7036,9 +8330,9 @@ export declare const commerceCreateCartOperation: OperationDefinition<"commerce.
7036
8330
  conversationId: z.ZodNullable<z.ZodString>;
7037
8331
  activeCartId: z.ZodString;
7038
8332
  status: z.ZodEnum<{
8333
+ abandoned: "abandoned";
7039
8334
  draft: "draft";
7040
8335
  converted: "converted";
7041
- abandoned: "abandoned";
7042
8336
  quoted: "quoted";
7043
8337
  ready_for_payment: "ready_for_payment";
7044
8338
  }>;
@@ -7095,11 +8389,11 @@ export declare const commerceReplaceCartItemsOperation: OperationDefinition<"com
7095
8389
  conversationId: z.ZodNullable<z.ZodString>;
7096
8390
  dealId: z.ZodNullable<z.ZodString>;
7097
8391
  status: z.ZodEnum<{
8392
+ abandoned: "abandoned";
7098
8393
  suggested: "suggested";
7099
8394
  discussing: "discussing";
7100
8395
  confirmed: "confirmed";
7101
8396
  converted: "converted";
7102
- abandoned: "abandoned";
7103
8397
  }>;
7104
8398
  currency: z.ZodString;
7105
8399
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7159,11 +8453,11 @@ export declare const commerceQuoteDealOperation: OperationDefinition<"commerce.q
7159
8453
  conversationId: z.ZodNullable<z.ZodString>;
7160
8454
  dealId: z.ZodNullable<z.ZodString>;
7161
8455
  status: z.ZodEnum<{
8456
+ abandoned: "abandoned";
7162
8457
  suggested: "suggested";
7163
8458
  discussing: "discussing";
7164
8459
  confirmed: "confirmed";
7165
8460
  converted: "converted";
7166
- abandoned: "abandoned";
7167
8461
  }>;
7168
8462
  currency: z.ZodString;
7169
8463
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7203,9 +8497,9 @@ export declare const commerceQuoteDealOperation: OperationDefinition<"commerce.q
7203
8497
  conversationId: z.ZodNullable<z.ZodString>;
7204
8498
  activeCartId: z.ZodString;
7205
8499
  status: z.ZodEnum<{
8500
+ abandoned: "abandoned";
7206
8501
  draft: "draft";
7207
8502
  converted: "converted";
7208
- abandoned: "abandoned";
7209
8503
  quoted: "quoted";
7210
8504
  ready_for_payment: "ready_for_payment";
7211
8505
  }>;
@@ -7335,9 +8629,9 @@ export declare const commerceCreateOrderSnapshotOperation: OperationDefinition<"
7335
8629
  conversationId: z.ZodNullable<z.ZodString>;
7336
8630
  activeCartId: z.ZodString;
7337
8631
  status: z.ZodEnum<{
8632
+ abandoned: "abandoned";
7338
8633
  draft: "draft";
7339
8634
  converted: "converted";
7340
- abandoned: "abandoned";
7341
8635
  quoted: "quoted";
7342
8636
  ready_for_payment: "ready_for_payment";
7343
8637
  }>;
@@ -7378,11 +8672,11 @@ export declare const commerceCreateOrderSnapshotOperation: OperationDefinition<"
7378
8672
  conversationId: z.ZodNullable<z.ZodString>;
7379
8673
  dealId: z.ZodNullable<z.ZodString>;
7380
8674
  status: z.ZodEnum<{
8675
+ abandoned: "abandoned";
7381
8676
  suggested: "suggested";
7382
8677
  discussing: "discussing";
7383
8678
  confirmed: "confirmed";
7384
8679
  converted: "converted";
7385
- abandoned: "abandoned";
7386
8680
  }>;
7387
8681
  currency: z.ZodString;
7388
8682
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7469,11 +8763,11 @@ export declare const commerceGetContextOperation: OperationDefinition<"commerce.
7469
8763
  conversationId: z.ZodNullable<z.ZodString>;
7470
8764
  dealId: z.ZodNullable<z.ZodString>;
7471
8765
  status: z.ZodEnum<{
8766
+ abandoned: "abandoned";
7472
8767
  suggested: "suggested";
7473
8768
  discussing: "discussing";
7474
8769
  confirmed: "confirmed";
7475
8770
  converted: "converted";
7476
- abandoned: "abandoned";
7477
8771
  }>;
7478
8772
  currency: z.ZodString;
7479
8773
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -7513,9 +8807,9 @@ export declare const commerceGetContextOperation: OperationDefinition<"commerce.
7513
8807
  conversationId: z.ZodNullable<z.ZodString>;
7514
8808
  activeCartId: z.ZodString;
7515
8809
  status: z.ZodEnum<{
8810
+ abandoned: "abandoned";
7516
8811
  draft: "draft";
7517
8812
  converted: "converted";
7518
- abandoned: "abandoned";
7519
8813
  quoted: "quoted";
7520
8814
  ready_for_payment: "ready_for_payment";
7521
8815
  }>;
@@ -7647,8 +8941,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7647
8941
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7648
8942
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
7649
8943
  kind: z.ZodEnum<{
7650
- photo: "photo";
7651
8944
  document: "document";
8945
+ photo: "photo";
7652
8946
  audio: "audio";
7653
8947
  video: "video";
7654
8948
  other: "other";
@@ -7659,6 +8953,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7659
8953
  sourceRef: z.ZodString;
7660
8954
  metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7661
8955
  }, z.core.$strip>>>;
8956
+ mediaRegistryOverride: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
7662
8957
  deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
7663
8958
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7664
8959
  ownershipMode: z.ZodOptional<z.ZodEnum<{
@@ -7764,8 +9059,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7764
9059
  conversationId: z.ZodString;
7765
9060
  messageId: z.ZodString;
7766
9061
  kind: z.ZodEnum<{
7767
- photo: "photo";
7768
9062
  document: "document";
9063
+ photo: "photo";
7769
9064
  audio: "audio";
7770
9065
  video: "video";
7771
9066
  other: "other";
@@ -7798,6 +9093,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7798
9093
  "operator.note.added": "operator.note.added";
7799
9094
  "channel.outbound.skipped": "channel.outbound.skipped";
7800
9095
  "channel.outbound.sent": "channel.outbound.sent";
9096
+ "channel.outbound.failed": "channel.outbound.failed";
7801
9097
  "followup.classified": "followup.classified";
7802
9098
  "followup.task.scheduled": "followup.task.scheduled";
7803
9099
  "followup.task.completed": "followup.task.completed";
@@ -7922,6 +9218,45 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
7922
9218
  }>>;
7923
9219
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
7924
9220
  }, z.core.$strip>;
9221
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
9222
+ planId: z.ZodString;
9223
+ conversationId: z.ZodString;
9224
+ basedOnCustomerMessageId: z.ZodString;
9225
+ kind: z.ZodEnum<{
9226
+ draft_outbound_plan: "draft_outbound_plan";
9227
+ final_outbound_plan: "final_outbound_plan";
9228
+ }>;
9229
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9230
+ stepId: z.ZodString;
9231
+ sequence: z.ZodNumber;
9232
+ type: z.ZodLiteral<"send_text">;
9233
+ text: z.ZodString;
9234
+ }, z.core.$strip>, z.ZodObject<{
9235
+ stepId: z.ZodString;
9236
+ sequence: z.ZodNumber;
9237
+ type: z.ZodLiteral<"send_media">;
9238
+ assetId: z.ZodString;
9239
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9240
+ }, z.core.$strip>, z.ZodObject<{
9241
+ stepId: z.ZodString;
9242
+ sequence: z.ZodNumber;
9243
+ type: z.ZodLiteral<"send_media_group">;
9244
+ assetIds: z.ZodArray<z.ZodString>;
9245
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9246
+ }, z.core.$strip>, z.ZodObject<{
9247
+ stepId: z.ZodString;
9248
+ sequence: z.ZodNumber;
9249
+ type: z.ZodLiteral<"send_document">;
9250
+ assetId: z.ZodString;
9251
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9252
+ }, z.core.$strip>, z.ZodObject<{
9253
+ stepId: z.ZodString;
9254
+ sequence: z.ZodNumber;
9255
+ type: z.ZodLiteral<"send_link">;
9256
+ assetId: z.ZodString;
9257
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9258
+ }, z.core.$strip>], "type">>;
9259
+ }, z.core.$strip>>>;
7925
9260
  classification: z.ZodObject<{
7926
9261
  primaryIntent: z.ZodString;
7927
9262
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8038,6 +9373,34 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8038
9373
  heuristic: "heuristic";
8039
9374
  model: "model";
8040
9375
  }>;
9376
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9377
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9378
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9379
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
9380
+ requestKind: z.ZodEnum<{
9381
+ request_media_folders: "request_media_folders";
9382
+ request_media_folder_contents: "request_media_folder_contents";
9383
+ }>;
9384
+ status: z.ZodEnum<{
9385
+ rejected: "rejected";
9386
+ served: "served";
9387
+ }>;
9388
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9389
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9390
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
9391
+ image: "image";
9392
+ document: "document";
9393
+ link: "link";
9394
+ deck: "deck";
9395
+ }>>>;
9396
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9397
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9398
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
9399
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
9400
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9401
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9402
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9403
+ }, z.core.$strip>>>;
8041
9404
  }, z.core.$strip>>>;
8042
9405
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8043
9406
  stage: z.ZodEnum<{
@@ -8128,8 +9491,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8128
9491
  conversationId: z.ZodString;
8129
9492
  messageId: z.ZodString;
8130
9493
  kind: z.ZodEnum<{
8131
- photo: "photo";
8132
9494
  document: "document";
9495
+ photo: "photo";
8133
9496
  audio: "audio";
8134
9497
  video: "video";
8135
9498
  other: "other";
@@ -8164,8 +9527,8 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8164
9527
  conversationId: z.ZodString;
8165
9528
  messageId: z.ZodString;
8166
9529
  kind: z.ZodEnum<{
8167
- photo: "photo";
8168
9530
  document: "document";
9531
+ photo: "photo";
8169
9532
  audio: "audio";
8170
9533
  video: "video";
8171
9534
  other: "other";
@@ -8198,6 +9561,7 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8198
9561
  "operator.note.added": "operator.note.added";
8199
9562
  "channel.outbound.skipped": "channel.outbound.skipped";
8200
9563
  "channel.outbound.sent": "channel.outbound.sent";
9564
+ "channel.outbound.failed": "channel.outbound.failed";
8201
9565
  "followup.classified": "followup.classified";
8202
9566
  "followup.task.scheduled": "followup.task.scheduled";
8203
9567
  "followup.task.completed": "followup.task.completed";
@@ -8260,8 +9624,19 @@ export declare const conversationsProcessInboundEventOperation: OperationDefinit
8260
9624
  deliveryStatus: z.ZodEnum<{
8261
9625
  skipped: "skipped";
8262
9626
  simulated: "simulated";
9627
+ failed: "failed";
8263
9628
  sent: "sent";
8264
9629
  }>;
9630
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9631
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9632
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
9633
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
9634
+ send_text: "send_text";
9635
+ send_media: "send_media";
9636
+ send_media_group: "send_media_group";
9637
+ send_document: "send_document";
9638
+ send_link: "send_link";
9639
+ }>>>;
8265
9640
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8266
9641
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8267
9642
  }, z.core.$strip>>;
@@ -8352,8 +9727,8 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8352
9727
  conversationId: z.ZodString;
8353
9728
  messageId: z.ZodString;
8354
9729
  kind: z.ZodEnum<{
8355
- photo: "photo";
8356
9730
  document: "document";
9731
+ photo: "photo";
8357
9732
  audio: "audio";
8358
9733
  video: "video";
8359
9734
  other: "other";
@@ -8386,6 +9761,7 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8386
9761
  "operator.note.added": "operator.note.added";
8387
9762
  "channel.outbound.skipped": "channel.outbound.skipped";
8388
9763
  "channel.outbound.sent": "channel.outbound.sent";
9764
+ "channel.outbound.failed": "channel.outbound.failed";
8389
9765
  "followup.classified": "followup.classified";
8390
9766
  "followup.task.scheduled": "followup.task.scheduled";
8391
9767
  "followup.task.completed": "followup.task.completed";
@@ -8510,6 +9886,45 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8510
9886
  }>>;
8511
9887
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
8512
9888
  }, z.core.$strip>;
9889
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
9890
+ planId: z.ZodString;
9891
+ conversationId: z.ZodString;
9892
+ basedOnCustomerMessageId: z.ZodString;
9893
+ kind: z.ZodEnum<{
9894
+ draft_outbound_plan: "draft_outbound_plan";
9895
+ final_outbound_plan: "final_outbound_plan";
9896
+ }>;
9897
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9898
+ stepId: z.ZodString;
9899
+ sequence: z.ZodNumber;
9900
+ type: z.ZodLiteral<"send_text">;
9901
+ text: z.ZodString;
9902
+ }, z.core.$strip>, z.ZodObject<{
9903
+ stepId: z.ZodString;
9904
+ sequence: z.ZodNumber;
9905
+ type: z.ZodLiteral<"send_media">;
9906
+ assetId: z.ZodString;
9907
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9908
+ }, z.core.$strip>, z.ZodObject<{
9909
+ stepId: z.ZodString;
9910
+ sequence: z.ZodNumber;
9911
+ type: z.ZodLiteral<"send_media_group">;
9912
+ assetIds: z.ZodArray<z.ZodString>;
9913
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9914
+ }, z.core.$strip>, z.ZodObject<{
9915
+ stepId: z.ZodString;
9916
+ sequence: z.ZodNumber;
9917
+ type: z.ZodLiteral<"send_document">;
9918
+ assetId: z.ZodString;
9919
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9920
+ }, z.core.$strip>, z.ZodObject<{
9921
+ stepId: z.ZodString;
9922
+ sequence: z.ZodNumber;
9923
+ type: z.ZodLiteral<"send_link">;
9924
+ assetId: z.ZodString;
9925
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9926
+ }, z.core.$strip>], "type">>;
9927
+ }, z.core.$strip>>>;
8513
9928
  classification: z.ZodObject<{
8514
9929
  primaryIntent: z.ZodString;
8515
9930
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8626,6 +10041,34 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
8626
10041
  heuristic: "heuristic";
8627
10042
  model: "model";
8628
10043
  }>;
10044
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10045
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10046
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10047
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
10048
+ requestKind: z.ZodEnum<{
10049
+ request_media_folders: "request_media_folders";
10050
+ request_media_folder_contents: "request_media_folder_contents";
10051
+ }>;
10052
+ status: z.ZodEnum<{
10053
+ rejected: "rejected";
10054
+ served: "served";
10055
+ }>;
10056
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10057
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10058
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
10059
+ image: "image";
10060
+ document: "document";
10061
+ link: "link";
10062
+ deck: "deck";
10063
+ }>>>;
10064
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10065
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10066
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
10067
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10068
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10069
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10070
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10071
+ }, z.core.$strip>>>;
8629
10072
  }, z.core.$strip>>>;
8630
10073
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8631
10074
  stage: z.ZodEnum<{
@@ -8863,6 +10306,45 @@ export declare const runtimeListDecisionTracesOperation: OperationDefinition<"ru
8863
10306
  }>>;
8864
10307
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
8865
10308
  }, z.core.$strip>;
10309
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
10310
+ planId: z.ZodString;
10311
+ conversationId: z.ZodString;
10312
+ basedOnCustomerMessageId: z.ZodString;
10313
+ kind: z.ZodEnum<{
10314
+ draft_outbound_plan: "draft_outbound_plan";
10315
+ final_outbound_plan: "final_outbound_plan";
10316
+ }>;
10317
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10318
+ stepId: z.ZodString;
10319
+ sequence: z.ZodNumber;
10320
+ type: z.ZodLiteral<"send_text">;
10321
+ text: z.ZodString;
10322
+ }, z.core.$strip>, z.ZodObject<{
10323
+ stepId: z.ZodString;
10324
+ sequence: z.ZodNumber;
10325
+ type: z.ZodLiteral<"send_media">;
10326
+ assetId: z.ZodString;
10327
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10328
+ }, z.core.$strip>, z.ZodObject<{
10329
+ stepId: z.ZodString;
10330
+ sequence: z.ZodNumber;
10331
+ type: z.ZodLiteral<"send_media_group">;
10332
+ assetIds: z.ZodArray<z.ZodString>;
10333
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10334
+ }, z.core.$strip>, z.ZodObject<{
10335
+ stepId: z.ZodString;
10336
+ sequence: z.ZodNumber;
10337
+ type: z.ZodLiteral<"send_document">;
10338
+ assetId: z.ZodString;
10339
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10340
+ }, z.core.$strip>, z.ZodObject<{
10341
+ stepId: z.ZodString;
10342
+ sequence: z.ZodNumber;
10343
+ type: z.ZodLiteral<"send_link">;
10344
+ assetId: z.ZodString;
10345
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10346
+ }, z.core.$strip>], "type">>;
10347
+ }, z.core.$strip>>>;
8866
10348
  classification: z.ZodObject<{
8867
10349
  primaryIntent: z.ZodString;
8868
10350
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -8979,6 +10461,34 @@ export declare const runtimeListDecisionTracesOperation: OperationDefinition<"ru
8979
10461
  heuristic: "heuristic";
8980
10462
  model: "model";
8981
10463
  }>;
10464
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10465
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10466
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10467
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
10468
+ requestKind: z.ZodEnum<{
10469
+ request_media_folders: "request_media_folders";
10470
+ request_media_folder_contents: "request_media_folder_contents";
10471
+ }>;
10472
+ status: z.ZodEnum<{
10473
+ rejected: "rejected";
10474
+ served: "served";
10475
+ }>;
10476
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10477
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10478
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
10479
+ image: "image";
10480
+ document: "document";
10481
+ link: "link";
10482
+ deck: "deck";
10483
+ }>>>;
10484
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10485
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10486
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
10487
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10488
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10489
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10490
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10491
+ }, z.core.$strip>>>;
8982
10492
  }, z.core.$strip>>>;
8983
10493
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
8984
10494
  stage: z.ZodEnum<{
@@ -10079,8 +11589,8 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10079
11589
  conversationId: z.ZodString;
10080
11590
  messageId: z.ZodString;
10081
11591
  kind: z.ZodEnum<{
10082
- photo: "photo";
10083
11592
  document: "document";
11593
+ photo: "photo";
10084
11594
  audio: "audio";
10085
11595
  video: "video";
10086
11596
  other: "other";
@@ -10113,6 +11623,7 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10113
11623
  "operator.note.added": "operator.note.added";
10114
11624
  "channel.outbound.skipped": "channel.outbound.skipped";
10115
11625
  "channel.outbound.sent": "channel.outbound.sent";
11626
+ "channel.outbound.failed": "channel.outbound.failed";
10116
11627
  "followup.classified": "followup.classified";
10117
11628
  "followup.task.scheduled": "followup.task.scheduled";
10118
11629
  "followup.task.completed": "followup.task.completed";
@@ -10237,6 +11748,45 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10237
11748
  }>>;
10238
11749
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
10239
11750
  }, z.core.$strip>;
11751
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
11752
+ planId: z.ZodString;
11753
+ conversationId: z.ZodString;
11754
+ basedOnCustomerMessageId: z.ZodString;
11755
+ kind: z.ZodEnum<{
11756
+ draft_outbound_plan: "draft_outbound_plan";
11757
+ final_outbound_plan: "final_outbound_plan";
11758
+ }>;
11759
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
11760
+ stepId: z.ZodString;
11761
+ sequence: z.ZodNumber;
11762
+ type: z.ZodLiteral<"send_text">;
11763
+ text: z.ZodString;
11764
+ }, z.core.$strip>, z.ZodObject<{
11765
+ stepId: z.ZodString;
11766
+ sequence: z.ZodNumber;
11767
+ type: z.ZodLiteral<"send_media">;
11768
+ assetId: z.ZodString;
11769
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11770
+ }, z.core.$strip>, z.ZodObject<{
11771
+ stepId: z.ZodString;
11772
+ sequence: z.ZodNumber;
11773
+ type: z.ZodLiteral<"send_media_group">;
11774
+ assetIds: z.ZodArray<z.ZodString>;
11775
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11776
+ }, z.core.$strip>, z.ZodObject<{
11777
+ stepId: z.ZodString;
11778
+ sequence: z.ZodNumber;
11779
+ type: z.ZodLiteral<"send_document">;
11780
+ assetId: z.ZodString;
11781
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11782
+ }, z.core.$strip>, z.ZodObject<{
11783
+ stepId: z.ZodString;
11784
+ sequence: z.ZodNumber;
11785
+ type: z.ZodLiteral<"send_link">;
11786
+ assetId: z.ZodString;
11787
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11788
+ }, z.core.$strip>], "type">>;
11789
+ }, z.core.$strip>>>;
10240
11790
  classification: z.ZodObject<{
10241
11791
  primaryIntent: z.ZodString;
10242
11792
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -10353,6 +11903,34 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10353
11903
  heuristic: "heuristic";
10354
11904
  model: "model";
10355
11905
  }>;
11906
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11907
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11908
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11909
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
11910
+ requestKind: z.ZodEnum<{
11911
+ request_media_folders: "request_media_folders";
11912
+ request_media_folder_contents: "request_media_folder_contents";
11913
+ }>;
11914
+ status: z.ZodEnum<{
11915
+ rejected: "rejected";
11916
+ served: "served";
11917
+ }>;
11918
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11919
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11920
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
11921
+ image: "image";
11922
+ document: "document";
11923
+ link: "link";
11924
+ deck: "deck";
11925
+ }>>>;
11926
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11927
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11928
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
11929
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
11930
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11931
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11932
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11933
+ }, z.core.$strip>>>;
10356
11934
  }, z.core.$strip>>>;
10357
11935
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
10358
11936
  stage: z.ZodEnum<{
@@ -10625,11 +12203,11 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10625
12203
  conversationId: z.ZodNullable<z.ZodString>;
10626
12204
  dealId: z.ZodNullable<z.ZodString>;
10627
12205
  status: z.ZodEnum<{
12206
+ abandoned: "abandoned";
10628
12207
  suggested: "suggested";
10629
12208
  discussing: "discussing";
10630
12209
  confirmed: "confirmed";
10631
12210
  converted: "converted";
10632
- abandoned: "abandoned";
10633
12211
  }>;
10634
12212
  currency: z.ZodString;
10635
12213
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -10669,9 +12247,9 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10669
12247
  conversationId: z.ZodNullable<z.ZodString>;
10670
12248
  activeCartId: z.ZodString;
10671
12249
  status: z.ZodEnum<{
12250
+ abandoned: "abandoned";
10672
12251
  draft: "draft";
10673
12252
  converted: "converted";
10674
- abandoned: "abandoned";
10675
12253
  quoted: "quoted";
10676
12254
  ready_for_payment: "ready_for_payment";
10677
12255
  }>;
@@ -10874,6 +12452,94 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
10874
12452
  human: "human";
10875
12453
  }>>;
10876
12454
  }, z.core.$strip>>>;
12455
+ outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
12456
+ traceId: z.ZodString;
12457
+ planId: z.ZodString;
12458
+ kind: z.ZodEnum<{
12459
+ draft_outbound_plan: "draft_outbound_plan";
12460
+ final_outbound_plan: "final_outbound_plan";
12461
+ }>;
12462
+ status: z.ZodEnum<{
12463
+ failed: "failed";
12464
+ draft: "draft";
12465
+ superseded: "superseded";
12466
+ sent: "sent";
12467
+ partial: "partial";
12468
+ }>;
12469
+ basedOnCustomerMessageId: z.ZodString;
12470
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12471
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12472
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12473
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12474
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12475
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
12476
+ requestKind: z.ZodEnum<{
12477
+ request_media_folders: "request_media_folders";
12478
+ request_media_folder_contents: "request_media_folder_contents";
12479
+ }>;
12480
+ status: z.ZodEnum<{
12481
+ rejected: "rejected";
12482
+ served: "served";
12483
+ }>;
12484
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12485
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12486
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
12487
+ image: "image";
12488
+ document: "document";
12489
+ link: "link";
12490
+ deck: "deck";
12491
+ }>>>;
12492
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12493
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12494
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
12495
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
12496
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12497
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12498
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12499
+ }, z.core.$strip>>>;
12500
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
12501
+ assetId: z.ZodString;
12502
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12503
+ kind: z.ZodEnum<{
12504
+ image: "image";
12505
+ document: "document";
12506
+ link: "link";
12507
+ deck: "deck";
12508
+ }>;
12509
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12510
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12511
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12512
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12513
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12514
+ }, z.core.$strip>>>;
12515
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
12516
+ stepId: z.ZodString;
12517
+ sequence: z.ZodNumber;
12518
+ stepType: z.ZodEnum<{
12519
+ send_text: "send_text";
12520
+ send_media: "send_media";
12521
+ send_media_group: "send_media_group";
12522
+ send_document: "send_document";
12523
+ send_link: "send_link";
12524
+ }>;
12525
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12526
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12527
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
12528
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
12529
+ skipped: "skipped";
12530
+ simulated: "simulated";
12531
+ failed: "failed";
12532
+ sent: "sent";
12533
+ }>>>;
12534
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12535
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12536
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12537
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12538
+ }, z.core.$strip>>>;
12539
+ createdAt: z.ZodString;
12540
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12541
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12542
+ }, z.core.$strip>>>;
10877
12543
  }, z.core.$strip>>;
10878
12544
  export declare const opsGetReadinessOperation: OperationDefinition<"ops.getReadiness", z.ZodObject<{
10879
12545
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -12003,6 +13669,7 @@ export declare const opsSetOwnershipModeOperation: OperationDefinition<"ops.setO
12003
13669
  "operator.note.added": "operator.note.added";
12004
13670
  "channel.outbound.skipped": "channel.outbound.skipped";
12005
13671
  "channel.outbound.sent": "channel.outbound.sent";
13672
+ "channel.outbound.failed": "channel.outbound.failed";
12006
13673
  "followup.classified": "followup.classified";
12007
13674
  "followup.task.scheduled": "followup.task.scheduled";
12008
13675
  "followup.task.completed": "followup.task.completed";
@@ -12181,6 +13848,7 @@ export declare const opsStartHandoffOperation: OperationDefinition<"ops.startHan
12181
13848
  "operator.note.added": "operator.note.added";
12182
13849
  "channel.outbound.skipped": "channel.outbound.skipped";
12183
13850
  "channel.outbound.sent": "channel.outbound.sent";
13851
+ "channel.outbound.failed": "channel.outbound.failed";
12184
13852
  "followup.classified": "followup.classified";
12185
13853
  "followup.task.scheduled": "followup.task.scheduled";
12186
13854
  "followup.task.completed": "followup.task.completed";
@@ -12422,8 +14090,8 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12422
14090
  conversationId: z.ZodString;
12423
14091
  messageId: z.ZodString;
12424
14092
  kind: z.ZodEnum<{
12425
- photo: "photo";
12426
14093
  document: "document";
14094
+ photo: "photo";
12427
14095
  audio: "audio";
12428
14096
  video: "video";
12429
14097
  other: "other";
@@ -12456,6 +14124,7 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12456
14124
  "operator.note.added": "operator.note.added";
12457
14125
  "channel.outbound.skipped": "channel.outbound.skipped";
12458
14126
  "channel.outbound.sent": "channel.outbound.sent";
14127
+ "channel.outbound.failed": "channel.outbound.failed";
12459
14128
  "followup.classified": "followup.classified";
12460
14129
  "followup.task.scheduled": "followup.task.scheduled";
12461
14130
  "followup.task.completed": "followup.task.completed";
@@ -12580,6 +14249,45 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12580
14249
  }>>;
12581
14250
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
12582
14251
  }, z.core.$strip>;
14252
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
14253
+ planId: z.ZodString;
14254
+ conversationId: z.ZodString;
14255
+ basedOnCustomerMessageId: z.ZodString;
14256
+ kind: z.ZodEnum<{
14257
+ draft_outbound_plan: "draft_outbound_plan";
14258
+ final_outbound_plan: "final_outbound_plan";
14259
+ }>;
14260
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
14261
+ stepId: z.ZodString;
14262
+ sequence: z.ZodNumber;
14263
+ type: z.ZodLiteral<"send_text">;
14264
+ text: z.ZodString;
14265
+ }, z.core.$strip>, z.ZodObject<{
14266
+ stepId: z.ZodString;
14267
+ sequence: z.ZodNumber;
14268
+ type: z.ZodLiteral<"send_media">;
14269
+ assetId: z.ZodString;
14270
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14271
+ }, z.core.$strip>, z.ZodObject<{
14272
+ stepId: z.ZodString;
14273
+ sequence: z.ZodNumber;
14274
+ type: z.ZodLiteral<"send_media_group">;
14275
+ assetIds: z.ZodArray<z.ZodString>;
14276
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14277
+ }, z.core.$strip>, z.ZodObject<{
14278
+ stepId: z.ZodString;
14279
+ sequence: z.ZodNumber;
14280
+ type: z.ZodLiteral<"send_document">;
14281
+ assetId: z.ZodString;
14282
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14283
+ }, z.core.$strip>, z.ZodObject<{
14284
+ stepId: z.ZodString;
14285
+ sequence: z.ZodNumber;
14286
+ type: z.ZodLiteral<"send_link">;
14287
+ assetId: z.ZodString;
14288
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14289
+ }, z.core.$strip>], "type">>;
14290
+ }, z.core.$strip>>>;
12583
14291
  classification: z.ZodObject<{
12584
14292
  primaryIntent: z.ZodString;
12585
14293
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -12696,6 +14404,34 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12696
14404
  heuristic: "heuristic";
12697
14405
  model: "model";
12698
14406
  }>;
14407
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14408
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14409
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14410
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
14411
+ requestKind: z.ZodEnum<{
14412
+ request_media_folders: "request_media_folders";
14413
+ request_media_folder_contents: "request_media_folder_contents";
14414
+ }>;
14415
+ status: z.ZodEnum<{
14416
+ rejected: "rejected";
14417
+ served: "served";
14418
+ }>;
14419
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14420
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14421
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
14422
+ image: "image";
14423
+ document: "document";
14424
+ link: "link";
14425
+ deck: "deck";
14426
+ }>>>;
14427
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14428
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14429
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
14430
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
14431
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14432
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14433
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14434
+ }, z.core.$strip>>>;
12699
14435
  }, z.core.$strip>>>;
12700
14436
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
12701
14437
  stage: z.ZodEnum<{
@@ -12785,6 +14521,7 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12785
14521
  "operator.note.added": "operator.note.added";
12786
14522
  "channel.outbound.skipped": "channel.outbound.skipped";
12787
14523
  "channel.outbound.sent": "channel.outbound.sent";
14524
+ "channel.outbound.failed": "channel.outbound.failed";
12788
14525
  "followup.classified": "followup.classified";
12789
14526
  "followup.task.scheduled": "followup.task.scheduled";
12790
14527
  "followup.task.completed": "followup.task.completed";
@@ -12847,8 +14584,19 @@ export declare const opsSendOperatorMessageOperation: OperationDefinition<"ops.s
12847
14584
  deliveryStatus: z.ZodEnum<{
12848
14585
  skipped: "skipped";
12849
14586
  simulated: "simulated";
14587
+ failed: "failed";
12850
14588
  sent: "sent";
12851
14589
  }>;
14590
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14591
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14592
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14593
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
14594
+ send_text: "send_text";
14595
+ send_media: "send_media";
14596
+ send_media_group: "send_media_group";
14597
+ send_document: "send_document";
14598
+ send_link: "send_link";
14599
+ }>>>;
12852
14600
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12853
14601
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12854
14602
  }, z.core.$strip>>;
@@ -13760,26 +15508,32 @@ export declare const operationDefinitions: {
13760
15508
  email: z.ZodString;
13761
15509
  }, z.core.$strip>>;
13762
15510
  readonly "auth.startCliLoginIntent": OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
13763
- email: z.ZodString;
15511
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15512
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13764
15513
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13765
15514
  }, z.core.$strip>, z.ZodObject<{
13766
15515
  intent: z.ZodObject<{
13767
15516
  intentId: z.ZodString;
13768
- email: z.ZodString;
13769
- userCode: z.ZodString;
15517
+ email: z.ZodNullable<z.ZodString>;
15518
+ browserToken: z.ZodString;
13770
15519
  environment: z.ZodString;
13771
15520
  status: z.ZodEnum<{
13772
15521
  pending: "pending";
13773
15522
  completed: "completed";
13774
15523
  expired: "expired";
15524
+ abandoned: "abandoned";
13775
15525
  }>;
13776
15526
  deliveryMode: z.ZodEnum<{
13777
15527
  magic_link: "magic_link";
15528
+ browser_flow: "browser_flow";
15529
+ browser_session: "browser_session";
13778
15530
  synthetic_local: "synthetic_local";
13779
15531
  }>;
13780
15532
  requestedAt: z.ZodString;
13781
15533
  expiresAt: z.ZodString;
13782
15534
  completedAt: z.ZodNullable<z.ZodString>;
15535
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15536
+ linkSentAt: z.ZodNullable<z.ZodString>;
13783
15537
  nextPath: z.ZodNullable<z.ZodString>;
13784
15538
  sessionToken: z.ZodNullable<z.ZodString>;
13785
15539
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -13822,40 +15576,142 @@ export declare const operationDefinitions: {
13822
15576
  source: z.ZodEnum<{
13823
15577
  magic_link: "magic_link";
13824
15578
  scenario_token: "scenario_token";
15579
+ cli_login: "cli_login";
15580
+ deploy_token: "deploy_token";
13825
15581
  }>;
13826
15582
  issuedAt: z.ZodString;
13827
15583
  expiresAt: z.ZodString;
15584
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15585
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15586
+ profile_read: "profile_read";
15587
+ profile_upload: "profile_upload";
15588
+ profile_activate: "profile_activate";
15589
+ integrations_apply: "integrations_apply";
15590
+ media_apply: "media_apply";
15591
+ team_access_manage: "team_access_manage";
15592
+ }>>>;
13828
15593
  }, z.core.$strip>>;
13829
15594
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
13830
15595
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13831
15596
  }, z.core.$strip>>;
13832
15597
  }, z.core.$strip>;
13833
- userCode: z.ZodString;
13834
- verificationUri: z.ZodString;
13835
- verificationUriComplete: z.ZodString;
15598
+ authorizationUrl: z.ZodString;
13836
15599
  pollAfterSeconds: z.ZodNumber;
13837
15600
  instructions: z.ZodArray<z.ZodString>;
13838
15601
  }, z.core.$strip>>;
13839
15602
  readonly "auth.getCliLoginIntent": OperationDefinition<"auth.getCliLoginIntent", z.ZodObject<{
13840
15603
  intentId: z.ZodString;
15604
+ markActive: z.ZodOptional<z.ZodBoolean>;
13841
15605
  }, z.core.$strip>, z.ZodObject<{
13842
15606
  intent: z.ZodObject<{
13843
15607
  intentId: z.ZodString;
13844
- email: z.ZodString;
13845
- userCode: z.ZodString;
15608
+ email: z.ZodNullable<z.ZodString>;
15609
+ browserToken: z.ZodString;
15610
+ environment: z.ZodString;
15611
+ status: z.ZodEnum<{
15612
+ pending: "pending";
15613
+ completed: "completed";
15614
+ expired: "expired";
15615
+ abandoned: "abandoned";
15616
+ }>;
15617
+ deliveryMode: z.ZodEnum<{
15618
+ magic_link: "magic_link";
15619
+ browser_flow: "browser_flow";
15620
+ browser_session: "browser_session";
15621
+ synthetic_local: "synthetic_local";
15622
+ }>;
15623
+ requestedAt: z.ZodString;
15624
+ expiresAt: z.ZodString;
15625
+ completedAt: z.ZodNullable<z.ZodString>;
15626
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15627
+ linkSentAt: z.ZodNullable<z.ZodString>;
15628
+ nextPath: z.ZodNullable<z.ZodString>;
15629
+ sessionToken: z.ZodNullable<z.ZodString>;
15630
+ accessContext: z.ZodNullable<z.ZodObject<{
15631
+ authenticated: z.ZodBoolean;
15632
+ environment: z.ZodString;
15633
+ operator: z.ZodNullable<z.ZodObject<{
15634
+ operatorId: z.ZodString;
15635
+ email: z.ZodString;
15636
+ displayName: z.ZodNullable<z.ZodString>;
15637
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15638
+ status: z.ZodEnum<{
15639
+ active: "active";
15640
+ disabled: "disabled";
15641
+ }>;
15642
+ createdAt: z.ZodString;
15643
+ updatedAt: z.ZodString;
15644
+ }, z.core.$strip>>;
15645
+ memberships: z.ZodArray<z.ZodObject<{
15646
+ membershipId: z.ZodString;
15647
+ operatorId: z.ZodString;
15648
+ workspaceId: z.ZodString;
15649
+ workspaceSlug: z.ZodString;
15650
+ workspaceName: z.ZodString;
15651
+ role: z.ZodEnum<{
15652
+ workspace_admin: "workspace_admin";
15653
+ operator: "operator";
15654
+ observer: "observer";
15655
+ }>;
15656
+ status: z.ZodEnum<{
15657
+ active: "active";
15658
+ revoked: "revoked";
15659
+ }>;
15660
+ createdAt: z.ZodString;
15661
+ updatedAt: z.ZodString;
15662
+ }, z.core.$strip>>;
15663
+ isSystemAdmin: z.ZodDefault<z.ZodBoolean>;
15664
+ session: z.ZodNullable<z.ZodObject<{
15665
+ sessionId: z.ZodString;
15666
+ sessionToken: z.ZodOptional<z.ZodString>;
15667
+ source: z.ZodEnum<{
15668
+ magic_link: "magic_link";
15669
+ scenario_token: "scenario_token";
15670
+ cli_login: "cli_login";
15671
+ deploy_token: "deploy_token";
15672
+ }>;
15673
+ issuedAt: z.ZodString;
15674
+ expiresAt: z.ZodString;
15675
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15676
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15677
+ profile_read: "profile_read";
15678
+ profile_upload: "profile_upload";
15679
+ profile_activate: "profile_activate";
15680
+ integrations_apply: "integrations_apply";
15681
+ media_apply: "media_apply";
15682
+ team_access_manage: "team_access_manage";
15683
+ }>>>;
15684
+ }, z.core.$strip>>;
15685
+ currentWorkspaceId: z.ZodNullable<z.ZodString>;
15686
+ currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15687
+ }, z.core.$strip>>;
15688
+ }, z.core.$strip>;
15689
+ }, z.core.$strip>>;
15690
+ readonly "auth.abandonCliLoginIntent": OperationDefinition<"auth.abandonCliLoginIntent", z.ZodObject<{
15691
+ intentId: z.ZodString;
15692
+ }, z.core.$strip>, z.ZodObject<{
15693
+ intent: z.ZodObject<{
15694
+ intentId: z.ZodString;
15695
+ email: z.ZodNullable<z.ZodString>;
15696
+ browserToken: z.ZodString;
13846
15697
  environment: z.ZodString;
13847
15698
  status: z.ZodEnum<{
13848
15699
  pending: "pending";
13849
15700
  completed: "completed";
13850
15701
  expired: "expired";
15702
+ abandoned: "abandoned";
13851
15703
  }>;
13852
15704
  deliveryMode: z.ZodEnum<{
13853
15705
  magic_link: "magic_link";
15706
+ browser_flow: "browser_flow";
15707
+ browser_session: "browser_session";
13854
15708
  synthetic_local: "synthetic_local";
13855
15709
  }>;
13856
15710
  requestedAt: z.ZodString;
13857
15711
  expiresAt: z.ZodString;
13858
15712
  completedAt: z.ZodNullable<z.ZodString>;
15713
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15714
+ linkSentAt: z.ZodNullable<z.ZodString>;
13859
15715
  nextPath: z.ZodNullable<z.ZodString>;
13860
15716
  sessionToken: z.ZodNullable<z.ZodString>;
13861
15717
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -13898,53 +15754,97 @@ export declare const operationDefinitions: {
13898
15754
  source: z.ZodEnum<{
13899
15755
  magic_link: "magic_link";
13900
15756
  scenario_token: "scenario_token";
15757
+ cli_login: "cli_login";
15758
+ deploy_token: "deploy_token";
13901
15759
  }>;
13902
15760
  issuedAt: z.ZodString;
13903
15761
  expiresAt: z.ZodString;
15762
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15763
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15764
+ profile_read: "profile_read";
15765
+ profile_upload: "profile_upload";
15766
+ profile_activate: "profile_activate";
15767
+ integrations_apply: "integrations_apply";
15768
+ media_apply: "media_apply";
15769
+ team_access_manage: "team_access_manage";
15770
+ }>>>;
13904
15771
  }, z.core.$strip>>;
13905
15772
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
13906
15773
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13907
15774
  }, z.core.$strip>>;
13908
15775
  }, z.core.$strip>;
13909
15776
  }, z.core.$strip>>;
13910
- readonly "auth.getCliDeviceLoginStatus": OperationDefinition<"auth.getCliDeviceLoginStatus", z.ZodObject<{
13911
- userCode: z.ZodString;
15777
+ readonly "auth.getCliBrowserLoginState": OperationDefinition<"auth.getCliBrowserLoginState", z.ZodObject<{
15778
+ token: z.ZodString;
13912
15779
  }, z.core.$strip>, z.ZodObject<{
13913
15780
  intent: z.ZodNullable<z.ZodObject<{
13914
- userCode: z.ZodString;
13915
- emailHint: z.ZodString;
15781
+ token: z.ZodString;
15782
+ emailHint: z.ZodNullable<z.ZodString>;
13916
15783
  status: z.ZodEnum<{
13917
15784
  pending: "pending";
13918
15785
  completed: "completed";
13919
15786
  expired: "expired";
15787
+ abandoned: "abandoned";
13920
15788
  }>;
13921
15789
  requestedAt: z.ZodString;
13922
15790
  expiresAt: z.ZodString;
13923
15791
  completedAt: z.ZodNullable<z.ZodString>;
15792
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15793
+ linkSentAt: z.ZodNullable<z.ZodString>;
13924
15794
  nextPath: z.ZodNullable<z.ZodString>;
13925
15795
  }, z.core.$strip>>;
13926
15796
  }, z.core.$strip>>;
13927
- readonly "auth.completeCliDeviceLogin": OperationDefinition<"auth.completeCliDeviceLogin", z.ZodObject<{
13928
- userCode: z.ZodString;
15797
+ readonly "auth.requestCliLoginMagicLink": OperationDefinition<"auth.requestCliLoginMagicLink", z.ZodObject<{
15798
+ token: z.ZodString;
15799
+ email: z.ZodString;
15800
+ }, z.core.$strip>, z.ZodObject<{
15801
+ intent: z.ZodObject<{
15802
+ token: z.ZodString;
15803
+ emailHint: z.ZodNullable<z.ZodString>;
15804
+ status: z.ZodEnum<{
15805
+ pending: "pending";
15806
+ completed: "completed";
15807
+ expired: "expired";
15808
+ abandoned: "abandoned";
15809
+ }>;
15810
+ requestedAt: z.ZodString;
15811
+ expiresAt: z.ZodString;
15812
+ completedAt: z.ZodNullable<z.ZodString>;
15813
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15814
+ linkSentAt: z.ZodNullable<z.ZodString>;
15815
+ nextPath: z.ZodNullable<z.ZodString>;
15816
+ }, z.core.$strip>;
15817
+ accepted: z.ZodBoolean;
15818
+ email: z.ZodString;
15819
+ alreadySent: z.ZodBoolean;
15820
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15821
+ }, z.core.$strip>>;
15822
+ readonly "auth.completeCliBrowserLogin": OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
15823
+ token: z.ZodString;
13929
15824
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13930
15825
  }, z.core.$strip>, z.ZodObject<{
13931
15826
  intent: z.ZodObject<{
13932
15827
  intentId: z.ZodString;
13933
- email: z.ZodString;
13934
- userCode: z.ZodString;
15828
+ email: z.ZodNullable<z.ZodString>;
15829
+ browserToken: z.ZodString;
13935
15830
  environment: z.ZodString;
13936
15831
  status: z.ZodEnum<{
13937
15832
  pending: "pending";
13938
15833
  completed: "completed";
13939
15834
  expired: "expired";
15835
+ abandoned: "abandoned";
13940
15836
  }>;
13941
15837
  deliveryMode: z.ZodEnum<{
13942
15838
  magic_link: "magic_link";
15839
+ browser_flow: "browser_flow";
15840
+ browser_session: "browser_session";
13943
15841
  synthetic_local: "synthetic_local";
13944
15842
  }>;
13945
15843
  requestedAt: z.ZodString;
13946
15844
  expiresAt: z.ZodString;
13947
15845
  completedAt: z.ZodNullable<z.ZodString>;
15846
+ lastSeenAt: z.ZodNullable<z.ZodString>;
15847
+ linkSentAt: z.ZodNullable<z.ZodString>;
13948
15848
  nextPath: z.ZodNullable<z.ZodString>;
13949
15849
  sessionToken: z.ZodNullable<z.ZodString>;
13950
15850
  accessContext: z.ZodNullable<z.ZodObject<{
@@ -13987,9 +15887,20 @@ export declare const operationDefinitions: {
13987
15887
  source: z.ZodEnum<{
13988
15888
  magic_link: "magic_link";
13989
15889
  scenario_token: "scenario_token";
15890
+ cli_login: "cli_login";
15891
+ deploy_token: "deploy_token";
13990
15892
  }>;
13991
15893
  issuedAt: z.ZodString;
13992
15894
  expiresAt: z.ZodString;
15895
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15896
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15897
+ profile_read: "profile_read";
15898
+ profile_upload: "profile_upload";
15899
+ profile_activate: "profile_activate";
15900
+ integrations_apply: "integrations_apply";
15901
+ media_apply: "media_apply";
15902
+ team_access_manage: "team_access_manage";
15903
+ }>>>;
13993
15904
  }, z.core.$strip>>;
13994
15905
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
13995
15906
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14085,14 +15996,144 @@ export declare const operationDefinitions: {
14085
15996
  source: z.ZodEnum<{
14086
15997
  magic_link: "magic_link";
14087
15998
  scenario_token: "scenario_token";
15999
+ cli_login: "cli_login";
16000
+ deploy_token: "deploy_token";
14088
16001
  }>;
14089
16002
  issuedAt: z.ZodString;
14090
16003
  expiresAt: z.ZodString;
16004
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16005
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
16006
+ profile_read: "profile_read";
16007
+ profile_upload: "profile_upload";
16008
+ profile_activate: "profile_activate";
16009
+ integrations_apply: "integrations_apply";
16010
+ media_apply: "media_apply";
16011
+ team_access_manage: "team_access_manage";
16012
+ }>>>;
14091
16013
  }, z.core.$strip>>;
14092
16014
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
14093
16015
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14094
16016
  }, z.core.$strip>;
14095
16017
  }, z.core.$strip>>;
16018
+ readonly "auth.listSessions": OperationDefinition<"auth.listSessions", z.ZodObject<{
16019
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16020
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16021
+ magic_link: "magic_link";
16022
+ scenario_token: "scenario_token";
16023
+ cli_login: "cli_login";
16024
+ deploy_token: "deploy_token";
16025
+ }>>>;
16026
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16027
+ includeRevoked: z.ZodOptional<z.ZodBoolean>;
16028
+ }, z.core.$strip>, z.ZodObject<{
16029
+ sessions: z.ZodArray<z.ZodObject<{
16030
+ sessionId: z.ZodString;
16031
+ operatorId: z.ZodString;
16032
+ operatorEmail: z.ZodNullable<z.ZodString>;
16033
+ source: z.ZodEnum<{
16034
+ magic_link: "magic_link";
16035
+ scenario_token: "scenario_token";
16036
+ cli_login: "cli_login";
16037
+ deploy_token: "deploy_token";
16038
+ }>;
16039
+ environment: z.ZodString;
16040
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
16041
+ allowedActions: z.ZodArray<z.ZodEnum<{
16042
+ profile_read: "profile_read";
16043
+ profile_upload: "profile_upload";
16044
+ profile_activate: "profile_activate";
16045
+ integrations_apply: "integrations_apply";
16046
+ media_apply: "media_apply";
16047
+ team_access_manage: "team_access_manage";
16048
+ }>>;
16049
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
16050
+ issuedAt: z.ZodString;
16051
+ expiresAt: z.ZodString;
16052
+ lastSeenAt: z.ZodNullable<z.ZodString>;
16053
+ revokedAt: z.ZodNullable<z.ZodString>;
16054
+ revokeReason: z.ZodNullable<z.ZodString>;
16055
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
16056
+ }, z.core.$strip>>;
16057
+ }, z.core.$strip>>;
16058
+ readonly "auth.revokeSession": OperationDefinition<"auth.revokeSession", z.ZodObject<{
16059
+ currentSessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16060
+ sessionId: z.ZodString;
16061
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16062
+ }, z.core.$strip>, z.ZodObject<{
16063
+ revoked: z.ZodBoolean;
16064
+ session: z.ZodNullable<z.ZodObject<{
16065
+ sessionId: z.ZodString;
16066
+ operatorId: z.ZodString;
16067
+ operatorEmail: z.ZodNullable<z.ZodString>;
16068
+ source: z.ZodEnum<{
16069
+ magic_link: "magic_link";
16070
+ scenario_token: "scenario_token";
16071
+ cli_login: "cli_login";
16072
+ deploy_token: "deploy_token";
16073
+ }>;
16074
+ environment: z.ZodString;
16075
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
16076
+ allowedActions: z.ZodArray<z.ZodEnum<{
16077
+ profile_read: "profile_read";
16078
+ profile_upload: "profile_upload";
16079
+ profile_activate: "profile_activate";
16080
+ integrations_apply: "integrations_apply";
16081
+ media_apply: "media_apply";
16082
+ team_access_manage: "team_access_manage";
16083
+ }>>;
16084
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
16085
+ issuedAt: z.ZodString;
16086
+ expiresAt: z.ZodString;
16087
+ lastSeenAt: z.ZodNullable<z.ZodString>;
16088
+ revokedAt: z.ZodNullable<z.ZodString>;
16089
+ revokeReason: z.ZodNullable<z.ZodString>;
16090
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
16091
+ }, z.core.$strip>>;
16092
+ }, z.core.$strip>>;
16093
+ readonly "auth.issueDeployToken": OperationDefinition<"auth.issueDeployToken", z.ZodObject<{
16094
+ sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16095
+ businessProfileSlug: z.ZodString;
16096
+ targetEnvironment: z.ZodString;
16097
+ allowedActions: z.ZodArray<z.ZodEnum<{
16098
+ profile_read: "profile_read";
16099
+ profile_upload: "profile_upload";
16100
+ profile_activate: "profile_activate";
16101
+ integrations_apply: "integrations_apply";
16102
+ media_apply: "media_apply";
16103
+ team_access_manage: "team_access_manage";
16104
+ }>>;
16105
+ ttlMinutes: z.ZodNumber;
16106
+ }, z.core.$strip>, z.ZodObject<{
16107
+ token: z.ZodString;
16108
+ session: z.ZodObject<{
16109
+ sessionId: z.ZodString;
16110
+ operatorId: z.ZodString;
16111
+ operatorEmail: z.ZodNullable<z.ZodString>;
16112
+ source: z.ZodEnum<{
16113
+ magic_link: "magic_link";
16114
+ scenario_token: "scenario_token";
16115
+ cli_login: "cli_login";
16116
+ deploy_token: "deploy_token";
16117
+ }>;
16118
+ environment: z.ZodString;
16119
+ businessProfileSlug: z.ZodNullable<z.ZodString>;
16120
+ allowedActions: z.ZodArray<z.ZodEnum<{
16121
+ profile_read: "profile_read";
16122
+ profile_upload: "profile_upload";
16123
+ profile_activate: "profile_activate";
16124
+ integrations_apply: "integrations_apply";
16125
+ media_apply: "media_apply";
16126
+ team_access_manage: "team_access_manage";
16127
+ }>>;
16128
+ issuedByOperatorId: z.ZodNullable<z.ZodString>;
16129
+ issuedAt: z.ZodString;
16130
+ expiresAt: z.ZodString;
16131
+ lastSeenAt: z.ZodNullable<z.ZodString>;
16132
+ revokedAt: z.ZodNullable<z.ZodString>;
16133
+ revokeReason: z.ZodNullable<z.ZodString>;
16134
+ replacedBySessionId: z.ZodNullable<z.ZodString>;
16135
+ }, z.core.$strip>;
16136
+ }, z.core.$strip>>;
14096
16137
  readonly "auth.listWorkspaceMembers": OperationDefinition<"auth.listWorkspaceMembers", z.ZodObject<{
14097
16138
  workspaceSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14098
16139
  }, z.core.$strip>, z.ZodObject<{
@@ -14131,6 +16172,49 @@ export declare const operationDefinitions: {
14131
16172
  }, z.core.$strip>;
14132
16173
  }, z.core.$strip>>;
14133
16174
  }, z.core.$strip>>;
16175
+ readonly "auth.upsertWorkspaceMember": OperationDefinition<"auth.upsertWorkspaceMember", z.ZodObject<{
16176
+ workspaceSlug: z.ZodString;
16177
+ email: z.ZodString;
16178
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16179
+ role: z.ZodEnum<{
16180
+ workspace_admin: "workspace_admin";
16181
+ operator: "operator";
16182
+ observer: "observer";
16183
+ }>;
16184
+ }, z.core.$strip>, z.ZodObject<{
16185
+ member: z.ZodObject<{
16186
+ operator: z.ZodObject<{
16187
+ operatorId: z.ZodString;
16188
+ email: z.ZodString;
16189
+ displayName: z.ZodNullable<z.ZodString>;
16190
+ supabaseUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16191
+ status: z.ZodEnum<{
16192
+ active: "active";
16193
+ disabled: "disabled";
16194
+ }>;
16195
+ createdAt: z.ZodString;
16196
+ updatedAt: z.ZodString;
16197
+ }, z.core.$strip>;
16198
+ membership: z.ZodObject<{
16199
+ membershipId: z.ZodString;
16200
+ operatorId: z.ZodString;
16201
+ workspaceId: z.ZodString;
16202
+ workspaceSlug: z.ZodString;
16203
+ workspaceName: z.ZodString;
16204
+ role: z.ZodEnum<{
16205
+ workspace_admin: "workspace_admin";
16206
+ operator: "operator";
16207
+ observer: "observer";
16208
+ }>;
16209
+ status: z.ZodEnum<{
16210
+ active: "active";
16211
+ revoked: "revoked";
16212
+ }>;
16213
+ createdAt: z.ZodString;
16214
+ updatedAt: z.ZodString;
16215
+ }, z.core.$strip>;
16216
+ }, z.core.$strip>;
16217
+ }, z.core.$strip>>;
14134
16218
  readonly "auth.checkAccess": OperationDefinition<"auth.checkAccess", z.ZodObject<{
14135
16219
  sessionToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14136
16220
  workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14182,9 +16266,20 @@ export declare const operationDefinitions: {
14182
16266
  source: z.ZodEnum<{
14183
16267
  magic_link: "magic_link";
14184
16268
  scenario_token: "scenario_token";
16269
+ cli_login: "cli_login";
16270
+ deploy_token: "deploy_token";
14185
16271
  }>;
14186
16272
  issuedAt: z.ZodString;
14187
16273
  expiresAt: z.ZodString;
16274
+ businessProfileSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16275
+ allowedActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
16276
+ profile_read: "profile_read";
16277
+ profile_upload: "profile_upload";
16278
+ profile_activate: "profile_activate";
16279
+ integrations_apply: "integrations_apply";
16280
+ media_apply: "media_apply";
16281
+ team_access_manage: "team_access_manage";
16282
+ }>>>;
14188
16283
  }, z.core.$strip>>;
14189
16284
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
14190
16285
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14524,10 +16619,10 @@ export declare const operationDefinitions: {
14524
16619
  businessProfileSlug: z.ZodString;
14525
16620
  versionNumber: z.ZodNumber;
14526
16621
  source: z.ZodEnum<{
16622
+ profile_upload: "profile_upload";
14527
16623
  backfill: "backfill";
14528
16624
  ensure_operator: "ensure_operator";
14529
16625
  system: "system";
14530
- profile_upload: "profile_upload";
14531
16626
  }>;
14532
16627
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14533
16628
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14549,10 +16644,10 @@ export declare const operationDefinitions: {
14549
16644
  businessProfileSlug: z.ZodString;
14550
16645
  versionNumber: z.ZodNumber;
14551
16646
  source: z.ZodEnum<{
16647
+ profile_upload: "profile_upload";
14552
16648
  backfill: "backfill";
14553
16649
  ensure_operator: "ensure_operator";
14554
16650
  system: "system";
14555
- profile_upload: "profile_upload";
14556
16651
  }>;
14557
16652
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14558
16653
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14620,6 +16715,7 @@ export declare const operationDefinitions: {
14620
16715
  catalog_relations: z.ZodString;
14621
16716
  telegram_bots: z.ZodString;
14622
16717
  telegram_business_accounts: z.ZodString;
16718
+ media_root: z.ZodOptional<z.ZodString>;
14623
16719
  strategies_root: z.ZodString;
14624
16720
  policies_root: z.ZodString;
14625
16721
  prompt_overrides: z.ZodString;
@@ -14635,10 +16731,46 @@ export declare const operationDefinitions: {
14635
16731
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
14636
16732
  }, z.core.$strip>>;
14637
16733
  }, z.core.$strip>;
14638
- files: z.ZodArray<z.ZodObject<{
16734
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
14639
16735
  relativePath: z.ZodString;
16736
+ contentKind: z.ZodLiteral<"text">;
14640
16737
  content: z.ZodString;
14641
- }, z.core.$strip>>;
16738
+ }, z.core.$strip>, z.ZodObject<{
16739
+ relativePath: z.ZodString;
16740
+ contentKind: z.ZodLiteral<"binary">;
16741
+ contentBase64: z.ZodString;
16742
+ byteSize: z.ZodNumber;
16743
+ sha256: z.ZodString;
16744
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16745
+ }, z.core.$strip>, z.ZodObject<{
16746
+ relativePath: z.ZodString;
16747
+ content: z.ZodString;
16748
+ }, z.core.$strip>]>, z.ZodTransform<{
16749
+ relativePath: string;
16750
+ contentKind: "text";
16751
+ content: string;
16752
+ } | {
16753
+ relativePath: string;
16754
+ contentKind: "binary";
16755
+ contentBase64: string;
16756
+ byteSize: number;
16757
+ sha256: string;
16758
+ mimeType: string | null;
16759
+ }, {
16760
+ relativePath: string;
16761
+ contentKind: "text";
16762
+ content: string;
16763
+ } | {
16764
+ relativePath: string;
16765
+ contentKind: "binary";
16766
+ contentBase64: string;
16767
+ byteSize: number;
16768
+ sha256: string;
16769
+ mimeType: string | null;
16770
+ } | {
16771
+ relativePath: string;
16772
+ content: string;
16773
+ }>>>;
14642
16774
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
14643
16775
  integrationKey: z.ZodString;
14644
16776
  field: z.ZodEnum<{
@@ -14691,10 +16823,10 @@ export declare const operationDefinitions: {
14691
16823
  businessProfileSlug: z.ZodString;
14692
16824
  versionNumber: z.ZodNumber;
14693
16825
  source: z.ZodEnum<{
16826
+ profile_upload: "profile_upload";
14694
16827
  backfill: "backfill";
14695
16828
  ensure_operator: "ensure_operator";
14696
16829
  system: "system";
14697
- profile_upload: "profile_upload";
14698
16830
  }>;
14699
16831
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14700
16832
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14708,10 +16840,10 @@ export declare const operationDefinitions: {
14708
16840
  businessProfileSlug: z.ZodString;
14709
16841
  versionNumber: z.ZodNumber;
14710
16842
  source: z.ZodEnum<{
16843
+ profile_upload: "profile_upload";
14711
16844
  backfill: "backfill";
14712
16845
  ensure_operator: "ensure_operator";
14713
16846
  system: "system";
14714
- profile_upload: "profile_upload";
14715
16847
  }>;
14716
16848
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14717
16849
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14746,11 +16878,52 @@ export declare const operationDefinitions: {
14746
16878
  createdAt: z.ZodString;
14747
16879
  updatedAt: z.ZodString;
14748
16880
  }, z.core.$strip>>;
16881
+ mediaRegistry: z.ZodObject<{
16882
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16883
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16884
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16885
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
16886
+ folderKey: z.ZodString;
16887
+ relativePath: z.ZodString;
16888
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16889
+ purpose: z.ZodString;
16890
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16891
+ assetCount: z.ZodNumber;
16892
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
16893
+ image: "image";
16894
+ document: "document";
16895
+ link: "link";
16896
+ deck: "deck";
16897
+ }>>>;
16898
+ }, z.core.$strip>>>;
16899
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
16900
+ assetId: z.ZodString;
16901
+ folderKey: z.ZodString;
16902
+ kind: z.ZodEnum<{
16903
+ image: "image";
16904
+ document: "document";
16905
+ link: "link";
16906
+ deck: "deck";
16907
+ }>;
16908
+ what: z.ZodString;
16909
+ purpose: z.ZodString;
16910
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
16911
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
16912
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16913
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16914
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
16915
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16916
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16917
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16918
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16919
+ }, z.core.$strip>>>;
16920
+ }, z.core.$strip>;
14749
16921
  targetEnvironment: z.ZodString;
14750
16922
  serverEnvironment: z.ZodString;
14751
16923
  appliedDeclarations: z.ZodArray<z.ZodObject<{
14752
16924
  kind: z.ZodEnum<{
14753
16925
  telegram_bot: "telegram_bot";
16926
+ media_folder: "media_folder";
14754
16927
  }>;
14755
16928
  key: z.ZodString;
14756
16929
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14758,6 +16931,7 @@ export declare const operationDefinitions: {
14758
16931
  skippedDeclarations: z.ZodArray<z.ZodObject<{
14759
16932
  kind: z.ZodEnum<{
14760
16933
  telegram_bot: "telegram_bot";
16934
+ media_folder: "media_folder";
14761
16935
  }>;
14762
16936
  key: z.ZodString;
14763
16937
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14786,10 +16960,10 @@ export declare const operationDefinitions: {
14786
16960
  businessProfileSlug: z.ZodString;
14787
16961
  versionNumber: z.ZodNumber;
14788
16962
  source: z.ZodEnum<{
16963
+ profile_upload: "profile_upload";
14789
16964
  backfill: "backfill";
14790
16965
  ensure_operator: "ensure_operator";
14791
16966
  system: "system";
14792
- profile_upload: "profile_upload";
14793
16967
  }>;
14794
16968
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14795
16969
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14820,10 +16994,10 @@ export declare const operationDefinitions: {
14820
16994
  businessProfileSlug: z.ZodString;
14821
16995
  versionNumber: z.ZodNumber;
14822
16996
  source: z.ZodEnum<{
16997
+ profile_upload: "profile_upload";
14823
16998
  backfill: "backfill";
14824
16999
  ensure_operator: "ensure_operator";
14825
17000
  system: "system";
14826
- profile_upload: "profile_upload";
14827
17001
  }>;
14828
17002
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14829
17003
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -14851,6 +17025,7 @@ export declare const operationDefinitions: {
14851
17025
  catalog_relations: z.ZodString;
14852
17026
  telegram_bots: z.ZodString;
14853
17027
  telegram_business_accounts: z.ZodString;
17028
+ media_root: z.ZodOptional<z.ZodString>;
14854
17029
  strategies_root: z.ZodString;
14855
17030
  policies_root: z.ZodString;
14856
17031
  prompt_overrides: z.ZodString;
@@ -14866,10 +17041,46 @@ export declare const operationDefinitions: {
14866
17041
  allowed_prefixes: z.ZodDefault<z.ZodArray<z.ZodString>>;
14867
17042
  }, z.core.$strip>>;
14868
17043
  }, z.core.$strip>;
14869
- files: z.ZodArray<z.ZodObject<{
17044
+ files: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
14870
17045
  relativePath: z.ZodString;
17046
+ contentKind: z.ZodLiteral<"text">;
14871
17047
  content: z.ZodString;
14872
- }, z.core.$strip>>;
17048
+ }, z.core.$strip>, z.ZodObject<{
17049
+ relativePath: z.ZodString;
17050
+ contentKind: z.ZodLiteral<"binary">;
17051
+ contentBase64: z.ZodString;
17052
+ byteSize: z.ZodNumber;
17053
+ sha256: z.ZodString;
17054
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17055
+ }, z.core.$strip>, z.ZodObject<{
17056
+ relativePath: z.ZodString;
17057
+ content: z.ZodString;
17058
+ }, z.core.$strip>]>, z.ZodTransform<{
17059
+ relativePath: string;
17060
+ contentKind: "text";
17061
+ content: string;
17062
+ } | {
17063
+ relativePath: string;
17064
+ contentKind: "binary";
17065
+ contentBase64: string;
17066
+ byteSize: number;
17067
+ sha256: string;
17068
+ mimeType: string | null;
17069
+ }, {
17070
+ relativePath: string;
17071
+ contentKind: "text";
17072
+ content: string;
17073
+ } | {
17074
+ relativePath: string;
17075
+ contentKind: "binary";
17076
+ contentBase64: string;
17077
+ byteSize: number;
17078
+ sha256: string;
17079
+ mimeType: string | null;
17080
+ } | {
17081
+ relativePath: string;
17082
+ content: string;
17083
+ }>>>;
14873
17084
  secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
14874
17085
  integrationKey: z.ZodString;
14875
17086
  field: z.ZodEnum<{
@@ -14921,6 +17132,46 @@ export declare const operationDefinitions: {
14921
17132
  createdAt: z.ZodString;
14922
17133
  updatedAt: z.ZodString;
14923
17134
  }, z.core.$strip>>;
17135
+ mediaRegistry: z.ZodObject<{
17136
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17137
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17138
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
17139
+ folders: z.ZodDefault<z.ZodArray<z.ZodObject<{
17140
+ folderKey: z.ZodString;
17141
+ relativePath: z.ZodString;
17142
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17143
+ purpose: z.ZodString;
17144
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
17145
+ assetCount: z.ZodNumber;
17146
+ containsKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
17147
+ image: "image";
17148
+ document: "document";
17149
+ link: "link";
17150
+ deck: "deck";
17151
+ }>>>;
17152
+ }, z.core.$strip>>>;
17153
+ assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
17154
+ assetId: z.ZodString;
17155
+ folderKey: z.ZodString;
17156
+ kind: z.ZodEnum<{
17157
+ image: "image";
17158
+ document: "document";
17159
+ link: "link";
17160
+ deck: "deck";
17161
+ }>;
17162
+ what: z.ZodString;
17163
+ purpose: z.ZodString;
17164
+ environments: z.ZodDefault<z.ZodArray<z.ZodString>>;
17165
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
17166
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17167
+ mimeType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17168
+ byteSize: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
17169
+ checksumSha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17170
+ storageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17171
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17172
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17173
+ }, z.core.$strip>>>;
17174
+ }, z.core.$strip>;
14924
17175
  serverEnvironment: z.ZodString;
14925
17176
  }, z.core.$strip>>;
14926
17177
  readonly "integrations.upsertTelegramBot": OperationDefinition<"integrations.upsertTelegramBot", z.ZodObject<{
@@ -16630,11 +18881,11 @@ export declare const operationDefinitions: {
16630
18881
  conversationId: z.ZodNullable<z.ZodString>;
16631
18882
  dealId: z.ZodNullable<z.ZodString>;
16632
18883
  status: z.ZodEnum<{
18884
+ abandoned: "abandoned";
16633
18885
  suggested: "suggested";
16634
18886
  discussing: "discussing";
16635
18887
  confirmed: "confirmed";
16636
18888
  converted: "converted";
16637
- abandoned: "abandoned";
16638
18889
  }>;
16639
18890
  currency: z.ZodString;
16640
18891
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16674,9 +18925,9 @@ export declare const operationDefinitions: {
16674
18925
  conversationId: z.ZodNullable<z.ZodString>;
16675
18926
  activeCartId: z.ZodString;
16676
18927
  status: z.ZodEnum<{
18928
+ abandoned: "abandoned";
16677
18929
  draft: "draft";
16678
18930
  converted: "converted";
16679
- abandoned: "abandoned";
16680
18931
  quoted: "quoted";
16681
18932
  ready_for_payment: "ready_for_payment";
16682
18933
  }>;
@@ -16733,11 +18984,11 @@ export declare const operationDefinitions: {
16733
18984
  conversationId: z.ZodNullable<z.ZodString>;
16734
18985
  dealId: z.ZodNullable<z.ZodString>;
16735
18986
  status: z.ZodEnum<{
18987
+ abandoned: "abandoned";
16736
18988
  suggested: "suggested";
16737
18989
  discussing: "discussing";
16738
18990
  confirmed: "confirmed";
16739
18991
  converted: "converted";
16740
- abandoned: "abandoned";
16741
18992
  }>;
16742
18993
  currency: z.ZodString;
16743
18994
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16797,11 +19048,11 @@ export declare const operationDefinitions: {
16797
19048
  conversationId: z.ZodNullable<z.ZodString>;
16798
19049
  dealId: z.ZodNullable<z.ZodString>;
16799
19050
  status: z.ZodEnum<{
19051
+ abandoned: "abandoned";
16800
19052
  suggested: "suggested";
16801
19053
  discussing: "discussing";
16802
19054
  confirmed: "confirmed";
16803
19055
  converted: "converted";
16804
- abandoned: "abandoned";
16805
19056
  }>;
16806
19057
  currency: z.ZodString;
16807
19058
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16841,9 +19092,9 @@ export declare const operationDefinitions: {
16841
19092
  conversationId: z.ZodNullable<z.ZodString>;
16842
19093
  activeCartId: z.ZodString;
16843
19094
  status: z.ZodEnum<{
19095
+ abandoned: "abandoned";
16844
19096
  draft: "draft";
16845
19097
  converted: "converted";
16846
- abandoned: "abandoned";
16847
19098
  quoted: "quoted";
16848
19099
  ready_for_payment: "ready_for_payment";
16849
19100
  }>;
@@ -16973,9 +19224,9 @@ export declare const operationDefinitions: {
16973
19224
  conversationId: z.ZodNullable<z.ZodString>;
16974
19225
  activeCartId: z.ZodString;
16975
19226
  status: z.ZodEnum<{
19227
+ abandoned: "abandoned";
16976
19228
  draft: "draft";
16977
19229
  converted: "converted";
16978
- abandoned: "abandoned";
16979
19230
  quoted: "quoted";
16980
19231
  ready_for_payment: "ready_for_payment";
16981
19232
  }>;
@@ -17016,11 +19267,11 @@ export declare const operationDefinitions: {
17016
19267
  conversationId: z.ZodNullable<z.ZodString>;
17017
19268
  dealId: z.ZodNullable<z.ZodString>;
17018
19269
  status: z.ZodEnum<{
19270
+ abandoned: "abandoned";
17019
19271
  suggested: "suggested";
17020
19272
  discussing: "discussing";
17021
19273
  confirmed: "confirmed";
17022
19274
  converted: "converted";
17023
- abandoned: "abandoned";
17024
19275
  }>;
17025
19276
  currency: z.ZodString;
17026
19277
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -17107,11 +19358,11 @@ export declare const operationDefinitions: {
17107
19358
  conversationId: z.ZodNullable<z.ZodString>;
17108
19359
  dealId: z.ZodNullable<z.ZodString>;
17109
19360
  status: z.ZodEnum<{
19361
+ abandoned: "abandoned";
17110
19362
  suggested: "suggested";
17111
19363
  discussing: "discussing";
17112
19364
  confirmed: "confirmed";
17113
19365
  converted: "converted";
17114
- abandoned: "abandoned";
17115
19366
  }>;
17116
19367
  currency: z.ZodString;
17117
19368
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -17151,9 +19402,9 @@ export declare const operationDefinitions: {
17151
19402
  conversationId: z.ZodNullable<z.ZodString>;
17152
19403
  activeCartId: z.ZodString;
17153
19404
  status: z.ZodEnum<{
19405
+ abandoned: "abandoned";
17154
19406
  draft: "draft";
17155
19407
  converted: "converted";
17156
- abandoned: "abandoned";
17157
19408
  quoted: "quoted";
17158
19409
  ready_for_payment: "ready_for_payment";
17159
19410
  }>;
@@ -17285,8 +19536,8 @@ export declare const operationDefinitions: {
17285
19536
  text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17286
19537
  attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
17287
19538
  kind: z.ZodEnum<{
17288
- photo: "photo";
17289
19539
  document: "document";
19540
+ photo: "photo";
17290
19541
  audio: "audio";
17291
19542
  video: "video";
17292
19543
  other: "other";
@@ -17297,6 +19548,7 @@ export declare const operationDefinitions: {
17297
19548
  sourceRef: z.ZodString;
17298
19549
  metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17299
19550
  }, z.core.$strip>>>;
19551
+ mediaRegistryOverride: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17300
19552
  deletedMessageRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
17301
19553
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17302
19554
  ownershipMode: z.ZodOptional<z.ZodEnum<{
@@ -17402,8 +19654,8 @@ export declare const operationDefinitions: {
17402
19654
  conversationId: z.ZodString;
17403
19655
  messageId: z.ZodString;
17404
19656
  kind: z.ZodEnum<{
17405
- photo: "photo";
17406
19657
  document: "document";
19658
+ photo: "photo";
17407
19659
  audio: "audio";
17408
19660
  video: "video";
17409
19661
  other: "other";
@@ -17436,6 +19688,7 @@ export declare const operationDefinitions: {
17436
19688
  "operator.note.added": "operator.note.added";
17437
19689
  "channel.outbound.skipped": "channel.outbound.skipped";
17438
19690
  "channel.outbound.sent": "channel.outbound.sent";
19691
+ "channel.outbound.failed": "channel.outbound.failed";
17439
19692
  "followup.classified": "followup.classified";
17440
19693
  "followup.task.scheduled": "followup.task.scheduled";
17441
19694
  "followup.task.completed": "followup.task.completed";
@@ -17560,6 +19813,45 @@ export declare const operationDefinitions: {
17560
19813
  }>>;
17561
19814
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
17562
19815
  }, z.core.$strip>;
19816
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
19817
+ planId: z.ZodString;
19818
+ conversationId: z.ZodString;
19819
+ basedOnCustomerMessageId: z.ZodString;
19820
+ kind: z.ZodEnum<{
19821
+ draft_outbound_plan: "draft_outbound_plan";
19822
+ final_outbound_plan: "final_outbound_plan";
19823
+ }>;
19824
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
19825
+ stepId: z.ZodString;
19826
+ sequence: z.ZodNumber;
19827
+ type: z.ZodLiteral<"send_text">;
19828
+ text: z.ZodString;
19829
+ }, z.core.$strip>, z.ZodObject<{
19830
+ stepId: z.ZodString;
19831
+ sequence: z.ZodNumber;
19832
+ type: z.ZodLiteral<"send_media">;
19833
+ assetId: z.ZodString;
19834
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19835
+ }, z.core.$strip>, z.ZodObject<{
19836
+ stepId: z.ZodString;
19837
+ sequence: z.ZodNumber;
19838
+ type: z.ZodLiteral<"send_media_group">;
19839
+ assetIds: z.ZodArray<z.ZodString>;
19840
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19841
+ }, z.core.$strip>, z.ZodObject<{
19842
+ stepId: z.ZodString;
19843
+ sequence: z.ZodNumber;
19844
+ type: z.ZodLiteral<"send_document">;
19845
+ assetId: z.ZodString;
19846
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19847
+ }, z.core.$strip>, z.ZodObject<{
19848
+ stepId: z.ZodString;
19849
+ sequence: z.ZodNumber;
19850
+ type: z.ZodLiteral<"send_link">;
19851
+ assetId: z.ZodString;
19852
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19853
+ }, z.core.$strip>], "type">>;
19854
+ }, z.core.$strip>>>;
17563
19855
  classification: z.ZodObject<{
17564
19856
  primaryIntent: z.ZodString;
17565
19857
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -17676,6 +19968,34 @@ export declare const operationDefinitions: {
17676
19968
  heuristic: "heuristic";
17677
19969
  model: "model";
17678
19970
  }>;
19971
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19972
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19973
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19974
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
19975
+ requestKind: z.ZodEnum<{
19976
+ request_media_folders: "request_media_folders";
19977
+ request_media_folder_contents: "request_media_folder_contents";
19978
+ }>;
19979
+ status: z.ZodEnum<{
19980
+ rejected: "rejected";
19981
+ served: "served";
19982
+ }>;
19983
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19984
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19985
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
19986
+ image: "image";
19987
+ document: "document";
19988
+ link: "link";
19989
+ deck: "deck";
19990
+ }>>>;
19991
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19992
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19993
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
19994
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
19995
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19996
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19997
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19998
+ }, z.core.$strip>>>;
17679
19999
  }, z.core.$strip>>>;
17680
20000
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
17681
20001
  stage: z.ZodEnum<{
@@ -17766,8 +20086,8 @@ export declare const operationDefinitions: {
17766
20086
  conversationId: z.ZodString;
17767
20087
  messageId: z.ZodString;
17768
20088
  kind: z.ZodEnum<{
17769
- photo: "photo";
17770
20089
  document: "document";
20090
+ photo: "photo";
17771
20091
  audio: "audio";
17772
20092
  video: "video";
17773
20093
  other: "other";
@@ -17802,8 +20122,8 @@ export declare const operationDefinitions: {
17802
20122
  conversationId: z.ZodString;
17803
20123
  messageId: z.ZodString;
17804
20124
  kind: z.ZodEnum<{
17805
- photo: "photo";
17806
20125
  document: "document";
20126
+ photo: "photo";
17807
20127
  audio: "audio";
17808
20128
  video: "video";
17809
20129
  other: "other";
@@ -17836,6 +20156,7 @@ export declare const operationDefinitions: {
17836
20156
  "operator.note.added": "operator.note.added";
17837
20157
  "channel.outbound.skipped": "channel.outbound.skipped";
17838
20158
  "channel.outbound.sent": "channel.outbound.sent";
20159
+ "channel.outbound.failed": "channel.outbound.failed";
17839
20160
  "followup.classified": "followup.classified";
17840
20161
  "followup.task.scheduled": "followup.task.scheduled";
17841
20162
  "followup.task.completed": "followup.task.completed";
@@ -17898,8 +20219,19 @@ export declare const operationDefinitions: {
17898
20219
  deliveryStatus: z.ZodEnum<{
17899
20220
  skipped: "skipped";
17900
20221
  simulated: "simulated";
20222
+ failed: "failed";
17901
20223
  sent: "sent";
17902
20224
  }>;
20225
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20226
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20227
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20228
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
20229
+ send_text: "send_text";
20230
+ send_media: "send_media";
20231
+ send_media_group: "send_media_group";
20232
+ send_document: "send_document";
20233
+ send_link: "send_link";
20234
+ }>>>;
17903
20235
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17904
20236
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17905
20237
  }, z.core.$strip>>;
@@ -17990,8 +20322,8 @@ export declare const operationDefinitions: {
17990
20322
  conversationId: z.ZodString;
17991
20323
  messageId: z.ZodString;
17992
20324
  kind: z.ZodEnum<{
17993
- photo: "photo";
17994
20325
  document: "document";
20326
+ photo: "photo";
17995
20327
  audio: "audio";
17996
20328
  video: "video";
17997
20329
  other: "other";
@@ -18024,6 +20356,7 @@ export declare const operationDefinitions: {
18024
20356
  "operator.note.added": "operator.note.added";
18025
20357
  "channel.outbound.skipped": "channel.outbound.skipped";
18026
20358
  "channel.outbound.sent": "channel.outbound.sent";
20359
+ "channel.outbound.failed": "channel.outbound.failed";
18027
20360
  "followup.classified": "followup.classified";
18028
20361
  "followup.task.scheduled": "followup.task.scheduled";
18029
20362
  "followup.task.completed": "followup.task.completed";
@@ -18148,6 +20481,45 @@ export declare const operationDefinitions: {
18148
20481
  }>>;
18149
20482
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
18150
20483
  }, z.core.$strip>;
20484
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
20485
+ planId: z.ZodString;
20486
+ conversationId: z.ZodString;
20487
+ basedOnCustomerMessageId: z.ZodString;
20488
+ kind: z.ZodEnum<{
20489
+ draft_outbound_plan: "draft_outbound_plan";
20490
+ final_outbound_plan: "final_outbound_plan";
20491
+ }>;
20492
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20493
+ stepId: z.ZodString;
20494
+ sequence: z.ZodNumber;
20495
+ type: z.ZodLiteral<"send_text">;
20496
+ text: z.ZodString;
20497
+ }, z.core.$strip>, z.ZodObject<{
20498
+ stepId: z.ZodString;
20499
+ sequence: z.ZodNumber;
20500
+ type: z.ZodLiteral<"send_media">;
20501
+ assetId: z.ZodString;
20502
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20503
+ }, z.core.$strip>, z.ZodObject<{
20504
+ stepId: z.ZodString;
20505
+ sequence: z.ZodNumber;
20506
+ type: z.ZodLiteral<"send_media_group">;
20507
+ assetIds: z.ZodArray<z.ZodString>;
20508
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20509
+ }, z.core.$strip>, z.ZodObject<{
20510
+ stepId: z.ZodString;
20511
+ sequence: z.ZodNumber;
20512
+ type: z.ZodLiteral<"send_document">;
20513
+ assetId: z.ZodString;
20514
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20515
+ }, z.core.$strip>, z.ZodObject<{
20516
+ stepId: z.ZodString;
20517
+ sequence: z.ZodNumber;
20518
+ type: z.ZodLiteral<"send_link">;
20519
+ assetId: z.ZodString;
20520
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20521
+ }, z.core.$strip>], "type">>;
20522
+ }, z.core.$strip>>>;
18151
20523
  classification: z.ZodObject<{
18152
20524
  primaryIntent: z.ZodString;
18153
20525
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -18264,6 +20636,34 @@ export declare const operationDefinitions: {
18264
20636
  heuristic: "heuristic";
18265
20637
  model: "model";
18266
20638
  }>;
20639
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20640
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20641
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20642
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
20643
+ requestKind: z.ZodEnum<{
20644
+ request_media_folders: "request_media_folders";
20645
+ request_media_folder_contents: "request_media_folder_contents";
20646
+ }>;
20647
+ status: z.ZodEnum<{
20648
+ rejected: "rejected";
20649
+ served: "served";
20650
+ }>;
20651
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20652
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20653
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
20654
+ image: "image";
20655
+ document: "document";
20656
+ link: "link";
20657
+ deck: "deck";
20658
+ }>>>;
20659
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20660
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20661
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
20662
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
20663
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20664
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20665
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20666
+ }, z.core.$strip>>>;
18267
20667
  }, z.core.$strip>>>;
18268
20668
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
18269
20669
  stage: z.ZodEnum<{
@@ -18501,6 +20901,45 @@ export declare const operationDefinitions: {
18501
20901
  }>>;
18502
20902
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
18503
20903
  }, z.core.$strip>;
20904
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
20905
+ planId: z.ZodString;
20906
+ conversationId: z.ZodString;
20907
+ basedOnCustomerMessageId: z.ZodString;
20908
+ kind: z.ZodEnum<{
20909
+ draft_outbound_plan: "draft_outbound_plan";
20910
+ final_outbound_plan: "final_outbound_plan";
20911
+ }>;
20912
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20913
+ stepId: z.ZodString;
20914
+ sequence: z.ZodNumber;
20915
+ type: z.ZodLiteral<"send_text">;
20916
+ text: z.ZodString;
20917
+ }, z.core.$strip>, z.ZodObject<{
20918
+ stepId: z.ZodString;
20919
+ sequence: z.ZodNumber;
20920
+ type: z.ZodLiteral<"send_media">;
20921
+ assetId: z.ZodString;
20922
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20923
+ }, z.core.$strip>, z.ZodObject<{
20924
+ stepId: z.ZodString;
20925
+ sequence: z.ZodNumber;
20926
+ type: z.ZodLiteral<"send_media_group">;
20927
+ assetIds: z.ZodArray<z.ZodString>;
20928
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20929
+ }, z.core.$strip>, z.ZodObject<{
20930
+ stepId: z.ZodString;
20931
+ sequence: z.ZodNumber;
20932
+ type: z.ZodLiteral<"send_document">;
20933
+ assetId: z.ZodString;
20934
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20935
+ }, z.core.$strip>, z.ZodObject<{
20936
+ stepId: z.ZodString;
20937
+ sequence: z.ZodNumber;
20938
+ type: z.ZodLiteral<"send_link">;
20939
+ assetId: z.ZodString;
20940
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20941
+ }, z.core.$strip>], "type">>;
20942
+ }, z.core.$strip>>>;
18504
20943
  classification: z.ZodObject<{
18505
20944
  primaryIntent: z.ZodString;
18506
20945
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -18617,6 +21056,34 @@ export declare const operationDefinitions: {
18617
21056
  heuristic: "heuristic";
18618
21057
  model: "model";
18619
21058
  }>;
21059
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21060
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21061
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21062
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
21063
+ requestKind: z.ZodEnum<{
21064
+ request_media_folders: "request_media_folders";
21065
+ request_media_folder_contents: "request_media_folder_contents";
21066
+ }>;
21067
+ status: z.ZodEnum<{
21068
+ rejected: "rejected";
21069
+ served: "served";
21070
+ }>;
21071
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21072
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21073
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
21074
+ image: "image";
21075
+ document: "document";
21076
+ link: "link";
21077
+ deck: "deck";
21078
+ }>>>;
21079
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21080
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21081
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
21082
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
21083
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21084
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21085
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21086
+ }, z.core.$strip>>>;
18620
21087
  }, z.core.$strip>>>;
18621
21088
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
18622
21089
  stage: z.ZodEnum<{
@@ -19717,8 +22184,8 @@ export declare const operationDefinitions: {
19717
22184
  conversationId: z.ZodString;
19718
22185
  messageId: z.ZodString;
19719
22186
  kind: z.ZodEnum<{
19720
- photo: "photo";
19721
22187
  document: "document";
22188
+ photo: "photo";
19722
22189
  audio: "audio";
19723
22190
  video: "video";
19724
22191
  other: "other";
@@ -19751,6 +22218,7 @@ export declare const operationDefinitions: {
19751
22218
  "operator.note.added": "operator.note.added";
19752
22219
  "channel.outbound.skipped": "channel.outbound.skipped";
19753
22220
  "channel.outbound.sent": "channel.outbound.sent";
22221
+ "channel.outbound.failed": "channel.outbound.failed";
19754
22222
  "followup.classified": "followup.classified";
19755
22223
  "followup.task.scheduled": "followup.task.scheduled";
19756
22224
  "followup.task.completed": "followup.task.completed";
@@ -19875,6 +22343,45 @@ export declare const operationDefinitions: {
19875
22343
  }>>;
19876
22344
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
19877
22345
  }, z.core.$strip>;
22346
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
22347
+ planId: z.ZodString;
22348
+ conversationId: z.ZodString;
22349
+ basedOnCustomerMessageId: z.ZodString;
22350
+ kind: z.ZodEnum<{
22351
+ draft_outbound_plan: "draft_outbound_plan";
22352
+ final_outbound_plan: "final_outbound_plan";
22353
+ }>;
22354
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
22355
+ stepId: z.ZodString;
22356
+ sequence: z.ZodNumber;
22357
+ type: z.ZodLiteral<"send_text">;
22358
+ text: z.ZodString;
22359
+ }, z.core.$strip>, z.ZodObject<{
22360
+ stepId: z.ZodString;
22361
+ sequence: z.ZodNumber;
22362
+ type: z.ZodLiteral<"send_media">;
22363
+ assetId: z.ZodString;
22364
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22365
+ }, z.core.$strip>, z.ZodObject<{
22366
+ stepId: z.ZodString;
22367
+ sequence: z.ZodNumber;
22368
+ type: z.ZodLiteral<"send_media_group">;
22369
+ assetIds: z.ZodArray<z.ZodString>;
22370
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22371
+ }, z.core.$strip>, z.ZodObject<{
22372
+ stepId: z.ZodString;
22373
+ sequence: z.ZodNumber;
22374
+ type: z.ZodLiteral<"send_document">;
22375
+ assetId: z.ZodString;
22376
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22377
+ }, z.core.$strip>, z.ZodObject<{
22378
+ stepId: z.ZodString;
22379
+ sequence: z.ZodNumber;
22380
+ type: z.ZodLiteral<"send_link">;
22381
+ assetId: z.ZodString;
22382
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22383
+ }, z.core.$strip>], "type">>;
22384
+ }, z.core.$strip>>>;
19878
22385
  classification: z.ZodObject<{
19879
22386
  primaryIntent: z.ZodString;
19880
22387
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -19991,6 +22498,34 @@ export declare const operationDefinitions: {
19991
22498
  heuristic: "heuristic";
19992
22499
  model: "model";
19993
22500
  }>;
22501
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22502
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22503
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22504
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
22505
+ requestKind: z.ZodEnum<{
22506
+ request_media_folders: "request_media_folders";
22507
+ request_media_folder_contents: "request_media_folder_contents";
22508
+ }>;
22509
+ status: z.ZodEnum<{
22510
+ rejected: "rejected";
22511
+ served: "served";
22512
+ }>;
22513
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22514
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22515
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
22516
+ image: "image";
22517
+ document: "document";
22518
+ link: "link";
22519
+ deck: "deck";
22520
+ }>>>;
22521
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22522
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22523
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
22524
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
22525
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22526
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
22527
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22528
+ }, z.core.$strip>>>;
19994
22529
  }, z.core.$strip>>>;
19995
22530
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
19996
22531
  stage: z.ZodEnum<{
@@ -20263,11 +22798,11 @@ export declare const operationDefinitions: {
20263
22798
  conversationId: z.ZodNullable<z.ZodString>;
20264
22799
  dealId: z.ZodNullable<z.ZodString>;
20265
22800
  status: z.ZodEnum<{
22801
+ abandoned: "abandoned";
20266
22802
  suggested: "suggested";
20267
22803
  discussing: "discussing";
20268
22804
  confirmed: "confirmed";
20269
22805
  converted: "converted";
20270
- abandoned: "abandoned";
20271
22806
  }>;
20272
22807
  currency: z.ZodString;
20273
22808
  title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -20307,9 +22842,9 @@ export declare const operationDefinitions: {
20307
22842
  conversationId: z.ZodNullable<z.ZodString>;
20308
22843
  activeCartId: z.ZodString;
20309
22844
  status: z.ZodEnum<{
22845
+ abandoned: "abandoned";
20310
22846
  draft: "draft";
20311
22847
  converted: "converted";
20312
- abandoned: "abandoned";
20313
22848
  quoted: "quoted";
20314
22849
  ready_for_payment: "ready_for_payment";
20315
22850
  }>;
@@ -20512,6 +23047,94 @@ export declare const operationDefinitions: {
20512
23047
  human: "human";
20513
23048
  }>>;
20514
23049
  }, z.core.$strip>>>;
23050
+ outboundPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
23051
+ traceId: z.ZodString;
23052
+ planId: z.ZodString;
23053
+ kind: z.ZodEnum<{
23054
+ draft_outbound_plan: "draft_outbound_plan";
23055
+ final_outbound_plan: "final_outbound_plan";
23056
+ }>;
23057
+ status: z.ZodEnum<{
23058
+ failed: "failed";
23059
+ draft: "draft";
23060
+ superseded: "superseded";
23061
+ sent: "sent";
23062
+ partial: "partial";
23063
+ }>;
23064
+ basedOnCustomerMessageId: z.ZodString;
23065
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23066
+ businessProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23067
+ businessProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23068
+ replyText: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23069
+ selectionSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23070
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
23071
+ requestKind: z.ZodEnum<{
23072
+ request_media_folders: "request_media_folders";
23073
+ request_media_folder_contents: "request_media_folder_contents";
23074
+ }>;
23075
+ status: z.ZodEnum<{
23076
+ rejected: "rejected";
23077
+ served: "served";
23078
+ }>;
23079
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23080
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23081
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
23082
+ image: "image";
23083
+ document: "document";
23084
+ link: "link";
23085
+ deck: "deck";
23086
+ }>>>;
23087
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23088
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23089
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
23090
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
23091
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23092
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23093
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23094
+ }, z.core.$strip>>>;
23095
+ selectedAssets: z.ZodDefault<z.ZodArray<z.ZodObject<{
23096
+ assetId: z.ZodString;
23097
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23098
+ kind: z.ZodEnum<{
23099
+ image: "image";
23100
+ document: "document";
23101
+ link: "link";
23102
+ deck: "deck";
23103
+ }>;
23104
+ what: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23105
+ purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23106
+ amountRub: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23107
+ targetUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23108
+ sourceRelativePath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23109
+ }, z.core.$strip>>>;
23110
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
23111
+ stepId: z.ZodString;
23112
+ sequence: z.ZodNumber;
23113
+ stepType: z.ZodEnum<{
23114
+ send_text: "send_text";
23115
+ send_media: "send_media";
23116
+ send_media_group: "send_media_group";
23117
+ send_document: "send_document";
23118
+ send_link: "send_link";
23119
+ }>;
23120
+ textPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23121
+ captionPreview: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23122
+ assetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
23123
+ deliveryStatus: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
23124
+ skipped: "skipped";
23125
+ simulated: "simulated";
23126
+ failed: "failed";
23127
+ sent: "sent";
23128
+ }>>>;
23129
+ transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23130
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23131
+ dispatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23132
+ eventId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23133
+ }, z.core.$strip>>>;
23134
+ createdAt: z.ZodString;
23135
+ sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23136
+ supersededAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23137
+ }, z.core.$strip>>>;
20515
23138
  }, z.core.$strip>>;
20516
23139
  readonly "ops.getReadiness": OperationDefinition<"ops.getReadiness", z.ZodObject<{
20517
23140
  businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -21641,6 +24264,7 @@ export declare const operationDefinitions: {
21641
24264
  "operator.note.added": "operator.note.added";
21642
24265
  "channel.outbound.skipped": "channel.outbound.skipped";
21643
24266
  "channel.outbound.sent": "channel.outbound.sent";
24267
+ "channel.outbound.failed": "channel.outbound.failed";
21644
24268
  "followup.classified": "followup.classified";
21645
24269
  "followup.task.scheduled": "followup.task.scheduled";
21646
24270
  "followup.task.completed": "followup.task.completed";
@@ -21819,6 +24443,7 @@ export declare const operationDefinitions: {
21819
24443
  "operator.note.added": "operator.note.added";
21820
24444
  "channel.outbound.skipped": "channel.outbound.skipped";
21821
24445
  "channel.outbound.sent": "channel.outbound.sent";
24446
+ "channel.outbound.failed": "channel.outbound.failed";
21822
24447
  "followup.classified": "followup.classified";
21823
24448
  "followup.task.scheduled": "followup.task.scheduled";
21824
24449
  "followup.task.completed": "followup.task.completed";
@@ -22060,8 +24685,8 @@ export declare const operationDefinitions: {
22060
24685
  conversationId: z.ZodString;
22061
24686
  messageId: z.ZodString;
22062
24687
  kind: z.ZodEnum<{
22063
- photo: "photo";
22064
24688
  document: "document";
24689
+ photo: "photo";
22065
24690
  audio: "audio";
22066
24691
  video: "video";
22067
24692
  other: "other";
@@ -22094,6 +24719,7 @@ export declare const operationDefinitions: {
22094
24719
  "operator.note.added": "operator.note.added";
22095
24720
  "channel.outbound.skipped": "channel.outbound.skipped";
22096
24721
  "channel.outbound.sent": "channel.outbound.sent";
24722
+ "channel.outbound.failed": "channel.outbound.failed";
22097
24723
  "followup.classified": "followup.classified";
22098
24724
  "followup.task.scheduled": "followup.task.scheduled";
22099
24725
  "followup.task.completed": "followup.task.completed";
@@ -22218,6 +24844,45 @@ export declare const operationDefinitions: {
22218
24844
  }>>;
22219
24845
  channelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
22220
24846
  }, z.core.$strip>;
24847
+ outboundPlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
24848
+ planId: z.ZodString;
24849
+ conversationId: z.ZodString;
24850
+ basedOnCustomerMessageId: z.ZodString;
24851
+ kind: z.ZodEnum<{
24852
+ draft_outbound_plan: "draft_outbound_plan";
24853
+ final_outbound_plan: "final_outbound_plan";
24854
+ }>;
24855
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
24856
+ stepId: z.ZodString;
24857
+ sequence: z.ZodNumber;
24858
+ type: z.ZodLiteral<"send_text">;
24859
+ text: z.ZodString;
24860
+ }, z.core.$strip>, z.ZodObject<{
24861
+ stepId: z.ZodString;
24862
+ sequence: z.ZodNumber;
24863
+ type: z.ZodLiteral<"send_media">;
24864
+ assetId: z.ZodString;
24865
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24866
+ }, z.core.$strip>, z.ZodObject<{
24867
+ stepId: z.ZodString;
24868
+ sequence: z.ZodNumber;
24869
+ type: z.ZodLiteral<"send_media_group">;
24870
+ assetIds: z.ZodArray<z.ZodString>;
24871
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24872
+ }, z.core.$strip>, z.ZodObject<{
24873
+ stepId: z.ZodString;
24874
+ sequence: z.ZodNumber;
24875
+ type: z.ZodLiteral<"send_document">;
24876
+ assetId: z.ZodString;
24877
+ caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24878
+ }, z.core.$strip>, z.ZodObject<{
24879
+ stepId: z.ZodString;
24880
+ sequence: z.ZodNumber;
24881
+ type: z.ZodLiteral<"send_link">;
24882
+ assetId: z.ZodString;
24883
+ text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24884
+ }, z.core.$strip>], "type">>;
24885
+ }, z.core.$strip>>>;
22221
24886
  classification: z.ZodObject<{
22222
24887
  primaryIntent: z.ZodString;
22223
24888
  secondaryIntents: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -22334,6 +24999,34 @@ export declare const operationDefinitions: {
22334
24999
  heuristic: "heuristic";
22335
25000
  model: "model";
22336
25001
  }>;
25002
+ protocolResponseKind: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25003
+ mediaProfileVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25004
+ mediaProfileVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
25005
+ mediaDiscovery: z.ZodDefault<z.ZodArray<z.ZodObject<{
25006
+ requestKind: z.ZodEnum<{
25007
+ request_media_folders: "request_media_folders";
25008
+ request_media_folder_contents: "request_media_folder_contents";
25009
+ }>;
25010
+ status: z.ZodEnum<{
25011
+ rejected: "rejected";
25012
+ served: "served";
25013
+ }>;
25014
+ reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25015
+ topicHint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25016
+ desiredKinds: z.ZodDefault<z.ZodArray<z.ZodEnum<{
25017
+ image: "image";
25018
+ document: "document";
25019
+ link: "link";
25020
+ deck: "deck";
25021
+ }>>>;
25022
+ folderKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25023
+ requestedLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
25024
+ returnedFolderKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
25025
+ returnedAssetIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
25026
+ registryVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25027
+ registryVersionNumber: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
25028
+ errorMessage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25029
+ }, z.core.$strip>>>;
22337
25030
  }, z.core.$strip>>>;
22338
25031
  generationAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
22339
25032
  stage: z.ZodEnum<{
@@ -22423,6 +25116,7 @@ export declare const operationDefinitions: {
22423
25116
  "operator.note.added": "operator.note.added";
22424
25117
  "channel.outbound.skipped": "channel.outbound.skipped";
22425
25118
  "channel.outbound.sent": "channel.outbound.sent";
25119
+ "channel.outbound.failed": "channel.outbound.failed";
22426
25120
  "followup.classified": "followup.classified";
22427
25121
  "followup.task.scheduled": "followup.task.scheduled";
22428
25122
  "followup.task.completed": "followup.task.completed";
@@ -22485,8 +25179,19 @@ export declare const operationDefinitions: {
22485
25179
  deliveryStatus: z.ZodEnum<{
22486
25180
  skipped: "skipped";
22487
25181
  simulated: "simulated";
25182
+ failed: "failed";
22488
25183
  sent: "sent";
22489
25184
  }>;
25185
+ planId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25186
+ stepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25187
+ sequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
25188
+ stepType: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
25189
+ send_text: "send_text";
25190
+ send_media: "send_media";
25191
+ send_media_group: "send_media_group";
25192
+ send_document: "send_document";
25193
+ send_link: "send_link";
25194
+ }>>>;
22490
25195
  transportMessageRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22491
25196
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22492
25197
  }, z.core.$strip>>;
@@ -23307,11 +26012,17 @@ export type OperationInputMap = {
23307
26012
  'auth.requestMagicLink': z.infer<typeof authRequestMagicLinkRequestSchema>;
23308
26013
  'auth.startCliLoginIntent': z.infer<typeof authStartCliLoginIntentRequestSchema>;
23309
26014
  'auth.getCliLoginIntent': z.infer<typeof authGetCliLoginIntentRequestSchema>;
23310
- 'auth.getCliDeviceLoginStatus': z.infer<typeof authCliDeviceLoginStatusRequestSchema>;
23311
- 'auth.completeCliDeviceLogin': z.infer<typeof authCompleteCliDeviceLoginRequestSchema>;
26015
+ 'auth.abandonCliLoginIntent': z.infer<typeof authAbandonCliLoginIntentRequestSchema>;
26016
+ 'auth.getCliBrowserLoginState': z.infer<typeof authCliBrowserLoginStateRequestSchema>;
26017
+ 'auth.requestCliLoginMagicLink': z.infer<typeof authRequestCliLoginMagicLinkRequestSchema>;
26018
+ 'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginRequestSchema>;
23312
26019
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenRequestSchema>;
23313
26020
  'auth.getSession': z.infer<typeof authGetSessionRequestSchema>;
26021
+ 'auth.listSessions': z.infer<typeof authListSessionsRequestSchema>;
26022
+ 'auth.revokeSession': z.infer<typeof authRevokeSessionRequestSchema>;
26023
+ 'auth.issueDeployToken': z.infer<typeof authIssueDeployTokenRequestSchema>;
23314
26024
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersRequestSchema>;
26025
+ 'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberRequestSchema>;
23315
26026
  'auth.checkAccess': z.infer<typeof authCheckAccessRequestSchema>;
23316
26027
  'auth.getWorkspaceTrustPolicy': z.infer<typeof authGetWorkspaceTrustPolicyRequestSchema>;
23317
26028
  'auth.setWorkspaceTrustPolicy': z.infer<typeof authSetWorkspaceTrustPolicyRequestSchema>;
@@ -23409,11 +26120,17 @@ export type OperationOutputMap = {
23409
26120
  'auth.requestMagicLink': z.infer<typeof authRequestMagicLinkResponseSchema>;
23410
26121
  'auth.startCliLoginIntent': z.infer<typeof authStartCliLoginIntentResponseSchema>;
23411
26122
  'auth.getCliLoginIntent': z.infer<typeof authGetCliLoginIntentResponseSchema>;
23412
- 'auth.getCliDeviceLoginStatus': z.infer<typeof authCliDeviceLoginStatusResponseSchema>;
23413
- 'auth.completeCliDeviceLogin': z.infer<typeof authCompleteCliDeviceLoginResponseSchema>;
26123
+ 'auth.abandonCliLoginIntent': z.infer<typeof authAbandonCliLoginIntentResponseSchema>;
26124
+ 'auth.getCliBrowserLoginState': z.infer<typeof authCliBrowserLoginStateResponseSchema>;
26125
+ 'auth.requestCliLoginMagicLink': z.infer<typeof authRequestCliLoginMagicLinkResponseSchema>;
26126
+ 'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginResponseSchema>;
23414
26127
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenResponseSchema>;
23415
26128
  'auth.getSession': z.infer<typeof authGetSessionResponseSchema>;
26129
+ 'auth.listSessions': z.infer<typeof authListSessionsResponseSchema>;
26130
+ 'auth.revokeSession': z.infer<typeof authRevokeSessionResponseSchema>;
26131
+ 'auth.issueDeployToken': z.infer<typeof authIssueDeployTokenResponseSchema>;
23416
26132
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersResponseSchema>;
26133
+ 'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberResponseSchema>;
23417
26134
  'auth.checkAccess': z.infer<typeof authCheckAccessResponseSchema>;
23418
26135
  'auth.getWorkspaceTrustPolicy': z.infer<typeof authGetWorkspaceTrustPolicyResponseSchema>;
23419
26136
  'auth.setWorkspaceTrustPolicy': z.infer<typeof authSetWorkspaceTrustPolicyResponseSchema>;