@cloudfleet/sdk 0.0.1-bbca6e3 → 0.0.1-bd45f1a

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