@cloudfleet/sdk 0.0.1-cb875c6 → 0.0.1-cd547f9

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 (61) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1159 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1175 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +114 -102
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/index.d.ts +1 -1
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/client/types.gen.d.ts +9 -13
  13. package/dist/client/types.gen.d.ts.map +1 -1
  14. package/dist/client/utils.gen.d.ts +8 -4
  15. package/dist/client/utils.gen.d.ts.map +1 -1
  16. package/dist/client/utils.gen.js +13 -15
  17. package/dist/client/utils.gen.js.map +1 -1
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -3
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts.map +1 -1
  22. package/dist/core/auth.gen.js.map +1 -1
  23. package/dist/core/bodySerializer.gen.d.ts +16 -8
  24. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  25. package/dist/core/bodySerializer.gen.js +1 -1
  26. package/dist/core/bodySerializer.gen.js.map +1 -1
  27. package/dist/core/params.gen.d.ts +10 -0
  28. package/dist/core/params.gen.d.ts.map +1 -1
  29. package/dist/core/params.gen.js +22 -10
  30. package/dist/core/params.gen.js.map +1 -1
  31. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  32. package/dist/core/pathSerializer.gen.js +3 -11
  33. package/dist/core/pathSerializer.gen.js.map +1 -1
  34. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  35. package/dist/core/queryKeySerializer.gen.js +4 -11
  36. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  37. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  38. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  39. package/dist/core/serverSentEvents.gen.js +6 -9
  40. package/dist/core/serverSentEvents.gen.js.map +1 -1
  41. package/dist/core/types.gen.d.ts +1 -1
  42. package/dist/core/types.gen.d.ts.map +1 -1
  43. package/dist/core/utils.gen.d.ts.map +1 -1
  44. package/dist/core/utils.gen.js +1 -1
  45. package/dist/core/utils.gen.js.map +1 -1
  46. package/dist/schemas.gen.d.ts +1072 -170
  47. package/dist/schemas.gen.d.ts.map +1 -1
  48. package/dist/schemas.gen.js +2448 -239
  49. package/dist/schemas.gen.js.map +1 -1
  50. package/dist/sdk.gen.d.ts +252 -190
  51. package/dist/sdk.gen.d.ts.map +1 -1
  52. package/dist/sdk.gen.js +365 -375
  53. package/dist/sdk.gen.js.map +1 -1
  54. package/dist/services/kubernetes/api.d.ts +8 -8
  55. package/dist/types.gen.d.ts +1498 -710
  56. package/dist/types.gen.d.ts.map +1 -1
  57. package/dist/zod.gen.d.ts +3433 -1429
  58. package/dist/zod.gen.d.ts.map +1 -1
  59. package/dist/zod.gen.js +1373 -620
  60. package/dist/zod.gen.js.map +1 -1
  61. package/package.json +28 -8
package/dist/sdk.gen.js CHANGED
@@ -1,75 +1,69 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
+ import { formDataBodySerializer } from './client';
2
3
  import { client } from './client.gen';
