@comfyorg/ingest-types 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zod.gen.d.ts CHANGED
@@ -528,6 +528,77 @@ export declare const zWorkflowApiAssetsRequest: z.ZodObject<{
528
528
  }, {
529
529
  workflow_api_json: Record<string, unknown>;
530
530
  }>;
531
+ /**
532
+ * The user a web session belongs to
533
+ */
534
+ export declare const zWebSessionUser: z.ZodObject<{
535
+ email: z.ZodString;
536
+ email_verified: z.ZodBoolean;
537
+ id: z.ZodString;
538
+ name: z.ZodOptional<z.ZodString>;
539
+ sign_in_provider: z.ZodOptional<z.ZodString>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ email: string;
543
+ email_verified: boolean;
544
+ name?: string | undefined;
545
+ sign_in_provider?: string | undefined;
546
+ }, {
547
+ id: string;
548
+ email: string;
549
+ email_verified: boolean;
550
+ name?: string | undefined;
551
+ sign_in_provider?: string | undefined;
552
+ }>;
553
+ /**
554
+ * The live web session and the user it belongs to
555
+ */
556
+ export declare const zWebSessionResponse: z.ZodObject<{
557
+ absolute_expires_at: z.ZodString;
558
+ csrf_token: z.ZodString;
559
+ expires_at: z.ZodString;
560
+ user: z.ZodObject<{
561
+ email: z.ZodString;
562
+ email_verified: z.ZodBoolean;
563
+ id: z.ZodString;
564
+ name: z.ZodOptional<z.ZodString>;
565
+ sign_in_provider: z.ZodOptional<z.ZodString>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ id: string;
568
+ email: string;
569
+ email_verified: boolean;
570
+ name?: string | undefined;
571
+ sign_in_provider?: string | undefined;
572
+ }, {
573
+ id: string;
574
+ email: string;
575
+ email_verified: boolean;
576
+ name?: string | undefined;
577
+ sign_in_provider?: string | undefined;
578
+ }>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ user: {
581
+ id: string;
582
+ email: string;
583
+ email_verified: boolean;
584
+ name?: string | undefined;
585
+ sign_in_provider?: string | undefined;
586
+ };
587
+ expires_at: string;
588
+ absolute_expires_at: string;
589
+ csrf_token: string;
590
+ }, {
591
+ user: {
592
+ id: string;
593
+ email: string;
594
+ email_verified: boolean;
595
+ name?: string | undefined;
596
+ sign_in_provider?: string | undefined;
597
+ };
598
+ expires_at: string;
599
+ absolute_expires_at: string;
600
+ csrf_token: string;
601
+ }>;
531
602
  /**
532
603
  * Details of a single validation error encountered during asset operations.
533
604
  */
@@ -913,6 +984,53 @@ export declare const zUpdateHubProfileRequest: z.ZodObject<{
913
984
  display_name?: string | undefined;
914
985
  website_urls?: string[] | undefined;
915
986
  }>;
987
+ /**
988
+ * What a credit top-up of the requested amount would grant.
989
+ */
990
+ export declare const zTopupQuoteResponse: z.ZodObject<{
991
+ amount_cents: z.ZodBigInt;
992
+ credits: z.ZodBigInt;
993
+ expires_at: z.ZodString;
994
+ }, "strip", z.ZodTypeAny, {
995
+ expires_at: string;
996
+ amount_cents: bigint;
997
+ credits: bigint;
998
+ }, {
999
+ expires_at: string;
1000
+ amount_cents: bigint;
1001
+ credits: bigint;
1002
+ }>;
1003
+ /**
1004
+ * One persisted tool call attached to an assistant message's content.tool_calls (services/agent/internal/persist.ToolCallSummary), so a chat reload can render the tool-call history a turn produced. Display data only — raw arguments/results are never projected here. Only terminal rows (status ok/error) are ever surfaced; a row a dead turn left in pending/running has no wire-status mapping and is dropped rather than shown as a perpetual-progress chip.
1005
+ */
1006
+ export declare const zToolCallSummary: z.ZodObject<{
1007
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1008
+ error_code: z.ZodOptional<z.ZodString>;
1009
+ finished_at: z.ZodOptional<z.ZodString>;
1010
+ id: z.ZodString;
1011
+ started_at: z.ZodOptional<z.ZodString>;
1012
+ status: z.ZodEnum<["success", "error"]>;
1013
+ tool_call_id: z.ZodString;
1014
+ tool_name: z.ZodString;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ id: string;
1017
+ status: "success" | "error";
1018
+ tool_call_id: string;
1019
+ tool_name: string;
1020
+ duration_ms?: number | undefined;
1021
+ error_code?: string | undefined;
1022
+ finished_at?: string | undefined;
1023
+ started_at?: string | undefined;
1024
+ }, {
1025
+ id: string;
1026
+ status: "success" | "error";
1027
+ tool_call_id: string;
1028
+ tool_name: string;
1029
+ duration_ms?: number | undefined;
1030
+ error_code?: string | undefined;
1031
+ finished_at?: string | undefined;
1032
+ started_at?: string | undefined;
1033
+ }>;
916
1034
  /**
917
1035
  * Pre/post-discount price for a team credit stop, in cents.
918
1036
  */
@@ -1095,15 +1213,15 @@ export declare const zTaskEntry: z.ZodObject<{
1095
1213
  id: string;
1096
1214
  status: "created" | "running" | "completed" | "failed";
1097
1215
  task_name: string;
1098
- completed_at?: string | undefined;
1099
1216
  started_at?: string | undefined;
1217
+ completed_at?: string | undefined;
1100
1218
  }, {
1101
1219
  create_time: string;
1102
1220
  id: string;
1103
1221
  status: "created" | "running" | "completed" | "failed";
1104
1222
  task_name: string;
1105
- completed_at?: string | undefined;
1106
1223
  started_at?: string | undefined;
1224
+ completed_at?: string | undefined;
1107
1225
  }>;
1108
1226
  /**
1109
1227
  * Paginated list of background tasks for the authenticated user.
@@ -1140,15 +1258,15 @@ export declare const zTasksListResponse: z.ZodObject<{
1140
1258
  id: string;
1141
1259
  status: "created" | "running" | "completed" | "failed";
1142
1260
  task_name: string;
1143
- completed_at?: string | undefined;
1144
1261
  started_at?: string | undefined;
1262
+ completed_at?: string | undefined;
1145
1263
  }, {
1146
1264
  create_time: string;
1147
1265
  id: string;
1148
1266
  status: "created" | "running" | "completed" | "failed";
1149
1267
  task_name: string;
1150
- completed_at?: string | undefined;
1151
1268
  started_at?: string | undefined;
1269
+ completed_at?: string | undefined;
1152
1270
  }>, "many">;
1153
1271
  }, "strip", z.ZodTypeAny, {
1154
1272
  pagination: {
@@ -1163,8 +1281,8 @@ export declare const zTasksListResponse: z.ZodObject<{
1163
1281
  id: string;
1164
1282
  status: "created" | "running" | "completed" | "failed";
1165
1283
  task_name: string;
1166
- completed_at?: string | undefined;
1167
1284
  started_at?: string | undefined;
1285
+ completed_at?: string | undefined;
1168
1286
  }[];
1169
1287
  }, {
1170
1288
  pagination: {
@@ -1179,8 +1297,8 @@ export declare const zTasksListResponse: z.ZodObject<{
1179
1297
  id: string;
1180
1298
  status: "created" | "running" | "completed" | "failed";
1181
1299
  task_name: string;
1182
- completed_at?: string | undefined;
1183
1300
  started_at?: string | undefined;
1301
+ completed_at?: string | undefined;
1184
1302
  }[];
1185
1303
  }>;
1186
1304
  /**
@@ -1206,8 +1324,8 @@ export declare const zTaskResponse: z.ZodObject<{
1206
1324
  task_name: string;
1207
1325
  idempotency_key: string;
1208
1326
  payload: Record<string, unknown>;
1209
- completed_at?: string | undefined;
1210
1327
  started_at?: string | undefined;
1328
+ completed_at?: string | undefined;
1211
1329
  error_message?: string | undefined;
1212
1330
  result?: Record<string, unknown> | undefined;
1213
1331
  }, {
@@ -1218,8 +1336,8 @@ export declare const zTaskResponse: z.ZodObject<{
1218
1336
  task_name: string;
1219
1337
  idempotency_key: string;
1220
1338
  payload: Record<string, unknown>;
1221
- completed_at?: string | undefined;
1222
1339
  started_at?: string | undefined;
1340
+ completed_at?: string | undefined;
1223
1341
  error_message?: string | undefined;
1224
1342
  result?: Record<string, unknown> | undefined;
1225
1343
  }>;
@@ -1368,6 +1486,8 @@ export declare const zSubscriptionDuration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
1368
1486
  export declare const zSubscriptionDiscount: z.ZodObject<{
1369
1487
  amount_off_cents: z.ZodOptional<z.ZodBigInt>;
1370
1488
  code: z.ZodString;
1489
+ duration: z.ZodOptional<z.ZodEnum<["once", "repeating", "forever"]>>;
1490
+ duration_in_months: z.ZodOptional<z.ZodBigInt>;
1371
1491
  kind: z.ZodEnum<["plan", "promotion"]>;
1372
1492
  name: z.ZodOptional<z.ZodString>;
1373
1493
  }, "strip", z.ZodTypeAny, {
@@ -1375,11 +1495,15 @@ export declare const zSubscriptionDiscount: z.ZodObject<{
1375
1495
  kind: "plan" | "promotion";
1376
1496
  name?: string | undefined;
1377
1497
  amount_off_cents?: bigint | undefined;
1498
+ duration?: "once" | "repeating" | "forever" | undefined;
1499
+ duration_in_months?: bigint | undefined;
1378
1500
  }, {
1379
1501
  code: string;
1380
1502
  kind: "plan" | "promotion";
1381
1503
  name?: string | undefined;
1382
1504
  amount_off_cents?: bigint | undefined;
1505
+ duration?: "once" | "repeating" | "forever" | undefined;
1506
+ duration_in_months?: bigint | undefined;
1383
1507
  }>;
1384
1508
  /**
1385
1509
  * Response after successfully subscribing to a billing plan.
@@ -1666,6 +1790,7 @@ export declare const zDocOpsResultFrame: z.ZodObject<{
1666
1790
  }>;
1667
1791
  export declare const zDocResetData: z.ZodObject<{
1668
1792
  actor: z.ZodOptional<z.ZodString>;
1793
+ lineage_seq: z.ZodBigInt;
1669
1794
  seq: z.ZodBigInt;
1670
1795
  v: z.ZodNumber;
1671
1796
  workflow_id: z.ZodString;
@@ -1673,11 +1798,13 @@ export declare const zDocResetData: z.ZodObject<{
1673
1798
  workflow_id: string;
1674
1799
  seq: bigint;
1675
1800
  v: number;
1801
+ lineage_seq: bigint;
1676
1802
  actor?: string | undefined;
1677
1803
  }, {
1678
1804
  workflow_id: string;
1679
1805
  seq: bigint;
1680
1806
  v: number;
1807
+ lineage_seq: bigint;
1681
1808
  actor?: string | undefined;
1682
1809
  }>;
1683
1810
  /**
@@ -1686,6 +1813,7 @@ export declare const zDocResetData: z.ZodObject<{
1686
1813
  export declare const zDocResetFrame: z.ZodObject<{
1687
1814
  data: z.ZodObject<{
1688
1815
  actor: z.ZodOptional<z.ZodString>;
1816
+ lineage_seq: z.ZodBigInt;
1689
1817
  seq: z.ZodBigInt;
1690
1818
  v: z.ZodNumber;
1691
1819
  workflow_id: z.ZodString;
@@ -1693,11 +1821,13 @@ export declare const zDocResetFrame: z.ZodObject<{
1693
1821
  workflow_id: string;
1694
1822
  seq: bigint;
1695
1823
  v: number;
1824
+ lineage_seq: bigint;
1696
1825
  actor?: string | undefined;
1697
1826
  }, {
1698
1827
  workflow_id: string;
1699
1828
  seq: bigint;
1700
1829
  v: number;
1830
+ lineage_seq: bigint;
1701
1831
  actor?: string | undefined;
1702
1832
  }>;
1703
1833
  type: z.ZodEnum<["doc_reset"]>;
@@ -1707,6 +1837,7 @@ export declare const zDocResetFrame: z.ZodObject<{
1707
1837
  workflow_id: string;
1708
1838
  seq: bigint;
1709
1839
  v: number;
1840
+ lineage_seq: bigint;
1710
1841
  actor?: string | undefined;
1711
1842
  };
1712
1843
  }, {
@@ -1715,11 +1846,14 @@ export declare const zDocResetFrame: z.ZodObject<{
1715
1846
  workflow_id: string;
1716
1847
  seq: bigint;
1717
1848
  v: number;
1849
+ lineage_seq: bigint;
1718
1850
  actor?: string | undefined;
1719
1851
  };
1720
1852
  }>;
1721
1853
  export declare const zDocUpdateData: z.ZodObject<{
1722
1854
  actor: z.ZodOptional<z.ZodString>;
1855
+ lineage_seq: z.ZodBigInt;
1856
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1723
1857
  seq: z.ZodBigInt;
1724
1858
  update_b64: z.ZodString;
1725
1859
  v: z.ZodNumber;
@@ -1728,14 +1862,18 @@ export declare const zDocUpdateData: z.ZodObject<{
1728
1862
  workflow_id: string;
1729
1863
  seq: bigint;
1730
1864
  v: number;
1865
+ lineage_seq: bigint;
1731
1866
  update_b64: string;
1732
1867
  actor?: string | undefined;
1868
+ op_ids?: string[] | undefined;
1733
1869
  }, {
1734
1870
  workflow_id: string;
1735
1871
  seq: bigint;
1736
1872
  v: number;
1873
+ lineage_seq: bigint;
1737
1874
  update_b64: string;
1738
1875
  actor?: string | undefined;
1876
+ op_ids?: string[] | undefined;
1739
1877
  }>;
1740
1878
  /**
1741
1879
  * Host-to-follower incremental Yjs document update.
@@ -1743,6 +1881,8 @@ export declare const zDocUpdateData: z.ZodObject<{
1743
1881
  export declare const zDocUpdateFrame: z.ZodObject<{
1744
1882
  data: z.ZodObject<{
1745
1883
  actor: z.ZodOptional<z.ZodString>;
1884
+ lineage_seq: z.ZodBigInt;
1885
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1746
1886
  seq: z.ZodBigInt;
1747
1887
  update_b64: z.ZodString;
1748
1888
  v: z.ZodNumber;
@@ -1751,14 +1891,18 @@ export declare const zDocUpdateFrame: z.ZodObject<{
1751
1891
  workflow_id: string;
1752
1892
  seq: bigint;
1753
1893
  v: number;
1894
+ lineage_seq: bigint;
1754
1895
  update_b64: string;
1755
1896
  actor?: string | undefined;
1897
+ op_ids?: string[] | undefined;
1756
1898
  }, {
1757
1899
  workflow_id: string;
1758
1900
  seq: bigint;
1759
1901
  v: number;
1902
+ lineage_seq: bigint;
1760
1903
  update_b64: string;
1761
1904
  actor?: string | undefined;
1905
+ op_ids?: string[] | undefined;
1762
1906
  }>;
1763
1907
  type: z.ZodEnum<["doc_update"]>;
1764
1908
  }, "strip", z.ZodTypeAny, {
@@ -1767,8 +1911,10 @@ export declare const zDocUpdateFrame: z.ZodObject<{
1767
1911
  workflow_id: string;
1768
1912
  seq: bigint;
1769
1913
  v: number;
1914
+ lineage_seq: bigint;
1770
1915
  update_b64: string;
1771
1916
  actor?: string | undefined;
1917
+ op_ids?: string[] | undefined;
1772
1918
  };
1773
1919
  }, {
1774
1920
  type: "doc_update";
@@ -1776,8 +1922,10 @@ export declare const zDocUpdateFrame: z.ZodObject<{
1776
1922
  workflow_id: string;
1777
1923
  seq: bigint;
1778
1924
  v: number;
1925
+ lineage_seq: bigint;
1779
1926
  update_b64: string;
1780
1927
  actor?: string | undefined;
1928
+ op_ids?: string[] | undefined;
1781
1929
  };
1782
1930
  }>;
1783
1931
  /**
@@ -1786,6 +1934,8 @@ export declare const zDocUpdateFrame: z.ZodObject<{
1786
1934
  export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1787
1935
  data: z.ZodObject<{
1788
1936
  actor: z.ZodOptional<z.ZodString>;
1937
+ lineage_seq: z.ZodBigInt;
1938
+ op_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1789
1939
  seq: z.ZodBigInt;
1790
1940
  update_b64: z.ZodString;
1791
1941
  v: z.ZodNumber;
@@ -1794,14 +1944,18 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1794
1944
  workflow_id: string;
1795
1945
  seq: bigint;
1796
1946
  v: number;
1947
+ lineage_seq: bigint;
1797
1948
  update_b64: string;
1798
1949
  actor?: string | undefined;
1950
+ op_ids?: string[] | undefined;
1799
1951
  }, {
1800
1952
  workflow_id: string;
1801
1953
  seq: bigint;
1802
1954
  v: number;
1955
+ lineage_seq: bigint;
1803
1956
  update_b64: string;
1804
1957
  actor?: string | undefined;
1958
+ op_ids?: string[] | undefined;
1805
1959
  }>;
1806
1960
  type: z.ZodEnum<["doc_update"]>;
1807
1961
  }, "strip", z.ZodTypeAny, {
@@ -1810,8 +1964,10 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1810
1964
  workflow_id: string;
1811
1965
  seq: bigint;
1812
1966
  v: number;
1967
+ lineage_seq: bigint;
1813
1968
  update_b64: string;
1814
1969
  actor?: string | undefined;
1970
+ op_ids?: string[] | undefined;
1815
1971
  };
1816
1972
  }, {
1817
1973
  type: "doc_update";
@@ -1819,12 +1975,15 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1819
1975
  workflow_id: string;
1820
1976
  seq: bigint;
1821
1977
  v: number;
1978
+ lineage_seq: bigint;
1822
1979
  update_b64: string;
1823
1980
  actor?: string | undefined;
1981
+ op_ids?: string[] | undefined;
1824
1982
  };
1825
1983
  }>, z.ZodObject<{
1826
1984
  data: z.ZodObject<{
1827
1985
  actor: z.ZodOptional<z.ZodString>;
1986
+ lineage_seq: z.ZodBigInt;
1828
1987
  seq: z.ZodBigInt;
1829
1988
  v: z.ZodNumber;
1830
1989
  workflow_id: z.ZodString;
@@ -1832,11 +1991,13 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1832
1991
  workflow_id: string;
1833
1992
  seq: bigint;
1834
1993
  v: number;
1994
+ lineage_seq: bigint;
1835
1995
  actor?: string | undefined;
1836
1996
  }, {
1837
1997
  workflow_id: string;
1838
1998
  seq: bigint;
1839
1999
  v: number;
2000
+ lineage_seq: bigint;
1840
2001
  actor?: string | undefined;
1841
2002
  }>;
1842
2003
  type: z.ZodEnum<["doc_reset"]>;
@@ -1846,6 +2007,7 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1846
2007
  workflow_id: string;
1847
2008
  seq: bigint;
1848
2009
  v: number;
2010
+ lineage_seq: bigint;
1849
2011
  actor?: string | undefined;
1850
2012
  };
1851
2013
  }, {
@@ -1854,6 +2016,7 @@ export declare const zServerDocFrame: z.ZodUnion<[z.ZodObject<{
1854
2016
  workflow_id: string;
1855
2017
  seq: bigint;
1856
2018
  v: number;
2019
+ lineage_seq: bigint;
1857
2020
  actor?: string | undefined;
1858
2021
  };
1859
2022
  }>, z.ZodObject<{
@@ -2194,6 +2357,16 @@ export declare const zSavedPaymentMethod: z.ZodObject<{
2194
2357
  brand?: string | undefined;
2195
2358
  last4?: string | undefined;
2196
2359
  }>;
2360
+ /**
2361
+ * Response after signing out of all devices
2362
+ */
2363
+ export declare const zRevokeAllSessionsResponse: z.ZodObject<{
2364
+ revoked: z.ZodNumber;
2365
+ }, "strip", z.ZodTypeAny, {
2366
+ revoked: number;
2367
+ }, {
2368
+ revoked: number;
2369
+ }>;
2197
2370
  /**
2198
2371
  * Response after accepting a resubscribe request.
2199
2372
  */
