@cloudfleet/sdk 0.0.1-d940b00 → 0.0.1-da466c0

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 (46) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +420 -626
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
  4. package/dist/@tanstack/react-query.gen.js +410 -419
  5. package/dist/@tanstack/react-query.gen.js.map +1 -1
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +1 -4
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/types.gen.d.ts +1 -1
  10. package/dist/client/types.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.d.ts +2 -2
  12. package/dist/client/utils.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.js +3 -3
  14. package/dist/client/utils.gen.js.map +1 -1
  15. package/dist/core/params.gen.js +4 -4
  16. package/dist/core/params.gen.js.map +1 -1
  17. package/dist/errors.d.ts +42 -0
  18. package/dist/errors.d.ts.map +1 -0
  19. package/dist/errors.js +83 -0
  20. package/dist/errors.js.map +1 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/schemas.gen.d.ts +521 -492
  26. package/dist/schemas.gen.d.ts.map +1 -1
  27. package/dist/schemas.gen.js +719 -583
  28. package/dist/schemas.gen.js.map +1 -1
  29. package/dist/sdk.gen.d.ts +221 -228
  30. package/dist/sdk.gen.d.ts.map +1 -1
  31. package/dist/sdk.gen.js +339 -339
  32. package/dist/sdk.gen.js.map +1 -1
  33. package/dist/services/kubernetes/api.d.ts +18 -55
  34. package/dist/services/kubernetes/api.d.ts.map +1 -1
  35. package/dist/services/kubernetes/api.js +36 -75
  36. package/dist/services/kubernetes/api.js.map +1 -1
  37. package/dist/services/kubernetes/index.d.ts.map +1 -1
  38. package/dist/services/kubernetes/index.js +36 -37
  39. package/dist/services/kubernetes/index.js.map +1 -1
  40. package/dist/types.gen.d.ts +1002 -1056
  41. package/dist/types.gen.d.ts.map +1 -1
  42. package/dist/zod.gen.d.ts +1775 -1563
  43. package/dist/zod.gen.d.ts.map +1 -1
  44. package/dist/zod.gen.js +506 -378
  45. package/dist/zod.gen.js.map +1 -1
  46. package/package.json +10 -15
package/dist/sdk.gen.js CHANGED
@@ -1,104 +1,69 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { formDataBodySerializer } from './client';
3
3
  import { client } from './client.gen';
