@cloudfleet/sdk 0.0.1-d8d23ea → 0.0.1-d940b00

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 (93) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1149 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1165 -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 +8 -7
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js +6 -4
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  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.d.ts → utils.gen.d.ts} +15 -23
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/{utils.js → utils.gen.js} +63 -119
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +3 -3
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +1 -3
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/{auth.js → auth.gen.js} +2 -1
  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.js → bodySerializer.gen.js} +6 -2
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/{params.js → params.gen.js} +20 -7
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  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.d.ts → types.gen.d.ts} +16 -16
  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 +1523 -570
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2939 -739
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +158 -36
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +242 -173
  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 +1384 -394
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3627 -3604
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1283 -1096
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -6
  73. package/dist/client/client.d.ts +0 -3
  74. package/dist/client/client.d.ts.map +0 -1
  75. package/dist/client/client.js +0 -146
  76. package/dist/client/client.js.map +0 -1
  77. package/dist/client/types.d.ts.map +0 -1
  78. package/dist/client/types.js +0 -2
  79. package/dist/client/types.js.map +0 -1
  80. package/dist/client/utils.d.ts.map +0 -1
  81. package/dist/client/utils.js.map +0 -1
  82. package/dist/core/auth.d.ts.map +0 -1
  83. package/dist/core/auth.js.map +0 -1
  84. package/dist/core/bodySerializer.d.ts +0 -18
  85. package/dist/core/bodySerializer.d.ts.map +0 -1
  86. package/dist/core/bodySerializer.js.map +0 -1
  87. package/dist/core/params.d.ts.map +0 -1
  88. package/dist/core/params.js.map +0 -1
  89. package/dist/core/pathSerializer.d.ts.map +0 -1
  90. package/dist/core/pathSerializer.js.map +0 -1
  91. package/dist/core/types.d.ts.map +0 -1
  92. package/dist/core/types.js +0 -2
  93. package/dist/core/types.js.map +0 -1
