@cloudfleet/sdk 0.0.1-d8d23ea → 0.0.1-da466c0

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 (108) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +943 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1156 -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 +8 -7
  11. package/dist/client/index.d.ts.map +1 -1
  12. package/dist/client/index.js +6 -4
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  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.d.ts → utils.gen.d.ts} +17 -25
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/{utils.js → utils.gen.js} +66 -122
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +3 -3
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +1 -3
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/{auth.js → auth.gen.js} +2 -1
  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.js → bodySerializer.gen.js} +6 -2
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/{params.js → params.gen.js} +24 -11
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  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.d.ts → types.gen.d.ts} +16 -16
  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/errors.d.ts +42 -0
  59. package/dist/errors.d.ts.map +1 -0
  60. package/dist/errors.js +83 -0
  61. package/dist/errors.js.map +1 -0
  62. package/dist/index.d.ts +1 -0
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +4 -0
  65. package/dist/index.js.map +1 -1
  66. package/dist/schemas.gen.d.ts +1730 -748
  67. package/dist/schemas.gen.d.ts.map +1 -1
  68. package/dist/schemas.gen.js +3153 -817
  69. package/dist/schemas.gen.js.map +1 -1
  70. package/dist/sdk.gen.d.ts +279 -164
  71. package/dist/sdk.gen.d.ts.map +1 -1
  72. package/dist/sdk.gen.js +403 -334
  73. package/dist/sdk.gen.js.map +1 -1
  74. package/dist/services/kubernetes/api.d.ts +10 -47
  75. package/dist/services/kubernetes/api.d.ts.map +1 -1
  76. package/dist/services/kubernetes/api.js +36 -75
  77. package/dist/services/kubernetes/api.js.map +1 -1
  78. package/dist/services/kubernetes/index.d.ts.map +1 -1
  79. package/dist/services/kubernetes/index.js +36 -37
  80. package/dist/services/kubernetes/index.js.map +1 -1
  81. package/dist/types.gen.d.ts +1883 -947
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +4008 -3773
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1493 -1178
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +27 -9
  88. package/dist/client/client.d.ts +0 -3
  89. package/dist/client/client.d.ts.map +0 -1
  90. package/dist/client/client.js +0 -146
  91. package/dist/client/client.js.map +0 -1
  92. package/dist/client/types.d.ts.map +0 -1
  93. package/dist/client/types.js +0 -2
  94. package/dist/client/types.js.map +0 -1
  95. package/dist/client/utils.d.ts.map +0 -1
  96. package/dist/client/utils.js.map +0 -1
  97. package/dist/core/auth.d.ts.map +0 -1
  98. package/dist/core/auth.js.map +0 -1
  99. package/dist/core/bodySerializer.d.ts +0 -18
  100. package/dist/core/bodySerializer.d.ts.map +0 -1
  101. package/dist/core/bodySerializer.js.map +0 -1
  102. package/dist/core/params.d.ts.map +0 -1
  103. package/dist/core/params.js.map +0 -1
  104. package/dist/core/pathSerializer.d.ts.map +0 -1
  105. package/dist/core/pathSerializer.js.map +0 -1
  106. package/dist/core/types.d.ts.map +0 -1
  107. package/dist/core/types.js +0 -2
  108. package/dist/core/types.js.map +0 -1
package/dist/sdk.gen.js CHANGED
@@ -1,91 +1,69 @@
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',
@@ -93,25 +71,28 @@ export class BillingService {
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',
@@ -119,31 +100,35 @@ export class BillingService {
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 });
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 });
136
120
  }
137
121
  /**
138
- * Create a new chart.
139
- * Create a new chart deployment.
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',
@@ -152,118 +137,130 @@ export class ClustersService {
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` and `grant_support_access`, 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',
170
+ 'Content-Type': null,
193
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
+ * Grant Cloudfleet support access for a ticket.
213
192
  *
214
- * This endpoint is available to administrators of the organization only.
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.
215
194
  *
216
195
  */
217
- static createFleet(options) {
218
- return (options.client ?? _heyApiClient).post({
219
- url: '/clusters/{cluster_id}/fleets',
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',
220
209
  ...options,
221
210
  headers: {
222
- 'Content-Type': 'application/json',
211
+ 'Content-Type': null,
223
212
  ...options.headers
224
213
  }
225
214
  });
226
215
  }
