@cloudfleet/sdk 0.0.1-204574f → 0.0.1-20bd5c1

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