@cloudfleet/sdk 0.0.1-f55e163 → 0.0.1-fd8cadf

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