227
216
  /**
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.
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.
230
226
  *
231
- * This endpoint is available to administrators of the organization only.
227
+ * Returns the published roadmap items, newest first, each with your own vote. Votes of other users are not returned.
232
228
  *
233
229
  */
234
- static deleteFleet(options) {
235
- return (options.client ?? _heyApiClient).delete({
236
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
237
- ...options
238
- });
230
+ static listRoadmap(options) {
231
+ return (options?.client ?? client).get({ url: '/roadmap', ...options });
239
232
  }
240
233
  /**
241
- * Get fleet information.
242
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
234
+ * Suggest a new roadmap item.
243
235
  *
244
- * This endpoint is available to all users in the organization.
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.
245
237
  *
246
238
  */
247
- static getFleet(options) {
248
- return (options.client ?? _heyApiClient).get({
249
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
250
- ...options
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
+ }
251
247
  });
252
248
  }
253
249
  /**
254
- * Update fleet information.
255
- * This endpoint allows you to update fleet details.
256
- *
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`.
258
- *
259
- * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
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.
260
257
  *
261
- * This endpoint is available to administrators of the organization only.
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.
262
259
  *
263
260
  */
264
- static updateFleet(options) {
265
- return (options.client ?? _heyApiClient).put({
266
- url: '/clusters/{cluster_id}/fleets/{fleet_name}',
261
+ static voteRoadmap(options) {
262
+ return (options.client ?? client).put({
263
+ url: '/roadmap/{item_id}/vote',
267
264
  ...options,
268
265
  headers: {
269
266
  'Content-Type': 'application/json',
@@ -271,82 +268,66 @@ export class ClustersService {
271
268
  }
272
269
  });
273
270
  }
271
+ }
272
+ export class RegistryService {
274
273
  /**
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.
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
+ *
277
278
  */
278
- static queryCluster(options) {
279
- return (options.client ?? _heyApiClient).get({
280
- url: '/clusters/{cluster_id}/query',
281
- ...options
282
- });
279
+ static listRepositories(options) {
280
+ return (options?.client ?? client).get({ url: '/registry', ...options });
283
281
  }
284
282
  /**
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.
283
+ * List tags for a repository
287
284
  *
288
- * This endpoint is available to all users in the organization.
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.
289
286
  *
290
287
  */
291
- static listClusters(options) {
292
- return (options?.client ?? _heyApiClient).get({
293
- url: '/clusters',
294
- ...options
295
- });
288
+ static listTags(options) {
289
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
296
290
  }
297
291
  /**
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.
292
+ * Delete tag
300
293
  *
301
- * This endpoint is available to administrators of the organization only.
294
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
302
295
  *
303
296
  */
304
- static createCluster(options) {
305
- return (options.client ?? _heyApiClient).post({
306
- url: '/clusters',
307
- ...options,
308
- headers: {
309
- 'Content-Type': 'application/json',
310
- ...options.headers
311
- }
312
- });
297
+ static deleteTag(options) {
298
+ return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
313
299
  }
314
300
  /**
315
- * Permanently delete cluster.
316
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
301
+ * Get tag details
317
302
  *
318
- * This endpoint is available to administrators of the organization only.
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.
319
304
  *
320
305
  */
321
- static deleteCluster(options) {
322
- return (options.client ?? _heyApiClient).delete({
323
- url: '/clusters/{cluster_id}',
324
- ...options
325
- });
306
+ static getTag(options) {
307
+ return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
326
308
  }
309
+ }
310
+ export class OrganizationService {
327
311
  /**
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.
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.
330
315
  *
331
316
  * This endpoint is available to all users in the organization.
332
317
  *
333
318
  */
334
- static getCluster(options) {
335
- return (options.client ?? _heyApiClient).get({
336
- url: '/clusters/{cluster_id}',
337
- ...options
338
- });
319
+ static getOrganization(options) {
320
+ return (options?.client ?? client).get({ url: '/organization', ...options });
339
321
  }
340
322
  /**
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.
323
+ * Create a new organization / Cloudfleet account signup.
343
324
  *
344
- * 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.
345
326
  *
346
327
  */
347
- static updateCluster(options) {
348
- return (options.client ?? _heyApiClient).put({
349
- url: '/clusters/{cluster_id}',
328
+ static createOrganization(options) {
329
+ return (options.client ?? client).post({
330
+ url: '/organization',
350
331
  ...options,
351
332
  headers: {
352
333
  'Content-Type': 'application/json',
@@ -354,37 +335,42 @@ export class ClustersService {
354
335
  }
355
336
  });
356
337
  }
338
+ }
339
+ export class McpService {
357
340
  /**
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.
341
+ * MCP endpoint
360
342
  *
343
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
361
344
  */
362
- static getJoinInformation(options) {
363
- return (options.client ?? _heyApiClient).post({
364
- url: '/clusters/{cluster_id}/join_information',
365
- ...options
345
+ static postMcp(options) {
346
+ return (options.client ?? client).post({
347
+ url: '/mcp',
348
+ ...options,
349
+ headers: {
350
+ 'Content-Type': 'application/json',
351
+ ...options.headers
352
+ }
366
353
  });
367
354
  }
368
355
  }
369
356
  export class InvitesService {
370
357
  /**
371
358
  * List invites.
372
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
359
+ *
360
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
373
361
  *
374
362
  */
375
363
  static listInvites(options) {
376
- return (options?.client ?? _heyApiClient).get({
377
- url: '/invites',
378
- ...options
379
- });
364
+ return (options?.client ?? client).get({ url: '/invites', ...options });
380
365
  }
381
366
  /**
382
367
  * Create a new invite.
368
+ *
383
369
  * 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
370
  *
385
371
  */
386
372
  static createInvite(options) {
387
- return (options.client ?? _heyApiClient).post({
373
+ return (options.client ?? client).post({
388
374
  url: '/invites',
389
375
  ...options,
390
376
  headers: {
@@ -395,77 +381,120 @@ export class InvitesService {
395
381
  }
396
382
  /**
397
383
  * Get invite information.
398
- * Returns invite details.
384
+ *
385
+ * 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
386
  *
400
387
  */
401
388
  static getInvite(options) {
402
- return (options.client ?? _heyApiClient).get({
403
- url: '/invites/{code}',
404
- ...options
405
- });
389
+ return (options.client ?? client).get({ url: '/invites/{code}', ...options });
406
390
  }
407
391
  /**
408
392
  * Permanently delete invite.
393
+ *
409
394
  * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
410
395
  *
411
396
  */
412
397
  static deleteInvite(options) {
413
- return (options.client ?? _heyApiClient).delete({
414
- url: '/invites/{email}',
415
- ...options
416
- });
398
+ return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
417
399
  }
418
400
  }
419
- export class ChartsMarketplaceService {
401
+ export class FeedbackService {
420
402
  /**
421
- * List chart listings available in the marketplace.
422
- * Returns a list of available charts in the marketplace.
403
+ * Send feedback to the Cloudfleet team
423
404
  *
424
- * This endpoint is available to all users in the organization.
405
+ * Sends feedback straight to the Cloudfleet team: papercuts the team can act on from the note alone, such as what was useful, confusing, wrong or missing. This is not a support channel: for a problem that needs back-and-forth or debugging, open a support ticket with `POST /tickets` instead.
425
406
  *
426
407
  */
427
- static listMarketplaceCharts(options) {
428
- return (options?.client ?? _heyApiClient).get({
429
- url: '/marketplace',
430
- ...options
408
+ static sendFeedback(options) {
409
+ return (options.client ?? client).post({
410
+ url: '/feedback',
411
+ ...options,
412
+ headers: {
413
+ 'Content-Type': 'application/json',
414
+ ...options.headers
415
+ }
431
416
  });
432
417
  }
418
+ }
419
+ export class ClustersService {
433
420
  /**
434
- * Get chart listing details.
435
- * Returns details of the chart listing.
421
+ * Query Kubernetes cluster API
422
+ *
423
+ * 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.
424
+ */
425
+ static queryCluster(options) {
426
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
427
+ }
428
+ /**
429
+ * List fleets.
430
+ *
431
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
436
432
  *
437
433
  * This endpoint is available to all users in the organization.
438
434
  *
439
435
  */
440
- static getMarketplaceChart(options) {
441
- return (options.client ?? _heyApiClient).get({
442
- url: '/marketplace/{listing_id}',
443
- ...options
436
+ static listFleets(options) {
437
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
438
+ }
439
+ /**
440
+ * Create a new fleet.
441
+ *
442
+ * 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.
443
+ *
444
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
445
+ *
446
+ * This endpoint is available to administrators of the organization only.
447
+ *
448
+ */
449
+ static createFleet(options) {
450
+ return (options.client ?? client).post({
451
+ url: '/clusters/{cluster_id}/fleets',
452
+ ...options,
453
+ headers: {
454
+ 'Content-Type': 'application/json',
455
+ ...options.headers
456
+ }
444
457
  });
445
458
  }
446
- }
447
- export class OrganizationService {
448
459
  /**
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.
460
+ * Permanently delete fleet.
461
+ *
462
+ * 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.
463
+ *
464
+ * 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.
465
+ *
466
+ * This endpoint is available to administrators of the organization only.
467
+ *
468
+ */
469
+ static deleteFleet(options) {
470
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
471
+ }
472
+ /**
473
+ * Get fleet information.
474
+ *
475
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
451
476
  *
452
477
  * This endpoint is available to all users in the organization.
453
478
  *
454
479
  */
455
- static getOrganization(options) {
456
- return (options?.client ?? _heyApiClient).get({
457
- url: '/organization',
458
- ...options
459
- });
480
+ static getFleet(options) {
481
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
460
482
  }
461
483
  /**
462
- * Create a new organization / Cloudfleet account signup.
463
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
484
+ * Update fleet information.
485
+ *
486
+ * This endpoint allows you to update fleet details.
487
+ *
488
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
489
+ *
490
+ * 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).
491
+ *
492
+ * This endpoint is available to administrators of the organization only.
464
493
  *
465
494
  */
466
- static createOrganization(options) {
467
- return (options.client ?? _heyApiClient).post({
468
- url: '/organization',
495
+ static updateFleet(options) {
496
+ return (options.client ?? client).put({
497
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
469
498
  ...options,
470
499
  headers: {
471
500
  'Content-Type': 'application/json',
@@ -473,29 +502,28 @@ export class OrganizationService {
473
502
  }
474
503
  });
475
504
  }
476
- }
477
- export class TokensService {
478
505
  /**
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.
506
+ * List clusters.
507
+ *
508
+ * Returns a list of clusters under the current organization.
509
+ *
510
+ * This endpoint is available to all users in the organization.
481
511
  *
482
512
  */
483
- static listTokens(options) {
484
- return (options?.client ?? _heyApiClient).get({
485
- url: '/tokens',
486
- ...options
487
- });
513
+ static listClusters(options) {
514
+ return (options?.client ?? client).get({ url: '/clusters', ...options });
488
515
  }
489
516
  /**
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.
517
+ * Create a new cluster.
518
+ *
519
+ * 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.
492
520
  *
493
521
  * This endpoint is available to administrators of the organization only.
494
522
  *
495
523
  */
496
- static createToken(options) {
497
- return (options.client ?? _heyApiClient).post({
498
- url: '/tokens',
524
+ static createCluster(options) {
525
+ return (options.client ?? client).post({
526
+ url: '/clusters',
499
527
  ...options,
500
528
  headers: {
501
529
  'Content-Type': 'application/json',
@@ -504,37 +532,42 @@ export class TokensService {
504
532
  });
505
533
  }
506
534
  /**
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.
535
+ * Permanently delete cluster.
536
+ *
537
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
538
+ *
539
+ * 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.
540
+ *
541
+ * This endpoint is available to administrators of the organization only.
509
542
  *
510
543
  */
511
- static deleteToken(options) {
512
- return (options.client ?? _heyApiClient).delete({
513
- url: '/tokens/{token_id}',
514
- ...options
515
- });
544
+ static deleteCluster(options) {
545
+ return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
516
546
  }
517
547
  /**
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.
548
+ * Get cluster information.
549
+ *
550
+ * Returns cluster details.
551
+ *
552
+ * This endpoint is available to all users in the organization.
520
553
  *
521
554
  */
522
- static getToken(options) {
523
- return (options.client ?? _heyApiClient).get({
524
- url: '/tokens/{token_id}',
525
- ...options
526
- });
555
+ static getCluster(options) {
556
+ return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
527
557
  }
528
558
  /**
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.
559
+ * Update cluster information.
560
+ *
561
+ * 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.
562
+ *
563
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
531
564
  *
532
565
  * This endpoint is available to administrators of the organization only.
533
566
  *
534
567
  */
535
- static updateToken(options) {
536
- return (options.client ?? _heyApiClient).put({
537
- url: '/tokens/{token_id}',
568
+ static updateCluster(options) {
569
+ return (options.client ?? client).put({
570
+ url: '/clusters/{cluster_id}',
538
571
  ...options,
539
572
  headers: {
540
573
  'Content-Type': 'application/json',
@@ -543,47 +576,97 @@ export class TokensService {
543
576
  });
544
577
  }
545
578
  /**
546
- * Regenerate access token secret key.
547
- * Generates a new access token secret. Old secret will not be valid anymore.
579
+ * Node join information for the cluster
580
+ *
581
+ * 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.
582
+ *
548
583
  */
549
- static regenerateToken(options) {
550
- return (options.client ?? _heyApiClient).put({
551
- url: '/tokens/{token_id}/secret',
552
- ...options
553
- });
584
+ static getJoinInformation(options) {
585
+ return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
554
586
  }
555
587
  }
556
- export class UsersService {
588
+ export class BillingService {
557
589
  /**
558
- * Get a list of organizations the user belongs to. Used during authentication process.
590
+ * Get billing usage information.
591
+ *
592
+ * 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.
593
+ *
559
594
  */
560
- static listUserOrganizations(options) {
561
- return (options.client ?? _heyApiClient).get({
562
- url: '/users/organizations/{email}',
563
- ...options
564
- });
595
+ static getUsage(options) {
596
+ return (options?.client ?? client).get({ url: '/billing/usage', ...options });
565
597
  }
566
598
  /**
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.
599
+ * Get Stripe client secret.
569
600
  *
570
- * This endpoint is available to all users in the organization.
601
+ * 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.
571
602
  *
572
603
  */
573
- static listUsers(options) {
574
- return (options?.client ?? _heyApiClient).get({
575
- url: '/users',
576
- ...options
577
- });
604
+ static getPaymentMethodSecret(options) {
605
+ return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
578
606
  }
579
607
  /**
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.
608
+ * List organization payment methods.
609
+ *
610
+ * 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.
582
611
  *
583
612
  */
584
- static createUser(options) {
585
- return (options.client ?? _heyApiClient).post({
586
- url: '/users',
613
+ static listPaymentMethods(options) {
614
+ return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
615
+ }
616
+ /**
617
+ * Set the default payment method.
618
+ *
619
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
620
+ *
621
+ */
622
+ static setDefaultPaymentMethod(options) {
623
+ return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
624
+ }
625
+ /**
626
+ * Delete a payment method.
627
+ *
628
+ * 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.
629
+ *
630
+ */
631
+ static deletePaymentMethod(options) {
632
+ return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
633
+ }
634
+ /**
635
+ * List issued invoices.
636
+ *
637
+ * 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.
638
+ *
639
+ */
640
+ static listInvoices(options) {
641
+ return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
642
+ }
643
+ /**
644
+ * Pay the organization's open invoices.
645
+ *
646
+ * Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
647
+ *
648
+ */
649
+ static payOpenInvoices(options) {
650
+ return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
651
+ }
652
+ /**
653
+ * Get organization contact and billing address information.
654
+ *
655
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
656
+ *
657
+ */
658
+ static getContact(options) {
659
+ return (options?.client ?? client).get({ url: '/billing/contact', ...options });
660
+ }
661
+ /**
662
+ * Update organization contact information and billing address.
663
+ *
664
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
665
+ *
666
+ */
667
+ static updateContact(options) {
668
+ return (options.client ?? client).put({
669
+ url: '/billing/contact',
587
670
  ...options,
588
671
  headers: {
589
672
  'Content-Type': 'application/json',
@@ -592,37 +675,23 @@ export class UsersService {
592
675
  });
593
676
  }
594
677
  /**
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.
678
+ * Get applied promotional credits
608
679
  *
609
- * This endpoint is available to all users in the organization.
680
+ * Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
610
681
  *
611
682
  */
612
- static getUser(options) {
613
- return (options.client ?? _heyApiClient).get({
614
- url: '/users/{user_id}',
615
- ...options
616
- });
683
+ static getCredits(options) {
684
+ return (options?.client ?? client).get({ url: '/billing/credits', ...options });
617
685
  }
618
686
  /**
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.
687
+ * Redeem promotional credits code.
688
+ *
689
+ * Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
621
690
  *
622
691
  */
623
- static updateUser(options) {
624
- return (options.client ?? _heyApiClient).put({
625
- url: '/users/{user_id}',
692
+ static redeemCredits(options) {
693
+ return (options.client ?? client).post({
694
+ url: '/billing/credits',
626
695
  ...options,
627
696
  headers: {
628
697
  'Content-Type': 'application/json',