@cloudfleet/sdk 0.0.1-4ffe368 → 0.0.1-5753ad1

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 +619 -1028
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +640 -1081
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +191 -145
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +253 -148
  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 +682 -1035
  78. package/dist/types.gen.d.ts.map +1 -1
  79. package/dist/zod.gen.d.ts +1742 -2884
  80. package/dist/zod.gen.d.ts.map +1 -1
  81. package/dist/zod.gen.js +823 -900
  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 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.
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.
63
56
  *
64
57
  */
65
- static getInvoice(options) {
58
+ static getContact(options) {
66
59
  return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
60
+ url: '/billing/contact',
68
61
  ...options
69
62
  });
70
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.
84
+ *
85
+ */
86
+ static getCredits(options) {
87
+ return (options?.client ?? client).get({
88
+ url: '/billing/credits',
89
+ ...options
90
+ });
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,85 +384,120 @@ 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
  }
338
- export class OrganizationService {
426
+ export class ChartsMarketplaceService {
339
427
  /**
340
- * Get organization information.
341
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
428
+ * List chart listings available in the marketplace.
429
+ *
430
+ * Returns a list of available charts in the marketplace.
342
431
  *
343
432
  * This endpoint is available to all users in the organization.
344
433
  *
345
434
  */
346
- static getOrganization(options) {
435
+ static listMarketplaceCharts(options) {
347
436
  return (options?.client ?? client).get({
348
- url: '/organization',
437
+ url: '/marketplace',
349
438
  ...options
350
439
  });
351
440
  }
352
441
  /**
353
- * 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
+ * Get chart listing details.
443
+ *
444
+ * Returns details of the chart listing.
445
+ *
446
+ * This endpoint is available to all users in the organization.
355
447
  *
356
448
  */
357
- static createOrganization(options) {
358
- return (options?.client ?? client).post({
359
- url: '/organization',
449
+ static getMarketplaceChart(options) {
450
+ return (options.client ?? client).get({
451
+ url: '/marketplace/{listing_id}',
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',
360
465
  ...options,
361
466
  headers: {
362
467
  'Content-Type': 'application/json',
363
- ...options?.headers
468
+ ...options.headers
364
469
  }
365
470
  });
366
471
  }
472
+ }
473
+ export class OrganizationService {
367
474
  /**
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.
475
+ * Get organization information.
370
476
  *
371
- * This endpoint is available to administrators of the organization only.
477
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
478
+ *
479
+ * This endpoint is available to all users in the organization.
372
480
  *
373
481
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
482
+ static getOrganization(options) {
483
+ return (options?.client ?? client).get({
484
+ url: '/organization',
485
+ ...options
486
+ });
487
+ }
488
+ /**
489
+ * Create a new organization / Cloudfleet account signup.
490
+ *
491
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
492
+ *
493
+ */
494
+ static createOrganization(options) {
495
+ return (options.client ?? client).post({
376
496
  url: '/organization',
377
497
  ...options,
378
498
  headers: {
379
499
  'Content-Type': 'application/json',
380
- ...options?.headers
500
+ ...options.headers
381
501
  }
382
502
  });
383
503
  }
@@ -385,6 +505,7 @@ export class OrganizationService {
385
505
  export class TokensService {
386
506
  /**
387
507
  * List access tokens in organization.
508
+ *
388
509
  * 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
510
  *
390
511
  */
@@ -396,66 +517,71 @@ export class TokensService {
396
517
  }
397
518
  /**
398
519
  * Create a new access token.
520
+ *
399
521
  * 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
522
  *
401
523
  * This endpoint is available to administrators of the organization only.
402
524
  *
403
525
  */
404
526
  static createToken(options) {
405
- return (options?.client ?? client).post({
527
+ return (options.client ?? client).post({
406
528
  url: '/tokens',
407
529
  ...options,
408
530
  headers: {
409
531
  'Content-Type': 'application/json',
410
- ...options?.headers
532
+ ...options.headers
411
533
  }
412
534
  });
413
535
  }
414
536
  /**
415
537
  * Permanently delete access token.
538
+ *
416
539
  * 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
540
  *
418
541
  */
419
542
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
543
+ return (options.client ?? client).delete({
421
544
  url: '/tokens/{token_id}',
422
545
  ...options
423
546
  });
424
547
  }
425
548
  /**
426
549
  * Get access token information.
550
+ *
427
551
  * 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
552
  *
429
553
  */
430
554
  static getToken(options) {
431
- return (options?.client ?? client).get({
555
+ return (options.client ?? client).get({
432
556
  url: '/tokens/{token_id}',
433
557
  ...options
434
558
  });
435
559
  }
436
560
  /**
437
561
  * Update access token information.
562
+ *
438
563
  * 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
564
  *
440
565
  * This endpoint is available to administrators of the organization only.
441
566
  *
442
567
  */
443
568
  static updateToken(options) {
444
- return (options?.client ?? client).put({
569
+ return (options.client ?? client).put({
445
570
  url: '/tokens/{token_id}',
446
571
  ...options,
447
572
  headers: {
448
573
  'Content-Type': 'application/json',
449
- ...options?.headers
574
+ ...options.headers
450
575
  }
451
576
  });
452
577
  }
453
578
  /**
454
579
  * Regenerate access token secret key.
580
+ *
455
581
  * Generates a new access token secret. Old secret will not be valid anymore.
456
582
  */
457
583
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
584
+ return (options.client ?? client).put({
459
585
  url: '/tokens/{token_id}/secret',
460
586
  ...options
461
587
  });
@@ -466,14 +592,15 @@ export class UsersService {
466
592
  * Get a list of organizations the user belongs to. Used during authentication process.
467
593
  */
468
594
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
595
+ return (options.client ?? client).get({
470
596
  url: '/users/organizations/{email}',
471
597
  ...options
472
598
  });
473
599
  }
474
600
  /**
475
601
  * 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.
602
+ *
603
+ * 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
604
  *
478
605
  * This endpoint is available to all users in the organization.
479
606
  *
@@ -486,81 +613,59 @@ export class UsersService {
486
613
  }
487
614
  /**
488
615
  * 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.
616
+ *
617
+ * 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
618
  *
491
619
  */
492
620
  static createUser(options) {
493
- return (options?.client ?? client).post({
621
+ return (options.client ?? client).post({
494
622
  url: '/users',
495
623
  ...options,
496
624
  headers: {
497
625
  'Content-Type': 'application/json',
498
- ...options?.headers
626
+ ...options.headers
499
627
  }
500
628
  });
501
629
  }
502
630
  /**
503
631
  * Delete user by id.
632
+ *
504
633
  * 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
634
  *
506
635
  */
507
636
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
637
+ return (options.client ?? client).delete({
509
638
  url: '/users/{user_id}',
510
639
  ...options
511
640
  });
512
641
  }
513
642
  /**
514
643
  * 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.
644
+ *
645
+ * 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
646
  *
517
647
  * This endpoint is available to all users in the organization.
518
648
  *
519
649
  */
520
650
  static getUser(options) {
521
- return (options?.client ?? client).get({
651
+ return (options.client ?? client).get({
522
652
  url: '/users/{user_id}',
523
653
  ...options
524
654
  });
525
655
  }
526
656
  /**
527
657
  * Update user profile information.
658
+ *
528
659
  * 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
660
  *
530
661
  */
531
662
  static updateUser(options) {
532
- return (options?.client ?? client).put({
663
+ return (options.client ?? client).put({
533
664
  url: '/users/{user_id}',
534
665
  ...options,
535
666
  headers: {
536
667
  '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
668
+ ...options.headers
564
669
  }
565
670
  });
566
671
  }