@cloudfleet/sdk 0.0.1-96d5fec → 0.0.1-9a4447d

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 +1139 -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 +13 -0
  22. package/dist/client.gen.d.ts.map +1 -0
  23. package/dist/client.gen.js +4 -0
  24. package/dist/client.gen.js.map +1 -0
  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 +1676 -1084
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +2973 -1138
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +274 -144
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +362 -225
  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 +1517 -961
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +3775 -2857
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1582 -893
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/sdk.gen.js CHANGED
@@ -1,464 +1,634 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig } from '@hey-api/client-fetch';
3
- export const client = createClient(createConfig());
2
+ import { formDataBodySerializer } from './client';
3
+ import { client } from './client.gen';
4
4
  export class BillingService {
5
5
  /**
6
6
  * Get billing usage information.
7
- * Returns rolled-up usage information for the organization. Entries are grouped by task, and billing unit. 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.
8
9
  *
9
10
  */
10
11
  static getUsage(options) {
11
- return (options?.client ?? client).get({
12
- url: '/billing/usage',
13
- ...options
14
- });
12
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
15
13
  }
16
14
  /**
17
- * Get billing balance information.
18
- * 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.
19
18
  *
20
19
  */
21
- static getBalance(options) {
22
- return (options?.client ?? client).get({
23
- url: '/billing/balance',
24
- ...options
25
- });
20
+ static getPaymentMethodSecret(options) {
21
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
26
22
  }
27
23
  /**
28
- * Get organization payment method information.
29
- * 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.
30
27
  *
31
28
  */
32
- static getPaymentMethod(options) {
33
- return (options?.client ?? client).get({
34
- url: '/billing/payment-method',
35
- ...options
36
- });
29
+ static listPaymentMethods(options) {
30
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
37
31
  }
38
32
  /**
39
- * Get Stripe client secret.
40
- * 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.
41
36
  *
42
37
  */
43
- static getPaymentMethodSecret(options) {
44
- return (options?.client ?? client).put({
45
- url: '/billing/payment-method',
46
- ...options
47
- });
38
+ static setDefaultPaymentMethod(options) {
39
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
40
+ }
41
+ /**
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.
45
+ *
46
+ */
47
+ static deletePaymentMethod(options) {
48
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
48
49
  }
49
50
  /**
50
51
  * List issued invoices.
52
+ *
51
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.
52
54
  *
53
55
  */
54
56
  static listInvoices(options) {
55
- return (options?.client ?? client).get({
56
- url: '/billing/invoices',
57
- ...options
57
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
58
+ }
59
+ /**
60
+ * Get organization contact and billing address information.
61
+ *
62
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
63
+ *
64
+ */
65
+ static getContact(options) {
66
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
67
+ }
68
+ /**
69
+ * Update organization contact information and billing address.
70
+ *
71
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
72
+ *
73
+ */
74
+ static updateContact(options) {
75
+ return (options.client ?? client).put({
76
+ url: '/billing/contact',
77
+ ...options,
78
+ headers: {
79
+ 'Content-Type': 'application/json',
80
+ ...options.headers
81
+ }
58
82
  });
59
83
  }
60
84
  /**
61
- * Get invoice information.
62
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
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.
63
97
  *
64
98
  */
65
- static getInvoice(options) {
66
- return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
68
- ...options
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
106
+ }
69
107
  });
70
108
  }
71
109
  }
72
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
+ }
73
180
  /**
74
181
  * List fleets.
75
- * 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.
76
184
  *
77
185
  * This endpoint is available to all users in the organization.
78
186
  *
79
187
  */
80
188
  static listFleets(options) {
81
- return (options?.client ?? client).get({
82
- url: '/clusters/{cluster_id}/fleets',
83
- ...options
84
- });
189
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
85
190
  }
86
191
  /**
87
192
  * Create a new fleet.
88
- * 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.
89
195
  *
90
196
  * This endpoint is available to administrators of the organization only.
91
197
  *
92
198
  */
93
199
  static createFleet(options) {
94
- return (options?.client ?? client).post({
200
+ return (options.client ?? client).post({
95
201
  url: '/clusters/{cluster_id}/fleets',
96
202
  ...options,
97
203
  headers: {
98
204
  'Content-Type': 'application/json',
99
- ...options?.headers
205
+ ...options.headers
100
206
  }
101
207
  });
102
208
  }
103
209
  /**
104
210
  * Permanently delete fleet.
105
- * 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. 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.
106
213
  *
107
214
  * This endpoint is available to administrators of the organization only.
108
215
  *
109
216
  */
110
217
  static deleteFleet(options) {
111
- return (options?.client ?? client).delete({
112
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
113
- ...options
114
- });
218
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
115
219
  }
116
220
  /**
117
221
  * Get fleet information.
118
- * 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.
119
224
  *
120
225
  * This endpoint is available to all users in the organization.
121
226
  *
122
227
  */
123
228
  static getFleet(options) {
124
- return (options?.client ?? client).get({
125
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
126
- ...options
127
- });
229
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
128
230
  }
129
231
  /**
130
232
  * Update fleet information.
233
+ *
131
234
  * This endpoint allows you to update fleet details.
132
235
  *
133
- * 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`.
236
+ * 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`.
134
237
  *
135
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
238
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
136
239
  *
137
240
  * This endpoint is available to administrators of the organization only.
138
241
  *
139
242
  */
140
243
  static updateFleet(options) {
141
- return (options?.client ?? client).put({
244
+ return (options.client ?? client).put({
142
245
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
143
246
  ...options,
144
247
  headers: {
145
248
  'Content-Type': 'application/json',
146
- ...options?.headers
249
+ ...options.headers
147
250
  }
148
251
  });
149
252
  }
150
253
  /**
151
254
  * Query Kubernetes cluster API
255
+ *
152
256
  * 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.
153
257
  */
154
258
  static queryCluster(options) {
155
- return (options?.client ?? client).get({
156
- url: '/clusters/{cluster_id}/query',
157
- ...options
158
- });
259
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
159
260
  }
160
261
  /**
161
262
  * List clusters.
263
+ *
162
264
  * 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.
163
265
  *
164
266
  * This endpoint is available to all users in the organization.
165
267
  *
166
268
  */
167
269
  static listClusters(options) {
168
- return (options?.client ?? client).get({
169
- url: '/clusters',
170
- ...options
171
- });
270
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
172
271
  }
173
272
  /**
174
273
  * Create a new cluster.
274
+ *
175
275
  * 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.
176
276
  *
177
277
  * This endpoint is available to administrators of the organization only.
178
278
  *
179
279
  */
180
280
  static createCluster(options) {
181
- return (options?.client ?? client).post({
281
+ return (options.client ?? client).post({
182
282
  url: '/clusters',
183
283
  ...options,
184
284
  headers: {
185
285
  'Content-Type': 'application/json',
186
- ...options?.headers
286
+ ...options.headers
187
287
  }
188
288
  });
189
289
  }
190
290
  /**
191
291
  * Permanently delete cluster.
292
+ *
192
293
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
193
294
  *
194
295
  * This endpoint is available to administrators of the organization only.
195
296
  *
196
297
  */
197
298
  static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
199
- url: '/clusters/{cluster_id}',
200
- ...options
201
- });
299
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
202
300
  }
203
301
  /**
204
302
  * Get cluster information.
303
+ *
205
304
  * 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.
206
305
  *
207
306
  * This endpoint is available to all users in the organization.
208
307
  *
209
308
  */
210
309
  static getCluster(options) {
211
- return (options?.client ?? client).get({
212
- url: '/clusters/{cluster_id}',
213
- ...options
214
- });
310
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
215
311
  }
216
312
  /**
217
313
  * Update cluster information.
314
+ *
218
315
  * 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.
219
316
  *
220
317
  * This endpoint is available to administrators of the organization only.
221
318
  *
222
319
  */
223
320
  static updateCluster(options) {
224
- return (options?.client ?? client).put({
321
+ return (options.client ?? client).put({
225
322
  url: '/clusters/{cluster_id}',
226
323
  ...options,
227
324
  headers: {
228
325
  'Content-Type': 'application/json',
229
- ...options?.headers
326
+ ...options.headers
230
327
  }
231
328
  });
232
329
  }
233
330
  /**
234
331
  * Node join information for the cluster
235
- * 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.
236
- *
237
- */
238
- static getJoinInformation(options) {
239
- return (options?.client ?? client).post({
240
- url: '/clusters/{cluster_id}/join_information',
241
- ...options
242
- });
243
- }
244
- }
245
- export class InfrastructureService {
246
- /**
247
- * Search infrastructure catalog.
248
- * This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
249
- *
250
- * `GET /infrastructure?accelerator_name=A100&region=northamerica`
251
- *
252
- * Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
253
332
  *
254
- * **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
255
- *
256
- * For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
257
- *
258
- */
259
- static getInfrastructure(options) {
260
- return (options?.client ?? client).get({
261
- url: '/infrastructure',
262
- ...options
263
- });
264
- }
265
- /**
266
- * Infrastructure catalog facets.
267
- * This endpoint returns calculated search facets from the infrastructure catalog.
268
- *
269
- */
270
- static getFacets(options) {
271
- return (options?.client ?? client).get({
272
- url: '/infrastructure/facets',
273
- ...options
274
- });
275
- }
276
- /**
277
- * Available Cloudfleet regions and Kubernetes versions.
278
- * Available Cloudfleet regions and Kubernetes versions.
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.
279
334
  *
280
335
  */
281
- static getRegions(options) {
282
- return (options?.client ?? client).get({
283
- url: '/infrastructure/regions',
284
- ...options
285
- });
336
+ static getJoinInformation(options) {
337
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
286
338
  }
287
339
  }
288
340
  export class InvitesService {
289
341
  /**
290
342
  * List invites.
343
+ *
291
344
  * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
292
345
  *
293
346
  */
294
347
  static listInvites(options) {
295
- return (options?.client ?? client).get({
296
- url: '/invites',
297
- ...options
298
- });
348
+ return (options?.client ?? client).get({ url: '/invites', ...options });
299
349
  }
300
350
  /**
301
351
  * Create a new invite.
302
- * 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.
303
354
  *
304
355
  */
305
356
  static createInvite(options) {
306
- return (options?.client ?? client).post({
357
+ return (options.client ?? client).post({
307
358
  url: '/invites',
308
359
  ...options,
309
360
  headers: {
310
361
  'Content-Type': 'application/json',
311
- ...options?.headers
362
+ ...options.headers
312
363
  }
313
364
  });
314
365
  }
315
366
  /**
316
367
  * Get invite information.
368
+ *
317
369
  * Returns invite details.
318
370
  *
319
371
  */
320
372
  static getInvite(options) {
321
- return (options?.client ?? client).get({
322
- url: '/invites/{code}',
323
- ...options
324
- });
373
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
325
374
  }
326
375
  /**
327
376
  * Permanently delete invite.
377
+ *
328
378
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
329
379
  *
330
380
  */
331
381
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
333
- url: '/invites/{email}',
334
- ...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
+ }
335
425
  });
336
426
  }
337
427
  }
338
428
  export class OrganizationService {
339
429
  /**
340
430
  * Get organization information.
431
+ *
341
432
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
342
433
  *
343
434
  * This endpoint is available to all users in the organization.
344
435
  *
345
436
  */
346
437
  static getOrganization(options) {
347
- return (options?.client ?? client).get({
348
- url: '/organization',
349
- ...options
350
- });
438
+ return (options?.client ?? client).get({ url: '/organization', ...options });
351
439
  }
352
440
  /**
353
441
  * Create a new organization / Cloudfleet account signup.
354
- * This endpoint allows you to create a new Cloudfleet organization with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
442
+ *
443
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
355
444
  *
356
445
  */
357
446
  static createOrganization(options) {
358
- return (options?.client ?? client).post({
447
+ return (options.client ?? client).post({
359
448
  url: '/organization',
360
449
  ...options,
361
450
  headers: {
362
451
  'Content-Type': 'application/json',
363
- ...options?.headers
452
+ ...options.headers
364
453
  }
365
454
  });
366
455
  }
456
+ }
457
+ export class RegistryService {
367
458
  /**
368
- * Update organization information.
369
- * This endpoint allows you to update organization details with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
459
+ * List repositories
370
460
  *
371
- * This endpoint is available to administrators of the organization only.
461
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
372
462
  *
373
463
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
376
- url: '/organization',
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',
377
515
  ...options,
378
516
  headers: {
379
- 'Content-Type': 'application/json',
380
- ...options?.headers
517
+ 'Content-Type': null,
518
+ ...options.headers
381
519
  }
382
520
  });
383
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
+ }
384
560
  }
385
561
  export class TokensService {
386
562
  /**
387
563
  * List access tokens in organization.
564
+ *
388
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.
389
566
  *
390
567
  */
391
568
  static listTokens(options) {
392
- return (options?.client ?? client).get({
393
- url: '/tokens',
394
- ...options
395
- });
569
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
396
570
  }
397
571
  /**
398
572
  * Create a new access token.
573
+ *
399
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.
400
575
  *
401
576
  * This endpoint is available to administrators of the organization only.
402
577
  *
403
578
  */
404
579
  static createToken(options) {
405
- return (options?.client ?? client).post({
580
+ return (options.client ?? client).post({
406
581
  url: '/tokens',
407
582
  ...options,
408
583
  headers: {
409
584
  'Content-Type': 'application/json',
410
- ...options?.headers
585
+ ...options.headers
411
586
  }
412
587
  });
413
588
  }
414
589
  /**
415
590
  * Permanently delete access token.
591
+ *
416
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.
417
593
  *
418
594
  */
419
595
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
421
- url: '/tokens/{token_id}',
422
- ...options
423
- });
596
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
424
597
  }
425
598
  /**
426
599
  * Get access token information.
600
+ *
427
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.
428
602
  *
429
603
  */
430
604
  static getToken(options) {
431
- return (options?.client ?? client).get({
432
- url: '/tokens/{token_id}',
433
- ...options
434
- });
605
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
435
606
  }
436
607
  /**
437
608
  * Update access token information.
609
+ *
438
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.
439
611
  *
440
612
  * This endpoint is available to administrators of the organization only.
441
613
  *
442
614
  */
443
615
  static updateToken(options) {
444
- return (options?.client ?? client).put({
616
+ return (options.client ?? client).put({
445
617
  url: '/tokens/{token_id}',
446
618
  ...options,
447
619
  headers: {
448
620
  'Content-Type': 'application/json',
449
- ...options?.headers
621
+ ...options.headers
450
622
  }
451
623
  });
452
624
  }
453
625
  /**
454
626
  * Regenerate access token secret key.
627
+ *
455
628
  * Generates a new access token secret. Old secret will not be valid anymore.
456
629
  */
457
630
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
459
- url: '/tokens/{token_id}/secret',
460
- ...options
461
- });
631
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
462
632
  }
463
633
  }
464
634
  export class UsersService {
@@ -466,101 +636,68 @@ export class UsersService {
466
636
  * Get a list of organizations the user belongs to. Used during authentication process.
467
637
  */
468
638
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
470
- url: '/users/organizations/{email}',
471
- ...options
472
- });
639
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
473
640
  }
474
641
  /**
475
642
  * List users in organization.
476
- * 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.
477
645
  *
478
646
  * This endpoint is available to all users in the organization.
479
647
  *
480
648
  */
481
649
  static listUsers(options) {
482
- return (options?.client ?? client).get({
483
- url: '/users',
484
- ...options
485
- });
650
+ return (options?.client ?? client).get({ url: '/users', ...options });
486
651
  }
487
652
  /**
488
653
  * Create a new user.
489
- * 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.
490
656
  *
491
657
  */
492
658
  static createUser(options) {
493
- return (options?.client ?? client).post({
659
+ return (options.client ?? client).post({
494
660
  url: '/users',
495
661
  ...options,
496
662
  headers: {
497
663
  'Content-Type': 'application/json',
498
- ...options?.headers
664
+ ...options.headers
499
665
  }
500
666
  });
501
667
  }
502
668
  /**
503
669
  * Delete user by id.
670
+ *
504
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.
505
672
  *
506
673
  */
507
674
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
509
- url: '/users/{user_id}',
510
- ...options
511
- });
675
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
512
676
  }
513
677
  /**
514
678
  * Get user profile information by id.
515
- * 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.
516
681
  *
517
682
  * This endpoint is available to all users in the organization.
518
683
  *
519
684
  */
520
685
  static getUser(options) {
521
- return (options?.client ?? client).get({
522
- url: '/users/{user_id}',
523
- ...options
524
- });
686
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
525
687
  }
526
688
  /**
527
689
  * Update user profile information.
690
+ *
528
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.
529
692
  *
530
693
  */
531
694
  static updateUser(options) {
532
- return (options?.client ?? client).put({
695
+ return (options.client ?? client).put({
533
696
  url: '/users/{user_id}',
534
697
  ...options,
535
698
  headers: {
536
699
  'Content-Type': 'application/json',
537
- ...options?.headers
538
- }
539
- });
540
- }
541
- /**
542
- * Remove user from cluster.
543
- * 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.
544
- *
545
- */
546
- static deleteClusterPermissions(options) {
547
- return (options?.client ?? client).delete({
548
- url: '/users/{user_id}/clusters/{cluster_id}',
549
- ...options
550
- });
551
- }
552
- /**
553
- * Add user to cluster and set permissions.
554
- * Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
555
- *
556
- */
557
- static setClusterPermissions(options) {
558
- return (options?.client ?? client).put({
559
- url: '/users/{user_id}/clusters/{cluster_id}',
560
- ...options,
561
- headers: {
562
- 'Content-Type': 'application/json',
563
- ...options?.headers
700
+ ...options.headers
564
701
  }
565
702
  });
566
703
  }