@selleragent/api-contract 0.2.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>>;
@@ -439,9 +449,48 @@ export declare const authSessionSchema: z.ZodObject<{
439
449
  source: z.ZodEnum<{
440
450
  magic_link: "magic_link";
441
451
  scenario_token: "scenario_token";
452
+ cli_login: "cli_login";
453
+ deploy_token: "deploy_token";
454
+ }>;
455
+ issuedAt: z.ZodString;
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";
442
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>;
443
488
  issuedAt: z.ZodString;
444
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>;
445
494
  }, z.core.$strip>;
446
495
  export declare const operatorAccessContextSchema: z.ZodObject<{
447
496
  authenticated: z.ZodBoolean;
@@ -483,9 +532,20 @@ export declare const operatorAccessContextSchema: z.ZodObject<{
483
532
  source: z.ZodEnum<{
484
533
  magic_link: "magic_link";
485
534
  scenario_token: "scenario_token";
535
+ cli_login: "cli_login";
536
+ deploy_token: "deploy_token";
486
537
  }>;
487
538
  issuedAt: z.ZodString;
488
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
+ }>>>;
489
549
  }, z.core.$strip>>;
490
550
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
491
551
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -620,9 +680,20 @@ export declare const authCliLoginIntentSchema: z.ZodObject<{
620
680
  source: z.ZodEnum<{
621
681
  magic_link: "magic_link";
622
682
  scenario_token: "scenario_token";
683
+ cli_login: "cli_login";
684
+ deploy_token: "deploy_token";
623
685
  }>;
624
686
  issuedAt: z.ZodString;
625
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
+ }>>>;
626
697
  }, z.core.$strip>>;
627
698
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
628
699
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -630,6 +701,7 @@ export declare const authCliLoginIntentSchema: z.ZodObject<{
630
701
  }, z.core.$strip>;
631
702
  export declare const authStartCliLoginIntentRequestSchema: z.ZodObject<{
632
703
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
705
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
706
  }, z.core.$strip>;
635
707
  export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
@@ -697,9 +769,20 @@ export declare const authStartCliLoginIntentResponseSchema: z.ZodObject<{
697
769
  source: z.ZodEnum<{
698
770
  magic_link: "magic_link";
699
771
  scenario_token: "scenario_token";
772
+ cli_login: "cli_login";
773
+ deploy_token: "deploy_token";
700
774
  }>;
701
775
  issuedAt: z.ZodString;
702
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
+ }>>>;
703
786
  }, z.core.$strip>>;
704
787
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
705
788
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -778,9 +861,20 @@ export declare const authGetCliLoginIntentResponseSchema: z.ZodObject<{
778
861
  source: z.ZodEnum<{
779
862
  magic_link: "magic_link";
780
863
  scenario_token: "scenario_token";
864
+ cli_login: "cli_login";
865
+ deploy_token: "deploy_token";
781
866
  }>;
782
867
  issuedAt: z.ZodString;
783
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
+ }>>>;
784
878
  }, z.core.$strip>>;
785
879
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
786
880
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -855,9 +949,20 @@ export declare const authAbandonCliLoginIntentResponseSchema: z.ZodObject<{
855
949
  source: z.ZodEnum<{
856
950
  magic_link: "magic_link";
857
951
  scenario_token: "scenario_token";
952
+ cli_login: "cli_login";
953
+ deploy_token: "deploy_token";
858
954
  }>;
859
955
  issuedAt: z.ZodString;
860
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
+ }>>>;
861
966
  }, z.core.$strip>>;
862
967
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
863
968
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -925,6 +1030,7 @@ export declare const authRequestCliLoginMagicLinkResponseSchema: z.ZodObject<{
925
1030
  accepted: z.ZodBoolean;
926
1031
  email: z.ZodString;
927
1032
  alreadySent: z.ZodBoolean;
1033
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
1034
  }, z.core.$strip>;
