@cloudfleet/sdk 0.0.1-f1d40ff → 0.0.1-f367cfd

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