@cloudfleet/sdk 0.0.1-0010e2d → 0.0.1-019156c

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.
Files changed (108) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +943 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1156 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts +3 -0
  7. package/dist/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client.gen.js +217 -0
  9. package/dist/client/client.gen.js.map +1 -0
  10. package/dist/client/index.d.ts +8 -7
  11. package/dist/client/index.d.ts.map +1 -1
  12. package/dist/client/index.js +6 -4
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  15. package/dist/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/types.gen.js +3 -0
  17. package/dist/client/types.gen.js.map +1 -0
  18. package/dist/client/{utils.d.ts → utils.gen.d.ts} +17 -25
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/{utils.js → utils.gen.js} +66 -122
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +3 -3
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +1 -3
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/{auth.js → auth.gen.js} +2 -1
  29. package/dist/core/auth.gen.js.map +1 -0
  30. package/dist/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/{params.js → params.gen.js} +24 -11
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  41. package/dist/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/core/serverSentEvents.gen.js +133 -0
  49. package/dist/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
  51. package/dist/core/types.gen.d.ts.map +1 -0
  52. package/dist/core/types.gen.js +3 -0
  53. package/dist/core/types.gen.js.map +1 -0
  54. package/dist/core/utils.gen.d.ts +20 -0
  55. package/dist/core/utils.gen.d.ts.map +1 -0
  56. package/dist/core/utils.gen.js +88 -0
  57. package/dist/core/utils.gen.js.map +1 -0
  58. package/dist/errors.d.ts +42 -0
  59. package/dist/errors.d.ts.map +1 -0
  60. package/dist/errors.js +83 -0
  61. package/dist/errors.js.map +1 -0
  62. package/dist/index.d.ts +1 -0
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +4 -0
  65. package/dist/index.js.map +1 -1
  66. package/dist/schemas.gen.d.ts +1730 -748
  67. package/dist/schemas.gen.d.ts.map +1 -1
  68. package/dist/schemas.gen.js +3153 -817
  69. package/dist/schemas.gen.js.map +1 -1
  70. package/dist/sdk.gen.d.ts +279 -164
  71. package/dist/sdk.gen.d.ts.map +1 -1
  72. package/dist/sdk.gen.js +403 -334
  73. package/dist/sdk.gen.js.map +1 -1
  74. package/dist/services/kubernetes/api.d.ts +10 -47
  75. package/dist/services/kubernetes/api.d.ts.map +1 -1
  76. package/dist/services/kubernetes/api.js +36 -75
  77. package/dist/services/kubernetes/api.js.map +1 -1
  78. package/dist/services/kubernetes/index.d.ts.map +1 -1
  79. package/dist/services/kubernetes/index.js +36 -37
  80. package/dist/services/kubernetes/index.js.map +1 -1
  81. package/dist/types.gen.d.ts +1883 -947
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +4008 -3773
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1493 -1178
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +27 -9
  88. package/dist/client/client.d.ts +0 -3
  89. package/dist/client/client.d.ts.map +0 -1
  90. package/dist/client/client.js +0 -146
  91. package/dist/client/client.js.map +0 -1
  92. package/dist/client/types.d.ts.map +0 -1
  93. package/dist/client/types.js +0 -2
  94. package/dist/client/types.js.map +0 -1
  95. package/dist/client/utils.d.ts.map +0 -1
  96. package/dist/client/utils.js.map +0 -1
  97. package/dist/core/auth.d.ts.map +0 -1
  98. package/dist/core/auth.js.map +0 -1
  99. package/dist/core/bodySerializer.d.ts +0 -18
  100. package/dist/core/bodySerializer.d.ts.map +0 -1
  101. package/dist/core/bodySerializer.js.map +0 -1
  102. package/dist/core/params.d.ts.map +0 -1
  103. package/dist/core/params.js.map +0 -1
  104. package/dist/core/pathSerializer.d.ts.map +0 -1
  105. package/dist/core/pathSerializer.js.map +0 -1
  106. package/dist/core/types.d.ts.map +0 -1
  107. package/dist/core/types.js +0 -2
  108. package/dist/core/types.js.map +0 -1