929
1035
  export declare const authCompleteCliBrowserLoginRequestSchema: z.ZodObject<{
930
1036
  token: z.ZodString;
@@ -995,9 +1101,20 @@ export declare const authCompleteCliBrowserLoginResponseSchema: z.ZodObject<{
995
1101
  source: z.ZodEnum<{
996
1102
  magic_link: "magic_link";
997
1103
  scenario_token: "scenario_token";
1104
+ cli_login: "cli_login";
1105
+ deploy_token: "deploy_token";
998
1106
  }>;
999
1107
  issuedAt: z.ZodString;
1000
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
+ }>>>;
1001
1118
  }, z.core.$strip>>;
1002
1119
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1003
1120
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1095,14 +1212,147 @@ export declare const authGetSessionResponseSchema: z.ZodObject<{
1095
1212
  source: z.ZodEnum<{
1096
1213
  magic_link: "magic_link";
1097
1214
  scenario_token: "scenario_token";
1215
+ cli_login: "cli_login";
1216
+ deploy_token: "deploy_token";
1098
1217
  }>;
1099
1218
  issuedAt: z.ZodString;
1100
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
+ }>>>;
1101
1229
  }, z.core.$strip>>;
1102
1230
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1103
1231
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1104
1232
  }, z.core.$strip>;
1105
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>;
1106
1356
  export declare const authWorkspaceMemberEntrySchema: z.ZodObject<{
1107
1357
  operator: z.ZodObject<{
1108
1358
  operatorId: z.ZodString;
@@ -1624,9 +1874,20 @@ export declare const authExchangeScenarioTokenResponseSchema: z.ZodObject<{
1624
1874
  source: z.ZodEnum<{
1625
1875
  magic_link: "magic_link";
1626
1876
  scenario_token: "scenario_token";
1877
+ cli_login: "cli_login";
1878
+ deploy_token: "deploy_token";
1627
1879
  }>;
1628
1880
  issuedAt: z.ZodString;
1629
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
+ }>>>;
1630
1891
  }, z.core.$strip>>;
1631
1892
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1632
1893
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1680,9 +1941,20 @@ export declare const authCompleteMagicLinkResponseSchema: z.ZodObject<{
1680
1941
  source: z.ZodEnum<{
1681
1942
  magic_link: "magic_link";
1682
1943
  scenario_token: "scenario_token";
1944
+ cli_login: "cli_login";
1945
+ deploy_token: "deploy_token";
1683
1946
  }>;
1684
1947
  issuedAt: z.ZodString;
1685
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
+ }>>>;
1686
1958
  }, z.core.$strip>>;
1687
1959
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1688
1960
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1742,9 +2014,20 @@ export declare const authCheckAccessResponseSchema: z.ZodObject<{
1742
2014
  source: z.ZodEnum<{
1743
2015
  magic_link: "magic_link";
1744
2016
  scenario_token: "scenario_token";
2017
+ cli_login: "cli_login";
2018
+ deploy_token: "deploy_token";
1745
2019
  }>;
1746
2020
  issuedAt: z.ZodString;
1747
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
+ }>>>;
1748
2031
  }, z.core.$strip>>;
