@cloudfleet/sdk 0.0.1-b9e1348 → 0.0.1-bbca6e3

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 (87) 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/index.d.ts +3 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/schemas.gen.d.ts +1601 -626
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +2875 -694
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +263 -88
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +361 -189
  68. package/dist/sdk.gen.js.map +1 -1
  69. package/dist/services/kubernetes/api.d.ts +196 -0
  70. package/dist/services/kubernetes/api.d.ts.map +1 -0
  71. package/dist/services/kubernetes/api.js +140 -0
  72. package/dist/services/kubernetes/api.js.map +1 -0
  73. package/dist/services/kubernetes/index.d.ts +44 -0
  74. package/dist/services/kubernetes/index.d.ts.map +1 -0
  75. package/dist/services/kubernetes/index.js +68 -0
  76. package/dist/services/kubernetes/index.js.map +1 -0
  77. package/dist/services/kubernetes/types.d.ts +1335 -0
  78. package/dist/services/kubernetes/types.d.ts.map +1 -0
  79. package/dist/services/kubernetes/types.js +2 -0
  80. package/dist/services/kubernetes/types.js.map +1 -0
  81. package/dist/types.gen.d.ts +1498 -408
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +3667 -2121
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1542 -794
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/sdk.gen.js CHANGED
@@ -1,429 +1,634 @@
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
81
+ }
82
+ });
83
+ }
84
+ /**
85
+ * Get applied promotional credits
86
+ *
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.
88
+ *
89
+ */
90
+ static getCredits(options) {
91
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
92
+ }
93
+ /**
94
+ * Redeem promotional credits code.
95
+ *
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.
97
+ *
98
+ */
99
+ static redeemCredits(options) {
100
+ return (options.client ?? client).post({
101
+ url: '/billing/credits',
102
+ ...options,
103
+ headers: {
104
+ 'Content-Type': 'application/json',
105
+ ...options.headers
93
106
  }
94
107
  });
95
108
  }
96
109
  }
