@cloudfleet/sdk 0.0.1-e2d1408 → 0.0.1-e80cef7

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.
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,35 +62,160 @@ 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
  });
70
69
  }
70
+ /**
71
+ * Get organization contact and billing address information.
72
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
73
+ *
74
+ */
75
+ static getContact(options) {
76
+ return (options?.client ?? _heyApiClient).get({
77
+ url: '/billing/contact',
78
+ ...options
79
+ });
80
+ }
81
+ /**
82
+ * Update organization contact information and billing address.
83
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
84
+ *
85
+ */
86
+ static updateContact(options) {
87
+ return (options.client ?? _heyApiClient).put({
88
+ url: '/billing/contact',
89
+ ...options,
90
+ headers: {
91
+ 'Content-Type': 'application/json',
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
119
+ }
120
+ });
121
+ }
71
122
  }
72
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
+ }
73
197
  /**
74
198
  * List fleets.
75
- * 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.
76
200
  *
77
201
  * This endpoint is available to all users in the organization.
78
202
  *
79
203
  */
80
204
  static listFleets(options) {
81
- return (options?.client ?? client).get({
205
+ return (options.client ?? _heyApiClient).get({
82
206
  url: '/clusters/{cluster_id}/fleets',
83
207
  ...options
84
208
  });
85
209
  }
86
210
  /**
87
211
  * Create a new fleet.
88
- * 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.
89
213
  *
90
214
  * This endpoint is available to administrators of the organization only.
91
215
  *
92
216
  */
93
217
  static createFleet(options) {
94
- return (options?.client ?? client).post({
218
+ return (options.client ?? _heyApiClient).post({
95
219
  url: '/clusters/{cluster_id}/fleets',
96
220
  ...options,
97
221
  headers: {
@@ -102,26 +226,26 @@ export class ClustersService {
102
226
  }
103
227
  /**
104
228
  * Permanently delete fleet.
105
- * 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.
106
230
  *
107
231
  * This endpoint is available to administrators of the organization only.
108
232
  *
109
233
  */
110
234
  static deleteFleet(options) {
111
- return (options?.client ?? client).delete({
235
+ return (options.client ?? _heyApiClient).delete({
112
236
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
113
237
  ...options
114
238
  });
115
239
  }
116
240
  /**
117
241
  * Get fleet information.
118
- * 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.
119
243
  *
120
244
  * This endpoint is available to all users in the organization.
121
245
  *
122
246
  */
123
247
  static getFleet(options) {
124
- return (options?.client ?? client).get({
248
+ return (options.client ?? _heyApiClient).get({
125
249
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
126
250
  ...options
127
251
  });
@@ -130,15 +254,15 @@ export class ClustersService {
130
254
  * Update fleet information.
131
255
  * This endpoint allows you to update fleet details.
132
256
  *
133
- * 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`.
134
258
  *
135
- * 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.
136
260
  *
137
261
  * This endpoint is available to administrators of the organization only.
138
262
  *
139
263
  */
140
264
  static updateFleet(options) {
141
- return (options?.client ?? client).put({
265
+ return (options.client ?? _heyApiClient).put({
142
266
  url: '/clusters/{cluster_id}/fleets/{fleet_name}',
143
267
  ...options,
144
268
  headers: {
@@ -152,7 +276,7 @@ export class ClustersService {
152
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.
153
277
  */
154
278
  static queryCluster(options) {
155
- return (options?.client ?? client).get({
279
+ return (options.client ?? _heyApiClient).get({
156
280
  url: '/clusters/{cluster_id}/query',
157
281
  ...options
158
282
  });
@@ -165,7 +289,7 @@ export class ClustersService {
165
289
  *
166
290
  */
167
291
  static listClusters(options) {
168
- return (options?.client ?? client).get({
292
+ return (options?.client ?? _heyApiClient).get({
169
293
  url: '/clusters',
170
294
  ...options
171
295
  });
@@ -178,7 +302,7 @@ export class ClustersService {
178
302
  *
179
303
  */
180
304
  static createCluster(options) {
181
- return (options?.client ?? client).post({
305
+ return (options.client ?? _heyApiClient).post({
182
306
  url: '/clusters',
183
307
  ...options,
184
308
  headers: {
@@ -195,7 +319,7 @@ export class ClustersService {
195
319
  *
196
320
  */
197
321
  static deleteCluster(options) {
198
- return (options?.client ?? client).delete({
322
+ return (options.client ?? _heyApiClient).delete({
199
323
  url: '/clusters/{cluster_id}',
200
324
  ...options
201
325
  });
@@ -208,7 +332,7 @@ export class ClustersService {
208
332
  *
209
333
  */
210
334
  static getCluster(options) {
211
- return (options?.client ?? client).get({
335
+ return (options.client ?? _heyApiClient).get({
212
336
  url: '/clusters/{cluster_id}',
213
337
  ...options
214
338
  });
@@ -221,7 +345,7 @@ export class ClustersService {
221
345
  *
222
346
  */
223
347
  static updateCluster(options) {
224
- return (options?.client ?? client).put({
348
+ return (options.client ?? _heyApiClient).put({
225
349
  url: '/clusters/{cluster_id}',
226
350
  ...options,
227
351
  headers: {
@@ -232,59 +356,16 @@ export class ClustersService {
232
356
  }
233
357
  /**
234
358
  * Node join information for the cluster
235
- * 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.
236
360
  *
237
361
  */
238
362
  static getJoinInformation(options) {
239
- return (options?.client ?? client).post({
363
+ return (options.client ?? _heyApiClient).post({
240
364
  url: '/clusters/{cluster_id}/join_information',
241
365
  ...options
242
366
  });
243
367
  }
244
368
  }
245
- export class InfrastructureService {
246
- /**
247
- * Search infrastructure catalog.
248
- * 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:
249
- *
250
- * `GET /infrastructure?accelerator_name=A100&region=northamerica`
251
- *
252
- * 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.
253
- *
254
- * **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.
255
- *
256
- * For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
257
- *
258
- */
259
- static getInfrastructure(options) {
260
- return (options?.client ?? client).get({
261
- url: '/infrastructure',
262
- ...options
263
- });
264
- }
265
- /**
266
- * Infrastructure catalog facets.
267
- * This endpoint returns calculated search facets from the infrastructure catalog.
268
- *
269
- */
270
- static getFacets(options) {
271
- return (options?.client ?? client).get({
272
- url: '/infrastructure/facets',
273
- ...options
274
- });
275
- }
276
- /**
277
- * Available Cloudfleet regions and Kubernetes versions.
278
- * Available Cloudfleet regions and Kubernetes versions.
279
- *
280
- */
281
- static getRegions(options) {
282
- return (options?.client ?? client).get({
283
- url: '/infrastructure/regions',
284
- ...options
285
- });
286
- }
287
- }
288
369
  export class InvitesService {
289
370
  /**
290
371
  * List invites.
@@ -292,18 +373,18 @@ export class InvitesService {
292
373
  *
293
374
  */
294
375
  static listInvites(options) {
295
- return (options?.client ?? client).get({
376
+ return (options?.client ?? _heyApiClient).get({
296
377
  url: '/invites',
297
378
  ...options
298
379
  });
299
380
  }
300
381
  /**
301
382
  * Create a new invite.
302
- * 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.
303
384
  *
304
385
  */
305
386
  static createInvite(options) {
306
- return (options?.client ?? client).post({
387
+ return (options.client ?? _heyApiClient).post({
307
388
  url: '/invites',
308
389
  ...options,
309
390
  headers: {
@@ -318,7 +399,7 @@ export class InvitesService {
318
399
  *
319
400
  */
320
401
  static getInvite(options) {
321
- return (options?.client ?? client).get({
402
+ return (options.client ?? _heyApiClient).get({
322
403
  url: '/invites/{code}',
323
404
  ...options
324
405
  });
@@ -329,12 +410,40 @@ export class InvitesService {
329
410
  *
330
411
  */
331
412
  static deleteInvite(options) {
332
- return (options?.client ?? client).delete({
413
+ return (options.client ?? _heyApiClient).delete({
333
414
  url: '/invites/{email}',
334
415
  ...options
335
416
  });
336
417
  }
337
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
+ }
338
447
  export class OrganizationService {
339
448
  /**
340
449
  * Get organization information.
@@ -344,35 +453,18 @@ export class OrganizationService {
344
453
  *
345
454
  */
346
455
  static getOrganization(options) {
347
- return (options?.client ?? client).get({
456
+ return (options?.client ?? _heyApiClient).get({
348
457
  url: '/organization',
349
458
  ...options
350
459
  });
351
460
  }
352
461
  /**
353
462
  * Create a new organization / Cloudfleet account signup.
354
- * 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.
355
464
  *
356
465
  */
357
466
  static createOrganization(options) {
358
- return (options?.client ?? client).post({
359
- url: '/organization',
360
- ...options,
361
- headers: {
362
- 'Content-Type': 'application/json',
363
- ...options?.headers
364
- }
365
- });
366
- }
367
- /**
368
- * Update organization information.
369
- * This endpoint allows you to update organization details 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.
370
- *
371
- * This endpoint is available to administrators of the organization only.
372
- *
373
- */
374
- static updateOrganization(options) {
375
- return (options?.client ?? client).put({
467
+ return (options.client ?? _heyApiClient).post({
376
468
  url: '/organization',
377
469
  ...options,
378
470
  headers: {
@@ -389,7 +481,7 @@ export class TokensService {
389
481
  *
390
482
  */
391
483
  static listTokens(options) {
392
- return (options?.client ?? client).get({
484
+ return (options?.client ?? _heyApiClient).get({
393
485
  url: '/tokens',
394
486
  ...options
395
487
  });
@@ -402,7 +494,7 @@ export class TokensService {
402
494
  *
403
495
  */
404
496
  static createToken(options) {
405
- return (options?.client ?? client).post({
497
+ return (options.client ?? _heyApiClient).post({
406
498
  url: '/tokens',
407
499
  ...options,
408
500
  headers: {
@@ -417,7 +509,7 @@ export class TokensService {
417
509
  *
418
510
  */
419
511
  static deleteToken(options) {
420
- return (options?.client ?? client).delete({
512
+ return (options.client ?? _heyApiClient).delete({
421
513
  url: '/tokens/{token_id}',
422
514
  ...options
423
515
  });
@@ -428,7 +520,7 @@ export class TokensService {
428
520
  *
429
521
  */
430
522
  static getToken(options) {
431
- return (options?.client ?? client).get({
523
+ return (options.client ?? _heyApiClient).get({
432
524
  url: '/tokens/{token_id}',
433
525
  ...options
434
526
  });
@@ -441,7 +533,7 @@ export class TokensService {
441
533
  *
442
534
  */
443
535
  static updateToken(options) {
444
- return (options?.client ?? client).put({
536
+ return (options.client ?? _heyApiClient).put({
445
537
  url: '/tokens/{token_id}',
446
538
  ...options,
447
539
  headers: {
@@ -455,7 +547,7 @@ export class TokensService {
455
547
  * Generates a new access token secret. Old secret will not be valid anymore.
456
548
  */
457
549
  static regenerateToken(options) {
458
- return (options?.client ?? client).put({
550
+ return (options.client ?? _heyApiClient).put({
459
551
  url: '/tokens/{token_id}/secret',
460
552
  ...options
461
553
  });
@@ -466,31 +558,31 @@ export class UsersService {
466
558
  * Get a list of organizations the user belongs to. Used during authentication process.
467
559
  */
468
560
  static listUserOrganizations(options) {
469
- return (options?.client ?? client).get({
561
+ return (options.client ?? _heyApiClient).get({
470
562
  url: '/users/organizations/{email}',
471
563
  ...options
472
564
  });
473
565
  }
474
566
  /**
475
567
  * List users in organization.
476
- * 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.
477
569
  *
478
570
  * This endpoint is available to all users in the organization.
479
571
  *
480
572
  */
481
573
  static listUsers(options) {
482
- return (options?.client ?? client).get({
574
+ return (options?.client ?? _heyApiClient).get({
483
575
  url: '/users',
484
576
  ...options
485
577
  });
486
578
  }
487
579
  /**
488
580
  * Create a new user.
489
- * 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.
490
582
  *
491
583
  */
492
584
  static createUser(options) {
493
- return (options?.client ?? client).post({
585
+ return (options.client ?? _heyApiClient).post({
494
586
  url: '/users',
495
587
  ...options,
496
588
  headers: {
@@ -505,20 +597,20 @@ export class UsersService {
505
597
  *
506
598
  */
507
599
  static deleteUser(options) {
508
- return (options?.client ?? client).delete({
600
+ return (options.client ?? _heyApiClient).delete({
509
601
  url: '/users/{user_id}',
510
602
  ...options
511
603
  });
512
604
  }
513
605
  /**
514
606
  * Get user profile information by id.
515
- * 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.
516
608
  *
517
609
  * This endpoint is available to all users in the organization.
518
610
  *
519
611
  */
520
612
  static getUser(options) {
521
- return (options?.client ?? client).get({
613
+ return (options.client ?? _heyApiClient).get({
522
614
  url: '/users/{user_id}',
523
615
  ...options
524
616
  });
@@ -529,7 +621,7 @@ export class UsersService {
529
621
  *
530
622
  */
531
623
  static updateUser(options) {
532
- return (options?.client ?? client).put({
624
+ return (options.client ?? _heyApiClient).put({
533
625
  url: '/users/{user_id}',
534
626
  ...options,
535
627
  headers: {
@@ -538,31 +630,5 @@ export class UsersService {
538
630
  }
539
631
  });
540
632
  }
541
- /**
542
- * Remove user from cluster.
543
- * 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.
544
- *
545
- */
546
- static deleteClusterPermissions(options) {
547
- return (options?.client ?? client).delete({
548
- url: '/users/{user_id}/clusters/{cluster_id}',
549
- ...options
550
- });
551
- }
552
- /**
553
- * Add user to cluster and set permissions.
554
- * Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
555
- *
556
- */
557
- static setClusterPermissions(options) {
558
- return (options?.client ?? client).put({
559
- url: '/users/{user_id}/clusters/{cluster_id}',
560
- ...options,
561
- headers: {
562
- 'Content-Type': 'application/json',
563
- ...options?.headers
564
- }
565
- });
566
- }
567
633
  }
568
634
  //# sourceMappingURL=sdk.gen.js.map