1749
2032
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
1750
2033
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1803,10 +2086,10 @@ export declare const businessProfilesGetResponseSchema: z.ZodObject<{
1803
2086
  businessProfileSlug: z.ZodString;
1804
2087
  versionNumber: z.ZodNumber;
1805
2088
  source: z.ZodEnum<{
2089
+ profile_upload: "profile_upload";
1806
2090
  backfill: "backfill";
1807
2091
  ensure_operator: "ensure_operator";
1808
2092
  system: "system";
1809
- profile_upload: "profile_upload";
1810
2093
  }>;
1811
2094
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1812
2095
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -1829,10 +2112,10 @@ export declare const businessProfilesListVersionsResponseSchema: z.ZodObject<{
1829
2112
  businessProfileSlug: z.ZodString;
1830
2113
  versionNumber: z.ZodNumber;
1831
2114
  source: z.ZodEnum<{
2115
+ profile_upload: "profile_upload";
1832
2116
  backfill: "backfill";
1833
2117
  ensure_operator: "ensure_operator";
1834
2118
  system: "system";
1835
- profile_upload: "profile_upload";
1836
2119
  }>;
1837
2120
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1838
2121
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2302,10 +2585,10 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
2302
2585
  businessProfileSlug: z.ZodString;
2303
2586
  versionNumber: z.ZodNumber;
2304
2587
  source: z.ZodEnum<{
2588
+ profile_upload: "profile_upload";
2305
2589
  backfill: "backfill";
2306
2590
  ensure_operator: "ensure_operator";
2307
2591
  system: "system";
2308
- profile_upload: "profile_upload";
2309
2592
  }>;
2310
2593
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2311
2594
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2319,10 +2602,10 @@ export declare const businessProfilesUploadBundleResponseSchema: z.ZodObject<{
2319
2602
  businessProfileSlug: z.ZodString;
2320
2603
  versionNumber: z.ZodNumber;
2321
2604
  source: z.ZodEnum<{
2605
+ profile_upload: "profile_upload";
2322
2606
  backfill: "backfill";
2323
2607
  ensure_operator: "ensure_operator";
2324
2608
  system: "system";
2325
- profile_upload: "profile_upload";
2326
2609
  }>;
2327
2610
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2328
2611
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2440,10 +2723,10 @@ export declare const businessProfilesActivateVersionResponseSchema: z.ZodObject<
2440
2723
  businessProfileSlug: z.ZodString;
2441
2724
  versionNumber: z.ZodNumber;
2442
2725
  source: z.ZodEnum<{
2726
+ profile_upload: "profile_upload";
2443
2727
  backfill: "backfill";
2444
2728
  ensure_operator: "ensure_operator";
2445
2729
  system: "system";
2446
- profile_upload: "profile_upload";
2447
2730
  }>;
2448
2731
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2449
2732
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2475,10 +2758,10 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2475
2758
  businessProfileSlug: z.ZodString;
2476
2759
  versionNumber: z.ZodNumber;
2477
2760
  source: z.ZodEnum<{
2761
+ profile_upload: "profile_upload";
2478
2762
  backfill: "backfill";
2479
2763
  ensure_operator: "ensure_operator";
2480
2764
  system: "system";
2481
- profile_upload: "profile_upload";
2482
2765
  }>;
2483
2766
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2484
2767
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4294,7 +4577,9 @@ export type WorkspaceMembershipStatus = z.infer<typeof workspaceMembershipStatus
4294
4577
  export type OperatorRecord = z.infer<typeof operatorRecordSchema>;
4295
4578
  export type WorkspaceMembership = z.infer<typeof workspaceMembershipSchema>;
4296
4579
  export type AuthSessionSource = z.infer<typeof authSessionSourceSchema>;
4580
+ export type AuthDeployAction = z.infer<typeof authDeployActionSchema>;
4297
4581
  export type AuthSession = z.infer<typeof authSessionSchema>;
4582
+ export type AuthSessionRecord = z.infer<typeof authSessionRecordSchema>;
4298
4583
  export type OperatorAccessContext = z.infer<typeof operatorAccessContextSchema>;
4299
4584
  export type AuthEnsureOperatorInput = z.infer<typeof authEnsureOperatorRequestSchema>;
4300
4585
  export type AuthEnsureOperatorOutput = z.infer<typeof authEnsureOperatorResponseSchema>;
@@ -4317,6 +4602,12 @@ export type AuthIssueScenarioTokenInput = z.infer<typeof authIssueScenarioTokenR
4317
4602
  export type AuthIssueScenarioTokenOutput = z.infer<typeof authIssueScenarioTokenResponseSchema>;
4318
4603
  export type AuthGetSessionInput = z.infer<typeof authGetSessionRequestSchema>;
4319
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>;
4320
4611
  export type AuthWorkspaceMemberEntry = z.infer<typeof authWorkspaceMemberEntrySchema>;
4321
4612
  export type AuthListWorkspaceMembersInput = z.infer<typeof authListWorkspaceMembersRequestSchema>;
4322
4613
  export type AuthListWorkspaceMembersOutput = z.infer<typeof authListWorkspaceMembersResponseSchema>;
@@ -4623,6 +4914,7 @@ export declare const authRequestMagicLinkOperation: OperationDefinition<"auth.re
4623
4914
  }, z.core.$strip>>;
4624
4915
  export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
4625
4916
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4917
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4626
4918
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
4919
  }, z.core.$strip>, z.ZodObject<{
4628
4920
  intent: z.ZodObject<{
@@ -4689,9 +4981,20 @@ export declare const authStartCliLoginIntentOperation: OperationDefinition<"auth
4689
4981
  source: z.ZodEnum<{
4690
4982
  magic_link: "magic_link";
4691
4983
  scenario_token: "scenario_token";
4984
+ cli_login: "cli_login";
4985
+ deploy_token: "deploy_token";
4692
4986
  }>;
4693
4987
  issuedAt: z.ZodString;
4694
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
+ }>>>;
4695
4998
  }, z.core.$strip>>;
4696
4999
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4697
5000
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4769,9 +5072,20 @@ export declare const authGetCliLoginIntentOperation: OperationDefinition<"auth.g
4769
5072
  source: z.ZodEnum<{
4770
5073
  magic_link: "magic_link";
4771
5074
  scenario_token: "scenario_token";
5075
+ cli_login: "cli_login";
5076
+ deploy_token: "deploy_token";
4772
5077
  }>;
4773
5078
  issuedAt: z.ZodString;
4774
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
+ }>>>;
4775
5089
  }, z.core.$strip>>;
