@cloudfleet/sdk 0.0.1-7d8c04e → 0.0.1-8e8e76c
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/client.gen.d.ts +13 -0
- package/dist/client.gen.d.ts.map +1 -0
- package/dist/client.gen.js +6 -0
- package/dist/client.gen.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +214 -568
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +227 -569
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +47 -92
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +95 -130
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +196 -0
- package/dist/services/kubernetes/api.d.ts.map +1 -0
- package/dist/services/kubernetes/api.js +140 -0
- package/dist/services/kubernetes/api.js.map +1 -0
- package/dist/services/kubernetes/index.d.ts +44 -0
- package/dist/services/kubernetes/index.d.ts.map +1 -0
- package/dist/services/kubernetes/index.js +68 -0
- package/dist/services/kubernetes/index.js.map +1 -0
- package/dist/services/kubernetes/types.d.ts +1335 -0
- package/dist/services/kubernetes/types.d.ts.map +1 -0
- package/dist/services/kubernetes/types.js +2 -0
- package/dist/services/kubernetes/types.js.map +1 -0
- package/dist/types.gen.d.ts +200 -705
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +335 -1197
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +74 -157
- package/dist/zod.gen.js.map +1 -1
- package/package.json +9 -5
package/dist/sdk.gen.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
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.
|
|
7
|
-
* Returns
|
|
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.
|
|
8
7
|
*
|
|
9
8
|
*/
|
|
10
9
|
static getUsage(options) {
|
|
11
|
-
return (options?.client ??
|
|
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 ??
|
|
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 ??
|
|
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 ??
|
|
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
|
|
54
|
+
return (options.client ?? _heyApiClient).get({
|
|
56
55
|
url: '/billing/invoices',
|
|
57
56
|
...options
|
|
58
57
|
});
|
|
@@ -63,11 +62,63 @@ export class BillingService {
|
|
|
63
62
|
*
|
|
64
63
|
*/
|
|
65
64
|
static getInvoice(options) {
|
|
66
|
-
return (options
|
|
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 {
|
|
73
124
|
/**
|
|
@@ -78,7 +129,7 @@ export class ClustersService {
|
|
|
78
129
|
*
|
|
79
130
|
*/
|
|
80
131
|
static listFleets(options) {
|
|
81
|
-
return (options
|
|
132
|
+
return (options.client ?? _heyApiClient).get({
|
|
82
133
|
url: '/clusters/{cluster_id}/fleets',
|
|
83
134
|
...options
|
|
84
135
|
});
|
|
@@ -91,7 +142,7 @@ export class ClustersService {
|
|
|
91
142
|
*
|
|
92
143
|
*/
|
|
93
144
|
static createFleet(options) {
|
|
94
|
-
return (options
|
|
145
|
+
return (options.client ?? _heyApiClient).post({
|
|
95
146
|
url: '/clusters/{cluster_id}/fleets',
|
|
96
147
|
...options,
|
|
97
148
|
headers: {
|
|
@@ -108,7 +159,7 @@ export class ClustersService {
|
|
|
108
159
|
*
|
|
109
160
|
*/
|
|
110
161
|
static deleteFleet(options) {
|
|
111
|
-
return (options
|
|
162
|
+
return (options.client ?? _heyApiClient).delete({
|
|
112
163
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
113
164
|
...options
|
|
114
165
|
});
|
|
@@ -121,7 +172,7 @@ export class ClustersService {
|
|
|
121
172
|
*
|
|
122
173
|
*/
|
|
123
174
|
static getFleet(options) {
|
|
124
|
-
return (options
|
|
175
|
+
return (options.client ?? _heyApiClient).get({
|
|
125
176
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
126
177
|
...options
|
|
127
178
|
});
|
|
@@ -138,7 +189,7 @@ export class ClustersService {
|
|
|
138
189
|
*
|
|
139
190
|
*/
|
|
140
191
|
static updateFleet(options) {
|
|
141
|
-
return (options
|
|
192
|
+
return (options.client ?? _heyApiClient).put({
|
|
142
193
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
143
194
|
...options,
|
|
144
195
|
headers: {
|
|
@@ -152,7 +203,7 @@ export class ClustersService {
|
|
|
152
203
|
* 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
204
|
*/
|
|
154
205
|
static queryCluster(options) {
|
|
155
|
-
return (options
|
|
206
|
+
return (options.client ?? _heyApiClient).get({
|
|
156
207
|
url: '/clusters/{cluster_id}/query',
|
|
157
208
|
...options
|
|
158
209
|
});
|
|
@@ -165,7 +216,7 @@ export class ClustersService {
|
|
|
165
216
|
*
|
|
166
217
|
*/
|
|
167
218
|
static listClusters(options) {
|
|
168
|
-
return (options?.client ??
|
|
219
|
+
return (options?.client ?? _heyApiClient).get({
|
|
169
220
|
url: '/clusters',
|
|
170
221
|
...options
|
|
171
222
|
});
|
|
@@ -178,7 +229,7 @@ export class ClustersService {
|
|
|
178
229
|
*
|
|
179
230
|
*/
|
|
180
231
|
static createCluster(options) {
|
|
181
|
-
return (options
|
|
232
|
+
return (options.client ?? _heyApiClient).post({
|
|
182
233
|
url: '/clusters',
|
|
183
234
|
...options,
|
|
184
235
|
headers: {
|
|
@@ -195,7 +246,7 @@ export class ClustersService {
|
|
|
195
246
|
*
|
|
196
247
|
*/
|
|
197
248
|
static deleteCluster(options) {
|
|
198
|
-
return (options
|
|
249
|
+
return (options.client ?? _heyApiClient).delete({
|
|
199
250
|
url: '/clusters/{cluster_id}',
|
|
200
251
|
...options
|
|
201
252
|
});
|
|
@@ -208,7 +259,7 @@ export class ClustersService {
|
|
|
208
259
|
*
|
|
209
260
|
*/
|
|
210
261
|
static getCluster(options) {
|
|
211
|
-
return (options
|
|
262
|
+
return (options.client ?? _heyApiClient).get({
|
|
212
263
|
url: '/clusters/{cluster_id}',
|
|
213
264
|
...options
|
|
214
265
|
});
|
|
@@ -221,7 +272,7 @@ export class ClustersService {
|
|
|
221
272
|
*
|
|
222
273
|
*/
|
|
223
274
|
static updateCluster(options) {
|
|
224
|
-
return (options
|
|
275
|
+
return (options.client ?? _heyApiClient).put({
|
|
225
276
|
url: '/clusters/{cluster_id}',
|
|
226
277
|
...options,
|
|
227
278
|
headers: {
|
|
@@ -236,55 +287,12 @@ export class ClustersService {
|
|
|
236
287
|
*
|
|
237
288
|
*/
|
|
238
289
|
static getJoinInformation(options) {
|
|
239
|
-
return (options
|
|
290
|
+
return (options.client ?? _heyApiClient).post({
|
|
240
291
|
url: '/clusters/{cluster_id}/join_information',
|
|
241
292
|
...options
|
|
242
293
|
});
|
|
243
294
|
}
|
|
244
295
|
}
|
|
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®ion=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
296
|
export class InvitesService {
|
|
289
297
|
/**
|
|
290
298
|
* List invites.
|
|
@@ -292,18 +300,18 @@ export class InvitesService {
|
|
|
292
300
|
*
|
|
293
301
|
*/
|
|
294
302
|
static listInvites(options) {
|
|
295
|
-
return (options?.client ??
|
|
303
|
+
return (options?.client ?? _heyApiClient).get({
|
|
296
304
|
url: '/invites',
|
|
297
305
|
...options
|
|
298
306
|
});
|
|
299
307
|
}
|
|
300
308
|
/**
|
|
301
309
|
* Create a new invite.
|
|
302
|
-
* Invite a new user to your
|
|
310
|
+
* 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
311
|
*
|
|
304
312
|
*/
|
|
305
313
|
static createInvite(options) {
|
|
306
|
-
return (options
|
|
314
|
+
return (options.client ?? _heyApiClient).post({
|
|
307
315
|
url: '/invites',
|
|
308
316
|
...options,
|
|
309
317
|
headers: {
|
|
@@ -318,7 +326,7 @@ export class InvitesService {
|
|
|
318
326
|
*
|
|
319
327
|
*/
|
|
320
328
|
static getInvite(options) {
|
|
321
|
-
return (options
|
|
329
|
+
return (options.client ?? _heyApiClient).get({
|
|
322
330
|
url: '/invites/{code}',
|
|
323
331
|
...options
|
|
324
332
|
});
|
|
@@ -329,7 +337,7 @@ export class InvitesService {
|
|
|
329
337
|
*
|
|
330
338
|
*/
|
|
331
339
|
static deleteInvite(options) {
|
|
332
|
-
return (options
|
|
340
|
+
return (options.client ?? _heyApiClient).delete({
|
|
333
341
|
url: '/invites/{email}',
|
|
334
342
|
...options
|
|
335
343
|
});
|
|
@@ -344,35 +352,18 @@ export class OrganizationService {
|
|
|
344
352
|
*
|
|
345
353
|
*/
|
|
346
354
|
static getOrganization(options) {
|
|
347
|
-
return (options?.client ??
|
|
355
|
+
return (options?.client ?? _heyApiClient).get({
|
|
348
356
|
url: '/organization',
|
|
349
357
|
...options
|
|
350
358
|
});
|
|
351
359
|
}
|
|
352
360
|
/**
|
|
353
361
|
* Create a new organization / Cloudfleet account signup.
|
|
354
|
-
* This endpoint allows you to create a new Cloudfleet organization
|
|
362
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
355
363
|
*
|
|
356
364
|
*/
|
|
357
365
|
static createOrganization(options) {
|
|
358
|
-
return (options
|
|
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({
|
|
366
|
+
return (options.client ?? _heyApiClient).post({
|
|
376
367
|
url: '/organization',
|
|
377
368
|
...options,
|
|
378
369
|
headers: {
|
|
@@ -389,7 +380,7 @@ export class TokensService {
|
|
|
389
380
|
*
|
|
390
381
|
*/
|
|
391
382
|
static listTokens(options) {
|
|
392
|
-
return (options?.client ??
|
|
383
|
+
return (options?.client ?? _heyApiClient).get({
|
|
393
384
|
url: '/tokens',
|
|
394
385
|
...options
|
|
395
386
|
});
|
|
@@ -402,7 +393,7 @@ export class TokensService {
|
|
|
402
393
|
*
|
|
403
394
|
*/
|
|
404
395
|
static createToken(options) {
|
|
405
|
-
return (options
|
|
396
|
+
return (options.client ?? _heyApiClient).post({
|
|
406
397
|
url: '/tokens',
|
|
407
398
|
...options,
|
|
408
399
|
headers: {
|
|
@@ -417,7 +408,7 @@ export class TokensService {
|
|
|
417
408
|
*
|
|
418
409
|
*/
|
|
419
410
|
static deleteToken(options) {
|
|
420
|
-
return (options
|
|
411
|
+
return (options.client ?? _heyApiClient).delete({
|
|
421
412
|
url: '/tokens/{token_id}',
|
|
422
413
|
...options
|
|
423
414
|
});
|
|
@@ -428,7 +419,7 @@ export class TokensService {
|
|
|
428
419
|
*
|
|
429
420
|
*/
|
|
430
421
|
static getToken(options) {
|
|
431
|
-
return (options
|
|
422
|
+
return (options.client ?? _heyApiClient).get({
|
|
432
423
|
url: '/tokens/{token_id}',
|
|
433
424
|
...options
|
|
434
425
|
});
|
|
@@ -441,7 +432,7 @@ export class TokensService {
|
|
|
441
432
|
*
|
|
442
433
|
*/
|
|
443
434
|
static updateToken(options) {
|
|
444
|
-
return (options
|
|
435
|
+
return (options.client ?? _heyApiClient).put({
|
|
445
436
|
url: '/tokens/{token_id}',
|
|
446
437
|
...options,
|
|
447
438
|
headers: {
|
|
@@ -455,7 +446,7 @@ export class TokensService {
|
|
|
455
446
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
456
447
|
*/
|
|
457
448
|
static regenerateToken(options) {
|
|
458
|
-
return (options
|
|
449
|
+
return (options.client ?? _heyApiClient).put({
|
|
459
450
|
url: '/tokens/{token_id}/secret',
|
|
460
451
|
...options
|
|
461
452
|
});
|
|
@@ -466,31 +457,31 @@ export class UsersService {
|
|
|
466
457
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
467
458
|
*/
|
|
468
459
|
static listUserOrganizations(options) {
|
|
469
|
-
return (options
|
|
460
|
+
return (options.client ?? _heyApiClient).get({
|
|
470
461
|
url: '/users/organizations/{email}',
|
|
471
462
|
...options
|
|
472
463
|
});
|
|
473
464
|
}
|
|
474
465
|
/**
|
|
475
466
|
* List users in organization.
|
|
476
|
-
* Returns a list of user details
|
|
467
|
+
* 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
468
|
*
|
|
478
469
|
* This endpoint is available to all users in the organization.
|
|
479
470
|
*
|
|
480
471
|
*/
|
|
481
472
|
static listUsers(options) {
|
|
482
|
-
return (options?.client ??
|
|
473
|
+
return (options?.client ?? _heyApiClient).get({
|
|
483
474
|
url: '/users',
|
|
484
475
|
...options
|
|
485
476
|
});
|
|
486
477
|
}
|
|
487
478
|
/**
|
|
488
479
|
* Create a new user.
|
|
489
|
-
* Create a new user in your
|
|
480
|
+
* 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
481
|
*
|
|
491
482
|
*/
|
|
492
483
|
static createUser(options) {
|
|
493
|
-
return (options
|
|
484
|
+
return (options.client ?? _heyApiClient).post({
|
|
494
485
|
url: '/users',
|
|
495
486
|
...options,
|
|
496
487
|
headers: {
|
|
@@ -505,20 +496,20 @@ export class UsersService {
|
|
|
505
496
|
*
|
|
506
497
|
*/
|
|
507
498
|
static deleteUser(options) {
|
|
508
|
-
return (options
|
|
499
|
+
return (options.client ?? _heyApiClient).delete({
|
|
509
500
|
url: '/users/{user_id}',
|
|
510
501
|
...options
|
|
511
502
|
});
|
|
512
503
|
}
|
|
513
504
|
/**
|
|
514
505
|
* Get user profile information by id.
|
|
515
|
-
* Returns user details
|
|
506
|
+
* 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
507
|
*
|
|
517
508
|
* This endpoint is available to all users in the organization.
|
|
518
509
|
*
|
|
519
510
|
*/
|
|
520
511
|
static getUser(options) {
|
|
521
|
-
return (options
|
|
512
|
+
return (options.client ?? _heyApiClient).get({
|
|
522
513
|
url: '/users/{user_id}',
|
|
523
514
|
...options
|
|
524
515
|
});
|
|
@@ -529,7 +520,7 @@ export class UsersService {
|
|
|
529
520
|
*
|
|
530
521
|
*/
|
|
531
522
|
static updateUser(options) {
|
|
532
|
-
return (options
|
|
523
|
+
return (options.client ?? _heyApiClient).put({
|
|
533
524
|
url: '/users/{user_id}',
|
|
534
525
|
...options,
|
|
535
526
|
headers: {
|
|
@@ -538,31 +529,5 @@ export class UsersService {
|
|
|
538
529
|
}
|
|
539
530
|
});
|
|
540
531
|
}
|
|
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
532
|
}
|
|
568
533
|
//# sourceMappingURL=sdk.gen.js.map
|
package/dist/sdk.gen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../src/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../src/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAIrD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAgBvD,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAuC,OAA6C;QACtG,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAA0C;YACnF,GAAG,EAAE,gBAAgB;YACrB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,UAAU,CAAuC,OAA+C;QAC1G,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAA4C;YACrF,GAAG,EAAE,kBAAkB;YACvB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,CAAuC,OAAqD;QACtH,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAAkD;YA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