@cloudfleet/sdk 0.0.1-22fefe4 → 0.0.1-253c998

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