4776
5090
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4777
5091
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4845,9 +5159,20 @@ export declare const authAbandonCliLoginIntentOperation: OperationDefinition<"au
4845
5159
  source: z.ZodEnum<{
4846
5160
  magic_link: "magic_link";
4847
5161
  scenario_token: "scenario_token";
5162
+ cli_login: "cli_login";
5163
+ deploy_token: "deploy_token";
4848
5164
  }>;
4849
5165
  issuedAt: z.ZodString;
4850
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
+ }>>>;
4851
5176
  }, z.core.$strip>>;
4852
5177
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4853
5178
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4897,6 +5222,7 @@ export declare const authRequestCliLoginMagicLinkOperation: OperationDefinition<
4897
5222
  accepted: z.ZodBoolean;
4898
5223
  email: z.ZodString;
4899
5224
  alreadySent: z.ZodBoolean;
5225
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4900
5226
  }, z.core.$strip>>;
4901
5227
  export declare const authCompleteCliBrowserLoginOperation: OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
4902
5228
  token: z.ZodString;
@@ -4966,9 +5292,20 @@ export declare const authCompleteCliBrowserLoginOperation: OperationDefinition<"
4966
5292
  source: z.ZodEnum<{
4967
5293
  magic_link: "magic_link";
4968
5294
  scenario_token: "scenario_token";
5295
+ cli_login: "cli_login";
5296
+ deploy_token: "deploy_token";
4969
5297
  }>;
4970
5298
  issuedAt: z.ZodString;
4971
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
+ }>>>;
4972
5309
  }, z.core.$strip>>;
4973
5310
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
4974
5311
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5064,14 +5401,144 @@ export declare const authGetSessionOperation: OperationDefinition<"auth.getSessi
5064
5401
  source: z.ZodEnum<{
5065
5402
  magic_link: "magic_link";
5066
5403
  scenario_token: "scenario_token";
5404
+ cli_login: "cli_login";
5405
+ deploy_token: "deploy_token";
5067
5406
  }>;
5068
5407
  issuedAt: z.ZodString;
5069
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
+ }>>>;
5070
5418
  }, z.core.$strip>>;
5071
5419
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
5072
5420
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5073
5421
  }, z.core.$strip>;
5074
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>>;
5075
5542
  export declare const authListWorkspaceMembersOperation: OperationDefinition<"auth.listWorkspaceMembers", z.ZodObject<{
5076
5543
  workspaceSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5077
5544
  }, z.core.$strip>, z.ZodObject<{
@@ -5204,9 +5671,20 @@ export declare const authCheckAccessOperation: OperationDefinition<"auth.checkAc
5204
5671
  source: z.ZodEnum<{
5205
5672
  magic_link: "magic_link";
5206
5673
  scenario_token: "scenario_token";
5674
+ cli_login: "cli_login";
5675
+ deploy_token: "deploy_token";
5207
5676
  }>;
5208
5677
  issuedAt: z.ZodString;
5209
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
+ }>>>;
5210
5688
  }, z.core.$strip>>;
