@cloudfleet/sdk 0.0.1-0da1042

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 (38) hide show
  1. package/README.md +9 -0
  2. package/dist/client.gen.d.ts +13 -0
  3. package/dist/client.gen.d.ts.map +1 -0
  4. package/dist/client.gen.js +6 -0
  5. package/dist/client.gen.js.map +1 -0
  6. package/dist/index.d.ts +8 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +8 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/schemas.gen.d.ts +1706 -0
  11. package/dist/schemas.gen.d.ts.map +1 -0
  12. package/dist/schemas.gen.js +1746 -0
  13. package/dist/schemas.gen.js.map +1 -0
  14. package/dist/sdk.gen.d.ts +363 -0
  15. package/dist/sdk.gen.d.ts.map +1 -0
  16. package/dist/sdk.gen.js +634 -0
  17. package/dist/sdk.gen.js.map +1 -0
  18. package/dist/services/kubernetes/api.d.ts +196 -0
  19. package/dist/services/kubernetes/api.d.ts.map +1 -0
  20. package/dist/services/kubernetes/api.js +140 -0
  21. package/dist/services/kubernetes/api.js.map +1 -0
  22. package/dist/services/kubernetes/index.d.ts +44 -0
  23. package/dist/services/kubernetes/index.d.ts.map +1 -0
  24. package/dist/services/kubernetes/index.js +68 -0
  25. package/dist/services/kubernetes/index.js.map +1 -0
  26. package/dist/services/kubernetes/types.d.ts +1335 -0
  27. package/dist/services/kubernetes/types.d.ts.map +1 -0
  28. package/dist/services/kubernetes/types.js +2 -0
  29. package/dist/services/kubernetes/types.js.map +1 -0
  30. package/dist/types.gen.d.ts +1928 -0
  31. package/dist/types.gen.d.ts.map +1 -0
  32. package/dist/types.gen.js +3 -0
  33. package/dist/types.gen.js.map +1 -0
  34. package/dist/zod.gen.d.ts +2505 -0
  35. package/dist/zod.gen.d.ts.map +1 -0
  36. package/dist/zod.gen.js +1129 -0
  37. package/dist/zod.gen.js.map +1 -0
  38. package/package.json +39 -0