@@ -2220,6 +2393,25 @@ export declare const zResubscribeRequest: z.ZodObject<{
2220
2393
  }, {
2221
2394
  idempotency_key?: string | undefined;
2222
2395
  }>;
2396
+ /**
2397
+ * The newest open renewal invoice of the workspace's Stripe subscription (active, or canceled but not yet ended). Returned only to workspace owners on the stripe billing rail while billing_status is payment_failed or paused, and not while a payment for it is processing. hosted_invoice_url is a bearer payment link.
2398
+ */
2399
+ export declare const zRenewalInvoice: z.ZodObject<{
2400
+ amount_due: z.ZodBigInt;
2401
+ currency: z.ZodString;
2402
+ hosted_invoice_url: z.ZodString;
2403
+ next_payment_attempt: z.ZodOptional<z.ZodString>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ currency: string;
2406
+ amount_due: bigint;
2407
+ hosted_invoice_url: string;
2408
+ next_payment_attempt?: string | undefined;
2409
+ }, {
2410
+ currency: string;
2411
+ amount_due: bigint;
2412
+ hosted_invoice_url: string;
2413
+ next_payment_attempt?: string | undefined;
2414
+ }>;
2223
2415
  /**
2224
2416
  * Response after a queue management action (delete or clear).
2225
2417
  */
