@cloudfleet/sdk 0.0.1-e0d026d → 0.0.1-e145400

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 (83) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +205 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +125 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +231 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +13 -0
  18. package/dist/client.gen.d.ts.map +1 -0
  19. package/dist/client.gen.js +6 -0
  20. package/dist/client.gen.js.map +1 -0
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +136 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/index.d.ts +3 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +3 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/schemas.gen.d.ts +878 -976
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +900 -1013
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +218 -142
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +300 -145
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +196 -0
  66. package/dist/services/kubernetes/api.d.ts.map +1 -0
  67. package/dist/services/kubernetes/api.js +140 -0
  68. package/dist/services/kubernetes/api.js.map +1 -0
  69. package/dist/services/kubernetes/index.d.ts +44 -0
  70. package/dist/services/kubernetes/index.d.ts.map +1 -0
  71. package/dist/services/kubernetes/index.js +68 -0
  72. package/dist/services/kubernetes/index.js.map +1 -0
  73. package/dist/services/kubernetes/types.d.ts +1335 -0
  74. package/dist/services/kubernetes/types.d.ts.map +1 -0
  75. package/dist/services/kubernetes/types.js +2 -0
  76. package/dist/services/kubernetes/types.js.map +1 -0
  77. package/dist/types.gen.d.ts +922 -953
  78. package/dist/types.gen.d.ts.map +1 -1
  79. package/dist/zod.gen.d.ts +1870 -2850
  80. package/dist/zod.gen.d.ts.map +1 -1
  81. package/dist/zod.gen.js +919 -869
  82. package/dist/zod.gen.js.map +1 -1
  83. package/package.json +8 -5
package/dist/sdk.gen.js CHANGED
@@ -1,10 +1,10 @@
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 { client } from './client.gen';
4
3
  export class BillingService {
5
4
  /**
6
5
  * 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.
6
+ *
7
+ * 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
8
  *
9
9
  */
10
10
  static getUsage(options) {
@@ -13,19 +13,9 @@ export class BillingService {
13
13
  ...options
14
14
  });
15
15
  }
16
- /**
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.
19
- *
20
- */
21
- static getBalance(options) {
22
- return (options?.client ?? client).get({
23
- url: '/billing/balance',
24
- ...options
25
- });
26
- }
27
16
  /**
28
17
  * Get organization payment method information.
18
+ *
29
19
  * 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.
30
20
  *
31
21
  */
@@ -37,6 +27,7 @@ export class BillingService {
37
27
  }
38
28
  /**
39
29
  * Get Stripe client secret.
30
+ *
40
31
  * 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.
41
32
  *
42
33
  */
@@ -48,6 +39,7 @@ export class BillingService {
48
39
  }
49
40
  /**
50
41
  * List issued invoices.
42
+ *
51
43
  * 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
44
  *
53
45
  */
@@ -58,107 +50,237 @@ export class BillingService {
58
50
  });
59
51
  }
60
52
  /**
61
- * Get invoice information.
62
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
53
+ * Get organization contact and billing address information.
54
+ *
55
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
56
+ *
57
+ */
58
+ static getContact(options) {
59
+ return (options?.client ?? client).get({
60
+ url: '/billing/contact',
61
+ ...options
62
+ });
63
+ }
64
+ /**
65
+ * Update organization contact information and billing address.
66
+ *
67
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
68
+ *
69
+ */
70
+ static updateContact(options) {
71
+ return (options.client ?? client).put({
72
+ url: '/billing/contact',
73
+ ...options,
74
+ headers: {
75
+ 'Content-Type': 'application/json',
76
+ ...options.headers
77
+ }
78
+ });
79
+ }
80
+ /**
81
+ * Get applied promotional credits
82
+ *
83
+ * 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
84
  *
64
85
  */
65
- static getInvoice(options) {
86
+ static getCredits(options) {
66
87
  return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
88
+ url: '/billing/credits',
68
89
  ...options
69
90
  });
70
91
  }
92
+ /**
93
+ * Redeem promotional credits code.
94
+ *
95
+ * 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.
96
+ *
97
+ */
98
+ static redeemCredits(options) {
99
+ return (options.client ?? client).post({
100
+ url: '/billing/credits',
101
+ ...options,
102
+ headers: {
103
+ 'Content-Type': 'application/json',
104
+ ...options.headers
105
+ }
106
+ });
107
+ }
71
108
  }
