@cloudfleet/sdk 0.0.1-e80cef7 → 0.0.1-e9ed8e0

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 (73) 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 +4 -4
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +2 -4
  25. package/dist/client.gen.js.map +1 -1
  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/schemas.gen.d.ts +1618 -661
  59. package/dist/schemas.gen.d.ts.map +1 -1
  60. package/dist/schemas.gen.js +2979 -726
  61. package/dist/schemas.gen.js.map +1 -1
  62. package/dist/sdk.gen.d.ts +316 -175
  63. package/dist/sdk.gen.d.ts.map +1 -1
  64. package/dist/sdk.gen.js +450 -344
  65. package/dist/sdk.gen.js.map +1 -1
  66. package/dist/services/kubernetes/api.d.ts +20 -20
  67. package/dist/types.gen.d.ts +1883 -879
  68. package/dist/types.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.d.ts +3949 -2233
  70. package/dist/zod.gen.d.ts.map +1 -1
  71. package/dist/zod.gen.js +1545 -821
  72. package/dist/zod.gen.js.map +1 -1
  73. package/package.json +28 -9
package/dist/sdk.gen.js CHANGED
@@ -1,632 +1,738 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { client as _heyApiClient } from './client.gen';
3
- export class BillingService {
2
+ import { formDataBodySerializer } from './client';
3
+ import { client } from './client.gen';
4
+ export class UsersService {
4
5
  /**
5
- * Get billing usage information.
6
- * 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.
7
- *
6
+ * Get a list of organizations the user belongs to. Used during authentication process.
8
7
  */
9
- static getUsage(options) {
10
- return (options?.client ?? _heyApiClient).get({
11
- url: '/billing/usage',
12
- ...options
13
- });
8
+ static listUserOrganizations(options) {
9
+ return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
14
10
  }
15
11
  /**
16
- * Get billing balance information.
17
- * 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.
18
13
  *
19
- */
20
- static getBalance(options) {
21
- return (options?.client ?? _heyApiClient).get({
22
- url: '/billing/balance',
23
- ...options
24
- });
25
- }
26
- /**
27
- * Get organization payment method information.
28
- * 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.
29
15
  *
30
- */
31
- static getPaymentMethod(options) {
32
- return (options?.client ?? _heyApiClient).get({
33
- url: '/billing/payment-method',
34
- ...options
35
- });
36
- }
37
- /**
38
- * Get Stripe client secret.
39
- * 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.
16
+ * This endpoint is available to all users in the organization.
40
17
  *
41
18
  */
42
- static getPaymentMethodSecret(options) {
43
- return (options?.client ?? _heyApiClient).put({
44
- url: '/billing/payment-method',
45
- ...options
46
- });
19
+ static listUsers(options) {
20
+ return (options?.client ?? client).get({ url: '/users', ...options });
47
21
  }
48
22
  /**
49
- * List issued invoices.
50
- * 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.
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.
51
26
  *
52
27
  */
53
- static listInvoices(options) {
54
- return (options.client ?? _heyApiClient).get({
55
- url: '/billing/invoices',
56
- ...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
+ }
57
36
  });
58
37
  }
59
38
  /**
60
- * Get invoice information.
61
- * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
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.
62
42
  *
63
43
  */
64
- static getInvoice(options) {
65
- return (options.client ?? _heyApiClient).get({
66
- url: '/billing/invoices/{id}',
67
- ...options
68
- });
44
+ static deleteUser(options) {
45
+ return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
69
46
  }
70
47
  /**
71
- * Get organization contact and billing address information.
72
- * Returns the organization contact and billing address information. 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.
73
53
  *
74
54
  */
75
- static getContact(options) {
76
- return (options?.client ?? _heyApiClient).get({
77
- url: '/billing/contact',
78
- ...options
79
- });
55
+ static getUser(options) {
56
+ return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
80
57
  }
81
58
  /**
82
- * Update organization contact information and billing address.
83
- * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
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.
84
62
  *
85
63
  */
86
- static updateContact(options) {
87
- return (options.client ?? _heyApiClient).put({
88
- url: '/billing/contact',
64
+ static updateUser(options) {
65
+ return (options.client ?? client).put({
66
+ url: '/users/{user_id}',
89
67
  ...options,
90
68
  headers: {
91
69
  'Content-Type': 'application/json',
92
- ...options?.headers
70
+ ...options.headers
93
71
  }
94
72
  });
95
73
  }
74
+ }
75
+ export class TokensService {
96
76
  /**
97
- * Get applied promotional credits
98
- * 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.
77
+ * List access tokens in organization.
78
+ *
79
+ * This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
99
80
  *
100
81
  */
101
- static getCredits(options) {
102
- return (options?.client ?? _heyApiClient).get({
103
- url: '/billing/credits',
104
- ...options
105
- });
82
+ static listTokens(options) {
83
+ return (options?.client ?? client).get({ url: '/tokens', ...options });
106
84
  }
107
85
  /**
108
- * Redeem promotional credits code.
109
- * 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.
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
+ *
90
+ * This endpoint is available to administrators of the organization only.
110
91
  *
111
92
  */
112
- static redeemCredits(options) {
113
- return (options.client ?? _heyApiClient).post({
114
- url: '/billing/credits',
93
+ static createToken(options) {
94
+ return (options.client ?? client).post({
95
+ url: '/tokens',
115
96
  ...options,
116
97
  headers: {
117
98
  'Content-Type': 'application/json',
118
- ...options?.headers
99
+ ...options.headers
119
100
  }
120
101
  });
121
102
  }
122
- }
123
- export class ClustersService {
124
103
  /**
125
- * List charts.
126
- * Returns a list of charts in the cluster.
104
+ * Permanently delete access token.
127
105
  *
128
- * This endpoint is available to all users in the organization.
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.
129
107
  *
130
108
  */
131
- static listCharts(options) {
132
- return (options.client ?? _heyApiClient).get({
133
- url: '/clusters/{cluster_id}/charts',
134
- ...options
135
- });
109
+ static deleteToken(options) {
110
+ return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
136
111
  }
137
112
  /**
138
- * Create a new chart.
139
- * Create a new chart deployment.
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.
116
+ *
117
+ */
118
+ static getToken(options) {
119
+ return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
120
+ }
121
+ /**
122
+ * Update access token information.
123
+ *
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.
140
125
  *
141
126
  * This endpoint is available to administrators of the organization only.
142
127
  *
143
128
  */
144
- static createChart(options) {
145
- return (options.client ?? _heyApiClient).post({
146
- url: '/clusters/{cluster_id}/charts',
129
+ static updateToken(options) {
130
+ return (options.client ?? client).put({
131
+ url: '/tokens/{token_id}',
147
132
  ...options,
148
133
  headers: {
149
134
  'Content-Type': 'application/json',
150
- ...options?.headers
135
+ ...options.headers
151
136
  }
152
137
  });
153
138
  }
154
139
  /**
155
- * Permanently delete the chart deployment from the cluster.
156
- * This endpoint will permanently delete chart. This operation cannot be undone.
157
- *
158
- * This endpoint is available to administrators of the organization only.
140
+ * Regenerate access token secret key.
159
141
  *
142
+ * Generates a new access token secret. Old secret will not be valid anymore.
160
143
  */
161
- static deleteChart(options) {
162
- return (options.client ?? _heyApiClient).delete({
163
- url: '/clusters/{cluster_id}/charts/{chart_name}',
164
- ...options
165
- });
144
+ static regenerateToken(options) {
145
+ return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
166
146
  }
147
+ }
148
+ export class TicketsService {
167
149
  /**
168
- * Get chart information.
169
- * Returns the details of the chart deployment.
150
+ * List tickets for the current organization.
170
151
  *
171
- * This endpoint is available to all users in the organization.
152
+ * Returns all tickets belonging to the caller's organization, newest first.
172
153
  *
173
154
  */
174
- static getChart(options) {
175
- return (options.client ?? _heyApiClient).get({
176
- url: '/clusters/{cluster_id}/charts/{chart_name}',
177
- ...options
178
- });
155
+ static listTickets(options) {
156
+ return (options?.client ?? client).get({ url: '/tickets', ...options });
179
157
  }
180
158
  /**
181
- * Update chart information.
182
- * This endpoint allows you to update the values of a chart deployment.
159
+ * Create a new support ticket.
183
160
  *
184
- * 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).
185
162
  *
186
163
  */
187
- static updateChart(options) {
188
- return (options.client ?? _heyApiClient).put({
189
- url: '/clusters/{cluster_id}/charts/{chart_name}',
164
+ static createTicket(options) {
165
+ return (options.client ?? client).post({
166
+ ...formDataBodySerializer,
167
+ url: '/tickets',
190
168
  ...options,
191
169
  headers: {
192
- 'Content-Type': 'application/json',
193
- ...options?.headers
170
+ 'Content-Type': null,
171
+ ...options.headers
194
172
  }
195
173
  });
196
174
  }
197
175
  /**
198
- * List fleets.
199
- * 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).
200
177
  *
201
- * 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.
202
179
  *
203
180
  */
204
- static listFleets(options) {
205
- return (options.client ?? _heyApiClient).get({
206
- url: '/clusters/{cluster_id}/fleets',
207
- ...options
208
- });
181
+ static closeTicket(options) {
182
+ return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
209
183
  }
210
184
  /**
211
- * Create a new fleet.
212
- * 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.
213
192
  *
214
- * 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.
215
194
  *
216
195
  */
217
- static createFleet(options) {
218
- return (options.client ?? _heyApiClient).post({
219
- url: '/clusters/{cluster_id}/fleets',
196
+ static replyTicket(options) {
197
+ return (options.client ?? client).post({
198
+ ...formDataBodySerializer,
199
+ url: '/tickets/{ticket_id}/messages',
220
200
  ...options,
221
201
  headers: {
222
- 'Content-Type': 'application/json',
223
- ...options?.headers
202
+ 'Content-Type': null,
203
+ ...options.headers
224
204
  }
225
205
  });
226
206
  }
227
207
  /**
228
- * Permanently delete fleet.
229
- * 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.
230
- *
231
- * This endpoint is available to administrators of the organization only.
232
- *
208
+ * Download a ticket attachment.
233
209
  */
234
- static deleteFleet(options) {
235
- return (options.client ?? _heyApiClient).delete({
236
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
237
- ...options
238
- });
210
+ static getTicketAttachment(options) {
211
+ return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
239
212
  }
213
+ }
214
+ export class RegistryService {
240
215
  /**
241
- * Get fleet information.
242
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
216
+ * List repositories
243
217
  *
244
- * 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.
245
219
  *
246
220
  */
247
- static getFleet(options) {
248
- return (options.client ?? _heyApiClient).get({
249
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
250
- ...options
251
- });
221
+ static listRepositories(options) {
222
+ return (options?.client ?? client).get({ url: '/registry', ...options });
252
223
  }
253
224
  /**
254
- * Update fleet information.
255
- * This endpoint allows you to update fleet details.
225
+ * List tags for a repository
256
226
  *
257
- * 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.
258
228
  *
259
- * 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
260
235
  *
261
- * 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.
262
237
  *
263
238
  */
264
- static updateFleet(options) {
265
- return (options.client ?? _heyApiClient).put({
266
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
267
- ...options,
268
- headers: {
269
- 'Content-Type': 'application/json',
270
- ...options?.headers
271
- }
272
- });
239
+ static deleteTag(options) {
240
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
273
241
  }
274
242
  /**
275
- * Query Kubernetes cluster API
276
- * 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.
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
+ *
277
247
  */
278
- static queryCluster(options) {
279
- return (options.client ?? _heyApiClient).get({
280
- url: '/clusters/{cluster_id}/query',
281
- ...options
282
- });
248
+ static getTag(options) {
249
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
283
250
  }
251
+ }
252
+ export class OrganizationService {
284
253
  /**
285
- * List clusters.
286
- * 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.
254
+ * Get organization information.
255
+ *
256
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
287
257
  *
288
258
  * This endpoint is available to all users in the organization.
289
259
  *
290
260
  */
291
- static listClusters(options) {
292
- return (options?.client ?? _heyApiClient).get({
293
- url: '/clusters',
294
- ...options
295
- });
261
+ static getOrganization(options) {
262
+ return (options?.client ?? client).get({ url: '/organization', ...options });
296
263
  }
297
264
  /**
298
- * Create a new cluster.
299
- * 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.
300
266
  *
301
- * 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.
302
268
  *
303
269
  */
304
- static createCluster(options) {
305
- return (options.client ?? _heyApiClient).post({
306
- url: '/clusters',
270
+ static createOrganization(options) {
271
+ return (options.client ?? client).post({
272
+ url: '/organization',
307
273
  ...options,
308
274
  headers: {
309
275
  'Content-Type': 'application/json',
310
- ...options?.headers
276
+ ...options.headers
311
277
  }
312
278
  });
313
279
  }
314
280
  /**
315
- * Permanently delete cluster.
316
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
281
+ * Get the organization's consent status for the new Basic price.
317
282
  *
318
- * This endpoint is available to administrators of the organization only.
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.
319
286
  *
320
287
  */
321
- static deleteCluster(options) {
322
- return (options.client ?? _heyApiClient).delete({
323
- url: '/clusters/{cluster_id}',
324
- ...options
325
- });
288
+ static getBasicPriceConsent(options) {
289
+ return (options?.client ?? client).get({ url: '/organization/basic-price-consent', ...options });
326
290
  }
327
291
  /**
328
- * Get cluster information.
329
- * 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.
292
+ * Record an administrator's decision on the new Basic price.
330
293
  *
331
- * This endpoint is available to all users in the organization.
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.
332
295
  *
333
296
  */
334
- static getCluster(options) {
335
- return (options.client ?? _heyApiClient).get({
336
- url: '/clusters/{cluster_id}',
337
- ...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
+ }
338
305
  });
339
306
  }
307
+ }
308
+ export class McpService {
340
309
  /**
341
- * Update cluster information.
342
- * 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.
343
- *
344
- * This endpoint is available to administrators of the organization only.
310
+ * MCP endpoint
345
311
  *
312
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
346
313
  */
347
- static updateCluster(options) {
348
- return (options.client ?? _heyApiClient).put({
349
- url: '/clusters/{cluster_id}',
314
+ static postMcp(options) {
315
+ return (options.client ?? client).post({
316
+ url: '/mcp',
350
317
  ...options,
351
318
  headers: {
352
319
  'Content-Type': 'application/json',
353
- ...options?.headers
320
+ ...options.headers
354
321
  }
355
322
  });
356
323
  }
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
+ }
357
337
  /**
358
- * Node join information for the cluster
359
- * 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.
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.
360
345
  *
361
346
  */
362
- static getJoinInformation(options) {
363
- return (options.client ?? _heyApiClient).post({
364
- url: '/clusters/{cluster_id}/join_information',
365
- ...options
366
- });
347
+ static getMarketplaceChartFiles(options) {
348
+ return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
367
349
  }
368
350
  }
369
351
  export class InvitesService {
370
352
  /**
371
353
  * List invites.
372
- * 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.
373
356
  *
374
357
  */
375
358
  static listInvites(options) {
376
- return (options?.client ?? _heyApiClient).get({
377
- url: '/invites',
378
- ...options
379
- });
359
+ return (options?.client ?? client).get({ url: '/invites', ...options });
380
360
  }
381
361
  /**
382
362
  * Create a new invite.
363
+ *
383
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.
384
365
  *
385
366
  */
386
367
  static createInvite(options) {
387
- return (options.client ?? _heyApiClient).post({
368
+ return (options.client ?? client).post({
388
369
  url: '/invites',
389
370
  ...options,
390
371
  headers: {
391
372
  'Content-Type': 'application/json',
392
- ...options?.headers
373
+ ...options.headers
393
374
  }
394
375
  });
395
376
  }
396
377
  /**
397
378
  * Get invite information.
398
- * 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.
399
381
  *
400
382
  */
401
383
  static getInvite(options) {
402
- return (options.client ?? _heyApiClient).get({
403
- url: '/invites/{code}',
404
- ...options
405
- });
384
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
406
385
  }
407
386
  /**
408
387
  * Permanently delete invite.
388
+ *
409
389
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
410
390
  *
411
391
  */
412
392
  static deleteInvite(options) {
413
- return (options.client ?? _heyApiClient).delete({
414
- url: '/invites/{email}',
415
- ...options
416
- });
393
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
417
394
  }
418
395
  }
419
- export class ChartsMarketplaceService {
396
+ export class ClustersService {
420
397
  /**
421
- * List chart listings available in the marketplace.
422
- * Returns a list of available charts in the marketplace.
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.
423
409
  *
424
410
  * This endpoint is available to all users in the organization.
425
411
  *
426
412
  */
427
- static listMarketplaceCharts(options) {
428
- return (options?.client ?? _heyApiClient).get({
429
- url: '/marketplace',
430
- ...options
431
- });
413
+ static listFleets(options) {
414
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
432
415
  }
433
416
  /**
434
- * Get chart listing details.
435
- * Returns details of the chart listing.
417
+ * Create a new fleet.
436
418
  *
437
- * This endpoint is available to all users in the organization.
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.
438
424
  *
439
425
  */
440
- static getMarketplaceChart(options) {
441
- return (options.client ?? _heyApiClient).get({
442
- url: '/marketplace/{listing_id}',
443
- ...options
426
+ static createFleet(options) {
427
+ return (options.client ?? client).post({
428
+ url: '/clusters/{cluster_id}/fleets',
429
+ ...options,
430
+ headers: {
431
+ 'Content-Type': 'application/json',
432
+ ...options.headers
433
+ }
444
434
  });
445
435
  }
446
- }
447
- export class OrganizationService {
448
436
  /**
449
- * Get organization information.
450
- * Returns organization details including quota. For more information about 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.
442
+ *
443
+ * This endpoint is available to administrators of the organization only.
444
+ *
445
+ */
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.
451
453
  *
452
454
  * This endpoint is available to all users in the organization.
453
455
  *
454
456
  */
455
- static getOrganization(options) {
456
- return (options?.client ?? _heyApiClient).get({
457
- url: '/organization',
458
- ...options
459
- });
457
+ static getFleet(options) {
458
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
460
459
  }
461
460
  /**
462
- * Create a new organization / Cloudfleet account signup.
463
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
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.
464
470
  *
465
471
  */
466
- static createOrganization(options) {
467
- return (options.client ?? _heyApiClient).post({
468
- url: '/organization',
472
+ static updateFleet(options) {
473
+ return (options.client ?? client).put({
474
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
469
475
  ...options,
470
476
  headers: {
471
477
  'Content-Type': 'application/json',
472
- ...options?.headers
478
+ ...options.headers
473
479
  }
474
480
  });
475
481
  }
476
- }
477
- export class TokensService {
478
482
  /**
479
- * List access tokens in organization.
480
- * 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.
481
488
  *
482
489
  */
483
- static listTokens(options) {
484
- return (options?.client ?? _heyApiClient).get({
485
- url: '/tokens',
486
- ...options
487
- });
490
+ static listCharts(options) {
491
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
488
492
  }
489
493
  /**
490
- * Create a new access token.
491
- * 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.
492
497
  *
493
498
  * This endpoint is available to administrators of the organization only.
494
499
  *
495
500
  */
496
- static createToken(options) {
497
- return (options.client ?? _heyApiClient).post({
498
- url: '/tokens',
501
+ static createChart(options) {
502
+ return (options.client ?? client).post({
503
+ url: '/clusters/{cluster_id}/charts',
499
504
  ...options,
500
505
  headers: {
501
506
  'Content-Type': 'application/json',
502
- ...options?.headers
507
+ ...options.headers
503
508
  }
504
509
  });
505
510
  }
506
511
  /**
507
- * Permanently delete access token.
508
- * 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.
509
517
  *
510
518
  */
511
- static deleteToken(options) {
512
- return (options.client ?? _heyApiClient).delete({
513
- url: '/tokens/{token_id}',
514
- ...options
515
- });
519
+ static deleteChart(options) {
520
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
516
521
  }
517
522
  /**
518
- * Get access token information.
519
- * 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.
520
528
  *
521
529
  */
522
- static getToken(options) {
523
- return (options.client ?? _heyApiClient).get({
524
- url: '/tokens/{token_id}',
525
- ...options
526
- });
530
+ static getChart(options) {
531
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
527
532
  }
528
533
  /**
529
- * Update access token information.
530
- * 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.
531
537
  *
532
538
  * This endpoint is available to administrators of the organization only.
533
539
  *
534
540
  */
535
- static updateToken(options) {
536
- return (options.client ?? _heyApiClient).put({
537
- url: '/tokens/{token_id}',
541
+ static updateChart(options) {
542
+ return (options.client ?? client).put({
543
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
538
544
  ...options,
539
545
  headers: {
540
546
  'Content-Type': 'application/json',
541
- ...options?.headers
547
+ ...options.headers
542
548
  }
543
549
  });
544
550
  }
545
551
  /**
546
- * Regenerate access token secret key.
547
- * 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
+ *
548
558
  */
549
- static regenerateToken(options) {
550
- return (options.client ?? _heyApiClient).put({
551
- url: '/tokens/{token_id}/secret',
552
- ...options
553
- });
559
+ static listClusters(options) {
560
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
554
561
  }
555
- }
556
- export class UsersService {
557
562
  /**
558
- * 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
+ *
559
569
  */
560
- static listUserOrganizations(options) {
561
- return (options.client ?? _heyApiClient).get({
562
- url: '/users/organizations/{email}',
563
- ...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
+ }
564
578
  });
565
579
  }
566
580
  /**
567
- * List users in organization.
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.
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.
569
597
  *
570
598
  * This endpoint is available to all users in the organization.
571
599
  *
572
600
  */
573
- static listUsers(options) {
574
- return (options?.client ?? _heyApiClient).get({
575
- url: '/users',
576
- ...options
577
- });
601
+ static getCluster(options) {
602
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
578
603
  }
579
604
  /**
580
- * Create a new user.
581
- * 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.
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.
582
612
  *
583
613
  */
584
- static createUser(options) {
585
- return (options.client ?? _heyApiClient).post({
586
- url: '/users',
614
+ static updateCluster(options) {
615
+ return (options.client ?? client).put({
616
+ url: '/clusters/{cluster_id}',
587
617
  ...options,
588
618
  headers: {
589
619
  'Content-Type': 'application/json',
590
- ...options?.headers
620
+ ...options.headers
591
621
  }
592
622
  });
593
623
  }
594
624
  /**
595
- * Delete user by id.
596
- * 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.
597
628
  *
598
629
  */
599
- static deleteUser(options) {
600
- return (options.client ?? _heyApiClient).delete({
601
- url: '/users/{user_id}',
602
- ...options
603
- });
630
+ static getJoinInformation(options) {
631
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
604
632
  }
633
+ }
634
+ export class BillingService {
605
635
  /**
606
- * Get user profile information by id.
607
- * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
636
+ * Get billing usage information.
608
637
  *
609
- * 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.
610
639
  *
611
640
  */
612
- static getUser(options) {
613
- return (options.client ?? _heyApiClient).get({
614
- url: '/users/{user_id}',
615
- ...options
641
+ static getUsage(options) {
642
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
643
+ }
644
+ /**
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.
648
+ *
649
+ */
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',
707
+ ...options,
708
+ headers: {
709
+ 'Content-Type': 'application/json',
710
+ ...options.headers
711
+ }
616
712
  });
617
713
  }
618
714
  /**
619
- * Update user profile information.
620
- * 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.
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.
621
718
  *
622
719
  */
623
- static updateUser(options) {
624
- return (options.client ?? _heyApiClient).put({
625
- url: '/users/{user_id}',
720
+ static getCredits(options) {
721
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
722
+ }
723
+ /**
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.
727
+ *
728
+ */
729
+ static redeemCredits(options) {
730
+ return (options.client ?? client).post({
731
+ url: '/billing/credits',
626
732
  ...options,
627
733
  headers: {
628
734
  'Content-Type': 'application/json',
629
- ...options?.headers
735
+ ...options.headers
630
736
  }
631
737
  });
632
738
  }