@cloudfleet/sdk 0.0.1-7bf9c12 → 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.
@@ -1,3 +1,87 @@
1
+ export type BillingContact = {
2
+ /**
3
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
4
+ */
5
+ company?: string;
6
+ /**
7
+ * Street address, P.O. box, c/o
8
+ */
9
+ address1?: string;
10
+ /**
11
+ * Apartment, suite, unit, building, floor, etc.
12
+ */
13
+ address2?: string;
14
+ /**
15
+ * Postal code as a string.
16
+ */
17
+ postalCode?: string;
18
+ /**
19
+ * City or town name.
20
+ */
21
+ city?: string;
22
+ /**
23
+ * State, province, or region name.
24
+ */
25
+ state?: string;
26
+ /**
27
+ * Country as a ISO 3166-1 alpha-2 country code.
28
+ */
29
+ country?: string;
30
+ /**
31
+ * Phone number as a string.
32
+ */
33
+ phone?: string;
34
+ /**
35
+ * Email address used for billing as a string.
36
+ */
37
+ email: string;
38
+ /**
39
+ * First name of the billing contact person.
40
+ */
41
+ first_name: string;
42
+ /**
43
+ * Last name of the billing contact person.
44
+ */
45
+ last_name: string;
46
+ };
47
+ export type BillingCredits = {
48
+ /**
49
+ * Generated unique identifier of the promotional code.
50
+ */
51
+ id?: string;
52
+ /**
53
+ * Date of the credit application. ISO 8601 date string in the UTC timezone.
54
+ */
55
+ date_created: string;
56
+ /**
57
+ * Promotional code used by the customer.
58
+ */
59
+ code: string;
60
+ /**
61
+ * Description of the promotional code.
62
+ */
63
+ description?: string;
64
+ /**
65
+ * List of product SKUs that the promotional code can be used on.
66
+ */
67
+ products?: Array<string>;
68
+ /**
69
+ * Type of the promotional code.
70
+ */
71
+ type: 'credit' | 'discount';
72
+ /**
73
+ * Value of the promotional code.
74
+ */
75
+ value: number;
76
+ /**
77
+ * Date of the billing cycle. An ISO 8601 date string in the UTC timezone.
78
+ */
79
+ billing_period: string;
80
+ /**
81
+ * Value of the promotional code.
82
+ */
83
+ value_remaining?: number;
84
+ };
1
85
  export type ClusterCreateInput = {
2
86
  /**
3
87
  * Name of the cluster.
@@ -237,178 +321,6 @@ export type FleetUpdateInput = {
237
321
  controllerRoleArn: string;
238
322
  };
239
323
  };
240
- export type InfrastructureFilter = {
241
- /**
242
- * Version of the infrastructure filter definition. Currently only version 1 is supported.
243
- */
244
- version?: 1;
245
- /**
246
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
247
- */
248
- provider?: Array<string>;
249
- /**
250
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
251
- */
252
- region?: Array<string>;
253
- /**
254
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
255
- */
256
- sub_region?: Array<string>;
257
- /**
258
- * Limits selection of cloud regions to this list of canonical provider regions
259
- */
260
- csp_region?: Array<string>;
261
- /**
262
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
263
- */
264
- instance_type?: Array<string>;
265
- /**
266
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
267
- */
268
- accelerator_name?: Array<string>;
269
- /**
270
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
271
- */
272
- accelerator_manufacturer?: Array<string>;
273
- /**
274
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
275
- */
276
- accelerator_count_min?: number;
277
- /**
278
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
279
- */
280
- accelerator_count_max?: number;
281
- /**
282
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
283
- */
284
- accelerator_memory_min?: number;
285
- /**
286
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
287
- */
288
- accelerator_memory_max?: number;
289
- /**
290
- * Minimum amount of RAM in gibibytes (GiB)
291
- */
292
- memory_min?: number;
293
- /**
294
- * Maximum amount of RAM in gibibytes (GiB)
295
- */
296
- memory_max?: number;
297
- /**
298
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
299
- */
300
- vcpu_min?: number;
301
- /**
302
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
303
- */
304
- vcpu_max?: number;
305
- /**
306
- * Minimum total storage in GiB (attached and local)
307
- */
308
- storage_total_min?: number;
309
- /**
310
- * Maximum total storage in GiB (attached and local)
311
- */
312
- storage_total_max?: number;
313
- /**
314
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
315
- */
316
- storage_local_min?: number;
317
- /**
318
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
319
- */
320
- storage_local_max?: number;
321
- /**
322
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
323
- */
324
- price_min?: number;
325
- /**
326
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
327
- */
328
- price_max?: number;
329
- };
330
- export type InfrastructureInstance = {
331
- /**
332
- * Cloudfleet instance SKU. Has a format of <provider>-<csp_region>-<instance_type>.
333
- */
334
- sku: string;
335
- /**
336
- * Normalized cloud service provider name. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
337
- */
338
- provider: string;
339
- /**
340
- * Normalized region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
341
- */
342
- region: string;
343
- /**
344
- * Normalized sub-region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
345
- */
346
- sub_region: string;
347
- /**
348
- * Region as defined by the cloud service provider
349
- */
350
- csp_region: string;
351
- /**
352
- * Availability zone as defined by the cloud service provider
353
- */
354
- csp_zone: string;
355
- /**
356
- * Instance / VM type as defined by the cloud service provider
357
- */
358
- instance_type: string;
359
- /**
360
- * Instance CPU architecture
361
- */
362
- architecture: string;
363
- /**
364
- * Instance operating system
365
- */
366
- os: string;
367
- /**
368
- * CPU count as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
369
- */
370
- vcpu: number;
371
- /**
372
- * Total amount of RAM in gibibytes (GiB)
373
- */
374
- memory: number;
375
- /**
376
- * Volume of directly attached, block-device local storage in gibibytes (GiB)
377
- */
378
- local_storage: number;
379
- /**
380
- * Normalized model name of accelerator. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
381
- */
382
- accelerator_name?: string;
383
- /**
384
- * Normalized manufacturer name of accelerator. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
385
- */
386
- accelerator_manufacturer?: string;
387
- /**
388
- * Number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
389
- */
390
- accelerator_count?: number;
391
- /**
392
- * Ammount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
393
- */
394
- accelerator_memory?: number;
395
- /**
396
- * Maximum number of pods that can be run on this instance type.
397
- */
398
- pods_capacity?: number;
399
- /**
400
- * Capacity type of the instance. E.g. `on-demand`, `spot`.
401
- */
402
- capacity_type?: string;
403
- /**
404
- * Price of running the inctance per hour in USD as defined by the cloud service provider
405
- */
406
- price: number;
407
- /**
408
- * Whether this instance type is available.
409
- */
410
- available?: boolean;
411
- };
412
324
  export type Invite = {
413
325
  /**
414
326
  * Unique identifier of the invitation.
@@ -663,35 +575,7 @@ export type Invoice = {
663
575
  } | string>;
664
576
  }>;
665
577
  };
666
- export type OrganizationContactInfo = {
667
- /**
668
- * Street address, P.O. box, c/o
669
- */
670
- address1?: string;
671
- /**
672
- * Apartment, suite, unit, building, floor, etc.
673
- */
674
- address2?: string;
675
- /**
676
- * Postal code as a string.
677
- */
678
- postalCode?: string;
679
- /**
680
- * City or town name.
681
- */
682
- city?: string;
683
- /**
684
- * State, province, or region name.
685
- */
686
- state?: string;
687
- /**
688
- * Country as a ISO 3166-1 alpha-2 country code.
689
- */
690
- country?: string;
691
- /**
692
- * Phone number as a string.
693
- */
694
- phone?: string;
578
+ export type OrganizationCreateInput = {
695
579
  /**
696
580
  * Email address used for billing as a string.
697
581
  */
@@ -704,116 +588,24 @@ export type OrganizationContactInfo = {
704
588
  * Last name of the billing contact person.
705
589
  */
706
590
  last_name: string;
707
- };
708
- export type OrganizationCreateInput = {
709
591
  /**
710
592
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
711
593
  */
712
- name: string;
713
- /**
714
- * Organization contact information and billing address.
715
- */
716
- contactInfo: {
717
- /**
718
- * Street address, P.O. box, c/o
719
- */
720
- address1?: string;
721
- /**
722
- * Apartment, suite, unit, building, floor, etc.
723
- */
724
- address2?: string;
725
- /**
726
- * Postal code as a string.
727
- */
728
- postalCode?: string;
729
- /**
730
- * City or town name.
731
- */
732
- city?: string;
733
- /**
734
- * State, province, or region name.
735
- */
736
- state?: string;
737
- /**
738
- * Country as a ISO 3166-1 alpha-2 country code.
739
- */
740
- country?: string;
741
- /**
742
- * Phone number as a string.
743
- */
744
- phone?: string;
745
- /**
746
- * Email address used for billing as a string.
747
- */
748
- email: string;
749
- /**
750
- * First name of the billing contact person.
751
- */
752
- first_name: string;
753
- /**
754
- * Last name of the billing contact person.
755
- */
756
- last_name: string;
757
- };
594
+ company_name: string;
758
595
  /**
759
596
  * Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
760
597
  */
761
598
  password: string;
762
599
  };
763
600
  export type Organization = {
764
- /**
765
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
766
- */
767
- name: string;
768
- /**
769
- * Organization contact information and billing address.
770
- */
771
- contactInfo: {
772
- /**
773
- * Street address, P.O. box, c/o
774
- */
775
- address1?: string;
776
- /**
777
- * Apartment, suite, unit, building, floor, etc.
778
- */
779
- address2?: string;
780
- /**
781
- * Postal code as a string.
782
- */
783
- postalCode?: string;
784
- /**
785
- * City or town name.
786
- */
787
- city?: string;
788
- /**
789
- * State, province, or region name.
790
- */
791
- state?: string;
792
- /**
793
- * Country as a ISO 3166-1 alpha-2 country code.
794
- */
795
- country?: string;
796
- /**
797
- * Phone number as a string.
798
- */
799
- phone?: string;
800
- /**
801
- * Email address used for billing as a string.
802
- */
803
- email: string;
804
- /**
805
- * First name of the billing contact person.
806
- */
807
- first_name: string;
808
- /**
809
- * Last name of the billing contact person.
810
- */
811
- last_name: string;
812
- };
813
601
  /**
814
602
  * Unique identifier of the organization. UUID v4 string in canonical form
815
603
  */
816
604
  id: string;
605
+ /**
606
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
607
+ */
608
+ name?: string;
817
609
  /**
818
610
  * Creation date of the organization. ISO 8601 date string in UTC timezone
819
611
  */
@@ -868,66 +660,11 @@ export type Organization = {
868
660
  label: string;
869
661
  }>;
870
662
  };
871
- /**
872
- * List of pending actions that the user needs to complete. Used in Cloudfleet console to guide the user through the onboarding process.
873
- */
874
- pending_actions: Array<'signup-billing-address' | 'signup-payment-method' | 'signup-invite-team' | 'signup-create-cluster'>;
875
663
  /**
876
664
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
877
665
  */
878
666
  status: 'active' | 'closed' | 'suspended';
879
667
  };
880
- export type OrganizationUpdateInput = {
881
- /**
882
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
883
- */
884
- name?: string;
885
- /**
886
- * Organization contact information and billing address.
887
- */
888
- contactInfo: {
889
- /**
890
- * Street address, P.O. box, c/o
891
- */
892
- address1?: string;
893
- /**
894
- * Apartment, suite, unit, building, floor, etc.
895
- */
896
- address2?: string;
897
- /**
898
- * Postal code as a string.
899
- */
900
- postalCode?: string;
901
- /**
902
- * City or town name.
903
- */
904
- city?: string;
905
- /**
906
- * State, province, or region name.
907
- */
908
- state?: string;
909
- /**
910
- * Country as a ISO 3166-1 alpha-2 country code.
911
- */
912
- country?: string;
913
- /**
914
- * Phone number as a string.
915
- */
916
- phone?: string;
917
- /**
918
- * Email address used for billing as a string.
919
- */
920
- email: string;
921
- /**
922
- * First name of the billing contact person.
923
- */
924
- first_name: string;
925
- /**
926
- * Last name of the billing contact person.
927
- */
928
- last_name: string;
929
- };
930
- };
931
668
  export type PaymentMethod = {
932
669
  /**
933
670
  * Unique identifier of the organization. UUID v4 string in canonical form.
@@ -1048,7 +785,7 @@ export type UserCreateInput = {
1048
785
  */
1049
786
  code: string;
1050
787
  /**
1051
- * User password. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
788
+ * User password. Must be at least 8 characters long.
1052
789
  */
1053
790
  password: string;
1054
791
  /**
@@ -1089,16 +826,6 @@ export type User = {
1089
826
  * Creation date of the user. ISO 8601 date string in UTC timezone
1090
827
  */
1091
828
  date_created: string;
1092
- cluster_permissions?: Array<{
1093
- /**
1094
- * Unique identifier of the cluster. UUID v4 string in canonical form
1095
- */
1096
- cluster_id: string;
1097
- /**
1098
- * User permissions to access the cluster. Can be `readwrite` or `readonly`.
1099
- */
1100
- permissions: 'readwrite' | 'readonly';
1101
- }>;
1102
829
  };
1103
830
  export type UserUpdateInput = {
1104
831
  /**
@@ -1240,6 +967,74 @@ export type GetInvoiceResponses = {
1240
967
  };
1241
968
  };
1242
969
  export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
970
+ export type GetContactData = {
971
+ body?: never;
972
+ path?: never;
973
+ query?: never;
974
+ url: '/billing/contact';
975
+ };
976
+ export type GetContactResponses = {
977
+ /**
978
+ * Returns a single object containing organization contact and billing address details.
979
+ */
980
+ 200: BillingContact;
981
+ };
982
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
983
+ export type UpdateContactData = {
984
+ body: BillingContact;
985
+ path?: never;
986
+ query?: never;
987
+ url: '/billing/contact';
988
+ };
989
+ export type UpdateContactResponses = {
990
+ /**
991
+ * Successfully updated. Returns updated organization details.
992
+ */
993
+ 200: BillingContact;
994
+ };
995
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
996
+ export type GetCreditsData = {
997
+ body?: never;
998
+ path?: never;
999
+ query?: never;
1000
+ url: '/billing/credits';
1001
+ };
1002
+ export type GetCreditsErrors = {
1003
+ /**
1004
+ * Not authenticated
1005
+ */
1006
+ 401: unknown;
1007
+ };
1008
+ export type GetCreditsResponses = {
1009
+ /**
1010
+ * An array of the applied promotional credits records.
1011
+ */
1012
+ 200: Array<BillingCredits>;
1013
+ };
1014
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1015
+ export type RedeemCreditsData = {
1016
+ body: {
1017
+ /**
1018
+ * Promotional code to redeem
1019
+ */
1020
+ code?: string;
1021
+ };
1022
+ path?: never;
1023
+ query?: never;
1024
+ url: '/billing/credits';
1025
+ };
1026
+ export type RedeemCreditsErrors = {
1027
+ /**
1028
+ * Not authenticated
1029
+ */
1030
+ 401: unknown;
1031
+ };
1032
+ export type RedeemCreditsResponses = {
1033
+ /**
1034
+ * Successfully created a new organization.
1035
+ */
1036
+ 200: unknown;
1037
+ };
1243
1038
  export type ListFleetsData = {
1244
1039
  body?: never;
1245
1040
  path: {
@@ -1502,252 +1297,6 @@ export type GetJoinInformationResponses = {
1502
1297
  200: Cluster;
1503
1298
  };
1504
1299
  export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1505
- export type GetInfrastructureData = {
1506
- body?: never;
1507
- path?: never;
1508
- query?: {
1509
- /**
1510
- * Version of the task definition. Currently only version 1 is supported.
1511
- */
1512
- version?: 1;
1513
- /**
1514
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1515
- */
1516
- provider?: Array<string>;
1517
- /**
1518
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1519
- */
1520
- region?: Array<string>;
1521
- /**
1522
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1523
- */
1524
- sub_region?: Array<string>;
1525
- /**
1526
- * Limits selection of cloud regions to this list of canonical provider regions
1527
- */
1528
- csp_region?: Array<string>;
1529
- /**
1530
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
1531
- */
1532
- instance_type?: Array<string>;
1533
- /**
1534
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1535
- */
1536
- accelerator_name?: Array<string>;
1537
- /**
1538
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1539
- */
1540
- accelerator_manufacturer?: Array<string>;
1541
- /**
1542
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1543
- */
1544
- accelerator_count_min?: number;
1545
- /**
1546
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1547
- */
1548
- accelerator_count_max?: number;
1549
- /**
1550
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1551
- */
1552
- accelerator_memory_min?: number;
1553
- /**
1554
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1555
- */
1556
- accelerator_memory_max?: number;
1557
- /**
1558
- * Minimum amount of RAM in gibibytes (GiB)
1559
- */
1560
- memory_min?: number;
1561
- /**
1562
- * Maximum amount of RAM in gibibytes (GiB)
1563
- */
1564
- memory_max?: number;
1565
- /**
1566
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1567
- */
1568
- vcpu_min?: number;
1569
- /**
1570
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1571
- */
1572
- vcpu_max?: number;
1573
- /**
1574
- * Minimum total storage in GiB (attached and local)
1575
- */
1576
- storage_total_min?: number;
1577
- /**
1578
- * Maximum total storage in GiB (attached and local)
1579
- */
1580
- storage_total_max?: number;
1581
- /**
1582
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1583
- */
1584
- storage_local_min?: number;
1585
- /**
1586
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
1587
- */
1588
- storage_local_max?: number;
1589
- /**
1590
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1591
- */
1592
- price_min?: number;
1593
- /**
1594
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1595
- */
1596
- price_max?: number;
1597
- };
1598
- url: '/infrastructure';
1599
- };
1600
- export type GetInfrastructureErrors = {
1601
- /**
1602
- * Returns a validation error if any of the search parameters in the request are invalid
1603
- */
1604
- 400: Blob | File;
1605
- };
1606
- export type GetInfrastructureError = GetInfrastructureErrors[keyof GetInfrastructureErrors];
1607
- export type GetInfrastructureResponses = {
1608
- /**
1609
- * An array of instances returned by the search
1610
- */
1611
- 200: Array<InfrastructureInstance>;
1612
- };
1613
- export type GetInfrastructureResponse = GetInfrastructureResponses[keyof GetInfrastructureResponses];
1614
- export type GetFacetsData = {
1615
- body?: never;
1616
- path?: never;
1617
- query?: never;
1618
- url: '/infrastructure/facets';
1619
- };
1620
- export type GetFacetsResponses = {
1621
- /**
1622
- * Calculates search facets of the infrastructure catalog
1623
- */
1624
- 200: Array<{
1625
- /**
1626
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1627
- */
1628
- provider?: Array<string>;
1629
- /**
1630
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1631
- */
1632
- region?: Array<string>;
1633
- /**
1634
- * Limits selection of cloud sub-regions to this list of Cloudfleet sub-regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1635
- */
1636
- sub_region?: Array<string>;
1637
- /**
1638
- * Limits selection of cloud regions to this list of canonical provider regions
1639
- */
1640
- csp_region?: Array<string>;
1641
- /**
1642
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1643
- */
1644
- vcpu_min?: number;
1645
- /**
1646
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1647
- */
1648
- vcpu_max?: number;
1649
- /**
1650
- * Minimum amount of RAM in gibibytes (GiB)
1651
- */
1652
- memory_min?: number;
1653
- /**
1654
- * Maximum amount of RAM in gibibytes (GiB)
1655
- */
1656
- memory_max?: number;
1657
- /**
1658
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1659
- */
1660
- storage_local_min?: number;
1661
- /**
1662
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
1663
- */
1664
- storage_local_max?: number;
1665
- /**
1666
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1667
- */
1668
- accelerator_name?: Array<string>;
1669
- /**
1670
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1671
- */
1672
- accelerator_manufacturer?: Array<string>;
1673
- /**
1674
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1675
- */
1676
- accelerator_count_min?: number;
1677
- /**
1678
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1679
- */
1680
- accelerator_count_max?: number;
1681
- /**
1682
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1683
- */
1684
- accelerator_memory_min?: number;
1685
- /**
1686
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1687
- */
1688
- accelerator_memory_max?: number;
1689
- /**
1690
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1691
- */
1692
- price_min?: number;
1693
- /**
1694
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1695
- */
1696
- price_max?: number;
1697
- /**
1698
- * Structured array of regions and sub-regions
1699
- */
1700
- regions_struct?: Array<{
1701
- /**
1702
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1703
- */
1704
- region?: string;
1705
- sub_region?: Array<string>;
1706
- }>;
1707
- /**
1708
- * Structured array of regions and sub-regions
1709
- */
1710
- accelerators_struct?: Array<{
1711
- /**
1712
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1713
- */
1714
- accelerator_manufacturer?: string;
1715
- accelerator_name?: Array<string>;
1716
- }>;
1717
- /**
1718
- * Total number of instances in the catalog
1719
- */
1720
- count_total?: number;
1721
- /**
1722
- * Total number of instances in the catalog with at least 1 accelerator
1723
- */
1724
- count_accelerators?: number;
1725
- /**
1726
- * Total number of unique instances types in the catalog
1727
- */
1728
- count_instance_types?: number;
1729
- /**
1730
- * Total number of unique instances types in the catalog with at least 1 accelerator
1731
- */
1732
- count_accelerators_instance_types?: number;
1733
- }>;
1734
- };
1735
- export type GetFacetsResponse = GetFacetsResponses[keyof GetFacetsResponses];
1736
- export type GetRegionsData = {
1737
- body?: never;
1738
- path?: never;
1739
- query?: never;
1740
- url: '/infrastructure/regions';
1741
- };
1742
- export type GetRegionsResponses = {
1743
- /**
1744
- * Available Cloudfleet regions and Kubernetes versions.
1745
- */
1746
- 200: {
1747
- [key: string]: unknown;
1748
- };
1749
- };
1750
- export type GetRegionsResponse = GetRegionsResponses[keyof GetRegionsResponses];
1751
1300
  export type ListInvitesData = {
1752
1301
  body?: never;
1753
1302
  path?: never;
@@ -1845,19 +1394,6 @@ export type CreateOrganizationResponses = {
1845
1394
  */
1846
1395
  200: unknown;
1847
1396
  };
1848
- export type UpdateOrganizationData = {
1849
- body: OrganizationUpdateInput;
1850
- path?: never;
1851
- query?: never;
1852
- url: '/organization';
1853
- };
1854
- export type UpdateOrganizationResponses = {
1855
- /**
1856
- * Successfully updated. Returns updated organization details.
1857
- */
1858
- 200: Organization;
1859
- };
1860
- export type UpdateOrganizationResponse = UpdateOrganizationResponses[keyof UpdateOrganizationResponses];
1861
1397
  export type ListTokensData = {
1862
1398
  body?: never;
1863
1399
  path?: never;
@@ -2114,53 +1650,7 @@ export type UpdateUserResponses = {
2114
1650
  200: User;
2115
1651
  };
2116
1652
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2117
- export type DeleteClusterPermissionsData = {
2118
- body?: never;
2119
- path: {
2120
- /**
2121
- * Unique user identifier. UUID v4 string in canonical form
2122
- */
2123
- user_id: string;
2124
- /**
2125
- * Unique cluster identifier. UUID v4 string in canonical form
2126
- */
2127
- cluster_id: string;
2128
- };
2129
- query?: never;
2130
- url: '/users/{user_id}/clusters/{cluster_id}';
2131
- };
2132
- export type DeleteClusterPermissionsResponses = {
2133
- /**
2134
- * Successfully removed user from the cluster. Returns updated user details.
2135
- */
2136
- 200: User;
2137
- };
2138
- export type DeleteClusterPermissionsResponse = DeleteClusterPermissionsResponses[keyof DeleteClusterPermissionsResponses];
2139
- export type SetClusterPermissionsData = {
2140
- body: {
2141
- /**
2142
- * Level of permissions for the user to access the cluster
2143
- */
2144
- permissions?: 'readwrite' | 'readonly';
2145
- };
2146
- path: {
2147
- /**
2148
- * Unique user identifier. UUID v4 string in canonical form
2149
- */
2150
- user_id: string;
2151
- /**
2152
- * Unique cluster identifier. UUID v4 string in canonical form
2153
- */
2154
- cluster_id: string;
2155
- };
2156
- query?: never;
2157
- url: '/users/{user_id}/clusters/{cluster_id}';
2158
- };
2159
- export type SetClusterPermissionsResponses = {
2160
- /**
2161
- * Successfully created. Returns created user details.
2162
- */
2163
- 200: User;
1653
+ export type ClientOptions = {
1654
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
2164
1655
  };
2165
- export type SetClusterPermissionsResponse = SetClusterPermissionsResponses[keyof SetClusterPermissionsResponses];
2166
1656
  //# sourceMappingURL=types.gen.d.ts.map