5211
5689
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
5212
5690
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5546,10 +6024,10 @@ export declare const businessProfilesGetOperation: OperationDefinition<"business
5546
6024
  businessProfileSlug: z.ZodString;
5547
6025
  versionNumber: z.ZodNumber;
5548
6026
  source: z.ZodEnum<{
6027
+ profile_upload: "profile_upload";
5549
6028
  backfill: "backfill";
5550
6029
  ensure_operator: "ensure_operator";
5551
6030
  system: "system";
5552
- profile_upload: "profile_upload";
5553
6031
  }>;
5554
6032
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5555
6033
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5571,10 +6049,10 @@ export declare const businessProfilesListVersionsOperation: OperationDefinition<
5571
6049
  businessProfileSlug: z.ZodString;
5572
6050
  versionNumber: z.ZodNumber;
5573
6051
  source: z.ZodEnum<{
6052
+ profile_upload: "profile_upload";
5574
6053
  backfill: "backfill";
5575
6054
  ensure_operator: "ensure_operator";
5576
6055
  system: "system";
5577
- profile_upload: "profile_upload";
5578
6056
  }>;
5579
6057
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5580
6058
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5750,10 +6228,10 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5750
6228
  businessProfileSlug: z.ZodString;
5751
6229
  versionNumber: z.ZodNumber;
5752
6230
  source: z.ZodEnum<{
6231
+ profile_upload: "profile_upload";
5753
6232
  backfill: "backfill";
5754
6233
  ensure_operator: "ensure_operator";
5755
6234
  system: "system";
5756
- profile_upload: "profile_upload";
5757
6235
  }>;
5758
6236
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5759
6237
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5767,10 +6245,10 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
5767
6245
  businessProfileSlug: z.ZodString;
5768
6246
  versionNumber: z.ZodNumber;
5769
6247
  source: z.ZodEnum<{
6248
+ profile_upload: "profile_upload";
5770
6249
  backfill: "backfill";
5771
6250
  ensure_operator: "ensure_operator";
5772
6251
  system: "system";
5773
- profile_upload: "profile_upload";
5774
6252
  }>;
5775
6253
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5776
6254
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5887,10 +6365,10 @@ export declare const businessProfilesActivateVersionOperation: OperationDefiniti
5887
6365
  businessProfileSlug: z.ZodString;
5888
6366
  versionNumber: z.ZodNumber;
5889
6367
  source: z.ZodEnum<{
6368
+ profile_upload: "profile_upload";
5890
6369
  backfill: "backfill";
5891
6370
  ensure_operator: "ensure_operator";
5892
6371
  system: "system";
5893
- profile_upload: "profile_upload";
5894
6372
  }>;
5895
6373
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5896
6374
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -5921,10 +6399,10 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
5921
6399
  businessProfileSlug: z.ZodString;
5922
6400
  versionNumber: z.ZodNumber;
5923
6401
  source: z.ZodEnum<{
6402
+ profile_upload: "profile_upload";
5924
6403
  backfill: "backfill";
5925
6404
  ensure_operator: "ensure_operator";
5926
6405
  system: "system";
5927
- profile_upload: "profile_upload";
5928
6406
  }>;
5929
6407
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5930
6408
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15031,6 +15509,7 @@ export declare const operationDefinitions: {
15031
15509
  }, z.core.$strip>>;
