@cloudfleet/sdk 0.0.1-e2d1408 → 0.0.1-e33372f

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 +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -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 +1570 -1109
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +2881 -1203
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +258 -142
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +342 -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 +1426 -997
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +3710 -2907
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1539 -914
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/sdk.gen.js CHANGED
@@ -1,464 +1,616 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig } from '@hey-api/client-fetch';
3
- export const client = createClient(createConfig());
2
+ import { formDataBodySerializer } from './client';
3
+ import { client } from './client.gen';
4
4
  export class BillingService {
5
5
  /**
6
6
  * Get billing usage information.
7
- * Returns aggregated usage information for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
8
7
  *
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.
8
+ * Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
19
9
  *
20
10
  */
21
- static getBalance(options) {
22
- return (options?.client ?? client).get({
23
- url: '/billing/balance',
24
- ...options
25
- });
11
+ static getUsage(options) {
12
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
26
13
  }
27
14
  /**
28
15
  * Get organization payment method information.
16
+ *
29
17
  * 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
18
  *
31
19
  */
32
20
  static getPaymentMethod(options) {
33
- return (options?.client ?? client).get({
34
- url: '/billing/payment-method',
35
- ...options
36
- });
21
+ return (options?.client ?? client).get({ url: '/billing/payment-method', ...options });
37
22
  }
38
23
  /**
39
24
  * Get Stripe client secret.
25
+ *
40
26
  * 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
27
  *
42
28
  */
43
29
  static getPaymentMethodSecret(options) {
44
- return (options?.client ?? client).put({
45
- url: '/billing/payment-method',
46
- ...options
47
- });
30
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
48
31
  }
49
32
  /**
50
33
  * List issued invoices.
34
+ *
51
35
  * 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
36
  *
53
37
  */
54
38
  static listInvoices(options) {
55
- return (options?.client ?? client).get({
56
- url: '/billing/invoices',
57
- ...options
39
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
40
+ }
41
+ /**
42
+ * Get organization contact and billing address information.
43
+ *
44
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
45
+ *
46
+ */
47
+ static getContact(options) {
48
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
49
+ }
50
+ /**
51
+ * Update organization contact information and billing address.
52
+ *
53
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
54
+ *
55
+ */
56
+ static updateContact(options) {
57
+ return (options.client ?? client).put({
58
+ url: '/billing/contact',
59
+ ...options,
60
+ headers: {
61
+ 'Content-Type': 'application/json',
62
+ ...options.headers
63
+ }
58
64
  });
59
65
  }
60
66
  /**
61
- * Get invoice information.
62
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
67
+ * Get applied promotional credits
68
+ *
69
+ * 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.
70
+ *
71
+ */
72
+ static getCredits(options) {
73
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
74
+ }
75
+ /**
76
+ * Redeem promotional credits code.
77
+ *
78
+ * 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
79
  *
64
80
  */
65
- static getInvoice(options) {
66
- return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
68
- ...options
81
+ static redeemCredits(options) {
82
+ return (options.client ?? client).post({
83
+ url: '/billing/credits',
84
+ ...options,
85
+ headers: {
86
+ 'Content-Type': 'application/json',
87
+ ...options.headers
88
+ }
69
89
  });
70
90
  }
71
91
  }
72
92
  export class ClustersService {
93
+ /**
94
+ * List charts.
95
+ *
96
+ * Returns a list of charts in the cluster.
97
+ *
98
+ * This endpoint is available to all users in the organization.
99
+ *
100
+ */
101
+ static listCharts(options) {
102
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
103
+ }
104
+ /**
105
+ * Create a new chart.
106
+ *
107
+ * Create a new chart deployment.
108
+ *
109
+ * This endpoint is available to administrators of the organization only.
110
+ *
111
+ */
112
+ static createChart(options) {
113
+ return (options.client ?? client).post({
114
+ url: '/clusters/{cluster_id}/charts',
115
+ ...options,
116
+ headers: {
117
+ 'Content-Type': 'application/json',
118
+ ...options.headers
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Permanently delete the chart deployment from the cluster.
124
+ *
125
+ * This endpoint will permanently delete chart. This operation cannot be undone.
126
+ *
127
+ * This endpoint is available to administrators of the organization only.
128
+ *
129
+ */
130
+ static deleteChart(options) {
131
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
132
+ }
133
+ /**
134
+ * Get chart information.
135
+ *
136
+ * Returns the details of the chart deployment.
137
+ *
138
+ * This endpoint is available to all users in the organization.
139
+ *
140
+ */
141
+ static getChart(options) {
142
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
143
+ }
144
+ /**
145
+ * Update chart information.
146
+ *
147
+ * This endpoint allows you to update the values of a chart deployment.
148
+ *
149
+ * This endpoint is available to administrators of the organization only.
150
+ *
151
+ */
152
+ static updateChart(options) {
153
+ return (options.client ?? client).put({
154
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
155
+ ...options,
156
+ headers: {
157
+ 'Content-Type': 'application/json',
158
+ ...options.headers
159
+ }
160
+ });
161
+ }
73
162
  /**
74
163
  * 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.
164
+ *
165
+ * 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
166
  *
77
167
  * This endpoint is available to all users in the organization.
78
168
  *
79
169
  */
80
170
  static listFleets(options) {
81
- return (options?.client ?? client).get({
82
- url: '/clusters/{cluster_id}/fleets',
83
- ...options
84
- });
171
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
85
172
  }
86
173
  /**
87
174
  * 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.
175
+ *
176
+ * 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
177
  *
90
178
  * This endpoint is available to administrators of the organization only.
91
179
  *
92
180
  */
93
181
  static createFleet(options) {
94
- return (options?.client ?? client).post({
182
+ return (options.client ?? client).post({
95
183
  url: '/clusters/{cluster_id}/fleets',
96
184
  ...options,
97
185
  headers: {
98
186
  'Content-Type': 'application/json',
99
- ...options?.headers
187
+ ...options.headers
100
188
  }
101
189
  });
102
190
  }
103
191
  /**
104
192
  * 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.
193
+ *
194
+ * 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
195
  *
107
196
  * This endpoint is available to administrators of the organization only.
108
197
  *
109
198
  */
110
199
  static deleteFleet(options) {
111
- return (options?.client ?? client).delete({
112
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
113
- ...options
114
- });
200
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
115
201
  }
116
202
  /**
117
203
  * 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.
204
+ *
205
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
119
206
  *
120
207
  * This endpoint is available to all users in the organization.
121
208
  *
122
209
  */
123
210
  static getFleet(options) {
124
- return (options?.client ?? client).get({
125
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
126
- ...options
127
- });
211
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
128
212
  }
129
213
  /**
130
214
  * Update fleet information.
215
+ *
131
216
  * This endpoint allows you to update fleet details.
132
217
  *
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`.
218
+ * 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
219
  *
135
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
220
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
136
221
  *
137
222
  * This endpoint is available to administrators of the organization only.
138
223
  *
139
224
  */
140
225
  static updateFleet(options) {
141
- return (options?.client ?? client).put({
226
+ return (options.client ?? client).put({
142
227
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
143
228
  ...options,
144
229
  headers: {
145
230
  'Content-Type': 'application/json',
146
- ...options?.headers
231
+ ...options.headers
147
232
  }
148
233
  });
149
234
  }
150
235
  /**
151
236
  * Query Kubernetes cluster API
237
+ *
152
238
  * 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
239
  */
154
240
  static queryCluster(options) {
155
- return (options?.client ?? client).get({
156
- url: '/clusters/{cluster_id}/query',
157
- ...options
158
- });
241
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
159
242
  }
160
243
  /**
161
244
  * List clusters.
245
+ *
162
246
  * 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
247
  *
164
248
  * This endpoint is available to all users in the organization.
165
249
  *
166
250
  */
167
251
  static listClusters(options) {
168
- return (options?.client ?? client).get({
169
- url: '/clusters',
170
- ...options
171
- });
252
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
172
253
  }
173
254
  /**
174
255
  * Create a new cluster.
256
+ *
175
257
  * 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
258
  *
177
259
  * This endpoint is available to administrators of the organization only.
178
260
  *
179
261
  */
180
262
  static createCluster(options) {
181
- return (options?.client ?? client).post({
263
+ return (options.client ?? client).post({
182
264
  url: '/clusters',
183
265
  ...options,
184
266
  headers: {
185
267
  'Content-Type': 'application/json',
186
- ...options?.headers
268
+ ...options.headers
187
269
  }
188
270
  });
189
271
  }
190
272
  /**
191
273
  * Permanently delete cluster.
274
+ *
192
275
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
193
276
  *
194
277
  * This endpoint is available to administrators of the organization only.
195
278
  *
196
279
  */
197
280
  static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
199
- url: '/clusters/{cluster_id}',
200
- ...options
201
- });
281
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
202
282
  }
203
283
  /**
204
284
  * Get cluster information.
285
+ *
205
286
  * 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
287
  *
207
288
  * This endpoint is available to all users in the organization.
208
289
  *
209
290
  */
210
291
  static getCluster(options) {
211
- return (options?.client ?? client).get({
212
- url: '/clusters/{cluster_id}',
213
- ...options
214
- });
292
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
215
293
  }
216
294
  /**
217
295
  * Update cluster information.
296
+ *
218
297
  * 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
298
  *
220
299
  * This endpoint is available to administrators of the organization only.
221
300
  *
222
301
  */
223
302
  static updateCluster(options) {
224
- return (options?.client ?? client).put({
303
+ return (options.client ?? client).put({
225
304
  url: '/clusters/{cluster_id}',
226
305
  ...options,
227
306
  headers: {
228
307
  'Content-Type': 'application/json',
229
- ...options?.headers
308
+ ...options.headers
230
309
  }
231
310
  });
232
311
  }
233
312
  /**
234
313
  * 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
314
  *
237
- */
238
- static getJoinInformation(options) {
239
- return (options?.client ?? client).post({
240
- url: '/clusters/{cluster_id}/join_information',
241
- ...options
242
- });
243
- }
244
- }
245
- export class InfrastructureService {
246
- /**
247
- * Search infrastructure catalog.
248
- * This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
249
- *
250
- * `GET /infrastructure?accelerator_name=A100&region=northamerica`
251
- *
252
- * Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
253
- *
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.
315
+ * 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.
257
316
  *
258
317
  */
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
- });
318
+ static getJoinInformation(options) {
319
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
286
320
  }
287
321
  }
288
322
  export class InvitesService {
289
323
  /**
290
324
  * List invites.
325
+ *
291
326
  * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
292
327
  *
293
328
  */
294
329
  static listInvites(options) {
295
- return (options?.client ?? client).get({
296
- url: '/invites',
297
- ...options
298
- });
330
+ return (options?.client ?? client).get({ url: '/invites', ...options });
299
331
  }
300
332
  /**
301
333
  * 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.
334
+ *
335
+ * 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
336
  *
304
337
  */
305
338
  static createInvite(options) {
306
- return (options?.client ?? client).post({
339
+ return (options.client ?? client).post({
307
340
  url: '/invites',
308
341
  ...options,
309
342
  headers: {
310
343
  'Content-Type': 'application/json',
311
- ...options?.headers
344
+ ...options.headers
312
345
  }
313
346
  });
314
347
  }
315
348
  /**
316
349
  * Get invite information.
350
+ *
317
351
  * Returns invite details.
318
352
  *
319
353
  */
320
354
  static getInvite(options) {
321
- return (options?.client ?? client).get({
322
- url: '/invites/{code}',
323
- ...options
324
- });
355
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
325
356
  }
326
357
  /**
327
358
  * Permanently delete invite.
359
+ *
328
360
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
329
361
  *
330
362
  */
331
363
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
333
- url: '/invites/{email}',
334
- ...options
364
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
365
+ }
366
+ }
367
+ export class ChartsMarketplaceService {
368
+ /**
369
+ * List chart listings available in the marketplace.
370
+ *
371
+ * Returns a list of available charts in the marketplace.
372
+ *
373
+ * This endpoint is available to all users in the organization.
374
+ *
375
+ */
376
+ static listMarketplaceCharts(options) {
377
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
378
+ }
379
+ /**
380
+ * Get chart files for a specific version channel.
381
+ *
382
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
383
+ *
384
+ * 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.
385
+ *
386
+ * This endpoint is available to all users in the organization.
387
+ *
388
+ */
389
+ static getMarketplaceChartFiles(options) {
390
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
391
+ }
392
+ }
393
+ export class McpService {
394
+ /**
395
+ * MCP endpoint
396
+ *
397
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
398
+ */
399
+ static postMcp(options) {
400
+ return (options.client ?? client).post({
401
+ url: '/mcp',
402
+ ...options,
403
+ headers: {
404
+ 'Content-Type': 'application/json',
405
+ ...options.headers
406
+ }
335
407
  });
336
408
  }
337
409
  }
338
410
  export class OrganizationService {
339
411
  /**
340
412
  * Get organization information.
413
+ *
341
414
  * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
342
415
  *
343
416
  * This endpoint is available to all users in the organization.
344
417
  *
345
418
  */
346
419
  static getOrganization(options) {
347
- return (options?.client ?? client).get({
348
- url: '/organization',
349
- ...options
350
- });
420
+ return (options?.client ?? client).get({ url: '/organization', ...options });
351
421
  }
352
422
  /**
353
423
  * 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.
424
+ *
425
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
355
426
  *
356
427
  */
357
428
  static createOrganization(options) {
358
- return (options?.client ?? client).post({
429
+ return (options.client ?? client).post({
359
430
  url: '/organization',
360
431
  ...options,
361
432
  headers: {
362
433
  'Content-Type': 'application/json',
363
- ...options?.headers
434
+ ...options.headers
364
435
  }
365
436
  });
366
437
  }
438
+ }
439
+ export class RegistryService {
367
440
  /**
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.
441
+ * List repositories
370
442
  *
371
- * This endpoint is available to administrators of the organization only.
443
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
372
444
  *
373
445
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
376
- url: '/organization',
446
+ static listRepositories(options) {
447
+ return (options?.client ?? client).get({ url: '/registry', ...options });
448
+ }
449
+ /**
450
+ * List tags for a repository
451
+ *
452
+ * 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.
453
+ *
454
+ */
455
+ static listTags(options) {
456
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
457
+ }
458
+ /**
459
+ * Delete tag
460
+ *
461
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
462
+ *
463
+ */
464
+ static deleteTag(options) {
465
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
466
+ }
467
+ /**
468
+ * Get tag details
469
+ *
470
+ * 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.
471
+ *
472
+ */
473
+ static getTag(options) {
474
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
475
+ }
476
+ }
477
+ export class TicketsService {
478
+ /**
479
+ * List tickets for the current organization.
480
+ *
481
+ * Returns all tickets belonging to the caller's organization, newest first.
482
+ *
483
+ */
484
+ static listTickets(options) {
485
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
486
+ }
487
+ /**
488
+ * Create a new support ticket.
489
+ *
490
+ * Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
491
+ *
492
+ */
493
+ static createTicket(options) {
494
+ return (options.client ?? client).post({
495
+ ...formDataBodySerializer,
496
+ url: '/tickets',
377
497
  ...options,
378
498
  headers: {
379
- 'Content-Type': 'application/json',
380
- ...options?.headers
499
+ 'Content-Type': null,
500
+ ...options.headers
501
+ }
502
+ });
503
+ }
504
+ /**
505
+ * Close a ticket (soft close).
506
+ *
507
+ * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
508
+ *
509
+ */
510
+ static closeTicket(options) {
511
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
512
+ }
513
+ /**
514
+ * Get a ticket and its messages.
515
+ */
516
+ static getTicket(options) {
517
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
518
+ }
519
+ /**
520
+ * Append a customer reply to a ticket.
521
+ *
522
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
523
+ *
524
+ */
525
+ static replyTicket(options) {
526
+ return (options.client ?? client).post({
527
+ ...formDataBodySerializer,
528
+ url: '/tickets/{ticket_id}/messages',
529
+ ...options,
530
+ headers: {
531
+ 'Content-Type': null,
532
+ ...options.headers
381
533
  }
382
534
  });
383
535
  }
536
+ /**
537
+ * Download a ticket attachment.
538
+ */
539
+ static getTicketAttachment(options) {
540
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
541
+ }
384
542
  }
385
543
  export class TokensService {
386
544
  /**
387
545
  * List access tokens in organization.
546
+ *
388
547
  * 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
548
  *
390
549
  */
391
550
  static listTokens(options) {
392
- return (options?.client ?? client).get({
393
- url: '/tokens',
394
- ...options
395
- });
551
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
396
552
  }
397
553
  /**
398
554
  * Create a new access token.
555
+ *
399
556
  * 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
557
  *
401
558
  * This endpoint is available to administrators of the organization only.
402
559
  *
403
560
  */
404
561
  static createToken(options) {
405
- return (options?.client ?? client).post({
562
+ return (options.client ?? client).post({
406
563
  url: '/tokens',
407
564
  ...options,
408
565
  headers: {
409
566
  'Content-Type': 'application/json',
410
- ...options?.headers
567
+ ...options.headers
411
568
  }
412
569
  });
413
570
  }
414
571
  /**
415
572
  * Permanently delete access token.
573
+ *
416
574
  * 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
575
  *
418
576
  */
419
577
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
421
- url: '/tokens/{token_id}',
422
- ...options
423
- });
578
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
424
579
  }
425
580
  /**
426
581
  * Get access token information.
582
+ *
427
583
  * 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
584
  *
429
585
  */
430
586
  static getToken(options) {
431
- return (options?.client ?? client).get({
432
- url: '/tokens/{token_id}',
433
- ...options
434
- });
587
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
435
588
  }
436
589
  /**
437
590
  * Update access token information.
591
+ *
438
592
  * 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
593
  *
440
594
  * This endpoint is available to administrators of the organization only.
441
595
  *
442
596
  */
443
597
  static updateToken(options) {
444
- return (options?.client ?? client).put({
598
+ return (options.client ?? client).put({
445
599
  url: '/tokens/{token_id}',
446
600
  ...options,
447
601
  headers: {
448
602
  'Content-Type': 'application/json',
449
- ...options?.headers
603
+ ...options.headers
450
604
  }
451
605
  });
452
606
  }
453
607
  /**
454
608
  * Regenerate access token secret key.
609
+ *
455
610
  * Generates a new access token secret. Old secret will not be valid anymore.
456
611
  */
457
612
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
459
- url: '/tokens/{token_id}/secret',
460
- ...options
461
- });
613
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
462
614
  }
463
615
  }
464
616
  export class UsersService {
@@ -466,101 +618,68 @@ export class UsersService {
466
618
  * Get a list of organizations the user belongs to. Used during authentication process.
467
619
  */
468
620
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
470
- url: '/users/organizations/{email}',
471
- ...options
472
- });
621
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
473
622
  }
474
623
  /**
475
624
  * 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.
625
+ *
626
+ * 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
627
  *
478
628
  * This endpoint is available to all users in the organization.
479
629
  *
480
630
  */
481
631
  static listUsers(options) {
482
- return (options?.client ?? client).get({
483
- url: '/users',
484
- ...options
485
- });
632
+ return (options?.client ?? client).get({ url: '/users', ...options });
486
633
  }
487
634
  /**
488
635
  * 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.
636
+ *
637
+ * 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
638
  *
491
639
  */
492
640
  static createUser(options) {
493
- return (options?.client ?? client).post({
641
+ return (options.client ?? client).post({
494
642
  url: '/users',
495
643
  ...options,
496
644
  headers: {
497
645
  'Content-Type': 'application/json',
498
- ...options?.headers
646
+ ...options.headers
499
647
  }
500
648
  });
501
649
  }
502
650
  /**
503
651
  * Delete user by id.
652
+ *
504
653
  * 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
654
  *
506
655
  */
507
656
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
509
- url: '/users/{user_id}',
510
- ...options
511
- });
657
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
512
658
  }
513
659
  /**
514
660
  * 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.
661
+ *
662
+ * 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
663
  *
517
664
  * This endpoint is available to all users in the organization.
518
665
  *
519
666
  */
520
667
  static getUser(options) {
521
- return (options?.client ?? client).get({
522
- url: '/users/{user_id}',
523
- ...options
524
- });
668
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
525
669
  }
526
670
  /**
527
671
  * Update user profile information.
672
+ *
528
673
  * 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
674
  *
530
675
  */
531
676
  static updateUser(options) {
532
- return (options?.client ?? client).put({
677
+ return (options.client ?? client).put({
533
678
  url: '/users/{user_id}',
534
679
  ...options,
535
680
  headers: {
536
681
  '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
682
+ ...options.headers
564
683
  }
565
684
  });
566
685
  }