package/dist/sdk.gen.js CHANGED
@@ -1,90 +1,78 @@
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: {
@@ -95,22 +83,21 @@ export class BillingService {
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: {
@@ -123,26 +110,25 @@ 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: {
@@ -153,39 +139,36 @@ export class ClustersService {
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: {
@@ -196,26 +179,25 @@ export class ClustersService {
196
179
  }
197
180
  /**
198
181
  * List fleets.
182
+ *
199
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.
193
+ *
212
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: {
@@ -226,35 +208,30 @@ export class ClustersService {
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 Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) 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.
222
+ *
242
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 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
236
  * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
260
237
  *
@@ -262,7 +239,7 @@ export class ClustersService {
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: {
@@ -273,36 +250,33 @@ export class ClustersService {
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: {
@@ -313,39 +287,36 @@ export class ClustersService {
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
  *
318
293
  * This endpoint is available to administrators of the organization only.
319
294
  *
320
295
  */
321
296
  static deleteCluster(options) {
322
- return (options.client ?? _heyApiClient).delete({
323
- url: '/clusters/{cluster_id}',
324
- ...options
325
- });
297
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
326
298
  }
327
299
  /**
328
300
  * 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.
301
+ *
302
+ * Returns cluster details.
330
303
  *
331
304
  * This endpoint is available to all users in the organization.
332
305
  *
333
306
  */
334
307
  static getCluster(options) {
335
- return (options.client ?? _heyApiClient).get({
336
- url: '/clusters/{cluster_id}',
337
- ...options
338
- });
308
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
339
309
  }
340
310
  /**
341
311
  * 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.
312
+ *
313
+ * 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
314
  *
344
315
  * This endpoint is available to administrators of the organization only.
345
316
  *
346
317
  */
347
318
  static updateCluster(options) {
348
- return (options.client ?? _heyApiClient).put({
319
+ return (options.client ?? client).put({
349
320
  url: '/clusters/{cluster_id}',
350
321
  ...options,
351
322
  headers: {
@@ -356,35 +327,32 @@ export class ClustersService {
356
327
  }
357
328
  /**
358
329
  * Node join information for the cluster
330
+ *
359
331
  * 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
332
  *
361
333
  */
362
334
  static getJoinInformation(options) {
363
- return (options.client ?? _heyApiClient).post({
364
- url: '/clusters/{cluster_id}/join_information',
365
- ...options
366
- });
335
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
367
336
  }
368
337
  }
369
338
  export class InvitesService {
370
339
  /**
371
340
  * List invites.
372
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
341
+ *
342
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
373
343
  *
374
344
  */
375
345
  static listInvites(options) {
376
- return (options?.client ?? _heyApiClient).get({
377
- url: '/invites',
378
- ...options
379
- });
346
+ return (options?.client ?? client).get({ url: '/invites', ...options });
380
347
  }
381
348
  /**
382
349
  * Create a new invite.
350
+ *
383
351
  * 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
352
  *
385
353
  */
386
354
  static createInvite(options) {
387
- return (options.client ?? _heyApiClient).post({
355
+ return (options.client ?? client).post({
388
356
  url: '/invites',
389
357
  ...options,
390
358
  headers: {
@@ -395,76 +363,86 @@ export class InvitesService {
395
363
  }
396
364
  /**
397
365
  * Get invite information.
398
- * Returns invite details.
366
+ *
367
+ * 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
368
  *
400
369
  */
401
370
  static getInvite(options) {
402
- return (options.client ?? _heyApiClient).get({
403
- url: '/invites/{code}',
404
- ...options
405
- });
371
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
406
372
  }
407
373
  /**
408
374
  * Permanently delete invite.
375
+ *
409
376
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
410
377
  *
411
378
  */
412
379
  static deleteInvite(options) {
413
- return (options.client ?? _heyApiClient).delete({
414
- url: '/invites/{email}',
415
- ...options
416
- });
380
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
417
381
  }
418
382
  }
419
383
  export class ChartsMarketplaceService {
420
384
  /**
421
385
  * List chart listings available in the marketplace.
386
+ *
422
387
  * Returns a list of available charts in the marketplace.
423
388
  *
424
389
  * This endpoint is available to all users in the organization.
425
390
  *
426
391
  */
427
392
  static listMarketplaceCharts(options) {
428
- return (options?.client ?? _heyApiClient).get({
429
- url: '/marketplace',
430
- ...options
431
- });
393
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
432
394
  }
433
395
  /**
434
- * Get chart listing details.
435
- * Returns details of the chart listing.
396
+ * Get chart files for a specific version channel.
397
+ *
398
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
399
+ *
400
+ * 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
401
  *
437
402
  * This endpoint is available to all users in the organization.
438
403
  *
439
404
  */
440
- static getMarketplaceChart(options) {
441
- return (options.client ?? _heyApiClient).get({
442
- url: '/marketplace/{listing_id}',
443
- ...options
405
+ static getMarketplaceChartFiles(options) {
406
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
407
+ }
408
+ }
409
+ export class McpService {
410
+ /**
411
+ * MCP endpoint
412
+ *
413
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
414
+ */
415
+ static postMcp(options) {
416
+ return (options.client ?? client).post({
417
+ url: '/mcp',
418
+ ...options,
419
+ headers: {
420
+ 'Content-Type': 'application/json',
421
+ ...options.headers
422
+ }
444
423
  });
445
424
  }
446
425
  }
447
426
  export class OrganizationService {
448
427
  /**
449
428
  * Get organization information.
429
+ *
450
430
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
451
431
  *
452
432
  * This endpoint is available to all users in the organization.
453
433
  *
454
434
  */
455
435
  static getOrganization(options) {
456
- return (options?.client ?? _heyApiClient).get({
457
- url: '/organization',
458
- ...options
459
- });
436
+ return (options?.client ?? client).get({ url: '/organization', ...options });
460
437
  }
461
438
  /**
462
439
  * Create a new organization / Cloudfleet account signup.
440
+ *
463
441
  * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
464
442
  *
465
443
  */
466
444
  static createOrganization(options) {
467
- return (options.client ?? _heyApiClient).post({
445
+ return (options.client ?? client).post({
468
446
  url: '/organization',
469
447
  ...options,
470
448
  headers: {
@@ -474,27 +452,130 @@ export class OrganizationService {
474
452
  });
475
453
  }
476
454
  }
455
+ export class RegistryService {
456
+ /**
457
+ * List repositories
458
+ *
459
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
460
+ *
461
+ */
462
+ static listRepositories(options) {
463
+ return (options?.client ?? client).get({ url: '/registry', ...options });
464
+ }
465
+ /**
466
+ * List tags for a repository
467
+ *
468
+ * 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.
469
+ *
470
+ */
471
+ static listTags(options) {
472
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
473
+ }
474
+ /**
475
+ * Delete tag
476
+ *
477
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
478
+ *
479
+ */
480
+ static deleteTag(options) {
481
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
482
+ }
483
+ /**
484
+ * Get tag details
485
+ *
486
+ * 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.
487
+ *
488
+ */
489
+ static getTag(options) {
490
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
491
+ }
492
+ }
493
+ export class TicketsService {
494
+ /**
495
+ * List tickets for the current organization.
496
+ *
497
+ * Returns all tickets belonging to the caller's organization, newest first.
498
+ *
499
+ */
500
+ static listTickets(options) {
501
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
502
+ }
503
+ /**
504
+ * Create a new support ticket.
505
+ *
506
+ * 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).
507
+ *
508
+ */
509
+ static createTicket(options) {
510
+ return (options.client ?? client).post({
511
+ ...formDataBodySerializer,
512
+ url: '/tickets',
513
+ ...options,
514
+ headers: {
515
+ 'Content-Type': null,
516
+ ...options.headers
517
+ }
518
+ });
519
+ }
520
+ /**
521
+ * Close a ticket (soft close).
522
+ *
523
+ * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
524
+ *
525
+ */
526
+ static closeTicket(options) {
527
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
528
+ }
529
+ /**
530
+ * Get a ticket and its messages.
531
+ */
532
+ static getTicket(options) {
533
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
534
+ }
535
+ /**
536
+ * Append a customer reply to a ticket.
537
+ *
538
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
539
+ *
540
+ */
541
+ static replyTicket(options) {
542
+ return (options.client ?? client).post({
543
+ ...formDataBodySerializer,
544
+ url: '/tickets/{ticket_id}/messages',
545
+ ...options,
546
+ headers: {
547
+ 'Content-Type': null,
548
+ ...options.headers
549
+ }
550
+ });
551
+ }
552
+ /**
553
+ * Download a ticket attachment.
554
+ */
555
+ static getTicketAttachment(options) {
556
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
557
+ }
558
+ }
477
559
  export class TokensService {
478
560
  /**
479
561
  * List access tokens in organization.
562
+ *
480
563
  * 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
564
  *
482
565
  */
483
566
  static listTokens(options) {
484
- return (options?.client ?? _heyApiClient).get({
485
- url: '/tokens',
486
- ...options
487
- });
567
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
488
568
  }
489
569
  /**
490
570
  * Create a new access token.
571
+ *
491
572
  * 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
573
  *
493
574
  * This endpoint is available to administrators of the organization only.
494
575
  *
495
576
  */
496
577
  static createToken(options) {
497
- return (options.client ?? _heyApiClient).post({
578
+ return (options.client ?? client).post({
498
579
  url: '/tokens',
499
580
  ...options,
500
581
  headers: {
@@ -505,35 +586,32 @@ export class TokensService {
505
586
  }
506
587
  /**
507
588
  * Permanently delete access token.
589
+ *
508
590
  * 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
591
  *
510
592
  */
511
593
  static deleteToken(options) {
512
- return (options.client ?? _heyApiClient).delete({
513
- url: '/tokens/{token_id}',
514
- ...options
515
- });
594
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
516
595
  }
517
596
  /**
518
597
  * Get access token information.
598
+ *
519
599
  * 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
600
  *
521
601
  */
522
602
  static getToken(options) {
523
- return (options.client ?? _heyApiClient).get({
524
- url: '/tokens/{token_id}',
525
- ...options
526
- });
603
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
527
604
  }
528
605
  /**
529
606
  * Update access token information.
607
+ *
530
608
  * 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
609
  *
532
610
  * This endpoint is available to administrators of the organization only.
533
611
  *
534
612
  */
535
613
  static updateToken(options) {
536
- return (options.client ?? _heyApiClient).put({
614
+ return (options.client ?? client).put({
537
615
  url: '/tokens/{token_id}',
538
616
  ...options,
539
617
  headers: {
@@ -544,13 +622,11 @@ export class TokensService {
544
622
  }
545
623
  /**
546
624
  * Regenerate access token secret key.
625
+ *
547
626
  * Generates a new access token secret. Old secret will not be valid anymore.
548
627
  */
549
628
  static regenerateToken(options) {
550
- return (options.client ?? _heyApiClient).put({
551
- url: '/tokens/{token_id}/secret',
552
- ...options
553
- });
629
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
554
630
  }
555
631
  }
556
632
  export class UsersService {
@@ -558,31 +634,27 @@ export class UsersService {
558
634
  * Get a list of organizations the user belongs to. Used during authentication process.
559
635
  */
560
636
  static listUserOrganizations(options) {
561
- return (options.client ?? _heyApiClient).get({
562
- url: '/users/organizations/{email}',
563
- ...options
564
- });
637
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
565
638
  }
566
639
  /**
567
640
  * List users in organization.
641
+ *
568
642
  * 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
643
  *
570
644
  * This endpoint is available to all users in the organization.
571
645
  *
572
646
  */
573
647
  static listUsers(options) {
574
- return (options?.client ?? _heyApiClient).get({
575
- url: '/users',
576
- ...options
577
- });
648
+ return (options?.client ?? client).get({ url: '/users', ...options });
578
649
  }
579
650
  /**
580
651
  * Create a new user.
652
+ *
581
653
  * 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
654
  *
583
655
  */
584
656
  static createUser(options) {
585
- return (options.client ?? _heyApiClient).post({
657
+ return (options.client ?? client).post({
586
658
  url: '/users',
587
659
  ...options,
588
660
  headers: {
@@ -593,35 +665,32 @@ export class UsersService {
593
665
  }
594
666
  /**
595
667
  * Delete user by id.
668
+ *
596
669
  * 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
670
  *
598
671
  */
599
672
  static deleteUser(options) {
600
- return (options.client ?? _heyApiClient).delete({
601
- url: '/users/{user_id}',
602
- ...options
603
- });
673
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
604
674
  }
605
675
  /**
606
676
  * Get user profile information by id.
677
+ *
607
678
  * 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
679
  *
609
680
  * This endpoint is available to all users in the organization.
610
681
  *
611
682
  */
612
683
  static getUser(options) {
613
- return (options.client ?? _heyApiClient).get({
614
- url: '/users/{user_id}',
615
- ...options
616
- });
684
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
617
685
  }
618
686
  /**
619
687
  * Update user profile information.
688
+ *
620
689
  * 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
690
  *
622
691
  */
623
692
  static updateUser(options) {
624
- return (options.client ?? _heyApiClient).put({
693
+ return (options.client ?? client).put({
625
694
  url: '/users/{user_id}',
626
695
  ...options,
627
696
  headers: {