15032
15510
  readonly "auth.startCliLoginIntent": OperationDefinition<"auth.startCliLoginIntent", z.ZodObject<{
15033
15511
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15512
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15034
15513
  nextPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15035
15514
  }, z.core.$strip>, z.ZodObject<{
15036
15515
  intent: z.ZodObject<{
@@ -15097,9 +15576,20 @@ export declare const operationDefinitions: {
15097
15576
  source: z.ZodEnum<{
15098
15577
  magic_link: "magic_link";
15099
15578
  scenario_token: "scenario_token";
15579
+ cli_login: "cli_login";
15580
+ deploy_token: "deploy_token";
15100
15581
  }>;
15101
15582
  issuedAt: z.ZodString;
15102
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
+ }>>>;
15103
15593
  }, z.core.$strip>>;
15104
15594
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15105
15595
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15177,9 +15667,20 @@ export declare const operationDefinitions: {
15177
15667
  source: z.ZodEnum<{
15178
15668
  magic_link: "magic_link";
15179
15669
  scenario_token: "scenario_token";
15670
+ cli_login: "cli_login";
15671
+ deploy_token: "deploy_token";
15180
15672
  }>;
15181
15673
  issuedAt: z.ZodString;
15182
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
+ }>>>;
15183
15684
  }, z.core.$strip>>;
15184
15685
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15185
15686
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15253,9 +15754,20 @@ export declare const operationDefinitions: {
15253
15754
  source: z.ZodEnum<{
15254
15755
  magic_link: "magic_link";
15255
15756
  scenario_token: "scenario_token";
15757
+ cli_login: "cli_login";
15758
+ deploy_token: "deploy_token";
15256
15759
  }>;
15257
15760
  issuedAt: z.ZodString;
15258
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
+ }>>>;
15259
15771
  }, z.core.$strip>>;
15260
15772
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15261
15773
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15305,6 +15817,7 @@ export declare const operationDefinitions: {
15305
15817
  accepted: z.ZodBoolean;
15306
15818
  email: z.ZodString;
15307
15819
  alreadySent: z.ZodBoolean;
15820
+ debugCompletionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15308
15821
  }, z.core.$strip>>;
15309
15822
  readonly "auth.completeCliBrowserLogin": OperationDefinition<"auth.completeCliBrowserLogin", z.ZodObject<{
15310
15823
  token: z.ZodString;
@@ -15374,9 +15887,20 @@ export declare const operationDefinitions: {
15374
15887
  source: z.ZodEnum<{
15375
15888
  magic_link: "magic_link";
15376
15889
  scenario_token: "scenario_token";
15890
+ cli_login: "cli_login";
15891
+ deploy_token: "deploy_token";
15377
15892
  }>;
15378
15893
  issuedAt: z.ZodString;
15379
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
+ }>>>;
15380
15904
  }, z.core.$strip>>;
15381
15905
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15382
15906
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15472,14 +15996,144 @@ export declare const operationDefinitions: {
15472
15996
  source: z.ZodEnum<{
15473
15997
  magic_link: "magic_link";
15474
15998
  scenario_token: "scenario_token";
15999
+ cli_login: "cli_login";
16000
+ deploy_token: "deploy_token";
15475
16001
  }>;
15476
16002
  issuedAt: z.ZodString;
15477
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
+ }>>>;
15478
16013
  }, z.core.$strip>>;
15479
16014
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15480
16015
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15481
16016
  }, z.core.$strip>;
15482
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>>;
15483
16137
  readonly "auth.listWorkspaceMembers": OperationDefinition<"auth.listWorkspaceMembers", z.ZodObject<{
15484
16138
  workspaceSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15485
16139
  }, z.core.$strip>, z.ZodObject<{
@@ -15612,9 +16266,20 @@ export declare const operationDefinitions: {
15612
16266
  source: z.ZodEnum<{
15613
16267
  magic_link: "magic_link";
15614
16268
  scenario_token: "scenario_token";
16269
+ cli_login: "cli_login";
16270
+ deploy_token: "deploy_token";
15615
16271
  }>;
15616
16272
  issuedAt: z.ZodString;
15617
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
+ }>>>;
15618
16283
  }, z.core.$strip>>;
15619
16284
  currentWorkspaceId: z.ZodNullable<z.ZodString>;
