@cloudfleet/sdk 0.0.1-c4175a2 → 0.0.1-c4563f6

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