@cloudfleet/sdk 0.0.1-e644e0d → 0.0.1-e717067

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 (71) 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 +149 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +8 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +6 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +123 -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 +46 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +286 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +13 -0
  18. package/dist/client.gen.d.ts.map +1 -0
  19. package/dist/client.gen.js +6 -0
  20. package/dist/client.gen.js.map +1 -0
  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 +55 -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/types.gen.d.ts +79 -0
  38. package/dist/core/types.gen.d.ts.map +1 -0
  39. package/dist/core/types.gen.js +3 -0
  40. package/dist/core/types.gen.js.map +1 -0
  41. package/dist/index.d.ts +3 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +3 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/schemas.gen.d.ts +347 -399
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +348 -408
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +135 -133
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +189 -132
  52. package/dist/sdk.gen.js.map +1 -1
  53. package/dist/services/kubernetes/api.d.ts +196 -0
  54. package/dist/services/kubernetes/api.d.ts.map +1 -0
  55. package/dist/services/kubernetes/api.js +140 -0
  56. package/dist/services/kubernetes/api.js.map +1 -0
  57. package/dist/services/kubernetes/index.d.ts +44 -0
  58. package/dist/services/kubernetes/index.d.ts.map +1 -0
  59. package/dist/services/kubernetes/index.js +68 -0
  60. package/dist/services/kubernetes/index.js.map +1 -0
  61. package/dist/services/kubernetes/types.d.ts +1335 -0
  62. package/dist/services/kubernetes/types.d.ts.map +1 -0
  63. package/dist/services/kubernetes/types.js +2 -0
  64. package/dist/services/kubernetes/types.js.map +1 -0
  65. package/dist/types.gen.d.ts +386 -512
  66. package/dist/types.gen.d.ts.map +1 -1
  67. package/dist/zod.gen.d.ts +2774 -2299
  68. package/dist/zod.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.js +846 -300
  70. package/dist/zod.gen.js.map +1 -1
  71. package/package.json +8 -5