15620
16285
  currentWorkspaceSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15954,10 +16619,10 @@ export declare const operationDefinitions: {
15954
16619
  businessProfileSlug: z.ZodString;
15955
16620
  versionNumber: z.ZodNumber;
15956
16621
  source: z.ZodEnum<{
16622
+ profile_upload: "profile_upload";
15957
16623
  backfill: "backfill";
15958
16624
  ensure_operator: "ensure_operator";
15959
16625
  system: "system";
15960
- profile_upload: "profile_upload";
15961
16626
  }>;
15962
16627
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15963
16628
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -15979,10 +16644,10 @@ export declare const operationDefinitions: {
15979
16644
  businessProfileSlug: z.ZodString;
15980
16645
  versionNumber: z.ZodNumber;
15981
16646
  source: z.ZodEnum<{
16647
+ profile_upload: "profile_upload";
15982
16648
  backfill: "backfill";
15983
16649
  ensure_operator: "ensure_operator";
15984
16650
  system: "system";
15985
- profile_upload: "profile_upload";
15986
16651
  }>;
15987
16652
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15988
16653
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16158,10 +16823,10 @@ export declare const operationDefinitions: {
16158
16823
  businessProfileSlug: z.ZodString;
16159
16824
  versionNumber: z.ZodNumber;
16160
16825
  source: z.ZodEnum<{
16826
+ profile_upload: "profile_upload";
16161
16827
  backfill: "backfill";
16162
16828
  ensure_operator: "ensure_operator";
16163
16829
  system: "system";
16164
- profile_upload: "profile_upload";
16165
16830
  }>;
16166
16831
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16167
16832
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16175,10 +16840,10 @@ export declare const operationDefinitions: {
16175
16840
  businessProfileSlug: z.ZodString;
16176
16841
  versionNumber: z.ZodNumber;
16177
16842
  source: z.ZodEnum<{
16843
+ profile_upload: "profile_upload";
16178
16844
  backfill: "backfill";
16179
16845
  ensure_operator: "ensure_operator";
16180
16846
  system: "system";
16181
- profile_upload: "profile_upload";
16182
16847
  }>;
16183
16848
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16184
16849
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16295,10 +16960,10 @@ export declare const operationDefinitions: {
16295
16960
  businessProfileSlug: z.ZodString;
16296
16961
  versionNumber: z.ZodNumber;
16297
16962
  source: z.ZodEnum<{
16963
+ profile_upload: "profile_upload";
16298
16964
  backfill: "backfill";
16299
16965
  ensure_operator: "ensure_operator";
16300
16966
  system: "system";
16301
- profile_upload: "profile_upload";
16302
16967
  }>;
16303
16968
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16304
16969
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -16329,10 +16994,10 @@ export declare const operationDefinitions: {
16329
16994
  businessProfileSlug: z.ZodString;
16330
16995
  versionNumber: z.ZodNumber;
16331
16996
  source: z.ZodEnum<{
16997
+ profile_upload: "profile_upload";
16332
16998
  backfill: "backfill";
16333
16999
  ensure_operator: "ensure_operator";
16334
17000
  system: "system";
16335
- profile_upload: "profile_upload";
16336
17001
  }>;
16337
17002
  sourceRepositoryUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16338
17003
  sourceCommitSha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -25353,6 +26018,9 @@ export type OperationInputMap = {
25353
26018
  'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginRequestSchema>;
25354
26019
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenRequestSchema>;
25355
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>;
25356
26024
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersRequestSchema>;
25357
26025
  'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberRequestSchema>;
25358
26026
  'auth.checkAccess': z.infer<typeof authCheckAccessRequestSchema>;
@@ -25458,6 +26126,9 @@ export type OperationOutputMap = {
25458
26126
  'auth.completeCliBrowserLogin': z.infer<typeof authCompleteCliBrowserLoginResponseSchema>;
25459
26127
  'auth.issueScenarioToken': z.infer<typeof authIssueScenarioTokenResponseSchema>;
25460
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>;
25461
26132
  'auth.listWorkspaceMembers': z.infer<typeof authListWorkspaceMembersResponseSchema>;
25462
26133
  'auth.upsertWorkspaceMember': z.infer<typeof authUpsertWorkspaceMemberResponseSchema>;
25463
26134
  'auth.checkAccess': z.infer<typeof authCheckAccessResponseSchema>;