@cloudfleet/sdk 0.0.1-4ffe368 → 0.0.1-5175d16

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 +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 +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 +1865 -1142
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +3124 -1162
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +278 -150
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +366 -231
  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 +1710 -963
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +3846 -2906
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1621 -931
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/sdk.gen.js CHANGED
@@ -1,464 +1,632 @@
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 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.
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.
63
88
  *
64
89
  */
65
- static getInvoice(options) {
66
- return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
68
- ...options
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
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. 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.
131
- * This endpoint allows you to update fleet details.
132
233
  *
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`.
234
+ * This endpoint allows you to update fleet details.
134
235
  *
135
- * 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.
136
237
  *
137
238
  * This endpoint is available to administrators of the organization only.
138
239
  *
139
240
  */
140
241
  static updateFleet(options) {
141
- return (options?.client ?? client).put({
242
+ return (options.client ?? client).put({
142
243
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
143
244
  ...options,
144
245
  headers: {
145
246
  'Content-Type': 'application/json',
146
- ...options?.headers
247
+ ...options.headers
147
248
  }
148
249
  });
149
250
  }
150
251
  /**
151
252
  * Query Kubernetes cluster API
253
+ *
152
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.
153
255
  */
154
256
  static queryCluster(options) {
155
- return (options?.client ?? client).get({
156
- url: '/clusters/{cluster_id}/query',
157
- ...options
158
- });
257
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
159
258
  }
160
259
  /**
161
260
  * List clusters.
162
- * 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.
163
263
  *
164
264
  * This endpoint is available to all users in the organization.
165
265
  *
166
266
  */
167
267
  static listClusters(options) {
168
- return (options?.client ?? client).get({
169
- url: '/clusters',
170
- ...options
171
- });
268
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
172
269
  }
173
270
  /**
174
271
  * Create a new cluster.
272
+ *
175
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.
176
274
  *
177
275
  * This endpoint is available to administrators of the organization only.
178
276
  *
179
277
  */
180
278
  static createCluster(options) {
181
- return (options?.client ?? client).post({
279
+ return (options.client ?? client).post({
182
280
  url: '/clusters',
183
281
  ...options,
184
282
  headers: {
185
283
  'Content-Type': 'application/json',
186
- ...options?.headers
284
+ ...options.headers
187
285
  }
188
286
  });
189
287
  }
190
288
  /**
191
289
  * Permanently delete cluster.
290
+ *
192
291
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
193
292
  *
194
293
  * This endpoint is available to administrators of the organization only.
195
294
  *
196
295
  */
197
296
  static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
199
- url: '/clusters/{cluster_id}',
200
- ...options
201
- });
297
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
202
298
  }
203
299
  /**
204
300
  * Get cluster information.
205
- * 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.
206
303
  *
207
304
  * This endpoint is available to all users in the organization.
208
305
  *
209
306
  */
210
307
  static getCluster(options) {
211
- return (options?.client ?? client).get({
212
- url: '/clusters/{cluster_id}',
213
- ...options
214
- });
308
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
215
309
  }
216
310
  /**
217
311
  * Update cluster information.
218
- * 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.
219
314
  *
220
315
  * This endpoint is available to administrators of the organization only.
221
316
  *
222
317
  */
223
318
  static updateCluster(options) {
224
- return (options?.client ?? client).put({
319
+ return (options.client ?? client).put({
225
320
  url: '/clusters/{cluster_id}',
226
321
  ...options,
227
322
  headers: {
228
323
  'Content-Type': 'application/json',
229
- ...options?.headers
324
+ ...options.headers
230
325
  }
231
326
  });
232
327
  }
233
328
  /**
234
329
  * 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
330
  *
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.
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.
268
332
  *
269
333
  */
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.
279
- *
280
- */
281
- static getRegions(options) {
282
- return (options?.client ?? client).get({
283
- url: '/infrastructure/regions',
284
- ...options
285
- });
334
+ static getJoinInformation(options) {
335
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
286
336
  }
287
337
  }
288
338
  export class InvitesService {
289
339
  /**
290
340
  * List invites.
291
- * 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.
292
343
  *
293
344
  */
294
345
  static listInvites(options) {
295
- return (options?.client ?? client).get({
296
- url: '/invites',
297
- ...options
298
- });
346
+ return (options?.client ?? client).get({ url: '/invites', ...options });
299
347
  }
300
348
  /**
301
349
  * 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.
350
+ *
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.
303
352
  *
304
353
  */
305
354
  static createInvite(options) {
306
- return (options?.client ?? client).post({
355
+ return (options.client ?? client).post({
307
356
  url: '/invites',
308
357
  ...options,
309
358
  headers: {
310
359
  'Content-Type': 'application/json',
311
- ...options?.headers
360
+ ...options.headers
312
361
  }
313
362
  });
314
363
  }
315
364
  /**
316
365
  * Get invite information.
317
- * 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.
318
368
  *
319
369
  */
320
370
  static getInvite(options) {
321
- return (options?.client ?? client).get({
322
- url: '/invites/{code}',
323
- ...options
324
- });
371
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
325
372
  }
326
373
  /**
327
374
  * Permanently delete invite.
375
+ *
328
376
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
329
377
  *
330
378
  */
331
379
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
333
- url: '/invites/{email}',
334
- ...options
380
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
381
+ }
382
+ }
383
+ export class ChartsMarketplaceService {
384
+ /**
385
+ * List chart listings available in the marketplace.
386
+ *
387
+ * Returns a list of available charts in the marketplace.
388
+ *
389
+ * This endpoint is available to all users in the organization.
390
+ *
391
+ */
392
+ static listMarketplaceCharts(options) {
393
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
394
+ }
395
+ /**
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.
401
+ *
402
+ * This endpoint is available to all users in the organization.
403
+ *
404
+ */
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
+ }
335
423
  });
336
424
  }
337
425
  }
338
426
  export class OrganizationService {
339
427
  /**
340
428
  * Get organization information.
429
+ *
341
430
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
342
431
  *
343
432
  * This endpoint is available to all users in the organization.
344
433
  *
345
434
  */
346
435
  static getOrganization(options) {
347
- return (options?.client ?? client).get({
348
- url: '/organization',
349
- ...options
350
- });
436
+ return (options?.client ?? client).get({ url: '/organization', ...options });
351
437
  }
352
438
  /**
353
439
  * 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.
440
+ *
441
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
355
442
  *
356
443
  */
357
444
  static createOrganization(options) {
358
- return (options?.client ?? client).post({
445
+ return (options.client ?? client).post({
359
446
  url: '/organization',
360
447
  ...options,
361
448
  headers: {
362
449
  'Content-Type': 'application/json',
363
- ...options?.headers
450
+ ...options.headers
364
451
  }
365
452
  });
366
453
  }
454
+ }
455
+ export class RegistryService {
367
456
  /**
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.
457
+ * List repositories
370
458
  *
371
- * This endpoint is available to administrators of the organization only.
459
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
372
460
  *
373
461
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
376
- url: '/organization',
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',
377
513
  ...options,
378
514
  headers: {
379
- 'Content-Type': 'application/json',
380
- ...options?.headers
515
+ 'Content-Type': null,
516
+ ...options.headers
381
517
  }
382
518
  });
383
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
+ }
384
558
  }
385
559
  export class TokensService {
386
560
  /**
387
561
  * List access tokens in organization.
562
+ *
388
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.
389
564
  *
390
565
  */
391
566
  static listTokens(options) {
392
- return (options?.client ?? client).get({
393
- url: '/tokens',
394
- ...options
395
- });
567
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
396
568
  }
397
569
  /**
398
570
  * Create a new access token.
571
+ *
399
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.
400
573
  *
401
574
  * This endpoint is available to administrators of the organization only.
402
575
  *
403
576
  */
404
577
  static createToken(options) {
405
- return (options?.client ?? client).post({
578
+ return (options.client ?? client).post({
406
579
  url: '/tokens',
407
580
  ...options,
408
581
  headers: {
409
582
  'Content-Type': 'application/json',
410
- ...options?.headers
583
+ ...options.headers
411
584
  }
412
585
  });
413
586
  }
414
587
  /**
415
588
  * Permanently delete access token.
589
+ *
416
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.
417
591
  *
418
592
  */
419
593
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
421
- url: '/tokens/{token_id}',
422
- ...options
423
- });
594
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
424
595
  }
425
596
  /**
426
597
  * Get access token information.
598
+ *
427
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.
428
600
  *
429
601
  */
430
602
  static getToken(options) {
431
- return (options?.client ?? client).get({
432
- url: '/tokens/{token_id}',
433
- ...options
434
- });
603
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
435
604
  }
436
605
  /**
437
606
  * Update access token information.
607
+ *
438
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.
439
609
  *
440
610
  * This endpoint is available to administrators of the organization only.
441
611
  *
442
612
  */
443
613
  static updateToken(options) {
444
- return (options?.client ?? client).put({
614
+ return (options.client ?? client).put({
445
615
  url: '/tokens/{token_id}',
446
616
  ...options,
447
617
  headers: {
448
618
  'Content-Type': 'application/json',
449
- ...options?.headers
619
+ ...options.headers
450
620
  }
451
621
  });
452
622
  }
453
623
  /**
454
624
  * Regenerate access token secret key.
625
+ *
455
626
  * Generates a new access token secret. Old secret will not be valid anymore.
456
627
  */
457
628
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
459
- url: '/tokens/{token_id}/secret',
460
- ...options
461
- });
629
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
462
630
  }
463
631
  }
464
632
  export class UsersService {
@@ -466,101 +634,68 @@ export class UsersService {
466
634
  * Get a list of organizations the user belongs to. Used during authentication process.
467
635
  */
468
636
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
470
- url: '/users/organizations/{email}',
471
- ...options
472
- });
637
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
473
638
  }
474
639
  /**
475
640
  * 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.
641
+ *
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.
477
643
  *
478
644
  * This endpoint is available to all users in the organization.
479
645
  *
480
646
  */
481
647
  static listUsers(options) {
482
- return (options?.client ?? client).get({
483
- url: '/users',
484
- ...options
485
- });
648
+ return (options?.client ?? client).get({ url: '/users', ...options });
486
649
  }
487
650
  /**
488
651
  * 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.
652
+ *
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.
490
654
  *
491
655
  */
492
656
  static createUser(options) {
493
- return (options?.client ?? client).post({
657
+ return (options.client ?? client).post({
494
658
  url: '/users',
495
659
  ...options,
496
660
  headers: {
497
661
  'Content-Type': 'application/json',
498
- ...options?.headers
662
+ ...options.headers
499
663
  }
500
664
  });
501
665
  }
502
666
  /**
503
667
  * Delete user by id.
668
+ *
504
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.
505
670
  *
506
671
  */
507
672
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
509
- url: '/users/{user_id}',
510
- ...options
511
- });
673
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
512
674
  }
513
675
  /**
514
676
  * 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.
677
+ *
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.
516
679
  *
517
680
  * This endpoint is available to all users in the organization.
518
681
  *
519
682
  */
520
683
  static getUser(options) {
521
- return (options?.client ?? client).get({
522
- url: '/users/{user_id}',
523
- ...options
524
- });
684
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
525
685
  }
526
686
  /**
527
687
  * Update user profile information.
688
+ *
528
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.
529
690
  *
530
691
  */
531
692
  static updateUser(options) {
532
- return (options?.client ?? client).put({
693
+ return (options.client ?? client).put({
533
694
  url: '/users/{user_id}',
534
695
  ...options,
535
696
  headers: {
536
697
  '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
698
+ ...options.headers
564
699
  }
565
700
  });
566
701
  }