@@ -1,4 +1,11 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
+ };
1
4
  export type BillingContact = {
5
+ /**
6
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
7
+ */
8
+ type: 'business' | 'personal';
2
9
  /**
3
10
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
4
11
  */
@@ -36,13 +43,9 @@ export type BillingContact = {
36
43
  */
37
44
  email: string;
38
45
  /**
39
- * First name of the billing contact person.
40
- */
41
- first_name: string;
42
- /**
43
- * Last name of the billing contact person.
46
+ * Name of the billing contact person.
44
47
  */
45
- last_name: string;
48
+ individual_name: string;
46
49
  /**
47
50
  * Tax ID of the organization.
48
51
  */
@@ -50,137 +53,108 @@ export type BillingContact = {
50
53
  /**
51
54
  * Type of the tax ID.
52
55
  */
53
- tax_id_type?: 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'at_vat' | 'au_abn' | 'au_arn' | 'ba_tin' | 'bb_tin' | 'be_vat' | 'bg_uic' | 'bg_vat' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cy_vat' | 'cz_vat' | 'de_stn' | 'de_vat' | 'dk_vat' | 'do_rcn' | 'ec_ruc' | 'ee_vat' | 'eg_tin' | 'es_cif' | 'es_vat' | 'eu_oss_vat' | 'fi_vat' | 'fr_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'gr_vat' | 'hk_br' | 'hr_oib' | 'hr_vat' | 'hu_tin' | 'hu_vat' | 'id_npwp' | 'ie_vat' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'lt_vat' | 'lu_vat' | 'lv_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mt_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'nl_vat' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_vat' | 'pt_vat' | 'ro_tin' | 'ro_vat' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'se_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'si_vat' | 'sk_vat' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'xi_vat' | 'za_vat' | 'zm_tin' | 'zw_tin' | '';
56
+ tax_id_type?: 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'at_vat' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'be_vat' | 'bf_ifu' | 'bg_uic' | 'bg_vat' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cy_vat' | 'cz_vat' | 'de_stn' | 'de_vat' | 'dk_vat' | 'do_rcn' | 'ec_ruc' | 'ee_vat' | 'eg_tin' | 'es_cif' | 'es_vat' | 'et_tin' | 'eu_oss_vat' | 'fi_vat' | 'fr_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'gr_vat' | 'hk_br' | 'hr_oib' | 'hr_vat' | 'hu_tin' | 'hu_vat' | 'id_npwp' | 'ie_vat' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'lt_vat' | 'lu_vat' | 'lv_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mt_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'nl_vat' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_vat' | 'pt_vat' | 'ro_tin' | 'ro_vat' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'se_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'si_vat' | 'sk_vat' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'xi_vat' | 'za_vat' | 'zm_tin' | 'zw_tin' | '';
54
57
  };
55
58
  export type BillingCredits = {
56
59
  /**
57
60
  * Generated unique identifier of the promotional code.
58
61
  */
59
62
  id?: string;
60
- /**
61
- * Date of the credit application. ISO 8601 date string in the UTC timezone.
62
- */
63
- date_created: string;
64
- /**
65
- * Promotional code used by the customer.
66
- */
67
- code: string;
68
- /**
69
- * Description of the promotional code.
70
- */
71
- description?: string;
72
- /**
73
- * List of product SKUs that the promotional code can be used on.
74
- */
75
- products?: Array<string>;
76
63
  /**
77
64
  * Type of the promotional code.
78
65
  */
79
66
  type: 'credit' | 'discount';
80
67
  /**
81
- * Value of the promotional code.
68
+ * Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.
82
69
  */
83
- value: number;
84
- /**
85
- * Date of the billing cycle. An ISO 8601 date string in the UTC timezone.
86
- */
87
- billing_period: string;
88
- /**
89
- * Value of the promotional code.
90
- */
91
- value_remaining?: number;
92
- };
93
- export type ChartCreateInput = {
70
+ date_start: string;
94
71
  /**
95
- * Values to be used in the chart encoded as a JSON string.
72
+ * Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.
96
73
  */
97
- values: string;
74
+ date_end?: string;
98
75
  /**
99
- * Desired version range or channel for the chart.
76
+ * Promotional code used by the customer.
100
77
  */
101
- version_channel: string;
78
+ code: string;
102
79
  /**
103
- * Unique identifier of the chart deployment aka name of the helm release.
80
+ * Description of the promotional code.
104
81
  */
105
- name: string;
82
+ description?: string;
106
83
  /**
107
- * Namespace of the chart deployment
84
+ * Total value of the promotional code.
108
85
  */
109
- namespace: string;
86
+ value_total: number;
110
87
  /**
111
- * Name of the chart listing
88
+ * Remaining value of the promotional code.
112
89
  */
113
- chart: string;
90
+ value_remaining?: number;
114
91
  };
115
- export type Chart = {
116
- /**
117
- * Values to be used in the chart encoded as a JSON string.
118
- */
119
- values: string;
120
- /**
121
- * Desired version range or channel for the chart.
122
- */
123
- version_channel: string;
92
+ /**
93
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
94
+ */
95
+ export type ClusterCreateInput = {
124
96
  /**
125
- * Unique identifier of the chart deployment aka name of the helm release.
97
+ * Name of the cluster.
126
98
  */
127
99
  name: string;
128
100
  /**
129
- * Namespace of the chart deployment
130
- */
131
- namespace: string;
132
- /**
133
- * Name of the chart listing
134
- */
135
- chart: string;
136
- /**
137
- * Status of the chart deployment.
138
- */
139
- status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
140
- /**
141
- * Current version of the chart deployment.
142
- */
143
- version_current: string;
144
- /**
145
- * Creation date and time of the chart deployment.
146
- */
147
- created_at: string;
148
- /**
149
- * Last update date and time of the chart deployment.
150
- */
151
- updated_at: string;
152
- /**
153
- * Indicates if the chart deployment is ready to be used.
154
- */
155
- ready: boolean;
156
- };
157
- export type ChartUpdateInput = {
158
- /**
159
- * Values to be used in the chart encoded as a JSON string.
101
+ * Tier of the cluster.
160
102
  */
161
- values: string;
103
+ tier?: 'basic' | 'pro' | 'enterprise';
162
104
  /**
163
- * Desired version range or channel for the chart.
105
+ * Version of the kubernetes cluster.
164
106
  */
165
- version_channel: string;
166
- };
167
- export type ClusterCreateInput = {
107
+ version_channel?: string;
168
108
  /**
169
- * Name of the cluster.
109
+ * Release channel for the cluster's control plane.
170
110
  */
171
- name: string;
111
+ release_channel?: 'rapid' | 'stable' | 'extended';
172
112
  /**
173
- * Tier of the cluster.
113
+ * Cluster feature toggles.
174
114
  */
175
- tier: 'basic' | 'pro';
115
+ features?: {
116
+ /**
117
+ * GPU sharing strategy.
118
+ */
119
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
120
+ /**
121
+ * Maximum number of pods that may share a single GPU.
122
+ */
123
+ gpu_max_shared_clients_per_gpu?: number;
124
+ /**
125
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
126
+ */
127
+ cilium_socket_lb_host_namespace_only?: boolean;
128
+ };
176
129
  /**
177
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
130
+ * Cloudfleet control plane region. This field can not be updated after creation.
178
131
  */
179
- region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
132
+ region: string;
180
133
  /**
181
- * Version of the kubernetes cluster.
134
+ * Cluster networking configuration. Immutable after creation.
182
135
  */
183
- version_channel?: string;
136
+ networking?: {
137
+ /**
138
+ * CIDR block for pod IPs.
139
+ */
140
+ pod_cidr?: string;
141
+ /**
142
+ * CIDR block for service IPs.
143
+ */
144
+ service_cidr?: string;
145
+ /**
146
+ * Enable IPv4+IPv6 dual-stack networking.
147
+ */
148
+ dual_stack?: boolean;
149
+ /**
150
+ * IPv6 pod CIDR. Requires dual_stack.
151
+ */
152
+ pod_cidr_v6?: string;
153
+ /**
154
+ * IPv6 service CIDR. Requires dual_stack.
155
+ */
156
+ service_cidr_v6?: string;
157
+ };
184
158
  };
185
159
  export type ClusterJoinInformation = {
186
160
  /**
@@ -191,10 +165,22 @@ export type ClusterJoinInformation = {
191
165
  * Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.
192
166
  */
193
167
  endpoint: string;
168
+ /**
169
+ * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
170
+ */
171
+ cluster_dns: string;
172
+ /**
173
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
174
+ */
175
+ pod_cidr: string;
194
176
  /**
195
177
  * Authentication key for the cluster.
196
178
  */
197
179
  auth_key: string;
180
+ /**
181
+ * Coordination server the node registers against. Empty on data plane v1 clusters, where the node advertises its own tag instead. A non-empty value requires a client that declares the dataplane-v2 capability.
182
+ */
183
+ login_server: string;
198
184
  /**
199
185
  * Bootstrap token for the cluster.
200
186
  */
@@ -238,6 +224,9 @@ export type ClusterJoinInformation = {
238
224
  gcp_workload_identity_provider: string;
239
225
  };
240
226
  };
227
+ /**
228
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
229
+ */
241
230
  export type Cluster = {
242
231
  /**
243
232
  * Name of the cluster.
@@ -246,24 +235,71 @@ export type Cluster = {
246
235
  /**
247
236
  * Tier of the cluster.
248
237
  */
249
- tier: 'basic' | 'pro';
238
+ tier: 'basic' | 'pro' | 'enterprise';
239
+ /**
240
+ * Version of the kubernetes cluster.
241
+ */
242
+ version_channel: string;
250
243
  /**
251
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
244
+ * Release channel for the cluster's control plane.
252
245
  */
253
- region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
246
+ release_channel: 'rapid' | 'stable' | 'extended';
254
247
  /**
255
- * Version of the kubernetes cluster.
248
+ * Cluster feature toggles.
256
249
  */
257
- version_channel?: string;
250
+ features: {
251
+ /**
252
+ * GPU sharing strategy.
253
+ */
254
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
255
+ /**
256
+ * Maximum number of pods that may share a single GPU.
257
+ */
258
+ gpu_max_shared_clients_per_gpu: number;
259
+ /**
260
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
261
+ */
262
+ cilium_socket_lb_host_namespace_only: boolean;
263
+ };
264
+ /**
265
+ * Cloudfleet control plane region. This field can not be updated after creation.
266
+ */
267
+ region: string;
268
+ /**
269
+ * Cluster networking configuration. Immutable after creation.
270
+ */
271
+ networking: {
272
+ /**
273
+ * CIDR block for pod IPs.
274
+ */
275
+ pod_cidr: string;
276
+ /**
277
+ * CIDR block for service IPs.
278
+ */
279
+ service_cidr: string;
280
+ /**
281
+ * Enable IPv4+IPv6 dual-stack networking.
282
+ */
283
+ dual_stack: boolean;
284
+ /**
285
+ * IPv6 pod CIDR. Requires dual_stack.
286
+ */
287
+ pod_cidr_v6: string;
288
+ /**
289
+ * IPv6 service CIDR. Requires dual_stack.
290
+ */
291
+ service_cidr_v6: string;
292
+ };
258
293
  /**
259
294
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
260
295
  */
261
296
  id: string;
262
297
  /**
263
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
298
+ * Status of the cluster.
264
299
  */
265
- status: 'active' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
300
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
266
301
  endpoint?: string | '';
302
+ endpoint_public?: string | '';
267
303
  /**
268
304
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
269
305
  */
@@ -283,125 +319,338 @@ export type Cluster = {
283
319
  /**
284
320
  * Indicates if the cluster is ready to be used.
285
321
  */
286
- ready?: boolean;
322
+ ready: boolean;
287
323
  };
324
+ /**
325
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
326
+ */
288
327
  export type ClusterUpdateInput = {
289
328
  /**
290
329
  * Name of the cluster.
291
330
  */
292
- name?: string;
331
+ name: string;
293
332
  /**
294
333
  * Tier of the cluster.
295
334
  */
296
- tier: 'basic' | 'pro';
335
+ tier?: 'basic' | 'pro' | 'enterprise';
297
336
  /**
298
337
  * Version of the kubernetes cluster.
299
338
  */
300
339
  version_channel?: string;
340
+ /**
341
+ * Release channel for the cluster's control plane.
342
+ */
343
+ release_channel?: 'rapid' | 'stable' | 'extended';
344
+ /**
345
+ * Cluster feature toggles.
346
+ */
347
+ features?: {
348
+ /**
349
+ * GPU sharing strategy.
350
+ */
351
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
352
+ /**
353
+ * Maximum number of pods that may share a single GPU.
354
+ */
355
+ gpu_max_shared_clients_per_gpu?: number;
356
+ /**
357
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
358
+ */
359
+ cilium_socket_lb_host_namespace_only?: boolean;
360
+ };
361
+ };
362
+ export type FeedbackCreateInput = {
363
+ /**
364
+ * Overall sentiment: positive, neutral or negative.
365
+ */
366
+ sentiment: 'positive' | 'neutral' | 'negative';
367
+ /**
368
+ * What was useful, confusing, wrong or missing.
369
+ */
370
+ message: string;
371
+ /**
372
+ * What you were trying to do when it happened.
373
+ */
374
+ context?: string;
375
+ /**
376
+ * Where the feedback was sent from: cli, mcp, plugin, console or api. Defaults to api.
377
+ */
378
+ source?: 'cli' | 'mcp' | 'plugin' | 'console' | 'api';
379
+ /**
380
+ * Name and version of the sending client.
381
+ */
382
+ client?: string;
383
+ };
384
+ export type Feedback = {
385
+ /**
386
+ * Unique identifier of the feedback entry (Mongo ObjectId).
387
+ */
388
+ id: string;
301
389
  };
390
+ /**
391
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
392
+ */
302
393
  export type FleetCreateInput = {
303
394
  /**
304
395
  * Limits define a set of bounds for provisioning capacity.
305
396
  */
306
397
  limits?: {
307
398
  /**
308
- * CPU limit in cores.
399
+ * CPU limit in cores. Maximum 100,000.
309
400
  */
310
- cpu: number;
401
+ cpu?: number;
311
402
  };
312
403
  gcp?: {
313
- enabled?: boolean;
404
+ enabled: boolean;
314
405
  /**
315
- * Project GCP Project id to deploy instances into
406
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
316
407
  */
317
- project: string;
408
+ project?: string;
318
409
  };
319
410
  hetzner?: {
320
- enabled?: boolean;
411
+ enabled: boolean;
321
412
  /**
322
- * Hetzner Cloud API key with read / write access
413
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
323
414
  */
324
- apiKey: string;
415
+ apiKey?: string;
325
416
  };
326
417
  aws?: {
327
- enabled?: boolean;
418
+ enabled: boolean;
419
+ /**
420
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
421
+ */
422
+ controllerRoleArn?: string;
423
+ };
424
+ /**
425
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
426
+ */
427
+ constraints?: {
328
428
  /**
329
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
429
+ * Allowed values for `karpenter.sh/capacity-type`.
330
430
  */
331
- controllerRoleArn: string;
431
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
432
+ /**
433
+ * Allowed values for `kubernetes.io/arch`.
434
+ */
435
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
436
+ /**
437
+ * Allowed values for `cfke.io/instance-family`.
438
+ */
439
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
440
+ /**
441
+ * Allowed values for `topology.kubernetes.io/region`.
442
+ */
443
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
332
444
  };
445
+ /**
446
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
447
+ */
448
+ scalingProfile?: 'aggressive' | 'conservative';
449
+ /**
450
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
451
+ */
452
+ taints?: Array<{
453
+ /**
454
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
455
+ */
456
+ key: string;
457
+ /**
458
+ * Taint value. Optional.
459
+ */
460
+ value?: string;
461
+ /**
462
+ * Taint effect.
463
+ */
464
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
465
+ }>;
333
466
  /**
334
467
  * Unique identifier of the kubernetes fleet.
335
468
  */
336
469
  id: string;
337
470
  };
471
+ /**
472
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
473
+ */
338
474
  export type Fleet = {
339
475
  /**
340
476
  * Limits define a set of bounds for provisioning capacity.
341
477
  */
342
478
  limits?: {
343
479
  /**
344
- * CPU limit in cores.
480
+ * CPU limit in cores. Maximum 100,000.
345
481
  */
346
- cpu: number;
482
+ cpu?: number;
347
483
  };
348
484
  gcp?: {
349
- enabled?: boolean;
485
+ enabled: boolean;
350
486
  /**
351
- * Project GCP Project id to deploy instances into
487
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
352
488
  */
353
- project: string;
489
+ project?: string;
354
490
  };
355
491
  hetzner?: {
356
- enabled?: boolean;
492
+ enabled: boolean;
357
493
  /**
358
- * Hetzner Cloud API key with read / write access
494
+ * Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.
359
495
  */
360
- apiKey: string;
496
+ apiKey?: string;
361
497
  };
362
498
  aws?: {
363
- enabled?: boolean;
499
+ enabled: boolean;
500
+ /**
501
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
502
+ */
503
+ controllerRoleArn?: string;
504
+ };
505
+ /**
506
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
507
+ */
508
+ constraints: {
509
+ /**
510
+ * Allowed values for `karpenter.sh/capacity-type`.
511
+ */
512
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
364
513
  /**
365
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
514
+ * Allowed values for `kubernetes.io/arch`.
366
515
  */
367
- controllerRoleArn: string;
516
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
517
+ /**
518
+ * Allowed values for `cfke.io/instance-family`.
519
+ */
520
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
521
+ /**
522
+ * Allowed values for `topology.kubernetes.io/region`.
523
+ */
524
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
368
525
  };
526
+ /**
527
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
528
+ */
529
+ scalingProfile: 'aggressive' | 'conservative';
530
+ /**
531
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
532
+ */
533
+ taints: Array<{
534
+ /**
535
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
536
+ */
537
+ key: string;
538
+ /**
539
+ * Taint value. Optional.
540
+ */
541
+ value?: string;
542
+ /**
543
+ * Taint effect.
544
+ */
545
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
546
+ }>;
369
547
  /**
370
548
  * Unique identifier of the kubernetes fleet.
371
549
  */
372
550
  id: string;
551
+ /**
552
+ * Indicates whether the fleet configuration is healthy.
553
+ */
554
+ ready: boolean;
555
+ /**
556
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
557
+ */
558
+ status_message?: string;
559
+ /**
560
+ * Creation date and time of the fleet.
561
+ */
562
+ created_at: string;
563
+ /**
564
+ * Date and time the fleet was last updated.
565
+ */
566
+ updated_at: string;
373
567
  };
568
+ /**
569
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
570
+ */
374
571
  export type FleetUpdateInput = {
375
572
  /**
376
573
  * Limits define a set of bounds for provisioning capacity.
377
574
  */
378
575
  limits?: {
379
576
  /**
380
- * CPU limit in cores.
577
+ * CPU limit in cores. Maximum 100,000.
381
578
  */
382
- cpu: number;
579
+ cpu?: number;
383
580
  };
384
581
  gcp?: {
385
- enabled?: boolean;
582
+ enabled: boolean;
386
583
  /**
387
- * Project GCP Project id to deploy instances into
584
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
388
585
  */
389
- project: string;
586
+ project?: string;
390
587
  };
391
588
  hetzner?: {
392
- enabled?: boolean;
589
+ enabled: boolean;
393
590
  /**
394
- * Hetzner Cloud API key with read / write access
591
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
395
592
  */
396
- apiKey: string;
593
+ apiKey?: string;
397
594
  };
398
595
  aws?: {
399
- enabled?: boolean;
596
+ enabled: boolean;
597
+ /**
598
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
599
+ */
600
+ controllerRoleArn?: string;
601
+ };
602
+ /**
603
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
604
+ */
605
+ constraints?: {
606
+ /**
607
+ * Allowed values for `karpenter.sh/capacity-type`.
608
+ */
609
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
610
+ /**
611
+ * Allowed values for `kubernetes.io/arch`.
612
+ */
613
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
614
+ /**
615
+ * Allowed values for `cfke.io/instance-family`.
616
+ */
617
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
400
618
  /**
401
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
619
+ * Allowed values for `topology.kubernetes.io/region`.
402
620
  */
403
- controllerRoleArn: string;
621
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
404
622
  };
623
+ /**
624
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
625
+ */
626
+ scalingProfile?: 'aggressive' | 'conservative';
627
+ /**
628
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
629
+ */
630
+ taints?: Array<{
631
+ /**
632
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
633
+ */
634
+ key: string;
635
+ /**
636
+ * Taint value. Optional.
637
+ */
638
+ value?: string;
639
+ /**
640
+ * Taint effect.
641
+ */
642
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
643
+ }>;
644
+ };
645
+ export type InviteCreateInput = {
646
+ /**
647
+ * Email address of the user to invite.
648
+ */
649
+ email: string;
650
+ /**
651
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
652
+ */
653
+ role?: 'Administrator' | 'User';
405
654
  };
406
655
  export type Invite = {
407
656
  /**
@@ -424,285 +673,129 @@ export type Invite = {
424
673
  * Generated unique invite code.
425
674
  */
426
675
  code?: string;
427
- };
428
- export type Invoice = {
429
- /**
430
- * Unique identifier of the invoice. UUID v4 string in canonical form
431
- */
432
- id?: string;
433
676
  /**
434
- * Unique identifier of the organization. UUID v4 string in canonical form
677
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
435
678
  */
436
- organizationId?: string;
679
+ role?: 'Administrator' | 'User';
680
+ };
681
+ export type InvoicePaymentAttempt = {
437
682
  /**
438
- * Status of the invoice
683
+ * Identifier of the invoice.
439
684
  */
440
- status?: 'DRAFT' | 'COMMITTED' | 'VOID';
685
+ invoice_id: string;
441
686
  /**
442
- * Total amount of the invoice
687
+ * Invoice number. Null if the invoice has no number.
443
688
  */
444
- amount?: number;
689
+ number: string;
445
690
  /**
446
- * Currency of the invoice
691
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
447
692
  */
448
- currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
693
+ amount: number;
449
694
  /**
450
- * Total amount of credit adjustments
695
+ * Currency of the invoice.
451
696
  */
452
- creditAdj?: number;
697
+ currency: string;
453
698
  /**
454
- * Total amount of refund adjustments
699
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
455
700
  */
456
- refundAdj?: number;
701
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
457
702
  /**
458
- * Date of the invoice
703
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
459
704
  */
460
- invoiceDate?: string;
705
+ client_secret: string;
461
706
  /**
462
- * Target date of the invoice
707
+ * Decline code. Set only when `status` is `failed`.
463
708
  */
464
- targetDate?: string;
709
+ failure_code: string;
465
710
  /**
466
- * Number of the invoice
711
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
467
712
  */
468
- invoiceNumber?: string;
713
+ failure_message: string;
714
+ };
715
+ export type InvoicePaymentResult = {
469
716
  /**
470
- * Balance of the invoice
717
+ * Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).
471
718
  */
472
- balance?: number;
719
+ code: 'paid' | 'processing' | 'action_required' | 'partially_paid' | 'failed' | 'nothing_due' | 'bank_transfer_due';
473
720
  /**
474
- * Bundle keys of the invoice
721
+ * Summary of the outcome, suitable for display.
475
722
  */
476
- bundleKeys?: string;
723
+ message: string;
477
724
  /**
478
- * Credits of the invoice
725
+ * One entry per invoice charged, oldest first.
479
726
  */
480
- credits?: Array<{
481
- /**
482
- * Unique identifier of the invoice item. UUID v4 string in canonical form
483
- */
484
- id?: string;
485
- /**
486
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
487
- */
488
- linkedInvoiceItemId?: string;
727
+ results: Array<{
489
728
  /**
490
- * Name of the product
729
+ * Identifier of the invoice.
491
730
  */
492
- productName?: string;
731
+ invoice_id: string;
493
732
  /**
494
- * Name of the plan
733
+ * Invoice number. Null if the invoice has no number.
495
734
  */
496
- planName?: string;
735
+ number: string;
497
736
  /**
498
- * Name of the phase
737
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
499
738
  */
500
- phaseName?: string;
739
+ amount: number;
501
740
  /**
502
- * Name of the usage
741
+ * Currency of the invoice.
503
742
  */
504
- usageName?: string;
743
+ currency: string;
505
744
  /**
506
- * Pretty name of the product
745
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
507
746
  */
508
- prettyProductName?: string;
747
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
509
748
  /**
510
- * Pretty name of the plan
749
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
511
750
  */
512
- prettyPlanName?: string;
751
+ client_secret: string;
513
752
  /**
514
- * Pretty name of the phase
753
+ * Decline code. Set only when `status` is `failed`.
515
754
  */
516
- prettyPhaseName?: string;
755
+ failure_code: string;
517
756
  /**
518
- * Pretty name of the usage
757
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
519
758
  */
520
- prettyUsageName?: string;
521
- /**
522
- * Type of the invoice item
523
- */
524
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
525
- /**
526
- * Description of the invoice item
527
- */
528
- description?: string;
529
- /**
530
- * Start date of the invoice item
531
- */
532
- startDate?: string;
533
- /**
534
- * End date of the invoice item
535
- */
536
- endDate?: string;
537
- /**
538
- * Amount of the invoice item
539
- */
540
- amount?: number;
541
- /**
542
- * Rate of the invoice item
543
- */
544
- rate?: number;
545
- /**
546
- * Currency of the invoice item
547
- */
548
- currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
549
- /**
550
- * Quantity of the invoice item
551
- */
552
- quantity?: number;
553
- /**
554
- * Details of the invoice item
555
- */
556
- itemDetails?: string;
557
- /**
558
- * Effective date of the catalog
559
- */
560
- catalogEffectiveDate?: string;
561
- /**
562
- * Child items of the invoice item
563
- */
564
- childItems?: Array<Array<unknown> | boolean | number | {
565
- [key: string]: unknown;
566
- } | string>;
567
- }>;
568
- /**
569
- * Items of the invoice
570
- */
571
- items?: Array<{
572
- /**
573
- * Unique identifier of the invoice item. UUID v4 string in canonical form
574
- */
575
- id?: string;
576
- /**
577
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
578
- */
579
- linkedInvoiceItemId?: string;
580
- /**
581
- * Name of the product
582
- */
583
- productName?: string;
584
- /**
585
- * Name of the plan
586
- */
587
- planName?: string;
588
- /**
589
- * Name of the phase
590
- */
591
- phaseName?: string;
592
- /**
593
- * Name of the usage
594
- */
595
- usageName?: string;
596
- /**
597
- * Pretty name of the product
598
- */
599
- prettyProductName?: string;
600
- /**
601
- * Pretty name of the plan
602
- */
603
- prettyPlanName?: string;
604
- /**
605
- * Pretty name of the phase
606
- */
607
- prettyPhaseName?: string;
608
- /**
609
- * Pretty name of the usage
610
- */
611
- prettyUsageName?: string;
612
- /**
613
- * Type of the invoice item
614
- */
615
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
616
- /**
617
- * Description of the invoice item
618
- */
619
- description?: string;
620
- /**
621
- * Start date of the invoice item
622
- */
623
- startDate?: string;
624
- /**
625
- * End date of the invoice item
626
- */
627
- endDate?: string;
628
- /**
629
- * Amount of the invoice item
630
- */
631
- amount?: number;
632
- /**
633
- * Rate of the invoice item
634
- */
635
- rate?: number;
636
- /**
637
- * Currency of the invoice item
638
- */
639
- currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
640
- /**
641
- * Quantity of the invoice item
642
- */
643
- quantity?: number;
644
- /**
645
- * Details of the invoice item
646
- */
647
- itemDetails?: string;
648
- /**
649
- * Effective date of the catalog
650
- */
651
- catalogEffectiveDate?: string;
652
- /**
653
- * Child items of the invoice item
654
- */
655
- childItems?: Array<Array<unknown> | boolean | number | {
656
- [key: string]: unknown;
657
- } | string>;
759
+ failure_message: string;
658
760
  }>;
659
761
  };
660
- export type MarketplaceListing = {
762
+ export type Invoice = {
661
763
  /**
662
- * Id of the chart listing
764
+ * Unique identifier of the invoice.
663
765
  */
664
- id: string;
766
+ id?: string;
767
+ number?: string;
665
768
  /**
666
- * Name of the chart listing
769
+ * Status of the invoice
667
770
  */
668
- name: string;
771
+ status?: string;
669
772
  /**
670
- * Author of the chart listing
773
+ * Total amount of the invoice
671
774
  */
672
- developer: string;
775
+ total?: number;
673
776
  /**
674
- * Short description of the chart listing
777
+ * Currency of the invoice
675
778
  */
676
- description: string;
779
+ currency?: string;
677
780
  /**
678
- * Logo of the chart listing
781
+ * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
679
782
  */
680
- logoUrl: string;
783
+ created: string;
681
784
  /**
682
- * Long description of the chart listing
785
+ * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
683
786
  */
684
- longDescription: string;
787
+ period_start: string;
685
788
  /**
686
- * Tags of the chart
789
+ * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
687
790
  */
688
- categories: Array<string>;
689
- version_channels: Array<string>;
690
- value_schemas: Array<{
691
- /**
692
- * Version of the chart.
693
- */
694
- version: string;
695
- /**
696
- * Schema of the chart values. JSON Schema as string
697
- */
698
- schema: string;
699
- /**
700
- * Schema of the chart values
701
- */
702
- placeholder: string;
703
- }>;
791
+ period_end: string;
792
+ invoice_pdf?: string;
704
793
  };
705
794
  export type OrganizationCreateInput = {
795
+ /**
796
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
797
+ */
798
+ type: 'business' | 'personal';
706
799
  /**
707
800
  * Email address used for billing as a string.
708
801
  */
@@ -724,6 +817,12 @@ export type OrganizationCreateInput = {
724
817
  */
725
818
  password: string;
726
819
  };
820
+ export type OrganizationCreateOutput = {
821
+ /**
822
+ * Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.
823
+ */
824
+ id: string;
825
+ };
727
826
  export type Organization = {
728
827
  /**
729
828
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -733,6 +832,10 @@ export type Organization = {
733
832
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
734
833
  */
735
834
  name?: string;
835
+ /**
836
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
837
+ */
838
+ type: 'business' | 'personal';
736
839
  /**
737
840
  * Creation date of the organization. ISO 8601 date string in UTC timezone
738
841
  */
@@ -757,6 +860,14 @@ export type Organization = {
757
860
  * Available number of Pro clusters that can be created.
758
861
  */
759
862
  pro_clusters_available: number;
863
+ /**
864
+ * Maximum number of Enterprise clusters that can be created.
865
+ */
866
+ enterprise_clusters_max: number;
867
+ /**
868
+ * Available number of Enterprise clusters that can be created.
869
+ */
870
+ enterprise_clusters_available: number;
760
871
  /**
761
872
  * Maximum number of fleets that can be created per cluster.
762
873
  */
@@ -782,490 +893,1441 @@ export type Organization = {
782
893
  */
783
894
  label: string;
784
895
  }>;
896
+ /**
897
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
898
+ */
899
+ cfcr_storage_gb: number;
785
900
  };
786
901
  /**
787
902
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
788
903
  */
789
904
  status: 'active' | 'closed' | 'suspended';
905
+ /**
906
+ * Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.
907
+ */
908
+ verification: 'none' | 'submitted' | 'verified';
790
909
  };
791
910
  export type PaymentMethod = {
792
911
  /**
793
- * Unique identifier of the organization. UUID v4 string in canonical form.
912
+ * Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.
794
913
  */
795
914
  id: string;
796
915
  /**
797
- * Whether organization payment method was set up and ready to use for payments.
916
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
798
917
  */
799
- setup: boolean;
918
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
800
919
  /**
801
- * Payment method type type. Only `card` payments supported at the moment.
802
- */
803
- type: 'card';
804
- /**
805
- * Last 4 digits of the payment card number.
920
+ * Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.
806
921
  */
807
922
  last4: string;
808
923
  /**
809
- * Two-digit number representing the card's expiration month.
924
+ * Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.
810
925
  */
811
926
  exp_month: number;
812
927
  /**
813
- * Four-digit number representing the card's expiration year.
928
+ * Four-digit number representing the card's expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.
814
929
  */
815
930
  exp_year: number;
816
931
  /**
817
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
932
+ * Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.
818
933
  */
819
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
820
- };
821
- export type TokenCreateInput = {
934
+ brand: string;
822
935
  /**
823
- * Human readable access token name.
936
+ * Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet's virtual receiving account, shown in full so the customer can pay into it.
824
937
  */
825
- name: string;
938
+ iban: string;
826
939
  /**
827
- * Role assumed by the token.
940
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
828
941
  */
829
- role: 'Administrator' | 'User';
830
- };
831
- export type Token = {
942
+ bic: string;
832
943
  /**
833
- * Human readable access token name.
944
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
834
945
  */
835
- name: string;
946
+ account_holder_name: string;
836
947
  /**
837
- * Role assumed by the token.
948
+ * Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).
838
949
  */
839
- role: 'Administrator' | 'User';
950
+ is_default: boolean;
951
+ };
952
+ export type PlatformQuota = {
840
953
  /**
841
- * Generated unique identifier of the access token.
954
+ * Maximum number of Basic clusters that can be created.
842
955
  */
843
- id?: string;
956
+ basic_clusters_max: number;
844
957
  /**
845
- * Access token secret. Unmasked only during creation.
958
+ * Available number of Basic clusters that can be created.
846
959
  */
847
- secret?: string;
960
+ basic_clusters_available: number;
848
961
  /**
849
- * Creation date of the access token. ISO 8601 date string in UTC timezone
962
+ * Maximum number of Pro clusters that can be created.
850
963
  */
851
- date_created: string;
852
- };
853
- export type TokenUpdateInput = {
964
+ pro_clusters_max: number;
854
965
  /**
855
- * Human readable access token name.
966
+ * Available number of Pro clusters that can be created.
856
967
  */
857
- name?: string;
968
+ pro_clusters_available: number;
858
969
  /**
859
- * Role assumed by the token.
970
+ * Maximum number of Enterprise clusters that can be created.
860
971
  */
861
- role?: 'Administrator' | 'User';
862
- };
863
- export type Usage = {
972
+ enterprise_clusters_max: number;
864
973
  /**
865
- * Hour of the usage
974
+ * Available number of Enterprise clusters that can be created.
866
975
  */
867
- hour?: string;
976
+ enterprise_clusters_available: number;
868
977
  /**
869
- * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
978
+ * Maximum number of fleets that can be created per cluster.
870
979
  */
871
- cluster_id: string;
980
+ fleets_max: number;
872
981
  /**
873
- * Tier of the cluster.
982
+ * List of Cloudfleet cluster tiers available for the organization.
874
983
  */
875
- cluster_tier: 'basic' | 'pro' | '';
984
+ cluster_tiers: Array<string>;
876
985
  /**
877
- * The product the usage is associated with
986
+ * List of Cloudfleet control plane regions available for the organization.
878
987
  */
879
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
988
+ regions: Array<string>;
880
989
  /**
881
- * Name of the Kubernetes node
990
+ * List of CFKE control plane versions available for the organization.
882
991
  */
883
- node_name: string;
992
+ versions: Array<{
993
+ /**
994
+ * Id of the control plane version. Used in API calls.
995
+ */
996
+ id: string;
997
+ /**
998
+ * Label of the control plane version. Used in frontent UI.
999
+ */
1000
+ label: string;
1001
+ }>;
884
1002
  /**
885
- * SKU of the Kubernetes node
1003
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
886
1004
  */
887
- sku: string;
888
- cpu: number | '';
889
- price: number | '';
890
- value: number | '';
891
- total: number | '';
1005
+ cfcr_storage_gb: number;
892
1006
  };
893
- export type UserCreateInput = {
1007
+ export type RegistryRepository = {
894
1008
  /**
895
- * User email address.
1009
+ * Repository name.
896
1010
  */
897
- email: string;
1011
+ name: string;
898
1012
  /**
899
- * User first name.
1013
+ * Registry region.
900
1014
  */
901
- first_name: string;
1015
+ region: string;
902
1016
  /**
903
- * User last name.
1017
+ * Full URI of the repository.
904
1018
  */
905
- last_name: string;
1019
+ uri: string;
1020
+ };
1021
+ export type RegistryRepositoryWithTags = {
906
1022
  /**
907
- * Generated unique invite code.
1023
+ * Repository name.
908
1024
  */
909
- code: string;
1025
+ name: string;
910
1026
  /**
911
- * User password. Must be at least 8 characters long.
1027
+ * Registry region.
912
1028
  */
913
- password: string;
1029
+ region: string;
914
1030
  /**
915
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1031
+ * Full URI of the repository.
916
1032
  */
917
- status?: 'active' | 'inactive';
1033
+ uri: string;
918
1034
  /**
919
- * User role. Can be 'Administrator', 'User'.
1035
+ * Array of tags in the repository.
920
1036
  */
921
- role?: 'Administrator' | 'User';
922
- };
923
- export type User = {
1037
+ tags: Array<{
1038
+ /**
1039
+ * Tag name.
1040
+ */
1041
+ name: string;
1042
+ /**
1043
+ * Size of the tag in bytes.
1044
+ */
1045
+ size: number;
1046
+ /**
1047
+ * Media type of the manifest.
1048
+ */
1049
+ mediaType?: string;
1050
+ /**
1051
+ * Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).
1052
+ */
1053
+ platforms?: Array<string>;
1054
+ }>;
924
1055
  /**
925
- * User email address.
1056
+ * Total size of all tags in the repository in bytes.
926
1057
  */
927
- email: string;
1058
+ totalSize: number;
1059
+ };
1060
+ export type RegistryTag = {
928
1061
  /**
929
- * User first name.
1062
+ * Tag name.
930
1063
  */
931
- first_name: string;
1064
+ name: string;
932
1065
  /**
933
- * User last name.
1066
+ * Manifest digest for pulling by digest.
934
1067
  */
935
- last_name: string;
1068
+ digest: string;
936
1069
  /**
937
- * User role. Can be 'Administrator', 'User'.
1070
+ * Media type of the manifest.
938
1071
  */
939
- role: 'Administrator' | 'User';
1072
+ mediaType?: string;
940
1073
  /**
941
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1074
+ * Manifest config metadata.
942
1075
  */
943
- status: 'active' | 'inactive';
1076
+ config?: {
1077
+ /**
1078
+ * Size of the config in bytes.
1079
+ */
1080
+ size: number;
1081
+ };
944
1082
  /**
945
- * Unique identifier of the user. UUID v4 string in canonical form
1083
+ * Array of layer metadata.
946
1084
  */
947
- id: string;
1085
+ layers?: Array<{
1086
+ /**
1087
+ * Digest of the layer.
1088
+ */
1089
+ digest?: string;
1090
+ /**
1091
+ * Size of the layer in bytes.
1092
+ */
1093
+ size: number;
1094
+ }>;
948
1095
  /**
949
- * Creation date of the user. ISO 8601 date string in UTC timezone
1096
+ * Array of manifests for multi-arch images.
950
1097
  */
951
- date_created: string;
952
- };
953
- export type UserUpdateInput = {
1098
+ manifests?: Array<{
1099
+ /**
1100
+ * Digest of the manifest.
1101
+ */
1102
+ digest: string;
1103
+ /**
1104
+ * Platform information for the manifest.
1105
+ */
1106
+ platform?: {
1107
+ /**
1108
+ * Architecture of the platform.
1109
+ */
1110
+ architecture: string;
1111
+ /**
1112
+ * Operating system of the platform.
1113
+ */
1114
+ os: string;
1115
+ /**
1116
+ * Variant of the platform (e.g., v7, v8 for ARM).
1117
+ */
1118
+ variant?: string;
1119
+ };
1120
+ /**
1121
+ * Layers for this platform.
1122
+ */
1123
+ layers?: Array<{
1124
+ /**
1125
+ * Digest of the layer.
1126
+ */
1127
+ digest?: string;
1128
+ /**
1129
+ * Size of the layer in bytes.
1130
+ */
1131
+ size: number;
1132
+ }>;
1133
+ /**
1134
+ * Total size of this platform manifest in bytes.
1135
+ */
1136
+ size?: number;
1137
+ }>;
954
1138
  /**
955
- * User email address.
1139
+ * Total size of the tag in bytes.
956
1140
  */
957
- email?: string;
1141
+ size: number;
958
1142
  /**
959
- * User first name.
1143
+ * Registry region.
960
1144
  */
961
- first_name?: string;
1145
+ region: string;
962
1146
  /**
963
- * User last name.
1147
+ * Repository name.
964
1148
  */
965
- last_name?: string;
1149
+ repository: string;
966
1150
  /**
967
- * User role. Can be 'Administrator', 'User'.
1151
+ * Full URI of the tag.
968
1152
  */
969
- role?: 'Administrator' | 'User';
1153
+ uri: string;
1154
+ };
1155
+ export type RoadmapItemCreateInput = {
970
1156
  /**
971
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1157
+ * Your suggestion in one or two sentences. It is reviewed before it appears on the roadmap.
972
1158
  */
973
- status?: 'active' | 'inactive';
974
- };
975
- export type GetUsageData = {
976
- body?: never;
977
- path?: never;
978
- query?: never;
979
- url: '/billing/usage';
1159
+ text: string;
980
1160
  };
981
- export type GetUsageErrors = {
1161
+ export type RoadmapItem = {
982
1162
  /**
983
- * Not authenticated
1163
+ * Unique identifier of the roadmap item (Mongo ObjectId).
984
1164
  */
985
- 401: unknown;
986
- };
987
- export type GetUsageResponses = {
1165
+ id: string;
988
1166
  /**
989
- * An array of usage records.
1167
+ * Short description of the roadmap item.
990
1168
  */
991
- 200: Array<Usage>;
992
- };
993
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
994
- export type GetBalanceData = {
995
- body?: never;
996
- path?: never;
997
- query?: never;
998
- url: '/billing/balance';
999
- };
1000
- export type GetBalanceResponses = {
1169
+ text: string;
1001
1170
  /**
1002
- * Current balance of the organization in USD as a floating-point number.
1171
+ * The caller's vote on this item: -1 (down), 1 (up), 2 (double up), or null if the caller has not voted.
1003
1172
  */
1004
- 200: number;
1005
- };
1006
- export type GetBalanceResponse = GetBalanceResponses[keyof GetBalanceResponses];
1007
- export type GetPaymentMethodData = {
1008
- body?: never;
1009
- path?: never;
1010
- query?: never;
1011
- url: '/billing/payment-method';
1173
+ vote: -1 | 1 | 2;
1012
1174
  };
1013
- export type GetPaymentMethodErrors = {
1175
+ export type RoadmapVoteInput = {
1014
1176
  /**
1015
- * Returns 404 Not Found if the organization does not have a payment method set up.
1177
+ * Vote value: -1 (down), 1 (up), or 2 (double up).
1016
1178
  */
1017
- 404: unknown;
1179
+ value: -1 | 1 | 2;
1018
1180
  };
1019
- export type GetPaymentMethodResponses = {
1181
+ export type TicketAttachment = {
1020
1182
  /**
1021
- * Redacted payment card information.
1183
+ * Unique identifier of the attachment (Mongo ObjectId).
1022
1184
  */
1023
- 200: PaymentMethod;
1024
- };
1025
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1026
- export type GetPaymentMethodSecretData = {
1027
- body?: never;
1028
- path?: never;
1029
- query?: never;
1030
- url: '/billing/payment-method';
1185
+ id: string;
1186
+ /**
1187
+ * Original filename as uploaded.
1188
+ */
1189
+ filename: string;
1190
+ /**
1191
+ * MIME content type of the attachment.
1192
+ */
1193
+ content_type: string;
1194
+ /**
1195
+ * Size of the attachment in bytes.
1196
+ */
1197
+ size: number;
1198
+ };
1199
+ export type TicketCreateInput = {
1200
+ /**
1201
+ * Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.
1202
+ */
1203
+ category: 'billing' | 'technical' | 'general';
1204
+ /**
1205
+ * Initial message body in markdown. There is no separate subject — the first message body is the description.
1206
+ */
1207
+ body: string;
1208
+ /**
1209
+ * Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).
1210
+ */
1211
+ properties?: {
1212
+ [key: string]: unknown;
1213
+ };
1214
+ /**
1215
+ * Grant Cloudfleet support staff access to the organization's resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed.
1216
+ */
1217
+ grant_support_access?: boolean;
1218
+ };
1219
+ export type TicketMessageInput = {
1220
+ /**
1221
+ * Reply body in markdown.
1222
+ */
1223
+ body: string;
1224
+ };
1225
+ export type TicketMessage = {
1226
+ /**
1227
+ * Unique identifier of the message (Mongo ObjectId).
1228
+ */
1229
+ id: string;
1230
+ /**
1231
+ * Message type. Internal notes are filtered out of customer-facing responses.
1232
+ */
1233
+ type: 'customer_reply' | 'agent_reply';
1234
+ /**
1235
+ * Message body in markdown.
1236
+ */
1237
+ body: string;
1238
+ /**
1239
+ * First name of the author. Null when not provided.
1240
+ */
1241
+ author_first_name?: string;
1242
+ /**
1243
+ * Last name of the author. Null when not provided.
1244
+ */
1245
+ author_last_name?: string;
1246
+ /**
1247
+ * Attachments associated with this message.
1248
+ */
1249
+ attachments?: Array<{
1250
+ /**
1251
+ * Unique identifier of the attachment (Mongo ObjectId).
1252
+ */
1253
+ id: string;
1254
+ /**
1255
+ * Original filename as uploaded.
1256
+ */
1257
+ filename: string;
1258
+ /**
1259
+ * MIME content type of the attachment.
1260
+ */
1261
+ content_type: string;
1262
+ /**
1263
+ * Size of the attachment in bytes.
1264
+ */
1265
+ size: number;
1266
+ }>;
1267
+ /**
1268
+ * Creation date of the message. ISO 8601 UTC.
1269
+ */
1270
+ date_created: string;
1271
+ };
1272
+ export type Ticket = {
1273
+ /**
1274
+ * Unique identifier of the ticket (Mongo ObjectId).
1275
+ */
1276
+ id: string;
1277
+ /**
1278
+ * Current state of the ticket.
1279
+ */
1280
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
1281
+ /**
1282
+ * Ticket category.
1283
+ */
1284
+ category: 'billing' | 'technical' | 'general';
1285
+ /**
1286
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
1287
+ */
1288
+ summary: string;
1289
+ /**
1290
+ * Whether Cloudfleet support staff currently have access to the organization's resources. True once access is granted and until the ticket is closed.
1291
+ */
1292
+ support_access_granted: boolean;
1293
+ /**
1294
+ * When support access was granted. Null if it never was. Kept after the ticket is closed.
1295
+ */
1296
+ support_access_granted_at: string;
1297
+ /**
1298
+ * Closure timestamp. Null while the ticket is open.
1299
+ */
1300
+ closed_at?: string;
1301
+ /**
1302
+ * Creation date of the ticket. ISO 8601 UTC.
1303
+ */
1304
+ date_created: string;
1305
+ /**
1306
+ * Last update date of the ticket. ISO 8601 UTC.
1307
+ */
1308
+ date_updated: string;
1309
+ /**
1310
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
1311
+ */
1312
+ messages?: Array<{
1313
+ /**
1314
+ * Unique identifier of the message (Mongo ObjectId).
1315
+ */
1316
+ id: string;
1317
+ /**
1318
+ * Message type. Internal notes are filtered out of customer-facing responses.
1319
+ */
1320
+ type: 'customer_reply' | 'agent_reply';
1321
+ /**
1322
+ * Message body in markdown.
1323
+ */
1324
+ body: string;
1325
+ /**
1326
+ * First name of the author. Null when not provided.
1327
+ */
1328
+ author_first_name?: string;
1329
+ /**
1330
+ * Last name of the author. Null when not provided.
1331
+ */
1332
+ author_last_name?: string;
1333
+ /**
1334
+ * Attachments associated with this message.
1335
+ */
1336
+ attachments?: Array<{
1337
+ /**
1338
+ * Unique identifier of the attachment (Mongo ObjectId).
1339
+ */
1340
+ id: string;
1341
+ /**
1342
+ * Original filename as uploaded.
1343
+ */
1344
+ filename: string;
1345
+ /**
1346
+ * MIME content type of the attachment.
1347
+ */
1348
+ content_type: string;
1349
+ /**
1350
+ * Size of the attachment in bytes.
1351
+ */
1352
+ size: number;
1353
+ }>;
1354
+ /**
1355
+ * Creation date of the message. ISO 8601 UTC.
1356
+ */
1357
+ date_created: string;
1358
+ }>;
1359
+ };
1360
+ export type TokenCreateInput = {
1361
+ /**
1362
+ * Human readable access token name.
1363
+ */
1364
+ name: string;
1365
+ /**
1366
+ * Role assumed by the token.
1367
+ */
1368
+ role: 'Administrator' | 'User';
1369
+ };
1370
+ export type Token = {
1371
+ /**
1372
+ * Human readable access token name.
1373
+ */
1374
+ name: string;
1375
+ /**
1376
+ * Role assumed by the token.
1377
+ */
1378
+ role: 'Administrator' | 'User';
1379
+ /**
1380
+ * Generated unique identifier of the access token.
1381
+ */
1382
+ id?: string;
1383
+ /**
1384
+ * Access token secret. Unmasked only during creation.
1385
+ */
1386
+ secret?: string;
1387
+ /**
1388
+ * Creation date of the access token. ISO 8601 date string in UTC timezone
1389
+ */
1390
+ date_created: string;
1391
+ };
1392
+ export type TokenUpdateInput = {
1393
+ /**
1394
+ * Human readable access token name.
1395
+ */
1396
+ name?: string;
1397
+ /**
1398
+ * Role assumed by the token.
1399
+ */
1400
+ role?: 'Administrator' | 'User';
1401
+ };
1402
+ export type UsageFacets = {
1403
+ /**
1404
+ * List of unique cluster IDs
1405
+ */
1406
+ cluster_id?: Array<string>;
1407
+ /**
1408
+ * List of unique products
1409
+ */
1410
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1411
+ };
1412
+ export type UsageResponse = {
1413
+ /**
1414
+ * Usage data
1415
+ */
1416
+ data: Array<{
1417
+ /**
1418
+ * Hour of the usage
1419
+ */
1420
+ hour: string;
1421
+ /**
1422
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1423
+ */
1424
+ cluster_id: string;
1425
+ /**
1426
+ * The product the usage is associated with
1427
+ */
1428
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1429
+ /**
1430
+ * Consumption
1431
+ */
1432
+ value: number;
1433
+ /**
1434
+ * Price per unit
1435
+ */
1436
+ price: number;
1437
+ /**
1438
+ * Total cost
1439
+ */
1440
+ total: number;
1441
+ }>;
1442
+ /**
1443
+ * Facets for filtering
1444
+ */
1445
+ facets: {
1446
+ /**
1447
+ * List of unique cluster IDs
1448
+ */
1449
+ cluster_id?: Array<string>;
1450
+ /**
1451
+ * List of unique products
1452
+ */
1453
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1454
+ };
1455
+ };
1456
+ export type Usage = {
1457
+ /**
1458
+ * Hour of the usage
1459
+ */
1460
+ hour: string;
1461
+ /**
1462
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1463
+ */
1464
+ cluster_id: string;
1465
+ /**
1466
+ * The product the usage is associated with
1467
+ */
1468
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1469
+ /**
1470
+ * Consumption
1471
+ */
1472
+ value: number;
1473
+ /**
1474
+ * Price per unit
1475
+ */
1476
+ price: number;
1477
+ /**
1478
+ * Total cost
1479
+ */
1480
+ total: number;
1481
+ };
1482
+ export type UserCreateInput = {
1483
+ /**
1484
+ * User email address.
1485
+ */
1486
+ email: string;
1487
+ /**
1488
+ * User first name.
1489
+ */
1490
+ first_name: string;
1491
+ /**
1492
+ * User last name.
1493
+ */
1494
+ last_name: string;
1495
+ /**
1496
+ * Generated unique invite code.
1497
+ */
1498
+ code: string;
1499
+ /**
1500
+ * User password. Must be at least 8 characters long.
1501
+ */
1502
+ password: string;
1503
+ };
1504
+ export type User = {
1505
+ /**
1506
+ * User email address.
1507
+ */
1508
+ email: string;
1509
+ /**
1510
+ * User first name.
1511
+ */
1512
+ first_name: string;
1513
+ /**
1514
+ * User last name.
1515
+ */
1516
+ last_name: string;
1517
+ /**
1518
+ * User role. Can be 'Administrator', 'User'.
1519
+ */
1520
+ role: 'Administrator' | 'User';
1521
+ /**
1522
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1523
+ */
1524
+ status: 'active' | 'inactive';
1525
+ /**
1526
+ * Unique identifier of the user. UUID v4 string in canonical form
1527
+ */
1528
+ id: string;
1529
+ /**
1530
+ * Creation date of the user. ISO 8601 date string in UTC timezone
1531
+ */
1532
+ date_created: string;
1533
+ };
1534
+ export type UserUpdateInput = {
1535
+ /**
1536
+ * User email address.
1537
+ */
1538
+ email?: string;
1539
+ /**
1540
+ * User first name.
1541
+ */
1542
+ first_name?: string;
1543
+ /**
1544
+ * User last name.
1545
+ */
1546
+ last_name?: string;
1547
+ /**
1548
+ * User role. Can be 'Administrator', 'User'.
1549
+ */
1550
+ role?: 'Administrator' | 'User';
1551
+ /**
1552
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1553
+ */
1554
+ status?: 'active' | 'inactive';
1555
+ };
1556
+ export type ListUserOrganizationsData = {
1557
+ body?: never;
1558
+ path: {
1559
+ /**
1560
+ * User email address.
1561
+ */
1562
+ email: string;
1563
+ };
1564
+ query?: never;
1565
+ url: '/users/organizations/{email}';
1566
+ };
1567
+ export type ListUserOrganizationsResponses = {
1568
+ /**
1569
+ * An array of organizations the user belongs to.
1570
+ */
1571
+ 200: Array<{
1572
+ /**
1573
+ * Unique identifier of the organization. UUID v4 string in canonical form
1574
+ */
1575
+ realm?: string;
1576
+ /**
1577
+ * Human-readable name of the organization
1578
+ */
1579
+ displayName?: string;
1580
+ }>;
1581
+ };
1582
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1583
+ export type ListUsersData = {
1584
+ body?: never;
1585
+ path?: never;
1586
+ query?: never;
1587
+ url: '/users';
1588
+ };
1589
+ export type ListUsersErrors = {
1590
+ /**
1591
+ * Not authenticated
1592
+ */
1593
+ 401: unknown;
1594
+ };
1595
+ export type ListUsersResponses = {
1596
+ /**
1597
+ * An array of users
1598
+ */
1599
+ 200: Array<User>;
1600
+ };
1601
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1602
+ export type CreateUserData = {
1603
+ body: UserCreateInput;
1604
+ path?: never;
1605
+ query?: never;
1606
+ url: '/users';
1607
+ };
1608
+ export type CreateUserResponses = {
1609
+ /**
1610
+ * Successfully created. Returns created user details.
1611
+ */
1612
+ 200: User;
1613
+ };
1614
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1615
+ export type DeleteUserData = {
1616
+ body?: never;
1617
+ path: {
1618
+ /**
1619
+ * Unique user identifier. UUID v4 string in canonical form
1620
+ */
1621
+ user_id: string;
1622
+ };
1623
+ query?: never;
1624
+ url: '/users/{user_id}';
1625
+ };
1626
+ export type DeleteUserErrors = {
1627
+ /**
1628
+ * Deleting own user is not allowed. Delete your organization instead.
1629
+ */
1630
+ 400: unknown;
1631
+ /**
1632
+ * Not authenticated
1633
+ */
1634
+ 401: unknown;
1635
+ };
1636
+ export type DeleteUserResponses = {
1637
+ /**
1638
+ * User profile information
1639
+ */
1640
+ 200: User;
1641
+ };
1642
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1643
+ export type GetUserData = {
1644
+ body?: never;
1645
+ path: {
1646
+ /**
1647
+ * Unique user identifier. UUID v4 string in canonical form
1648
+ */
1649
+ user_id: string;
1650
+ };
1651
+ query?: never;
1652
+ url: '/users/{user_id}';
1653
+ };
1654
+ export type GetUserErrors = {
1655
+ /**
1656
+ * Not authenticated
1657
+ */
1658
+ 401: unknown;
1659
+ };
1660
+ export type GetUserResponses = {
1661
+ /**
1662
+ * User profile information
1663
+ */
1664
+ 200: User;
1665
+ };
1666
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1667
+ export type UpdateUserData = {
1668
+ body: UserUpdateInput;
1669
+ path: {
1670
+ /**
1671
+ * Unique user identifier. UUID v4 string in canonical form
1672
+ */
1673
+ user_id: string;
1674
+ };
1675
+ query?: never;
1676
+ url: '/users/{user_id}';
1677
+ };
1678
+ export type UpdateUserResponses = {
1679
+ /**
1680
+ * Successfully created. Returns created user details.
1681
+ */
1682
+ 200: User;
1683
+ };
1684
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1685
+ export type ListTokensData = {
1686
+ body?: never;
1687
+ path?: never;
1688
+ query?: never;
1689
+ url: '/tokens';
1690
+ };
1691
+ export type ListTokensErrors = {
1692
+ /**
1693
+ * Not authenticated
1694
+ */
1695
+ 401: unknown;
1696
+ };
1697
+ export type ListTokensResponses = {
1698
+ /**
1699
+ * Returns a list of access token details with masked secrets.
1700
+ */
1701
+ 200: Array<Token>;
1702
+ };
1703
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1704
+ export type CreateTokenData = {
1705
+ body: TokenCreateInput;
1706
+ path?: never;
1707
+ query?: never;
1708
+ url: '/tokens';
1709
+ };
1710
+ export type CreateTokenErrors = {
1711
+ /**
1712
+ * Not authenticated
1713
+ */
1714
+ 401: unknown;
1715
+ };
1716
+ export type CreateTokenResponses = {
1717
+ /**
1718
+ * Successfully created. Returns created token details with unmasked/raw secret.
1719
+ */
1720
+ 200: Token;
1721
+ };
1722
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1723
+ export type DeleteTokenData = {
1724
+ body?: never;
1725
+ path: {
1726
+ /**
1727
+ * Generated unique identifier of the access token.
1728
+ */
1729
+ token_id: string;
1730
+ };
1731
+ query?: never;
1732
+ url: '/tokens/{token_id}';
1733
+ };
1734
+ export type DeleteTokenResponses = {
1735
+ /**
1736
+ * Successfully deleted.
1737
+ */
1738
+ 200: unknown;
1739
+ };
1740
+ export type GetTokenData = {
1741
+ body?: never;
1742
+ path: {
1743
+ /**
1744
+ * Generated unique identifier of the access token.
1745
+ */
1746
+ token_id: string;
1747
+ };
1748
+ query?: never;
1749
+ url: '/tokens/{token_id}';
1750
+ };
1751
+ export type GetTokenErrors = {
1752
+ /**
1753
+ * Not authenticated
1754
+ */
1755
+ 401: unknown;
1756
+ };
1757
+ export type GetTokenResponses = {
1758
+ /**
1759
+ * Returns access token details with masked secret.
1760
+ */
1761
+ 200: Token;
1762
+ };
1763
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1764
+ export type UpdateTokenData = {
1765
+ body: TokenUpdateInput;
1766
+ path: {
1767
+ /**
1768
+ * Generated unique identifier of the access token.
1769
+ */
1770
+ token_id: string;
1771
+ };
1772
+ query?: never;
1773
+ url: '/tokens/{token_id}';
1031
1774
  };
1032
- export type GetPaymentMethodSecretResponses = {
1775
+ export type UpdateTokenErrors = {
1033
1776
  /**
1034
- * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1035
- *
1777
+ * Not authenticated
1036
1778
  */
1037
- 200: {
1779
+ 401: unknown;
1780
+ };
1781
+ export type UpdateTokenResponses = {
1782
+ /**
1783
+ * Successfully updated. Returns updated token details with masked secret.
1784
+ */
1785
+ 200: Token;
1786
+ };
1787
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1788
+ export type RegenerateTokenData = {
1789
+ body?: never;
1790
+ path: {
1038
1791
  /**
1039
- * The client secret.
1792
+ * Generated unique identifier of the access token.
1040
1793
  */
1041
- id?: string;
1794
+ token_id: string;
1042
1795
  };
1796
+ query?: never;
1797
+ url: '/tokens/{token_id}/secret';
1043
1798
  };
1044
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1045
- export type ListInvoicesData = {
1799
+ export type RegenerateTokenErrors = {
1800
+ /**
1801
+ * Not authenticated
1802
+ */
1803
+ 401: unknown;
1804
+ };
1805
+ export type RegenerateTokenResponses = {
1806
+ /**
1807
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1808
+ */
1809
+ 200: Token;
1810
+ };
1811
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1812
+ export type ListTicketsData = {
1046
1813
  body?: never;
1047
1814
  path?: never;
1048
- query: {
1049
- /**
1050
- * Start date for the usage. Date of oldest data point to retrieve.
1051
- */
1052
- start_date: string;
1815
+ query?: never;
1816
+ url: '/tickets';
1817
+ };
1818
+ export type ListTicketsResponses = {
1819
+ /**
1820
+ * An array of tickets for the organization, newest first.
1821
+ */
1822
+ 200: Array<Ticket>;
1823
+ };
1824
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1825
+ export type CreateTicketData = {
1826
+ body: {
1053
1827
  /**
1054
- * End date for the usage. Date of newest data point to retrieve.
1828
+ * JSON-encoded TicketCreateInput.
1055
1829
  */
1056
- end_date: string;
1830
+ payload?: string;
1831
+ attachments?: Array<Blob | File>;
1057
1832
  };
1058
- url: '/billing/invoices';
1833
+ path?: never;
1834
+ query?: never;
1835
+ url: '/tickets';
1059
1836
  };
1060
- export type ListInvoicesErrors = {
1837
+ export type CreateTicketResponses = {
1061
1838
  /**
1062
- * Not authenticated
1839
+ * Ticket created.
1063
1840
  */
1064
- 401: unknown;
1841
+ 200: Ticket;
1065
1842
  };
1066
- export type ListInvoicesResponses = {
1843
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1844
+ export type CloseTicketData = {
1845
+ body?: never;
1846
+ path: {
1847
+ ticket_id: string;
1848
+ };
1849
+ query?: never;
1850
+ url: '/tickets/{ticket_id}';
1851
+ };
1852
+ export type CloseTicketResponses = {
1067
1853
  /**
1068
- * An array of usage records.
1854
+ * Ticket closed.
1069
1855
  */
1070
- 200: Array<Invoice>;
1856
+ 200: Ticket;
1071
1857
  };
1072
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1073
- export type GetInvoiceData = {
1858
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1859
+ export type GetTicketData = {
1860
+ body?: never;
1861
+ path: {
1862
+ ticket_id: string;
1863
+ };
1864
+ query?: never;
1865
+ url: '/tickets/{ticket_id}';
1866
+ };
1867
+ export type GetTicketResponses = {
1868
+ /**
1869
+ * Ticket with messages (internal notes excluded).
1870
+ */
1871
+ 200: Ticket;
1872
+ };
1873
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1874
+ export type GrantTicketSupportAccessData = {
1074
1875
  body?: never;
1075
1876
  path: {
1877
+ ticket_id: string;
1878
+ };
1879
+ query?: never;
1880
+ url: '/tickets/{ticket_id}/support-access';
1881
+ };
1882
+ export type GrantTicketSupportAccessErrors = {
1883
+ /**
1884
+ * Ticket is closed. Open a new ticket instead.
1885
+ */
1886
+ 409: unknown;
1887
+ };
1888
+ export type GrantTicketSupportAccessResponses = {
1889
+ /**
1890
+ * Support access granted.
1891
+ */
1892
+ 200: Ticket;
1893
+ };
1894
+ export type GrantTicketSupportAccessResponse = GrantTicketSupportAccessResponses[keyof GrantTicketSupportAccessResponses];
1895
+ export type ReplyTicketData = {
1896
+ body: {
1076
1897
  /**
1077
- * Unique invoice identifier. UUID v4 string in canonical form
1898
+ * JSON-encoded TicketMessageInput.
1078
1899
  */
1079
- id: string;
1900
+ payload?: string;
1901
+ attachments?: Array<Blob | File>;
1902
+ };
1903
+ path: {
1904
+ ticket_id: string;
1080
1905
  };
1081
1906
  query?: never;
1082
- url: '/billing/invoices/{id}';
1907
+ url: '/tickets/{ticket_id}/messages';
1083
1908
  };
1084
- export type GetInvoiceResponses = {
1909
+ export type ReplyTicketErrors = {
1085
1910
  /**
1086
- * Returns a single Invoice HTML representation under `html` property.
1911
+ * Ticket is closed. Open a new ticket instead.
1087
1912
  */
1088
- 200: {
1089
- html?: string;
1913
+ 409: unknown;
1914
+ };
1915
+ export type ReplyTicketResponses = {
1916
+ /**
1917
+ * Reply appended.
1918
+ */
1919
+ 200: TicketMessage;
1920
+ };
1921
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1922
+ export type GetTicketAttachmentData = {
1923
+ body?: never;
1924
+ path: {
1925
+ ticket_id: string;
1926
+ attachment_id: string;
1090
1927
  };
1928
+ query?: never;
1929
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1091
1930
  };
1092
- export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
1093
- export type GetContactData = {
1931
+ export type GetTicketAttachmentResponses = {
1932
+ /**
1933
+ * Attachment binary stream.
1934
+ */
1935
+ 200: Blob | File;
1936
+ };
1937
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1938
+ export type ListRoadmapData = {
1094
1939
  body?: never;
1095
1940
  path?: never;
1096
1941
  query?: never;
1097
- url: '/billing/contact';
1942
+ url: '/roadmap';
1098
1943
  };
1099
- export type GetContactResponses = {
1944
+ export type ListRoadmapResponses = {
1100
1945
  /**
1101
- * Returns a single object containing organization contact and billing address details.
1946
+ * An array of roadmap items, newest first.
1102
1947
  */
1103
- 200: BillingContact;
1948
+ 200: Array<RoadmapItem>;
1104
1949
  };
1105
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1106
- export type UpdateContactData = {
1107
- body: BillingContact;
1950
+ export type ListRoadmapResponse = ListRoadmapResponses[keyof ListRoadmapResponses];
1951
+ export type SuggestRoadmapData = {
1952
+ body: RoadmapItemCreateInput;
1108
1953
  path?: never;
1109
1954
  query?: never;
1110
- url: '/billing/contact';
1955
+ url: '/roadmap';
1111
1956
  };
1112
- export type UpdateContactResponses = {
1957
+ export type SuggestRoadmapResponses = {
1113
1958
  /**
1114
- * Successfully updated. Returns updated organization details.
1959
+ * Suggestion submitted for review.
1115
1960
  */
1116
- 200: BillingContact;
1961
+ 200: RoadmapItem;
1117
1962
  };
1118
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1119
- export type GetCreditsData = {
1963
+ export type SuggestRoadmapResponse = SuggestRoadmapResponses[keyof SuggestRoadmapResponses];
1964
+ export type UnvoteRoadmapData = {
1965
+ body?: never;
1966
+ path: {
1967
+ item_id: string;
1968
+ };
1969
+ query?: never;
1970
+ url: '/roadmap/{item_id}/vote';
1971
+ };
1972
+ export type UnvoteRoadmapErrors = {
1973
+ /**
1974
+ * Roadmap item not found.
1975
+ */
1976
+ 404: unknown;
1977
+ };
1978
+ export type UnvoteRoadmapResponses = {
1979
+ /**
1980
+ * Vote removed. Returns the item without a vote.
1981
+ */
1982
+ 200: RoadmapItem;
1983
+ };
1984
+ export type UnvoteRoadmapResponse = UnvoteRoadmapResponses[keyof UnvoteRoadmapResponses];
1985
+ export type VoteRoadmapData = {
1986
+ body: RoadmapVoteInput;
1987
+ path: {
1988
+ item_id: string;
1989
+ };
1990
+ query?: never;
1991
+ url: '/roadmap/{item_id}/vote';
1992
+ };
1993
+ export type VoteRoadmapErrors = {
1994
+ /**
1995
+ * Roadmap item not found.
1996
+ */
1997
+ 404: unknown;
1998
+ };
1999
+ export type VoteRoadmapResponses = {
2000
+ /**
2001
+ * Vote saved. Returns the item with your vote.
2002
+ */
2003
+ 200: RoadmapItem;
2004
+ };
2005
+ export type VoteRoadmapResponse = VoteRoadmapResponses[keyof VoteRoadmapResponses];
2006
+ export type ListRepositoriesData = {
1120
2007
  body?: never;
1121
2008
  path?: never;
1122
2009
  query?: never;
1123
- url: '/billing/credits';
2010
+ url: '/registry';
1124
2011
  };
1125
- export type GetCreditsErrors = {
2012
+ export type ListRepositoriesErrors = {
1126
2013
  /**
1127
2014
  * Not authenticated
1128
2015
  */
1129
2016
  401: unknown;
2017
+ /**
2018
+ * Internal server error
2019
+ */
2020
+ 500: unknown;
1130
2021
  };
1131
- export type GetCreditsResponses = {
2022
+ export type ListRepositoriesResponses = {
1132
2023
  /**
1133
- * An array of the applied promotional credits records.
2024
+ * List of repositories
1134
2025
  */
1135
- 200: Array<BillingCredits>;
2026
+ 200: Array<RegistryRepository>;
1136
2027
  };
1137
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1138
- export type RedeemCreditsData = {
1139
- body: {
2028
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2029
+ export type ListTagsData = {
2030
+ body?: never;
2031
+ path: {
1140
2032
  /**
1141
- * Promotional code to redeem
2033
+ * Region where the repository is located
1142
2034
  */
1143
- code?: string;
2035
+ region: string;
2036
+ /**
2037
+ * Name of the repository
2038
+ */
2039
+ repository: string;
1144
2040
  };
1145
- path?: never;
1146
2041
  query?: never;
1147
- url: '/billing/credits';
2042
+ url: '/registry/{region}/{repository}';
1148
2043
  };
1149
- export type RedeemCreditsErrors = {
2044
+ export type ListTagsErrors = {
2045
+ /**
2046
+ * Not authenticated
2047
+ */
2048
+ 401: unknown;
2049
+ /**
2050
+ * Repository not found
2051
+ */
2052
+ 404: unknown;
2053
+ /**
2054
+ * Internal server error
2055
+ */
2056
+ 500: unknown;
2057
+ };
2058
+ export type ListTagsResponses = {
2059
+ /**
2060
+ * Repository with tags
2061
+ */
2062
+ 200: RegistryRepositoryWithTags;
2063
+ };
2064
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2065
+ export type DeleteTagData = {
2066
+ body?: never;
2067
+ path: {
2068
+ /**
2069
+ * Region where the repository is located
2070
+ */
2071
+ region: string;
2072
+ /**
2073
+ * Name of the repository
2074
+ */
2075
+ repository: string;
2076
+ /**
2077
+ * Name of the tag
2078
+ */
2079
+ tag: string;
2080
+ };
2081
+ query?: never;
2082
+ url: '/registry/{region}/{repository}/{tag}';
2083
+ };
2084
+ export type DeleteTagErrors = {
1150
2085
  /**
1151
2086
  * Not authenticated
1152
2087
  */
1153
2088
  401: unknown;
2089
+ /**
2090
+ * Tag not found
2091
+ */
2092
+ 404: unknown;
2093
+ /**
2094
+ * Internal server error
2095
+ */
2096
+ 500: unknown;
1154
2097
  };
1155
- export type RedeemCreditsResponses = {
2098
+ export type DeleteTagResponses = {
1156
2099
  /**
1157
- * Successfully created a new organization.
2100
+ * Tag successfully deleted
1158
2101
  */
1159
2102
  200: unknown;
1160
2103
  };
1161
- export type ListChartsData = {
2104
+ export type GetTagData = {
1162
2105
  body?: never;
1163
2106
  path: {
1164
2107
  /**
1165
- * Unique identifier of the cluster. UUID v4 string in canonical form
2108
+ * Region where the repository is located
1166
2109
  */
1167
- cluster_id: string;
2110
+ region: string;
2111
+ /**
2112
+ * Name of the repository
2113
+ */
2114
+ repository: string;
2115
+ /**
2116
+ * Name of the tag
2117
+ */
2118
+ tag: string;
2119
+ };
2120
+ query?: never;
2121
+ url: '/registry/{region}/{repository}/{tag}';
2122
+ };
2123
+ export type GetTagErrors = {
2124
+ /**
2125
+ * Not authenticated
2126
+ */
2127
+ 401: unknown;
2128
+ /**
2129
+ * Tag not found
2130
+ */
2131
+ 404: unknown;
2132
+ /**
2133
+ * Internal server error
2134
+ */
2135
+ 500: unknown;
2136
+ };
2137
+ export type GetTagResponses = {
2138
+ /**
2139
+ * Tag details
2140
+ */
2141
+ 200: RegistryTag;
2142
+ };
2143
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2144
+ export type GetOrganizationData = {
2145
+ body?: never;
2146
+ path?: never;
2147
+ query?: never;
2148
+ url: '/organization';
2149
+ };
2150
+ export type GetOrganizationResponses = {
2151
+ /**
2152
+ * Returns a single object containing organization details.
2153
+ */
2154
+ 200: Organization;
2155
+ };
2156
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2157
+ export type CreateOrganizationData = {
2158
+ body: OrganizationCreateInput;
2159
+ path?: never;
2160
+ query?: never;
2161
+ url: '/organization';
2162
+ };
2163
+ export type CreateOrganizationResponses = {
2164
+ /**
2165
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2166
+ *
2167
+ */
2168
+ 200: OrganizationCreateOutput;
2169
+ };
2170
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2171
+ export type PostMcpData = {
2172
+ /**
2173
+ * JSON-RPC 2.0 request payload
2174
+ */
2175
+ body: {
2176
+ jsonrpc?: string;
2177
+ method?: string;
2178
+ id?: string | number;
2179
+ /**
2180
+ * Method-specific parameters
2181
+ */
2182
+ params?: {
2183
+ [key: string]: unknown;
2184
+ };
2185
+ };
2186
+ path?: never;
2187
+ query?: never;
2188
+ url: '/mcp';
2189
+ };
2190
+ export type PostMcpErrors = {
2191
+ /**
2192
+ * Not authenticated
2193
+ */
2194
+ 401: unknown;
2195
+ };
2196
+ export type PostMcpResponses = {
2197
+ /**
2198
+ * JSON-RPC 2.0 success or error response
2199
+ */
2200
+ 200: {
2201
+ jsonrpc?: string;
2202
+ id?: string | number;
2203
+ result?: {
2204
+ [key: string]: unknown;
2205
+ };
2206
+ error?: {
2207
+ code?: number;
2208
+ message?: string;
2209
+ };
1168
2210
  };
2211
+ };
2212
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2213
+ export type ListInvitesData = {
2214
+ body?: never;
2215
+ path?: never;
1169
2216
  query?: never;
1170
- url: '/clusters/{cluster_id}/charts';
2217
+ url: '/invites';
1171
2218
  };
1172
- export type ListChartsErrors = {
2219
+ export type ListInvitesErrors = {
1173
2220
  /**
1174
2221
  * Not authenticated
1175
2222
  */
1176
2223
  401: unknown;
1177
2224
  };
1178
- export type ListChartsResponses = {
2225
+ export type ListInvitesResponses = {
1179
2226
  /**
1180
- * An array of charts
2227
+ * An array of invites
1181
2228
  */
1182
- 200: Array<Chart>;
2229
+ 200: Array<Invite>;
1183
2230
  };
1184
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1185
- export type CreateChartData = {
1186
- body: ChartCreateInput;
1187
- path: {
1188
- /**
1189
- * Unique identifier of the cluster. UUID v4 string in canonical form
1190
- */
1191
- cluster_id: string;
1192
- };
2231
+ export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
2232
+ export type CreateInviteData = {
2233
+ body: InviteCreateInput;
2234
+ path?: never;
1193
2235
  query?: never;
1194
- url: '/clusters/{cluster_id}/charts';
2236
+ url: '/invites';
1195
2237
  };
1196
- export type CreateChartResponses = {
2238
+ export type CreateInviteResponses = {
1197
2239
  /**
1198
- * Successfully created. Returns created Chart ID.
2240
+ * Successfully created. Returns created invite details.
1199
2241
  */
1200
- 200: string;
2242
+ 200: Invite;
1201
2243
  };
1202
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1203
- export type DeleteChartData = {
2244
+ export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
2245
+ export type GetInviteData = {
1204
2246
  body?: never;
1205
2247
  path: {
1206
2248
  /**
1207
- * Unique identifier of the cluster. UUID v4 string in canonical form
1208
- */
1209
- cluster_id: string;
1210
- /**
1211
- * Chart deployment name as the unique identifier of the chart.
2249
+ * Invitation code
1212
2250
  */
1213
- chart_name: string;
2251
+ code: string;
1214
2252
  };
1215
2253
  query?: never;
1216
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2254
+ url: '/invites/{code}';
1217
2255
  };
1218
- export type DeleteChartResponses = {
2256
+ export type GetInviteResponses = {
1219
2257
  /**
1220
- * Successfully deleted.
2258
+ * The invitation code is valid. Returns the invited email and organization.
1221
2259
  */
1222
- 200: string;
2260
+ 200: {
2261
+ /**
2262
+ * Email address the invite was issued to.
2263
+ */
2264
+ email?: string;
2265
+ /**
2266
+ * Identifier of the organization the invite grants access to.
2267
+ */
2268
+ organization_id?: string;
2269
+ };
1223
2270
  };
1224
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1225
- export type GetChartData = {
2271
+ export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
2272
+ export type DeleteInviteData = {
1226
2273
  body?: never;
1227
2274
  path: {
1228
2275
  /**
1229
- * Unique identifier of the cluster. UUID v4 string in canonical form
1230
- */
1231
- cluster_id: string;
1232
- /**
1233
- * Chart deployment name as the unique identifier of the chart.
2276
+ * User email address
1234
2277
  */
1235
- chart_name: string;
2278
+ email: string;
1236
2279
  };
1237
2280
  query?: never;
1238
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2281
+ url: '/invites/{email}';
2282
+ };
2283
+ export type DeleteInviteResponses = {
2284
+ /**
2285
+ * Successfully deleted.
2286
+ */
2287
+ 200: unknown;
2288
+ };
2289
+ export type SendFeedbackData = {
2290
+ body: FeedbackCreateInput;
2291
+ path?: never;
2292
+ query?: never;
2293
+ url: '/feedback';
1239
2294
  };
1240
- export type GetChartResponses = {
2295
+ export type SendFeedbackErrors = {
1241
2296
  /**
1242
- * Returns a single object containing chart details.
2297
+ * Too much feedback from this organization in the last hour.
1243
2298
  */
1244
- 200: Chart;
2299
+ 429: unknown;
1245
2300
  };
1246
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1247
- export type UpdateChartData = {
1248
- body: ChartUpdateInput;
2301
+ export type SendFeedbackResponses = {
2302
+ /**
2303
+ * Feedback received.
2304
+ */
2305
+ 200: Feedback;
2306
+ };
2307
+ export type SendFeedbackResponse = SendFeedbackResponses[keyof SendFeedbackResponses];
2308
+ export type QueryClusterData = {
2309
+ body?: never;
1249
2310
  path: {
1250
2311
  /**
1251
2312
  * Unique identifier of the cluster. UUID v4 string in canonical form
1252
2313
  */
1253
2314
  cluster_id: string;
1254
- /**
1255
- * Chart deployment name as the unique identifier of the chart.
1256
- */
1257
- chart_name: string;
1258
2315
  };
1259
2316
  query?: never;
1260
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2317
+ url: '/clusters/{cluster_id}/query';
1261
2318
  };
1262
- export type UpdateChartResponses = {
2319
+ export type QueryClusterErrors = {
1263
2320
  /**
1264
- * Successfully updated.
2321
+ * Not authenticated
1265
2322
  */
1266
- 200: string;
2323
+ 401: unknown;
2324
+ };
2325
+ export type QueryClusterResponses = {
2326
+ /**
2327
+ * Kubernetes API response
2328
+ */
2329
+ 200: unknown;
1267
2330
  };
1268
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1269
2331
  export type ListFleetsData = {
1270
2332
  body?: never;
1271
2333
  path: {
@@ -1306,6 +2368,10 @@ export type CreateFleetErrors = {
1306
2368
  * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1307
2369
  */
1308
2370
  402: string;
2371
+ /**
2372
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2373
+ */
2374
+ 409: string;
1309
2375
  };
1310
2376
  export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1311
2377
  export type CreateFleetResponses = {
@@ -1330,6 +2396,13 @@ export type DeleteFleetData = {
1330
2396
  query?: never;
1331
2397
  url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1332
2398
  };
2399
+ export type DeleteFleetErrors = {
2400
+ /**
2401
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2402
+ */
2403
+ 409: string;
2404
+ };
2405
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
1333
2406
  export type DeleteFleetResponses = {
1334
2407
  /**
1335
2408
  * Successfully deleted.
@@ -1379,6 +2452,10 @@ export type UpdateFleetErrors = {
1379
2452
  * Organization must have a valid payment method configured to access this endpoint.
1380
2453
  */
1381
2454
  402: string;
2455
+ /**
2456
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2457
+ */
2458
+ 409: string;
1382
2459
  };
1383
2460
  export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1384
2461
  export type UpdateFleetResponses = {
@@ -1388,29 +2465,6 @@ export type UpdateFleetResponses = {
1388
2465
  200: string;
1389
2466
  };
1390
2467
  export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1391
- export type QueryClusterData = {
1392
- body?: never;
1393
- path: {
1394
- /**
1395
- * Unique identifier of the cluster. UUID v4 string in canonical form
1396
- */
1397
- cluster_id: string;
1398
- };
1399
- query?: never;
1400
- url: '/clusters/{cluster_id}/query';
1401
- };
1402
- export type QueryClusterErrors = {
1403
- /**
1404
- * Not authenticated
1405
- */
1406
- 401: unknown;
1407
- };
1408
- export type QueryClusterResponses = {
1409
- /**
1410
- * Kubernetes API response
1411
- */
1412
- 200: unknown;
1413
- };
1414
2468
  export type ListClustersData = {
1415
2469
  body?: never;
1416
2470
  path?: never;
@@ -1461,9 +2515,24 @@ export type DeleteClusterData = {
1461
2515
  query?: never;
1462
2516
  url: '/clusters/{cluster_id}';
1463
2517
  };
2518
+ export type DeleteClusterErrors = {
2519
+ /**
2520
+ * Cluster not found; it does not exist or has already been deleted.
2521
+ */
2522
+ 404: unknown;
2523
+ /**
2524
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2525
+ */
2526
+ 409: string;
2527
+ /**
2528
+ * Transient failure tearing down the cluster; retry the request.
2529
+ */
2530
+ 503: unknown;
2531
+ };
2532
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
1464
2533
  export type DeleteClusterResponses = {
1465
2534
  /**
1466
- * Successfully deleted.
2535
+ * Successfully deleted. The cluster has been torn down.
1467
2536
  */
1468
2537
  200: string;
1469
2538
  };
@@ -1497,428 +2566,295 @@ export type UpdateClusterData = {
1497
2566
  query?: never;
1498
2567
  url: '/clusters/{cluster_id}';
1499
2568
  };
1500
- export type UpdateClusterResponses = {
1501
- /**
1502
- * Successfully updated. Returns updated cluster details.
1503
- */
1504
- 200: Cluster;
1505
- };
1506
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1507
- export type GetJoinInformationData = {
1508
- body?: never;
1509
- path: {
1510
- /**
1511
- * Unique identifier of the cluster. UUID v4 string in canonical form
1512
- */
1513
- cluster_id: string;
1514
- };
1515
- query?: never;
1516
- url: '/clusters/{cluster_id}/join_information';
1517
- };
1518
- export type GetJoinInformationErrors = {
1519
- /**
1520
- * Not authenticated
1521
- */
1522
- 401: unknown;
1523
- };
1524
- export type GetJoinInformationResponses = {
1525
- /**
1526
- * An object of cluster join information
1527
- */
1528
- 200: ClusterJoinInformation;
1529
- };
1530
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1531
- export type ListInvitesData = {
1532
- body?: never;
1533
- path?: never;
1534
- query?: never;
1535
- url: '/invites';
1536
- };
1537
- export type ListInvitesErrors = {
1538
- /**
1539
- * Not authenticated
1540
- */
1541
- 401: unknown;
1542
- };
1543
- export type ListInvitesResponses = {
1544
- /**
1545
- * An array of invites
1546
- */
1547
- 200: Array<Invite>;
1548
- };
1549
- export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1550
- export type CreateInviteData = {
1551
- body: {
1552
- /**
1553
- * User email address
1554
- */
1555
- email?: string;
1556
- };
1557
- path?: never;
1558
- query?: never;
1559
- url: '/invites';
1560
- };
1561
- export type CreateInviteResponses = {
1562
- /**
1563
- * Successfully created. Returns created invite details.
1564
- */
1565
- 200: Invite;
1566
- };
1567
- export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
1568
- export type GetInviteData = {
1569
- body?: never;
1570
- path: {
1571
- /**
1572
- * Invitation code
1573
- */
1574
- code: string;
1575
- };
1576
- query?: never;
1577
- url: '/invites/{code}';
1578
- };
1579
- export type GetInviteResponses = {
1580
- /**
1581
- * Returns a single object containing invite details.
1582
- */
1583
- 200: Invite;
1584
- };
1585
- export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1586
- export type DeleteInviteData = {
1587
- body?: never;
1588
- path: {
1589
- /**
1590
- * User email address
1591
- */
1592
- email: string;
1593
- };
1594
- query?: never;
1595
- url: '/invites/{email}';
1596
- };
1597
- export type DeleteInviteResponses = {
1598
- /**
1599
- * Successfully deleted.
1600
- */
1601
- 200: unknown;
1602
- };
1603
- export type ListMarketplaceChartsData = {
1604
- body?: never;
1605
- path?: never;
1606
- query?: never;
1607
- url: '/marketplace';
1608
- };
1609
- export type ListMarketplaceChartsErrors = {
1610
- /**
1611
- * Not authenticated
1612
- */
1613
- 401: unknown;
1614
- };
1615
- export type ListMarketplaceChartsResponses = {
1616
- /**
1617
- * An array of chart listings in the marketplace.
1618
- */
1619
- 200: Array<MarketplaceListing>;
1620
- };
1621
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1622
- export type GetMarketplaceChartData = {
1623
- body?: never;
1624
- path: {
1625
- /**
1626
- * Unique identifier of the chart listing in the marketplace.
1627
- */
1628
- listing_id: string;
1629
- };
1630
- query?: never;
1631
- url: '/marketplace/{listing_id}';
1632
- };
1633
- export type GetMarketplaceChartResponses = {
1634
- /**
1635
- * Returns an object containing the chart listing details.
1636
- */
1637
- 200: MarketplaceListing;
1638
- };
1639
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1640
- export type GetOrganizationData = {
1641
- body?: never;
1642
- path?: never;
1643
- query?: never;
1644
- url: '/organization';
1645
- };
1646
- export type GetOrganizationResponses = {
2569
+ export type UpdateClusterErrors = {
1647
2570
  /**
1648
- * Returns a single object containing organization details.
2571
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
1649
2572
  */
1650
- 200: Organization;
1651
- };
1652
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
1653
- export type CreateOrganizationData = {
1654
- body: OrganizationCreateInput;
1655
- path?: never;
1656
- query?: never;
1657
- url: '/organization';
2573
+ 409: string;
1658
2574
  };
1659
- export type CreateOrganizationResponses = {
2575
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2576
+ export type UpdateClusterResponses = {
1660
2577
  /**
1661
- * Successfully created a new organization.
2578
+ * Successfully updated. Returns updated cluster details.
1662
2579
  */
1663
- 200: unknown;
2580
+ 200: Cluster;
1664
2581
  };
1665
- export type ListTokensData = {
2582
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2583
+ export type GetJoinInformationData = {
1666
2584
  body?: never;
1667
- path?: never;
2585
+ path: {
2586
+ /**
2587
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2588
+ */
2589
+ cluster_id: string;
2590
+ };
1668
2591
  query?: never;
1669
- url: '/tokens';
2592
+ url: '/clusters/{cluster_id}/join_information';
1670
2593
  };
1671
- export type ListTokensErrors = {
2594
+ export type GetJoinInformationErrors = {
1672
2595
  /**
1673
2596
  * Not authenticated
1674
2597
  */
1675
2598
  401: unknown;
2599
+ /**
2600
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2601
+ */
2602
+ 409: string;
2603
+ /**
2604
+ * The cluster runs on Cloudfleet data plane v2 and the calling client did not declare the dataplane-v2 capability, so it cannot provision a node for it. Upgrade the Cloudfleet CLI or Terraform provider.
2605
+ */
2606
+ 426: string;
1676
2607
  };
1677
- export type ListTokensResponses = {
2608
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2609
+ export type GetJoinInformationResponses = {
1678
2610
  /**
1679
- * Returns a list of access token details with masked secrets.
2611
+ * An object of cluster join information
1680
2612
  */
1681
- 200: Array<Token>;
2613
+ 200: ClusterJoinInformation;
1682
2614
  };
1683
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1684
- export type CreateTokenData = {
1685
- body: TokenCreateInput;
2615
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2616
+ export type GetUsageData = {
2617
+ body?: never;
1686
2618
  path?: never;
1687
- query?: never;
1688
- url: '/tokens';
2619
+ query?: {
2620
+ /**
2621
+ * Time granularity for usage aggregation - hourly (Past 48 hours aggregated by hour), daily (Past 30 days aggregated by day), monthly (Past 12 months aggregated by month)
2622
+ */
2623
+ granularity?: 'hourly' | 'daily' | 'monthly';
2624
+ };
2625
+ url: '/billing/usage';
1689
2626
  };
1690
- export type CreateTokenErrors = {
2627
+ export type GetUsageErrors = {
1691
2628
  /**
1692
2629
  * Not authenticated
1693
2630
  */
1694
2631
  401: unknown;
1695
2632
  };
1696
- export type CreateTokenResponses = {
2633
+ export type GetUsageResponses = {
1697
2634
  /**
1698
- * Successfully created. Returns created token details with unmasked/raw secret.
2635
+ * Usage data with facets for filtering
1699
2636
  */
1700
- 200: Token;
2637
+ 200: UsageResponse;
1701
2638
  };
1702
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1703
- export type DeleteTokenData = {
2639
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2640
+ export type GetPaymentMethodSecretData = {
1704
2641
  body?: never;
1705
- path: {
1706
- /**
1707
- * Generated unique identifier of the access token.
1708
- */
1709
- token_id: string;
1710
- };
2642
+ path?: never;
1711
2643
  query?: never;
1712
- url: '/tokens/{token_id}';
2644
+ url: '/billing/payment-method';
1713
2645
  };
1714
- export type DeleteTokenResponses = {
2646
+ export type GetPaymentMethodSecretResponses = {
1715
2647
  /**
1716
- * Successfully deleted.
2648
+ * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
2649
+ *
1717
2650
  */
1718
- 200: unknown;
1719
- };
1720
- export type GetTokenData = {
1721
- body?: never;
1722
- path: {
2651
+ 200: {
1723
2652
  /**
1724
- * Generated unique identifier of the access token.
2653
+ * The client secret.
1725
2654
  */
1726
- token_id: string;
2655
+ id?: string;
1727
2656
  };
2657
+ };
2658
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2659
+ export type ListPaymentMethodsData = {
2660
+ body?: never;
2661
+ path?: never;
1728
2662
  query?: never;
1729
- url: '/tokens/{token_id}';
2663
+ url: '/billing/payment-methods';
1730
2664
  };
1731
- export type GetTokenErrors = {
2665
+ export type ListPaymentMethodsErrors = {
1732
2666
  /**
1733
2667
  * Not authenticated
1734
2668
  */
1735
2669
  401: unknown;
1736
2670
  };
1737
- export type GetTokenResponses = {
2671
+ export type ListPaymentMethodsResponses = {
1738
2672
  /**
1739
- * Returns access token details with masked secret.
2673
+ * An array of payment methods.
1740
2674
  */
1741
- 200: Token;
2675
+ 200: Array<PaymentMethod>;
1742
2676
  };
1743
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1744
- export type UpdateTokenData = {
1745
- body: TokenUpdateInput;
2677
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2678
+ export type SetDefaultPaymentMethodData = {
2679
+ body?: never;
1746
2680
  path: {
1747
2681
  /**
1748
- * Generated unique identifier of the access token.
2682
+ * Stripe payment method identifier.
1749
2683
  */
1750
- token_id: string;
2684
+ paymentMethodId: string;
1751
2685
  };
1752
2686
  query?: never;
1753
- url: '/tokens/{token_id}';
2687
+ url: '/billing/payment-methods/{paymentMethodId}/default';
1754
2688
  };
1755
- export type UpdateTokenErrors = {
2689
+ export type SetDefaultPaymentMethodErrors = {
2690
+ /**
2691
+ * The bank transfer payment method cannot be set as the default.
2692
+ */
2693
+ 400: unknown;
1756
2694
  /**
1757
2695
  * Not authenticated
1758
2696
  */
1759
2697
  401: unknown;
2698
+ /**
2699
+ * Payment method not found.
2700
+ */
2701
+ 404: unknown;
1760
2702
  };
1761
- export type UpdateTokenResponses = {
2703
+ export type SetDefaultPaymentMethodResponses = {
1762
2704
  /**
1763
- * Successfully updated. Returns updated token details with masked secret.
2705
+ * Default payment method updated.
1764
2706
  */
1765
- 200: Token;
2707
+ 204: void;
1766
2708
  };
1767
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1768
- export type RegenerateTokenData = {
2709
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2710
+ export type DeletePaymentMethodData = {
1769
2711
  body?: never;
1770
2712
  path: {
1771
2713
  /**
1772
- * Generated unique identifier of the access token.
2714
+ * Stripe payment method identifier.
1773
2715
  */
1774
- token_id: string;
2716
+ paymentMethodId: string;
1775
2717
  };
1776
2718
  query?: never;
1777
- url: '/tokens/{token_id}/secret';
2719
+ url: '/billing/payment-methods/{paymentMethodId}';
1778
2720
  };
1779
- export type RegenerateTokenErrors = {
2721
+ export type DeletePaymentMethodErrors = {
2722
+ /**
2723
+ * The bank transfer payment method cannot be removed.
2724
+ */
2725
+ 400: unknown;
1780
2726
  /**
1781
2727
  * Not authenticated
1782
2728
  */
1783
2729
  401: unknown;
1784
- };
1785
- export type RegenerateTokenResponses = {
1786
2730
  /**
1787
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2731
+ * Payment method not found.
1788
2732
  */
1789
- 200: Token;
1790
- };
1791
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1792
- export type ListUserOrganizationsData = {
1793
- body?: never;
1794
- path: {
1795
- /**
1796
- * User email address.
1797
- */
1798
- email: string;
1799
- };
1800
- query?: never;
1801
- url: '/users/organizations/{email}';
2733
+ 404: unknown;
2734
+ /**
2735
+ * Cannot delete the only remaining payment method.
2736
+ */
2737
+ 409: unknown;
1802
2738
  };
1803
- export type ListUserOrganizationsResponses = {
2739
+ export type DeletePaymentMethodResponses = {
1804
2740
  /**
1805
- * An array of organizations the user belongs to.
2741
+ * Payment method deleted.
1806
2742
  */
1807
- 200: Array<{
1808
- /**
1809
- * Unique identifier of the organization. UUID v4 string in canonical form
1810
- */
1811
- realm?: string;
1812
- /**
1813
- * Human-readable name of the organization
1814
- */
1815
- displayName?: string;
1816
- }>;
2743
+ 204: void;
1817
2744
  };
1818
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1819
- export type ListUsersData = {
2745
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2746
+ export type ListInvoicesData = {
1820
2747
  body?: never;
1821
2748
  path?: never;
1822
2749
  query?: never;
1823
- url: '/users';
2750
+ url: '/billing/invoices';
1824
2751
  };
1825
- export type ListUsersErrors = {
2752
+ export type ListInvoicesErrors = {
1826
2753
  /**
1827
2754
  * Not authenticated
1828
2755
  */
1829
2756
  401: unknown;
1830
2757
  };
1831
- export type ListUsersResponses = {
2758
+ export type ListInvoicesResponses = {
1832
2759
  /**
1833
- * An array of users
2760
+ * An array of usage records.
1834
2761
  */
1835
- 200: Array<User>;
2762
+ 200: Array<Invoice>;
1836
2763
  };
1837
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1838
- export type CreateUserData = {
1839
- body: UserCreateInput;
2764
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2765
+ export type PayOpenInvoicesData = {
2766
+ body?: never;
1840
2767
  path?: never;
1841
2768
  query?: never;
1842
- url: '/users';
2769
+ url: '/billing/invoices/pay';
1843
2770
  };
1844
- export type CreateUserResponses = {
2771
+ export type PayOpenInvoicesErrors = {
1845
2772
  /**
1846
- * Successfully created. Returns created user details.
2773
+ * The organization has no payment method that can be charged.
1847
2774
  */
1848
- 200: User;
2775
+ 400: unknown;
2776
+ /**
2777
+ * Not authenticated
2778
+ */
2779
+ 401: unknown;
2780
+ /**
2781
+ * Too many payment attempts for this organization.
2782
+ */
2783
+ 429: unknown;
1849
2784
  };
1850
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1851
- export type DeleteUserData = {
2785
+ export type PayOpenInvoicesResponses = {
2786
+ /**
2787
+ * The outcome of the attempt.
2788
+ */
2789
+ 200: InvoicePaymentResult;
2790
+ };
2791
+ export type PayOpenInvoicesResponse = PayOpenInvoicesResponses[keyof PayOpenInvoicesResponses];
2792
+ export type GetContactData = {
1852
2793
  body?: never;
1853
- path: {
1854
- /**
1855
- * Unique user identifier. UUID v4 string in canonical form
1856
- */
1857
- user_id: string;
1858
- };
2794
+ path?: never;
1859
2795
  query?: never;
1860
- url: '/users/{user_id}';
2796
+ url: '/billing/contact';
1861
2797
  };
1862
- export type DeleteUserErrors = {
1863
- /**
1864
- * Deleting own user is not allowed. Delete your organization instead.
1865
- */
1866
- 400: unknown;
2798
+ export type GetContactResponses = {
1867
2799
  /**
1868
- * Not authenticated
2800
+ * Returns a single object containing organization contact and billing address details.
1869
2801
  */
1870
- 401: unknown;
2802
+ 200: BillingContact;
1871
2803
  };
1872
- export type DeleteUserResponses = {
2804
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2805
+ export type UpdateContactData = {
2806
+ body: BillingContact;
2807
+ path?: never;
2808
+ query?: never;
2809
+ url: '/billing/contact';
2810
+ };
2811
+ export type UpdateContactResponses = {
1873
2812
  /**
1874
- * User profile information
2813
+ * Successfully updated. Returns updated organization details.
1875
2814
  */
1876
- 200: User;
2815
+ 200: BillingContact;
1877
2816
  };
1878
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1879
- export type GetUserData = {
2817
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2818
+ export type GetCreditsData = {
1880
2819
  body?: never;
1881
- path: {
1882
- /**
1883
- * Unique user identifier. UUID v4 string in canonical form
1884
- */
1885
- user_id: string;
1886
- };
2820
+ path?: never;
1887
2821
  query?: never;
1888
- url: '/users/{user_id}';
2822
+ url: '/billing/credits';
1889
2823
  };
1890
- export type GetUserErrors = {
2824
+ export type GetCreditsErrors = {
1891
2825
  /**
1892
2826
  * Not authenticated
1893
2827
  */
1894
2828
  401: unknown;
1895
2829
  };
1896
- export type GetUserResponses = {
2830
+ export type GetCreditsResponses = {
1897
2831
  /**
1898
- * User profile information
2832
+ * An array of the applied promotional credits records.
1899
2833
  */
1900
- 200: User;
2834
+ 200: Array<BillingCredits>;
1901
2835
  };
1902
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1903
- export type UpdateUserData = {
1904
- body: UserUpdateInput;
1905
- path: {
2836
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2837
+ export type RedeemCreditsData = {
2838
+ body: {
1906
2839
  /**
1907
- * Unique user identifier. UUID v4 string in canonical form
2840
+ * Promotional code to redeem
1908
2841
  */
1909
- user_id: string;
2842
+ code?: string;
1910
2843
  };
2844
+ path?: never;
1911
2845
  query?: never;
1912
- url: '/users/{user_id}';
2846
+ url: '/billing/credits';
1913
2847
  };
1914
- export type UpdateUserResponses = {
2848
+ export type RedeemCreditsErrors = {
1915
2849
  /**
1916
- * Successfully created. Returns created user details.
2850
+ * Not authenticated
1917
2851
  */
1918
- 200: User;
2852
+ 401: unknown;
1919
2853
  };
1920
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1921
- export type ClientOptions = {
1922
- baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
2854
+ export type RedeemCreditsResponses = {
2855
+ /**
2856
+ * Successfully created a new organization.
2857
+ */
2858
+ 200: unknown;
1923
2859
  };
1924
2860
  //# sourceMappingURL=types.gen.d.ts.map