@cloudfleet/sdk 0.0.1-28564af → 0.0.1-289b770

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 (46) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +432 -614
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
  4. package/dist/@tanstack/react-query.gen.js +431 -404
  5. package/dist/@tanstack/react-query.gen.js.map +1 -1
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +1 -4
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/types.gen.d.ts +1 -1
  10. package/dist/client/types.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.d.ts +2 -2
  12. package/dist/client/utils.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.js +3 -3
  14. package/dist/client/utils.gen.js.map +1 -1
  15. package/dist/core/params.gen.js +4 -4
  16. package/dist/core/params.gen.js.map +1 -1
  17. package/dist/errors.d.ts +42 -0
  18. package/dist/errors.d.ts.map +1 -0
  19. package/dist/errors.js +83 -0
  20. package/dist/errors.js.map +1 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/schemas.gen.d.ts +971 -514
  26. package/dist/schemas.gen.d.ts.map +1 -1
  27. package/dist/schemas.gen.js +1961 -664
  28. package/dist/schemas.gen.js.map +1 -1
  29. package/dist/sdk.gen.d.ts +226 -221
  30. package/dist/sdk.gen.d.ts.map +1 -1
  31. package/dist/sdk.gen.js +340 -324
  32. package/dist/sdk.gen.js.map +1 -1
  33. package/dist/services/kubernetes/api.d.ts +18 -55
  34. package/dist/services/kubernetes/api.d.ts.map +1 -1
  35. package/dist/services/kubernetes/api.js +36 -75
  36. package/dist/services/kubernetes/api.js.map +1 -1
  37. package/dist/services/kubernetes/index.d.ts.map +1 -1
  38. package/dist/services/kubernetes/index.js +36 -37
  39. package/dist/services/kubernetes/index.js.map +1 -1
  40. package/dist/types.gen.d.ts +1334 -994
  41. package/dist/types.gen.d.ts.map +1 -1
  42. package/dist/zod.gen.d.ts +3539 -1498
  43. package/dist/zod.gen.d.ts.map +1 -1
  44. package/dist/zod.gen.js +1289 -399
  45. package/dist/zod.gen.js.map +1 -1
  46. package/package.json +10 -15
@@ -2,6 +2,10 @@ export type ClientOptions = {
2
2
  baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
3
  };
4
4
  export type BillingContact = {
5
+ /**
6
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
7
+ */
8
+ type: 'business' | 'personal';
5
9
  /**
6
10
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
7
11
  */
@@ -49,7 +53,7 @@ export type BillingContact = {
49
53
  /**
50
54
  * Type of the tax ID.
51
55
  */
52
- 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' | '';
53
57
  };
54
58
  export type BillingCredits = {
55
59
  /**
@@ -85,97 +89,72 @@ export type BillingCredits = {
85
89
  */
86
90
  value_remaining?: number;
87
91
  };
88
- export type ChartCreateInput = {
89
- /**
90
- * Values to be used in the chart encoded as a JSON string.
91
- */
92
- values: string;
93
- /**
94
- * Desired version range or channel for the chart.
95
- */
96
- version_channel: string;
97
- /**
98
- * Unique identifier of the chart deployment aka name of the helm release.
99
- */
100
- name: string;
101
- /**
102
- * Namespace of the chart deployment
103
- */
104
- namespace: string;
105
- /**
106
- * Name of the chart listing
107
- */
108
- chart: string;
109
- };
110
- export type Chart = {
111
- /**
112
- * Values to be used in the chart encoded as a JSON string.
113
- */
114
- values: string;
115
- /**
116
- * Desired version range or channel for the chart.
117
- */
118
- 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 = {
119
96
  /**
120
- * Unique identifier of the chart deployment aka name of the helm release.
97
+ * Name of the cluster.
121
98
  */
122
99
  name: string;
123
100
  /**
124
- * Namespace of the chart deployment
125
- */
126
- namespace: string;
127
- /**
128
- * Name of the chart listing
129
- */
130
- chart: string;
131
- /**
132
- * Status of the chart deployment.
133
- */
134
- status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
135
- /**
136
- * Current version of the chart deployment.
137
- */
138
- version_current: string;
139
- /**
140
- * Creation date and time of the chart deployment.
141
- */
142
- created_at: string;
143
- /**
144
- * Last update date and time of the chart deployment.
145
- */
146
- updated_at: string;
147
- /**
148
- * Indicates if the chart deployment is ready to be used.
149
- */
150
- ready: boolean;
151
- };
152
- export type ChartUpdateInput = {
153
- /**
154
- * Values to be used in the chart encoded as a JSON string.
101
+ * Tier of the cluster.
155
102
  */
156
- values: string;
103
+ tier?: 'basic' | 'pro' | 'enterprise';
157
104
  /**
158
- * Desired version range or channel for the chart.
105
+ * Version of the kubernetes cluster.
159
106
  */
160
- version_channel: string;
161
- };
162
- export type ClusterCreateInput = {
107
+ version_channel?: string;
163
108
  /**
164
- * Name of the cluster.
109
+ * Release channel for the cluster's control plane.
165
110
  */
166
- name: string;
111
+ release_channel?: 'rapid' | 'stable' | 'extended';
167
112
  /**
168
- * Tier of the cluster.
113
+ * Cluster feature toggles.
169
114
  */
170
- 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
+ };
171
129
  /**
172
- * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
130
+ * Cloudfleet control plane region. This field can not be updated after creation.
173
131
  */
174
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
132
+ region: string;
175
133
  /**
176
- * Version of the kubernetes cluster.
134
+ * Cluster networking configuration. Immutable after creation.
177
135
  */
178
- version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
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
+ };
179
158
  };
180
159
  export type ClusterJoinInformation = {
181
160
  /**
@@ -190,10 +169,18 @@ export type ClusterJoinInformation = {
190
169
  * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
191
170
  */
192
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;
193
176
  /**
194
177
  * Authentication key for the cluster.
195
178
  */
196
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;
197
184
  /**
198
185
  * Bootstrap token for the cluster.
199
186
  */
@@ -237,6 +224,9 @@ export type ClusterJoinInformation = {
237
224
  gcp_workload_identity_provider: string;
238
225
  };
239
226
  };
227
+ /**
228
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
229
+ */
240
230
  export type Cluster = {
241
231
  /**
242
232
  * Name of the cluster.
@@ -245,20 +235,71 @@ export type Cluster = {
245
235
  /**
246
236
  * Tier of the cluster.
247
237
  */
248
- tier: 'basic' | 'pro';
238
+ tier: 'basic' | 'pro' | 'enterprise';
239
+ /**
240
+ * Version of the kubernetes cluster.
241
+ */
242
+ version_channel: string;
243
+ /**
244
+ * Release channel for the cluster's control plane.
245
+ */
246
+ release_channel: 'rapid' | 'stable' | 'extended';
247
+ /**
248
+ * Cluster feature toggles.
249
+ */
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;
249
268
  /**
250
- * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
269
+ * Cluster networking configuration. Immutable after creation.
251
270
  */
252
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
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
+ };
253
293
  /**
254
294
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
255
295
  */
256
296
  id: string;
257
297
  /**
258
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
298
+ * Status of the cluster.
259
299
  */
260
- status: 'active' | 'disabled' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
300
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
261
301
  endpoint?: string | '';
302
+ endpoint_public?: string | '';
262
303
  /**
263
304
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
264
305
  */
@@ -278,129 +319,338 @@ export type Cluster = {
278
319
  /**
279
320
  * Indicates if the cluster is ready to be used.
280
321
  */
281
- ready?: boolean;
282
- /**
283
- * Version of the kubernetes cluster.
284
- */
285
- version_channel?: string;
322
+ ready: boolean;
286
323
  };
324
+ /**
325
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
326
+ */
287
327
  export type ClusterUpdateInput = {
288
328
  /**
289
329
  * Name of the cluster.
290
330
  */
291
- name?: string;
331
+ name: string;
292
332
  /**
293
333
  * Tier of the cluster.
294
334
  */
295
- tier: 'basic' | 'pro';
335
+ tier?: 'basic' | 'pro' | 'enterprise';
296
336
  /**
297
337
  * Version of the kubernetes cluster.
298
338
  */
299
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;
300
389
  };