72
109
  export class ClustersService {
110
+ /**
111
+ * List charts.
112
+ *
113
+ * Returns a list of charts in the cluster.
114
+ *
115
+ * This endpoint is available to all users in the organization.
116
+ *
117
+ */
118
+ static listCharts(options) {
119
+ return (options.client ?? client).get({
120
+ url: '/clusters/{cluster_id}/charts',
121
+ ...options
122
+ });
123
+ }
124
+ /**
125
+ * Create a new chart.
126
+ *
127
+ * Create a new chart deployment.
128
+ *
129
+ * This endpoint is available to administrators of the organization only.
130
+ *
131
+ */
132
+ static createChart(options) {
133
+ return (options.client ?? client).post({
134
+ url: '/clusters/{cluster_id}/charts',
135
+ ...options,
136
+ headers: {
137
+ 'Content-Type': 'application/json',
138
+ ...options.headers
139
+ }
140
+ });
141
+ }
142
+ /**
143
+ * Permanently delete the chart deployment from the cluster.
144
+ *
145
+ * This endpoint will permanently delete chart. This operation cannot be undone.
146
+ *
147
+ * This endpoint is available to administrators of the organization only.
148
+ *
149
+ */
150
+ static deleteChart(options) {
151
+ return (options.client ?? client).delete({
152
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
153
+ ...options
154
+ });
155
+ }
156
+ /**
157
+ * Get chart information.
158
+ *
159
+ * Returns the details of the chart deployment.
160
+ *
161
+ * This endpoint is available to all users in the organization.
162
+ *
163
+ */
164
+ static getChart(options) {
165
+ return (options.client ?? client).get({
166
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
167
+ ...options
168
+ });
169
+ }
170
+ /**
171
+ * Update chart information.
172
+ *
173
+ * This endpoint allows you to update the values of a chart deployment.
174
+ *
175
+ * This endpoint is available to administrators of the organization only.
176
+ *
177
+ */
178
+ static updateChart(options) {
179
+ return (options.client ?? client).put({
180
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
181
+ ...options,
182
+ headers: {
183
+ 'Content-Type': 'application/json',
184
+ ...options.headers
185
+ }
186
+ });
187
+ }
73
188
  /**
74
189
  * 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.
190
+ *
191
+ * 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
192
  *
77
193
  * This endpoint is available to all users in the organization.
78
194
  *
79
195
  */
80
196
  static listFleets(options) {
81
- return (options?.client ?? client).get({
197
+ return (options.client ?? client).get({
82
198
  url: '/clusters/{cluster_id}/fleets',
83
199
  ...options
84
200
  });
85
201
  }
86
202
  /**
87
203
  * 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.
204
+ *
205
+ * 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
206
  *
90
207
  * This endpoint is available to administrators of the organization only.
91
208
  *
92
209
  */
93
210
  static createFleet(options) {
94
- return (options?.client ?? client).post({
211
+ return (options.client ?? client).post({
95
212
  url: '/clusters/{cluster_id}/fleets',
96
213
  ...options,
97
214
  headers: {
98
215
  'Content-Type': 'application/json',
99
- ...options?.headers
216
+ ...options.headers
100
217
  }
101
218
  });
102
219
  }
103
220
  /**
104
221
  * 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.
222
+ *
223
+ * 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
224
  *
107
225
  * This endpoint is available to administrators of the organization only.
108
226
  *
109
227
  */
110
228
  static deleteFleet(options) {
111
- return (options?.client ?? client).delete({
229
+ return (options.client ?? client).delete({
112
230
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
113
231
  ...options
114
232
  });
115
233
  }
116
234
  /**
117
235
  * 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.
236
+ *
237
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
119
238
  *
120
239
  * This endpoint is available to all users in the organization.
121
240
  *
122
241
  */
123
242
  static getFleet(options) {
124
- return (options?.client ?? client).get({
243
+ return (options.client ?? client).get({
125
244
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
126
245
  ...options
127
246
  });
128
247
  }
129
248
  /**
130
249
  * Update fleet information.
250
+ *
131
251
  * This endpoint allows you to update fleet details.
132
252
  *
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`.
253
+ * 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
254
  *
135
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
255
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
136
256
  *
137
257
  * This endpoint is available to administrators of the organization only.
138
258
  *
139
259
  */
140
260
  static updateFleet(options) {
141
- return (options?.client ?? client).put({
261
+ return (options.client ?? client).put({
142
262
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
143
263
  ...options,
144
264
  headers: {
145
265
  'Content-Type': 'application/json',
146
- ...options?.headers
266
+ ...options.headers
147
267
  }
148
268
  });
149
269
  }
150
270
  /**
151
271
  * Query Kubernetes cluster API
272
+ *
152
273
  * 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
274
  */
154
275
  static queryCluster(options) {
155
- return (options?.client ?? client).get({
276
+ return (options.client ?? client).get({
156
277
  url: '/clusters/{cluster_id}/query',
157
278
  ...options
158
279
  });
159
280
  }
160
281
  /**
161
282
  * List clusters.
283
+ *
162
284
  * 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
285
  *
164
286
  * This endpoint is available to all users in the organization.
@@ -172,122 +294,85 @@ export class ClustersService {
172
294
  }
173
295
  /**
174
296
  * Create a new cluster.
297
+ *
175
298
  * 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
299
  *
177
300
  * This endpoint is available to administrators of the organization only.
178
301
  *
179
302
  */
180
303
  static createCluster(options) {
181
- return (options?.client ?? client).post({
304
+ return (options.client ?? client).post({
182
305
  url: '/clusters',
183
306
  ...options,
184
307
  headers: {
185
308
  'Content-Type': 'application/json',
186
- ...options?.headers
309
+ ...options.headers
187
310
  }
188
311
  });
189
312
  }
190
313
  /**
191
314
  * Permanently delete cluster.
315
+ *
192
316
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
193
317
  *
194
318
  * This endpoint is available to administrators of the organization only.
195
319
  *
196
320
  */
197
321
  static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
322
+ return (options.client ?? client).delete({
199
323
  url: '/clusters/{cluster_id}',
200
324
  ...options
201
325
  });
202
326
  }
203
327
  /**
204
328
  * Get cluster information.
329
+ *
205
330
  * 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
331
  *
207
332
  * This endpoint is available to all users in the organization.
208
333
  *
209
334
  */
210
335
  static getCluster(options) {
211
- return (options?.client ?? client).get({
336
+ return (options.client ?? client).get({
212
337
  url: '/clusters/{cluster_id}',
213
338
  ...options
214
339
  });
215
340
  }
216
341
  /**
217
342
  * Update cluster information.
343
+ *
218
344
  * 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
345
  *
220
346
  * This endpoint is available to administrators of the organization only.
221
347
  *
222
348
  */
223
349
  static updateCluster(options) {
224
- return (options?.client ?? client).put({
350
+ return (options.client ?? client).put({
225
351
  url: '/clusters/{cluster_id}',
226
352
  ...options,
227
353
  headers: {
228
354
  'Content-Type': 'application/json',
229
- ...options?.headers
355
+ ...options.headers
230
356
  }
231
357
  });
232
358
  }
233
359
  /**
234
360
  * 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.
361
+ *
362
+ * 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.
236
363
  *
237
364
  */
238
365
  static getJoinInformation(options) {
239
- return (options?.client ?? client).post({
366
+ return (options.client ?? client).post({
240
367
  url: '/clusters/{cluster_id}/join_information',
241
368
  ...options
242
369
  });
243
370
  }
244
371
  }
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
- *
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.
279
- *
280
- */
281
- static getRegions(options) {
282
- return (options?.client ?? client).get({
283
- url: '/infrastructure/regions',
284
- ...options
285
- });
286
- }
287
- }
288
372
  export class InvitesService {
289
373
  /**
290
374
  * List invites.
375
+ *
291
376
  * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
292
377
  *
293
378
  */
@@ -299,45 +384,96 @@ export class InvitesService {
299
384
  }
300
385
  /**
301
386
  * 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.
387
+ *
388
+ * 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
389
  *
304
390
  */
305
391
  static createInvite(options) {
306
- return (options?.client ?? client).post({
392
+ return (options.client ?? client).post({
307
393
  url: '/invites',
308
394
  ...options,
309
395
  headers: {
310
396
  'Content-Type': 'application/json',
311
- ...options?.headers
397
+ ...options.headers
312
398
  }
313
399
  });
314
400
  }
315
401
  /**
316
402
  * Get invite information.
403
+ *
317
404
  * Returns invite details.
318
405
  *
319
406
  */
320
407
  static getInvite(options) {
321
- return (options?.client ?? client).get({
408
+ return (options.client ?? client).get({
322
409
  url: '/invites/{code}',
323
410
  ...options
324
411
  });
325
412
  }
326
413
  /**
327
414
  * Permanently delete invite.
415
+ *
328
416
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
329
417
  *
330
418
  */
331
419
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
420
+ return (options.client ?? client).delete({
333
421
  url: '/invites/{email}',
334
422
  ...options
335
423
  });
336
424
  }
337
425
  }
426
+ export class ChartsMarketplaceService {
427
+ /**
428
+ * List chart listings available in the marketplace.
429
+ *
430
+ * Returns a list of available charts in the marketplace.
431
+ *
432
+ * This endpoint is available to all users in the organization.
433
+ *
434
+ */
435
+ static listMarketplaceCharts(options) {
436
+ return (options?.client ?? client).get({
437
+ url: '/marketplace',
438
+ ...options
439
+ });
440
+ }
441
+ /**
442
+ * Get chart files for a specific version.
443
+ *
444
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for a specific chart version.
445
+ *
446
+ * This endpoint is available to all users in the organization.
447
+ *
448
+ */
449
+ static getMarketplaceChartFiles(options) {
450
+ return (options.client ?? client).get({
451
+ url: '/marketplace/{chart_name}/files/{version}',
452
+ ...options
453
+ });
454
+ }
455
+ }
456
+ export class McpService {
457
+ /**
458
+ * MCP endpoint
459
+ *
460
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
461
+ */
462
+ static postMcp(options) {
463
+ return (options.client ?? client).post({
464
+ url: '/mcp',
465
+ ...options,
466
+ headers: {
467
+ 'Content-Type': 'application/json',
468
+ ...options.headers
469
+ }
470
+ });
471
+ }
472
+ }
338
473
  export class OrganizationService {
339
474
  /**
340
475
  * Get organization information.
476
+ *
341
477
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
342
478
  *
343
479
  * This endpoint is available to all users in the organization.
@@ -351,40 +487,75 @@ export class OrganizationService {
351
487
  }
352
488
  /**
353
489
  * 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.
490
+ *
491
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
355
492
  *
356
493
  */
357
494
  static createOrganization(options) {
358
- return (options?.client ?? client).post({
495
+ return (options.client ?? client).post({
359
496
  url: '/organization',
360
497
  ...options,
361
498
  headers: {
362
499
  'Content-Type': 'application/json',
363
- ...options?.headers
500
+ ...options.headers
364
501
  }
365
502
  });
366
503
  }
504
+ }
505
+ export class RegistryService {
367
506
  /**
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.
507
+ * List repositories
370
508
  *
371
- * This endpoint is available to administrators of the organization only.
509
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
372
510
  *
373
511
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
376
- url: '/organization',
377
- ...options,
378
- headers: {
379
- 'Content-Type': 'application/json',
380
- ...options?.headers
381
- }
512
+ static listRepositories(options) {
513
+ return (options?.client ?? client).get({
514
+ url: '/registry',
515
+ ...options
516
+ });
517
+ }
518
+ /**
519
+ * List tags for a repository
520
+ *
521
+ * 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.
522
+ *
523
+ */
524
+ static listTags(options) {
525
+ return (options.client ?? client).get({
526
+ url: '/registry/{region}/{repository}',
527
+ ...options
528
+ });
529
+ }
530
+ /**
531
+ * Delete tag
532
+ *
533
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
534
+ *
535
+ */
536
+ static deleteTag(options) {
537
+ return (options.client ?? client).delete({
538
+ url: '/registry/{region}/{repository}/{tag}',
539
+ ...options
540
+ });
541
+ }
542
+ /**
543
+ * Get tag details
544
+ *
545
+ * 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.
546
+ *
547
+ */
548
+ static getTag(options) {
549
+ return (options.client ?? client).get({
550
+ url: '/registry/{region}/{repository}/{tag}',
551
+ ...options
382
552
  });
383
553
  }
384
554
  }
385
555
  export class TokensService {
386
556
  /**
387
557
  * List access tokens in organization.
558
+ *
388
559
  * 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
560
  *
390
561
  */
@@ -396,66 +567,71 @@ export class TokensService {
396
567
  }
397
568
  /**
398
569
  * Create a new access token.
570
+ *
399
571
  * 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
572
  *
401
573
  * This endpoint is available to administrators of the organization only.
402
574
  *
403
575
  */
404
576
  static createToken(options) {
405
- return (options?.client ?? client).post({
577
+ return (options.client ?? client).post({
406
578
  url: '/tokens',
407
579
  ...options,
408
580
  headers: {
409
581
  'Content-Type': 'application/json',
410
- ...options?.headers
582
+ ...options.headers
411
583
  }
412
584
  });
413
585
  }
414
586
  /**
415
587
  * Permanently delete access token.
588
+ *
416
589
  * 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
590
  *
418
591
  */
419
592
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
593
+ return (options.client ?? client).delete({
421
594
  url: '/tokens/{token_id}',
422
595
  ...options
423
596
  });
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({
605
+ return (options.client ?? client).get({
432
606
  url: '/tokens/{token_id}',
433
607
  ...options
434
608
  });
435
609
  }
436
610
  /**
437
611
  * Update access token information.
612
+ *
438
613
  * 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
614
  *
440
615
  * This endpoint is available to administrators of the organization only.
441
616
  *
442
617
  */
443
618
  static updateToken(options) {
444
- return (options?.client ?? client).put({
619
+ return (options.client ?? client).put({
445
620
  url: '/tokens/{token_id}',
446
621
  ...options,
447
622
  headers: {
448
623
  'Content-Type': 'application/json',
449
- ...options?.headers
624
+ ...options.headers
450
625
  }
451
626
  });
452
627
  }
453
628
  /**
454
629
  * Regenerate access token secret key.
630
+ *
455
631
  * Generates a new access token secret. Old secret will not be valid anymore.
456
632
  */
457
633
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
634
+ return (options.client ?? client).put({
459
635
  url: '/tokens/{token_id}/secret',
460
636
  ...options
461
637
  });
@@ -466,14 +642,15 @@ export class UsersService {
466
642
  * Get a list of organizations the user belongs to. Used during authentication process.
467
643
  */
468
644
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
645
+ return (options.client ?? client).get({
470
646
  url: '/users/organizations/{email}',
471
647
  ...options
472
648
  });
473
649
  }
474
650
  /**
475
651
  * 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.
652
+ *
653
+ * 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
654
  *
478
655
  * This endpoint is available to all users in the organization.
479
656
  *
@@ -486,81 +663,59 @@ export class UsersService {
486
663
  }
487
664
  /**
488
665
  * 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.
666
+ *
667
+ * 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
668
  *
491
669
  */
492
670
  static createUser(options) {
493
- return (options?.client ?? client).post({
671
+ return (options.client ?? client).post({
494
672
  url: '/users',
495
673
  ...options,
496
674
  headers: {
497
675
  'Content-Type': 'application/json',
498
- ...options?.headers
676
+ ...options.headers
499
677
  }
500
678
  });
501
679
  }
502
680
  /**
503
681
  * Delete user by id.
682
+ *
504
683
  * 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
684
  *
506
685
  */
507
686
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
687
+ return (options.client ?? client).delete({
509
688
  url: '/users/{user_id}',
510
689
  ...options
511
690
  });
512
691
  }
513
692
  /**
514
693
  * 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.
694
+ *
695
+ * 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
696
  *
517
697
  * This endpoint is available to all users in the organization.
518
698
  *
519
699
  */
520
700
  static getUser(options) {
521
- return (options?.client ?? client).get({
701
+ return (options.client ?? client).get({
522
702
  url: '/users/{user_id}',
523
703
  ...options
524
704
  });
525
705
  }
526
706
  /**
527
707
  * Update user profile information.
708
+ *
528
709
  * 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
710
  *
530
711
  */
531
712
  static updateUser(options) {
532
- return (options?.client ?? client).put({
713
+ return (options.client ?? client).put({
533
714
  url: '/users/{user_id}',
534
715
  ...options,
535
716
  headers: {
536
717
  '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
718
+ ...options.headers
564
719
  }
565
720
  });
566
721
  }