@cloudfleet/sdk 0.0.1-41d4ab0 → 0.0.1-43887de

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.
package/dist/sdk.gen.js CHANGED
@@ -1,60 +1,33 @@
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
- /**
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
- *
9
- */
10
- static getUsage(options) {
11
- return (options?.client ?? client).get({ url: '/billing/usage', ...options });
12
- }
13
- /**
14
- * Get organization payment method information.
15
- *
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.
17
- *
18
- */
19
- static getPaymentMethod(options) {
20
- return (options?.client ?? client).get({ url: '/billing/payment-method', ...options });
21
- }
4
+ export class UsersService {
22
5
  /**
23
- * Get Stripe client secret.
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.
26
- *
6
+ * Get a list of organizations the user belongs to. Used during authentication process.
27
7
  */
28
- static getPaymentMethodSecret(options) {
29
- return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
8
+ static listUserOrganizations(options) {
9
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
30
10
  }
31
11
  /**
32
- * List issued invoices.
33
- *
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.
12
+ * List users in organization.
35
13
  *
36
- */
37
- static listInvoices(options) {
38
- return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
39
- }
40
- /**
41
- * Get organization contact and billing address information.
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.
42
15
  *
43
- * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
16
+ * This endpoint is available to all users in the organization.
44
17
  *
45
18
  */
46
- static getContact(options) {
47
- return (options?.client ?? client).get({ url: '/billing/contact', ...options });
19
+ static listUsers(options) {
20
+ return (options?.client ?? client).get({ url: '/users', ...options });
48
21
  }
49
22
  /**
50
- * Update organization contact information and billing address.
23
+ * Create a new user.
51
24
  *
52
- * This endpoint allows you to update organization details with its contact information. 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.
53
26
  *
54
27
  */
55
- static updateContact(options) {
56
- return (options.client ?? client).put({
57
- url: '/billing/contact',
28
+ static createUser(options) {
29
+ return (options.client ?? client).post({
30
+ url: '/users',
58
31
  ...options,
59
32
  headers: {
60
33
  'Content-Type': 'application/json',
@@ -63,23 +36,34 @@ export class BillingService {
63
36
  });
64
37
  }
65
38
  /**
66
- * Get applied promotional credits
39
+ * Delete user by id.
67
40
  *
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.
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.
69
42
  *
70
43
  */
71
- static getCredits(options) {
72
- return (options?.client ?? client).get({ url: '/billing/credits', ...options });
44
+ static deleteUser(options) {
45
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
73
46
  }
74
47
  /**
75
- * Redeem promotional credits code.
48
+ * Get user profile information by id.
76
49
  *
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.
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.
78
53
  *
79
54
  */
80
- static redeemCredits(options) {
81
- return (options.client ?? client).post({
82
- url: '/billing/credits',
55
+ static getUser(options) {
56
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
57
+ }
58
+ /**
59
+ * Update user profile information.
60
+ *
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.
62
+ *
63
+ */
64
+ static updateUser(options) {
65
+ return (options.client ?? client).put({
66
+ url: '/users/{user_id}',
83
67
  ...options,
84
68
  headers: {
85
69
  'Content-Type': 'application/json',
@@ -88,29 +72,27 @@ export class BillingService {
88
72
  });
89
73
  }
90
74
  }
91
- export class ClustersService {
75
+ export class TokensService {
92
76
  /**
93
- * List charts.
94
- *
95
- * Returns a list of charts in the cluster.
77
+ * List access tokens in organization.
96
78
  *
97
- * 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.
98
80
  *
99
81
  */
100
- static listCharts(options) {
101
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
82
+ static listTokens(options) {
83
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
102
84
  }
103
85
  /**
104
- * Create a new chart.
86
+ * Create a new access token.
105
87
  *
106
- * 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.
107
89
  *
108
90
  * This endpoint is available to administrators of the organization only.
109
91
  *
110
92
  */
111
- static createChart(options) {
93
+ static createToken(options) {
112
94
  return (options.client ?? client).post({
113
- url: '/clusters/{cluster_id}/charts',
95
+ url: '/tokens',
114
96
  ...options,
115
97
  headers: {
116
98
  'Content-Type': 'application/json',
@@ -119,38 +101,34 @@ export class ClustersService {
119
101
  });
120
102
  }
121
103
  /**
122
- * Permanently delete the chart deployment from the cluster.
123
- *
124
- * This endpoint will permanently delete chart. This operation cannot be undone.
104
+ * Permanently delete access token.
125
105
  *
126
- * 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.
127
107
  *
128
108
  */
129
- static deleteChart(options) {
130
- 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 });
131
111
  }
132
112
  /**
133
- * Get chart information.
134
- *
135
- * Returns the details of the chart deployment.
113
+ * Get access token information.
136
114
  *
137
- * 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.
138
116
  *
139
117
  */
140
- static getChart(options) {
141
- 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 });
142
120
  }
143
121
  /**
144
- * Update chart information.
122
+ * Update access token information.
145
123
  *
146
- * 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.
147
125
  *
148
126
  * This endpoint is available to administrators of the organization only.
149
127
  *
150
128
  */
151
- static updateChart(options) {
129
+ static updateToken(options) {
152
130
  return (options.client ?? client).put({
153
- url: '/clusters/{cluster_id}/charts/{chart_name}',
131
+ url: '/tokens/{token_id}',
154
132
  ...options,
155
133
  headers: {
156
134
  'Content-Type': 'application/json',
@@ -159,108 +137,108 @@ export class ClustersService {
159
137
  });
160
138
  }
161
139
  /**
162
- * List fleets.
140
+ * Regenerate access token secret key.
163
141
  *
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.
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.
165
151
  *
166
- * This endpoint is available to all users in the organization.
152
+ * Returns all tickets belonging to the caller's organization, newest first.
167
153
  *
168
154
  */
169
- static listFleets(options) {
170
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
155
+ static listTickets(options) {
156
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
171
157
  }
172
158
  /**
173
- * Create a new fleet.
174
- *
175
- * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
159
+ * Create a new support ticket.
176
160
  *
177
- * 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).
178
162
  *
179
163
  */
180
- static createFleet(options) {
164
+ static createTicket(options) {
181
165
  return (options.client ?? client).post({
182
- url: '/clusters/{cluster_id}/fleets',
166
+ ...formDataBodySerializer,
167
+ url: '/tickets',
183
168
  ...options,
184
169
  headers: {
185
- 'Content-Type': 'application/json',
170
+ 'Content-Type': null,
186
171
  ...options.headers
187
172
  }
188
173
  });
189
174
  }
190
175
  /**
191
- * Permanently delete fleet.
176
+ * Close a ticket (soft close).
192
177
  *
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.
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.
196
179
  *
197
180
  */
198
- static deleteFleet(options) {
199
- 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 });
200
183
  }
201
184
  /**
202
- * Get fleet information.
203
- *
204
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
205
- *
206
- * This endpoint is available to all users in the organization.
207
- *
185
+ * Get a ticket and its messages.
208
186
  */
209
- static getFleet(options) {
210
- 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 });
211
189
  }
212
190
  /**
213
- * Update fleet information.
214
- *
215
- * This endpoint allows you to update fleet details.
191
+ * Grant Cloudfleet support access for a ticket.
216
192
  *
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`.
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.
218
194
  *
219
- * 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.
220
201
  *
221
- * 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.
222
203
  *
223
204
  */
224
- static updateFleet(options) {
225
- return (options.client ?? client).put({
226
- 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',
227
209
  ...options,
228
210
  headers: {
229
- 'Content-Type': 'application/json',
211
+ 'Content-Type': null,
230
212
  ...options.headers
231
213
  }
232
214
  });
233
215
  }
234
216
  /**
235
- * Query Kubernetes cluster API
236
- *
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.
217
+ * Download a ticket attachment.
238
218
  */
239
- static queryCluster(options) {
240
- 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 });
241
221
  }
222
+ }
223
+ export class RoadmapService {
242
224
  /**
243
- * List clusters.
225
+ * List roadmap items.
244
226
  *
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.
246
- *
247
- * 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.
248
228
  *
249
229
  */
250
- static listClusters(options) {
251
- return (options?.client ?? client).get({ url: '/clusters', ...options });
230
+ static listRoadmap(options) {
231
+ return (options?.client ?? client).get({ url: '/roadmap', ...options });
252
232
  }
253
233
  /**
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.
234
+ * Suggest a new roadmap item.
257
235
  *
258
- * 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.
259
237
  *
260
238
  */
261
- static createCluster(options) {
239
+ static suggestRoadmap(options) {
262
240
  return (options.client ?? client).post({
263
- url: '/clusters',
241
+ url: '/roadmap',
264
242
  ...options,
265
243
  headers: {
266
244
  'Content-Type': 'application/json',
@@ -269,38 +247,20 @@ export class ClustersService {
269
247
  });
270
248
  }
271
249
  /**
272
- * Permanently delete cluster.
273
- *
274
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
275
- *
276
- * This endpoint is available to administrators of the organization only.
277
- *
278
- */
279
- static deleteCluster(options) {
280
- return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
281
- }
282
- /**
283
- * Get cluster information.
284
- *
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.
286
- *
287
- * This endpoint is available to all users in the organization.
288
- *
250
+ * Remove your vote from a roadmap item.
289
251
  */
290
- static getCluster(options) {
291
- 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 });
292
254
  }
293
255
  /**
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.
256
+ * Vote on a roadmap item.
297
257
  *
298
- * 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.
299
259
  *
300
260
  */
301
- static updateCluster(options) {
261
+ static voteRoadmap(options) {
302
262
  return (options.client ?? client).put({
303
- url: '/clusters/{cluster_id}',
263
+ url: '/roadmap/{item_id}/vote',
304
264
  ...options,
305
265
  headers: {
306
266
  'Content-Type': 'application/json',
@@ -308,68 +268,89 @@ export class ClustersService {
308
268
  }
309
269
  });
310
270
  }
271
+ }
272
+ export class RegistryService {
311
273
  /**
312
- * Get the cluster's certificate authority in PEM format.
274
+ * List repositories
313
275
  *
314
- * Returns the root certificate authority of the Kubernetes cluster as a PEM-encoded document. This endpoint does not require authentication, similar to the cluster's JWKs endpoint, since the CA certificate is public information used by clients to establish trust with the cluster's control plane.
276
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
315
277
  *
316
278
  */
317
- static getClusterCa(options) {
318
- return (options.client ?? client).get({ url: '/clusters/{cluster_id}/ca', ...options });
279
+ static listRepositories(options) {
280
+ return (options?.client ?? client).get({ url: '/registry', ...options });
319
281
  }
320
282
  /**
321
- * Node join information for the cluster
283
+ * List tags for a repository
322
284
  *
323
- * Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
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.
324
286
  *
325
287
  */
326
- static getJoinInformation(options) {
327
- return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
288
+ static listTags(options) {
289
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
328
290
  }
329
- }
330
- export class InvitesService {
331
291
  /**
332
- * List invites.
292
+ * Delete tag
333
293
  *
334
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
294
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
335
295
  *
336
296
  */
337
- static listInvites(options) {
338
- return (options?.client ?? client).get({ url: '/invites', ...options });
297
+ static deleteTag(options) {
298
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
339
299
  }
340
300
  /**
341
- * Create a new invite.
301
+ * Get tag details
342
302
  *
343
- * Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
303
+ * 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.
344
304
  *
345
305
  */
346
- static createInvite(options) {
347
- return (options.client ?? client).post({
348
- url: '/invites',
349
- ...options,
350
- headers: {
351
- 'Content-Type': 'application/json',
352
- ...options.headers
353
- }
354
- });
306
+ static getTag(options) {
307
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
355
308
  }
309
+ }
310
+ export class OrganizationService {
356
311
  /**
357
- * Get invite information.
312
+ * Get organization information.
313
+ *
314
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
358
315
  *
359
- * Returns invite details.
316
+ * This endpoint is available to all users in the organization.
360
317
  *
361
318
  */
362
- static getInvite(options) {
363
- return (options.client ?? client).get({ url: '/invites/{code}', ...options });
319
+ static getOrganization(options) {
320
+ return (options?.client ?? client).get({ url: '/organization', ...options });
364
321
  }
365
322
  /**
366
- * Permanently delete invite.
323
+ * Create a new organization / Cloudfleet account signup.
367
324
  *
368
- * Permanently deletes invite from the organization. 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.
369
326
  *
370
327
  */
371
- static deleteInvite(options) {
372
- return (options.client ?? client).delete({ url: '/invites/{email}', ...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
+ });
337
+ }
338
+ }
339
+ export class McpService {
340
+ /**
341
+ * MCP endpoint
342
+ *
343
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
344
+ */
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
+ });
373
354
  }
374
355
  }
375
356
  export class ChartsMarketplaceService {
@@ -398,15 +379,25 @@ export class ChartsMarketplaceService {
398
379
  return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
399
380
  }
400
381
  }
401
- export class McpService {
382
+ export class InvitesService {
402
383
  /**
403
- * MCP endpoint
384
+ * List invites.
385
+ *
386
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
404
387
  *
405
- * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
406
388
  */
407
- static postMcp(options) {
389
+ static listInvites(options) {
390
+ return (options?.client ?? client).get({ url: '/invites', ...options });
391
+ }
392
+ /**
393
+ * Create a new invite.
394
+ *
395
+ * 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.
396
+ *
397
+ */
398
+ static createInvite(options) {
408
399
  return (options.client ?? client).post({
409
- url: '/mcp',
400
+ url: '/invites',
410
401
  ...options,
411
402
  headers: {
412
403
  'Content-Type': 'application/json',
@@ -414,28 +405,35 @@ export class McpService {
414
405
  }
415
406
  });
416
407
  }
417
- }
418
- export class OrganizationService {
419
408
  /**
420
- * Get organization information.
409
+ * Get invite information.
421
410
  *
422
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
411
+ * 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.
423
412
  *
424
- * This endpoint is available to all users in the organization.
413
+ */
414
+ static getInvite(options) {
415
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
416
+ }
417
+ /**
418
+ * Permanently delete invite.
419
+ *
420
+ * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
425
421
  *
426
422
  */
427
- static getOrganization(options) {
428
- return (options?.client ?? client).get({ url: '/organization', ...options });
423
+ static deleteInvite(options) {
424
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
429
425
  }
426
+ }
427
+ export class FeedbackService {
430
428
  /**
431
- * Create a new organization / Cloudfleet account signup.
429
+ * Send feedback to the Cloudfleet team
432
430
  *
433
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
431
+ * Sends feedback about Cloudfleet: what was useful, confusing, wrong or missing. Feedback is read by the Cloudfleet team but gets no reply and has no status. This is not a support channel: for anything that needs an answer, open a support ticket with `POST /tickets` instead.
434
432
  *
435
433
  */
436
- static createOrganization(options) {
434
+ static sendFeedback(options) {
437
435
  return (options.client ?? client).post({
438
- url: '/organization',
436
+ url: '/feedback',
439
437
  ...options,
440
438
  headers: {
441
439
  'Content-Type': 'application/json',
@@ -444,65 +442,114 @@ export class OrganizationService {
444
442
  });
445
443
  }
446
444
  }
447
- export class RegistryService {
445
+ export class ClustersService {
448
446
  /**
449
- * List repositories
447
+ * Query Kubernetes cluster API
450
448
  *
451
- * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
449
+ * 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.
450
+ */
451
+ static queryCluster(options) {
452
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
453
+ }
454
+ /**
455
+ * List fleets.
456
+ *
457
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
458
+ *
459
+ * This endpoint is available to all users in the organization.
452
460
  *
453
461
  */
454
- static listRepositories(options) {
455
- return (options?.client ?? client).get({ url: '/registry', ...options });
462
+ static listFleets(options) {
463
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
456
464
  }
457
465
  /**
458
- * List tags for a repository
466
+ * Create a new fleet.
459
467
  *
460
- * Returns a list of tags for a specific repository, including size and metadata for each tag. This endpoint is available to all users in the organization.
468
+ * 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.
469
+ *
470
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
471
+ *
472
+ * This endpoint is available to administrators of the organization only.
461
473
  *
462
474
  */
463
- static listTags(options) {
464
- return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
475
+ static createFleet(options) {
476
+ return (options.client ?? client).post({
477
+ url: '/clusters/{cluster_id}/fleets',
478
+ ...options,
479
+ headers: {
480
+ 'Content-Type': 'application/json',
481
+ ...options.headers
482
+ }
483
+ });
465
484
  }
466
485
  /**
467
- * Delete tag
486
+ * Permanently delete fleet.
468
487
  *
469
- * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
488
+ * 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.
489
+ *
490
+ * 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.
491
+ *
492
+ * This endpoint is available to administrators of the organization only.
470
493
  *
471
494
  */
472
- static deleteTag(options) {
473
- return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
495
+ static deleteFleet(options) {
496
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
474
497
  }
475
498
  /**
476
- * Get tag details
499
+ * Get fleet information.
477
500
  *
478
- * Returns detailed information for a specific tag in a repository, including manifest details, size, and URI. This endpoint is available to all users in the organization.
501
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
502
+ *
503
+ * This endpoint is available to all users in the organization.
479
504
  *
480
505
  */
481
- static getTag(options) {
482
- return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
506
+ static getFleet(options) {
507
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
483
508
  }
484
- }
485
- export class TokensService {
486
509
  /**
487
- * List access tokens in organization.
510
+ * Update fleet information.
488
511
  *
489
- * This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
512
+ * This endpoint allows you to update fleet details.
513
+ *
514
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
515
+ *
516
+ * 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).
517
+ *
518
+ * This endpoint is available to administrators of the organization only.
490
519
  *
491
520
  */
492
- static listTokens(options) {
493
- return (options?.client ?? client).get({ url: '/tokens', ...options });
521
+ static updateFleet(options) {
522
+ return (options.client ?? client).put({
523
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
524
+ ...options,
525
+ headers: {
526
+ 'Content-Type': 'application/json',
527
+ ...options.headers
528
+ }
529
+ });
494
530
  }
495
531
  /**
496
- * Create a new access token.
532
+ * List charts.
497
533
  *
498
- * This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
534
+ * Returns a list of charts in the cluster.
535
+ *
536
+ * This endpoint is available to all users in the organization.
537
+ *
538
+ */
539
+ static listCharts(options) {
540
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
541
+ }
542
+ /**
543
+ * Create a new chart.
544
+ *
545
+ * Create a new chart deployment.
499
546
  *
500
547
  * This endpoint is available to administrators of the organization only.
501
548
  *
502
549
  */
503
- static createToken(options) {
550
+ static createChart(options) {
504
551
  return (options.client ?? client).post({
505
- url: '/tokens',
552
+ url: '/clusters/{cluster_id}/charts',
506
553
  ...options,
507
554
  headers: {
508
555
  'Content-Type': 'application/json',
@@ -511,34 +558,38 @@ export class TokensService {
511
558
  });
512
559
  }
513
560
  /**
514
- * Permanently delete access token.
561
+ * Permanently delete the chart deployment from the cluster.
515
562
  *
516
- * This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
563
+ * This endpoint will permanently delete chart. This operation cannot be undone.
564
+ *
565
+ * This endpoint is available to administrators of the organization only.
517
566
  *
518
567
  */
519
- static deleteToken(options) {
520
- return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
568
+ static deleteChart(options) {
569
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
521
570
  }
522
571
  /**
523
- * Get access token information.
572
+ * Get chart information.
524
573
  *
525
- * This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
574
+ * Returns the details of the chart deployment.
575
+ *
576
+ * This endpoint is available to all users in the organization.
526
577
  *
527
578
  */
528
- static getToken(options) {
529
- return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
579
+ static getChart(options) {
580
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
530
581
  }
531
582
  /**
532
- * Update access token information.
583
+ * Update chart information.
533
584
  *
534
- * This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
585
+ * This endpoint allows you to update the values of a chart deployment.
535
586
  *
536
587
  * This endpoint is available to administrators of the organization only.
537
588
  *
538
589
  */
539
- static updateToken(options) {
590
+ static updateChart(options) {
540
591
  return (options.client ?? client).put({
541
- url: '/tokens/{token_id}',
592
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
542
593
  ...options,
543
594
  headers: {
544
595
  'Content-Type': 'application/json',
@@ -547,41 +598,71 @@ export class TokensService {
547
598
  });
548
599
  }
549
600
  /**
550
- * Regenerate access token secret key.
601
+ * List clusters.
602
+ *
603
+ * Returns a list of clusters under the current organization.
604
+ *
605
+ * This endpoint is available to all users in the organization.
551
606
  *
552
- * Generates a new access token secret. Old secret will not be valid anymore.
553
607
  */
554
- static regenerateToken(options) {
555
- return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
608
+ static listClusters(options) {
609
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
556
610
  }
557
- }
558
- export class UsersService {
559
611
  /**
560
- * Get a list of organizations the user belongs to. Used during authentication process.
612
+ * Create a new cluster.
613
+ *
614
+ * 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.
615
+ *
616
+ * This endpoint is available to administrators of the organization only.
617
+ *
561
618
  */
562
- static listUserOrganizations(options) {
563
- return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
619
+ static createCluster(options) {
620
+ return (options.client ?? client).post({
621
+ url: '/clusters',
622
+ ...options,
623
+ headers: {
624
+ 'Content-Type': 'application/json',
625
+ ...options.headers
626
+ }
627
+ });
564
628
  }
565
629
  /**
566
- * List users in organization.
630
+ * Permanently delete cluster.
567
631
  *
568
- * Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
632
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
633
+ *
634
+ * 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.
635
+ *
636
+ * This endpoint is available to administrators of the organization only.
637
+ *
638
+ */
639
+ static deleteCluster(options) {
640
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
641
+ }
642
+ /**
643
+ * Get cluster information.
644
+ *
645
+ * Returns cluster details.
569
646
  *
570
647
  * This endpoint is available to all users in the organization.
571
648
  *
572
649
  */
573
- static listUsers(options) {
574
- return (options?.client ?? client).get({ url: '/users', ...options });
650
+ static getCluster(options) {
651
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
575
652
  }
576
653
  /**
577
- * Create a new user.
654
+ * Update cluster information.
578
655
  *
579
- * Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
656
+ * 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.
657
+ *
658
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
659
+ *
660
+ * This endpoint is available to administrators of the organization only.
580
661
  *
581
662
  */
582
- static createUser(options) {
583
- return (options.client ?? client).post({
584
- url: '/users',
663
+ static updateCluster(options) {
664
+ return (options.client ?? client).put({
665
+ url: '/clusters/{cluster_id}',
585
666
  ...options,
586
667
  headers: {
587
668
  'Content-Type': 'application/json',
@@ -590,34 +671,122 @@ export class UsersService {
590
671
  });
591
672
  }
592
673
  /**
593
- * Delete user by id.
674
+ * Node join information for the cluster
594
675
  *
595
- * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
676
+ * 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.
596
677
  *
597
678
  */
598
- static deleteUser(options) {
599
- return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
679
+ static getJoinInformation(options) {
680
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
600
681
  }
682
+ }
683
+ export class BillingService {
601
684
  /**
602
- * Get user profile information by id.
685
+ * Get billing usage information.
603
686
  *
604
- * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
687
+ * 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.
605
688
  *
606
- * This endpoint is available to all users in the organization.
689
+ */
690
+ static getUsage(options) {
691
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
692
+ }
693
+ /**
694
+ * Get Stripe client secret.
695
+ *
696
+ * 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.
607
697
  *
608
698
  */
609
- static getUser(options) {
610
- return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
699
+ static getPaymentMethodSecret(options) {
700
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
611
701
  }
612
702
  /**
613
- * Update user profile information.
703
+ * List organization payment methods.
614
704
  *
615
- * Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
705
+ * 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.
616
706
  *
617
707
  */
618
- static updateUser(options) {
708
+ static listPaymentMethods(options) {
709
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
710
+ }
711
+ /**
712
+ * Set the default payment method.
713
+ *
714
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
715
+ *
716
+ */
717
+ static setDefaultPaymentMethod(options) {
718
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
719
+ }
720
+ /**
721
+ * Delete a payment method.
722
+ *
723
+ * 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.
724
+ *
725
+ */
726
+ static deletePaymentMethod(options) {
727
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
728
+ }
729
+ /**
730
+ * List issued invoices.
731
+ *
732
+ * 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.
733
+ *
734
+ */
735
+ static listInvoices(options) {
736
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
737
+ }
738
+ /**
739
+ * Pay the organization's open invoices.
740
+ *
741
+ * Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
742
+ *
743
+ */
744
+ static payOpenInvoices(options) {
745
+ return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
746
+ }
747
+ /**
748
+ * Get organization contact and billing address information.
749
+ *
750
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
751
+ *
752
+ */
753
+ static getContact(options) {
754
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
755
+ }
756
+ /**
757
+ * Update organization contact information and billing address.
758
+ *
759
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
760
+ *
761
+ */
762
+ static updateContact(options) {
619
763
  return (options.client ?? client).put({
620
- url: '/users/{user_id}',
764
+ url: '/billing/contact',
765
+ ...options,
766
+ headers: {
767
+ 'Content-Type': 'application/json',
768
+ ...options.headers
769
+ }
770
+ });
771
+ }
772
+ /**
773
+ * Get applied promotional credits
774
+ *
775
+ * 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.
776
+ *
777
+ */
778
+ static getCredits(options) {
779
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
780
+ }
781
+ /**
782
+ * Redeem promotional credits code.
783
+ *
784
+ * 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.
785
+ *
786
+ */
787
+ static redeemCredits(options) {
788
+ return (options.client ?? client).post({
789
+ url: '/billing/credits',
621
790
  ...options,
622
791
  headers: {
623
792
  'Content-Type': 'application/json',