3
- export class BillingService {
4
+ export class UsersService {
4
5
  /**
5
- * Get billing usage information.
6
- *
7
- * Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
8
- *
6
+ * Get a list of organizations the user belongs to. Used during authentication process.
9
7
  */
10
- static getUsage(options) {
11
- return (options?.client ?? client).get({
12
- url: '/billing/usage',
13
- ...options
14
- });
8
+ static listUserOrganizations(options) {
9
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
15
10
  }
16
11
  /**
17
- * Get organization payment method information.
12
+ * List users in organization.
13
+ *
14
+ * 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.
18
15
  *
19
- * Returns the information about the payment card associated with the organization with sensitive information redacted. Payment details can be updated in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to all users in the organization.
16
+ * This endpoint is available to all users in the organization.
20
17
  *
21
18
  */
22
- static getPaymentMethod(options) {
23
- return (options?.client ?? client).get({
24
- url: '/billing/payment-method',
25
- ...options
26
- });
19
+ static listUsers(options) {
20
+ return (options?.client ?? client).get({ url: '/users', ...options });
27
21
  }
28
22
  /**
29
- * Get Stripe client secret.
23
+ * Create a new user.
30
24
  *
31
- * Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
25
+ * 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.
32
26
  *
33
27
  */
34
- static getPaymentMethodSecret(options) {
35
- return (options?.client ?? client).put({
36
- url: '/billing/payment-method',
37
- ...options
28
+ static createUser(options) {
29
+ return (options.client ?? client).post({
30
+ url: '/users',
31
+ ...options,
32
+ headers: {
33
+ 'Content-Type': 'application/json',
34
+ ...options.headers
35
+ }
38
36
  });
39
37
  }
40
38
  /**
41
- * List issued invoices.
39
+ * Delete user by id.
42
40
  *
43
- * Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
41
+ * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
44
42
  *
45
43
  */
46
- static listInvoices(options) {
47
- return (options?.client ?? client).get({
48
- url: '/billing/invoices',
49
- ...options
50
- });
44
+ static deleteUser(options) {
45
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
51
46
  }
52
47
  /**
53
- * Get organization contact and billing address information.
48
+ * Get user profile information by id.
54
49
  *
55
- * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
50
+ * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
51
+ *
52
+ * This endpoint is available to all users in the organization.
56
53
  *
57
54
  */
58
- static getContact(options) {
59
- return (options?.client ?? client).get({
60
- url: '/billing/contact',
61
- ...options
62
- });
55
+ static getUser(options) {
56
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
63
57
  }
64
58
  /**
65
- * Update organization contact information and billing address.
59
+ * Update user profile information.
66
60
  *
67
- * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
61
+ * 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.
68
62
  *
69
63
  */
70
- static updateContact(options) {
64
+ static updateUser(options) {
71
65
  return (options.client ?? client).put({
72
- url: '/billing/contact',
66
+ url: '/users/{user_id}',
73
67
  ...options,
74
68
  headers: {
75
69
  'Content-Type': 'application/json',
@@ -77,27 +71,28 @@ export class BillingService {
77
71
  }
78
72
  });
79
73
  }
74
+ }
75
+ export class TokensService {
80
76
  /**
81
- * Get applied promotional credits
77
+ * List access tokens in organization.
82
78
  *
83
- * Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
79
+ * 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.
84
80
  *
85
81
  */
86
- static getCredits(options) {
87
- return (options?.client ?? client).get({
88
- url: '/billing/credits',
89
- ...options
90
- });
82
+ static listTokens(options) {
83
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
91
84
  }
92
85
  /**
93
- * Redeem promotional credits code.
86
+ * Create a new access token.
94
87
  *
95
- * Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
88
+ * 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.
89
+ *
90
+ * This endpoint is available to administrators of the organization only.
96
91
  *
97
92
  */
98
- static redeemCredits(options) {
93
+ static createToken(options) {
99
94
  return (options.client ?? client).post({
100
- url: '/billing/credits',
95
+ url: '/tokens',
101
96
  ...options,
102
97
  headers: {
103
98
  'Content-Type': 'application/json',
@@ -105,33 +100,35 @@ export class BillingService {
105
100
  }
106
101
  });
107
102
  }
108
- }
109
- export class ClustersService {
110
103
  /**
111
- * List charts.
104
+ * Permanently delete access token.
112
105
  *
113
- * Returns a list of charts in the cluster.
106
+ * 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.
114
107
  *
115
- * This endpoint is available to all users in the organization.
108
+ */
109
+ static deleteToken(options) {
110
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
111
+ }
112
+ /**
113
+ * Get access token information.
114
+ *
115
+ * 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.
116
116
  *
117
117
  */
118
- static listCharts(options) {
119
- return (options.client ?? client).get({
120
- url: '/clusters/{cluster_id}/charts',
121
- ...options
122
- });
118
+ static getToken(options) {
119
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
123
120
  }
124
121
  /**
125
- * Create a new chart.
122
+ * Update access token information.
126
123
  *
127
- * Create a new chart deployment.
124
+ * 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.
128
125
  *
129
126
  * This endpoint is available to administrators of the organization only.
130
127
  *
131
128
  */
132
- static createChart(options) {
133
- return (options.client ?? client).post({
134
- url: '/clusters/{cluster_id}/charts',
129
+ static updateToken(options) {
130
+ return (options.client ?? client).put({
131
+ url: '/tokens/{token_id}',
135
132
  ...options,
136
133
  headers: {
137
134
  'Content-Type': 'application/json',
@@ -140,169 +137,156 @@ export class ClustersService {
140
137
  });
141
138
  }
142
139
  /**
143
- * Permanently delete the chart deployment from the cluster.
144
- *
145
- * This endpoint will permanently delete chart. This operation cannot be undone.
146
- *
147
- * This endpoint is available to administrators of the organization only.
140
+ * Regenerate access token secret key.
148
141
  *
142
+ * Generates a new access token secret. Old secret will not be valid anymore.
149
143
  */
150
- static deleteChart(options) {
151
- return (options.client ?? client).delete({
152
- url: '/clusters/{cluster_id}/charts/{chart_name}',
153
- ...options
154
- });
144
+ static regenerateToken(options) {
145
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
155
146
  }
147
+ }
148
+ export class TicketsService {
156
149
  /**
157
- * Get chart information.
158
- *
159
- * Returns the details of the chart deployment.
150
+ * List tickets for the current organization.
160
151
  *
161
- * This endpoint is available to all users in the organization.
152
+ * Returns all tickets belonging to the caller's organization, newest first.
162
153
  *
163
154
  */
164
- static getChart(options) {
165
- return (options.client ?? client).get({
166
- url: '/clusters/{cluster_id}/charts/{chart_name}',
167
- ...options
168
- });
155
+ static listTickets(options) {
156
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
169
157
  }
170
158
  /**
171
- * Update chart information.
172
- *
173
- * This endpoint allows you to update the values of a chart deployment.
159
+ * Create a new support ticket.
174
160
  *
175
- * This endpoint is available to administrators of the organization only.
161
+ * 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).
176
162
  *
177
163
  */
178
- static updateChart(options) {
179
- return (options.client ?? client).put({
180
- url: '/clusters/{cluster_id}/charts/{chart_name}',
164
+ static createTicket(options) {
165
+ return (options.client ?? client).post({
166
+ ...formDataBodySerializer,
167
+ url: '/tickets',
181
168
  ...options,
182
169
  headers: {
183
- 'Content-Type': 'application/json',
170
+ 'Content-Type': null,
184
171
  ...options.headers
185
172
  }
186
173
  });
187
174
  }
188
175
  /**
189
- * List fleets.
190
- *
191
- * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
176
+ * Close a ticket (soft close).
192
177
  *
193
- * This endpoint is available to all users in the organization.
178
+ * Marks the ticket as closed. Closed is a terminal state users cannot reply to a closed ticket; a new ticket must be opened instead.
194
179
  *
195
180
  */
196
- static listFleets(options) {
197
- return (options.client ?? client).get({
198
- url: '/clusters/{cluster_id}/fleets',
199
- ...options
200
- });
181
+ static closeTicket(options) {
182
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
201
183
  }
202
184
  /**
203
- * Create a new fleet.
204
- *
205
- * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
185
+ * Get a ticket and its messages.
186
+ */
187
+ static getTicket(options) {
188
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
189
+ }
190
+ /**
191
+ * Append a customer reply to a ticket.
206
192
  *
207
- * This endpoint is available to administrators of the organization only.
193
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
208
194
  *
209
195
  */
210
- static createFleet(options) {
196
+ static replyTicket(options) {
211
197
  return (options.client ?? client).post({
212
- url: '/clusters/{cluster_id}/fleets',
198
+ ...formDataBodySerializer,
199
+ url: '/tickets/{ticket_id}/messages',
213
200
  ...options,
214
201
  headers: {
215
- 'Content-Type': 'application/json',
202
+ 'Content-Type': null,
216
203
  ...options.headers
217
204
  }
218
205
  });
219
206
  }
220
207
  /**
221
- * Permanently delete fleet.
222
- *
223
- * This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
224
- *
225
- * This endpoint is available to administrators of the organization only.
226
- *
208
+ * Download a ticket attachment.
227
209
  */
228
- static deleteFleet(options) {
229
- return (options.client ?? client).delete({
230
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
231
- ...options
232
- });
210
+ static getTicketAttachment(options) {
211
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
233
212
  }
213
+ }
214
+ export class RegistryService {
234
215
  /**
235
- * Get fleet information.
236
- *
237
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
216
+ * List repositories
238
217
  *
239
- * This endpoint is available to all users in the organization.
218
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
240
219
  *
241
220
  */
242
- static getFleet(options) {
243
- return (options.client ?? client).get({
244
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
245
- ...options
246
- });
221
+ static listRepositories(options) {
222
+ return (options?.client ?? client).get({ url: '/registry', ...options });
247
223
  }
248
224
  /**
249
- * Update fleet information.
250
- *
251
- * This endpoint allows you to update fleet details.
225
+ * List tags for a repository
252
226
  *
253
- * Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
227
+ * 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.
254
228
  *
255
- * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
229
+ */
230
+ static listTags(options) {
231
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
232
+ }
233
+ /**
234
+ * Delete tag
256
235
  *
257
- * This endpoint is available to administrators of the organization only.
236
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
258
237
  *
259
238
  */
260
- static updateFleet(options) {
261
- return (options.client ?? client).put({
262
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
263
- ...options,
264
- headers: {
265
- 'Content-Type': 'application/json',
266
- ...options.headers
267
- }
268
- });
239
+ static deleteTag(options) {
240
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
269
241
  }
270
242
  /**
271
- * Query Kubernetes cluster API
243
+ * Get tag details
244
+ *
245
+ * 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.
272
246
  *
273
- * An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
274
247
  */
275
- static queryCluster(options) {
276
- return (options.client ?? client).get({
277
- url: '/clusters/{cluster_id}/query',
278
- ...options
279
- });
248
+ static getTag(options) {
249
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
280
250
  }
251
+ }
252
+ export class OrganizationService {
281
253
  /**
282
- * List clusters.
254
+ * Get organization information.
283
255
  *
284
- * Returns a list of clusters under the current organization, including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
256
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
285
257
  *
286
258
  * This endpoint is available to all users in the organization.
287
259
  *
288
260
  */
289
- static listClusters(options) {
290
- return (options?.client ?? client).get({
291
- url: '/clusters',
292
- ...options
293
- });
261
+ static getOrganization(options) {
262
+ return (options?.client ?? client).get({ url: '/organization', ...options });
294
263
  }
295
264
  /**
296
- * Create a new cluster.
265
+ * Create a new organization / Cloudfleet account signup.
297
266
  *
298
- * Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
267
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
299
268
  *
300
- * This endpoint is available to administrators of the organization only.
269
+ */
270
+ static createOrganization(options) {
271
+ return (options.client ?? client).post({
272
+ url: '/organization',
273
+ ...options,
274
+ headers: {
275
+ 'Content-Type': 'application/json',
276
+ ...options.headers
277
+ }
278
+ });
279
+ }
280
+ }
281
+ export class McpService {
282
+ /**
283
+ * MCP endpoint
301
284
  *
285
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
302
286
  */
303
- static createCluster(options) {
287
+ static postMcp(options) {
304
288
  return (options.client ?? client).post({
305
- url: '/clusters',
289
+ url: '/mcp',
306
290
  ...options,
307
291
  headers: {
308
292
  'Content-Type': 'application/json',
@@ -310,77 +294,42 @@ export class ClustersService {
310
294
  }
311
295
  });
312
296
  }
297
+ }
298
+ export class ChartsMarketplaceService {
313
299
  /**
314
- * Permanently delete cluster.
300
+ * List chart listings available in the marketplace.
315
301
  *
316
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
302
+ * Returns a list of available charts in the marketplace.
317
303
  *
318
- * This endpoint is available to administrators of the organization only.
304
+ * This endpoint is available to all users in the organization.
319
305
  *
320
306
  */
321
- static deleteCluster(options) {
322
- return (options.client ?? client).delete({
323
- url: '/clusters/{cluster_id}',
324
- ...options
325
- });
307
+ static listMarketplaceCharts(options) {
308
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
326
309
  }
327
310
  /**
328
- * Get cluster information.
311
+ * Get chart files for a specific version channel.
312
+ *
313
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
329
314
  *
330
- * Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
315
+ * 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.
331
316
  *
332
317
  * This endpoint is available to all users in the organization.
333
318
  *
334
319
  */
335
- static getCluster(options) {
336
- return (options.client ?? client).get({
337
- url: '/clusters/{cluster_id}',
338
- ...options
339
- });
320
+ static getMarketplaceChartFiles(options) {
321
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
340
322
  }
323
+ }
324
+ export class InvitesService {
341
325
  /**
342
- * Update cluster information.
343
- *
344
- * This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
326
+ * List invites.
345
327
  *
346
- * This endpoint is available to administrators of the organization only.
347
- *
348
- */
349
- static updateCluster(options) {
350
- return (options.client ?? client).put({
351
- url: '/clusters/{cluster_id}',
352
- ...options,
353
- headers: {
354
- 'Content-Type': 'application/json',
355
- ...options.headers
356
- }
357
- });
358
- }
359
- /**
360
- * Node join information for the cluster
361
- *
362
- * Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
363
- *
364
- */
365
- static getJoinInformation(options) {
366
- return (options.client ?? client).post({
367
- url: '/clusters/{cluster_id}/join_information',
368
- ...options
369
- });
370
- }
371
- }
372
- export class InvitesService {
373
- /**
374
- * List invites.
375
- *
376
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
328
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
377
329
  *
378
330
  */
379
331
  static listInvites(options) {
380
- return (options?.client ?? client).get({
381
- url: '/invites',
382
- ...options
383
- });
332
+ return (options?.client ?? client).get({ url: '/invites', ...options });
384
333
  }
385
334
  /**
386
335
  * Create a new invite.
@@ -401,14 +350,11 @@ export class InvitesService {
401
350
  /**
402
351
  * Get invite information.
403
352
  *
404
- * Returns invite details.
353
+ * Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
405
354
  *
406
355
  */
407
356
  static getInvite(options) {
408
- return (options.client ?? client).get({
409
- url: '/invites/{code}',
410
- ...options
411
- });
357
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
412
358
  }
413
359
  /**
414
360
  * Permanently delete invite.
@@ -417,51 +363,42 @@ export class InvitesService {
417
363
  *
418
364
  */
419
365
  static deleteInvite(options) {
420
- return (options.client ?? client).delete({
421
- url: '/invites/{email}',
422
- ...options
423
- });
366
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
424
367
  }
425
368
  }
426
- export class ChartsMarketplaceService {
369
+ export class ClustersService {
427
370
  /**
428
- * List chart listings available in the marketplace.
429
- *
430
- * Returns a list of available charts in the marketplace.
431
- *
432
- * This endpoint is available to all users in the organization.
371
+ * Query Kubernetes cluster API
433
372
  *
373
+ * 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.
434
374
  */
435
- static listMarketplaceCharts(options) {
436
- return (options?.client ?? client).get({
437
- url: '/marketplace',
438
- ...options
439
- });
375
+ static queryCluster(options) {
376
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
440
377
  }
441
378
  /**
442
- * Get chart listing details.
379
+ * List fleets.
443
380
  *
444
- * Returns details of the chart listing.
381
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
445
382
  *
446
383
  * This endpoint is available to all users in the organization.
447
384
  *
448
385
  */
449
- static getMarketplaceChart(options) {
450
- return (options.client ?? client).get({
451
- url: '/marketplace/{listing_id}',
452
- ...options
453
- });
386
+ static listFleets(options) {
387
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
454
388
  }
455
- }
456
- export class McpService {
457
389
  /**
458
- * MCP endpoint
390
+ * Create a new fleet.
391
+ *
392
+ * 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.
393
+ *
394
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
395
+ *
396
+ * This endpoint is available to administrators of the organization only.
459
397
  *
460
- * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
461
398
  */
462
- static postMcp(options) {
399
+ static createFleet(options) {
463
400
  return (options.client ?? client).post({
464
- url: '/mcp',
401
+ url: '/clusters/{cluster_id}/fleets',
465
402
  ...options,
466
403
  headers: {
467
404
  'Content-Type': 'application/json',
@@ -469,31 +406,45 @@ export class McpService {
469
406
  }
470
407
  });
471
408
  }
472
- }
473
- export class OrganizationService {
474
409
  /**
475
- * Get organization information.
410
+ * Permanently delete fleet.
476
411
  *
477
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
412
+ * 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. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
413
+ *
414
+ * Deleting a fleet does not deprovision the cloud infrastructure it provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
415
+ *
416
+ * This endpoint is available to administrators of the organization only.
417
+ *
418
+ */
419
+ static deleteFleet(options) {
420
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
421
+ }
422
+ /**
423
+ * Get fleet information.
424
+ *
425
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
478
426
  *
479
427
  * This endpoint is available to all users in the organization.
480
428
  *
481
429
  */
482
- static getOrganization(options) {
483
- return (options?.client ?? client).get({
484
- url: '/organization',
485
- ...options
486
- });
430
+ static getFleet(options) {
431
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
487
432
  }
488
433
  /**
489
- * Create a new organization / Cloudfleet account signup.
434
+ * Update fleet information.
490
435
  *
491
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
436
+ * This endpoint allows you to update fleet details.
437
+ *
438
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
439
+ *
440
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged. The Hetzner API key is the exception: it is kept when omitted (send a new value to rotate it).
441
+ *
442
+ * This endpoint is available to administrators of the organization only.
492
443
  *
493
444
  */
494
- static createOrganization(options) {
495
- return (options.client ?? client).post({
496
- url: '/organization',
445
+ static updateFleet(options) {
446
+ return (options.client ?? client).put({
447
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
497
448
  ...options,
498
449
  headers: {
499
450
  'Content-Type': 'application/json',
@@ -501,81 +452,97 @@ export class OrganizationService {
501
452
  }
502
453
  });
503
454
  }
504
- }
505
- export class RegistryService {
506
455
  /**
507
- * List repositories
456
+ * List charts.
508
457
  *
509
- * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
458
+ * Returns a list of charts in the cluster.
459
+ *
460
+ * This endpoint is available to all users in the organization.
510
461
  *
511
462
  */
512
- static listRepositories(options) {
513
- return (options?.client ?? client).get({
514
- url: '/registry',
515
- ...options
516
- });
463
+ static listCharts(options) {
464
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
517
465
  }
518
466
  /**
519
- * List tags for a repository
467
+ * Create a new chart.
520
468
  *
521
- * Returns a list of tags for a specific repository, including size and metadata for each tag. This endpoint is available to all users in the organization.
469
+ * Create a new chart deployment.
470
+ *
471
+ * This endpoint is available to administrators of the organization only.
522
472
  *
523
473
  */
524
- static listTags(options) {
525
- return (options.client ?? client).get({
526
- url: '/registry/{region}/{repository}',
527
- ...options
474
+ static createChart(options) {
475
+ return (options.client ?? client).post({
476
+ url: '/clusters/{cluster_id}/charts',
477
+ ...options,
478
+ headers: {
479
+ 'Content-Type': 'application/json',
480
+ ...options.headers
481
+ }
528
482
  });
529
483
  }
530
484
  /**
531
- * Delete tag
485
+ * Permanently delete the chart deployment from the cluster.
532
486
  *
533
- * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
487
+ * This endpoint will permanently delete chart. This operation cannot be undone.
488
+ *
489
+ * This endpoint is available to administrators of the organization only.
534
490
  *
535
491
  */
536
- static deleteTag(options) {
537
- return (options.client ?? client).delete({
538
- url: '/registry/{region}/{repository}/{tag}',
539
- ...options
540
- });
492
+ static deleteChart(options) {
493
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
541
494
  }
542
495
  /**
543
- * Get tag details
496
+ * Get chart information.
544
497
  *
545
- * Returns detailed information for a specific tag in a repository, including manifest details, size, and URI. This endpoint is available to all users in the organization.
498
+ * Returns the details of the chart deployment.
499
+ *
500
+ * This endpoint is available to all users in the organization.
546
501
  *
547
502
  */
548
- static getTag(options) {
549
- return (options.client ?? client).get({
550
- url: '/registry/{region}/{repository}/{tag}',
551
- ...options
552
- });
503
+ static getChart(options) {
504
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
553
505
  }
554
- }
555
- export class TokensService {
556
506
  /**
557
- * List access tokens in organization.
507
+ * Update chart information.
558
508
  *
559
- * This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
509
+ * This endpoint allows you to update the values of a chart deployment.
510
+ *
511
+ * This endpoint is available to administrators of the organization only.
560
512
  *
561
513
  */
562
- static listTokens(options) {
563
- return (options?.client ?? client).get({
564
- url: '/tokens',
565
- ...options
514
+ static updateChart(options) {
515
+ return (options.client ?? client).put({
516
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
517
+ ...options,
518
+ headers: {
519
+ 'Content-Type': 'application/json',
520
+ ...options.headers
521
+ }
566
522
  });
567
523
  }
568
524
  /**
569
- * Create a new access token.
525
+ * List clusters.
570
526
  *
571
- * This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
527
+ * Returns a list of clusters under the current organization.
528
+ *
529
+ * This endpoint is available to all users in the organization.
530
+ *
531
+ */
532
+ static listClusters(options) {
533
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
534
+ }
535
+ /**
536
+ * Create a new cluster.
537
+ *
538
+ * 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.
572
539
  *
573
540
  * This endpoint is available to administrators of the organization only.
574
541
  *
575
542
  */
576
- static createToken(options) {
543
+ static createCluster(options) {
577
544
  return (options.client ?? client).post({
578
- url: '/tokens',
545
+ url: '/clusters',
579
546
  ...options,
580
547
  headers: {
581
548
  'Content-Type': 'application/json',
@@ -584,40 +551,42 @@ export class TokensService {
584
551
  });
585
552
  }
586
553
  /**
587
- * Permanently delete access token.
554
+ * Permanently delete cluster.
588
555
  *
589
- * This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
556
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
557
+ *
558
+ * Deleting a cluster also deletes its fleets. This does not deprovision the cloud infrastructure those fleets provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
559
+ *
560
+ * This endpoint is available to administrators of the organization only.
590
561
  *
591
562
  */
592
- static deleteToken(options) {
593
- return (options.client ?? client).delete({
594
- url: '/tokens/{token_id}',
595
- ...options
596
- });
563
+ static deleteCluster(options) {
564
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
597
565
  }
598
566
  /**
599
- * Get access token information.
567
+ * Get cluster information.
600
568
  *
601
- * This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
569
+ * Returns cluster details.
570
+ *
571
+ * This endpoint is available to all users in the organization.
602
572
  *
603
573
  */
604
- static getToken(options) {
605
- return (options.client ?? client).get({
606
- url: '/tokens/{token_id}',
607
- ...options
608
- });
574
+ static getCluster(options) {
575
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
609
576
  }
610
577
  /**
611
- * Update access token information.
578
+ * Update cluster information.
612
579
  *
613
- * This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
580
+ * This endpoint allows you to update cluster details. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
581
+ *
582
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
614
583
  *
615
584
  * This endpoint is available to administrators of the organization only.
616
585
  *
617
586
  */
618
- static updateToken(options) {
587
+ static updateCluster(options) {
619
588
  return (options.client ?? client).put({
620
- url: '/tokens/{token_id}',
589
+ url: '/clusters/{cluster_id}',
621
590
  ...options,
622
591
  headers: {
623
592
  'Content-Type': 'application/json',
@@ -626,92 +595,113 @@ export class TokensService {
626
595
  });
627
596
  }
628
597
  /**
629
- * Regenerate access token secret key.
598
+ * Node join information for the cluster
599
+ *
600
+ * 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.
630
601
  *
631
- * Generates a new access token secret. Old secret will not be valid anymore.
632
602
  */
633
- static regenerateToken(options) {
634
- return (options.client ?? client).put({
635
- url: '/tokens/{token_id}/secret',
636
- ...options
637
- });
603
+ static getJoinInformation(options) {
604
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
638
605
  }
639
606
  }
640
- export class UsersService {
607
+ export class BillingService {
641
608
  /**
642
- * Get a list of organizations the user belongs to. Used during authentication process.
609
+ * Get billing usage information.
610
+ *
611
+ * 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.
612
+ *
643
613
  */
644
- static listUserOrganizations(options) {
645
- return (options.client ?? client).get({
646
- url: '/users/organizations/{email}',
647
- ...options
648
- });
614
+ static getUsage(options) {
615
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
649
616
  }
650
617
  /**
651
- * List users in organization.
618
+ * Get Stripe client secret.
652
619
  *
653
- * Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
620
+ * 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.
654
621
  *
655
- * This endpoint is available to all users in the organization.
622
+ */
623
+ static getPaymentMethodSecret(options) {
624
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
625
+ }
626
+ /**
627
+ * List organization payment methods.
628
+ *
629
+ * Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
656
630
  *
657
631
  */
658
- static listUsers(options) {
659
- return (options?.client ?? client).get({
660
- url: '/users',
661
- ...options
662
- });
632
+ static listPaymentMethods(options) {
633
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
663
634
  }
664
635
  /**
665
- * Create a new user.
636
+ * Set the default payment method.
666
637
  *
667
- * Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
638
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
668
639
  *
669
640
  */
670
- static createUser(options) {
671
- return (options.client ?? client).post({
672
- url: '/users',
673
- ...options,
674
- headers: {
675
- 'Content-Type': 'application/json',
676
- ...options.headers
677
- }
678
- });
641
+ static setDefaultPaymentMethod(options) {
642
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
679
643
  }
680
644
  /**
681
- * Delete user by id.
645
+ * Delete a payment method.
682
646
  *
683
- * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
647
+ * Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
684
648
  *
685
649
  */
686
- static deleteUser(options) {
687
- return (options.client ?? client).delete({
688
- url: '/users/{user_id}',
689
- ...options
690
- });
650
+ static deletePaymentMethod(options) {
651
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
691
652
  }
692
653
  /**
693
- * Get user profile information by id.
654
+ * List issued invoices.
694
655
  *
695
- * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
656
+ * 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.
696
657
  *
697
- * This endpoint is available to all users in the organization.
658
+ */
659
+ static listInvoices(options) {
660
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
661
+ }
662
+ /**
663
+ * Get organization contact and billing address information.
664
+ *
665
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
698
666
  *
699
667
  */
700
- static getUser(options) {
701
- return (options.client ?? client).get({
702
- url: '/users/{user_id}',
703
- ...options
704
- });
668
+ static getContact(options) {
669
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
705
670
  }
706
671
  /**
707
- * Update user profile information.
672
+ * Update organization contact information and billing address.
708
673
  *
709
- * Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
674
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
710
675
  *
711
676
  */
712
- static updateUser(options) {
677
+ static updateContact(options) {
713
678
  return (options.client ?? client).put({
714
- url: '/users/{user_id}',
679
+ url: '/billing/contact',
680
+ ...options,
681
+ headers: {
682
+ 'Content-Type': 'application/json',
683
+ ...options.headers
684
+ }
685
+ });
686
+ }
687
+ /**
688
+ * Get applied promotional credits
689
+ *
690
+ * 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.
691
+ *
692
+ */
693
+ static getCredits(options) {
694
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
695
+ }
696
+ /**
697
+ * Redeem promotional credits code.
698
+ *
699
+ * 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.
700
+ *
701
+ */
702
+ static redeemCredits(options) {
703
+ return (options.client ?? client).post({
704
+ url: '/billing/credits',
715
705
  ...options,
716
706
  headers: {
717
707
  'Content-Type': 'application/json',