@cloudfleet/sdk 0.0.1-cdcf1a9 → 0.0.1-cdd334c

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