390
+ /**
391
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
392
+ */
301
393
  export type FleetCreateInput = {
302
394
  /**
303
395
  * Limits define a set of bounds for provisioning capacity.
304
396
  */
305
397
  limits?: {
306
398
  /**
307
- * CPU limit in cores.
399
+ * CPU limit in cores. Maximum 100,000.
308
400
  */
309
- cpu: number;
401
+ cpu?: number;
310
402
  };
311
403
  gcp?: {
312
- enabled?: boolean;
404
+ enabled: boolean;
313
405
  /**
314
- * 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.
315
407
  */
316
- project: string;
408
+ project?: string;
317
409
  };
318
410
  hetzner?: {
319
- enabled?: boolean;
411
+ enabled: boolean;
320
412
  /**
321
- * 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.
322
414
  */
323
- apiKey: string;
415
+ apiKey?: string;
324
416
  };
325
417
  aws?: {
326
- 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?: {
428
+ /**
429
+ * Allowed values for `karpenter.sh/capacity-type`.
430
+ */
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'>;
327
436
  /**
328
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
437
+ * Allowed values for `cfke.io/instance-family`.
329
438
  */
330
- controllerRoleArn: string;
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'>;
331
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
+ }>;
332
466
  /**
333
467
  * Unique identifier of the kubernetes fleet.
334
468
  */
335
469
  id: string;
336
470
  };
471
+ /**
472
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
473
+ */
337
474
  export type Fleet = {
338
475
  /**
339
476
  * Limits define a set of bounds for provisioning capacity.
340
477
  */
341
478
  limits?: {
342
479
  /**
343
- * CPU limit in cores.
480
+ * CPU limit in cores. Maximum 100,000.
344
481
  */
345
- cpu: number;
482
+ cpu?: number;
346
483
  };
347
484
  gcp?: {
348
- enabled?: boolean;
485
+ enabled: boolean;
349
486
  /**
350
- * 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.
351
488
  */
352
- project: string;
489
+ project?: string;
353
490
  };
354
491
  hetzner?: {
355
- enabled?: boolean;
492
+ enabled: boolean;
356
493
  /**
357
- * 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.
358
495
  */
359
- apiKey: string;
496
+ apiKey?: string;
360
497
  };
361
498
  aws?: {
362
- 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'>;
513
+ /**
514
+ * Allowed values for `kubernetes.io/arch`.
515
+ */
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'>;
363
521
  /**
364
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
522
+ * Allowed values for `topology.kubernetes.io/region`.
365
523
  */
366
- controllerRoleArn: string;
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'>;
367
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
+ }>;
368
547
  /**
369
548
  * Unique identifier of the kubernetes fleet.
370
549
  */
371
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;
372
567
  };
568
+ /**
569
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
570
+ */
373
571
  export type FleetUpdateInput = {
374
572
  /**
375
573
  * Limits define a set of bounds for provisioning capacity.
376
574
  */
377
575
  limits?: {
378
576
  /**
379
- * CPU limit in cores.
577
+ * CPU limit in cores. Maximum 100,000.
380
578
  */
381
- cpu: number;
579
+ cpu?: number;
382
580
  };
383
581
  gcp?: {
384
- enabled?: boolean;
582
+ enabled: boolean;
385
583
  /**
386
- * 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.
387
585
  */
388
- project: string;
586
+ project?: string;
389
587
  };
390
588
  hetzner?: {
391
- enabled?: boolean;
589
+ enabled: boolean;
392
590
  /**
393
- * 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.
394
592
  */
395
- apiKey: string;
593
+ apiKey?: string;
396
594
  };
397
595
  aws?: {
398
- 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'>;
399
618
  /**
400
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
619
+ * Allowed values for `topology.kubernetes.io/region`.
401
620
  */
402
- 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'>;
403
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';
404
654
  };
405
655
  export type Invite = {
406
656
  /**
@@ -423,126 +673,129 @@ export type Invite = {
423
673
  * Generated unique invite code.
424
674
  */
425
675
  code?: string;
426
- };
427
- export type Invoice = {
428
- /**
429
- * Unique identifier of the invoice.
430
- */
431
- id?: string;
432
- number?: string;
433
676
  /**
434
- * Status of the invoice
677
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
435
678
  */
436
- status?: string;
679
+ role?: 'Administrator' | 'User';
680
+ };
681
+ export type InvoicePaymentAttempt = {
437
682
  /**
438
- * Total amount of the invoice
683
+ * Identifier of the invoice.
439
684
  */
440
- total?: number;
685
+ invoice_id: string;
441
686
  /**
442
- * Currency of the invoice
687
+ * Invoice number. Null if the invoice has no number.
443
688
  */
444
- currency?: string;
689
+ number: string;
445
690
  /**
446
- * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
691
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
447
692
  */
448
- created: string;
693
+ amount: number;
449
694
  /**
450
- * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
695
+ * Currency of the invoice.
451
696
  */
452
- period_start: string;
697
+ currency: string;
453
698
  /**
454
- * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
699
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
455
700
  */
456
- period_end: string;
457
- invoice_pdf?: string;
458
- };
459
- export type MarketplaceListingFiles = {
701
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
460
702
  /**
461
- * Raw Chart.yaml content from the Helm chart
703
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
462
704
  */
463
- chartYaml?: string;
705
+ client_secret: string;
464
706
  /**
465
- * Raw values.yaml content from the Helm chart
707
+ * Decline code. Set only when `status` is `failed`.
466
708
  */
467
- valuesYaml?: string;
709
+ failure_code: string;
468
710
  /**
469
- * JSON schema for values.yaml as a string
711
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
470
712
  */
471
- valuesSchemaJson?: string;
713
+ failure_message: string;
472
714
  };
473
- export type MarketplaceListing = {
474
- /**
475
- * Name of the chart
476
- */
477
- name: string;
478
- /**
479
- * Available versions of the chart
480
- */
481
- versions: Array<string>;
715
+ export type InvoicePaymentResult = {
482
716
  /**
483
- * Version channels for the chart
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).
484
718
  */
485
- version_channels: Array<string>;
719
+ code: 'paid' | 'processing' | 'action_required' | 'partially_paid' | 'failed' | 'nothing_due' | 'bank_transfer_due';
486
720
  /**
487
- * Latest version of the chart
721
+ * Summary of the outcome, suitable for display.
488
722
  */
489
- latestVersion: string;
723
+ message: string;
490
724
  /**
491
- * Chart metadata
725
+ * One entry per invoice charged, oldest first.
492
726
  */
493
- metadata?: {
494
- /**
495
- * Chart name from metadata
496
- */
497
- name: string;
498
- /**
499
- * Chart version from metadata
500
- */
501
- version: string;
727
+ results: Array<{
502
728
  /**
503
- * Chart description
729
+ * Identifier of the invoice.
504
730
  */
505
- description?: string;
731
+ invoice_id: string;
506
732
  /**
507
- * Application version
733
+ * Invoice number. Null if the invoice has no number.
508
734
  */
509
- appVersion?: string;
735
+ number: string;
510
736
  /**
511
- * Helm API version
737
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
512
738
  */
513
- apiVersion?: string;
739
+ amount: number;
514
740
  /**
515
- * Chart keywords
741
+ * Currency of the invoice.
516
742
  */
517
- keywords?: Array<string>;
743
+ currency: string;
518
744
  /**
519
- * Chart home URL
745
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
520
746
  */
521
- home?: string;
747
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
522
748
  /**
523
- * A URL to an SVG or PNG image to be used as an icon
749
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
524
750
  */
525
- icon?: string;
751
+ client_secret: string;
526
752
  /**
527
- * Chart source URLs
753
+ * Decline code. Set only when `status` is `failed`.
528
754
  */
529
- sources?: Array<string>;
755
+ failure_code: string;
530
756
  /**
531
- * Chart maintainers
757
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
532
758
  */
533
- maintainers?: Array<{
534
- /**
535
- * Maintainer name
536
- */
537
- name: string;
538
- /**
539
- * Maintainer email
540
- */
541
- email?: string;
542
- }>;
543
- };
759
+ failure_message: string;
760
+ }>;
761
+ };
762
+ export type Invoice = {
763
+ /**
764
+ * Unique identifier of the invoice.
765
+ */
766
+ id?: string;
767
+ number?: string;
768
+ /**
769
+ * Status of the invoice
770
+ */
771
+ status?: string;
772
+ /**
773
+ * Total amount of the invoice
774
+ */
775
+ total?: number;
776
+ /**
777
+ * Currency of the invoice
778
+ */
779
+ currency?: string;
780
+ /**
781
+ * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
782
+ */
783
+ created: string;
784
+ /**
785
+ * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
786
+ */
787
+ period_start: string;
788
+ /**
789
+ * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
790
+ */
791
+ period_end: string;
792
+ invoice_pdf?: string;
544
793
  };
545
794
  export type OrganizationCreateInput = {
795
+ /**
796
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
797
+ */
798
+ type: 'business' | 'personal';
546
799
  /**
547
800
  * Email address used for billing as a string.
548
801
  */
@@ -564,6 +817,12 @@ export type OrganizationCreateInput = {
564
817
  */
565
818
  password: string;
566
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
+ };
567
826
  export type Organization = {
568
827
  /**
569
828
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -573,6 +832,10 @@ export type Organization = {
573
832
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
574
833
  */
575
834
  name?: string;
835
+ /**
836
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
837
+ */
838
+ type: 'business' | 'personal';
576
839
  /**
577
840
  * Creation date of the organization. ISO 8601 date string in UTC timezone
578
841
  */
@@ -597,6 +860,14 @@ export type Organization = {
597
860
  * Available number of Pro clusters that can be created.
598
861
  */
599
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;
600
871
  /**
601
872
  * Maximum number of fleets that can be created per cluster.
602
873
  */
@@ -631,36 +902,52 @@ export type Organization = {
631
902
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
632
903
  */
633
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';
634
909
  };
635
910
  export type PaymentMethod = {
636
911
  /**
637
- * 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.
638
913
  */
639
914
  id: string;
640
915
  /**
641
- * Whether organization payment method was set up and ready to use for payments.
642
- */
643
- setup: boolean;
644
- /**
645
- * Payment method type type. Only `card` payments supported at the moment.
916
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
646
917
  */
647
- type: 'card';
918
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
648
919
  /**
649
- * 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.
650
921
  */
651
922
  last4: string;
652
923
  /**
653
- * 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.
654
925
  */
655
926
  exp_month: number;
656
927
  /**
657
- * 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.
658
929
  */
659
930
  exp_year: number;
660
931
  /**
661
- * 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.
933
+ */
934
+ brand: string;
935
+ /**
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.
937
+ */
938
+ iban: string;
939
+ /**
940
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
941
+ */
942
+ bic: string;
943
+ /**
944
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
945
+ */
946
+ account_holder_name: string;
947
+ /**
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).
662
949
  */
663
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
950
+ is_default: boolean;
664
951
  };
665
952
  export type PlatformQuota = {
666
953
  /**
@@ -679,6 +966,14 @@ export type PlatformQuota = {
679
966
  * Available number of Pro clusters that can be created.
680
967
  */
681
968
  pro_clusters_available: number;
969
+ /**
970
+ * Maximum number of Enterprise clusters that can be created.
971
+ */
972
+ enterprise_clusters_max: number;
973
+ /**
974
+ * Available number of Enterprise clusters that can be created.
975
+ */
976
+ enterprise_clusters_available: number;
682
977
  /**
683
978
  * Maximum number of fleets that can be created per cluster.
684
979
  */
@@ -857,6 +1152,32 @@ export type RegistryTag = {
857
1152
  */
858
1153
  uri: string;
859
1154
  };
1155
+ export type RoadmapItemCreateInput = {
1156
+ /**
1157
+ * Your suggestion in one or two sentences. It is reviewed before it appears on the roadmap.
1158
+ */
1159
+ text: string;
1160
+ };
1161
+ export type RoadmapItem = {
1162
+ /**
1163
+ * Unique identifier of the roadmap item (Mongo ObjectId).
1164
+ */
1165
+ id: string;
1166
+ /**
1167
+ * Short description of the roadmap item.
1168
+ */
1169
+ text: string;
1170
+ /**
1171
+ * The caller's vote on this item: -1 (down), 1 (up), 2 (double up), or null if the caller has not voted.
1172
+ */
1173
+ vote: -1 | 1 | 2;
1174
+ };
1175
+ export type RoadmapVoteInput = {
1176
+ /**
1177
+ * Vote value: -1 (down), 1 (up), or 2 (double up).
1178
+ */
1179
+ value: -1 | 1 | 2;
1180
+ };
860
1181
  export type TicketAttachment = {
861
1182
  /**
862
1183
  * Unique identifier of the attachment (Mongo ObjectId).
@@ -890,91 +1211,10 @@ export type TicketCreateInput = {
890
1211
  properties?: {
891
1212
  [key: string]: unknown;
892
1213
  };
893
- };
894
- export type TicketListResponse = {
895
1214
  /**
896
- * Tickets for the organization, ordered newest first. Messages are omitted from list responses.
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.
897
1216
  */
898
- items: Array<{
899
- /**
900
- * Unique identifier of the ticket (Mongo ObjectId).
901
- */
902
- id: string;
903
- /**
904
- * Current state of the ticket.
905
- */
906
- status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
907
- /**
908
- * Ticket category.
909
- */
910
- category: 'billing' | 'technical' | 'general';
911
- /**
912
- * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
913
- */
914
- summary: string;
915
- /**
916
- * Closure timestamp. Null while the ticket is open.
917
- */
918
- closed_at?: string;
919
- /**
920
- * Creation date of the ticket. ISO 8601 UTC.
921
- */
922
- date_created: string;
923
- /**
924
- * Last update date of the ticket. ISO 8601 UTC.
925
- */
926
- date_updated: string;
927
- /**
928
- * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
929
- */
930
- messages?: Array<{
931
- /**
932
- * Unique identifier of the message (Mongo ObjectId).
933
- */
934
- id: string;
935
- /**
936
- * Message type. Internal notes are filtered out of customer-facing responses.
937
- */
938
- type: 'customer_reply' | 'agent_reply';
939
- /**
940
- * Message body in markdown.
941
- */
942
- body: string;
943
- /**
944
- * First name of the author. Null when not provided.
945
- */
946
- author_first_name?: string;
947
- /**
948
- * Last name of the author. Null when not provided.
949
- */
950
- author_last_name?: string;
951
- /**
952
- * Attachments associated with this message.
953
- */
954
- attachments?: Array<{
955
- /**
956
- * Unique identifier of the attachment (Mongo ObjectId).
957
- */
958
- id: string;
959
- /**
960
- * Original filename as uploaded.
961
- */
962
- filename: string;
963
- /**
964
- * MIME content type of the attachment.
965
- */
966
- content_type: string;
967
- /**
968
- * Size of the attachment in bytes.
969
- */
970
- size: number;
971
- }>;
972
- /**
973
- * Creation date of the message. ISO 8601 UTC.
974
- */
975
- date_created: string;
976
- }>;
977
- }>;
1217
+ grant_support_access?: boolean;
978
1218
  };
979
1219
  export type TicketMessageInput = {
980
1220
  /**
@@ -1046,6 +1286,14 @@ export type Ticket = {
1046
1286
  * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
1047
1287
  */
1048
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;
1049
1297
  /**
1050
1298
  * Closure timestamp. Null while the ticket is open.
1051
1299
  */
@@ -1159,7 +1407,7 @@ export type UsageFacets = {
1159
1407
  /**
1160
1408
  * List of unique products
1161
1409
  */
1162
- product?: Array<string>;
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'>;
1163
1411
  };
1164
1412
  export type UsageResponse = {
1165
1413
  /**
@@ -1177,7 +1425,7 @@ export type UsageResponse = {
1177
1425
  /**
1178
1426
  * The product the usage is associated with
1179
1427
  */
1180
- product: string;
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';
1181
1429
  /**
1182
1430
  * Consumption
1183
1431
  */
@@ -1202,7 +1450,7 @@ export type UsageResponse = {
1202
1450
  /**
1203
1451
  * List of unique products
1204
1452
  */
1205
- product?: Array<string>;
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'>;
1206
1454
  };
1207
1455
  };
1208
1456
  export type Usage = {
@@ -1217,7 +1465,7 @@ export type Usage = {
1217
1465
  /**
1218
1466
  * The product the usage is associated with
1219
1467
  */
1220
- product: string;
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';
1221
1469
  /**
1222
1470
  * Consumption
1223
1471
  */
@@ -1252,14 +1500,6 @@ export type UserCreateInput = {
1252
1500
  * User password. Must be at least 8 characters long.
1253
1501
  */
1254
1502
  password: string;
1255
- /**
1256
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1257
- */
1258
- status?: 'active' | 'inactive';
1259
- /**
1260
- * User role. Can be 'Administrator', 'User'.
1261
- */
1262
- role?: 'Administrator' | 'User';
1263
1503
  };
1264
1504
  export type User = {
1265
1505
  /**
@@ -1313,711 +1553,456 @@ export type UserUpdateInput = {
1313
1553
  */
1314
1554
  status?: 'active' | 'inactive';
1315
1555
  };
1316
- export type GetUsageData = {
1556
+ export type ListUserOrganizationsData = {
1317
1557
  body?: never;
1318
- path?: never;
1319
- query?: {
1558
+ path: {
1320
1559
  /**
1321
- * 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)
1560
+ * User email address.
1322
1561
  */
1323
- granularity?: 'hourly' | 'daily' | 'monthly';
1562
+ email: string;
1324
1563
  };
1325
- url: '/billing/usage';
1326
- };
1327
- export type GetUsageErrors = {
1328
- /**
1329
- * Not authenticated
1330
- */
1331
- 401: unknown;
1564
+ query?: never;
1565
+ url: '/users/organizations/{email}';
1332
1566
  };
1333
- export type GetUsageResponses = {
1567
+ export type ListUserOrganizationsResponses = {
1334
1568
  /**
1335
- * Usage data with facets for filtering
1569
+ * An array of organizations the user belongs to.
1336
1570
  */
1337
- 200: UsageResponse;
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
+ }>;
1338
1581
  };
1339
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1340
- export type GetPaymentMethodData = {
1582
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1583
+ export type ListUsersData = {
1341
1584
  body?: never;
1342
1585
  path?: never;
1343
1586
  query?: never;
1344
- url: '/billing/payment-method';
1587
+ url: '/users';
1345
1588
  };
1346
- export type GetPaymentMethodErrors = {
1589
+ export type ListUsersErrors = {
1347
1590
  /**
1348
- * Returns 404 Not Found if the organization does not have a payment method set up.
1591
+ * Not authenticated
1349
1592
  */
1350
- 404: unknown;
1593
+ 401: unknown;
1351
1594
  };
1352
- export type GetPaymentMethodResponses = {
1595
+ export type ListUsersResponses = {
1353
1596
  /**
1354
- * Redacted payment card information.
1597
+ * An array of users
1355
1598
  */
1356
- 200: PaymentMethod;
1599
+ 200: Array<User>;
1357
1600
  };
1358
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1359
- export type GetPaymentMethodSecretData = {
1360
- body?: never;
1601
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1602
+ export type CreateUserData = {
1603
+ body: UserCreateInput;
1361
1604
  path?: never;
1362
1605
  query?: never;
1363
- url: '/billing/payment-method';
1606
+ url: '/users';
1364
1607
  };
1365
- export type GetPaymentMethodSecretResponses = {
1608
+ export type CreateUserResponses = {
1366
1609
  /**
1367
- * 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.
1368
- *
1610
+ * Successfully created. Returns created user details.
1369
1611
  */
1370
- 200: {
1612
+ 200: User;
1613
+ };
1614
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1615
+ export type DeleteUserData = {
1616
+ body?: never;
1617
+ path: {
1371
1618
  /**
1372
- * The client secret.
1619
+ * Unique user identifier. UUID v4 string in canonical form
1373
1620
  */
1374
- id?: string;
1621
+ user_id: string;
1375
1622
  };
1376
- };
1377
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1378
- export type ListInvoicesData = {
1379
- body?: never;
1380
- path?: never;
1381
1623
  query?: never;
1382
- url: '/billing/invoices';
1624
+ url: '/users/{user_id}';
1383
1625
  };
1384
- export type ListInvoicesErrors = {
1626
+ export type DeleteUserErrors = {
1627
+ /**
1628
+ * Deleting own user is not allowed. Delete your organization instead.
1629
+ */
1630
+ 400: unknown;
1385
1631
  /**
1386
1632
  * Not authenticated
1387
1633
  */
1388
1634
  401: unknown;
1389
1635
  };
1390
- export type ListInvoicesResponses = {
1636
+ export type DeleteUserResponses = {
1391
1637
  /**
1392
- * An array of usage records.
1638
+ * User profile information
1393
1639
  */
1394
- 200: Array<Invoice>;
1640
+ 200: User;
1395
1641
  };
1396
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1397
- export type GetContactData = {
1642
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1643
+ export type GetUserData = {
1398
1644
  body?: never;
1399
- path?: never;
1645
+ path: {
1646
+ /**
1647
+ * Unique user identifier. UUID v4 string in canonical form
1648
+ */
1649
+ user_id: string;
1650
+ };
1400
1651
  query?: never;
1401
- url: '/billing/contact';
1652
+ url: '/users/{user_id}';
1402
1653
  };
1403
- export type GetContactResponses = {
1654
+ export type GetUserErrors = {
1404
1655
  /**
1405
- * Returns a single object containing organization contact and billing address details.
1656
+ * Not authenticated
1406
1657
  */
1407
- 200: BillingContact;
1658
+ 401: unknown;
1408
1659
  };
1409
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1410
- export type UpdateContactData = {
1411
- body: BillingContact;
1412
- path?: never;
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
+ };
1413
1675
  query?: never;
1414
- url: '/billing/contact';
1676
+ url: '/users/{user_id}';
1415
1677
  };
1416
- export type UpdateContactResponses = {
1678
+ export type UpdateUserResponses = {
1417
1679
  /**
1418
- * Successfully updated. Returns updated organization details.
1680
+ * Successfully created. Returns created user details.
1419
1681
  */
1420
- 200: BillingContact;
1682
+ 200: User;
1421
1683
  };
1422
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1423
- export type GetCreditsData = {
1684
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1685
+ export type ListTokensData = {
1424
1686
  body?: never;
1425
1687
  path?: never;
1426
1688
  query?: never;
1427
- url: '/billing/credits';
1689
+ url: '/tokens';
1428
1690
  };
1429
- export type GetCreditsErrors = {
1691
+ export type ListTokensErrors = {
1430
1692
  /**
1431
1693
  * Not authenticated
1432
1694
  */
1433
1695
  401: unknown;
1434
1696
  };
1435
- export type GetCreditsResponses = {
1697
+ export type ListTokensResponses = {
1436
1698
  /**
1437
- * An array of the applied promotional credits records.
1699
+ * Returns a list of access token details with masked secrets.
1438
1700
  */
1439
- 200: Array<BillingCredits>;
1701
+ 200: Array<Token>;
1440
1702
  };
1441
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1442
- export type RedeemCreditsData = {
1443
- body: {
1444
- /**
1445
- * Promotional code to redeem
1446
- */
1447
- code?: string;
1448
- };
1703
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1704
+ export type CreateTokenData = {
1705
+ body: TokenCreateInput;
1449
1706
  path?: never;
1450
1707
  query?: never;
1451
- url: '/billing/credits';
1708
+ url: '/tokens';
1452
1709
  };
1453
- export type RedeemCreditsErrors = {
1710
+ export type CreateTokenErrors = {
1454
1711
  /**
1455
1712
  * Not authenticated
1456
1713
  */
1457
1714
  401: unknown;
1458
1715
  };
1459
- export type RedeemCreditsResponses = {
1716
+ export type CreateTokenResponses = {
1460
1717
  /**
1461
- * Successfully created a new organization.
1718
+ * Successfully created. Returns created token details with unmasked/raw secret.
1462
1719
  */
1463
- 200: unknown;
1720
+ 200: Token;
1464
1721
  };
1465
- export type ListChartsData = {
1722
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1723
+ export type DeleteTokenData = {
1466
1724
  body?: never;
1467
1725
  path: {
1468
1726
  /**
1469
- * Unique identifier of the cluster. UUID v4 string in canonical form
1727
+ * Generated unique identifier of the access token.
1470
1728
  */
1471
- cluster_id: string;
1729
+ token_id: string;
1472
1730
  };
1473
1731
  query?: never;
1474
- url: '/clusters/{cluster_id}/charts';
1475
- };
1476
- export type ListChartsErrors = {
1477
- /**
1478
- * Not authenticated
1479
- */
1480
- 401: unknown;
1732
+ url: '/tokens/{token_id}';
1481
1733
  };
1482
- export type ListChartsResponses = {
1734
+ export type DeleteTokenResponses = {
1483
1735
  /**
1484
- * An array of charts
1736
+ * Successfully deleted.
1485
1737
  */
1486
- 200: Array<Chart>;
1738
+ 200: unknown;
1487
1739
  };
1488
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1489
- export type CreateChartData = {
1490
- body: ChartCreateInput;
1740
+ export type GetTokenData = {
1741
+ body?: never;
1491
1742
  path: {
1492
1743
  /**
1493
- * Unique identifier of the cluster. UUID v4 string in canonical form
1744
+ * Generated unique identifier of the access token.
1494
1745
  */
1495
- cluster_id: string;
1746
+ token_id: string;
1496
1747
  };
1497
1748
  query?: never;
1498
- url: '/clusters/{cluster_id}/charts';
1749
+ url: '/tokens/{token_id}';
1499
1750
  };
1500
- export type CreateChartResponses = {
1751
+ export type GetTokenErrors = {
1501
1752
  /**
1502
- * Successfully created. Returns created Chart ID.
1753
+ * Not authenticated
1503
1754
  */
1504
- 200: string;
1505
- };
1506
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1507
- export type DeleteChartData = {
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
- * Chart deployment name as the unique identifier of the chart.
1516
- */
1517
- chart_name: string;
1518
- };
1519
- query?: never;
1520
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1755
+ 401: unknown;
1521
1756
  };
1522
- export type DeleteChartResponses = {
1757
+ export type GetTokenResponses = {
1523
1758
  /**
1524
- * Successfully deleted.
1759
+ * Returns access token details with masked secret.
1525
1760
  */
1526
- 200: string;
1761
+ 200: Token;
1527
1762
  };
1528
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1529
- export type GetChartData = {
1530
- body?: never;
1763
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1764
+ export type UpdateTokenData = {
1765
+ body: TokenUpdateInput;
1531
1766
  path: {
1532
1767
  /**
1533
- * Unique identifier of the cluster. UUID v4 string in canonical form
1534
- */
1535
- cluster_id: string;
1536
- /**
1537
- * Chart deployment name as the unique identifier of the chart.
1768
+ * Generated unique identifier of the access token.
1538
1769
  */
1539
- chart_name: string;
1770
+ token_id: string;
1540
1771
  };
1541
1772
  query?: never;
1542
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1773
+ url: '/tokens/{token_id}';
1543
1774
  };
1544
- export type GetChartResponses = {
1775
+ export type UpdateTokenErrors = {
1545
1776
  /**
1546
- * Returns a single object containing chart details.
1777
+ * Not authenticated
1547
1778
  */
1548
- 200: Chart;
1549
- };
1550
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1551
- export type UpdateChartData = {
1552
- body: ChartUpdateInput;
1553
- path: {
1554
- /**
1555
- * Unique identifier of the cluster. UUID v4 string in canonical form
1556
- */
1557
- cluster_id: string;
1558
- /**
1559
- * Chart deployment name as the unique identifier of the chart.
1560
- */
1561
- chart_name: string;
1562
- };
1563
- query?: never;
1564
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1779
+ 401: unknown;
1565
1780
  };
1566
- export type UpdateChartResponses = {
1781
+ export type UpdateTokenResponses = {
1567
1782
  /**
1568
- * Successfully updated.
1783
+ * Successfully updated. Returns updated token details with masked secret.
1569
1784
  */
1570
- 200: string;
1785
+ 200: Token;
1571
1786
  };
1572
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1573
- export type ListFleetsData = {
1787
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1788
+ export type RegenerateTokenData = {
1574
1789
  body?: never;
1575
1790
  path: {
1576
1791
  /**
1577
- * Unique identifier of the cluster. UUID v4 string in canonical form
1792
+ * Generated unique identifier of the access token.
1578
1793
  */
1579
- cluster_id: string;
1794
+ token_id: string;
1580
1795
  };
1581
1796
  query?: never;
1582
- url: '/clusters/{cluster_id}/fleets';
1797
+ url: '/tokens/{token_id}/secret';
1583
1798
  };
1584
- export type ListFleetsErrors = {
1799
+ export type RegenerateTokenErrors = {
1585
1800
  /**
1586
1801
  * Not authenticated
1587
1802
  */
1588
1803
  401: unknown;
1589
1804
  };
1590
- export type ListFleetsResponses = {
1805
+ export type RegenerateTokenResponses = {
1591
1806
  /**
1592
- * An array of fleets
1807
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1593
1808
  */
1594
- 200: Array<Fleet>;
1809
+ 200: Token;
1595
1810
  };
1596
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1597
- export type CreateFleetData = {
1598
- body: FleetCreateInput;
1599
- path: {
1600
- /**
1601
- * Unique identifier of the cluster. UUID v4 string in canonical form
1602
- */
1603
- cluster_id: string;
1604
- };
1811
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1812
+ export type ListTicketsData = {
1813
+ body?: never;
1814
+ path?: never;
1605
1815
  query?: never;
1606
- url: '/clusters/{cluster_id}/fleets';
1816
+ url: '/tickets';
1607
1817
  };
1608
- export type CreateFleetErrors = {
1818
+ export type ListTicketsResponses = {
1609
1819
  /**
1610
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1820
+ * An array of tickets for the organization, newest first.
1611
1821
  */
1612
- 402: string;
1822
+ 200: Array<Ticket>;
1613
1823
  };
1614
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1615
- export type CreateFleetResponses = {
1824
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1825
+ export type CreateTicketData = {
1826
+ body: {
1827
+ /**
1828
+ * JSON-encoded TicketCreateInput.
1829
+ */
1830
+ payload?: string;
1831
+ attachments?: Array<Blob | File>;
1832
+ };
1833
+ path?: never;
1834
+ query?: never;
1835
+ url: '/tickets';
1836
+ };
1837
+ export type CreateTicketResponses = {
1616
1838
  /**
1617
- * Successfully created. Returns created Fleet ID.
1839
+ * Ticket created.
1618
1840
  */
1619
- 200: string;
1841
+ 200: Ticket;
1620
1842
  };
1621
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1622
- export type DeleteFleetData = {
1843
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1844
+ export type CloseTicketData = {
1623
1845
  body?: never;
1624
1846
  path: {
1625
- /**
1626
- * Unique identifier of the cluster. UUID v4 string in canonical form
1627
- */
1628
- cluster_id: string;
1629
- /**
1630
- * Unique identifier of the fleet. UUID v4 string in canonical form
1631
- */
1632
- fleet_name: string;
1847
+ ticket_id: string;
1633
1848
  };
1634
1849
  query?: never;
1635
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1850
+ url: '/tickets/{ticket_id}';
1636
1851
  };
1637
- export type DeleteFleetResponses = {
1852
+ export type CloseTicketResponses = {
1638
1853
  /**
1639
- * Successfully deleted.
1854
+ * Ticket closed.
1640
1855
  */
1641
- 200: string;
1856
+ 200: Ticket;
1642
1857
  };
1643
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1644
- export type GetFleetData = {
1858
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1859
+ export type GetTicketData = {
1645
1860
  body?: never;
1646
1861
  path: {
1647
- /**
1648
- * Unique identifier of the cluster. UUID v4 string in canonical form
1649
- */
1650
- cluster_id: string;
1651
- /**
1652
- * Unique identifier of the fleet. UUID v4 string in canonical form
1653
- */
1654
- fleet_name: string;
1862
+ ticket_id: string;
1655
1863
  };
1656
1864
  query?: never;
1657
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1865
+ url: '/tickets/{ticket_id}';
1658
1866
  };
1659
- export type GetFleetResponses = {
1867
+ export type GetTicketResponses = {
1660
1868
  /**
1661
- * Returns a single object containing fleet details.
1869
+ * Ticket with messages (internal notes excluded).
1662
1870
  */
1663
- 200: Fleet;
1871
+ 200: Ticket;
1664
1872
  };
1665
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1666
- export type UpdateFleetData = {
1667
- body: FleetUpdateInput;
1873
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1874
+ export type GrantTicketSupportAccessData = {
1875
+ body?: never;
1668
1876
  path: {
1669
- /**
1670
- * Unique identifier of the cluster. UUID v4 string in canonical form
1671
- */
1672
- cluster_id: string;
1673
- /**
1674
- * Unique identifier of the fleet. UUID v4 string in canonical form
1675
- */
1676
- fleet_name: string;
1877
+ ticket_id: string;
1677
1878
  };
1678
1879
  query?: never;
1679
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1880
+ url: '/tickets/{ticket_id}/support-access';
1680
1881
  };
1681
- export type UpdateFleetErrors = {
1882
+ export type GrantTicketSupportAccessErrors = {
1682
1883
  /**
1683
- * Organization must have a valid payment method configured to access this endpoint.
1884
+ * Ticket is closed. Open a new ticket instead.
1684
1885
  */
1685
- 402: string;
1886
+ 409: unknown;
1686
1887
  };
1687
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1688
- export type UpdateFleetResponses = {
1888
+ export type GrantTicketSupportAccessResponses = {
1689
1889
  /**
1690
- * Successfully updated.
1890
+ * Support access granted.
1691
1891
  */
1692
- 200: string;
1892
+ 200: Ticket;
1693
1893
  };
1694
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1695
- export type QueryClusterData = {
1696
- body?: never;
1697
- path: {
1894
+ export type GrantTicketSupportAccessResponse = GrantTicketSupportAccessResponses[keyof GrantTicketSupportAccessResponses];
1895
+ export type ReplyTicketData = {
1896
+ body: {
1698
1897
  /**
1699
- * Unique identifier of the cluster. UUID v4 string in canonical form
1898
+ * JSON-encoded TicketMessageInput.
1700
1899
  */
1701
- cluster_id: string;
1900
+ payload?: string;
1901
+ attachments?: Array<Blob | File>;
1902
+ };
1903
+ path: {
1904
+ ticket_id: string;
1702
1905
  };
1703
1906
  query?: never;
1704
- url: '/clusters/{cluster_id}/query';
1907
+ url: '/tickets/{ticket_id}/messages';
1705
1908
  };
1706
- export type QueryClusterErrors = {
1909
+ export type ReplyTicketErrors = {
1707
1910
  /**
1708
- * Not authenticated
1911
+ * Ticket is closed. Open a new ticket instead.
1709
1912
  */
1710
- 401: unknown;
1913
+ 409: unknown;
1711
1914
  };
1712
- export type QueryClusterResponses = {
1915
+ export type ReplyTicketResponses = {
1713
1916
  /**
1714
- * Kubernetes API response
1715
- */
1716
- 200: unknown;
1717
- };
1718
- export type ListClustersData = {
1719
- body?: never;
1720
- path?: never;
1721
- query?: never;
1722
- url: '/clusters';
1723
- };
1724
- export type ListClustersErrors = {
1725
- /**
1726
- * Not authenticated
1727
- */
1728
- 401: unknown;
1729
- };
1730
- export type ListClustersResponses = {
1731
- /**
1732
- * An array of clusters
1733
- */
1734
- 200: Array<Cluster>;
1735
- };
1736
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1737
- export type CreateClusterData = {
1738
- body: ClusterCreateInput;
1739
- path?: never;
1740
- query?: never;
1741
- url: '/clusters';
1742
- };
1743
- export type CreateClusterErrors = {
1744
- /**
1745
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1746
- */
1747
- 402: string;
1748
- };
1749
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1750
- export type CreateClusterResponses = {
1751
- /**
1752
- * Successfully created. Returns created Cluster ID.
1753
- */
1754
- 200: string;
1755
- };
1756
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1757
- export type DeleteClusterData = {
1758
- body?: never;
1759
- path: {
1760
- /**
1761
- * Unique identifier of the cluster. UUID v4 string in canonical form
1762
- */
1763
- cluster_id: string;
1764
- };
1765
- query?: never;
1766
- url: '/clusters/{cluster_id}';
1767
- };
1768
- export type DeleteClusterResponses = {
1769
- /**
1770
- * Successfully deleted.
1771
- */
1772
- 200: string;
1773
- };
1774
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1775
- export type GetClusterData = {
1776
- body?: never;
1777
- path: {
1778
- /**
1779
- * Unique identifier of the cluster. UUID v4 string in canonical form
1780
- */
1781
- cluster_id: string;
1782
- };
1783
- query?: never;
1784
- url: '/clusters/{cluster_id}';
1785
- };
1786
- export type GetClusterResponses = {
1787
- /**
1788
- * Returns a single object containing cluster details.
1789
- */
1790
- 200: Cluster;
1791
- };
1792
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1793
- export type UpdateClusterData = {
1794
- body: ClusterUpdateInput;
1795
- path: {
1796
- /**
1797
- * Unique identifier of the cluster. UUID v4 string in canonical form
1798
- */
1799
- cluster_id: string;
1800
- };
1801
- query?: never;
1802
- url: '/clusters/{cluster_id}';
1803
- };
1804
- export type UpdateClusterResponses = {
1805
- /**
1806
- * Successfully updated. Returns updated cluster details.
1917
+ * Reply appended.
1807
1918
  */
1808
- 200: Cluster;
1919
+ 200: TicketMessage;
1809
1920
  };
1810
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1811
- export type GetJoinInformationData = {
1921
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1922
+ export type GetTicketAttachmentData = {
1812
1923
  body?: never;
1813
1924
  path: {
1814
- /**
1815
- * Unique identifier of the cluster. UUID v4 string in canonical form
1816
- */
1817
- cluster_id: string;
1925
+ ticket_id: string;
1926
+ attachment_id: string;
1818
1927
  };
1819
1928
  query?: never;
1820
- url: '/clusters/{cluster_id}/join_information';
1821
- };
1822
- export type GetJoinInformationErrors = {
1823
- /**
1824
- * Not authenticated
1825
- */
1826
- 401: unknown;
1929
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1827
1930
  };
1828
- export type GetJoinInformationResponses = {
1931
+ export type GetTicketAttachmentResponses = {
1829
1932
  /**
1830
- * An object of cluster join information
1933
+ * Attachment binary stream.
1831
1934
  */
1832
- 200: ClusterJoinInformation;
1935
+ 200: Blob | File;
1833
1936
  };
1834
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1835
- export type ListInvitesData = {
1937
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1938
+ export type ListRoadmapData = {
1836
1939
  body?: never;
1837
1940
  path?: never;
1838
1941
  query?: never;
1839
- url: '/invites';
1840
- };
1841
- export type ListInvitesErrors = {
1842
- /**
1843
- * Not authenticated
1844
- */
1845
- 401: unknown;
1942
+ url: '/roadmap';
1846
1943
  };
1847
- export type ListInvitesResponses = {
1944
+ export type ListRoadmapResponses = {
1848
1945
  /**
1849
- * An array of invites
1946
+ * An array of roadmap items, newest first.
1850
1947
  */
1851
- 200: Array<Invite>;
1948
+ 200: Array<RoadmapItem>;
1852
1949
  };
1853
- export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1854
- export type CreateInviteData = {
1855
- body: {
1856
- /**
1857
- * User email address
1858
- */
1859
- email?: string;
1860
- };
1950
+ export type ListRoadmapResponse = ListRoadmapResponses[keyof ListRoadmapResponses];
1951
+ export type SuggestRoadmapData = {
1952
+ body: RoadmapItemCreateInput;
1861
1953
  path?: never;
1862
1954
  query?: never;
1863
- url: '/invites';
1864
- };
1865
- export type CreateInviteResponses = {
1866
- /**
1867
- * Successfully created. Returns created invite details.
1868
- */
1869
- 200: Invite;
1870
- };
1871
- export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
1872
- export type GetInviteData = {
1873
- body?: never;
1874
- path: {
1875
- /**
1876
- * Invitation code
1877
- */
1878
- code: string;
1879
- };
1880
- query?: never;
1881
- url: '/invites/{code}';
1955
+ url: '/roadmap';
1882
1956
  };
1883
- export type GetInviteResponses = {
1957
+ export type SuggestRoadmapResponses = {
1884
1958
  /**
1885
- * Returns a single object containing invite details.
1959
+ * Suggestion submitted for review.
1886
1960
  */
1887
- 200: Invite;
1961
+ 200: RoadmapItem;
1888
1962
  };
1889
- export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1890
- export type DeleteInviteData = {
1963
+ export type SuggestRoadmapResponse = SuggestRoadmapResponses[keyof SuggestRoadmapResponses];
1964
+ export type UnvoteRoadmapData = {
1891
1965
  body?: never;
1892
1966
  path: {
1893
- /**
1894
- * User email address
1895
- */
1896
- email: string;
1967
+ item_id: string;
1897
1968
  };
1898
1969
  query?: never;
1899
- url: '/invites/{email}';
1900
- };
1901
- export type DeleteInviteResponses = {
1902
- /**
1903
- * Successfully deleted.
1904
- */
1905
- 200: unknown;
1906
- };
1907
- export type ListMarketplaceChartsData = {
1908
- body?: never;
1909
- path?: never;
1910
- query?: never;
1911
- url: '/marketplace';
1970
+ url: '/roadmap/{item_id}/vote';
1912
1971
  };
1913
- export type ListMarketplaceChartsErrors = {
1972
+ export type UnvoteRoadmapErrors = {
1914
1973
  /**
1915
- * Not authenticated
1974
+ * Roadmap item not found.
1916
1975
  */
1917
- 401: unknown;
1976
+ 404: unknown;
1918
1977
  };
1919
- export type ListMarketplaceChartsResponses = {
1978
+ export type UnvoteRoadmapResponses = {
1920
1979
  /**
1921
- * An array of chart listings in the marketplace.
1980
+ * Vote removed. Returns the item without a vote.
1922
1981
  */
1923
- 200: Array<MarketplaceListing>;
1982
+ 200: RoadmapItem;
1924
1983
  };
1925
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1926
- export type GetMarketplaceChartFilesData = {
1927
- body?: never;
1984
+ export type UnvoteRoadmapResponse = UnvoteRoadmapResponses[keyof UnvoteRoadmapResponses];
1985
+ export type VoteRoadmapData = {
1986
+ body: RoadmapVoteInput;
1928
1987
  path: {
1929
- /**
1930
- * Name of the chart in the marketplace.
1931
- */
1932
- chart_name: string;
1933
- /**
1934
- * Version channel pattern to match (e.g., "1.31.x-cfke.x" for latest 1.31 patch, "1.x.x-cfke.x" for latest 1.x minor).
1935
- */
1936
- version_channel: string;
1988
+ item_id: string;
1937
1989
  };
1938
1990
  query?: never;
1939
- url: '/marketplace/{chart_name}/files/{version_channel}';
1991
+ url: '/roadmap/{item_id}/vote';
1940
1992
  };
1941
- export type GetMarketplaceChartFilesErrors = {
1993
+ export type VoteRoadmapErrors = {
1942
1994
  /**
1943
- * Chart not found or no version matches the channel
1995
+ * Roadmap item not found.
1944
1996
  */
1945
1997
  404: unknown;
1946
1998
  };
1947
- export type GetMarketplaceChartFilesResponses = {
1948
- /**
1949
- * Returns an object containing the chart files for the latest matching version.
1950
- */
1951
- 200: MarketplaceListingFiles;
1952
- };
1953
- export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1954
- export type PostMcpData = {
1955
- /**
1956
- * JSON-RPC 2.0 request payload
1957
- */
1958
- body: {
1959
- jsonrpc?: string;
1960
- method?: string;
1961
- id?: string | number;
1962
- /**
1963
- * Method-specific parameters
1964
- */
1965
- params?: {
1966
- [key: string]: unknown;
1967
- };
1968
- };
1969
- path?: never;
1970
- query?: never;
1971
- url: '/mcp';
1972
- };
1973
- export type PostMcpErrors = {
1974
- /**
1975
- * Not authenticated
1976
- */
1977
- 401: unknown;
1978
- };
1979
- export type PostMcpResponses = {
1980
- /**
1981
- * JSON-RPC 2.0 success or error response
1982
- */
1983
- 200: {
1984
- jsonrpc?: string;
1985
- id?: string | number;
1986
- result?: {
1987
- [key: string]: unknown;
1988
- };
1989
- error?: {
1990
- code?: number;
1991
- message?: string;
1992
- };
1993
- };
1994
- };
1995
- export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1996
- export type GetOrganizationData = {
1997
- body?: never;
1998
- path?: never;
1999
- query?: never;
2000
- url: '/organization';
2001
- };
2002
- export type GetOrganizationResponses = {
2003
- /**
2004
- * Returns a single object containing organization details.
2005
- */
2006
- 200: Organization;
2007
- };
2008
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2009
- export type CreateOrganizationData = {
2010
- body: OrganizationCreateInput;
2011
- path?: never;
2012
- query?: never;
2013
- url: '/organization';
2014
- };
2015
- export type CreateOrganizationResponses = {
1999
+ export type VoteRoadmapResponses = {
2016
2000
  /**
2017
- * Successfully created a new organization.
2001
+ * Vote saved. Returns the item with your vote.
2018
2002
  */
2019
- 200: unknown;
2003
+ 200: RoadmapItem;
2020
2004
  };
2005
+ export type VoteRoadmapResponse = VoteRoadmapResponses[keyof VoteRoadmapResponses];
2021
2006
  export type ListRepositoriesData = {
2022
2007
  body?: never;
2023
2008
  path?: never;
@@ -2156,365 +2141,720 @@ export type GetTagResponses = {
2156
2141
  200: RegistryTag;
2157
2142
  };
2158
2143
  export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2159
- export type ListTicketsData = {
2144
+ export type GetOrganizationData = {
2160
2145
  body?: never;
2161
2146
  path?: never;
2162
2147
  query?: never;
2163
- url: '/tickets';
2148
+ url: '/organization';
2164
2149
  };
2165
- export type ListTicketsResponses = {
2150
+ export type GetOrganizationResponses = {
2166
2151
  /**
2167
- * Tickets for the organization.
2152
+ * Returns a single object containing organization details.
2168
2153
  */
2169
- 200: TicketListResponse;
2154
+ 200: Organization;
2170
2155
  };
2171
- export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
2172
- export type CreateTicketData = {
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
+ */
2173
2175
  body: {
2176
+ jsonrpc?: string;
2177
+ method?: string;
2178
+ id?: string | number;
2174
2179
  /**
2175
- * JSON-encoded TicketCreateInput.
2180
+ * Method-specific parameters
2176
2181
  */
2177
- payload?: string;
2178
- attachments?: Array<Blob | File>;
2182
+ params?: {
2183
+ [key: string]: unknown;
2184
+ };
2179
2185
  };
2180
2186
  path?: never;
2181
2187
  query?: never;
2182
- url: '/tickets';
2188
+ url: '/mcp';
2183
2189
  };
2184
- export type CreateTicketResponses = {
2190
+ export type PostMcpErrors = {
2185
2191
  /**
2186
- * Ticket created.
2192
+ * Not authenticated
2187
2193
  */
2188
- 200: Ticket;
2194
+ 401: unknown;
2189
2195
  };
2190
- export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
2191
- export type CloseTicketData = {
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
+ };
2210
+ };
2211
+ };
2212
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2213
+ export type ListInvitesData = {
2214
+ body?: never;
2215
+ path?: never;
2216
+ query?: never;
2217
+ url: '/invites';
2218
+ };
2219
+ export type ListInvitesErrors = {
2220
+ /**
2221
+ * Not authenticated
2222
+ */
2223
+ 401: unknown;
2224
+ };
2225
+ export type ListInvitesResponses = {
2226
+ /**
2227
+ * An array of invites
2228
+ */
2229
+ 200: Array<Invite>;
2230
+ };
2231
+ export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
2232
+ export type CreateInviteData = {
2233
+ body: InviteCreateInput;
2234
+ path?: never;
2235
+ query?: never;
2236
+ url: '/invites';
2237
+ };
2238
+ export type CreateInviteResponses = {
2239
+ /**
2240
+ * Successfully created. Returns created invite details.
2241
+ */
2242
+ 200: Invite;
2243
+ };
2244
+ export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
2245
+ export type GetInviteData = {
2192
2246
  body?: never;
2193
2247
  path: {
2194
- ticket_id: string;
2248
+ /**
2249
+ * Invitation code
2250
+ */
2251
+ code: string;
2195
2252
  };
2196
2253
  query?: never;
2197
- url: '/tickets/{ticket_id}';
2254
+ url: '/invites/{code}';
2198
2255
  };
2199
- export type CloseTicketResponses = {
2256
+ export type GetInviteResponses = {
2200
2257
  /**
2201
- * Ticket closed.
2258
+ * The invitation code is valid. Returns the invited email and organization.
2202
2259
  */
2203
- 200: Ticket;
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
+ };
2204
2270
  };
2205
- export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
2206
- export type GetTicketData = {
2271
+ export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
2272
+ export type DeleteInviteData = {
2207
2273
  body?: never;
2208
2274
  path: {
2209
- ticket_id: string;
2275
+ /**
2276
+ * User email address
2277
+ */
2278
+ email: string;
2210
2279
  };
2211
2280
  query?: never;
2212
- url: '/tickets/{ticket_id}';
2281
+ url: '/invites/{email}';
2213
2282
  };
2214
- export type GetTicketResponses = {
2283
+ export type DeleteInviteResponses = {
2215
2284
  /**
2216
- * Ticket with messages (internal notes excluded).
2285
+ * Successfully deleted.
2217
2286
  */
2218
- 200: Ticket;
2287
+ 200: unknown;
2219
2288
  };
2220
- export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2221
- export type ReplyTicketData = {
2222
- body: {
2289
+ export type SendFeedbackData = {
2290
+ body: FeedbackCreateInput;
2291
+ path?: never;
2292
+ query?: never;
2293
+ url: '/feedback';
2294
+ };
2295
+ export type SendFeedbackErrors = {
2296
+ /**
2297
+ * Too much feedback from this organization in the last hour.
2298
+ */
2299
+ 429: unknown;
2300
+ };
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;
2310
+ path: {
2223
2311
  /**
2224
- * JSON-encoded TicketMessageInput.
2312
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2225
2313
  */
2226
- payload?: string;
2227
- attachments?: Array<Blob | File>;
2314
+ cluster_id: string;
2228
2315
  };
2316
+ query?: never;
2317
+ url: '/clusters/{cluster_id}/query';
2318
+ };
2319
+ export type QueryClusterErrors = {
2320
+ /**
2321
+ * Not authenticated
2322
+ */
2323
+ 401: unknown;
2324
+ };
2325
+ export type QueryClusterResponses = {
2326
+ /**
2327
+ * Kubernetes API response
2328
+ */
2329
+ 200: unknown;
2330
+ };
2331
+ export type ListFleetsData = {
2332
+ body?: never;
2229
2333
  path: {
2230
- ticket_id: string;
2334
+ /**
2335
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2336
+ */
2337
+ cluster_id: string;
2231
2338
  };
2232
2339
  query?: never;
2233
- url: '/tickets/{ticket_id}/messages';
2340
+ url: '/clusters/{cluster_id}/fleets';
2234
2341
  };
2235
- export type ReplyTicketErrors = {
2342
+ export type ListFleetsErrors = {
2236
2343
  /**
2237
- * Ticket is closed. Open a new ticket instead.
2344
+ * Not authenticated
2238
2345
  */
2239
- 409: unknown;
2346
+ 401: unknown;
2240
2347
  };
2241
- export type ReplyTicketResponses = {
2348
+ export type ListFleetsResponses = {
2242
2349
  /**
2243
- * Reply appended.
2350
+ * An array of fleets
2244
2351
  */
2245
- 200: TicketMessage;
2352
+ 200: Array<Fleet>;
2246
2353
  };
2247
- export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2248
- export type GetTicketAttachmentData = {
2354
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2355
+ export type CreateFleetData = {
2356
+ body: FleetCreateInput;
2357
+ path: {
2358
+ /**
2359
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2360
+ */
2361
+ cluster_id: string;
2362
+ };
2363
+ query?: never;
2364
+ url: '/clusters/{cluster_id}/fleets';
2365
+ };
2366
+ export type CreateFleetErrors = {
2367
+ /**
2368
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
2369
+ */
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;
2375
+ };
2376
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2377
+ export type CreateFleetResponses = {
2378
+ /**
2379
+ * Successfully created. Returns created Fleet ID.
2380
+ */
2381
+ 200: string;
2382
+ };
2383
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2384
+ export type DeleteFleetData = {
2249
2385
  body?: never;
2250
2386
  path: {
2251
- ticket_id: string;
2252
- attachment_id: string;
2387
+ /**
2388
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2389
+ */
2390
+ cluster_id: string;
2391
+ /**
2392
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2393
+ */
2394
+ fleet_name: string;
2253
2395
  };
2254
2396
  query?: never;
2255
- url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2397
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2256
2398
  };
2257
- export type GetTicketAttachmentResponses = {
2399
+ export type DeleteFleetErrors = {
2258
2400
  /**
2259
- * Attachment binary stream.
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.
2260
2402
  */
2261
- 200: Blob | File;
2403
+ 409: string;
2404
+ };
2405
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2406
+ export type DeleteFleetResponses = {
2407
+ /**
2408
+ * Successfully deleted.
2409
+ */
2410
+ 200: string;
2411
+ };
2412
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2413
+ export type GetFleetData = {
2414
+ body?: never;
2415
+ path: {
2416
+ /**
2417
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2418
+ */
2419
+ cluster_id: string;
2420
+ /**
2421
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2422
+ */
2423
+ fleet_name: string;
2424
+ };
2425
+ query?: never;
2426
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2427
+ };
2428
+ export type GetFleetResponses = {
2429
+ /**
2430
+ * Returns a single object containing fleet details.
2431
+ */
2432
+ 200: Fleet;
2433
+ };
2434
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
2435
+ export type UpdateFleetData = {
2436
+ body: FleetUpdateInput;
2437
+ path: {
2438
+ /**
2439
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2440
+ */
2441
+ cluster_id: string;
2442
+ /**
2443
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2444
+ */
2445
+ fleet_name: string;
2446
+ };
2447
+ query?: never;
2448
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2449
+ };
2450
+ export type UpdateFleetErrors = {
2451
+ /**
2452
+ * Organization must have a valid payment method configured to access this endpoint.
2453
+ */
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;
2459
+ };
2460
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2461
+ export type UpdateFleetResponses = {
2462
+ /**
2463
+ * Successfully updated.
2464
+ */
2465
+ 200: string;
2466
+ };
2467
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2468
+ export type ListClustersData = {
2469
+ body?: never;
2470
+ path?: never;
2471
+ query?: never;
2472
+ url: '/clusters';
2473
+ };
2474
+ export type ListClustersErrors = {
2475
+ /**
2476
+ * Not authenticated
2477
+ */
2478
+ 401: unknown;
2479
+ };
2480
+ export type ListClustersResponses = {
2481
+ /**
2482
+ * An array of clusters
2483
+ */
2484
+ 200: Array<Cluster>;
2485
+ };
2486
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2487
+ export type CreateClusterData = {
2488
+ body: ClusterCreateInput;
2489
+ path?: never;
2490
+ query?: never;
2491
+ url: '/clusters';
2492
+ };
2493
+ export type CreateClusterErrors = {
2494
+ /**
2495
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2496
+ */
2497
+ 402: string;
2498
+ };
2499
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2500
+ export type CreateClusterResponses = {
2501
+ /**
2502
+ * Successfully created. Returns created Cluster ID.
2503
+ */
2504
+ 200: string;
2505
+ };
2506
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2507
+ export type DeleteClusterData = {
2508
+ body?: never;
2509
+ path: {
2510
+ /**
2511
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2512
+ */
2513
+ cluster_id: string;
2514
+ };
2515
+ query?: never;
2516
+ url: '/clusters/{cluster_id}';
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];
2533
+ export type DeleteClusterResponses = {
2534
+ /**
2535
+ * Successfully deleted. The cluster has been torn down.
2536
+ */
2537
+ 200: string;
2538
+ };
2539
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2540
+ export type GetClusterData = {
2541
+ body?: never;
2542
+ path: {
2543
+ /**
2544
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2545
+ */
2546
+ cluster_id: string;
2547
+ };
2548
+ query?: never;
2549
+ url: '/clusters/{cluster_id}';
2550
+ };
2551
+ export type GetClusterResponses = {
2552
+ /**
2553
+ * Returns a single object containing cluster details.
2554
+ */
2555
+ 200: Cluster;
2556
+ };
2557
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2558
+ export type UpdateClusterData = {
2559
+ body: ClusterUpdateInput;
2560
+ path: {
2561
+ /**
2562
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2563
+ */
2564
+ cluster_id: string;
2565
+ };
2566
+ query?: never;
2567
+ url: '/clusters/{cluster_id}';
2568
+ };
2569
+ export type UpdateClusterErrors = {
2570
+ /**
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.
2572
+ */
2573
+ 409: string;
2574
+ };
2575
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2576
+ export type UpdateClusterResponses = {
2577
+ /**
2578
+ * Successfully updated. Returns updated cluster details.
2579
+ */
2580
+ 200: Cluster;
2262
2581
  };
2263
- export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
2264
- export type ListTokensData = {
2582
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2583
+ export type GetJoinInformationData = {
2265
2584
  body?: never;
2266
- path?: never;
2585
+ path: {
2586
+ /**
2587
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2588
+ */
2589
+ cluster_id: string;
2590
+ };
2267
2591
  query?: never;
2268
- url: '/tokens';
2592
+ url: '/clusters/{cluster_id}/join_information';
2269
2593
  };
2270
- export type ListTokensErrors = {
2594
+ export type GetJoinInformationErrors = {
2271
2595
  /**
2272
2596
  * Not authenticated
2273
2597
  */
2274
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;
2275
2607
  };
2276
- export type ListTokensResponses = {
2608
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2609
+ export type GetJoinInformationResponses = {
2277
2610
  /**
2278
- * Returns a list of access token details with masked secrets.
2611
+ * An object of cluster join information
2279
2612
  */
2280
- 200: Array<Token>;
2613
+ 200: ClusterJoinInformation;
2281
2614
  };
2282
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
2283
- export type CreateTokenData = {
2284
- body: TokenCreateInput;
2615
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2616
+ export type GetUsageData = {
2617
+ body?: never;
2285
2618
  path?: never;
2286
- query?: never;
2287
- 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';
2288
2626
  };
2289
- export type CreateTokenErrors = {
2627
+ export type GetUsageErrors = {
2290
2628
  /**
2291
2629
  * Not authenticated
2292
2630
  */
2293
2631
  401: unknown;
2294
2632
  };
2295
- export type CreateTokenResponses = {
2633
+ export type GetUsageResponses = {
2296
2634
  /**
2297
- * Successfully created. Returns created token details with unmasked/raw secret.
2635
+ * Usage data with facets for filtering
2298
2636
  */
2299
- 200: Token;
2637
+ 200: UsageResponse;
2300
2638
  };
2301
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
2302
- export type DeleteTokenData = {
2639
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2640
+ export type GetPaymentMethodSecretData = {
2303
2641
  body?: never;
2304
- path: {
2305
- /**
2306
- * Generated unique identifier of the access token.
2307
- */
2308
- token_id: string;
2309
- };
2642
+ path?: never;
2310
2643
  query?: never;
2311
- url: '/tokens/{token_id}';
2644
+ url: '/billing/payment-method';
2312
2645
  };
2313
- export type DeleteTokenResponses = {
2646
+ export type GetPaymentMethodSecretResponses = {
2314
2647
  /**
2315
- * 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
+ *
2316
2650
  */
2317
- 200: unknown;
2318
- };
2319
- export type GetTokenData = {
2320
- body?: never;
2321
- path: {
2651
+ 200: {
2322
2652
  /**
2323
- * Generated unique identifier of the access token.
2653
+ * The client secret.
2324
2654
  */
2325
- token_id: string;
2655
+ id?: string;
2326
2656
  };
2657
+ };
2658
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2659
+ export type ListPaymentMethodsData = {
2660
+ body?: never;
2661
+ path?: never;
2327
2662
  query?: never;
2328
- url: '/tokens/{token_id}';
2663
+ url: '/billing/payment-methods';
2329
2664
  };
2330
- export type GetTokenErrors = {
2665
+ export type ListPaymentMethodsErrors = {
2331
2666
  /**
2332
2667
  * Not authenticated
2333
2668
  */
2334
2669
  401: unknown;
2335
2670
  };
2336
- export type GetTokenResponses = {
2671
+ export type ListPaymentMethodsResponses = {
2337
2672
  /**
2338
- * Returns access token details with masked secret.
2673
+ * An array of payment methods.
2339
2674
  */
2340
- 200: Token;
2675
+ 200: Array<PaymentMethod>;
2341
2676
  };
2342
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
2343
- export type UpdateTokenData = {
2344
- body: TokenUpdateInput;
2677
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2678
+ export type SetDefaultPaymentMethodData = {
2679
+ body?: never;
2345
2680
  path: {
2346
2681
  /**
2347
- * Generated unique identifier of the access token.
2682
+ * Stripe payment method identifier.
2348
2683
  */
2349
- token_id: string;
2684
+ paymentMethodId: string;
2350
2685
  };
2351
2686
  query?: never;
2352
- url: '/tokens/{token_id}';
2687
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2353
2688
  };
2354
- export type UpdateTokenErrors = {
2689
+ export type SetDefaultPaymentMethodErrors = {
2690
+ /**
2691
+ * The bank transfer payment method cannot be set as the default.
2692
+ */
2693
+ 400: unknown;
2355
2694
  /**
2356
2695
  * Not authenticated
2357
2696
  */
2358
2697
  401: unknown;
2698
+ /**
2699
+ * Payment method not found.
2700
+ */
2701
+ 404: unknown;
2359
2702
  };
2360
- export type UpdateTokenResponses = {
2703
+ export type SetDefaultPaymentMethodResponses = {
2361
2704
  /**
2362
- * Successfully updated. Returns updated token details with masked secret.
2705
+ * Default payment method updated.
2363
2706
  */
2364
- 200: Token;
2707
+ 204: void;
2365
2708
  };
2366
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
2367
- export type RegenerateTokenData = {
2709
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2710
+ export type DeletePaymentMethodData = {
2368
2711
  body?: never;
2369
2712
  path: {
2370
2713
  /**
2371
- * Generated unique identifier of the access token.
2714
+ * Stripe payment method identifier.
2372
2715
  */
2373
- token_id: string;
2716
+ paymentMethodId: string;
2374
2717
  };
2375
2718
  query?: never;
2376
- url: '/tokens/{token_id}/secret';
2719
+ url: '/billing/payment-methods/{paymentMethodId}';
2377
2720
  };
2378
- export type RegenerateTokenErrors = {
2721
+ export type DeletePaymentMethodErrors = {
2722
+ /**
2723
+ * The bank transfer payment method cannot be removed.
2724
+ */
2725
+ 400: unknown;
2379
2726
  /**
2380
2727
  * Not authenticated
2381
2728
  */
2382
2729
  401: unknown;
2730
+ /**
2731
+ * Payment method not found.
2732
+ */
2733
+ 404: unknown;
2734
+ /**
2735
+ * Cannot delete the only remaining payment method.
2736
+ */
2737
+ 409: unknown;
2383
2738
  };
2384
- export type RegenerateTokenResponses = {
2739
+ export type DeletePaymentMethodResponses = {
2385
2740
  /**
2386
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2741
+ * Payment method deleted.
2387
2742
  */
2388
- 200: Token;
2743
+ 204: void;
2389
2744
  };
2390
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
2391
- export type ListUserOrganizationsData = {
2745
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2746
+ export type ListInvoicesData = {
2392
2747
  body?: never;
2393
- path: {
2394
- /**
2395
- * User email address.
2396
- */
2397
- email: string;
2398
- };
2748
+ path?: never;
2399
2749
  query?: never;
2400
- url: '/users/organizations/{email}';
2750
+ url: '/billing/invoices';
2401
2751
  };
2402
- export type ListUserOrganizationsResponses = {
2752
+ export type ListInvoicesErrors = {
2403
2753
  /**
2404
- * An array of organizations the user belongs to.
2754
+ * Not authenticated
2405
2755
  */
2406
- 200: Array<{
2407
- /**
2408
- * Unique identifier of the organization. UUID v4 string in canonical form
2409
- */
2410
- realm?: string;
2411
- /**
2412
- * Human-readable name of the organization
2413
- */
2414
- displayName?: string;
2415
- }>;
2756
+ 401: unknown;
2416
2757
  };
2417
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2418
- export type ListUsersData = {
2758
+ export type ListInvoicesResponses = {
2759
+ /**
2760
+ * An array of usage records.
2761
+ */
2762
+ 200: Array<Invoice>;
2763
+ };
2764
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2765
+ export type PayOpenInvoicesData = {
2419
2766
  body?: never;
2420
2767
  path?: never;
2421
2768
  query?: never;
2422
- url: '/users';
2769
+ url: '/billing/invoices/pay';
2423
2770
  };
2424
- export type ListUsersErrors = {
2771
+ export type PayOpenInvoicesErrors = {
2772
+ /**
2773
+ * The organization has no payment method that can be charged.
2774
+ */
2775
+ 400: unknown;
2425
2776
  /**
2426
2777
  * Not authenticated
2427
2778
  */
2428
2779
  401: unknown;
2780
+ /**
2781
+ * Too many payment attempts for this organization.
2782
+ */
2783
+ 429: unknown;
2429
2784
  };
2430
- export type ListUsersResponses = {
2785
+ export type PayOpenInvoicesResponses = {
2431
2786
  /**
2432
- * An array of users
2787
+ * The outcome of the attempt.
2433
2788
  */
2434
- 200: Array<User>;
2789
+ 200: InvoicePaymentResult;
2435
2790
  };
2436
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2437
- export type CreateUserData = {
2438
- body: UserCreateInput;
2791
+ export type PayOpenInvoicesResponse = PayOpenInvoicesResponses[keyof PayOpenInvoicesResponses];
2792
+ export type GetContactData = {
2793
+ body?: never;
2439
2794
  path?: never;
2440
2795
  query?: never;
2441
- url: '/users';
2796
+ url: '/billing/contact';
2442
2797
  };
2443
- export type CreateUserResponses = {
2798
+ export type GetContactResponses = {
2444
2799
  /**
2445
- * Successfully created. Returns created user details.
2800
+ * Returns a single object containing organization contact and billing address details.
2446
2801
  */
2447
- 200: User;
2802
+ 200: BillingContact;
2448
2803
  };
2449
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2450
- export type DeleteUserData = {
2451
- body?: never;
2452
- path: {
2453
- /**
2454
- * Unique user identifier. UUID v4 string in canonical form
2455
- */
2456
- user_id: string;
2457
- };
2804
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2805
+ export type UpdateContactData = {
2806
+ body: BillingContact;
2807
+ path?: never;
2458
2808
  query?: never;
2459
- url: '/users/{user_id}';
2809
+ url: '/billing/contact';
2460
2810
  };
2461
- export type DeleteUserErrors = {
2811
+ export type UpdateContactResponses = {
2462
2812
  /**
2463
- * Deleting own user is not allowed. Delete your organization instead.
2813
+ * Successfully updated. Returns updated organization details.
2464
2814
  */
2465
- 400: unknown;
2815
+ 200: BillingContact;
2816
+ };
2817
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2818
+ export type GetCreditsData = {
2819
+ body?: never;
2820
+ path?: never;
2821
+ query?: never;
2822
+ url: '/billing/credits';
2823
+ };
2824
+ export type GetCreditsErrors = {
2466
2825
  /**
2467
2826
  * Not authenticated
2468
2827
  */
2469
2828
  401: unknown;
2470
2829
  };
2471
- export type DeleteUserResponses = {
2830
+ export type GetCreditsResponses = {
2472
2831
  /**
2473
- * User profile information
2832
+ * An array of the applied promotional credits records.
2474
2833
  */
2475
- 200: User;
2834
+ 200: Array<BillingCredits>;
2476
2835
  };
2477
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2478
- export type GetUserData = {
2479
- body?: never;
2480
- path: {
2836
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2837
+ export type RedeemCreditsData = {
2838
+ body: {
2481
2839
  /**
2482
- * Unique user identifier. UUID v4 string in canonical form
2840
+ * Promotional code to redeem
2483
2841
  */
2484
- user_id: string;
2842
+ code?: string;
2485
2843
  };
2844
+ path?: never;
2486
2845
  query?: never;
2487
- url: '/users/{user_id}';
2846
+ url: '/billing/credits';
2488
2847
  };
2489
- export type GetUserErrors = {
2848
+ export type RedeemCreditsErrors = {
2490
2849
  /**
2491
2850
  * Not authenticated
2492
2851
  */
2493
2852
  401: unknown;
2494
2853
  };
2495
- export type GetUserResponses = {
2496
- /**
2497
- * User profile information
2498
- */
2499
- 200: User;
2500
- };
2501
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2502
- export type UpdateUserData = {
2503
- body: UserUpdateInput;
2504
- path: {
2505
- /**
2506
- * Unique user identifier. UUID v4 string in canonical form
2507
- */
2508
- user_id: string;
2509
- };
2510
- query?: never;
2511
- url: '/users/{user_id}';
2512
- };
2513
- export type UpdateUserResponses = {
2854
+ export type RedeemCreditsResponses = {
2514
2855
  /**
2515
- * Successfully created. Returns created user details.
2856
+ * Successfully created a new organization.
2516
2857
  */
2517
- 200: User;
2858
+ 200: unknown;
2518
2859
  };
2519
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2520
2860
  //# sourceMappingURL=types.gen.d.ts.map