package/dist/sdk.gen.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig } from '@hey-api/client-fetch';
3
- export const client = createClient(createConfig());
2
+ import { client as _heyApiClient } from './client.gen';
4
3
  export class BillingService {
5
4
  /**
6
5
  * Get billing usage information.
@@ -8,7 +7,7 @@ export class BillingService {
8
7
  *
9
8
  */
10
9
  static getUsage(options) {
11
- return (options?.client ?? client).get({
10
+ return (options?.client ?? _heyApiClient).get({
12
11
  url: '/billing/usage',
13
12
  ...options
14
13
  });
@@ -19,7 +18,7 @@ export class BillingService {
19
18
  *
20
19
  */
21
20
  static getBalance(options) {
22
- return (options?.client ?? client).get({
21
+ return (options?.client ?? _heyApiClient).get({
23
22
  url: '/billing/balance',
24
23
  ...options
25
24
  });
@@ -30,7 +29,7 @@ export class BillingService {
30
29
  *
31
30
  */
32
31
  static getPaymentMethod(options) {
33
- return (options?.client ?? client).get({
32
+ return (options?.client ?? _heyApiClient).get({
34
33
  url: '/billing/payment-method',
35
34
  ...options
36
35
  });
@@ -41,7 +40,7 @@ export class BillingService {
41
40
  *
42
41
  */
43
42
  static getPaymentMethodSecret(options) {
44
- return (options?.client ?? client).put({
43
+ return (options?.client ?? _heyApiClient).put({
45
44
  url: '/billing/payment-method',
46
45
  ...options
47
46
  });
@@ -52,7 +51,7 @@ export class BillingService {
52
51
  *
53
52
  */
54
53
  static listInvoices(options) {
55
- return (options?.client ?? client).get({
54
+ return (options.client ?? _heyApiClient).get({
56
55
  url: '/billing/invoices',
57
56
  ...options
58
57
  });
@@ -63,7 +62,7 @@ export class BillingService {
63
62
  *
64
63
  */
65
64
  static getInvoice(options) {
66
- return (options?.client ?? client).get({
65
+ return (options.client ?? _heyApiClient).get({
67
66
  url: '/billing/invoices/{id}',
68
67
  ...options
69
68
  });
@@ -74,7 +73,7 @@ export class BillingService {
74
73
  *
75
74
  */
76
75
  static getContact(options) {
77
- return (options?.client ?? client).get({
76
+ return (options?.client ?? _heyApiClient).get({
78
77
  url: '/billing/contact',
79
78
  ...options
80
79
  });
@@ -85,69 +84,168 @@ export class BillingService {
85
84
  *
86
85
  */
87
86
  static updateContact(options) {
88
- return (options?.client ?? client).put({
87
+ return (options.client ?? _heyApiClient).put({
89
88
  url: '/billing/contact',
90
89
  ...options,
91
90
  headers: {
92
91
  'Content-Type': 'application/json',
93
- ...options?.headers
92
+ ...options.headers
93
+ }
94
+ });
95
+ }
96
+ /**
97
+ * Get applied promotional credits
98
+ * Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
99
+ *
100
+ */
101
+ static getCredits(options) {
102
+ return (options?.client ?? _heyApiClient).get({
103
+ url: '/billing/credits',
104
+ ...options
105
+ });
106
+ }
107
+ /**
108
+ * Redeem promotional credits code.
109
+ * Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
110
+ *
111
+ */
112
+ static redeemCredits(options) {
113
+ return (options.client ?? _heyApiClient).post({
114
+ url: '/billing/credits',
115
+ ...options,
116
+ headers: {
117
+ 'Content-Type': 'application/json',
118
+ ...options.headers
94
119
  }
95
120
  });
96
121
  }
97
122
  }
98
123
  export class ClustersService {
124
+ /**
125
+ * List charts.
126
+ * Returns a list of charts in the cluster.
127
+ *
128
+ * This endpoint is available to all users in the organization.
129
+ *
130
+ */
131
+ static listCharts(options) {
132
+ return (options.client ?? _heyApiClient).get({
133
+ url: '/clusters/{cluster_id}/charts',
134
+ ...options
135
+ });
136
+ }
137
+ /**
138
+ * Create a new chart.
139
+ * Create a new chart deployment.
140
+ *
141
+ * This endpoint is available to administrators of the organization only.
142
+ *
143
+ */
144
+ static createChart(options) {
145
+ return (options.client ?? _heyApiClient).post({
146
+ url: '/clusters/{cluster_id}/charts',
147
+ ...options,
148
+ headers: {
149
+ 'Content-Type': 'application/json',
150
+ ...options.headers
151
+ }
152
+ });
153
+ }
154
+ /**
155
+ * Permanently delete the chart deployment from the cluster.
156
+ * This endpoint will permanently delete chart. This operation cannot be undone.
157
+ *
158
+ * This endpoint is available to administrators of the organization only.
159
+ *
160
+ */
161
+ static deleteChart(options) {
162
+ return (options.client ?? _heyApiClient).delete({
163
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
164
+ ...options
165
+ });
166
+ }
167
+ /**
168
+ * Get chart information.
169
+ * Returns the details of the chart deployment.
170
+ *
171
+ * This endpoint is available to all users in the organization.
172
+ *
173
+ */
174
+ static getChart(options) {
175
+ return (options.client ?? _heyApiClient).get({
176
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
177
+ ...options
178
+ });
179
+ }
180
+ /**
181
+ * Update chart information.
182
+ * This endpoint allows you to update the values of a chart deployment.
183
+ *
184
+ * This endpoint is available to administrators of the organization only.
185
+ *
186
+ */
187
+ static updateChart(options) {
188
+ return (options.client ?? _heyApiClient).put({
189
+ url: '/clusters/{cluster_id}/charts/{chart_name}',
190
+ ...options,
191
+ headers: {
192
+ 'Content-Type': 'application/json',
193
+ ...options.headers
194
+ }
195
+ });
196
+ }
99
197
  /**
100
198
  * List fleets.
101
- * 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.
199
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
102
200
  *
103
201
  * This endpoint is available to all users in the organization.
104
202
  *
105
203
  */
106
204
  static listFleets(options) {
107
- return (options?.client ?? client).get({
205
+ return (options.client ?? _heyApiClient).get({
108
206
  url: '/clusters/{cluster_id}/fleets',
109
207
  ...options
110
208
  });
111
209
  }
112
210
  /**
113
211
  * Create a new fleet.
114
- * 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.
212
+ * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
115
213
  *
116
214
  * This endpoint is available to administrators of the organization only.
117
215
  *
118
216
  */
119
217
  static createFleet(options) {
120
- return (options?.client ?? client).post({
218
+ return (options.client ?? _heyApiClient).post({
121
219
  url: '/clusters/{cluster_id}/fleets',
122
220
  ...options,
123
221
  headers: {
124
222
  'Content-Type': 'application/json',
125
- ...options?.headers
223
+ ...options.headers
126
224
  }
127
225
  });
128
226
  }
129
227
  /**
130
228
  * Permanently delete fleet.
131
- * 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.
229
+ * This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
132
230
  *
133
231
  * This endpoint is available to administrators of the organization only.
134
232
  *
135
233
  */
136
234
  static deleteFleet(options) {
137
- return (options?.client ?? client).delete({
235
+ return (options.client ?? _heyApiClient).delete({
138
236
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
139
237
  ...options
140
238
  });
141
239
  }
142
240
  /**
143
241
  * Get fleet information.
144
- * Returns fleet details. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
242
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
145
243
  *
146
244
  * This endpoint is available to all users in the organization.
147
245
  *
148
246
  */
149
247
  static getFleet(options) {
150
- return (options?.client ?? client).get({
248
+ return (options.client ?? _heyApiClient).get({
151
249
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
152
250
  ...options
153
251
  });
@@ -156,20 +254,20 @@ export class ClustersService {
156
254
  * Update fleet information.
157
255
  * This endpoint allows you to update fleet details.
158
256
  *
159
- * 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`.
257
+ * Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
160
258
  *
161
- * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
259
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
162
260
  *
163
261
  * This endpoint is available to administrators of the organization only.
164
262
  *
165
263
  */
166
264
  static updateFleet(options) {
167
- return (options?.client ?? client).put({
265
+ return (options.client ?? _heyApiClient).put({
168
266
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
169
267
  ...options,
170
268
  headers: {
171
269
  'Content-Type': 'application/json',
172
- ...options?.headers
270
+ ...options.headers
173
271
  }
174
272
  });
175
273
  }
@@ -178,7 +276,7 @@ export class ClustersService {
178
276
  * An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
179
277
  */
180
278
  static queryCluster(options) {
181
- return (options?.client ?? client).get({
279
+ return (options.client ?? _heyApiClient).get({
182
280
  url: '/clusters/{cluster_id}/query',
183
281
  ...options
184
282
  });
@@ -191,7 +289,7 @@ export class ClustersService {
191
289
  *
192
290
  */
193
291
  static listClusters(options) {
194
- return (options?.client ?? client).get({
292
+ return (options?.client ?? _heyApiClient).get({
195
293
  url: '/clusters',
196
294
  ...options
197
295
  });
@@ -204,12 +302,12 @@ export class ClustersService {
204
302
  *
205
303
  */
206
304
  static createCluster(options) {
207
- return (options?.client ?? client).post({
305
+ return (options.client ?? _heyApiClient).post({
208
306
  url: '/clusters',
209
307
  ...options,
210
308
  headers: {
211
309
  'Content-Type': 'application/json',
212
- ...options?.headers
310
+ ...options.headers
213
311
  }
214
312
  });
215
313
  }
@@ -221,7 +319,7 @@ export class ClustersService {
221
319
  *
222
320
  */
223
321
  static deleteCluster(options) {
224
- return (options?.client ?? client).delete({
322
+ return (options.client ?? _heyApiClient).delete({
225
323
  url: '/clusters/{cluster_id}',
226
324
  ...options
227
325
  });
@@ -234,7 +332,7 @@ export class ClustersService {
234
332
  *
235
333
  */
236
334
  static getCluster(options) {
237
- return (options?.client ?? client).get({
335
+ return (options.client ?? _heyApiClient).get({
238
336
  url: '/clusters/{cluster_id}',
239
337
  ...options
240
338
  });
@@ -247,70 +345,27 @@ export class ClustersService {
247
345
  *
248
346
  */
249
347
  static updateCluster(options) {
250
- return (options?.client ?? client).put({
348
+ return (options.client ?? _heyApiClient).put({
251
349
  url: '/clusters/{cluster_id}',
252
350
  ...options,
253
351
  headers: {
254
352
  'Content-Type': 'application/json',
255
- ...options?.headers
353
+ ...options.headers
256
354
  }
257
355
  });
258
356
  }
259
357
  /**
260
358
  * Node join information for the cluster
261
- * 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.
359
+ * Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
262
360
  *
263
361
  */
264
362
  static getJoinInformation(options) {
265
- return (options?.client ?? client).post({
363
+ return (options.client ?? _heyApiClient).post({
266
364
  url: '/clusters/{cluster_id}/join_information',
267
365
  ...options
268
366
  });
269
367
  }
270
368
  }
271
- export class InfrastructureService {
272
- /**
273
- * Search infrastructure catalog.
274
- * This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
275
- *
276
- * `GET /infrastructure?accelerator_name=A100&region=northamerica`
277
- *
278
- * Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
279
- *
280
- * **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
281
- *
282
- * For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
283
- *
284
- */
285
- static getInfrastructure(options) {
286
- return (options?.client ?? client).get({
287
- url: '/infrastructure',
288
- ...options
289
- });
290
- }
291
- /**
292
- * Infrastructure catalog facets.
293
- * This endpoint returns calculated search facets from the infrastructure catalog.
294
- *
295
- */
296
- static getFacets(options) {
297
- return (options?.client ?? client).get({
298
- url: '/infrastructure/facets',
299
- ...options
300
- });
301
- }
302
- /**
303
- * Available Cloudfleet regions and Kubernetes versions.
304
- * Available Cloudfleet regions and Kubernetes versions.
305
- *
306
- */
307
- static getRegions(options) {
308
- return (options?.client ?? client).get({
309
- url: '/infrastructure/regions',
310
- ...options
311
- });
312
- }
313
- }
314
369
  export class InvitesService {
315
370
  /**
316
371
  * List invites.
@@ -318,23 +373,23 @@ export class InvitesService {
318
373
  *
319
374
  */
320
375
  static listInvites(options) {
321
- return (options?.client ?? client).get({
376
+ return (options?.client ?? _heyApiClient).get({
322
377
  url: '/invites',
323
378
  ...options
324
379
  });
325
380
  }
326
381
  /**
327
382
  * Create a new invite.
328
- * 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.
383
+ * Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
329
384
  *
330
385
  */
331
386
  static createInvite(options) {
332
- return (options?.client ?? client).post({
387
+ return (options.client ?? _heyApiClient).post({
333
388
  url: '/invites',
334
389
  ...options,
335
390
  headers: {
336
391
  'Content-Type': 'application/json',
337
- ...options?.headers
392
+ ...options.headers
338
393
  }
339
394
  });
340
395
  }
@@ -344,7 +399,7 @@ export class InvitesService {
344
399
  *
345
400
  */
346
401
  static getInvite(options) {
347
- return (options?.client ?? client).get({
402
+ return (options.client ?? _heyApiClient).get({
348
403
  url: '/invites/{code}',
349
404
  ...options
350
405
  });
@@ -355,12 +410,40 @@ export class InvitesService {
355
410
  *
356
411
  */
357
412
  static deleteInvite(options) {
358
- return (options?.client ?? client).delete({
413
+ return (options.client ?? _heyApiClient).delete({
359
414
  url: '/invites/{email}',
360
415
  ...options
361
416
  });
362
417
  }
363
418
  }
419
+ export class ChartsMarketplaceService {
420
+ /**
421
+ * List chart listings available in the marketplace.
422
+ * Returns a list of available charts in the marketplace.
423
+ *
424
+ * This endpoint is available to all users in the organization.
425
+ *
426
+ */
427
+ static listMarketplaceCharts(options) {
428
+ return (options?.client ?? _heyApiClient).get({
429
+ url: '/marketplace',
430
+ ...options
431
+ });
432
+ }
433
+ /**
434
+ * Get chart listing details.
435
+ * Returns details of the chart listing.
436
+ *
437
+ * This endpoint is available to all users in the organization.
438
+ *
439
+ */
440
+ static getMarketplaceChart(options) {
441
+ return (options.client ?? _heyApiClient).get({
442
+ url: '/marketplace/{listing_id}',
443
+ ...options
444
+ });
445
+ }
446
+ }
364
447
  export class OrganizationService {
365
448
  /**
366
449
  * Get organization information.
@@ -370,23 +453,23 @@ export class OrganizationService {
370
453
  *
371
454
  */
372
455
  static getOrganization(options) {
373
- return (options?.client ?? client).get({
456
+ return (options?.client ?? _heyApiClient).get({
374
457
  url: '/organization',
375
458
  ...options
376
459
  });
377
460
  }
378
461
  /**
379
462
  * Create a new organization / Cloudfleet account signup.
380
- * This endpoint allows you to create a new Cloudfleet organization with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
463
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
381
464
  *
382
465
  */
383
466
  static createOrganization(options) {
384
- return (options?.client ?? client).post({
467
+ return (options.client ?? _heyApiClient).post({
385
468
  url: '/organization',
386
469
  ...options,
387
470
  headers: {
388
471
  'Content-Type': 'application/json',
389
- ...options?.headers
472
+ ...options.headers
390
473
  }
391
474
  });
392
475
  }
@@ -398,7 +481,7 @@ export class TokensService {
398
481
  *
399
482
  */
400
483
  static listTokens(options) {
401
- return (options?.client ?? client).get({
484
+ return (options?.client ?? _heyApiClient).get({
402
485
  url: '/tokens',
403
486
  ...options
404
487
  });
@@ -411,12 +494,12 @@ export class TokensService {
411
494
  *
412
495
  */
413
496
  static createToken(options) {
414
- return (options?.client ?? client).post({
497
+ return (options.client ?? _heyApiClient).post({
415
498
  url: '/tokens',
416
499
  ...options,
417
500
  headers: {
418
501
  'Content-Type': 'application/json',
419
- ...options?.headers
502
+ ...options.headers
420
503
  }
421
504
  });
422
505
  }
@@ -426,7 +509,7 @@ export class TokensService {
426
509
  *
427
510
  */
428
511
  static deleteToken(options) {
429
- return (options?.client ?? client).delete({
512
+ return (options.client ?? _heyApiClient).delete({
430
513
  url: '/tokens/{token_id}',
431
514
  ...options
432
515
  });
@@ -437,7 +520,7 @@ export class TokensService {
437
520
  *
438
521
  */
439
522
  static getToken(options) {
440
- return (options?.client ?? client).get({
523
+ return (options.client ?? _heyApiClient).get({
441
524
  url: '/tokens/{token_id}',
442
525
  ...options
443
526
  });
@@ -450,12 +533,12 @@ export class TokensService {
450
533
  *
451
534
  */
452
535
  static updateToken(options) {
453
- return (options?.client ?? client).put({
536
+ return (options.client ?? _heyApiClient).put({
454
537
  url: '/tokens/{token_id}',
455
538
  ...options,
456
539
  headers: {
457
540
  'Content-Type': 'application/json',
458
- ...options?.headers
541
+ ...options.headers
459
542
  }
460
543
  });
461
544
  }
@@ -464,7 +547,7 @@ export class TokensService {
464
547
  * Generates a new access token secret. Old secret will not be valid anymore.
465
548
  */
466
549
  static regenerateToken(options) {
467
- return (options?.client ?? client).put({
550
+ return (options.client ?? _heyApiClient).put({
468
551
  url: '/tokens/{token_id}/secret',
469
552
  ...options
470
553
  });
@@ -475,36 +558,36 @@ export class UsersService {
475
558
  * Get a list of organizations the user belongs to. Used during authentication process.
476
559
  */
477
560
  static listUserOrganizations(options) {
478
- return (options?.client ?? client).get({
561
+ return (options.client ?? _heyApiClient).get({
479
562
  url: '/users/organizations/{email}',
480
563
  ...options
481
564
  });
482
565
  }
483
566
  /**
484
567
  * List users in organization.
485
- * 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.
568
+ * Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
486
569
  *
487
570
  * This endpoint is available to all users in the organization.
488
571
  *
489
572
  */
490
573
  static listUsers(options) {
491
- return (options?.client ?? client).get({
574
+ return (options?.client ?? _heyApiClient).get({
492
575
  url: '/users',
493
576
  ...options
494
577
  });
495
578
  }
496
579
  /**
497
580
  * Create a new user.
498
- * 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.
581
+ * Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
499
582
  *
500
583
  */
501
584
  static createUser(options) {
502
- return (options?.client ?? client).post({
585
+ return (options.client ?? _heyApiClient).post({
503
586
  url: '/users',
504
587
  ...options,
505
588
  headers: {
506
589
  'Content-Type': 'application/json',
507
- ...options?.headers
590
+ ...options.headers
508
591
  }
509
592
  });
510
593
  }
@@ -514,20 +597,20 @@ export class UsersService {
514
597
  *
515
598
  */
516
599
  static deleteUser(options) {
517
- return (options?.client ?? client).delete({
600
+ return (options.client ?? _heyApiClient).delete({
518
601
  url: '/users/{user_id}',
519
602
  ...options
520
603
  });
521
604
  }
522
605
  /**
523
606
  * Get user profile information by id.
524
- * 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.
607
+ * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
525
608
  *
526
609
  * This endpoint is available to all users in the organization.
527
610
  *
528
611
  */
529
612
  static getUser(options) {
530
- return (options?.client ?? client).get({
613
+ return (options.client ?? _heyApiClient).get({
531
614
  url: '/users/{user_id}',
532
615
  ...options
533
616
  });
@@ -538,38 +621,12 @@ export class UsersService {
538
621
  *
539
622
  */
540
623
  static updateUser(options) {
541
- return (options?.client ?? client).put({
624
+ return (options.client ?? _heyApiClient).put({
542
625
  url: '/users/{user_id}',
543
626
  ...options,
544
627
  headers: {
545
628
  'Content-Type': 'application/json',
546
- ...options?.headers
547
- }
548
- });
549
- }
550
- /**
551
- * Remove user from cluster.
552
- * 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.
553
- *
554
- */
555
- static deleteClusterPermissions(options) {
556
- return (options?.client ?? client).delete({
557
- url: '/users/{user_id}/clusters/{cluster_id}',
558
- ...options
559
- });
560
- }
561
- /**
562
- * Add user to cluster and set permissions.
563
- * Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
564
- *
565
- */
566
- static setClusterPermissions(options) {
567
- return (options?.client ?? client).put({
568
- url: '/users/{user_id}/clusters/{cluster_id}',
569
- ...options,
570
- headers: {
571
- 'Content-Type': 'application/json',
572
- ...options?.headers
629
+ ...options.headers
573
630
  }
574
631
  });
575
632
  }