@@ -0,0 +1,634 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client as _heyApiClient } from './client.gen';
3
+ export class BillingService {
4
+ /**
5
+ * Get billing usage information.
6
+ * Returns aggregated usage information for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
7
+ *
8
+ */
9
+ static getUsage(options) {
10
+ return (options?.client ?? _heyApiClient).get({
11
+ url: '/billing/usage',
12
+ ...options
13
+ });
14
+ }
15
+ /**
16
+ * Get billing balance information.
17
+ * Returns the current balance of the organization in USD as a floating-point number. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
18
+ *
19
+ */
20
+ static getBalance(options) {
21
+ return (options?.client ?? _heyApiClient).get({
22
+ url: '/billing/balance',
23
+ ...options
24
+ });
25
+ }
26
+ /**
27
+ * Get organization payment method information.
28
+ * 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
+ *
30
+ */
31
+ static getPaymentMethod(options) {
32
+ return (options?.client ?? _heyApiClient).get({
33
+ url: '/billing/payment-method',
34
+ ...options
35
+ });
36
+ }
37
+ /**
38
+ * Get Stripe client secret.
39
+ * 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
+ *
41
+ */
42
+ static getPaymentMethodSecret(options) {
43
+ return (options?.client ?? _heyApiClient).put({
44
+ url: '/billing/payment-method',
45
+ ...options
46
+ });
47
+ }
48
+ /**
49
+ * List issued invoices.
50
+ * 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
+ *
52
+ */
53
+ static listInvoices(options) {
54
+ return (options.client ?? _heyApiClient).get({
55
+ url: '/billing/invoices',
56
+ ...options
57
+ });
58
+ }
59
+ /**
60
+ * Get invoice information.
61
+ * Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
62
+ *
63
+ */
64
+ static getInvoice(options) {
65
+ return (options.client ?? _heyApiClient).get({
66
+ url: '/billing/invoices/{id}',
67
+ ...options
68
+ });
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
+ }
122
+ }
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
+ }
197
+ /**
198
+ * List fleets.
199
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
200
+ *
201
+ * This endpoint is available to all users in the organization.
202
+ *
203
+ */
204
+ static listFleets(options) {
205
+ return (options.client ?? _heyApiClient).get({
206
+ url: '/clusters/{cluster_id}/fleets',
207
+ ...options
208
+ });
209
+ }
210
+ /**
211
+ * Create a new fleet.
212
+ * Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
213
+ *
214
+ * This endpoint is available to administrators of the organization only.
215
+ *
216
+ */
217
+ static createFleet(options) {
218
+ return (options.client ?? _heyApiClient).post({
219
+ url: '/clusters/{cluster_id}/fleets',
220
+ ...options,
221
+ headers: {
222
+ 'Content-Type': 'application/json',
223
+ ...options?.headers
224
+ }
225
+ });
226
+ }
227
+ /**
228
+ * Permanently delete fleet.
229
+ * This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Connected Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
230
+ *
231
+ * This endpoint is available to administrators of the organization only.
232
+ *
233
+ */
234
+ static deleteFleet(options) {
235
+ return (options.client ?? _heyApiClient).delete({
236
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
237
+ ...options
238
+ });
239
+ }
240
+ /**
241
+ * Get fleet information.
242
+ * Returns fleet details. For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
243
+ *
244
+ * This endpoint is available to all users in the organization.
245
+ *
246
+ */
247
+ static getFleet(options) {
248
+ return (options.client ?? _heyApiClient).get({
249
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
250
+ ...options
251
+ });
252
+ }
253
+ /**
254
+ * Update fleet information.
255
+ * This endpoint allows you to update fleet details.
256
+ *
257
+ * Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Connected Fleet until the end of the billing period, set the status to `cancelling`.
258
+ *
259
+ * For more information, see [Fleets and fleet types](https://cloudfleet.ai/docs/cloud-infrastructure/fleets-and-fleet-types/) section of documentaiton.
260
+ *
261
+ * This endpoint is available to administrators of the organization only.
262
+ *
263
+ */
264
+ static updateFleet(options) {
265
+ return (options.client ?? _heyApiClient).put({
266
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}',
267
+ ...options,
268
+ headers: {
269
+ 'Content-Type': 'application/json',
270
+ ...options?.headers
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * Query Kubernetes cluster API
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.
277
+ */
278
+ static queryCluster(options) {
279
+ return (options.client ?? _heyApiClient).get({
280
+ url: '/clusters/{cluster_id}/query',
281
+ ...options
282
+ });
283
+ }
284
+ /**
285
+ * List clusters.
286
+ * Returns a list of clusters under the current organization, including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
287
+ *
288
+ * This endpoint is available to all users in the organization.
289
+ *
290
+ */
291
+ static listClusters(options) {
292
+ return (options?.client ?? _heyApiClient).get({
293
+ url: '/clusters',
294
+ ...options
295
+ });
296
+ }
297
+ /**
298
+ * Create a new cluster.
299
+ * Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
300
+ *
301
+ * This endpoint is available to administrators of the organization only.
302
+ *
303
+ */
304
+ static createCluster(options) {
305
+ return (options.client ?? _heyApiClient).post({
306
+ url: '/clusters',
307
+ ...options,
308
+ headers: {
309
+ 'Content-Type': 'application/json',
310
+ ...options?.headers
311
+ }
312
+ });
313
+ }
314
+ /**
315
+ * Permanently delete cluster.
316
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
317
+ *
318
+ * This endpoint is available to administrators of the organization only.
319
+ *
320
+ */
321
+ static deleteCluster(options) {
322
+ return (options.client ?? _heyApiClient).delete({
323
+ url: '/clusters/{cluster_id}',
324
+ ...options
325
+ });
326
+ }
327
+ /**
328
+ * Get cluster information.
329
+ * Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
330
+ *
331
+ * This endpoint is available to all users in the organization.
332
+ *
333
+ */
334
+ static getCluster(options) {
335
+ return (options.client ?? _heyApiClient).get({
336
+ url: '/clusters/{cluster_id}',
337
+ ...options
338
+ });
339
+ }
340
+ /**
341
+ * Update cluster information.
342
+ * This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
343
+ *
344
+ * This endpoint is available to administrators of the organization only.
345
+ *
346
+ */
347
+ static updateCluster(options) {
348
+ return (options.client ?? _heyApiClient).put({
349
+ url: '/clusters/{cluster_id}',
350
+ ...options,
351
+ headers: {
352
+ 'Content-Type': 'application/json',
353
+ ...options?.headers
354
+ }
355
+ });
356
+ }
357
+ /**
358
+ * Node join information for the cluster
359
+ * Returns the join information for the cluster. This information is used to add a self-managed cluster to the CFKE cluster. This endpoint is available to only admins of the organization.
360
+ *
361
+ */
362
+ static getJoinInformation(options) {
363
+ return (options.client ?? _heyApiClient).post({
364
+ url: '/clusters/{cluster_id}/join_information',
365
+ ...options
366
+ });
367
+ }
368
+ }
369
+ export class InvitesService {
370
+ /**
371
+ * List invites.
372
+ * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
373
+ *
374
+ */
375
+ static listInvites(options) {
376
+ return (options?.client ?? _heyApiClient).get({
377
+ url: '/invites',
378
+ ...options
379
+ });
380
+ }
381
+ /**
382
+ * Create a new invite.
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.
384
+ *
385
+ */
386
+ static createInvite(options) {
387
+ return (options.client ?? _heyApiClient).post({
388
+ url: '/invites',
389
+ ...options,
390
+ headers: {
391
+ 'Content-Type': 'application/json',
392
+ ...options?.headers
393
+ }
394
+ });
395
+ }
396
+ /**
397
+ * Get invite information.
398
+ * Returns invite details.
399
+ *
400
+ */
401
+ static getInvite(options) {
402
+ return (options.client ?? _heyApiClient).get({
403
+ url: '/invites/{code}',
404
+ ...options
405
+ });
406
+ }
407
+ /**
408
+ * Permanently delete invite.
409
+ * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
410
+ *
411
+ */
412
+ static deleteInvite(options) {
413
+ return (options.client ?? _heyApiClient).delete({
414
+ url: '/invites/{email}',
415
+ ...options
416
+ });
417
+ }
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
+ }
447
+ export class OrganizationService {
448
+ /**
449
+ * Get organization information.
450
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
451
+ *
452
+ * This endpoint is available to all users in the organization.
453
+ *
454
+ */
455
+ static getOrganization(options) {
456
+ return (options?.client ?? _heyApiClient).get({
457
+ url: '/organization',
458
+ ...options
459
+ });
460
+ }
461
+ /**
462
+ * Create a new organization / Cloudfleet account signup.
463
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
464
+ *
465
+ */
466
+ static createOrganization(options) {
467
+ return (options.client ?? _heyApiClient).post({
468
+ url: '/organization',
469
+ ...options,
470
+ headers: {
471
+ 'Content-Type': 'application/json',
472
+ ...options?.headers
473
+ }
474
+ });
475
+ }
476
+ }
477
+ export class TokensService {
478
+ /**
479
+ * List access tokens in organization.
480
+ * This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
481
+ *
482
+ */
483
+ static listTokens(options) {
484
+ return (options?.client ?? _heyApiClient).get({
485
+ url: '/tokens',
486
+ ...options
487
+ });
488
+ }
489
+ /**
490
+ * Create a new access token.
491
+ * This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
492
+ *
493
+ * This endpoint is available to administrators of the organization only.
494
+ *
495
+ */
496
+ static createToken(options) {
497
+ return (options.client ?? _heyApiClient).post({
498
+ url: '/tokens',
499
+ ...options,
500
+ headers: {
501
+ 'Content-Type': 'application/json',
502
+ ...options?.headers
503
+ }
504
+ });
505
+ }
506
+ /**
507
+ * Permanently delete access token.
508
+ * This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
509
+ *
510
+ */
511
+ static deleteToken(options) {
512
+ return (options.client ?? _heyApiClient).delete({
513
+ url: '/tokens/{token_id}',
514
+ ...options
515
+ });
516
+ }
517
+ /**
518
+ * Get access token information.
519
+ * This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
520
+ *
521
+ */
522
+ static getToken(options) {
523
+ return (options.client ?? _heyApiClient).get({
524
+ url: '/tokens/{token_id}',
525
+ ...options
526
+ });
527
+ }
528
+ /**
529
+ * Update access token information.
530
+ * This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
531
+ *
532
+ * This endpoint is available to administrators of the organization only.
533
+ *
534
+ */
535
+ static updateToken(options) {
536
+ return (options.client ?? _heyApiClient).put({
537
+ url: '/tokens/{token_id}',
538
+ ...options,
539
+ headers: {
540
+ 'Content-Type': 'application/json',
541
+ ...options?.headers
542
+ }
543
+ });
544
+ }
545
+ /**
546
+ * Regenerate access token secret key.
547
+ * Generates a new access token secret. Old secret will not be valid anymore.
548
+ */
549
+ static regenerateToken(options) {
550
+ return (options.client ?? _heyApiClient).put({
551
+ url: '/tokens/{token_id}/secret',
552
+ ...options
553
+ });
554
+ }
555
+ }
556
+ export class UsersService {
557
+ /**
558
+ * Get a list of organizations the user belongs to. Used during authentication process.
559
+ */
560
+ static listUserOrganizations(options) {
561
+ return (options.client ?? _heyApiClient).get({
562
+ url: '/users/organizations/{email}',
563
+ ...options
564
+ });
565
+ }
566
+ /**
567
+ * List users in organization.
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.
569
+ *
570
+ * This endpoint is available to all users in the organization.
571
+ *
572
+ */
573
+ static listUsers(options) {
574
+ return (options?.client ?? _heyApiClient).get({
575
+ url: '/users',
576
+ ...options
577
+ });
578
+ }
579
+ /**
580
+ * Create a new user.
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.
582
+ *
583
+ */
584
+ static createUser(options) {
585
+ return (options.client ?? _heyApiClient).post({
586
+ url: '/users',
587
+ ...options,
588
+ headers: {
589
+ 'Content-Type': 'application/json',
590
+ ...options?.headers
591
+ }
592
+ });
593
+ }
594
+ /**
595
+ * Delete user by id.
596
+ * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
597
+ *
598
+ */
599
+ static deleteUser(options) {
600
+ return (options.client ?? _heyApiClient).delete({
601
+ url: '/users/{user_id}',
602
+ ...options
603
+ });
604
+ }
605
+ /**
606
+ * Get user profile information by id.
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.
608
+ *
609
+ * This endpoint is available to all users in the organization.
610
+ *
611
+ */
612
+ static getUser(options) {
613
+ return (options.client ?? _heyApiClient).get({
614
+ url: '/users/{user_id}',
615
+ ...options
616
+ });
617
+ }
618
+ /**
619
+ * Update user profile information.
620
+ * Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
621
+ *
622
+ */
623
+ static updateUser(options) {
624
+ return (options.client ?? _heyApiClient).put({
625
+ url: '/users/{user_id}',
626
+ ...options,
627
+ headers: {
628
+ 'Content-Type': 'application/json',
629
+ ...options?.headers
630
+ }
631
+ });
632
+ }
633
+ }
634
+ //# sourceMappingURL=sdk.gen.js.map
@@ -0,0 +1 @@
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,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