97
110
  export class ClustersService {
111
+ /**
112
+ * List charts.
113
+ *
114
+ * Returns a list of charts in the cluster.
115
+ *
116
+ * This endpoint is available to all users in the organization.
117
+ *
118
+ */
119
+ static listCharts(options) {
120
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
121
+ }
122
+ /**
123
+ * Create a new chart.
124
+ *
125
+ * Create a new chart deployment.
126
+ *
127
+ * This endpoint is available to administrators of the organization only.
128
+ *
129
+ */
130
+ static createChart(options) {
131
+ return (options.client ?? client).post({
132
+ url: '/clusters/{cluster_id}/charts',
133
+ ...options,
134
+ headers: {
135
+ 'Content-Type': 'application/json',
136
+ ...options.headers
137
+ }
138
+ });
139
+ }
140
+ /**
141
+ * Permanently delete the chart deployment from the cluster.
142
+ *
143
+ * This endpoint will permanently delete chart. This operation cannot be undone.
144
+ *
145
+ * This endpoint is available to administrators of the organization only.
146
+ *
147
+ */
148
+ static deleteChart(options) {
149
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
150
+ }
151
+ /**
152
+ * Get chart information.
153
+ *
154
+ * Returns the details of the chart deployment.
155
+ *
156
+ * This endpoint is available to all users in the organization.
157
+ *
158
+ */
159
+ static getChart(options) {
160
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
161
+ }
162
+ /**
163
+ * Update chart information.
164
+ *
165
+ * This endpoint allows you to update the values of a chart deployment.
166
+ *
167
+ * This endpoint is available to administrators of the organization only.
168
+ *
169
+ */
170
+ static updateChart(options) {
171
+ return (options.client ?? client).put({
172
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
173
+ ...options,
174
+ headers: {
175
+ 'Content-Type': 'application/json',
176
+ ...options.headers
177
+ }
178
+ });
179
+ }
98
180
  /**
99
181
  * List fleets.
100
- * 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.
101
184
  *
102
185
  * This endpoint is available to all users in the organization.
103
186
  *
104
187
  */
105
188
  static listFleets(options) {
106
- return (options.client ?? _heyApiClient).get({
107
- url: '/clusters/{cluster_id}/fleets',
108
- ...options
109
- });
189
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
110
190
  }
111
191
  /**
112
192
  * Create a new fleet.
113
- * 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.
114
195
  *
115
196
  * This endpoint is available to administrators of the organization only.
116
197
  *
117
198
  */
118
199
  static createFleet(options) {
119
- return (options.client ?? _heyApiClient).post({
200
+ return (options.client ?? client).post({
120
201
  url: '/clusters/{cluster_id}/fleets',
121
202
  ...options,
122
203
  headers: {
123
204
  'Content-Type': 'application/json',
124
- ...options?.headers
205
+ ...options.headers
125
206
  }
126
207
  });
127
208
  }
128
209
  /**
129
210
  * Permanently delete fleet.
130
- * 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.
131
213
  *
132
214
  * This endpoint is available to administrators of the organization only.
133
215
  *
134
216
  */
135
217
  static deleteFleet(options) {
136
- return (options.client ?? _heyApiClient).delete({
137
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
138
- ...options
139
- });
218
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
140
219
  }
141
220
  /**
142
221
  * Get fleet information.
143
- * 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.
144
224
  *
145
225
  * This endpoint is available to all users in the organization.
146
226
  *
147
227
  */
148
228
  static getFleet(options) {
149
- return (options.client ?? _heyApiClient).get({
150
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
151
- ...options
152
- });
229
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
153
230
  }
154
231
  /**
155
232
  * Update fleet information.
156
- * This endpoint allows you to update fleet details.
157
233
  *
158
- * 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.
159
235
  *
160
- * 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.
161
237
  *
162
238
  * This endpoint is available to administrators of the organization only.
163
239
  *
164
240
  */
165
241
  static updateFleet(options) {
166
- return (options.client ?? _heyApiClient).put({
242
+ return (options.client ?? client).put({
167
243
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
168
244
  ...options,
169
245
  headers: {
170
246
  'Content-Type': 'application/json',
171
- ...options?.headers
247
+ ...options.headers
172
248
  }
173
249
  });
174
250
  }
175
251
  /**
176
252
  * Query Kubernetes cluster API
253
+ *
177
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.
178
255
  */
179
256
  static queryCluster(options) {
180
- return (options.client ?? _heyApiClient).get({
181
- url: '/clusters/{cluster_id}/query',
182
- ...options
183
- });
257
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
184
258
  }
185
259
  /**
186
260
  * List clusters.
187
- * 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.
188
263
  *
189
264
  * This endpoint is available to all users in the organization.
190
265
  *
191
266
  */
192
267
  static listClusters(options) {
193
- return (options?.client ?? _heyApiClient).get({
194
- url: '/clusters',
195
- ...options
196
- });
268
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
197
269
  }
198
270
  /**
199
271
  * Create a new cluster.
272
+ *
200
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.
201
274
  *
202
275
  * This endpoint is available to administrators of the organization only.
203
276
  *
204
277
  */
205
278
  static createCluster(options) {
206
- return (options.client ?? _heyApiClient).post({
279
+ return (options.client ?? client).post({
207
280
  url: '/clusters',
208
281
  ...options,
209
282
  headers: {
210
283
  'Content-Type': 'application/json',
211
- ...options?.headers
284
+ ...options.headers
212
285
  }
213
286
  });
214
287
  }
215
288
  /**
216
289
  * Permanently delete cluster.
290
+ *
217
291
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
218
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
+ *
219
295
  * This endpoint is available to administrators of the organization only.
220
296
  *
221
297
  */
222
298
  static deleteCluster(options) {
223
- return (options.client ?? _heyApiClient).delete({
224
- url: '/clusters/{cluster_id}',
225
- ...options
226
- });
299
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
227
300
  }
228
301
  /**
229
302
  * Get cluster information.
230
- * 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.
231
305
  *
232
306
  * This endpoint is available to all users in the organization.
233
307
  *
234
308
  */
235
309
  static getCluster(options) {
236
- return (options.client ?? _heyApiClient).get({
237
- url: '/clusters/{cluster_id}',
238
- ...options
239
- });
310
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
240
311
  }
241
312
  /**
242
313
  * Update cluster information.
243
- * 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.
244
316
  *
245
317
  * This endpoint is available to administrators of the organization only.
246
318
  *
247
319
  */
248
320
  static updateCluster(options) {
249
- return (options.client ?? _heyApiClient).put({
321
+ return (options.client ?? client).put({
250
322
  url: '/clusters/{cluster_id}',
251
323
  ...options,
252
324
  headers: {
253
325
  'Content-Type': 'application/json',
254
- ...options?.headers
326
+ ...options.headers
255
327
  }
256
328
  });
257
329
  }
258
330
  /**
259
331
  * Node join information for the cluster
260
- * 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.
261
334
  *
262
335
  */
263
336
  static getJoinInformation(options) {
264
- return (options.client ?? _heyApiClient).post({
265
- url: '/clusters/{cluster_id}/join_information',
266
- ...options
267
- });
337
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
268
338
  }
269
339
  }
270
340
  export class InvitesService {
271
341
  /**
272
342
  * List invites.
273
- * 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.
274
345
  *
275
346
  */
276
347
  static listInvites(options) {
277
- return (options?.client ?? _heyApiClient).get({
278
- url: '/invites',
279
- ...options
280
- });
348
+ return (options?.client ?? client).get({ url: '/invites', ...options });
281
349
  }
282
350
  /**
283
351
  * Create a new invite.
284
- * Invite a new user to your CloudFlett 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.
352
+ *
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.
285
354
  *
286
355
  */
287
356
  static createInvite(options) {
288
- return (options.client ?? _heyApiClient).post({
357
+ return (options.client ?? client).post({
289
358
  url: '/invites',
290
359
  ...options,
291
360
  headers: {
292
361
  'Content-Type': 'application/json',
293
- ...options?.headers
362
+ ...options.headers
294
363
  }
295
364
  });
296
365
  }
297
366
  /**
298
367
  * Get invite information.
299
- * 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.
300
370
  *
301
371
  */
302
372
  static getInvite(options) {
303
- return (options.client ?? _heyApiClient).get({
304
- url: '/invites/{code}',
305
- ...options
306
- });
373
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
307
374
  }
308
375
  /**
309
376
  * Permanently delete invite.
377
+ *
310
378
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
311
379
  *
312
380
  */
313
381
  static deleteInvite(options) {
314
- return (options.client ?? _heyApiClient).delete({
315
- url: '/invites/{email}',
316
- ...options
382
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
383
+ }
384
+ }
385
+ export class ChartsMarketplaceService {
386
+ /**
387
+ * List chart listings available in the marketplace.
388
+ *
389
+ * Returns a list of available charts in the marketplace.
390
+ *
391
+ * This endpoint is available to all users in the organization.
392
+ *
393
+ */
394
+ static listMarketplaceCharts(options) {
395
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
396
+ }
397
+ /**
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.
403
+ *
404
+ * This endpoint is available to all users in the organization.
405
+ *
406
+ */
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
+ }
317
425
  });
318
426
  }
319
427
  }
320
428
  export class OrganizationService {
321
429
  /**
322
430
  * Get organization information.
431
+ *
323
432
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
324
433
  *
325
434
  * This endpoint is available to all users in the organization.
326
435
  *
327
436
  */
328
437
  static getOrganization(options) {
329
- return (options?.client ?? _heyApiClient).get({
330
- url: '/organization',
331
- ...options
332
- });
438
+ return (options?.client ?? client).get({ url: '/organization', ...options });
333
439
  }
334
440
  /**
335
441
  * Create a new organization / Cloudfleet account signup.
442
+ *
336
443
  * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
337
444
  *
338
445
  */
339
446
  static createOrganization(options) {
340
- return (options.client ?? _heyApiClient).post({
447
+ return (options.client ?? client).post({
341
448
  url: '/organization',
342
449
  ...options,
343
450
  headers: {
344
451
  'Content-Type': 'application/json',
345
- ...options?.headers
452
+ ...options.headers
346
453
  }
347
454
  });
348
455
  }
349
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
551
+ }
552
+ });
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
+ }
560
+ }
350
561
  export class TokensService {
351
562
  /**
352
563
  * List access tokens in organization.
564
+ *
353
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.
354
566
  *
355
567
  */
356
568
  static listTokens(options) {
357
- return (options?.client ?? _heyApiClient).get({
358
- url: '/tokens',
359
- ...options
360
- });
569
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
361
570
  }
362
571
  /**
363
572
  * Create a new access token.
573
+ *
364
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.
365
575
  *
366
576
  * This endpoint is available to administrators of the organization only.
367
577
  *
368
578
  */
369
579
  static createToken(options) {
370
- return (options.client ?? _heyApiClient).post({
580
+ return (options.client ?? client).post({
371
581
  url: '/tokens',
372
582
  ...options,
373
583
  headers: {
374
584
  'Content-Type': 'application/json',
375
- ...options?.headers
585
+ ...options.headers
376
586
  }
377
587
  });
378
588
  }
379
589
  /**
380
590
  * Permanently delete access token.
591
+ *
381
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.
382
593
  *
383
594
  */
384
595
  static deleteToken(options) {
385
- return (options.client ?? _heyApiClient).delete({
386
- url: '/tokens/{token_id}',
387
- ...options
388
- });
596
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
389
597
  }
390
598
  /**
391
599
  * Get access token information.
600
+ *
392
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.
393
602
  *
394
603
  */
395
604
  static getToken(options) {
396
- return (options.client ?? _heyApiClient).get({
397
- url: '/tokens/{token_id}',
398
- ...options
399
- });
605
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
400
606
  }
401
607
  /**
402
608
  * Update access token information.
609
+ *
403
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.
404
611
  *
405
612
  * This endpoint is available to administrators of the organization only.
406
613
  *
407
614
  */
408
615
  static updateToken(options) {
409
- return (options.client ?? _heyApiClient).put({
616
+ return (options.client ?? client).put({
410
617
  url: '/tokens/{token_id}',
411
618
  ...options,
412
619
  headers: {
413
620
  'Content-Type': 'application/json',
414
- ...options?.headers
621
+ ...options.headers
415
622
  }
416
623
  });
417
624
  }
418
625
  /**
419
626
  * Regenerate access token secret key.
627
+ *
420
628
  * Generates a new access token secret. Old secret will not be valid anymore.
421
629
  */
422
630
  static regenerateToken(options) {
423
- return (options.client ?? _heyApiClient).put({
424
- url: '/tokens/{token_id}/secret',
425
- ...options
426
- });
631
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
427
632
  }
428
633
  }
429
634
  export class UsersService {
@@ -431,101 +636,68 @@ export class UsersService {
431
636
  * Get a list of organizations the user belongs to. Used during authentication process.
432
637
  */
433
638
  static listUserOrganizations(options) {
434
- return (options.client ?? _heyApiClient).get({
435
- url: '/users/organizations/{email}',
436
- ...options
437
- });
639
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
438
640
  }
439
641
  /**
440
642
  * List users in organization.
441
- * Returns a list of user details, including roles and cluster permissions. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
643
+ *
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.
442
645
  *
443
646
  * This endpoint is available to all users in the organization.
444
647
  *
445
648
  */
446
649
  static listUsers(options) {
447
- return (options?.client ?? _heyApiClient).get({
448
- url: '/users',
449
- ...options
450
- });
650
+ return (options?.client ?? client).get({ url: '/users', ...options });
451
651
  }
452
652
  /**
453
653
  * Create a new user.
454
- * Create a new user in your CloudFlett 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.
654
+ *
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.
455
656
  *
456
657
  */
457
658
  static createUser(options) {
458
- return (options.client ?? _heyApiClient).post({
659
+ return (options.client ?? client).post({
459
660
  url: '/users',
460
661
  ...options,
461
662
  headers: {
462
663
  'Content-Type': 'application/json',
463
- ...options?.headers
664
+ ...options.headers
464
665
  }
465
666
  });
466
667
  }
467
668
  /**
468
669
  * Delete user by id.
670
+ *
469
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.
470
672
  *
471
673
  */
472
674
  static deleteUser(options) {
473
- return (options.client ?? _heyApiClient).delete({
474
- url: '/users/{user_id}',
475
- ...options
476
- });
675
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
477
676
  }
478
677
  /**
479
678
  * Get user profile information by id.
480
- * Returns user details, including roles and cluster permissions. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
679
+ *
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.
481
681
  *
482
682
  * This endpoint is available to all users in the organization.
483
683
  *
484
684
  */
485
685
  static getUser(options) {
486
- return (options.client ?? _heyApiClient).get({
487
- url: '/users/{user_id}',
488
- ...options
489
- });
686
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
490
687
  }
491
688
  /**
492
689
  * Update user profile information.
690
+ *
493
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.
494
692
  *
495
693
  */
496
694
  static updateUser(options) {
497
- return (options.client ?? _heyApiClient).put({
695
+ return (options.client ?? client).put({
498
696
  url: '/users/{user_id}',
499
697
  ...options,
500
698
  headers: {
501
699
  'Content-Type': 'application/json',
502
- ...options?.headers
503
- }
504
- });
505
- }
506
- /**
507
- * Remove user from cluster.
508
- * Removes user from the cluster. The user will no longer be able to access the cluster and all its resources. This endpoint is available to administrators of the organization only.
509
- *
510
- */
511
- static deleteClusterPermissions(options) {
512
- return (options.client ?? _heyApiClient).delete({
513
- url: '/users/{user_id}/clusters/{cluster_id}',
514
- ...options
515
- });
516
- }
517
- /**
518
- * Add user to cluster and set permissions.
519
- * Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
520
- *
521
- */
522
- static setClusterPermissions(options) {
523
- return (options.client ?? _heyApiClient).put({
524
- url: '/users/{user_id}/clusters/{cluster_id}',
525
- ...options,
526
- headers: {
527
- 'Content-Type': 'application/json',
528
- ...options?.headers
700
+ ...options.headers
529
701
  }
530
702
  });
531
703
  }