@cloudfleet/sdk 0.0.1-b5706bb → 0.0.1-ba4d67b

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 (88) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1199 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1215 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts +3 -0
  7. package/dist/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client.gen.js +217 -0
  9. package/dist/client/client.gen.js.map +1 -0
  10. package/dist/client/index.d.ts +9 -0
  11. package/dist/client/index.d.ts.map +1 -0
  12. package/dist/client/index.js +7 -0
  13. package/dist/client/index.js.map +1 -0
  14. package/dist/client/types.gen.d.ts +121 -0
  15. package/dist/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/types.gen.js +3 -0
  17. package/dist/client/types.gen.js.map +1 -0
  18. package/dist/client/utils.gen.d.ts +38 -0
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/utils.gen.js +229 -0
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +13 -0
  23. package/dist/client.gen.d.ts.map +1 -0
  24. package/dist/client.gen.js +4 -0
  25. package/dist/client.gen.js.map +1 -0
  26. package/dist/core/auth.gen.d.ts +19 -0
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/auth.gen.js +15 -0
  29. package/dist/core/auth.gen.js.map +1 -0
  30. package/dist/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/core/bodySerializer.gen.js +58 -0
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/params.gen.d.ts +44 -0
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/params.gen.js +101 -0
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/pathSerializer.gen.js +107 -0
  41. package/dist/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/core/serverSentEvents.gen.js +133 -0
  49. package/dist/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/core/types.gen.d.ts +79 -0
  51. package/dist/core/types.gen.d.ts.map +1 -0
  52. package/dist/core/types.gen.js +3 -0
  53. package/dist/core/types.gen.js.map +1 -0
  54. package/dist/core/utils.gen.d.ts +20 -0
  55. package/dist/core/utils.gen.d.ts.map +1 -0
  56. package/dist/core/utils.gen.js +88 -0
  57. package/dist/core/utils.gen.js.map +1 -0
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +3 -0
  61. package/dist/index.js.map +1 -1
  62. package/dist/schemas.gen.d.ts +1793 -1083
  63. package/dist/schemas.gen.d.ts.map +1 -1
  64. package/dist/schemas.gen.js +3358 -1361
  65. package/dist/schemas.gen.js.map +1 -1
  66. package/dist/sdk.gen.d.ts +352 -198
  67. package/dist/sdk.gen.d.ts.map +1 -1
  68. package/dist/sdk.gen.js +468 -296
  69. package/dist/sdk.gen.js.map +1 -1
  70. package/dist/services/kubernetes/api.d.ts +196 -0
  71. package/dist/services/kubernetes/api.d.ts.map +1 -0
  72. package/dist/services/kubernetes/api.js +140 -0
  73. package/dist/services/kubernetes/api.js.map +1 -0
  74. package/dist/services/kubernetes/index.d.ts +44 -0
  75. package/dist/services/kubernetes/index.d.ts.map +1 -0
  76. package/dist/services/kubernetes/index.js +68 -0
  77. package/dist/services/kubernetes/index.js.map +1 -0
  78. package/dist/services/kubernetes/types.d.ts +1335 -0
  79. package/dist/services/kubernetes/types.d.ts.map +1 -0
  80. package/dist/services/kubernetes/types.js +2 -0
  81. package/dist/services/kubernetes/types.js.map +1 -0
  82. package/dist/types.gen.d.ts +1998 -1252
  83. package/dist/types.gen.d.ts.map +1 -1
  84. package/dist/zod.gen.d.ts +3993 -2818
  85. package/dist/zod.gen.d.ts.map +1 -1
  86. package/dist/zod.gen.js +1724 -945
  87. package/dist/zod.gen.js.map +1 -1
  88. package/package.json +30 -7
