@cloudfleet/sdk 0.0.1-e9ffb68 → 0.0.1-eb7ee45

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