@cloudfleet/sdk 0.0.1-cdd334c → 0.0.1-d06768f

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