4
- export class BillingService {
4
+ export class UsersService {
5
5
  /**
6
- * Get billing usage information.
7
- *
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.
9
- *
6
+ * Get a list of organizations the user belongs to. Used during authentication process.
10
7
  */
11
- static getUsage(options) {
12
- return (options?.client ?? client).get({ url: '/billing/usage', ...options });
8
+ static listUserOrganizations(options) {
9
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
13
10
  }
14
11
  /**
15
- * Get Stripe client secret.
16
- *
17
- * 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.
12
+ * List users in organization.
18
13
  *
19
- */
20
- static getPaymentMethodSecret(options) {
21
- return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
22
- }
23
- /**
24
- * List organization payment methods.
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.
25
15
  *
26
- * 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.
16
+ * This endpoint is available to all users in the organization.
27
17
  *
28
18
  */
29
- static listPaymentMethods(options) {
30
- return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
19
+ static listUsers(options) {
20
+ return (options?.client ?? client).get({ url: '/users', ...options });
31
21
  }
32
22
  /**
33
- * Set the default payment method.
23
+ * Create a new user.
34
24
  *
35
- * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
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.
36
26
  *
37
27
  */
38
- static setDefaultPaymentMethod(options) {
39
- return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...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
+ }
36
+ });
40
37
  }
41
38
  /**
42
- * Delete a payment method.
39
+ * Delete user by id.
43
40
  *
44
- * 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.
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.
45
42
  *
46
43
  */
47
- static deletePaymentMethod(options) {
48
- return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
44
+ static deleteUser(options) {
45
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
49
46
  }
50
47
  /**
51
- * List issued invoices.
52
- *
53
- * 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.
48
+ * Get user profile information by id.
54
49
  *
55
- */
56
- static listInvoices(options) {
57
- return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
58
- }
59
- /**
60
- * Get organization contact and billing address information.
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.
61
51
  *
62
- * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
52
+ * This endpoint is available to all users in the organization.
63
53
  *
64
54
  */
65
- static getContact(options) {
66
- return (options?.client ?? client).get({ url: '/billing/contact', ...options });
55
+ static getUser(options) {
56
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
67
57
  }
68
58
  /**
69
- * Update organization contact information and billing address.
59
+ * Update user profile information.
70
60
  *
71
- * 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.
72
62
  *
73
63
  */
74
- static updateContact(options) {
64
+ static updateUser(options) {
75
65
  return (options.client ?? client).put({
76
- url: '/billing/contact',
77
- ...options,
78
- headers: {
79
- 'Content-Type': 'application/json',
80
- ...options.headers
81
- }
82
- });
83
- }
84
- /**
85
- * Get applied promotional credits
86
- *
87
- * 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.
88
- *
89
- */
90
- static getCredits(options) {
91
- return (options?.client ?? client).get({ url: '/billing/credits', ...options });
92
- }
93
- /**
94
- * Redeem promotional credits code.
95
- *
96
- * 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.
97
- *
98
- */
99
- static redeemCredits(options) {
100
- return (options.client ?? client).post({
101
- url: '/billing/credits',
66
+ url: '/users/{user_id}',
102
67
  ...options,
103
68
  headers: {
104
69
  'Content-Type': 'application/json',
@@ -107,29 +72,27 @@ export class BillingService {
107
72
  });
108
73
  }
109
74
  }
110
- export class ClustersService {
75
+ export class TokensService {
111
76
  /**
112
- * List charts.
113
- *
114
- * Returns a list of charts in the cluster.
77
+ * List access tokens in organization.
115
78
  *
116
- * 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.
117
80
  *
118
81
  */
119
- static listCharts(options) {
120
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
82
+ static listTokens(options) {
83
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
121
84
  }
122
85
  /**
123
- * Create a new chart.
86
+ * Create a new access token.
124
87
  *
125
- * Create a new chart deployment.
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.
126
89
  *
127
90
  * This endpoint is available to administrators of the organization only.
128
91
  *
129
92
  */
130
- static createChart(options) {
93
+ static createToken(options) {
131
94
  return (options.client ?? client).post({
132
- url: '/clusters/{cluster_id}/charts',
95
+ url: '/tokens',
133
96
  ...options,
134
97
  headers: {
135
98
  'Content-Type': 'application/json',
@@ -138,38 +101,34 @@ export class ClustersService {
138
101
  });
139
102
  }
140
103
  /**
141
- * Permanently delete the chart deployment from the cluster.
142
- *
143
- * This endpoint will permanently delete chart. This operation cannot be undone.
104
+ * Permanently delete access token.
144
105
  *
145
- * This endpoint is available to administrators of the organization only.
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.
146
107
  *
147
108
  */
148
- static deleteChart(options) {
149
- return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
109
+ static deleteToken(options) {
110
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
150
111
  }
151
112
  /**
152
- * Get chart information.
153
- *
154
- * Returns the details of the chart deployment.
113
+ * Get access token information.
155
114
  *
156
- * This endpoint is available to all users in the organization.
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.
157
116
  *
158
117
  */
159
- static getChart(options) {
160
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
118
+ static getToken(options) {
119
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
161
120
  }
162
121
  /**
163
- * Update chart information.
122
+ * Update access token information.
164
123
  *
165
- * This endpoint allows you to update the values of a 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.
166
125
  *
167
126
  * This endpoint is available to administrators of the organization only.
168
127
  *
169
128
  */
170
- static updateChart(options) {
129
+ static updateToken(options) {
171
130
  return (options.client ?? client).put({
172
- url: '/clusters/{cluster_id}/charts/{chart_name}',
131
+ url: '/tokens/{token_id}',
173
132
  ...options,
174
133
  headers: {
175
134
  'Content-Type': 'application/json',
@@ -178,106 +137,108 @@ export class ClustersService {
178
137
  });
179
138
  }
180
139
  /**
181
- * List fleets.
140
+ * Regenerate access token secret key.
182
141
  *
183
- * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
142
+ * Generates a new access token secret. Old secret will not be valid anymore.
143
+ */
144
+ static regenerateToken(options) {
145
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
146
+ }
147
+ }
148
+ export class TicketsService {
149
+ /**
150
+ * List tickets for the current organization.
184
151
  *
185
- * This endpoint is available to all users in the organization.
152
+ * Returns all tickets belonging to the caller's organization, newest first.
186
153
  *
187
154
  */
188
- static listFleets(options) {
189
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
155
+ static listTickets(options) {
156
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
190
157
  }
191
158
  /**
192
- * Create a new fleet.
193
- *
194
- * 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.
159
+ * Create a new support ticket.
195
160
  *
196
- * 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` and `grant_support_access`, plus up to 3 `attachments` files (10 MB max each).
197
162
  *
198
163
  */
199
- static createFleet(options) {
164
+ static createTicket(options) {
200
165
  return (options.client ?? client).post({
201
- url: '/clusters/{cluster_id}/fleets',
166
+ ...formDataBodySerializer,
167
+ url: '/tickets',
202
168
  ...options,
203
169
  headers: {
204
- 'Content-Type': 'application/json',
170
+ 'Content-Type': null,
205
171
  ...options.headers
206
172
  }
207
173
  });
208
174
  }
209
175
  /**
210
- * Permanently delete fleet.
211
- *
212
- * 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.
176
+ * Close a ticket (soft close).
213
177
  *
214
- * This endpoint is available to administrators of the organization only.
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.
215
179
  *
216
180
  */
217
- static deleteFleet(options) {
218
- return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
181
+ static closeTicket(options) {
182
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
219
183
  }
220
184
  /**
221
- * Get fleet information.
222
- *
223
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
224
- *
225
- * This endpoint is available to all users in the organization.
226
- *
185
+ * Get a ticket and its messages.
227
186
  */
228
- static getFleet(options) {
229
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
187
+ static getTicket(options) {
188
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
230
189
  }
231
190
  /**
232
- * Update fleet information.
191
+ * Grant Cloudfleet support access for a ticket.
233
192
  *
234
- * This endpoint allows you to update fleet details.
193
+ * Grants Cloudfleet support staff access to the organization's resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed. Idempotent: granting again keeps the original grant. Returns 409 if the ticket is closed.
235
194
  *
236
- * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
195
+ */
196
+ static grantTicketSupportAccess(options) {
197
+ return (options.client ?? client).put({ url: '/tickets/{ticket_id}/support-access', ...options });
198
+ }
199
+ /**
200
+ * Append a customer reply to a ticket.
237
201
  *
238
- * This endpoint is available to administrators of the organization only.
202
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
239
203
  *
240
204
  */
241
- static updateFleet(options) {
242
- return (options.client ?? client).put({
243
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
205
+ static replyTicket(options) {
206
+ return (options.client ?? client).post({
207
+ ...formDataBodySerializer,
208
+ url: '/tickets/{ticket_id}/messages',
244
209
  ...options,
245
210
  headers: {
246
- 'Content-Type': 'application/json',
211
+ 'Content-Type': null,
247
212
  ...options.headers
248
213
  }
249
214
  });
250
215
  }
251
216
  /**
252
- * Query Kubernetes cluster API
253
- *
254
- * 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.
217
+ * Download a ticket attachment.
255
218
  */
256
- static queryCluster(options) {
257
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
219
+ static getTicketAttachment(options) {
220
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
258
221
  }
222
+ }
223
+ export class RoadmapService {
259
224
  /**
260
- * List clusters.
225
+ * List roadmap items.
261
226
  *
262
- * Returns a list of clusters under the current organization.
263
- *
264
- * This endpoint is available to all users in the organization.
227
+ * Returns the published roadmap items, newest first, each with your own vote. Votes of other users are not returned.
265
228
  *
266
229
  */
267
- static listClusters(options) {
268
- return (options?.client ?? client).get({ url: '/clusters', ...options });
230
+ static listRoadmap(options) {
231
+ return (options?.client ?? client).get({ url: '/roadmap', ...options });
269
232
  }
270
233
  /**
271
- * Create a new cluster.
272
- *
273
- * 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.
234
+ * Suggest a new roadmap item.
274
235
  *
275
- * This endpoint is available to administrators of the organization only.
236
+ * Submits a suggestion in one or two sentences, with your up vote on it. Suggestions are reviewed by the Cloudfleet team before they appear on the roadmap.
276
237
  *
277
238
  */
278
- static createCluster(options) {
239
+ static suggestRoadmap(options) {
279
240
  return (options.client ?? client).post({
280
- url: '/clusters',
241
+ url: '/roadmap',
281
242
  ...options,
282
243
  headers: {
283
244
  'Content-Type': 'application/json',
@@ -286,38 +247,20 @@ export class ClustersService {
286
247
  });
287
248
  }
288
249
  /**
289
- * Permanently delete cluster.
290
- *
291
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
292
- *
293
- * This endpoint is available to administrators of the organization only.
294
- *
295
- */
296
- static deleteCluster(options) {
297
- return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
298
- }
299
- /**
300
- * Get cluster information.
301
- *
302
- * Returns cluster details.
303
- *
304
- * This endpoint is available to all users in the organization.
305
- *
250
+ * Remove your vote from a roadmap item.
306
251
  */
307
- static getCluster(options) {
308
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
252
+ static unvoteRoadmap(options) {
253
+ return (options.client ?? client).delete({ url: '/roadmap/{item_id}/vote', ...options });
309
254
  }
310
255
  /**
311
- * Update cluster information.
312
- *
313
- * This endpoint allows you to update cluster details such as name, tier, and Kubernetes version. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
256
+ * Vote on a roadmap item.
314
257
  *
315
- * This endpoint is available to administrators of the organization only.
258
+ * Sets your vote on a roadmap item: -1 (down), 1 (up), or 2 (double up). Replaces any previous vote you cast on the item.
316
259
  *
317
260
  */
318
- static updateCluster(options) {
261
+ static voteRoadmap(options) {
319
262
  return (options.client ?? client).put({
320
- url: '/clusters/{cluster_id}',
263
+ url: '/roadmap/{item_id}/vote',
321
264
  ...options,
322
265
  headers: {
323
266
  'Content-Type': 'application/json',
@@ -325,85 +268,72 @@ export class ClustersService {
325
268
  }
326
269
  });
327
270
  }
271
+ }
272
+ export class RegistryService {
328
273
  /**
329
- * Node join information for the cluster
274
+ * List repositories
330
275
  *
331
- * 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.
276
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
332
277
  *
333
278
  */
334
- static getJoinInformation(options) {
335
- return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
279
+ static listRepositories(options) {
280
+ return (options?.client ?? client).get({ url: '/registry', ...options });
336
281
  }
337
- }
338
- export class InvitesService {
339
282
  /**
340
- * List invites.
341
- *
342
- * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
343
- *
344
- */
345
- static listInvites(options) {
346
- return (options?.client ?? client).get({ url: '/invites', ...options });
347
- }
348
- /**
349
- * Create a new invite.
283
+ * List tags for a repository
350
284
  *
351
- * 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.
285
+ * 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.
352
286
  *
353
287
  */
354
- static createInvite(options) {
355
- return (options.client ?? client).post({
356
- url: '/invites',
357
- ...options,
358
- headers: {
359
- 'Content-Type': 'application/json',
360
- ...options.headers
361
- }
362
- });
288
+ static listTags(options) {
289
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
363
290
  }
364
291
  /**
365
- * Get invite information.
292
+ * Delete tag
366
293
  *
367
- * 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.
294
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
368
295
  *
369
296
  */
370
- static getInvite(options) {
371
- return (options.client ?? client).get({ url: '/invites/{code}', ...options });
297
+ static deleteTag(options) {
298
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
372
299
  }
373
300
  /**
374
- * Permanently delete invite.
301
+ * Get tag details
375
302
  *
376
- * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
303
+ * 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.
377
304
  *
378
305
  */
379
- static deleteInvite(options) {
380
- return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
306
+ static getTag(options) {
307
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
381
308
  }
382
309
  }
383
- export class ChartsMarketplaceService {
310
+ export class OrganizationService {
384
311
  /**
385
- * List chart listings available in the marketplace.
312
+ * Get organization information.
386
313
  *
387
- * Returns a list of available charts in the marketplace.
314
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
388
315
  *
389
316
  * This endpoint is available to all users in the organization.
390
317
  *
391
318
  */
392
- static listMarketplaceCharts(options) {
393
- return (options?.client ?? client).get({ url: '/marketplace', ...options });
319
+ static getOrganization(options) {
320
+ return (options?.client ?? client).get({ url: '/organization', ...options });
394
321
  }
395
322
  /**
396
- * Get chart files for a specific version channel.
397
- *
398
- * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
399
- *
400
- * 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.
323
+ * Create a new organization / Cloudfleet account signup.
401
324
  *
402
- * This endpoint is available to all users in the organization.
325
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
403
326
  *
404
327
  */
405
- static getMarketplaceChartFiles(options) {
406
- return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
328
+ static createOrganization(options) {
329
+ return (options.client ?? client).post({
330
+ url: '/organization',
331
+ ...options,
332
+ headers: {
333
+ 'Content-Type': 'application/json',
334
+ ...options.headers
335
+ }
336
+ });
407
337
  }
408
338
  }
409
339
  export class McpService {
@@ -423,27 +353,25 @@ export class McpService {
423
353
  });
424
354
  }
425
355
  }
426
- export class OrganizationService {
356
+ export class InvitesService {
427
357
  /**
428
- * Get organization information.
429
- *
430
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
358
+ * List invites.
431
359
  *
432
- * This endpoint is available to all users in the organization.
360
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
433
361
  *
434
362
  */
435
- static getOrganization(options) {
436
- return (options?.client ?? client).get({ url: '/organization', ...options });
363
+ static listInvites(options) {
364
+ return (options?.client ?? client).get({ url: '/invites', ...options });
437
365
  }
438
366
  /**
439
- * Create a new organization / Cloudfleet account signup.
367
+ * Create a new invite.
440
368
  *
441
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
369
+ * 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.
442
370
  *
443
371
  */
444
- static createOrganization(options) {
372
+ static createInvite(options) {
445
373
  return (options.client ?? client).post({
446
- url: '/organization',
374
+ url: '/invites',
447
375
  ...options,
448
376
  headers: {
449
377
  'Content-Type': 'application/json',
@@ -451,132 +379,151 @@ export class OrganizationService {
451
379
  }
452
380
  });
453
381
  }
454
- }
455
- export class RegistryService {
456
382
  /**
457
- * List repositories
383
+ * Get invite information.
458
384
  *
459
- * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
385
+ * 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.
460
386
  *
461
387
  */
462
- static listRepositories(options) {
463
- return (options?.client ?? client).get({ url: '/registry', ...options });
388
+ static getInvite(options) {
389
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
464
390
  }
465
391
  /**
466
- * List tags for a repository
392
+ * Permanently delete invite.
467
393
  *
468
- * 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.
394
+ * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
469
395
  *
470
396
  */
471
- static listTags(options) {
472
- return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
397
+ static deleteInvite(options) {
398
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
473
399
  }
400
+ }
401
+ export class FeedbackService {
474
402
  /**
475
- * Delete tag
403
+ * Send feedback to the Cloudfleet team
476
404
  *
477
- * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
405
+ * Sends feedback straight to the Cloudfleet team: papercuts the team can act on from the note alone, such as what was useful, confusing, wrong or missing. This is not a support channel: for a problem that needs back-and-forth or debugging, open a support ticket with `POST /tickets` instead.
478
406
  *
479
407
  */
480
- static deleteTag(options) {
481
- return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
408
+ static sendFeedback(options) {
409
+ return (options.client ?? client).post({
410
+ url: '/feedback',
411
+ ...options,
412
+ headers: {
413
+ 'Content-Type': 'application/json',
414
+ ...options.headers
415
+ }
416
+ });
482
417
  }
418
+ }
419
+ export class ClustersService {
483
420
  /**
484
- * Get tag details
485
- *
486
- * 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.
421
+ * Query Kubernetes cluster API
487
422
  *
423
+ * 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.
488
424
  */
489
- static getTag(options) {
490
- return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
425
+ static queryCluster(options) {
426
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
491
427
  }
492
- }
493
- export class TicketsService {
494
428
  /**
495
- * List tickets for the current organization.
429
+ * List fleets.
496
430
  *
497
- * Returns all tickets belonging to the caller's organization, newest first.
431
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
432
+ *
433
+ * This endpoint is available to all users in the organization.
498
434
  *
499
435
  */
500
- static listTickets(options) {
501
- return (options?.client ?? client).get({ url: '/tickets', ...options });
436
+ static listFleets(options) {
437
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
502
438
  }
503
439
  /**
504
- * Create a new support ticket.
440
+ * Create a new fleet.
505
441
  *
506
- * 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).
442
+ * 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.
443
+ *
444
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
445
+ *
446
+ * This endpoint is available to administrators of the organization only.
507
447
  *
508
448
  */
509
- static createTicket(options) {
449
+ static createFleet(options) {
510
450
  return (options.client ?? client).post({
511
- ...formDataBodySerializer,
512
- url: '/tickets',
451
+ url: '/clusters/{cluster_id}/fleets',
513
452
  ...options,
514
453
  headers: {
515
- 'Content-Type': null,
454
+ 'Content-Type': 'application/json',
516
455
  ...options.headers
517
456
  }
518
457
  });
519
458
  }
520
459
  /**
521
- * Close a ticket (soft close).
460
+ * Permanently delete fleet.
522
461
  *
523
- * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
462
+ * 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.
463
+ *
464
+ * 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.
465
+ *
466
+ * This endpoint is available to administrators of the organization only.
524
467
  *
525
468
  */
526
- static closeTicket(options) {
527
- return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
469
+ static deleteFleet(options) {
470
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
528
471
  }
529
472
  /**
530
- * Get a ticket and its messages.
473
+ * Get fleet information.
474
+ *
475
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
476
+ *
477
+ * This endpoint is available to all users in the organization.
478
+ *
531
479
  */
532
- static getTicket(options) {
533
- return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
480
+ static getFleet(options) {
481
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
534
482
  }
535
483
  /**
536
- * Append a customer reply to a ticket.
484
+ * Update fleet information.
537
485
  *
538
- * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
486
+ * This endpoint allows you to update fleet details.
487
+ *
488
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
489
+ *
490
+ * 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).
491
+ *
492
+ * This endpoint is available to administrators of the organization only.
539
493
  *
540
494
  */
541
- static replyTicket(options) {
542
- return (options.client ?? client).post({
543
- ...formDataBodySerializer,
544
- url: '/tickets/{ticket_id}/messages',
495
+ static updateFleet(options) {
496
+ return (options.client ?? client).put({
497
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
545
498
  ...options,
546
499
  headers: {
547
- 'Content-Type': null,
500
+ 'Content-Type': 'application/json',
548
501
  ...options.headers
549
502
  }
550
503
  });
551
504
  }
552
505
  /**
553
- * Download a ticket attachment.
554
- */
555
- static getTicketAttachment(options) {
556
- return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
557
- }
558
- }
559
- export class TokensService {
560
- /**
561
- * List access tokens in organization.
506
+ * List clusters.
562
507
  *
563
- * 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.
508
+ * Returns a list of clusters under the current organization.
509
+ *
510
+ * This endpoint is available to all users in the organization.
564
511
  *
565
512
  */
566
- static listTokens(options) {
567
- return (options?.client ?? client).get({ url: '/tokens', ...options });
513
+ static listClusters(options) {
514
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
568
515
  }
569
516
  /**
570
- * Create a new access token.
517
+ * Create a new cluster.
571
518
  *
572
- * 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.
519
+ * 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.
573
520
  *
574
521
  * This endpoint is available to administrators of the organization only.
575
522
  *
576
523
  */
577
- static createToken(options) {
524
+ static createCluster(options) {
578
525
  return (options.client ?? client).post({
579
- url: '/tokens',
526
+ url: '/clusters',
580
527
  ...options,
581
528
  headers: {
582
529
  'Content-Type': 'application/json',
@@ -585,34 +532,42 @@ export class TokensService {
585
532
  });
586
533
  }
587
534
  /**
588
- * Permanently delete access token.
535
+ * Permanently delete cluster.
589
536
  *
590
- * 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.
537
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
538
+ *
539
+ * 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.
540
+ *
541
+ * This endpoint is available to administrators of the organization only.
591
542
  *
592
543
  */
593
- static deleteToken(options) {
594
- return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
544
+ static deleteCluster(options) {
545
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
595
546
  }
596
547
  /**
597
- * Get access token information.
548
+ * Get cluster information.
598
549
  *
599
- * 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.
550
+ * Returns cluster details.
551
+ *
552
+ * This endpoint is available to all users in the organization.
600
553
  *
601
554
  */
602
- static getToken(options) {
603
- return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
555
+ static getCluster(options) {
556
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
604
557
  }
605
558
  /**
606
- * Update access token information.
559
+ * Update cluster information.
607
560
  *
608
- * 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.
561
+ * 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.
562
+ *
563
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
609
564
  *
610
565
  * This endpoint is available to administrators of the organization only.
611
566
  *
612
567
  */
613
- static updateToken(options) {
568
+ static updateCluster(options) {
614
569
  return (options.client ?? client).put({
615
- url: '/tokens/{token_id}',
570
+ url: '/clusters/{cluster_id}',
616
571
  ...options,
617
572
  headers: {
618
573
  'Content-Type': 'application/json',
@@ -621,77 +576,122 @@ export class TokensService {
621
576
  });
622
577
  }
623
578
  /**
624
- * Regenerate access token secret key.
579
+ * Node join information for the cluster
580
+ *
581
+ * 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.
625
582
  *
626
- * Generates a new access token secret. Old secret will not be valid anymore.
627
583
  */
628
- static regenerateToken(options) {
629
- return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
584
+ static getJoinInformation(options) {
585
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
630
586
  }
631
587
  }
632
- export class UsersService {
588
+ export class BillingService {
633
589
  /**
634
- * Get a list of organizations the user belongs to. Used during authentication process.
590
+ * Get billing usage information.
591
+ *
592
+ * 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.
593
+ *
635
594
  */
636
- static listUserOrganizations(options) {
637
- return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
595
+ static getUsage(options) {
596
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
638
597
  }
639
598
  /**
640
- * List users in organization.
599
+ * Get Stripe client secret.
641
600
  *
642
- * 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.
601
+ * 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.
643
602
  *
644
- * This endpoint is available to all users in the organization.
603
+ */
604
+ static getPaymentMethodSecret(options) {
605
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
606
+ }
607
+ /**
608
+ * List organization payment methods.
609
+ *
610
+ * 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.
645
611
  *
646
612
  */
647
- static listUsers(options) {
648
- return (options?.client ?? client).get({ url: '/users', ...options });
613
+ static listPaymentMethods(options) {
614
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
649
615
  }
650
616
  /**
651
- * Create a new user.
617
+ * Set the default payment method.
652
618
  *
653
- * 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.
619
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
654
620
  *
655
621
  */
656
- static createUser(options) {
657
- return (options.client ?? client).post({
658
- url: '/users',
659
- ...options,
660
- headers: {
661
- 'Content-Type': 'application/json',
662
- ...options.headers
663
- }
664
- });
622
+ static setDefaultPaymentMethod(options) {
623
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
665
624
  }
666
625
  /**
667
- * Delete user by id.
626
+ * Delete a payment method.
668
627
  *
669
- * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
628
+ * 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.
670
629
  *
671
630
  */
672
- static deleteUser(options) {
673
- return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
631
+ static deletePaymentMethod(options) {
632
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
674
633
  }
675
634
  /**
676
- * Get user profile information by id.
635
+ * List issued invoices.
677
636
  *
678
- * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
637
+ * 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.
679
638
  *
680
- * This endpoint is available to all users in the organization.
639
+ */
640
+ static listInvoices(options) {
641
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
642
+ }
643
+ /**
644
+ * Pay the organization's open invoices.
645
+ *
646
+ * Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
681
647
  *
682
648
  */
683
- static getUser(options) {
684
- return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
649
+ static payOpenInvoices(options) {
650
+ return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
685
651
  }
686
652
  /**
687
- * Update user profile information.
653
+ * Get organization contact and billing address information.
688
654
  *
689
- * 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.
655
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
690
656
  *
691
657
  */
692
- static updateUser(options) {
658
+ static getContact(options) {
659
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
660
+ }
661
+ /**
662
+ * Update organization contact information and billing address.
663
+ *
664
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
665
+ *
666
+ */
667
+ static updateContact(options) {
693
668
  return (options.client ?? client).put({
694
- url: '/users/{user_id}',
669
+ url: '/billing/contact',
670
+ ...options,
671
+ headers: {
672
+ 'Content-Type': 'application/json',
673
+ ...options.headers
674
+ }
675
+ });
676
+ }
677
+ /**
678
+ * Get applied promotional credits
679
+ *
680
+ * 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.
681
+ *
682
+ */
683
+ static getCredits(options) {
684
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
685
+ }
686
+ /**
687
+ * Redeem promotional credits code.
688
+ *
689
+ * 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.
690
+ *
691
+ */
692
+ static redeemCredits(options) {
693
+ return (options.client ?? client).post({
694
+ url: '/billing/credits',
695
695
  ...options,
696
696
  headers: {
697
697
  'Content-Type': 'application/json',