package/dist/sdk.gen.js CHANGED
@@ -1,566 +1,738 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig } from '@hey-api/client-fetch';
3
- export const client = createClient(createConfig());
4
- export class BillingService {
2
+ import { formDataBodySerializer } from './client';
3
+ import { client } from './client.gen';
4
+ export class UsersService {
5
5
  /**
6
- * Get billing usage information.
7
- * Returns aggregated usage information 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.
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({
12
- url: '/billing/usage',
13
- ...options
14
- });
8
+ static listUserOrganizations(options) {
9
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
15
10
  }
16
11
  /**
17
- * Get billing balance information.
18
- * Returns the current balance of the organization in USD as a floating-point number. 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.
13
+ *
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.
19
17
  *
20
18
  */
21
- static getBalance(options) {
22
- return (options?.client ?? client).get({
23
- url: '/billing/balance',
24
- ...options
25
- });
19
+ static listUsers(options) {
20
+ return (options?.client ?? client).get({ url: '/users', ...options });
26
21
  }
27
22
  /**
28
- * Get organization payment method information.
29
- * 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.
23
+ * Create a new user.
24
+ *
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.
30
26
  *
31
27
  */
32
- static getPaymentMethod(options) {
33
- return (options?.client ?? client).get({
34
- url: '/billing/payment-method',
35
- ...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
36
  });
37
37
  }
38
38
  /**
39
- * Get Stripe client secret.
40
- * 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.
39
+ * Delete user by id.
40
+ *
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.
41
42
  *
42
43
  */
43
- static getPaymentMethodSecret(options) {
44
- return (options?.client ?? client).put({
45
- url: '/billing/payment-method',
46
- ...options
47
- });
44
+ static deleteUser(options) {
45
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
48
46
  }
49
47
  /**
50
- * List issued invoices.
51
- * Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
48
+ * Get user profile information by id.
49
+ *
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.
52
53
  *
53
54
  */
54
- static listInvoices(options) {
55
- return (options?.client ?? client).get({
56
- url: '/billing/invoices',
57
- ...options
58
- });
55
+ static getUser(options) {
56
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
59
57
  }
60
58
  /**
61
- * Get invoice information.
62
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
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.
63
62
  *
64
63
  */
65
- static getInvoice(options) {
66
- return (options?.client ?? client).get({
67
- url: '/billing/invoices/{id}',
68
- ...options
64
+ static updateUser(options) {
65
+ return (options.client ?? client).put({
66
+ url: '/users/{user_id}',
67
+ ...options,
68
+ headers: {
69
+ 'Content-Type': 'application/json',
70
+ ...options.headers
71
+ }
69
72
  });
70
73
  }
71
74
  }
72
- export class ClustersService {
75
+ export class TokensService {
73
76
  /**
74
- * List fleets.
75
- * Returns a list of fleets belonging to the cluster. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
77
+ * List access tokens in organization.
76
78
  *
77
- * 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.
78
80
  *
79
81
  */
80
- static listFleets(options) {
81
- return (options?.client ?? client).get({
82
- url: '/clusters/{cluster_id}/fleets',
83
- ...options
84
- });
82
+ static listTokens(options) {
83
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
85
84
  }
86
85
  /**
87
- * Create a new fleet.
88
- * 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 and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
86
+ * Create a new access token.
87
+ *
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
89
  *
90
90
  * This endpoint is available to administrators of the organization only.
91
91
  *
92
92
  */
93
- static createFleet(options) {
94
- return (options?.client ?? client).post({
95
- url: '/clusters/{cluster_id}/fleets',
93
+ static createToken(options) {
94
+ return (options.client ?? client).post({
95
+ url: '/tokens',
96
96
  ...options,
97
97
  headers: {
98
98
  'Content-Type': 'application/json',
99
- ...options?.headers
99
+ ...options.headers
100
100
  }
101
101
  });
102
102
  }
103
103
  /**
104
- * Permanently delete fleet.
105
- * 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 Connected Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
104
+ * Permanently delete access token.
106
105
  *
107
- * 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.
108
107
  *
109
108
  */
110
- static deleteFleet(options) {
111
- return (options?.client ?? client).delete({
112
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
113
- ...options
114
- });
109
+ static deleteToken(options) {
110
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
115
111
  }
116
112
  /**
117
- * Get fleet information.
118
- * Returns fleet details. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
113
+ * Get access token information.
119
114
  *
120
- * 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.
121
116
  *
122
117
  */
123
- static getFleet(options) {
124
- return (options?.client ?? client).get({
125
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
126
- ...options
127
- });
118
+ static getToken(options) {
119
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
128
120
  }
129
121
  /**
130
- * Update fleet information.
131
- * This endpoint allows you to update fleet details.
132
- *
133
- * 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 Connected Fleet until the end of the billing period, set the status to `cancelling`.
122
+ * Update access token information.
134
123
  *
135
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
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.
136
125
  *
137
126
  * This endpoint is available to administrators of the organization only.
138
127
  *
139
128
  */
140
- static updateFleet(options) {
141
- return (options?.client ?? client).put({
142
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
129
+ static updateToken(options) {
130
+ return (options.client ?? client).put({
131
+ url: '/tokens/{token_id}',
143
132
  ...options,
144
133
  headers: {
145
134
  'Content-Type': 'application/json',
146
- ...options?.headers
135
+ ...options.headers
147
136
  }
148
137
  });
149
138
  }
150
139
  /**
151
- * Query Kubernetes cluster API
152
- * 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.
140
+ * Regenerate access token secret key.
141
+ *
142
+ * Generates a new access token secret. Old secret will not be valid anymore.
153
143
  */
154
- static queryCluster(options) {
155
- return (options?.client ?? client).get({
156
- url: '/clusters/{cluster_id}/query',
157
- ...options
158
- });
144
+ static regenerateToken(options) {
145
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
159
146
  }
147
+ }
148
+ export class TicketsService {
160
149
  /**
161
- * List clusters.
162
- * 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.
150
+ * List tickets for the current organization.
163
151
  *
164
- * This endpoint is available to all users in the organization.
152
+ * Returns all tickets belonging to the caller's organization, newest first.
165
153
  *
166
154
  */
167
- static listClusters(options) {
168
- return (options?.client ?? client).get({
169
- url: '/clusters',
170
- ...options
171
- });
155
+ static listTickets(options) {
156
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
172
157
  }
173
158
  /**
174
- * Create a new cluster.
175
- * 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.
159
+ * Create a new support ticket.
176
160
  *
177
- * This endpoint is available to administrators of the organization only.
161
+ * Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
178
162
  *
179
163
  */
180
- static createCluster(options) {
181
- return (options?.client ?? client).post({
182
- url: '/clusters',
164
+ static createTicket(options) {
165
+ return (options.client ?? client).post({
166
+ ...formDataBodySerializer,
167
+ url: '/tickets',
183
168
  ...options,
184
169
  headers: {
185
- 'Content-Type': 'application/json',
186
- ...options?.headers
170
+ 'Content-Type': null,
171
+ ...options.headers
187
172
  }
188
173
  });
189
174
  }
190
175
  /**
191
- * Permanently delete cluster.
192
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
176
+ * Close a ticket (soft close).
193
177
  *
194
- * 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.
195
179
  *
196
180
  */
197
- static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
199
- url: '/clusters/{cluster_id}',
200
- ...options
201
- });
181
+ static closeTicket(options) {
182
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
202
183
  }
203
184
  /**
204
- * Get cluster information.
205
- * 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.
206
- *
207
- * This endpoint is available to all users in the organization.
208
- *
185
+ * Get a ticket and its messages.
209
186
  */
210
- static getCluster(options) {
211
- return (options?.client ?? client).get({
212
- url: '/clusters/{cluster_id}',
213
- ...options
214
- });
187
+ static getTicket(options) {
188
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
215
189
  }
216
190
  /**
217
- * Update cluster information.
218
- * 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.
191
+ * Append a customer reply to a ticket.
219
192
  *
220
- * 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.
221
194
  *
222
195
  */
223
- static updateCluster(options) {
224
- return (options?.client ?? client).put({
225
- url: '/clusters/{cluster_id}',
196
+ static replyTicket(options) {
197
+ return (options.client ?? client).post({
198
+ ...formDataBodySerializer,
199
+ url: '/tickets/{ticket_id}/messages',
226
200
  ...options,
227
201
  headers: {
228
- 'Content-Type': 'application/json',
229
- ...options?.headers
202
+ 'Content-Type': null,
203
+ ...options.headers
230
204
  }
231
205
  });
232
206
  }
233
207
  /**
234
- * Node join information for the cluster
235
- * Returns the join information for the cluster. This information is used to add a self-managed cluster to the CFKE cluster. This endpoint is available to only admins of the organization.
208
+ * Download a ticket attachment.
209
+ */
210
+ static getTicketAttachment(options) {
211
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
212
+ }
213
+ }
214
+ export class RegistryService {
215
+ /**
216
+ * List repositories
217
+ *
218
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
236
219
  *
237
220
  */
238
- static getJoinInformation(options) {
239
- return (options?.client ?? client).post({
240
- url: '/clusters/{cluster_id}/join_information',
241
- ...options
242
- });
221
+ static listRepositories(options) {
222
+ return (options?.client ?? client).get({ url: '/registry', ...options });
223
+ }
224
+ /**
225
+ * List tags for a repository
226
+ *
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.
228
+ *
229
+ */
230
+ static listTags(options) {
231
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
232
+ }
233
+ /**
234
+ * Delete tag
235
+ *
236
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
237
+ *
238
+ */
239
+ static deleteTag(options) {
240
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
241
+ }
242
+ /**
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.
246
+ *
247
+ */
248
+ static getTag(options) {
249
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
243
250
  }
244
251
  }
245
- export class InfrastructureService {
252
+ export class OrganizationService {
246
253
  /**
247
- * Search infrastructure catalog.
248
- * This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
254
+ * Get organization information.
249
255
  *
250
- * `GET /infrastructure?accelerator_name=A100&region=northamerica`
256
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
251
257
  *
252
- * Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
258
+ * This endpoint is available to all users in the organization.
253
259
  *
254
- * **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
260
+ */
261
+ static getOrganization(options) {
262
+ return (options?.client ?? client).get({ url: '/organization', ...options });
263
+ }
264
+ /**
265
+ * Create a new organization / Cloudfleet account signup.
255
266
  *
256
- * For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
267
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
257
268
  *
258
269
  */
259
- static getInfrastructure(options) {
260
- return (options?.client ?? client).get({
261
- url: '/infrastructure',
262
- ...options
270
+ static createOrganization(options) {
271
+ return (options.client ?? client).post({
272
+ url: '/organization',
273
+ ...options,
274
+ headers: {
275
+ 'Content-Type': 'application/json',
276
+ ...options.headers
277
+ }
263
278
  });
264
279
  }
265
280
  /**
266
- * Infrastructure catalog facets.
267
- * This endpoint returns calculated search facets from the infrastructure catalog.
281
+ * Get the organization's consent status for the new Basic price.
282
+ *
283
+ * Returns the organization's consent status for the migration from the free tier to the paid Basic plan. `pending` means an administrator must opt in; `not_applicable` means the organization is not in scope for the migration; `accepted` / `rejected` reflect a recorded decision.
284
+ *
285
+ * This endpoint is available to all users in the organization and drives the consent dialog in the console.
286
+ *
287
+ */
288
+ static getBasicPriceConsent(options) {
289
+ return (options?.client ?? client).get({ url: '/organization/basic-price-consent', ...options });
290
+ }
291
+ /**
292
+ * Record an administrator's decision on the new Basic price.
293
+ *
294
+ * Records an affirmative decision to continue on the paid Basic plan (`accepted`) or to opt out (`rejected`). This is an organization-binding financial decision, so it is restricted to administrators. Each call appends an immutable audit entry (who and when) and sends a confirmation email to the acting administrator.
268
295
  *
269
296
  */
270
- static getFacets(options) {
271
- return (options?.client ?? client).get({
272
- url: '/infrastructure/facets',
273
- ...options
297
+ static setBasicPriceConsent(options) {
298
+ return (options.client ?? client).post({
299
+ url: '/organization/basic-price-consent',
300
+ ...options,
301
+ headers: {
302
+ 'Content-Type': 'application/json',
303
+ ...options.headers
304
+ }
274
305
  });
275
306
  }
307
+ }
308
+ export class McpService {
276
309
  /**
277
- * Available Cloudfleet regions and Kubernetes versions.
278
- * Available Cloudfleet regions and Kubernetes versions.
310
+ * MCP endpoint
279
311
  *
312
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
280
313
  */
281
- static getRegions(options) {
282
- return (options?.client ?? client).get({
283
- url: '/infrastructure/regions',
284
- ...options
314
+ static postMcp(options) {
315
+ return (options.client ?? client).post({
316
+ url: '/mcp',
317
+ ...options,
318
+ headers: {
319
+ 'Content-Type': 'application/json',
320
+ ...options.headers
321
+ }
285
322
  });
286
323
  }
287
324
  }
325
+ export class ChartsMarketplaceService {
326
+ /**
327
+ * List chart listings available in the marketplace.
328
+ *
329
+ * Returns a list of available charts in the marketplace.
330
+ *
331
+ * This endpoint is available to all users in the organization.
332
+ *
333
+ */
334
+ static listMarketplaceCharts(options) {
335
+ return (options?.client ?? client).get({ url: '/marketplace', ...options });
336
+ }
337
+ /**
338
+ * Get chart files for a specific version channel.
339
+ *
340
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
341
+ *
342
+ * 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.
343
+ *
344
+ * This endpoint is available to all users in the organization.
345
+ *
346
+ */
347
+ static getMarketplaceChartFiles(options) {
348
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
349
+ }
350
+ }
288
351
  export class InvitesService {
289
352
  /**
290
353
  * List invites.
291
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
354
+ *
355
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
292
356
  *
293
357
  */
294
358
  static listInvites(options) {
295
- return (options?.client ?? client).get({
296
- url: '/invites',
297
- ...options
298
- });
359
+ return (options?.client ?? client).get({ url: '/invites', ...options });
299
360
  }
300
361
  /**
301
362
  * Create a new invite.
302
- * Invite a new user to your CloudFlett 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.
363
+ *
364
+ * Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
303
365
  *
304
366
  */
305
367
  static createInvite(options) {
306
- return (options?.client ?? client).post({
368
+ return (options.client ?? client).post({
307
369
  url: '/invites',
308
370
  ...options,
309
371
  headers: {
310
372
  'Content-Type': 'application/json',
311
- ...options?.headers
373
+ ...options.headers
312
374
  }
313
375
  });
314
376
  }
315
377
  /**
316
378
  * Get invite information.
317
- * Returns invite details.
379
+ *
380
+ * 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.
318
381
  *
319
382
  */
320
383
  static getInvite(options) {
321
- return (options?.client ?? client).get({
322
- url: '/invites/{code}',
323
- ...options
324
- });
384
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
325
385
  }
326
386
  /**
327
387
  * Permanently delete invite.
388
+ *
328
389
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
329
390
  *
330
391
  */
331
392
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
333
- url: '/invites/{email}',
334
- ...options
335
- });
393
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
336
394
  }
337
395
  }
338
- export class OrganizationService {
396
+ export class ClustersService {
339
397
  /**
340
- * Get organization information.
341
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
398
+ * Query Kubernetes cluster API
399
+ *
400
+ * 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.
401
+ */
402
+ static queryCluster(options) {
403
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
404
+ }
405
+ /**
406
+ * List fleets.
407
+ *
408
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
342
409
  *
343
410
  * This endpoint is available to all users in the organization.
344
411
  *
345
412
  */
346
- static getOrganization(options) {
347
- return (options?.client ?? client).get({
348
- url: '/organization',
349
- ...options
350
- });
413
+ static listFleets(options) {
414
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
351
415
  }
352
416
  /**
353
- * Create a new organization / Cloudfleet account signup.
354
- * This endpoint allows you to create a new Cloudfleet organization with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
417
+ * Create a new fleet.
418
+ *
419
+ * 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.
420
+ *
421
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
422
+ *
423
+ * This endpoint is available to administrators of the organization only.
355
424
  *
356
425
  */
357
- static createOrganization(options) {
358
- return (options?.client ?? client).post({
359
- url: '/organization',
426
+ static createFleet(options) {
427
+ return (options.client ?? client).post({
428
+ url: '/clusters/{cluster_id}/fleets',
360
429
  ...options,
361
430
  headers: {
362
431
  'Content-Type': 'application/json',
363
- ...options?.headers
432
+ ...options.headers
364
433
  }
365
434
  });
366
435
  }
367
436
  /**
368
- * Update organization information.
369
- * This endpoint allows you to update organization details with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
437
+ * Permanently delete fleet.
438
+ *
439
+ * 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.
440
+ *
441
+ * 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.
370
442
  *
371
443
  * This endpoint is available to administrators of the organization only.
372
444
  *
373
445
  */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
376
- url: '/organization',
446
+ static deleteFleet(options) {
447
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
448
+ }
449
+ /**
450
+ * Get fleet information.
451
+ *
452
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
453
+ *
454
+ * This endpoint is available to all users in the organization.
455
+ *
456
+ */
457
+ static getFleet(options) {
458
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
459
+ }
460
+ /**
461
+ * Update fleet information.
462
+ *
463
+ * This endpoint allows you to update fleet details.
464
+ *
465
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
466
+ *
467
+ * 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).
468
+ *
469
+ * This endpoint is available to administrators of the organization only.
470
+ *
471
+ */
472
+ static updateFleet(options) {
473
+ return (options.client ?? client).put({
474
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
377
475
  ...options,
378
476
  headers: {
379
477
  'Content-Type': 'application/json',
380
- ...options?.headers
478
+ ...options.headers
381
479
  }
382
480
  });
383
481
  }
384
- }
385
- export class TokensService {
386
482
  /**
387
- * List access tokens in organization.
388
- * 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.
483
+ * List charts.
484
+ *
485
+ * Returns a list of charts in the cluster.
486
+ *
487
+ * This endpoint is available to all users in the organization.
389
488
  *
390
489
  */
391
- static listTokens(options) {
392
- return (options?.client ?? client).get({
393
- url: '/tokens',
394
- ...options
395
- });
490
+ static listCharts(options) {
491
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
396
492
  }
397
493
  /**
398
- * Create a new access token.
399
- * 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.
494
+ * Create a new chart.
495
+ *
496
+ * Create a new chart deployment.
400
497
  *
401
498
  * This endpoint is available to administrators of the organization only.
402
499
  *
403
500
  */
404
- static createToken(options) {
405
- return (options?.client ?? client).post({
406
- url: '/tokens',
501
+ static createChart(options) {
502
+ return (options.client ?? client).post({
503
+ url: '/clusters/{cluster_id}/charts',
407
504
  ...options,
408
505
  headers: {
409
506
  'Content-Type': 'application/json',
410
- ...options?.headers
507
+ ...options.headers
411
508
  }
412
509
  });
413
510
  }
414
511
  /**
415
- * Permanently delete access token.
416
- * 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.
512
+ * Permanently delete the chart deployment from the cluster.
513
+ *
514
+ * This endpoint will permanently delete chart. This operation cannot be undone.
515
+ *
516
+ * This endpoint is available to administrators of the organization only.
417
517
  *
418
518
  */
419
- static deleteToken(options) {
420
- return (options?.client ?? client).delete({
421
- url: '/tokens/{token_id}',
422
- ...options
423
- });
519
+ static deleteChart(options) {
520
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
424
521
  }
425
522
  /**
426
- * Get access token information.
427
- * 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.
523
+ * Get chart information.
524
+ *
525
+ * Returns the details of the chart deployment.
526
+ *
527
+ * This endpoint is available to all users in the organization.
428
528
  *
429
529
  */
430
- static getToken(options) {
431
- return (options?.client ?? client).get({
432
- url: '/tokens/{token_id}',
433
- ...options
434
- });
530
+ static getChart(options) {
531
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
435
532
  }
436
533
  /**
437
- * Update access token information.
438
- * 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.
534
+ * Update chart information.
535
+ *
536
+ * This endpoint allows you to update the values of a chart deployment.
439
537
  *
440
538
  * This endpoint is available to administrators of the organization only.
441
539
  *
442
540
  */
443
- static updateToken(options) {
444
- return (options?.client ?? client).put({
445
- url: '/tokens/{token_id}',
541
+ static updateChart(options) {
542
+ return (options.client ?? client).put({
543
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
446
544
  ...options,
447
545
  headers: {
448
546
  'Content-Type': 'application/json',
449
- ...options?.headers
547
+ ...options.headers
450
548
  }
451
549
  });
452
550
  }
453
551
  /**
454
- * Regenerate access token secret key.
455
- * Generates a new access token secret. Old secret will not be valid anymore.
552
+ * List clusters.
553
+ *
554
+ * Returns a list of clusters under the current organization.
555
+ *
556
+ * This endpoint is available to all users in the organization.
557
+ *
456
558
  */
457
- static regenerateToken(options) {
458
- return (options?.client ?? client).put({
459
- url: '/tokens/{token_id}/secret',
460
- ...options
461
- });
559
+ static listClusters(options) {
560
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
462
561
  }
463
- }
464
- export class UsersService {
465
562
  /**
466
- * Get a list of organizations the user belongs to. Used during authentication process.
563
+ * Create a new cluster.
564
+ *
565
+ * 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.
566
+ *
567
+ * This endpoint is available to administrators of the organization only.
568
+ *
467
569
  */
468
- static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
470
- url: '/users/organizations/{email}',
471
- ...options
570
+ static createCluster(options) {
571
+ return (options.client ?? client).post({
572
+ url: '/clusters',
573
+ ...options,
574
+ headers: {
575
+ 'Content-Type': 'application/json',
576
+ ...options.headers
577
+ }
472
578
  });
473
579
  }
474
580
  /**
475
- * List users in organization.
476
- * Returns a list of user details, including roles and cluster permissions. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
581
+ * Permanently delete cluster.
582
+ *
583
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
584
+ *
585
+ * 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.
586
+ *
587
+ * This endpoint is available to administrators of the organization only.
588
+ *
589
+ */
590
+ static deleteCluster(options) {
591
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
592
+ }
593
+ /**
594
+ * Get cluster information.
595
+ *
596
+ * Returns cluster details.
477
597
  *
478
598
  * This endpoint is available to all users in the organization.
479
599
  *
480
600
  */
481
- static listUsers(options) {
482
- return (options?.client ?? client).get({
483
- url: '/users',
484
- ...options
485
- });
601
+ static getCluster(options) {
602
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
486
603
  }
487
604
  /**
488
- * Create a new user.
489
- * Create a new user in your CloudFlett 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.
605
+ * Update cluster information.
606
+ *
607
+ * 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.
608
+ *
609
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
610
+ *
611
+ * This endpoint is available to administrators of the organization only.
490
612
  *
491
613
  */
492
- static createUser(options) {
493
- return (options?.client ?? client).post({
494
- url: '/users',
614
+ static updateCluster(options) {
615
+ return (options.client ?? client).put({
616
+ url: '/clusters/{cluster_id}',
495
617
  ...options,
496
618
  headers: {
497
619
  'Content-Type': 'application/json',
498
- ...options?.headers
620
+ ...options.headers
499
621
  }
500
622
  });
501
623
  }
502
624
  /**
503
- * Delete user by id.
504
- * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
625
+ * Node join information for the cluster
626
+ *
627
+ * 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.
505
628
  *
506
629
  */
507
- static deleteUser(options) {
508
- return (options?.client ?? client).delete({
509
- url: '/users/{user_id}',
510
- ...options
511
- });
630
+ static getJoinInformation(options) {
631
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
512
632
  }
633
+ }
634
+ export class BillingService {
513
635
  /**
514
- * Get user profile information by id.
515
- * Returns user details, including roles and cluster permissions. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
636
+ * Get billing usage information.
516
637
  *
517
- * This endpoint is available to all users in the organization.
638
+ * 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.
518
639
  *
519
640
  */
520
- static getUser(options) {
521
- return (options?.client ?? client).get({
522
- url: '/users/{user_id}',
523
- ...options
524
- });
641
+ static getUsage(options) {
642
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
525
643
  }
526
644
  /**
527
- * Update user profile information.
528
- * 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.
645
+ * Get Stripe client secret.
646
+ *
647
+ * 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.
529
648
  *
530
649
  */
531
- static updateUser(options) {
532
- return (options?.client ?? client).put({
533
- url: '/users/{user_id}',
650
+ static getPaymentMethodSecret(options) {
651
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
652
+ }
653
+ /**
654
+ * List organization payment methods.
655
+ *
656
+ * 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.
657
+ *
658
+ */
659
+ static listPaymentMethods(options) {
660
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
661
+ }
662
+ /**
663
+ * Set the default payment method.
664
+ *
665
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
666
+ *
667
+ */
668
+ static setDefaultPaymentMethod(options) {
669
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
670
+ }
671
+ /**
672
+ * Delete a payment method.
673
+ *
674
+ * 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.
675
+ *
676
+ */
677
+ static deletePaymentMethod(options) {
678
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
679
+ }
680
+ /**
681
+ * List issued invoices.
682
+ *
683
+ * 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.
684
+ *
685
+ */
686
+ static listInvoices(options) {
687
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
688
+ }
689
+ /**
690
+ * Get organization contact and billing address information.
691
+ *
692
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
693
+ *
694
+ */
695
+ static getContact(options) {
696
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
697
+ }
698
+ /**
699
+ * Update organization contact information and billing address.
700
+ *
701
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
702
+ *
703
+ */
704
+ static updateContact(options) {
705
+ return (options.client ?? client).put({
706
+ url: '/billing/contact',
534
707
  ...options,
535
708
  headers: {
536
709
  'Content-Type': 'application/json',
537
- ...options?.headers
710
+ ...options.headers
538
711
  }
539
712
  });
540
713
  }
541
714
  /**
542
- * Remove user from cluster.
543
- * Removes user from the cluster. The user will no longer be able to access the cluster and all its resources. This endpoint is available to administrators of the organization only.
715
+ * Get applied promotional credits
716
+ *
717
+ * 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.
544
718
  *
545
719
  */
546
- static deleteClusterPermissions(options) {
547
- return (options?.client ?? client).delete({
548
- url: '/users/{user_id}/clusters/{cluster_id}',
549
- ...options
550
- });
720
+ static getCredits(options) {
721
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
551
722
  }
552
723
  /**
553
- * Add user to cluster and set permissions.
554
- * Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
724
+ * Redeem promotional credits code.
725
+ *
726
+ * 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.
555
727
  *
556
728
  */
557
- static setClusterPermissions(options) {
558
- return (options?.client ?? client).put({
559
- url: '/users/{user_id}/clusters/{cluster_id}',
729
+ static redeemCredits(options) {
730
+ return (options.client ?? client).post({
731
+ url: '/billing/credits',
560
732
  ...options,
561
733
  headers: {
562
734
  'Content-Type': 'application/json',
563
- ...options?.headers
735
+ ...options.headers
564
736
  }
565
737
  });
566
738
  }