@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-3f9bef8

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 (72) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1151 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1167 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/utils.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +4 -4
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +2 -4
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/bodySerializer.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/types.gen.d.ts +79 -0
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1367 -650
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2690 -768
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +200 -83
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +263 -192
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +1243 -446
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3607 -2234
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1373 -828
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -7
package/dist/sdk.gen.js CHANGED
@@ -1,121 +1,108 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { client as _heyApiClient } from './client.gen';
2
+ import { formDataBodySerializer } from './client';
3
+ import { client } from './client.gen';
3
4
  export class BillingService {
4
5
  /**
5
6
  * Get billing usage information.
6
- * Returns aggregated usage information for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
7
+ *
8
+ * Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
7
9
  *
8
10
  */
9
11
  static getUsage(options) {
10
- return (options?.client ?? _heyApiClient).get({
11
- url: '/billing/usage',
12
- ...options
13
- });
12
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
14
13
  }
15
14
  /**
16
- * Get billing balance information.
17
- * Returns the current balance of the organization in USD as a floating-point number. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
15
+ * Get Stripe client secret.
16
+ *
17
+ * Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
18
18
  *
19
19
  */
20
- static getBalance(options) {
21
- return (options?.client ?? _heyApiClient).get({
22
- url: '/billing/balance',
23
- ...options
24
- });
20
+ static getPaymentMethodSecret(options) {
21
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
25
22
  }
26
23
  /**
27
- * Get organization payment method information.
28
- * Returns the information about the payment card associated with the organization with sensitive information redacted. Payment details can be updated in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to all users in the organization.
24
+ * List organization payment methods.
25
+ *
26
+ * Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
29
27
  *
30
28
  */
31
- static getPaymentMethod(options) {
32
- return (options?.client ?? _heyApiClient).get({
33
- url: '/billing/payment-method',
34
- ...options
35
- });
29
+ static listPaymentMethods(options) {
30
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
36
31
  }
37
32
  /**
38
- * Get Stripe client secret.
39
- * Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
33
+ * Set the default payment method.
34
+ *
35
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
40
36
  *
41
37
  */
42
- static getPaymentMethodSecret(options) {
43
- return (options?.client ?? _heyApiClient).put({
44
- url: '/billing/payment-method',
45
- ...options
46
- });
38
+ static setDefaultPaymentMethod(options) {
39
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
47
40
  }
48
41
  /**
49
- * List issued invoices.
50
- * Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
42
+ * Delete a payment method.
43
+ *
44
+ * Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
51
45
  *
52
46
  */
53
- static listInvoices(options) {
54
- return (options.client ?? _heyApiClient).get({
55
- url: '/billing/invoices',
56
- ...options
57
- });
47
+ static deletePaymentMethod(options) {
48
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
58
49
  }
59
50
  /**
60
- * Get invoice information.
61
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
51
+ * List issued invoices.
52
+ *
53
+ * Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
62
54
  *
63
55
  */
64
- static getInvoice(options) {
65
- return (options.client ?? _heyApiClient).get({
66
- url: '/billing/invoices/{id}',
67
- ...options
68
- });
56
+ static listInvoices(options) {
57
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
69
58
  }
70
59
  /**
71
60
  * Get organization contact and billing address information.
61
+ *
72
62
  * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
73
63
  *
74
64
  */
75
65
  static getContact(options) {
76
- return (options?.client ?? _heyApiClient).get({
77
- url: '/billing/contact',
78
- ...options
79
- });
66
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
80
67
  }
81
68
  /**
82
69
  * Update organization contact information and billing address.
70
+ *
83
71
  * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
84
72
  *
85
73
  */
86
74
  static updateContact(options) {
87
- return (options.client ?? _heyApiClient).put({
75
+ return (options.client ?? client).put({
88
76
  url: '/billing/contact',
89
77
  ...options,
90
78
  headers: {
91
79
  'Content-Type': 'application/json',
92
- ...options?.headers
80
+ ...options.headers
93
81
  }
94
82
  });
95
83
  }
96
84
  /**
97
85
  * Get applied promotional credits
86
+ *
98
87
  * Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
99
88
  *
100
89
  */
101
90
  static getCredits(options) {
102
- return (options?.client ?? _heyApiClient).get({
103
- url: '/billing/credits',
104
- ...options
105
- });
91
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
106
92
  }
107
93
  /**
108
94
  * Redeem promotional credits code.
95
+ *
109
96
  * Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
110
97
  *
111
98
  */
112
99
  static redeemCredits(options) {
113
- return (options.client ?? _heyApiClient).post({
100
+ return (options.client ?? client).post({
114
101
  url: '/billing/credits',
115
102
  ...options,
116
103
  headers: {
117
104
  'Content-Type': 'application/json',
118
- ...options?.headers
105
+ ...options.headers
119
106
  }
120
107
  });
121
108
  }
@@ -123,434 +110,525 @@ export class BillingService {
123
110
  export class ClustersService {
124
111
  /**
125
112
  * List charts.
113
+ *
126
114
  * Returns a list of charts in the cluster.
127
115
  *
128
116
  * This endpoint is available to all users in the organization.
129
117
  *
130
118
  */
131
119
  static listCharts(options) {
132
- return (options.client ?? _heyApiClient).get({
133
- url: '/clusters/{cluster_id}/charts',
134
- ...options
135
- });
120
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
136
121
  }
137
122
  /**
138
123
  * Create a new chart.
124
+ *
139
125
  * Create a new chart deployment.
140
126
  *
141
127
  * This endpoint is available to administrators of the organization only.
142
128
  *
143
129
  */
144
130
  static createChart(options) {
145
- return (options.client ?? _heyApiClient).post({
131
+ return (options.client ?? client).post({
146
132
  url: '/clusters/{cluster_id}/charts',
147
133
  ...options,
148
134
  headers: {
149
135
  'Content-Type': 'application/json',
150
- ...options?.headers
136
+ ...options.headers
151
137
  }
152
138
  });
153
139
  }
154
140
  /**
155
141
  * Permanently delete the chart deployment from the cluster.
142
+ *
156
143
  * This endpoint will permanently delete chart. This operation cannot be undone.
157
144
  *
158
145
  * This endpoint is available to administrators of the organization only.
159
146
  *
160
147
  */
161
148
  static deleteChart(options) {
162
- return (options.client ?? _heyApiClient).delete({
163
- url: '/clusters/{cluster_id}/charts/{chart_name}',
164
- ...options
165
- });
149
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
166
150
  }
167
151
  /**
168
152
  * Get chart information.
153
+ *
169
154
  * Returns the details of the chart deployment.
170
155
  *
171
156
  * This endpoint is available to all users in the organization.
172
157
  *
173
158
  */
174
159
  static getChart(options) {
175
- return (options.client ?? _heyApiClient).get({
176
- url: '/clusters/{cluster_id}/charts/{chart_name}',
177
- ...options
178
- });
160
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
179
161
  }
180
162
  /**
181
163
  * Update chart information.
164
+ *
182
165
  * This endpoint allows you to update the values of a chart deployment.
183
166
  *
184
167
  * This endpoint is available to administrators of the organization only.
185
168
  *
186
169
  */
187
170
  static updateChart(options) {
188
- return (options.client ?? _heyApiClient).put({
171
+ return (options.client ?? client).put({
189
172
  url: '/clusters/{cluster_id}/charts/{chart_name}',
190
173
  ...options,
191
174
  headers: {
192
175
  'Content-Type': 'application/json',
193
- ...options?.headers
176
+ ...options.headers
194
177
  }
195
178
  });
196
179
  }
197
180
  /**
198
181
  * List fleets.
199
- * Returns a list of fleets belonging to the cluster. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
182
+ *
183
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
200
184
  *
201
185
  * This endpoint is available to all users in the organization.
202
186
  *
203
187
  */
204
188
  static listFleets(options) {
205
- return (options.client ?? _heyApiClient).get({
206
- url: '/clusters/{cluster_id}/fleets',
207
- ...options
208
- });
189
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
209
190
  }
210
191
  /**
211
192
  * Create a new fleet.
212
- * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
193
+ *
194
+ * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
213
195
  *
214
196
  * This endpoint is available to administrators of the organization only.
215
197
  *
216
198
  */
217
199
  static createFleet(options) {
218
- return (options.client ?? _heyApiClient).post({
200
+ return (options.client ?? client).post({
219
201
  url: '/clusters/{cluster_id}/fleets',
220
202
  ...options,
221
203
  headers: {
222
204
  'Content-Type': 'application/json',
223
- ...options?.headers
205
+ ...options.headers
224
206
  }
225
207
  });
226
208
  }
227
209
  /**
228
210
  * Permanently delete fleet.
229
- * This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Connected Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
211
+ *
212
+ * This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
230
213
  *
231
214
  * This endpoint is available to administrators of the organization only.
232
215
  *
233
216
  */
234
217
  static deleteFleet(options) {
235
- return (options.client ?? _heyApiClient).delete({
236
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
237
- ...options
238
- });
218
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
239
219
  }
240
220
  /**
241
221
  * Get fleet information.
242
- * Returns fleet details. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
222
+ *
223
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
243
224
  *
244
225
  * This endpoint is available to all users in the organization.
245
226
  *
246
227
  */
247
228
  static getFleet(options) {
248
- return (options.client ?? _heyApiClient).get({
249
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
250
- ...options
251
- });
229
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
252
230
  }
253
231
  /**
254
232
  * Update fleet information.
255
- * This endpoint allows you to update fleet details.
256
233
  *
257
- * Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Connected Fleet until the end of the billing period, set the status to `cancelling`.
234
+ * This endpoint allows you to update fleet details.
258
235
  *
259
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
236
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
260
237
  *
261
238
  * This endpoint is available to administrators of the organization only.
262
239
  *
263
240
  */
264
241
  static updateFleet(options) {
265
- return (options.client ?? _heyApiClient).put({
242
+ return (options.client ?? client).put({
266
243
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
267
244
  ...options,
268
245
  headers: {
269
246
  'Content-Type': 'application/json',
270
- ...options?.headers
247
+ ...options.headers
271
248
  }
272
249
  });
273
250
  }
274
251
  /**
275
252
  * Query Kubernetes cluster API
253
+ *
276
254
  * An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
277
255
  */
278
256
  static queryCluster(options) {
279
- return (options.client ?? _heyApiClient).get({
280
- url: '/clusters/{cluster_id}/query',
281
- ...options
282
- });
257
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
283
258
  }
284
259
  /**
285
260
  * List clusters.
286
- * Returns a list of clusters under the current organization, including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
261
+ *
262
+ * Returns a list of clusters under the current organization.
287
263
  *
288
264
  * This endpoint is available to all users in the organization.
289
265
  *
290
266
  */
291
267
  static listClusters(options) {
292
- return (options?.client ?? _heyApiClient).get({
293
- url: '/clusters',
294
- ...options
295
- });
268
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
296
269
  }
297
270
  /**
298
271
  * Create a new cluster.
272
+ *
299
273
  * Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
300
274
  *
301
275
  * This endpoint is available to administrators of the organization only.
302
276
  *
303
277
  */
304
278
  static createCluster(options) {
305
- return (options.client ?? _heyApiClient).post({
279
+ return (options.client ?? client).post({
306
280
  url: '/clusters',
307
281
  ...options,
308
282
  headers: {
309
283
  'Content-Type': 'application/json',
310
- ...options?.headers
284
+ ...options.headers
311
285
  }
312
286
  });
313
287
  }
314
288
  /**
315
289
  * Permanently delete cluster.
290
+ *
316
291
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
317
292
  *
293
+ * Deletion is synchronous: a `200` response means the cluster has been torn down (this can take some time for larger clusters). Deleting a cluster that does not exist or has already been deleted returns `404`.
294
+ *
318
295
  * This endpoint is available to administrators of the organization only.
319
296
  *
320
297
  */
321
298
  static deleteCluster(options) {
322
- return (options.client ?? _heyApiClient).delete({
323
- url: '/clusters/{cluster_id}',
324
- ...options
325
- });
299
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
326
300
  }
327
301
  /**
328
302
  * Get cluster information.
329
- * Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
303
+ *
304
+ * Returns cluster details.
330
305
  *
331
306
  * This endpoint is available to all users in the organization.
332
307
  *
333
308
  */
334
309
  static getCluster(options) {
335
- return (options.client ?? _heyApiClient).get({
336
- url: '/clusters/{cluster_id}',
337
- ...options
338
- });
310
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
339
311
  }
340
312
  /**
341
313
  * Update cluster information.
342
- * This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
314
+ *
315
+ * This endpoint allows you to update cluster details such as name, tier, and Kubernetes version. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
343
316
  *
344
317
  * This endpoint is available to administrators of the organization only.
345
318
  *
346
319
  */
347
320
  static updateCluster(options) {
348
- return (options.client ?? _heyApiClient).put({
321
+ return (options.client ?? client).put({
349
322
  url: '/clusters/{cluster_id}',
350
323
  ...options,
351
324
  headers: {
352
325
  'Content-Type': 'application/json',
353
- ...options?.headers
326
+ ...options.headers
354
327
  }
355
328
  });
356
329
  }
357
330
  /**
358
331
  * Node join information for the cluster
359
- * Returns the join information for the cluster. This information is used to add a self-managed cluster to the CFKE cluster. This endpoint is available to only admins of the organization.
332
+ *
333
+ * Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
360
334
  *
361
335
  */
362
336
  static getJoinInformation(options) {
363
- return (options.client ?? _heyApiClient).post({
364
- url: '/clusters/{cluster_id}/join_information',
365
- ...options
366
- });
337
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
367
338
  }
368
339
  }
369
340
  export class InvitesService {
370
341
  /**
371
342
  * List invites.
372
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
343
+ *
344
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
373
345
  *
374
346
  */
375
347
  static listInvites(options) {
376
- return (options?.client ?? _heyApiClient).get({
377
- url: '/invites',
378
- ...options
379
- });
348
+ return (options?.client ?? client).get({ url: '/invites', ...options });
380
349
  }
381
350
  /**
382
351
  * Create a new invite.
352
+ *
383
353
  * Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
384
354
  *
385
355
  */
386
356
  static createInvite(options) {
387
- return (options.client ?? _heyApiClient).post({
357
+ return (options.client ?? client).post({
388
358
  url: '/invites',
389
359
  ...options,
390
360
  headers: {
391
361
  'Content-Type': 'application/json',
392
- ...options?.headers
362
+ ...options.headers
393
363
  }
394
364
  });
395
365
  }
396
366
  /**
397
367
  * Get invite information.
398
- * Returns invite details.
368
+ *
369
+ * Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
399
370
  *
400
371
  */
401
372
  static getInvite(options) {
402
- return (options.client ?? _heyApiClient).get({
403
- url: '/invites/{code}',
404
- ...options
405
- });
373
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
406
374
  }
407
375
  /**
408
376
  * Permanently delete invite.
377
+ *
409
378
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
410
379
  *
411
380
  */
412
381
  static deleteInvite(options) {
413
- return (options.client ?? _heyApiClient).delete({
414
- url: '/invites/{email}',
415
- ...options
416
- });
382
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
417
383
  }
418
384
  }
419
385
  export class ChartsMarketplaceService {
420
386
  /**
421
387
  * List chart listings available in the marketplace.
388
+ *
422
389
  * Returns a list of available charts in the marketplace.
423
390
  *
424
391
  * This endpoint is available to all users in the organization.
425
392
  *
426
393
  */
427
394
  static listMarketplaceCharts(options) {
428
- return (options?.client ?? _heyApiClient).get({
429
- url: '/marketplace',
430
- ...options
431
- });
395
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
432
396
  }
433
397
  /**
434
- * Get chart listing details.
435
- * Returns details of the chart listing.
398
+ * Get chart files for a specific version channel.
399
+ *
400
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
401
+ *
402
+ * Version channels use patterns like "1.31.x-cfke.x" to match the latest patch version, or "1.x.x-cfke.x" to match the latest minor version.
436
403
  *
437
404
  * This endpoint is available to all users in the organization.
438
405
  *
439
406
  */
440
- static getMarketplaceChart(options) {
441
- return (options.client ?? _heyApiClient).get({
442
- url: '/marketplace/{listing_id}',
443
- ...options
407
+ static getMarketplaceChartFiles(options) {
408
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
409
+ }
410
+ }
411
+ export class McpService {
412
+ /**
413
+ * MCP endpoint
414
+ *
415
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
416
+ */
417
+ static postMcp(options) {
418
+ return (options.client ?? client).post({
419
+ url: '/mcp',
420
+ ...options,
421
+ headers: {
422
+ 'Content-Type': 'application/json',
423
+ ...options.headers
424
+ }
444
425
  });
445
426
  }
446
427
  }
447
428
  export class OrganizationService {
448
429
  /**
449
430
  * Get organization information.
431
+ *
450
432
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
451
433
  *
452
434
  * This endpoint is available to all users in the organization.
453
435
  *
454
436
  */
455
437
  static getOrganization(options) {
456
- return (options?.client ?? _heyApiClient).get({
457
- url: '/organization',
458
- ...options
459
- });
438
+ return (options?.client ?? client).get({ url: '/organization', ...options });
460
439
  }
461
440
  /**
462
441
  * Create a new organization / Cloudfleet account signup.
442
+ *
463
443
  * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
464
444
  *
465
445
  */
466
446
  static createOrganization(options) {
467
- return (options.client ?? _heyApiClient).post({
447
+ return (options.client ?? client).post({
468
448
  url: '/organization',
469
449
  ...options,
470
450
  headers: {
471
451
  'Content-Type': 'application/json',
472
- ...options?.headers
452
+ ...options.headers
453
+ }
454
+ });
455
+ }
456
+ }
457
+ export class RegistryService {
458
+ /**
459
+ * List repositories
460
+ *
461
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
462
+ *
463
+ */
464
+ static listRepositories(options) {
465
+ return (options?.client ?? client).get({ url: '/registry', ...options });
466
+ }
467
+ /**
468
+ * List tags for a repository
469
+ *
470
+ * Returns a list of tags for a specific repository, including size and metadata for each tag. This endpoint is available to all users in the organization.
471
+ *
472
+ */
473
+ static listTags(options) {
474
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
475
+ }
476
+ /**
477
+ * Delete tag
478
+ *
479
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
480
+ *
481
+ */
482
+ static deleteTag(options) {
483
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
484
+ }
485
+ /**
486
+ * Get tag details
487
+ *
488
+ * Returns detailed information for a specific tag in a repository, including manifest details, size, and URI. This endpoint is available to all users in the organization.
489
+ *
490
+ */
491
+ static getTag(options) {
492
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
493
+ }
494
+ }
495
+ export class TicketsService {
496
+ /**
497
+ * List tickets for the current organization.
498
+ *
499
+ * Returns all tickets belonging to the caller's organization, newest first.
500
+ *
501
+ */
502
+ static listTickets(options) {
503
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
504
+ }
505
+ /**
506
+ * Create a new support ticket.
507
+ *
508
+ * Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
509
+ *
510
+ */
511
+ static createTicket(options) {
512
+ return (options.client ?? client).post({
513
+ ...formDataBodySerializer,
514
+ url: '/tickets',
515
+ ...options,
516
+ headers: {
517
+ 'Content-Type': null,
518
+ ...options.headers
519
+ }
520
+ });
521
+ }
522
+ /**
523
+ * Close a ticket (soft close).
524
+ *
525
+ * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
526
+ *
527
+ */
528
+ static closeTicket(options) {
529
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
530
+ }
531
+ /**
532
+ * Get a ticket and its messages.
533
+ */
534
+ static getTicket(options) {
535
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
536
+ }
537
+ /**
538
+ * Append a customer reply to a ticket.
539
+ *
540
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
541
+ *
542
+ */
543
+ static replyTicket(options) {
544
+ return (options.client ?? client).post({
545
+ ...formDataBodySerializer,
546
+ url: '/tickets/{ticket_id}/messages',
547
+ ...options,
548
+ headers: {
549
+ 'Content-Type': null,
550
+ ...options.headers
473
551
  }
474
552
  });
475
553
  }
554
+ /**
555
+ * Download a ticket attachment.
556
+ */
557
+ static getTicketAttachment(options) {
558
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
559
+ }
476
560
  }
477
561
  export class TokensService {
478
562
  /**
479
563
  * List access tokens in organization.
564
+ *
480
565
  * This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
481
566
  *
482
567
  */
483
568
  static listTokens(options) {
484
- return (options?.client ?? _heyApiClient).get({
485
- url: '/tokens',
486
- ...options
487
- });
569
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
488
570
  }
489
571
  /**
490
572
  * Create a new access token.
573
+ *
491
574
  * This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
492
575
  *
493
576
  * This endpoint is available to administrators of the organization only.
494
577
  *
495
578
  */
496
579
  static createToken(options) {
497
- return (options.client ?? _heyApiClient).post({
580
+ return (options.client ?? client).post({
498
581
  url: '/tokens',
499
582
  ...options,
500
583
  headers: {
501
584
  'Content-Type': 'application/json',
502
- ...options?.headers
585
+ ...options.headers
503
586
  }
504
587
  });
505
588
  }
506
589
  /**
507
590
  * Permanently delete access token.
591
+ *
508
592
  * This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
509
593
  *
510
594
  */
511
595
  static deleteToken(options) {
512
- return (options.client ?? _heyApiClient).delete({
513
- url: '/tokens/{token_id}',
514
- ...options
515
- });
596
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
516
597
  }
517
598
  /**
518
599
  * Get access token information.
600
+ *
519
601
  * This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
520
602
  *
521
603
  */
522
604
  static getToken(options) {
523
- return (options.client ?? _heyApiClient).get({
524
- url: '/tokens/{token_id}',
525
- ...options
526
- });
605
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
527
606
  }
528
607
  /**
529
608
  * Update access token information.
609
+ *
530
610
  * This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
531
611
  *
532
612
  * This endpoint is available to administrators of the organization only.
533
613
  *
534
614
  */
535
615
  static updateToken(options) {
536
- return (options.client ?? _heyApiClient).put({
616
+ return (options.client ?? client).put({
537
617
  url: '/tokens/{token_id}',
538
618
  ...options,
539
619
  headers: {
540
620
  'Content-Type': 'application/json',
541
- ...options?.headers
621
+ ...options.headers
542
622
  }
543
623
  });
544
624
  }
545
625
  /**
546
626
  * Regenerate access token secret key.
627
+ *
547
628
  * Generates a new access token secret. Old secret will not be valid anymore.
548
629
  */
549
630
  static regenerateToken(options) {
550
- return (options.client ?? _heyApiClient).put({
551
- url: '/tokens/{token_id}/secret',
552
- ...options
553
- });
631
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
554
632
  }
555
633
  }
556
634
  export class UsersService {
@@ -558,75 +636,68 @@ export class UsersService {
558
636
  * Get a list of organizations the user belongs to. Used during authentication process.
559
637
  */
560
638
  static listUserOrganizations(options) {
561
- return (options.client ?? _heyApiClient).get({
562
- url: '/users/organizations/{email}',
563
- ...options
564
- });
639
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
565
640
  }
566
641
  /**
567
642
  * List users in organization.
643
+ *
568
644
  * Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
569
645
  *
570
646
  * This endpoint is available to all users in the organization.
571
647
  *
572
648
  */
573
649
  static listUsers(options) {
574
- return (options?.client ?? _heyApiClient).get({
575
- url: '/users',
576
- ...options
577
- });
650
+ return (options?.client ?? client).get({ url: '/users', ...options });
578
651
  }
579
652
  /**
580
653
  * Create a new user.
654
+ *
581
655
  * Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
582
656
  *
583
657
  */
584
658
  static createUser(options) {
585
- return (options.client ?? _heyApiClient).post({
659
+ return (options.client ?? client).post({
586
660
  url: '/users',
587
661
  ...options,
588
662
  headers: {
589
663
  'Content-Type': 'application/json',
590
- ...options?.headers
664
+ ...options.headers
591
665
  }
592
666
  });
593
667
  }
594
668
  /**
595
669
  * Delete user by id.
670
+ *
596
671
  * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
597
672
  *
598
673
  */
599
674
  static deleteUser(options) {
600
- return (options.client ?? _heyApiClient).delete({
601
- url: '/users/{user_id}',
602
- ...options
603
- });
675
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
604
676
  }
605
677
  /**
606
678
  * Get user profile information by id.
679
+ *
607
680
  * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
608
681
  *
609
682
  * This endpoint is available to all users in the organization.
610
683
  *
611
684
  */
612
685
  static getUser(options) {
613
- return (options.client ?? _heyApiClient).get({
614
- url: '/users/{user_id}',
615
- ...options
616
- });
686
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
617
687
  }
618
688
  /**
619
689
  * Update user profile information.
690
+ *
620
691
  * Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
621
692
  *
622
693
  */
623
694
  static updateUser(options) {
624
- return (options.client ?? _heyApiClient).put({
695
+ return (options.client ?? client).put({
625
696
  url: '/users/{user_id}',
626
697
  ...options,
627
698
  headers: {
628
699
  'Content-Type': 'application/json',
629
- ...options?.headers
700
+ ...options.headers
630
701
  }
631
702
  });
632
703
  }