@@ -2563,6 +2755,7 @@ export declare const zPlanSeatSummary: z.ZodObject<{
2563
2755
  export declare const zPreviewPlanInfo: z.ZodObject<{
2564
2756
  credits_cents: z.ZodBigInt;
2565
2757
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
2758
+ list_price_cents: z.ZodOptional<z.ZodBigInt>;
2566
2759
  period_end: z.ZodOptional<z.ZodString>;
2567
2760
  period_start: z.ZodOptional<z.ZodString>;
2568
2761
  price_cents: z.ZodBigInt;
@@ -2583,8 +2776,8 @@ export declare const zPreviewPlanInfo: z.ZodObject<{
2583
2776
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
2584
2777
  }, "strip", z.ZodTypeAny, {
2585
2778
  price_cents: bigint;
2586
- credits_cents: bigint;
2587
2779
  duration: "MONTHLY" | "ANNUAL";
2780
+ credits_cents: bigint;
2588
2781
  seat_summary: {
2589
2782
  seat_count: number;
2590
2783
  total_cost_cents: bigint;
@@ -2594,10 +2787,11 @@ export declare const zPreviewPlanInfo: z.ZodObject<{
2594
2787
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2595
2788
  period_end?: string | undefined;
2596
2789
  period_start?: string | undefined;
2790
+ list_price_cents?: bigint | undefined;
2597
2791
  }, {
2598
2792
  price_cents: bigint;
2599
- credits_cents: bigint;
2600
2793
  duration: "MONTHLY" | "ANNUAL";
2794
+ credits_cents: bigint;
2601
2795
  seat_summary: {
2602
2796
  seat_count: number;
2603
2797
  total_cost_cents: bigint;
@@ -2607,6 +2801,7 @@ export declare const zPreviewPlanInfo: z.ZodObject<{
2607
2801
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2608
2802
  period_end?: string | undefined;
2609
2803
  period_start?: string | undefined;
2804
+ list_price_cents?: bigint | undefined;
2610
2805
  }>;
2611
2806
  /**
2612
2807
  * Itemized cost preview for a pending subscription change.
@@ -2614,6 +2809,7 @@ export declare const zPreviewPlanInfo: z.ZodObject<{
2614
2809
  export declare const zPreviewSubscribeResponse: z.ZodObject<{
2615
2810
  allowed: z.ZodBoolean;
2616
2811
  amount_due_cents: z.ZodOptional<z.ZodBigInt>;
2812
+ balance_applied_cents: z.ZodOptional<z.ZodBigInt>;
2617
2813
  cost_next_period_cents: z.ZodBigInt;
2618
2814
  cost_today_cents: z.ZodBigInt;
2619
2815
  credits_next_period_cents: z.ZodBigInt;
@@ -2622,6 +2818,7 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2622
2818
  current_plan: z.ZodOptional<z.ZodObject<{
2623
2819
  credits_cents: z.ZodBigInt;
2624
2820
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
2821
+ list_price_cents: z.ZodOptional<z.ZodBigInt>;
2625
2822
  period_end: z.ZodOptional<z.ZodString>;
2626
2823
  period_start: z.ZodOptional<z.ZodString>;
2627
2824
  price_cents: z.ZodBigInt;
@@ -2642,8 +2839,8 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2642
2839
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
2643
2840
  }, "strip", z.ZodTypeAny, {
2644
2841
  price_cents: bigint;
2645
- credits_cents: bigint;
2646
2842
  duration: "MONTHLY" | "ANNUAL";
2843
+ credits_cents: bigint;
2647
2844
  seat_summary: {
2648
2845
  seat_count: number;
2649
2846
  total_cost_cents: bigint;
@@ -2653,10 +2850,11 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2653
2850
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2654
2851
  period_end?: string | undefined;
2655
2852
  period_start?: string | undefined;
2853
+ list_price_cents?: bigint | undefined;
2656
2854
  }, {
2657
2855
  price_cents: bigint;
2658
- credits_cents: bigint;
2659
2856
  duration: "MONTHLY" | "ANNUAL";
2857
+ credits_cents: bigint;
2660
2858
  seat_summary: {
2661
2859
  seat_count: number;
2662
2860
  total_cost_cents: bigint;
@@ -2666,10 +2864,13 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2666
2864
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2667
2865
  period_end?: string | undefined;
2668
2866
  period_start?: string | undefined;
2867
+ list_price_cents?: bigint | undefined;
2669
2868
  }>>;
2670
2869
  discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2671
2870
  amount_off_cents: z.ZodOptional<z.ZodBigInt>;
2672
2871
  code: z.ZodString;
2872
+ duration: z.ZodOptional<z.ZodEnum<["once", "repeating", "forever"]>>;
2873
+ duration_in_months: z.ZodOptional<z.ZodBigInt>;
2673
2874
  kind: z.ZodEnum<["plan", "promotion"]>;
2674
2875
  name: z.ZodOptional<z.ZodString>;
2675
2876
  }, "strip", z.ZodTypeAny, {
@@ -2677,17 +2878,22 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2677
2878
  kind: "plan" | "promotion";
2678
2879
  name?: string | undefined;
2679
2880
  amount_off_cents?: bigint | undefined;
2881
+ duration?: "once" | "repeating" | "forever" | undefined;
2882
+ duration_in_months?: bigint | undefined;
2680
2883
  }, {
2681
2884
  code: string;
2682
2885
  kind: "plan" | "promotion";
2683
2886
  name?: string | undefined;
2684
2887
  amount_off_cents?: bigint | undefined;
2888
+ duration?: "once" | "repeating" | "forever" | undefined;
2889
+ duration_in_months?: bigint | undefined;
2685
2890
  }>, "many">>;
2686
2891
  effective_at: z.ZodString;
2687
2892
  is_immediate: z.ZodBoolean;
2688
2893
  new_plan: z.ZodObject<{
2689
2894
  credits_cents: z.ZodBigInt;
2690
2895
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
2896
+ list_price_cents: z.ZodOptional<z.ZodBigInt>;
2691
2897
  period_end: z.ZodOptional<z.ZodString>;
2692
2898
  period_start: z.ZodOptional<z.ZodString>;
2693
2899
  price_cents: z.ZodBigInt;
@@ -2708,8 +2914,8 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2708
2914
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
2709
2915
  }, "strip", z.ZodTypeAny, {
2710
2916
  price_cents: bigint;
2711
- credits_cents: bigint;
2712
2917
  duration: "MONTHLY" | "ANNUAL";
2918
+ credits_cents: bigint;
2713
2919
  seat_summary: {
2714
2920
  seat_count: number;
2715
2921
  total_cost_cents: bigint;
@@ -2719,10 +2925,11 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2719
2925
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2720
2926
  period_end?: string | undefined;
2721
2927
  period_start?: string | undefined;
2928
+ list_price_cents?: bigint | undefined;
2722
2929
  }, {
2723
2930
  price_cents: bigint;
2724
- credits_cents: bigint;
2725
2931
  duration: "MONTHLY" | "ANNUAL";
2932
+ credits_cents: bigint;
2726
2933
  seat_summary: {
2727
2934
  seat_count: number;
2728
2935
  total_cost_cents: bigint;
@@ -2732,6 +2939,7 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2732
2939
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2733
2940
  period_end?: string | undefined;
2734
2941
  period_start?: string | undefined;
2942
+ list_price_cents?: bigint | undefined;
2735
2943
  }>;
2736
2944
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
2737
2945
  promotion_code: z.ZodOptional<z.ZodString>;
@@ -2742,6 +2950,7 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2742
2950
  renewal_amount_cents: z.ZodOptional<z.ZodBigInt>;
2743
2951
  renewal_at: z.ZodOptional<z.ZodString>;
2744
2952
  requires_reactivation_confirmation: z.ZodOptional<z.ZodBoolean>;
2953
+ subtotal_cents: z.ZodOptional<z.ZodBigInt>;
2745
2954
  transition_type: z.ZodEnum<["new_subscription", "upgrade", "downgrade", "duration_change"]>;
2746
2955
  }, "strip", z.ZodTypeAny, {
2747
2956
  effective_at: string;
@@ -2753,8 +2962,8 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2753
2962
  is_immediate: boolean;
2754
2963
  new_plan: {
2755
2964
  price_cents: bigint;
2756
- credits_cents: bigint;
2757
2965
  duration: "MONTHLY" | "ANNUAL";
2966
+ credits_cents: bigint;
2758
2967
  seat_summary: {
2759
2968
  seat_count: number;
2760
2969
  total_cost_cents: bigint;
@@ -2764,6 +2973,7 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2764
2973
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2765
2974
  period_end?: string | undefined;
2766
2975
  period_start?: string | undefined;
2976
+ list_price_cents?: bigint | undefined;
2767
2977
  };
2768
2978
  transition_type: "new_subscription" | "upgrade" | "downgrade" | "duration_change";
2769
2979
  currency?: string | undefined;
@@ -2772,10 +2982,11 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2772
2982
  quote_id?: string | undefined;
2773
2983
  quote_version?: number | undefined;
2774
2984
  amount_due_cents?: bigint | undefined;
2985
+ balance_applied_cents?: bigint | undefined;
2775
2986
  current_plan?: {
2776
2987
  price_cents: bigint;
2777
- credits_cents: bigint;
2778
2988
  duration: "MONTHLY" | "ANNUAL";
2989
+ credits_cents: bigint;
2779
2990
  seat_summary: {
2780
2991
  seat_count: number;
2781
2992
  total_cost_cents: bigint;
@@ -2785,18 +2996,22 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2785
2996
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2786
2997
  period_end?: string | undefined;
2787
2998
  period_start?: string | undefined;
2999
+ list_price_cents?: bigint | undefined;
2788
3000
  } | undefined;
2789
3001
  discounts?: {
2790
3002
  code: string;
2791
3003
  kind: "plan" | "promotion";
2792
3004
  name?: string | undefined;
2793
3005
  amount_off_cents?: bigint | undefined;
3006
+ duration?: "once" | "repeating" | "forever" | undefined;
3007
+ duration_in_months?: bigint | undefined;
2794
3008
  }[] | undefined;
2795
3009
  payment_method_configuration_id?: string | undefined;
2796
3010
  reason?: string | undefined;
2797
3011
  renewal_amount_cents?: bigint | undefined;
2798
3012
  renewal_at?: string | undefined;
2799
3013
  requires_reactivation_confirmation?: boolean | undefined;
3014
+ subtotal_cents?: bigint | undefined;
2800
3015
  }, {
2801
3016
  effective_at: string;
2802
3017
  allowed: boolean;
@@ -2807,8 +3022,8 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2807
3022
  is_immediate: boolean;
2808
3023
  new_plan: {
2809
3024
  price_cents: bigint;
2810
- credits_cents: bigint;
2811
3025
  duration: "MONTHLY" | "ANNUAL";
3026
+ credits_cents: bigint;
2812
3027
  seat_summary: {
2813
3028
  seat_count: number;
2814
3029
  total_cost_cents: bigint;
@@ -2818,6 +3033,7 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2818
3033
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2819
3034
  period_end?: string | undefined;
2820
3035
  period_start?: string | undefined;
3036
+ list_price_cents?: bigint | undefined;
2821
3037
  };
2822
3038
  transition_type: "new_subscription" | "upgrade" | "downgrade" | "duration_change";
2823
3039
  currency?: string | undefined;
@@ -2826,10 +3042,11 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2826
3042
  quote_id?: string | undefined;
2827
3043
  quote_version?: number | undefined;
2828
3044
  amount_due_cents?: bigint | undefined;
3045
+ balance_applied_cents?: bigint | undefined;
2829
3046
  current_plan?: {
2830
3047
  price_cents: bigint;
2831
- credits_cents: bigint;
2832
3048
  duration: "MONTHLY" | "ANNUAL";
3049
+ credits_cents: bigint;
2833
3050
  seat_summary: {
2834
3051
  seat_count: number;
2835
3052
  total_cost_cents: bigint;
@@ -2839,18 +3056,22 @@ export declare const zPreviewSubscribeResponse: z.ZodObject<{
2839
3056
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
2840
3057
  period_end?: string | undefined;
2841
3058
  period_start?: string | undefined;
3059
+ list_price_cents?: bigint | undefined;
2842
3060
  } | undefined;
2843
3061
  discounts?: {
2844
3062
  code: string;
2845
3063
  kind: "plan" | "promotion";
2846
3064
  name?: string | undefined;
2847
3065
  amount_off_cents?: bigint | undefined;
3066
+ duration?: "once" | "repeating" | "forever" | undefined;
3067
+ duration_in_months?: bigint | undefined;
2848
3068
  }[] | undefined;
2849
3069
  payment_method_configuration_id?: string | undefined;
2850
3070
  reason?: string | undefined;
2851
3071
  renewal_amount_cents?: bigint | undefined;
2852
3072
  renewal_at?: string | undefined;
2853
3073
  requires_reactivation_confirmation?: boolean | undefined;
3074
+ subtotal_cents?: bigint | undefined;
2854
3075
  }>;
2855
3076
  /**
2856
3077
  * Request body for previewing the cost of a plan subscription change.
@@ -2902,6 +3123,7 @@ export declare const zPlan: z.ZodObject<{
2902
3123
  available: boolean;
2903
3124
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
2904
3125
  }>;
3126
+ credits: z.ZodOptional<z.ZodBigInt>;
2905
3127
  credits_cents: z.ZodBigInt;
2906
3128
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
2907
3129
  max_seats: z.ZodBigInt;
@@ -2923,8 +3145,8 @@ export declare const zPlan: z.ZodObject<{
2923
3145
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
2924
3146
  }, "strip", z.ZodTypeAny, {
2925
3147
  price_cents: bigint;
2926
- credits_cents: bigint;
2927
3148
  duration: "MONTHLY" | "ANNUAL";
3149
+ credits_cents: bigint;
2928
3150
  seat_summary: {
2929
3151
  seat_count: number;
2930
3152
  total_cost_cents: bigint;
@@ -2937,10 +3159,11 @@ export declare const zPlan: z.ZodObject<{
2937
3159
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
2938
3160
  };
2939
3161
  max_seats: bigint;
3162
+ credits?: bigint | undefined;
2940
3163
  }, {
2941
3164
  price_cents: bigint;
2942
- credits_cents: bigint;
2943
3165
  duration: "MONTHLY" | "ANNUAL";
3166
+ credits_cents: bigint;
2944
3167
  seat_summary: {
2945
3168
  seat_count: number;
2946
3169
  total_cost_cents: bigint;
@@ -2953,6 +3176,7 @@ export declare const zPlan: z.ZodObject<{
2953
3176
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
2954
3177
  };
2955
3178
  max_seats: bigint;
3179
+ credits?: bigint | undefined;
2956
3180
  }>;
2957
3181
  /**
2958
3182
  * An outstanding workspace invitation that has not yet been accepted.
@@ -3243,8 +3467,8 @@ export declare const zOAuthConsentChallenge: z.ZodObject<{
3243
3467
  type: "personal" | "team";
3244
3468
  }>, "many">;
3245
3469
  }, "strip", z.ZodTypeAny, {
3246
- client_display_name: string;
3247
3470
  csrf_token: string;
3471
+ client_display_name: string;
3248
3472
  oauth_request_id: string;
3249
3473
  redirect_uri: string;
3250
3474
  resource_display_name: string;
@@ -3256,8 +3480,8 @@ export declare const zOAuthConsentChallenge: z.ZodObject<{
3256
3480
  type: "personal" | "team";
3257
3481
  }[];
3258
3482
  }, {
3259
- client_display_name: string;
3260
3483
  csrf_token: string;
3484
+ client_display_name: string;
3261
3485
  oauth_request_id: string;
3262
3486
  redirect_uri: string;
3263
3487
  resource_display_name: string;
@@ -3419,6 +3643,38 @@ export declare const zMember: z.ZodObject<{
3419
3643
  email: string;
3420
3644
  is_original_owner: boolean;
3421
3645
  }>;
3646
+ /**
3647
+ * 400 for a missing `filename` or a `res` that is not a number, on the media routes served outside the generated wrapper.
3648
+ */
3649
+ export declare const zMediaQueryError: z.ZodObject<{
3650
+ error: z.ZodString;
3651
+ }, "strip", z.ZodTypeAny, {
3652
+ error: string;
3653
+ }, {
3654
+ error: string;
3655
+ }>;
3656
+ /**
3657
+ * A 400 from a media route served outside the generated wrapper: ErrorResponse, or MediaQueryError for a bad query parameter.
3658
+ */
3659
+ export declare const zMediaBadRequestError: z.ZodUnion<[z.ZodObject<{
3660
+ code: z.ZodString;
3661
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3662
+ message: z.ZodString;
3663
+ }, "strip", z.ZodTypeAny, {
3664
+ code: string;
3665
+ message: string;
3666
+ details?: Record<string, unknown> | undefined;
3667
+ }, {
3668
+ code: string;
3669
+ message: string;
3670
+ details?: Record<string, unknown> | undefined;
3671
+ }>, z.ZodObject<{
3672
+ error: z.ZodString;
3673
+ }, "strip", z.ZodTypeAny, {
3674
+ error: string;
3675
+ }, {
3676
+ error: string;
3677
+ }>]>;
3422
3678
  /**
3423
3679
  * Paginated list of workspaces the authenticated user belongs to.
3424
3680
  */
@@ -4251,7 +4507,7 @@ export declare const zJobStatusResponse: z.ZodObject<{
4251
4507
  created_at: string;
4252
4508
  updated_at: string;
4253
4509
  id: string;
4254
- status: "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch" | "error";
4510
+ status: "error" | "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch";
4255
4511
  error_message?: string | null | undefined;
4256
4512
  assigned_inference?: string | null | undefined;
4257
4513
  last_state_update?: string | undefined;
@@ -4259,7 +4515,7 @@ export declare const zJobStatusResponse: z.ZodObject<{
4259
4515
  created_at: string;
4260
4516
  updated_at: string;
4261
4517
  id: string;
4262
- status: "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch" | "error";
4518
+ status: "error" | "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch";
4263
4519
  error_message?: string | null | undefined;
4264
4520
  assigned_inference?: string | null | undefined;
4265
4521
  last_state_update?: string | undefined;
@@ -6023,6 +6279,74 @@ export declare const zForkWorkflowRequest: z.ZodObject<{
6023
6279
  source_version: number;
6024
6280
  name?: string | undefined;
6025
6281
  }>;
6282
+ /**
6283
+ * 403 for a credential the route does not take. `accepted` names the ones it does, as `WWW-Authenticate` does.
6284
+ */
6285
+ export declare const zAuthTypeNotAllowedError: z.ZodObject<{
6286
+ accepted: z.ZodArray<z.ZodString, "many">;
6287
+ error: z.ZodObject<{
6288
+ message: z.ZodString;
6289
+ type: z.ZodEnum<["auth_type_not_allowed"]>;
6290
+ }, "strip", z.ZodTypeAny, {
6291
+ message: string;
6292
+ type: "auth_type_not_allowed";
6293
+ }, {
6294
+ message: string;
6295
+ type: "auth_type_not_allowed";
6296
+ }>;
6297
+ }, "strip", z.ZodTypeAny, {
6298
+ error: {
6299
+ message: string;
6300
+ type: "auth_type_not_allowed";
6301
+ };
6302
+ accepted: string[];
6303
+ }, {
6304
+ error: {
6305
+ message: string;
6306
+ type: "auth_type_not_allowed";
6307
+ };
6308
+ accepted: string[];
6309
+ }>;
6310
+ /**
6311
+ * A 403 body: ErrorResponse, or AuthTypeNotAllowedError for a credential the route does not take.
6312
+ */
6313
+ export declare const zForbiddenError: z.ZodUnion<[z.ZodObject<{
6314
+ code: z.ZodString;
6315
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6316
+ message: z.ZodString;
6317
+ }, "strip", z.ZodTypeAny, {
6318
+ code: string;
6319
+ message: string;
6320
+ details?: Record<string, unknown> | undefined;
6321
+ }, {
6322
+ code: string;
6323
+ message: string;
6324
+ details?: Record<string, unknown> | undefined;
6325
+ }>, z.ZodObject<{
6326
+ accepted: z.ZodArray<z.ZodString, "many">;
6327
+ error: z.ZodObject<{
6328
+ message: z.ZodString;
6329
+ type: z.ZodEnum<["auth_type_not_allowed"]>;
6330
+ }, "strip", z.ZodTypeAny, {
6331
+ message: string;
6332
+ type: "auth_type_not_allowed";
6333
+ }, {
6334
+ message: string;
6335
+ type: "auth_type_not_allowed";
6336
+ }>;
6337
+ }, "strip", z.ZodTypeAny, {
6338
+ error: {
6339
+ message: string;
6340
+ type: "auth_type_not_allowed";
6341
+ };
6342
+ accepted: string[];
6343
+ }, {
6344
+ error: {
6345
+ message: string;
6346
+ type: "auth_type_not_allowed";
6347
+ };
6348
+ accepted: string[];
6349
+ }>]>;
6026
6350
  /**
6027
6351
  * Response after submitting feedback
6028
6352
  */
@@ -6212,6 +6536,7 @@ export declare const zCurrentWorkspaceResponse: z.ZodObject<{
6212
6536
  auth_method: z.ZodString;
6213
6537
  id: z.ZodString;
6214
6538
  name: z.ZodString;
6539
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6215
6540
  role: z.ZodOptional<z.ZodEnum<["owner", "member"]>>;
6216
6541
  type: z.ZodEnum<["personal", "team"]>;
6217
6542
  }, "strip", z.ZodTypeAny, {
@@ -6220,12 +6545,14 @@ export declare const zCurrentWorkspaceResponse: z.ZodObject<{
6220
6545
  type: "personal" | "team";
6221
6546
  auth_method: string;
6222
6547
  role?: "owner" | "member" | undefined;
6548
+ permissions?: string[] | undefined;
6223
6549
  }, {
6224
6550
  name: string;
6225
6551
  id: string;
6226
6552
  type: "personal" | "team";
6227
6553
  auth_method: string;
6228
6554
  role?: "owner" | "member" | undefined;
6555
+ permissions?: string[] | undefined;
6229
6556
  }>;
6230
6557
  /**
6231
6558
  * Request body for creating a new workspace.
@@ -6329,13 +6656,13 @@ export declare const zCreateTopupResponse: z.ZodObject<{
6329
6656
  topup_id: z.ZodString;
6330
6657
  }, "strip", z.ZodTypeAny, {
6331
6658
  status: "completed" | "failed" | "pending";
6332
- billing_op_id: string;
6333
6659
  amount_cents: bigint;
6660
+ billing_op_id: string;
6334
6661
  topup_id: string;
6335
6662
  }, {
6336
6663
  status: "completed" | "failed" | "pending";
6337
- billing_op_id: string;
6338
6664
  amount_cents: bigint;
6665
+ billing_op_id: string;
6339
6666
  topup_id: string;
6340
6667
  }>;
6341
6668
  /**
@@ -6354,6 +6681,16 @@ export declare const zCreateTopupRequest: z.ZodObject<{
6354
6681
  idempotency_key?: string | undefined;
6355
6682
  checkout_attempt_id?: string | undefined;
6356
6683
  }>;
6684
+ /**
6685
+ * Request body for previewing a credit top-up.
6686
+ */
6687
+ export declare const zCreateTopupQuoteRequest: z.ZodObject<{
6688
+ amount_cents: z.ZodBigInt;
6689
+ }, "strip", z.ZodTypeAny, {
6690
+ amount_cents: bigint;
6691
+ }, {
6692
+ amount_cents: bigint;
6693
+ }>;
6357
6694
  /**
6358
6695
  * A hosted Stripe Checkout session for a credit top-up.
6359
6696
  */
@@ -6375,12 +6712,12 @@ export declare const zCreateTopupCheckoutRequest: z.ZodObject<{
6375
6712
  idempotency_key: z.ZodOptional<z.ZodString>;
6376
6713
  return_url: z.ZodString;
6377
6714
  }, "strip", z.ZodTypeAny, {
6378
- return_url: string;
6379
6715
  amount_cents: bigint;
6716
+ return_url: string;
6380
6717
  idempotency_key?: string | undefined;
6381
6718
  }, {
6382
- return_url: string;
6383
6719
  amount_cents: bigint;
6720
+ return_url: string;
6384
6721
  idempotency_key?: string | undefined;
6385
6722
  }>;
6386
6723
  /**
@@ -6461,14 +6798,17 @@ export declare const zChurnkeyAuthResponse: z.ZodObject<{
6461
6798
  auth_hash: z.ZodString;
6462
6799
  customer_id: z.ZodString;
6463
6800
  mode: z.ZodEnum<["live", "test", "sandbox"]>;
6801
+ offer_subscription_id: z.ZodOptional<z.ZodString>;
6464
6802
  }, "strip", z.ZodTypeAny, {
6465
6803
  auth_hash: string;
6466
6804
  customer_id: string;
6467
6805
  mode: "live" | "test" | "sandbox";
6806
+ offer_subscription_id?: string | undefined;
6468
6807
  }, {
6469
6808
  auth_hash: string;
6470
6809
  customer_id: string;
6471
6810
  mode: "live" | "test" | "sandbox";
6811
+ offer_subscription_id?: string | undefined;
6472
6812
  }>;
6473
6813
  /**
6474
6814
  * Response after successfully cancelling a subscription.
@@ -6553,6 +6893,22 @@ export declare const zBillingStatusResponse: z.ZodObject<{
6553
6893
  pending_billing_op_type: z.ZodOptional<z.ZodEnum<["subscription", "topup"]>>;
6554
6894
  plan_slug: z.ZodOptional<z.ZodString>;
6555
6895
  renewal_date: z.ZodOptional<z.ZodString>;
6896
+ renewal_invoice: z.ZodOptional<z.ZodObject<{
6897
+ amount_due: z.ZodBigInt;
6898
+ currency: z.ZodString;
6899
+ hosted_invoice_url: z.ZodString;
6900
+ next_payment_attempt: z.ZodOptional<z.ZodString>;
6901
+ }, "strip", z.ZodTypeAny, {
6902
+ currency: string;
6903
+ amount_due: bigint;
6904
+ hosted_invoice_url: string;
6905
+ next_payment_attempt?: string | undefined;
6906
+ }, {
6907
+ currency: string;
6908
+ amount_due: bigint;
6909
+ hosted_invoice_url: string;
6910
+ next_payment_attempt?: string | undefined;
6911
+ }>>;
6556
6912
  scheduled_change: z.ZodNullable<z.ZodObject<{
6557
6913
  effective_at: z.ZodString;
6558
6914
  plan_slug: z.ZodString;
@@ -6586,6 +6942,8 @@ export declare const zBillingStatusResponse: z.ZodObject<{
6586
6942
  stop_usd: bigint;
6587
6943
  } | null;
6588
6944
  }>>;
6945
+ scoped_effective_has_funds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6946
+ scoped_has_funds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6589
6947
  subscription_duration: z.ZodOptional<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
6590
6948
  subscription_status: z.ZodOptional<z.ZodEnum<["active", "ended", "canceled"]>>;
6591
6949
  subscription_tier: z.ZodOptional<z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>>;
@@ -6631,6 +6989,14 @@ export declare const zBillingStatusResponse: z.ZodObject<{
6631
6989
  pending_billing_op_id?: string | undefined;
6632
6990
  pending_billing_op_type?: "subscription" | "topup" | undefined;
6633
6991
  renewal_date?: string | undefined;
6992
+ renewal_invoice?: {
6993
+ currency: string;
6994
+ amount_due: bigint;
6995
+ hosted_invoice_url: string;
6996
+ next_payment_attempt?: string | undefined;
6997
+ } | undefined;
6998
+ scoped_effective_has_funds?: Record<string, boolean> | undefined;
6999
+ scoped_has_funds?: Record<string, boolean> | undefined;
6634
7000
  subscription_duration?: "MONTHLY" | "ANNUAL" | undefined;
6635
7001
  subscription_status?: "active" | "ended" | "canceled" | undefined;
6636
7002
  }, {
@@ -6662,6 +7028,14 @@ export declare const zBillingStatusResponse: z.ZodObject<{
6662
7028
  pending_billing_op_id?: string | undefined;
6663
7029
  pending_billing_op_type?: "subscription" | "topup" | undefined;
6664
7030
  renewal_date?: string | undefined;
7031
+ renewal_invoice?: {
7032
+ currency: string;
7033
+ amount_due: bigint;
7034
+ hosted_invoice_url: string;
7035
+ next_payment_attempt?: string | undefined;
7036
+ } | undefined;
7037
+ scoped_effective_has_funds?: Record<string, boolean> | undefined;
7038
+ scoped_has_funds?: Record<string, boolean> | undefined;
6665
7039
  subscription_duration?: "MONTHLY" | "ANNUAL" | undefined;
6666
7040
  subscription_status?: "active" | "ended" | "canceled" | undefined;
6667
7041
  }>;
@@ -6681,6 +7055,7 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6681
7055
  available: boolean;
6682
7056
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
6683
7057
  }>;
7058
+ credits: z.ZodOptional<z.ZodBigInt>;
6684
7059
  credits_cents: z.ZodBigInt;
6685
7060
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
6686
7061
  max_seats: z.ZodBigInt;
@@ -6702,8 +7077,8 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6702
7077
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
6703
7078
  }, "strip", z.ZodTypeAny, {
6704
7079
  price_cents: bigint;
6705
- credits_cents: bigint;
6706
7080
  duration: "MONTHLY" | "ANNUAL";
7081
+ credits_cents: bigint;
6707
7082
  seat_summary: {
6708
7083
  seat_count: number;
6709
7084
  total_cost_cents: bigint;
@@ -6716,10 +7091,11 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6716
7091
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
6717
7092
  };
6718
7093
  max_seats: bigint;
7094
+ credits?: bigint | undefined;
6719
7095
  }, {
6720
7096
  price_cents: bigint;
6721
- credits_cents: bigint;
6722
7097
  duration: "MONTHLY" | "ANNUAL";
7098
+ credits_cents: bigint;
6723
7099
  seat_summary: {
6724
7100
  seat_count: number;
6725
7101
  total_cost_cents: bigint;
@@ -6732,6 +7108,7 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6732
7108
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
6733
7109
  };
6734
7110
  max_seats: bigint;
7111
+ credits?: bigint | undefined;
6735
7112
  }>, "many">;
6736
7113
  team_credit_stops: z.ZodOptional<z.ZodObject<{
6737
7114
  default_stop_index: z.ZodNumber;
@@ -6813,8 +7190,8 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6813
7190
  }, "strip", z.ZodTypeAny, {
6814
7191
  plans: {
6815
7192
  price_cents: bigint;
6816
- credits_cents: bigint;
6817
7193
  duration: "MONTHLY" | "ANNUAL";
7194
+ credits_cents: bigint;
6818
7195
  seat_summary: {
6819
7196
  seat_count: number;
6820
7197
  total_cost_cents: bigint;
@@ -6827,6 +7204,7 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6827
7204
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
6828
7205
  };
6829
7206
  max_seats: bigint;
7207
+ credits?: bigint | undefined;
6830
7208
  }[];
6831
7209
  current_plan_slug?: string | undefined;
6832
7210
  team_credit_stops?: {
@@ -6847,8 +7225,8 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6847
7225
  }, {
6848
7226
  plans: {
6849
7227
  price_cents: bigint;
6850
- credits_cents: bigint;
6851
7228
  duration: "MONTHLY" | "ANNUAL";
7229
+ credits_cents: bigint;
6852
7230
  seat_summary: {
6853
7231
  seat_count: number;
6854
7232
  total_cost_cents: bigint;
@@ -6861,6 +7239,7 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6861
7239
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
6862
7240
  };
6863
7241
  max_seats: bigint;
7242
+ credits?: bigint | undefined;
6864
7243
  }[];
6865
7244
  current_plan_slug?: string | undefined;
6866
7245
  team_credit_stops?: {
@@ -6879,18 +7258,47 @@ export declare const zBillingPlansResponse: z.ZodObject<{
6879
7258
  }[];
6880
7259
  } | undefined;
6881
7260
  }>;
7261
+ /**
7262
+ * Display only. The plan the operation targets; for a scheduled change,
7263
+ * the plan it switches to at period end. Present only for succeeded
7264
+ * plan changes, initial subscriptions and resubscribes. Visible to any
7265
+ * workspace member who can read the operation.
7266
+ *
7267
+ */
7268
+ export declare const zBillingOpReceiptPlan: z.ZodObject<{
7269
+ duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
7270
+ slug: z.ZodString;
7271
+ }, "strip", z.ZodTypeAny, {
7272
+ duration: "MONTHLY" | "ANNUAL";
7273
+ slug: string;
7274
+ }, {
7275
+ duration: "MONTHLY" | "ANNUAL";
7276
+ slug: string;
7277
+ }>;
6882
7278
  /**
6883
7279
  * Status of an asynchronous billing operation.
6884
7280
  */
6885
7281
  export declare const zBillingOpStatusResponse: z.ZodObject<{
6886
7282
  action_url: z.ZodOptional<z.ZodString>;
7283
+ amount_charged_cents: z.ZodOptional<z.ZodBigInt>;
6887
7284
  authentication_state: z.ZodOptional<z.ZodEnum<["requires_action", "processing", "failed_retryable", "succeeded", "reconciliation_needed"]>>;
6888
7285
  completed_at: z.ZodOptional<z.ZodString>;
6889
- decline_reason: z.ZodOptional<z.ZodEnum<["card_declined", "insufficient_funds", "expired_card", "incorrect_cvc", "authentication_required", "authentication_failed", "processing_error", "generic"]>>;
7286
+ credits_added: z.ZodOptional<z.ZodBigInt>;
7287
+ decline_reason: z.ZodOptional<z.ZodEnum<["card_declined", "insufficient_funds", "expired_card", "incorrect_cvc", "authentication_required", "authentication_failed", "processing_error", "payment_not_completed", "generic"]>>;
6890
7288
  error_message: z.ZodOptional<z.ZodString>;
6891
7289
  id: z.ZodString;
6892
7290
  payment_intent_client_secret: z.ZodOptional<z.ZodString>;
6893
7291
  phase: z.ZodOptional<z.ZodEnum<["awaiting_payment_method", "awaiting_invoice_payment", "in_progress"]>>;
7292
+ plan: z.ZodOptional<z.ZodObject<{
7293
+ duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
7294
+ slug: z.ZodString;
7295
+ }, "strip", z.ZodTypeAny, {
7296
+ duration: "MONTHLY" | "ANNUAL";
7297
+ slug: string;
7298
+ }, {
7299
+ duration: "MONTHLY" | "ANNUAL";
7300
+ slug: string;
7301
+ }>>;
6894
7302
  recovery_action: z.ZodOptional<z.ZodEnum<["retry", "replace_payment_method", "authenticate_payment", "contact_support"]>>;
6895
7303
  retryable: z.ZodOptional<z.ZodBoolean>;
6896
7304
  started_at: z.ZodString;
@@ -6899,12 +7307,18 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
6899
7307
  id: string;
6900
7308
  status: "failed" | "pending" | "succeeded" | "reconciliation_needed";
6901
7309
  started_at: string;
7310
+ plan?: {
7311
+ duration: "MONTHLY" | "ANNUAL";
7312
+ slug: string;
7313
+ } | undefined;
6902
7314
  completed_at?: string | undefined;
6903
7315
  error_message?: string | undefined;
6904
7316
  action_url?: string | undefined;
6905
7317
  payment_intent_client_secret?: string | undefined;
7318
+ amount_charged_cents?: bigint | undefined;
6906
7319
  authentication_state?: "requires_action" | "processing" | "failed_retryable" | "succeeded" | "reconciliation_needed" | undefined;
6907
- decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "generic" | undefined;
7320
+ credits_added?: bigint | undefined;
7321
+ decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "payment_not_completed" | "generic" | undefined;
6908
7322
  phase?: "in_progress" | "awaiting_payment_method" | "awaiting_invoice_payment" | undefined;
6909
7323
  recovery_action?: "retry" | "replace_payment_method" | "authenticate_payment" | "contact_support" | undefined;
6910
7324
  retryable?: boolean | undefined;
@@ -6912,12 +7326,18 @@ export declare const zBillingOpStatusResponse: z.ZodObject<{
6912
7326
  id: string;
6913
7327
  status: "failed" | "pending" | "succeeded" | "reconciliation_needed";
6914
7328
  started_at: string;
7329
+ plan?: {
7330
+ duration: "MONTHLY" | "ANNUAL";
7331
+ slug: string;
7332
+ } | undefined;
6915
7333
  completed_at?: string | undefined;
6916
7334
  error_message?: string | undefined;
6917
7335
  action_url?: string | undefined;
6918
7336
  payment_intent_client_secret?: string | undefined;
7337
+ amount_charged_cents?: bigint | undefined;
6919
7338
  authentication_state?: "requires_action" | "processing" | "failed_retryable" | "succeeded" | "reconciliation_needed" | undefined;
6920
- decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "generic" | undefined;
7339
+ credits_added?: bigint | undefined;
7340
+ decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "payment_not_completed" | "generic" | undefined;
6921
7341
  phase?: "in_progress" | "awaiting_payment_method" | "awaiting_invoice_payment" | undefined;
6922
7342
  recovery_action?: "retry" | "replace_payment_method" | "authenticate_payment" | "contact_support" | undefined;
6923
7343
  retryable?: boolean | undefined;
@@ -7865,14 +8285,12 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
7865
8285
  attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7866
8286
  content: z.ZodString;
7867
8287
  current_tab: z.ZodOptional<z.ZodString>;
8288
+ current_tab_unbound: z.ZodOptional<z.ZodBoolean>;
7868
8289
  draft: z.ZodOptional<z.ZodObject<{
7869
8290
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7870
- version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7871
8291
  }, "strip", z.ZodTypeAny, {
7872
- version?: number | null | undefined;
7873
8292
  content?: Record<string, unknown> | undefined;
7874
8293
  }, {
7875
- version?: number | null | undefined;
7876
8294
  content?: Record<string, unknown> | undefined;
7877
8295
  }>>;
7878
8296
  open_tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7902,8 +8320,8 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
7902
8320
  workflow_id?: string | undefined;
7903
8321
  attachments?: string[] | undefined;
7904
8322
  current_tab?: string | undefined;
8323
+ current_tab_unbound?: boolean | undefined;
7905
8324
  draft?: {
7906
- version?: number | null | undefined;
7907
8325
  content?: Record<string, unknown> | undefined;
7908
8326
  } | undefined;
7909
8327
  open_tabs?: {
@@ -7920,8 +8338,8 @@ export declare const zAgentPostMessageRequest: z.ZodObject<{
7920
8338
  workflow_id?: string | undefined;
7921
8339
  attachments?: string[] | undefined;
7922
8340
  current_tab?: string | undefined;
8341
+ current_tab_unbound?: boolean | undefined;
7923
8342
  draft?: {
7924
- version?: number | null | undefined;
7925
8343
  content?: Record<string, unknown> | undefined;
7926
8344
  } | undefined;
7927
8345
  open_tabs?: {
@@ -7972,7 +8390,58 @@ export declare const zAgentPendingAsk: z.ZodObject<{
7972
8390
  * A persisted message in an agent thread.
7973
8391
  */
7974
8392
  export declare const zAgentMessage: z.ZodObject<{
7975
- content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8393
+ content: z.ZodOptional<z.ZodObject<{
8394
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
8395
+ duration_ms: z.ZodOptional<z.ZodNumber>;
8396
+ error_code: z.ZodOptional<z.ZodString>;
8397
+ finished_at: z.ZodOptional<z.ZodString>;
8398
+ id: z.ZodString;
8399
+ started_at: z.ZodOptional<z.ZodString>;
8400
+ status: z.ZodEnum<["success", "error"]>;
8401
+ tool_call_id: z.ZodString;
8402
+ tool_name: z.ZodString;
8403
+ }, "strip", z.ZodTypeAny, {
8404
+ id: string;
8405
+ status: "success" | "error";
8406
+ tool_call_id: string;
8407
+ tool_name: string;
8408
+ duration_ms?: number | undefined;
8409
+ error_code?: string | undefined;
8410
+ finished_at?: string | undefined;
8411
+ started_at?: string | undefined;
8412
+ }, {
8413
+ id: string;
8414
+ status: "success" | "error";
8415
+ tool_call_id: string;
8416
+ tool_name: string;
8417
+ duration_ms?: number | undefined;
8418
+ error_code?: string | undefined;
8419
+ finished_at?: string | undefined;
8420
+ started_at?: string | undefined;
8421
+ }>, "many">>;
8422
+ }, "strip", z.ZodTypeAny, {
8423
+ tool_calls?: {
8424
+ id: string;
8425
+ status: "success" | "error";
8426
+ tool_call_id: string;
8427
+ tool_name: string;
8428
+ duration_ms?: number | undefined;
8429
+ error_code?: string | undefined;
8430
+ finished_at?: string | undefined;
8431
+ started_at?: string | undefined;
8432
+ }[] | undefined;
8433
+ }, {
8434
+ tool_calls?: {
8435
+ id: string;
8436
+ status: "success" | "error";
8437
+ tool_call_id: string;
8438
+ tool_name: string;
8439
+ duration_ms?: number | undefined;
8440
+ error_code?: string | undefined;
8441
+ finished_at?: string | undefined;
8442
+ started_at?: string | undefined;
8443
+ }[] | undefined;
8444
+ }>>;
7976
8445
  id: z.ZodString;
7977
8446
  pending_ask: z.ZodOptional<z.ZodObject<{
7978
8447
  allow_other: z.ZodBoolean;
@@ -8019,7 +8488,18 @@ export declare const zAgentMessage: z.ZodObject<{
8019
8488
  thread_id: string;
8020
8489
  turn_id: string;
8021
8490
  workflow_id?: string | undefined;
8022
- content?: Record<string, unknown> | undefined;
8491
+ content?: {
8492
+ tool_calls?: {
8493
+ id: string;
8494
+ status: "success" | "error";
8495
+ tool_call_id: string;
8496
+ tool_name: string;
8497
+ duration_ms?: number | undefined;
8498
+ error_code?: string | undefined;
8499
+ finished_at?: string | undefined;
8500
+ started_at?: string | undefined;
8501
+ }[] | undefined;
8502
+ } | undefined;
8023
8503
  pending_ask?: {
8024
8504
  options: Record<string, unknown>[];
8025
8505
  kind: "ask_user" | "run_approval";
@@ -8039,7 +8519,18 @@ export declare const zAgentMessage: z.ZodObject<{
8039
8519
  thread_id: string;
8040
8520
  turn_id: string;
8041
8521
  workflow_id?: string | undefined;
8042
- content?: Record<string, unknown> | undefined;
8522
+ content?: {
8523
+ tool_calls?: {
8524
+ id: string;
8525
+ status: "success" | "error";
8526
+ tool_call_id: string;
8527
+ tool_name: string;
8528
+ duration_ms?: number | undefined;
8529
+ error_code?: string | undefined;
8530
+ finished_at?: string | undefined;
8531
+ started_at?: string | undefined;
8532
+ }[] | undefined;
8533
+ } | undefined;
8043
8534
  pending_ask?: {
8044
8535
  options: Record<string, unknown>[];
8045
8536
  kind: "ask_user" | "run_approval";
@@ -8393,6 +8884,22 @@ export declare const zAssetCreatedWritable: z.ZodIntersection<z.ZodObject<{
8393
8884
  }, {
8394
8885
  created_new: boolean;
8395
8886
  }>>;
8887
+ /**
8888
+ * The workspace a media request reads from, where a media tag cannot
8889
+ * send `X-Comfy-Workspace-ID`. It applies only while
8890
+ * `web_session_enabled` is on for the user; with it off, and always on
8891
+ * the `CookieAuth` cookie, it is ignored.
8892
+ *
8893
+ * On a `WebSessionAuth` request it selects the workspace: a workspace
8894
+ * the user cannot access is 403 `workspace_access_denied`, and a
8895
+ * malformed value, or one that disagrees with `X-Comfy-Workspace-ID`,
8896
+ * is 400 `workspace_id_invalid`. A token or API key keeps its own
8897
+ * workspace, and naming another is 400 `workspace_id_invalid`. A cookie
8898
+ * request that names no workspace looks a filename up across all of the
8899
+ * user's workspaces, and an asset id up in the personal one.
8900
+ *
8901
+ */
8902
+ export declare const zMediaWorkspaceId: z.ZodString;
8396
8903
  /**
8397
8904
  * JWKS response
8398
8905
  */
@@ -8904,7 +9411,58 @@ export declare const zAgentGetMessagesPath: z.ZodObject<{
8904
9411
  * Messages in the thread, ordered by seq
8905
9412
  */
8906
9413
  export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
8907
- content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9414
+ content: z.ZodOptional<z.ZodObject<{
9415
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
9416
+ duration_ms: z.ZodOptional<z.ZodNumber>;
9417
+ error_code: z.ZodOptional<z.ZodString>;
9418
+ finished_at: z.ZodOptional<z.ZodString>;
9419
+ id: z.ZodString;
9420
+ started_at: z.ZodOptional<z.ZodString>;
9421
+ status: z.ZodEnum<["success", "error"]>;
9422
+ tool_call_id: z.ZodString;
9423
+ tool_name: z.ZodString;
9424
+ }, "strip", z.ZodTypeAny, {
9425
+ id: string;
9426
+ status: "success" | "error";
9427
+ tool_call_id: string;
9428
+ tool_name: string;
9429
+ duration_ms?: number | undefined;
9430
+ error_code?: string | undefined;
9431
+ finished_at?: string | undefined;
9432
+ started_at?: string | undefined;
9433
+ }, {
9434
+ id: string;
9435
+ status: "success" | "error";
9436
+ tool_call_id: string;
9437
+ tool_name: string;
9438
+ duration_ms?: number | undefined;
9439
+ error_code?: string | undefined;
9440
+ finished_at?: string | undefined;
9441
+ started_at?: string | undefined;
9442
+ }>, "many">>;
9443
+ }, "strip", z.ZodTypeAny, {
9444
+ tool_calls?: {
9445
+ id: string;
9446
+ status: "success" | "error";
9447
+ tool_call_id: string;
9448
+ tool_name: string;
9449
+ duration_ms?: number | undefined;
9450
+ error_code?: string | undefined;
9451
+ finished_at?: string | undefined;
9452
+ started_at?: string | undefined;
9453
+ }[] | undefined;
9454
+ }, {
9455
+ tool_calls?: {
9456
+ id: string;
9457
+ status: "success" | "error";
9458
+ tool_call_id: string;
9459
+ tool_name: string;
9460
+ duration_ms?: number | undefined;
9461
+ error_code?: string | undefined;
9462
+ finished_at?: string | undefined;
9463
+ started_at?: string | undefined;
9464
+ }[] | undefined;
9465
+ }>>;
8908
9466
  id: z.ZodString;
8909
9467
  pending_ask: z.ZodOptional<z.ZodObject<{
8910
9468
  allow_other: z.ZodBoolean;
@@ -8951,7 +9509,18 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
8951
9509
  thread_id: string;
8952
9510
  turn_id: string;
8953
9511
  workflow_id?: string | undefined;
8954
- content?: Record<string, unknown> | undefined;
9512
+ content?: {
9513
+ tool_calls?: {
9514
+ id: string;
9515
+ status: "success" | "error";
9516
+ tool_call_id: string;
9517
+ tool_name: string;
9518
+ duration_ms?: number | undefined;
9519
+ error_code?: string | undefined;
9520
+ finished_at?: string | undefined;
9521
+ started_at?: string | undefined;
9522
+ }[] | undefined;
9523
+ } | undefined;
8955
9524
  pending_ask?: {
8956
9525
  options: Record<string, unknown>[];
8957
9526
  kind: "ask_user" | "run_approval";
@@ -8971,7 +9540,18 @@ export declare const zAgentGetMessagesResponse: z.ZodArray<z.ZodObject<{
8971
9540
  thread_id: string;
8972
9541
  turn_id: string;
8973
9542
  workflow_id?: string | undefined;
8974
- content?: Record<string, unknown> | undefined;
9543
+ content?: {
9544
+ tool_calls?: {
9545
+ id: string;
9546
+ status: "success" | "error";
9547
+ tool_call_id: string;
9548
+ tool_name: string;
9549
+ duration_ms?: number | undefined;
9550
+ error_code?: string | undefined;
9551
+ finished_at?: string | undefined;
9552
+ started_at?: string | undefined;
9553
+ }[] | undefined;
9554
+ } | undefined;
8975
9555
  pending_ask?: {
8976
9556
  options: Record<string, unknown>[];
8977
9557
  kind: "ask_user" | "run_approval";
@@ -8988,14 +9568,12 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
8988
9568
  attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8989
9569
  content: z.ZodString;
8990
9570
  current_tab: z.ZodOptional<z.ZodString>;
9571
+ current_tab_unbound: z.ZodOptional<z.ZodBoolean>;
8991
9572
  draft: z.ZodOptional<z.ZodObject<{
8992
9573
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8993
- version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8994
9574
  }, "strip", z.ZodTypeAny, {
8995
- version?: number | null | undefined;
8996
9575
  content?: Record<string, unknown> | undefined;
8997
9576
  }, {
8998
- version?: number | null | undefined;
8999
9577
  content?: Record<string, unknown> | undefined;
9000
9578
  }>>;
9001
9579
  open_tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -9025,8 +9603,8 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
9025
9603
  workflow_id?: string | undefined;
9026
9604
  attachments?: string[] | undefined;
9027
9605
  current_tab?: string | undefined;
9606
+ current_tab_unbound?: boolean | undefined;
9028
9607
  draft?: {
9029
- version?: number | null | undefined;
9030
9608
  content?: Record<string, unknown> | undefined;
9031
9609
  } | undefined;
9032
9610
  open_tabs?: {
@@ -9043,8 +9621,8 @@ export declare const zAgentPostMessageBody: z.ZodObject<{
9043
9621
  workflow_id?: string | undefined;
9044
9622
  attachments?: string[] | undefined;
9045
9623
  current_tab?: string | undefined;
9624
+ current_tab_unbound?: boolean | undefined;
9046
9625
  draft?: {
9047
- version?: number | null | undefined;
9048
9626
  content?: Record<string, unknown> | undefined;
9049
9627
  } | undefined;
9050
9628
  open_tabs?: {
@@ -9516,9 +10094,12 @@ export declare const zGetAssetContentPath: z.ZodObject<{
9516
10094
  }>;
9517
10095
  export declare const zGetAssetContentQuery: z.ZodObject<{
9518
10096
  disposition: z.ZodDefault<z.ZodOptional<z.ZodEnum<["inline", "attachment"]>>>;
10097
+ workspace_id: z.ZodOptional<z.ZodString>;
9519
10098
  }, "strip", z.ZodTypeAny, {
9520
10099
  disposition: "inline" | "attachment";
10100
+ workspace_id?: string | undefined;
9521
10101
  }, {
10102
+ workspace_id?: string | undefined;
9522
10103
  disposition?: "inline" | "attachment" | undefined;
9523
10104
  }>;
9524
10105
  /**
@@ -10240,6 +10821,55 @@ export declare const zDeleteSessionResponse2: z.ZodObject<{
10240
10821
  }, {
10241
10822
  success: boolean;
10242
10823
  }>;
10824
+ /**
10825
+ * The live session
10826
+ */
10827
+ export declare const zGetSessionResponse: z.ZodObject<{
10828
+ absolute_expires_at: z.ZodString;
10829
+ csrf_token: z.ZodString;
10830
+ expires_at: z.ZodString;
10831
+ user: z.ZodObject<{
10832
+ email: z.ZodString;
10833
+ email_verified: z.ZodBoolean;
10834
+ id: z.ZodString;
10835
+ name: z.ZodOptional<z.ZodString>;
10836
+ sign_in_provider: z.ZodOptional<z.ZodString>;
10837
+ }, "strip", z.ZodTypeAny, {
10838
+ id: string;
10839
+ email: string;
10840
+ email_verified: boolean;
10841
+ name?: string | undefined;
10842
+ sign_in_provider?: string | undefined;
10843
+ }, {
10844
+ id: string;
10845
+ email: string;
10846
+ email_verified: boolean;
10847
+ name?: string | undefined;
10848
+ sign_in_provider?: string | undefined;
10849
+ }>;
10850
+ }, "strip", z.ZodTypeAny, {
10851
+ user: {
10852
+ id: string;
10853
+ email: string;
10854
+ email_verified: boolean;
10855
+ name?: string | undefined;
10856
+ sign_in_provider?: string | undefined;
10857
+ };
10858
+ expires_at: string;
10859
+ absolute_expires_at: string;
10860
+ csrf_token: string;
10861
+ }, {
10862
+ user: {
10863
+ id: string;
10864
+ email: string;
10865
+ email_verified: boolean;
10866
+ name?: string | undefined;
10867
+ sign_in_provider?: string | undefined;
10868
+ };
10869
+ expires_at: string;
10870
+ absolute_expires_at: string;
10871
+ csrf_token: string;
10872
+ }>;
10243
10873
  /**
10244
10874
  * Session created successfully
10245
10875
  */
@@ -10253,6 +10883,16 @@ export declare const zCreateSessionResponse2: z.ZodObject<{
10253
10883
  success: boolean;
10254
10884
  expiresIn?: number | undefined;
10255
10885
  }>;
10886
+ /**
10887
+ * Every session ended
10888
+ */
10889
+ export declare const zRevokeAllSessionsResponse2: z.ZodObject<{
10890
+ revoked: z.ZodNumber;
10891
+ }, "strip", z.ZodTypeAny, {
10892
+ revoked: number;
10893
+ }, {
10894
+ revoked: number;
10895
+ }>;
10256
10896
  export declare const zExchangeTokenBody: z.ZodObject<{
10257
10897
  workspace_id: z.ZodOptional<z.ZodString>;
10258
10898
  }, "strip", z.ZodTypeAny, {
@@ -10431,14 +11071,17 @@ export declare const zGetChurnkeyAuthResponse: z.ZodObject<{
10431
11071
  auth_hash: z.ZodString;
10432
11072
  customer_id: z.ZodString;
10433
11073
  mode: z.ZodEnum<["live", "test", "sandbox"]>;
11074
+ offer_subscription_id: z.ZodOptional<z.ZodString>;
10434
11075
  }, "strip", z.ZodTypeAny, {
10435
11076
  auth_hash: string;
10436
11077
  customer_id: string;
10437
11078
  mode: "live" | "test" | "sandbox";
11079
+ offer_subscription_id?: string | undefined;
10438
11080
  }, {
10439
11081
  auth_hash: string;
10440
11082
  customer_id: string;
10441
11083
  mode: "live" | "test" | "sandbox";
11084
+ offer_subscription_id?: string | undefined;
10442
11085
  }>;
10443
11086
  /**
10444
11087
  * Success
@@ -10719,13 +11362,25 @@ export declare const zGetBillingOpStatusPath: z.ZodObject<{
10719
11362
  */
10720
11363
  export declare const zGetBillingOpStatusResponse: z.ZodObject<{
10721
11364
  action_url: z.ZodOptional<z.ZodString>;
11365
+ amount_charged_cents: z.ZodOptional<z.ZodBigInt>;
10722
11366
  authentication_state: z.ZodOptional<z.ZodEnum<["requires_action", "processing", "failed_retryable", "succeeded", "reconciliation_needed"]>>;
10723
11367
  completed_at: z.ZodOptional<z.ZodString>;
10724
- decline_reason: z.ZodOptional<z.ZodEnum<["card_declined", "insufficient_funds", "expired_card", "incorrect_cvc", "authentication_required", "authentication_failed", "processing_error", "generic"]>>;
11368
+ credits_added: z.ZodOptional<z.ZodBigInt>;
11369
+ decline_reason: z.ZodOptional<z.ZodEnum<["card_declined", "insufficient_funds", "expired_card", "incorrect_cvc", "authentication_required", "authentication_failed", "processing_error", "payment_not_completed", "generic"]>>;
10725
11370
  error_message: z.ZodOptional<z.ZodString>;
10726
11371
  id: z.ZodString;
10727
11372
  payment_intent_client_secret: z.ZodOptional<z.ZodString>;
10728
11373
  phase: z.ZodOptional<z.ZodEnum<["awaiting_payment_method", "awaiting_invoice_payment", "in_progress"]>>;
11374
+ plan: z.ZodOptional<z.ZodObject<{
11375
+ duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
11376
+ slug: z.ZodString;
11377
+ }, "strip", z.ZodTypeAny, {
11378
+ duration: "MONTHLY" | "ANNUAL";
11379
+ slug: string;
11380
+ }, {
11381
+ duration: "MONTHLY" | "ANNUAL";
11382
+ slug: string;
11383
+ }>>;
10729
11384
  recovery_action: z.ZodOptional<z.ZodEnum<["retry", "replace_payment_method", "authenticate_payment", "contact_support"]>>;
10730
11385
  retryable: z.ZodOptional<z.ZodBoolean>;
10731
11386
  started_at: z.ZodString;
@@ -10734,12 +11389,18 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
10734
11389
  id: string;
10735
11390
  status: "failed" | "pending" | "succeeded" | "reconciliation_needed";
10736
11391
  started_at: string;
11392
+ plan?: {
11393
+ duration: "MONTHLY" | "ANNUAL";
11394
+ slug: string;
11395
+ } | undefined;
10737
11396
  completed_at?: string | undefined;
10738
11397
  error_message?: string | undefined;
10739
11398
  action_url?: string | undefined;
10740
11399
  payment_intent_client_secret?: string | undefined;
11400
+ amount_charged_cents?: bigint | undefined;
10741
11401
  authentication_state?: "requires_action" | "processing" | "failed_retryable" | "succeeded" | "reconciliation_needed" | undefined;
10742
- decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "generic" | undefined;
11402
+ credits_added?: bigint | undefined;
11403
+ decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "payment_not_completed" | "generic" | undefined;
10743
11404
  phase?: "in_progress" | "awaiting_payment_method" | "awaiting_invoice_payment" | undefined;
10744
11405
  recovery_action?: "retry" | "replace_payment_method" | "authenticate_payment" | "contact_support" | undefined;
10745
11406
  retryable?: boolean | undefined;
@@ -10747,12 +11408,18 @@ export declare const zGetBillingOpStatusResponse: z.ZodObject<{
10747
11408
  id: string;
10748
11409
  status: "failed" | "pending" | "succeeded" | "reconciliation_needed";
10749
11410
  started_at: string;
11411
+ plan?: {
11412
+ duration: "MONTHLY" | "ANNUAL";
11413
+ slug: string;
11414
+ } | undefined;
10750
11415
  completed_at?: string | undefined;
10751
11416
  error_message?: string | undefined;
10752
11417
  action_url?: string | undefined;
10753
11418
  payment_intent_client_secret?: string | undefined;
11419
+ amount_charged_cents?: bigint | undefined;
10754
11420
  authentication_state?: "requires_action" | "processing" | "failed_retryable" | "succeeded" | "reconciliation_needed" | undefined;
10755
- decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "generic" | undefined;
11421
+ credits_added?: bigint | undefined;
11422
+ decline_reason?: "card_declined" | "insufficient_funds" | "expired_card" | "incorrect_cvc" | "authentication_required" | "authentication_failed" | "processing_error" | "payment_not_completed" | "generic" | undefined;
10756
11423
  phase?: "in_progress" | "awaiting_payment_method" | "awaiting_invoice_payment" | undefined;
10757
11424
  recovery_action?: "retry" | "replace_payment_method" | "authenticate_payment" | "contact_support" | undefined;
10758
11425
  retryable?: boolean | undefined;
@@ -10812,6 +11479,7 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10812
11479
  available: boolean;
10813
11480
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
10814
11481
  }>;
11482
+ credits: z.ZodOptional<z.ZodBigInt>;
10815
11483
  credits_cents: z.ZodBigInt;
10816
11484
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
10817
11485
  max_seats: z.ZodBigInt;
@@ -10833,8 +11501,8 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10833
11501
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
10834
11502
  }, "strip", z.ZodTypeAny, {
10835
11503
  price_cents: bigint;
10836
- credits_cents: bigint;
10837
11504
  duration: "MONTHLY" | "ANNUAL";
11505
+ credits_cents: bigint;
10838
11506
  seat_summary: {
10839
11507
  seat_count: number;
10840
11508
  total_cost_cents: bigint;
@@ -10847,10 +11515,11 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10847
11515
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
10848
11516
  };
10849
11517
  max_seats: bigint;
11518
+ credits?: bigint | undefined;
10850
11519
  }, {
10851
11520
  price_cents: bigint;
10852
- credits_cents: bigint;
10853
11521
  duration: "MONTHLY" | "ANNUAL";
11522
+ credits_cents: bigint;
10854
11523
  seat_summary: {
10855
11524
  seat_count: number;
10856
11525
  total_cost_cents: bigint;
@@ -10863,6 +11532,7 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10863
11532
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
10864
11533
  };
10865
11534
  max_seats: bigint;
11535
+ credits?: bigint | undefined;
10866
11536
  }>, "many">;
10867
11537
  team_credit_stops: z.ZodOptional<z.ZodObject<{
10868
11538
  default_stop_index: z.ZodNumber;
@@ -10944,8 +11614,8 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10944
11614
  }, "strip", z.ZodTypeAny, {
10945
11615
  plans: {
10946
11616
  price_cents: bigint;
10947
- credits_cents: bigint;
10948
11617
  duration: "MONTHLY" | "ANNUAL";
11618
+ credits_cents: bigint;
10949
11619
  seat_summary: {
10950
11620
  seat_count: number;
10951
11621
  total_cost_cents: bigint;
@@ -10958,6 +11628,7 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10958
11628
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
10959
11629
  };
10960
11630
  max_seats: bigint;
11631
+ credits?: bigint | undefined;
10961
11632
  }[];
10962
11633
  current_plan_slug?: string | undefined;
10963
11634
  team_credit_stops?: {
@@ -10978,8 +11649,8 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10978
11649
  }, {
10979
11650
  plans: {
10980
11651
  price_cents: bigint;
10981
- credits_cents: bigint;
10982
11652
  duration: "MONTHLY" | "ANNUAL";
11653
+ credits_cents: bigint;
10983
11654
  seat_summary: {
10984
11655
  seat_count: number;
10985
11656
  total_cost_cents: bigint;
@@ -10992,6 +11663,7 @@ export declare const zGetBillingPlansResponse: z.ZodObject<{
10992
11663
  reason?: "same_plan" | "incompatible_transition" | "requires_team" | "requires_personal" | "exceeds_max_seats" | undefined;
10993
11664
  };
10994
11665
  max_seats: bigint;
11666
+ credits?: bigint | undefined;
10995
11667
  }[];
10996
11668
  current_plan_slug?: string | undefined;
10997
11669
  team_credit_stops?: {
@@ -11032,6 +11704,7 @@ export declare const zPreviewSubscribeBody: z.ZodObject<{
11032
11704
  export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11033
11705
  allowed: z.ZodBoolean;
11034
11706
  amount_due_cents: z.ZodOptional<z.ZodBigInt>;
11707
+ balance_applied_cents: z.ZodOptional<z.ZodBigInt>;
11035
11708
  cost_next_period_cents: z.ZodBigInt;
11036
11709
  cost_today_cents: z.ZodBigInt;
11037
11710
  credits_next_period_cents: z.ZodBigInt;
@@ -11040,6 +11713,7 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11040
11713
  current_plan: z.ZodOptional<z.ZodObject<{
11041
11714
  credits_cents: z.ZodBigInt;
11042
11715
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
11716
+ list_price_cents: z.ZodOptional<z.ZodBigInt>;
11043
11717
  period_end: z.ZodOptional<z.ZodString>;
11044
11718
  period_start: z.ZodOptional<z.ZodString>;
11045
11719
  price_cents: z.ZodBigInt;
@@ -11060,8 +11734,8 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11060
11734
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
11061
11735
  }, "strip", z.ZodTypeAny, {
11062
11736
  price_cents: bigint;
11063
- credits_cents: bigint;
11064
11737
  duration: "MONTHLY" | "ANNUAL";
11738
+ credits_cents: bigint;
11065
11739
  seat_summary: {
11066
11740
  seat_count: number;
11067
11741
  total_cost_cents: bigint;
@@ -11071,10 +11745,11 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11071
11745
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11072
11746
  period_end?: string | undefined;
11073
11747
  period_start?: string | undefined;
11748
+ list_price_cents?: bigint | undefined;
11074
11749
  }, {
11075
11750
  price_cents: bigint;
11076
- credits_cents: bigint;
11077
11751
  duration: "MONTHLY" | "ANNUAL";
11752
+ credits_cents: bigint;
11078
11753
  seat_summary: {
11079
11754
  seat_count: number;
11080
11755
  total_cost_cents: bigint;
@@ -11084,10 +11759,13 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11084
11759
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11085
11760
  period_end?: string | undefined;
11086
11761
  period_start?: string | undefined;
11762
+ list_price_cents?: bigint | undefined;
11087
11763
  }>>;
11088
11764
  discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
11089
11765
  amount_off_cents: z.ZodOptional<z.ZodBigInt>;
11090
11766
  code: z.ZodString;
11767
+ duration: z.ZodOptional<z.ZodEnum<["once", "repeating", "forever"]>>;
11768
+ duration_in_months: z.ZodOptional<z.ZodBigInt>;
11091
11769
  kind: z.ZodEnum<["plan", "promotion"]>;
11092
11770
  name: z.ZodOptional<z.ZodString>;
11093
11771
  }, "strip", z.ZodTypeAny, {
@@ -11095,17 +11773,22 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11095
11773
  kind: "plan" | "promotion";
11096
11774
  name?: string | undefined;
11097
11775
  amount_off_cents?: bigint | undefined;
11776
+ duration?: "once" | "repeating" | "forever" | undefined;
11777
+ duration_in_months?: bigint | undefined;
11098
11778
  }, {
11099
11779
  code: string;
11100
11780
  kind: "plan" | "promotion";
11101
11781
  name?: string | undefined;
11102
11782
  amount_off_cents?: bigint | undefined;
11783
+ duration?: "once" | "repeating" | "forever" | undefined;
11784
+ duration_in_months?: bigint | undefined;
11103
11785
  }>, "many">>;
11104
11786
  effective_at: z.ZodString;
11105
11787
  is_immediate: z.ZodBoolean;
11106
11788
  new_plan: z.ZodObject<{
11107
11789
  credits_cents: z.ZodBigInt;
11108
11790
  duration: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
11791
+ list_price_cents: z.ZodOptional<z.ZodBigInt>;
11109
11792
  period_end: z.ZodOptional<z.ZodString>;
11110
11793
  period_start: z.ZodOptional<z.ZodString>;
11111
11794
  price_cents: z.ZodBigInt;
@@ -11126,8 +11809,8 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11126
11809
  tier: z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>;
11127
11810
  }, "strip", z.ZodTypeAny, {
11128
11811
  price_cents: bigint;
11129
- credits_cents: bigint;
11130
11812
  duration: "MONTHLY" | "ANNUAL";
11813
+ credits_cents: bigint;
11131
11814
  seat_summary: {
11132
11815
  seat_count: number;
11133
11816
  total_cost_cents: bigint;
@@ -11137,10 +11820,11 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11137
11820
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11138
11821
  period_end?: string | undefined;
11139
11822
  period_start?: string | undefined;
11823
+ list_price_cents?: bigint | undefined;
11140
11824
  }, {
11141
11825
  price_cents: bigint;
11142
- credits_cents: bigint;
11143
11826
  duration: "MONTHLY" | "ANNUAL";
11827
+ credits_cents: bigint;
11144
11828
  seat_summary: {
11145
11829
  seat_count: number;
11146
11830
  total_cost_cents: bigint;
@@ -11150,6 +11834,7 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11150
11834
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11151
11835
  period_end?: string | undefined;
11152
11836
  period_start?: string | undefined;
11837
+ list_price_cents?: bigint | undefined;
11153
11838
  }>;
11154
11839
  payment_method_configuration_id: z.ZodOptional<z.ZodString>;
11155
11840
  promotion_code: z.ZodOptional<z.ZodString>;
@@ -11160,6 +11845,7 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11160
11845
  renewal_amount_cents: z.ZodOptional<z.ZodBigInt>;
11161
11846
  renewal_at: z.ZodOptional<z.ZodString>;
11162
11847
  requires_reactivation_confirmation: z.ZodOptional<z.ZodBoolean>;
11848
+ subtotal_cents: z.ZodOptional<z.ZodBigInt>;
11163
11849
  transition_type: z.ZodEnum<["new_subscription", "upgrade", "downgrade", "duration_change"]>;
11164
11850
  }, "strip", z.ZodTypeAny, {
11165
11851
  effective_at: string;
@@ -11171,8 +11857,8 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11171
11857
  is_immediate: boolean;
11172
11858
  new_plan: {
11173
11859
  price_cents: bigint;
11174
- credits_cents: bigint;
11175
11860
  duration: "MONTHLY" | "ANNUAL";
11861
+ credits_cents: bigint;
11176
11862
  seat_summary: {
11177
11863
  seat_count: number;
11178
11864
  total_cost_cents: bigint;
@@ -11182,6 +11868,7 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11182
11868
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11183
11869
  period_end?: string | undefined;
11184
11870
  period_start?: string | undefined;
11871
+ list_price_cents?: bigint | undefined;
11185
11872
  };
11186
11873
  transition_type: "new_subscription" | "upgrade" | "downgrade" | "duration_change";
11187
11874
  currency?: string | undefined;
@@ -11190,10 +11877,11 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11190
11877
  quote_id?: string | undefined;
11191
11878
  quote_version?: number | undefined;
11192
11879
  amount_due_cents?: bigint | undefined;
11880
+ balance_applied_cents?: bigint | undefined;
11193
11881
  current_plan?: {
11194
11882
  price_cents: bigint;
11195
- credits_cents: bigint;
11196
11883
  duration: "MONTHLY" | "ANNUAL";
11884
+ credits_cents: bigint;
11197
11885
  seat_summary: {
11198
11886
  seat_count: number;
11199
11887
  total_cost_cents: bigint;
@@ -11203,18 +11891,22 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11203
11891
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11204
11892
  period_end?: string | undefined;
11205
11893
  period_start?: string | undefined;
11894
+ list_price_cents?: bigint | undefined;
11206
11895
  } | undefined;
11207
11896
  discounts?: {
11208
11897
  code: string;
11209
11898
  kind: "plan" | "promotion";
11210
11899
  name?: string | undefined;
11211
11900
  amount_off_cents?: bigint | undefined;
11901
+ duration?: "once" | "repeating" | "forever" | undefined;
11902
+ duration_in_months?: bigint | undefined;
11212
11903
  }[] | undefined;
11213
11904
  payment_method_configuration_id?: string | undefined;
11214
11905
  reason?: string | undefined;
11215
11906
  renewal_amount_cents?: bigint | undefined;
11216
11907
  renewal_at?: string | undefined;
11217
11908
  requires_reactivation_confirmation?: boolean | undefined;
11909
+ subtotal_cents?: bigint | undefined;
11218
11910
  }, {
11219
11911
  effective_at: string;
11220
11912
  allowed: boolean;
@@ -11225,8 +11917,8 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11225
11917
  is_immediate: boolean;
11226
11918
  new_plan: {
11227
11919
  price_cents: bigint;
11228
- credits_cents: bigint;
11229
11920
  duration: "MONTHLY" | "ANNUAL";
11921
+ credits_cents: bigint;
11230
11922
  seat_summary: {
11231
11923
  seat_count: number;
11232
11924
  total_cost_cents: bigint;
@@ -11236,6 +11928,7 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11236
11928
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11237
11929
  period_end?: string | undefined;
11238
11930
  period_start?: string | undefined;
11931
+ list_price_cents?: bigint | undefined;
11239
11932
  };
11240
11933
  transition_type: "new_subscription" | "upgrade" | "downgrade" | "duration_change";
11241
11934
  currency?: string | undefined;
@@ -11244,10 +11937,11 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11244
11937
  quote_id?: string | undefined;
11245
11938
  quote_version?: number | undefined;
11246
11939
  amount_due_cents?: bigint | undefined;
11940
+ balance_applied_cents?: bigint | undefined;
11247
11941
  current_plan?: {
11248
11942
  price_cents: bigint;
11249
- credits_cents: bigint;
11250
11943
  duration: "MONTHLY" | "ANNUAL";
11944
+ credits_cents: bigint;
11251
11945
  seat_summary: {
11252
11946
  seat_count: number;
11253
11947
  total_cost_cents: bigint;
@@ -11257,18 +11951,22 @@ export declare const zPreviewSubscribeResponse2: z.ZodObject<{
11257
11951
  tier: "FREE" | "STANDARD" | "CREATOR" | "PRO" | "FOUNDERS_EDITION" | "TEAM" | "ENTERPRISE";
11258
11952
  period_end?: string | undefined;
11259
11953
  period_start?: string | undefined;
11954
+ list_price_cents?: bigint | undefined;
11260
11955
  } | undefined;
11261
11956
  discounts?: {
11262
11957
  code: string;
11263
11958
  kind: "plan" | "promotion";
11264
11959
  name?: string | undefined;
11265
11960
  amount_off_cents?: bigint | undefined;
11961
+ duration?: "once" | "repeating" | "forever" | undefined;
11962
+ duration_in_months?: bigint | undefined;
11266
11963
  }[] | undefined;
11267
11964
  payment_method_configuration_id?: string | undefined;
11268
11965
  reason?: string | undefined;
11269
11966
  renewal_amount_cents?: bigint | undefined;
11270
11967
  renewal_at?: string | undefined;
11271
11968
  requires_reactivation_confirmation?: boolean | undefined;
11969
+ subtotal_cents?: bigint | undefined;
11272
11970
  }>;
11273
11971
  /**
11274
11972
  * Billing status
@@ -11287,6 +11985,22 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
11287
11985
  pending_billing_op_type: z.ZodOptional<z.ZodEnum<["subscription", "topup"]>>;
11288
11986
  plan_slug: z.ZodOptional<z.ZodString>;
11289
11987
  renewal_date: z.ZodOptional<z.ZodString>;
11988
+ renewal_invoice: z.ZodOptional<z.ZodObject<{
11989
+ amount_due: z.ZodBigInt;
11990
+ currency: z.ZodString;
11991
+ hosted_invoice_url: z.ZodString;
11992
+ next_payment_attempt: z.ZodOptional<z.ZodString>;
11993
+ }, "strip", z.ZodTypeAny, {
11994
+ currency: string;
11995
+ amount_due: bigint;
11996
+ hosted_invoice_url: string;
11997
+ next_payment_attempt?: string | undefined;
11998
+ }, {
11999
+ currency: string;
12000
+ amount_due: bigint;
12001
+ hosted_invoice_url: string;
12002
+ next_payment_attempt?: string | undefined;
12003
+ }>>;
11290
12004
  scheduled_change: z.ZodNullable<z.ZodObject<{
11291
12005
  effective_at: z.ZodString;
11292
12006
  plan_slug: z.ZodString;
@@ -11320,6 +12034,8 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
11320
12034
  stop_usd: bigint;
11321
12035
  } | null;
11322
12036
  }>>;
12037
+ scoped_effective_has_funds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
12038
+ scoped_has_funds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
11323
12039
  subscription_duration: z.ZodOptional<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
11324
12040
  subscription_status: z.ZodOptional<z.ZodEnum<["active", "ended", "canceled"]>>;
11325
12041
  subscription_tier: z.ZodOptional<z.ZodEnum<["FREE", "STANDARD", "CREATOR", "PRO", "FOUNDERS_EDITION", "TEAM", "ENTERPRISE"]>>;
@@ -11365,6 +12081,14 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
11365
12081
  pending_billing_op_id?: string | undefined;
11366
12082
  pending_billing_op_type?: "subscription" | "topup" | undefined;
11367
12083
  renewal_date?: string | undefined;
12084
+ renewal_invoice?: {
12085
+ currency: string;
12086
+ amount_due: bigint;
12087
+ hosted_invoice_url: string;
12088
+ next_payment_attempt?: string | undefined;
12089
+ } | undefined;
12090
+ scoped_effective_has_funds?: Record<string, boolean> | undefined;
12091
+ scoped_has_funds?: Record<string, boolean> | undefined;
11368
12092
  subscription_duration?: "MONTHLY" | "ANNUAL" | undefined;
11369
12093
  subscription_status?: "active" | "ended" | "canceled" | undefined;
11370
12094
  }, {
@@ -11396,6 +12120,14 @@ export declare const zGetBillingStatusResponse: z.ZodObject<{
11396
12120
  pending_billing_op_id?: string | undefined;
11397
12121
  pending_billing_op_type?: "subscription" | "topup" | undefined;
11398
12122
  renewal_date?: string | undefined;
12123
+ renewal_invoice?: {
12124
+ currency: string;
12125
+ amount_due: bigint;
12126
+ hosted_invoice_url: string;
12127
+ next_payment_attempt?: string | undefined;
12128
+ } | undefined;
12129
+ scoped_effective_has_funds?: Record<string, boolean> | undefined;
12130
+ scoped_has_funds?: Record<string, boolean> | undefined;
11399
12131
  subscription_duration?: "MONTHLY" | "ANNUAL" | undefined;
11400
12132
  subscription_status?: "active" | "ended" | "canceled" | undefined;
11401
12133
  }>;
@@ -11536,13 +12268,13 @@ export declare const zCreateTopupResponse2: z.ZodObject<{
11536
12268
  topup_id: z.ZodString;
11537
12269
  }, "strip", z.ZodTypeAny, {
11538
12270
  status: "completed" | "failed" | "pending";
11539
- billing_op_id: string;
11540
12271
  amount_cents: bigint;
12272
+ billing_op_id: string;
11541
12273
  topup_id: string;
11542
12274
  }, {
11543
12275
  status: "completed" | "failed" | "pending";
11544
- billing_op_id: string;
11545
12276
  amount_cents: bigint;
12277
+ billing_op_id: string;
11546
12278
  topup_id: string;
11547
12279
  }>;
11548
12280
  export declare const zCreateTopupCheckoutBody: z.ZodObject<{
@@ -11550,12 +12282,12 @@ export declare const zCreateTopupCheckoutBody: z.ZodObject<{
11550
12282
  idempotency_key: z.ZodOptional<z.ZodString>;
11551
12283
  return_url: z.ZodString;
11552
12284
  }, "strip", z.ZodTypeAny, {
11553
- return_url: string;
11554
12285
  amount_cents: bigint;
12286
+ return_url: string;
11555
12287
  idempotency_key?: string | undefined;
11556
12288
  }, {
11557
- return_url: string;
11558
12289
  amount_cents: bigint;
12290
+ return_url: string;
11559
12291
  idempotency_key?: string | undefined;
11560
12292
  }>;
11561
12293
  /**
@@ -11571,6 +12303,29 @@ export declare const zCreateTopupCheckoutResponse2: z.ZodObject<{
11571
12303
  checkout_url: string;
11572
12304
  session_id?: string | undefined;
11573
12305
  }>;
12306
+ export declare const zCreateTopupQuoteBody: z.ZodObject<{
12307
+ amount_cents: z.ZodBigInt;
12308
+ }, "strip", z.ZodTypeAny, {
12309
+ amount_cents: bigint;
12310
+ }, {
12311
+ amount_cents: bigint;
12312
+ }>;
12313
+ /**
12314
+ * Top-up quote
12315
+ */
12316
+ export declare const zCreateTopupQuoteResponse: z.ZodObject<{
12317
+ amount_cents: z.ZodBigInt;
12318
+ credits: z.ZodBigInt;
12319
+ expires_at: z.ZodString;
12320
+ }, "strip", z.ZodTypeAny, {
12321
+ expires_at: string;
12322
+ amount_cents: bigint;
12323
+ credits: bigint;
12324
+ }, {
12325
+ expires_at: string;
12326
+ amount_cents: bigint;
12327
+ credits: bigint;
12328
+ }>;
11574
12329
  export declare const zGetBillingUsageTimeSeriesQuery: z.ZodObject<{
11575
12330
  group_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["model", "endpoint", "product"]>>>;
11576
12331
  granularity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["hour", "day", "month"]>>>;
@@ -11781,6 +12536,7 @@ export declare const zGetExtensionsResponse: z.ZodArray<z.ZodString, "many">;
11781
12536
  * Success
11782
12537
  */
11783
12538
  export declare const zGetFeaturesResponse: z.ZodObject<{
12539
+ billing_web_url: z.ZodOptional<z.ZodString>;
11784
12540
  free_tier_balance: z.ZodOptional<z.ZodObject<{
11785
12541
  allowance: z.ZodNumber;
11786
12542
  remaining: z.ZodNumber;
@@ -11795,23 +12551,31 @@ export declare const zGetFeaturesResponse: z.ZodObject<{
11795
12551
  used: number;
11796
12552
  }>>;
11797
12553
  max_upload_size: z.ZodOptional<z.ZodNumber>;
12554
+ stripe_publishable_key: z.ZodOptional<z.ZodString>;
11798
12555
  supports_preview_metadata: z.ZodOptional<z.ZodBoolean>;
12556
+ web_session_probe: z.ZodOptional<z.ZodBoolean>;
11799
12557
  }, "strip", z.ZodTypeAny, {
12558
+ billing_web_url?: string | undefined;
11800
12559
  free_tier_balance?: {
11801
12560
  allowance: number;
11802
12561
  remaining: number;
11803
12562
  used: number;
11804
12563
  } | undefined;
11805
12564
  max_upload_size?: number | undefined;
12565
+ stripe_publishable_key?: string | undefined;
11806
12566
  supports_preview_metadata?: boolean | undefined;
12567
+ web_session_probe?: boolean | undefined;
11807
12568
  }, {
12569
+ billing_web_url?: string | undefined;
11808
12570
  free_tier_balance?: {
11809
12571
  allowance: number;
11810
12572
  remaining: number;
11811
12573
  used: number;
11812
12574
  } | undefined;
11813
12575
  max_upload_size?: number | undefined;
12576
+ stripe_publishable_key?: string | undefined;
11814
12577
  supports_preview_metadata?: boolean | undefined;
12578
+ web_session_probe?: boolean | undefined;
11815
12579
  }>;
11816
12580
  export declare const zSubmitFeedbackBody: z.ZodObject<{
11817
12581
  content: z.ZodOptional<z.ZodString>;
@@ -13516,7 +14280,7 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
13516
14280
  created_at: string;
13517
14281
  updated_at: string;
13518
14282
  id: string;
13519
- status: "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch" | "error";
14283
+ status: "error" | "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch";
13520
14284
  error_message?: string | null | undefined;
13521
14285
  assigned_inference?: string | null | undefined;
13522
14286
  last_state_update?: string | undefined;
@@ -13524,7 +14288,7 @@ export declare const zGetJobStatusResponse: z.ZodObject<{
13524
14288
  created_at: string;
13525
14289
  updated_at: string;
13526
14290
  id: string;
13527
- status: "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch" | "error";
14291
+ status: "error" | "completed" | "pending" | "in_progress" | "cancelled" | "waiting_to_dispatch";
13528
14292
  error_message?: string | null | undefined;
13529
14293
  assigned_inference?: string | null | undefined;
13530
14294
  last_state_update?: string | undefined;
@@ -14694,15 +15458,15 @@ export declare const zListTasksResponse: z.ZodObject<{
14694
15458
  id: string;
14695
15459
  status: "created" | "running" | "completed" | "failed";
14696
15460
  task_name: string;
14697
- completed_at?: string | undefined;
14698
15461
  started_at?: string | undefined;
15462
+ completed_at?: string | undefined;
14699
15463
  }, {
14700
15464
  create_time: string;
14701
15465
  id: string;
14702
15466
  status: "created" | "running" | "completed" | "failed";
14703
15467
  task_name: string;
14704
- completed_at?: string | undefined;
14705
15468
  started_at?: string | undefined;
15469
+ completed_at?: string | undefined;
14706
15470
  }>, "many">;
14707
15471
  }, "strip", z.ZodTypeAny, {
14708
15472
  pagination: {
@@ -14717,8 +15481,8 @@ export declare const zListTasksResponse: z.ZodObject<{
14717
15481
  id: string;
14718
15482
  status: "created" | "running" | "completed" | "failed";
14719
15483
  task_name: string;
14720
- completed_at?: string | undefined;
14721
15484
  started_at?: string | undefined;
15485
+ completed_at?: string | undefined;
14722
15486
  }[];
14723
15487
  }, {
14724
15488
  pagination: {
@@ -14733,8 +15497,8 @@ export declare const zListTasksResponse: z.ZodObject<{
14733
15497
  id: string;
14734
15498
  status: "created" | "running" | "completed" | "failed";
14735
15499
  task_name: string;
14736
- completed_at?: string | undefined;
14737
15500
  started_at?: string | undefined;
15501
+ completed_at?: string | undefined;
14738
15502
  }[];
14739
15503
  }>;
14740
15504
  export declare const zGetTaskPath: z.ZodObject<{
@@ -14767,8 +15531,8 @@ export declare const zGetTaskResponse: z.ZodObject<{
14767
15531
  task_name: string;
14768
15532
  idempotency_key: string;
14769
15533
  payload: Record<string, unknown>;
14770
- completed_at?: string | undefined;
14771
15534
  started_at?: string | undefined;
15535
+ completed_at?: string | undefined;
14772
15536
  error_message?: string | undefined;
14773
15537
  result?: Record<string, unknown> | undefined;
14774
15538
  }, {
@@ -14779,8 +15543,8 @@ export declare const zGetTaskResponse: z.ZodObject<{
14779
15543
  task_name: string;
14780
15544
  idempotency_key: string;
14781
15545
  payload: Record<string, unknown>;
14782
- completed_at?: string | undefined;
14783
15546
  started_at?: string | undefined;
15547
+ completed_at?: string | undefined;
14784
15548
  error_message?: string | undefined;
14785
15549
  result?: Record<string, unknown> | undefined;
14786
15550
  }>;
@@ -15202,10 +15966,13 @@ export declare const zGetUsersInfoResponse: z.ZodObject<{
15202
15966
  }>;
15203
15967
  export declare const zGetVhsQueryVideoQuery: z.ZodObject<{
15204
15968
  filename: z.ZodString;
15969
+ workspace_id: z.ZodOptional<z.ZodString>;
15205
15970
  }, "strip", z.ZodTypeAny, {
15206
15971
  filename: string;
15972
+ workspace_id?: string | undefined;
15207
15973
  }, {
15208
15974
  filename: string;
15975
+ workspace_id?: string | undefined;
15209
15976
  }>;
15210
15977
  /**
15211
15978
  * Video metadata
@@ -15246,28 +16013,54 @@ export declare const zGetVhsViewAudioQuery: z.ZodObject<{
15246
16013
  filename: z.ZodString;
15247
16014
  type: z.ZodOptional<z.ZodString>;
15248
16015
  subfolder: z.ZodOptional<z.ZodString>;
16016
+ channel: z.ZodOptional<z.ZodString>;
16017
+ res: z.ZodOptional<z.ZodNumber>;
16018
+ workspace_id: z.ZodOptional<z.ZodString>;
15249
16019
  }, "strip", z.ZodTypeAny, {
15250
16020
  filename: string;
15251
16021
  type?: string | undefined;
16022
+ workspace_id?: string | undefined;
15252
16023
  subfolder?: string | undefined;
16024
+ channel?: string | undefined;
16025
+ res?: number | undefined;
15253
16026
  }, {
15254
16027
  filename: string;
15255
16028
  type?: string | undefined;
16029
+ workspace_id?: string | undefined;
15256
16030
  subfolder?: string | undefined;
16031
+ channel?: string | undefined;
16032
+ res?: number | undefined;
15257
16033
  }>;
16034
+ /**
16035
+ * JPEG thumbnail for `res`
16036
+ */
16037
+ export declare const zGetVhsViewAudioResponse: z.ZodString;
15258
16038
  export declare const zGetVhsViewVideoQuery: z.ZodObject<{
15259
16039
  filename: z.ZodString;
15260
16040
  type: z.ZodOptional<z.ZodString>;
15261
16041
  subfolder: z.ZodOptional<z.ZodString>;
16042
+ channel: z.ZodOptional<z.ZodString>;
16043
+ res: z.ZodOptional<z.ZodNumber>;
16044
+ workspace_id: z.ZodOptional<z.ZodString>;
15262
16045
  }, "strip", z.ZodTypeAny, {
15263
16046
  filename: string;
15264
16047
  type?: string | undefined;
16048
+ workspace_id?: string | undefined;
15265
16049
  subfolder?: string | undefined;
16050
+ channel?: string | undefined;
16051
+ res?: number | undefined;
15266
16052
  }, {
15267
16053
  filename: string;
15268
16054
  type?: string | undefined;
16055
+ workspace_id?: string | undefined;
15269
16056
  subfolder?: string | undefined;
16057
+ channel?: string | undefined;
16058
+ res?: number | undefined;
15270
16059
  }>;
16060
+ /**
16061
+ * JPEG thumbnail for `res`
16062
+ */
16063
+ export declare const zGetVhsViewVideoResponse: z.ZodString;
15271
16064
  export declare const zViewFileQuery: z.ZodObject<{
15272
16065
  filename: z.ZodString;
15273
16066
  subfolder: z.ZodOptional<z.ZodString>;
@@ -15279,28 +16072,31 @@ export declare const zViewFileQuery: z.ZodObject<{
15279
16072
  timestamp: z.ZodOptional<z.ZodNumber>;
15280
16073
  channel: z.ZodOptional<z.ZodString>;
15281
16074
  res: z.ZodOptional<z.ZodNumber>;
16075
+ workspace_id: z.ZodOptional<z.ZodString>;
15282
16076
  }, "strip", z.ZodTypeAny, {
15283
16077
  filename: string;
15284
16078
  workflow?: string | undefined;
15285
16079
  type?: string | undefined;
16080
+ workspace_id?: string | undefined;
15286
16081
  subfolder?: string | undefined;
16082
+ channel?: string | undefined;
16083
+ res?: number | undefined;
15287
16084
  fullpath?: string | undefined;
15288
16085
  format?: string | undefined;
15289
16086
  frame_rate?: number | undefined;
15290
16087
  timestamp?: number | undefined;
15291
- channel?: string | undefined;
15292
- res?: number | undefined;
15293
16088
  }, {
15294
16089
  filename: string;
15295
16090
  workflow?: string | undefined;
15296
16091
  type?: string | undefined;
16092
+ workspace_id?: string | undefined;
15297
16093
  subfolder?: string | undefined;
16094
+ channel?: string | undefined;
16095
+ res?: number | undefined;
15298
16096
  fullpath?: string | undefined;
15299
16097
  format?: string | undefined;
15300
16098
  frame_rate?: number | undefined;
15301
16099
  timestamp?: number | undefined;
15302
- channel?: string | undefined;
15303
- res?: number | undefined;
15304
16100
  }>;
15305
16101
  /**
15306
16102
  * Resized JPEG thumbnail (returned when res parameter is used)
@@ -15315,11 +16111,24 @@ export declare const zGetLegacyViewMetadataPath: z.ZodObject<{
15315
16111
  }>;
15316
16112
  export declare const zGetApiViewVideoAliasQuery: z.ZodObject<{
15317
16113
  filename: z.ZodString;
16114
+ channel: z.ZodOptional<z.ZodString>;
16115
+ res: z.ZodOptional<z.ZodNumber>;
16116
+ workspace_id: z.ZodOptional<z.ZodString>;
15318
16117
  }, "strip", z.ZodTypeAny, {
15319
16118
  filename: string;
16119
+ workspace_id?: string | undefined;
16120
+ channel?: string | undefined;
16121
+ res?: number | undefined;
15320
16122
  }, {
15321
16123
  filename: string;
16124
+ workspace_id?: string | undefined;
16125
+ channel?: string | undefined;
16126
+ res?: number | undefined;
15322
16127
  }>;
16128
+ /**
16129
+ * JPEG thumbnail for `res`
16130
+ */
16131
+ export declare const zGetApiViewVideoAliasResponse: z.ZodString;
15323
16132
  /**
15324
16133
  * Empty object for workflow templates
15325
16134
  */
@@ -16537,6 +17346,7 @@ export declare const zGetCurrentWorkspaceResponse: z.ZodObject<{
16537
17346
  auth_method: z.ZodString;
16538
17347
  id: z.ZodString;
16539
17348
  name: z.ZodString;
17349
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16540
17350
  role: z.ZodOptional<z.ZodEnum<["owner", "member"]>>;
16541
17351
  type: z.ZodEnum<["personal", "team"]>;
16542
17352
  }, "strip", z.ZodTypeAny, {
@@ -16545,12 +17355,14 @@ export declare const zGetCurrentWorkspaceResponse: z.ZodObject<{
16545
17355
  type: "personal" | "team";
16546
17356
  auth_method: string;
16547
17357
  role?: "owner" | "member" | undefined;
17358
+ permissions?: string[] | undefined;
16548
17359
  }, {
16549
17360
  name: string;
16550
17361
  id: string;
16551
17362
  type: "personal" | "team";
16552
17363
  auth_method: string;
16553
17364
  role?: "owner" | "member" | undefined;
17365
+ permissions?: string[] | undefined;
16554
17366
  }>;
16555
17367
  export declare const zGetStaticExtensionsPath: z.ZodObject<{
16556
17368
  path: z.ZodString;
@@ -16697,8 +17509,8 @@ export declare const zGetOAuthAuthorizeResponse: z.ZodObject<{
16697
17509
  type: "personal" | "team";
16698
17510
  }>, "many">;
16699
17511
  }, "strip", z.ZodTypeAny, {
16700
- client_display_name: string;
16701
17512
  csrf_token: string;
17513
+ client_display_name: string;
16702
17514
  oauth_request_id: string;
16703
17515
  redirect_uri: string;
16704
17516
  resource_display_name: string;
@@ -16710,8 +17522,8 @@ export declare const zGetOAuthAuthorizeResponse: z.ZodObject<{
16710
17522
  type: "personal" | "team";
16711
17523
  }[];
16712
17524
  }, {
16713
- client_display_name: string;
16714
17525
  csrf_token: string;
17526
+ client_display_name: string;
16715
17527
  oauth_request_id: string;
16716
17528
  redirect_uri: string;
16717
17529
  resource_display_name: string;
@@ -16894,15 +17706,34 @@ export declare const zGetTemplateProxyPath: z.ZodObject<{
16894
17706
  }>;
16895
17707
  export declare const zGetViewCompatAliasQuery: z.ZodObject<{
16896
17708
  filename: z.ZodString;
17709
+ channel: z.ZodOptional<z.ZodString>;
17710
+ res: z.ZodOptional<z.ZodNumber>;
17711
+ workspace_id: z.ZodOptional<z.ZodString>;
16897
17712
  }, "strip", z.ZodTypeAny, {
16898
17713
  filename: string;
17714
+ workspace_id?: string | undefined;
17715
+ channel?: string | undefined;
17716
+ res?: number | undefined;
16899
17717
  }, {
16900
17718
  filename: string;
17719
+ workspace_id?: string | undefined;
17720
+ channel?: string | undefined;
17721
+ res?: number | undefined;
16901
17722
  }>;
17723
+ /**
17724
+ * JPEG thumbnail for `res`
17725
+ */
17726
+ export declare const zGetViewCompatAliasResponse: z.ZodString;
16902
17727
  export declare const zGetWebsocketQuery: z.ZodObject<{
17728
+ token: z.ZodOptional<z.ZodString>;
17729
+ workspace_id: z.ZodOptional<z.ZodString>;
16903
17730
  clientId: z.ZodOptional<z.ZodString>;
16904
17731
  }, "strip", z.ZodTypeAny, {
17732
+ workspace_id?: string | undefined;
17733
+ token?: string | undefined;
16905
17734
  clientId?: string | undefined;
16906
17735
  }, {
17736
+ workspace_id?: string | undefined;
17737
+ token?: string | undefined;
16907
17738
  clientId?: string | undefined;
16908
17739
  }>;