@cloudfleet/sdk 0.0.1-638a41b → 0.0.1-64ee009

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