@cloudfleet/sdk 0.0.1-cb34d78 → 0.0.1-cb875c6

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.
@@ -58,15 +58,10 @@ export const BillingContactSchema = {
58
58
  description: 'Email address used for billing as a string.',
59
59
  example: 'email@example.com'
60
60
  },
61
- first_name: {
61
+ individual_name: {
62
62
  type: 'string',
63
- description: 'First name of the billing contact person.',
64
- example: 'John'
65
- },
66
- last_name: {
67
- type: 'string',
68
- description: 'Last name of the billing contact person.',
69
- example: 'Doe'
63
+ description: 'Name of the billing contact person.',
64
+ example: 'John Doe'
70
65
  },
71
66
  tax_id: {
72
67
  type: 'string',
@@ -82,7 +77,7 @@ export const BillingContactSchema = {
82
77
  enum: ['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'at_vat', 'au_abn', 'au_arn', 'ba_tin', 'bb_tin', 'be_vat', 'bg_uic', 'bg_vat', 'bh_vat', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cn_tin', 'co_nit', 'cr_tin', 'cy_vat', 'cz_vat', 'de_stn', 'de_vat', 'dk_vat', 'do_rcn', 'ec_ruc', 'ee_vat', 'eg_tin', 'es_cif', 'es_vat', 'eu_oss_vat', 'fi_vat', 'fr_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'gr_vat', 'hk_br', 'hr_oib', 'hr_vat', 'hu_tin', 'hu_vat', 'id_npwp', 'ie_vat', 'il_vat', 'in_gst', 'is_vat', 'it_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kh_tin', 'kr_brn', 'kz_bin', 'li_uid', 'li_vat', 'lt_vat', 'lu_vat', 'lv_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mt_vat', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'nl_vat', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'pl_vat', 'pt_vat', 'ro_tin', 'ro_vat', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'se_vat', 'sg_gst', 'sg_uen', 'si_tin', 'si_vat', 'sk_vat', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'xi_vat', 'za_vat', 'zm_tin', 'zw_tin', '']
83
78
  }
84
79
  },
85
- required: ['email', 'first_name', 'last_name'],
80
+ required: ['email', 'individual_name'],
86
81
  additionalProperties: false
87
82
  };
88
83
  export const BillingCreditsSchema = {
@@ -93,10 +88,22 @@ export const BillingCreditsSchema = {
93
88
  description: 'Generated unique identifier of the promotional code.',
94
89
  example: '7kUZnH7nnKUFfvc4NK2KQF'
95
90
  },
96
- date_created: {
91
+ type: {
92
+ type: 'string',
93
+ description: 'Type of the promotional code.',
94
+ example: 'credit',
95
+ enum: ['credit', 'discount']
96
+ },
97
+ date_start: {
97
98
  type: 'string',
98
99
  format: 'date-time',
99
- description: 'Date of the credit application. ISO 8601 date string in the UTC timezone.',
100
+ description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
101
+ example: '2023-12-20T13:53:32.000Z'
102
+ },
103
+ date_end: {
104
+ type: 'string',
105
+ format: 'date-time',
106
+ description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
100
107
  example: '2023-12-20T13:53:32.000Z'
101
108
  },
102
109
  code: {
@@ -109,40 +116,20 @@ export const BillingCreditsSchema = {
109
116
  description: 'Description of the promotional code.',
110
117
  example: '10% off on all products'
111
118
  },
112
- products: {
113
- type: 'array',
114
- items: {
115
- type: 'string'
116
- },
117
- description: 'List of product SKUs that the promotional code can be used on.',
118
- example: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
119
- },
120
- type: {
121
- type: 'string',
122
- description: 'Type of the promotional code.',
123
- example: 'credit',
124
- enum: ['credit', 'discount']
125
- },
126
- value: {
119
+ value_total: {
127
120
  type: 'number',
128
121
  format: 'float',
129
- description: 'Value of the promotional code.',
122
+ description: 'Total value of the promotional code.',
130
123
  example: 10
131
124
  },
132
- billing_period: {
133
- type: 'string',
134
- format: 'date-time',
135
- description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
136
- example: '2023-12-20T13:53:32.000Z'
137
- },
138
125
  value_remaining: {
139
126
  type: 'number',
140
127
  format: 'float',
141
- description: 'Value of the promotional code.',
142
- example: 10
128
+ description: 'Remaining value of the promotional code.',
129
+ example: 8
143
130
  }
144
131
  },
145
- required: ['date_created', 'code', 'type', 'value', 'billing_period'],
132
+ required: ['type', 'date_start', 'code', 'value_total'],
146
133
  additionalProperties: false
147
134
  };
148
135
  export const ChartCreateInputSchema = {
@@ -299,7 +286,7 @@ export const ClusterCreateInputSchema = {
299
286
  pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
300
287
  description: 'Version of the kubernetes cluster.',
301
288
  default: '1.x.x-cfke.x',
302
- example: '1.29.x-cfke.x'
289
+ example: '1.33.x-cfke.x'
303
290
  }
304
291
  },
305
292
  required: ['name', 'tier'],
@@ -336,7 +323,7 @@ MIIC0DCCAbigAwIBAgI...`
336
323
  kubernetes: {
337
324
  type: 'string',
338
325
  description: 'Kubernetes version of the cluster.',
339
- example: '1.29.3'
326
+ example: '1.33.7'
340
327
  },
341
328
  tailscale: {
342
329
  type: 'string',
@@ -414,7 +401,7 @@ export const ClusterSchema = {
414
401
  pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
415
402
  description: 'Version of the kubernetes cluster.',
416
403
  default: '1.x.x-cfke.x',
417
- example: '1.29.x-cfke.x'
404
+ example: '1.33.x-cfke.x'
418
405
  },
419
406
  id: {
420
407
  type: 'string',
@@ -426,7 +413,7 @@ export const ClusterSchema = {
426
413
  type: 'string',
427
414
  description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
428
415
  example: 'active',
429
- enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
416
+ enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
430
417
  },
431
418
  endpoint: {
432
419
  anyOf: [
@@ -451,7 +438,7 @@ MIIC0DCCAbigAwIBAgI...`
451
438
  version_current: {
452
439
  type: 'string',
453
440
  description: 'Current version of the cluster.',
454
- example: '1.29.3-cfke.52'
441
+ example: '1.33.7-cfke.264'
455
442
  },
456
443
  created_at: {
457
444
  type: 'string',
@@ -493,7 +480,7 @@ export const ClusterUpdateInputSchema = {
493
480
  type: 'string',
494
481
  pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
495
482
  description: 'Version of the kubernetes cluster.',
496
- example: '1.29.x-cfke.x'
483
+ example: '1.33.x-cfke.x'
497
484
  }
498
485
  },
499
486
  required: ['tier'],
@@ -756,19 +743,15 @@ export const InvoiceSchema = {
756
743
  description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
757
744
  example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
758
745
  },
759
- organizationId: {
760
- type: 'string',
761
- format: 'uuid',
762
- description: 'Unique identifier of the organization. UUID v4 string in canonical form',
763
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
746
+ number: {
747
+ type: 'string'
764
748
  },
765
749
  status: {
766
750
  type: 'string',
767
751
  description: 'Status of the invoice',
768
- example: 'DRAFT',
769
- enum: ['DRAFT', 'COMMITTED', 'VOID']
752
+ example: 'paid'
770
753
  },
771
- amount: {
754
+ total: {
772
755
  type: 'number',
773
756
  format: 'float',
774
757
  description: 'Total amount of the invoice',
@@ -777,330 +760,31 @@ export const InvoiceSchema = {
777
760
  currency: {
778
761
  type: 'string',
779
762
  description: 'Currency of the invoice',
780
- example: 'USD',
781
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
763
+ example: 'usd'
782
764
  },
783
- creditAdj: {
784
- type: 'number',
785
- format: 'float',
786
- description: 'Total amount of credit adjustments',
787
- example: 0
788
- },
789
- refundAdj: {
790
- type: 'number',
791
- format: 'float',
792
- description: 'Total amount of refund adjustments',
793
- example: 0
794
- },
795
- invoiceDate: {
765
+ created: {
796
766
  type: 'string',
797
- description: 'Date of the invoice',
798
- example: '2019-01-01T00:00:00.000Z'
799
- },
800
- targetDate: {
801
- type: 'string',
802
- description: 'Target date of the invoice',
803
- example: '2019-01-01T00:00:00.000Z'
767
+ format: 'date-time',
768
+ description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
769
+ example: '2023-12-20T13:53:32.000Z'
804
770
  },
805
- invoiceNumber: {
771
+ period_start: {
806
772
  type: 'string',
807
- description: 'Number of the invoice',
808
- example: 'INV-0001'
809
- },
810
- balance: {
811
- type: 'number',
812
- format: 'float',
813
- description: 'Balance of the invoice',
814
- example: 100
773
+ format: 'date-time',
774
+ description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
775
+ example: '2023-12-20T13:53:32.000Z'
815
776
  },
816
- bundleKeys: {
777
+ period_end: {
817
778
  type: 'string',
818
- description: 'Bundle keys of the invoice',
819
- example: 'bundleKey1,bundleKey2'
820
- },
821
- credits: {
822
- type: 'array',
823
- items: {
824
- type: 'object',
825
- properties: {
826
- id: {
827
- type: 'string',
828
- format: 'uuid',
829
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
830
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
831
- },
832
- linkedInvoiceItemId: {
833
- type: 'string',
834
- format: 'uuid',
835
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
836
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
837
- },
838
- productName: {
839
- type: 'string',
840
- description: 'Name of the product',
841
- example: 'Research team'
842
- },
843
- planName: {
844
- type: 'string',
845
- description: 'Name of the plan',
846
- example: 'Plan A'
847
- },
848
- phaseName: {
849
- type: 'string',
850
- description: 'Name of the phase',
851
- example: 'Phase A'
852
- },
853
- usageName: {
854
- type: 'string',
855
- description: 'Name of the usage',
856
- example: 'Usage A'
857
- },
858
- prettyProductName: {
859
- type: 'string',
860
- description: 'Pretty name of the product',
861
- example: 'Research team'
862
- },
863
- prettyPlanName: {
864
- type: 'string',
865
- description: 'Pretty name of the plan',
866
- example: 'Plan A'
867
- },
868
- prettyPhaseName: {
869
- type: 'string',
870
- description: 'Pretty name of the phase',
871
- example: 'Phase A'
872
- },
873
- prettyUsageName: {
874
- type: 'string',
875
- description: 'Pretty name of the usage',
876
- example: 'Usage A'
877
- },
878
- itemType: {
879
- type: 'string',
880
- description: 'Type of the invoice item',
881
- example: 'EXTERNAL_CHARGE',
882
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
883
- },
884
- description: {
885
- type: 'string',
886
- description: 'Description of the invoice item',
887
- example: 'Description of the invoice item'
888
- },
889
- startDate: {
890
- type: 'string',
891
- description: 'Start date of the invoice item',
892
- example: '2019-01-01T00:00:00.000Z'
893
- },
894
- endDate: {
895
- type: 'string',
896
- description: 'End date of the invoice item',
897
- example: '2019-01-01T00:00:00.000Z'
898
- },
899
- amount: {
900
- type: 'number',
901
- format: 'float',
902
- description: 'Amount of the invoice item',
903
- example: 100
904
- },
905
- rate: {
906
- type: 'number',
907
- format: 'float',
908
- description: 'Rate of the invoice item',
909
- example: 100
910
- },
911
- currency: {
912
- type: 'string',
913
- description: 'Currency of the invoice item',
914
- example: 'USD',
915
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
916
- },
917
- quantity: {
918
- type: 'number',
919
- format: 'float',
920
- description: 'Quantity of the invoice item',
921
- example: 1
922
- },
923
- itemDetails: {
924
- type: 'string',
925
- description: 'Details of the invoice item',
926
- example: 'Details of the invoice item'
927
- },
928
- catalogEffectiveDate: {
929
- type: 'string',
930
- description: 'Effective date of the catalog',
931
- example: '2019-01-01T00:00:00.000Z'
932
- },
933
- childItems: {
934
- type: 'array',
935
- items: {
936
- oneOf: [
937
- {
938
- type: 'array'
939
- },
940
- {
941
- type: 'boolean'
942
- },
943
- {
944
- type: 'number'
945
- },
946
- {
947
- type: 'object',
948
- additionalProperties: true
949
- },
950
- {
951
- type: 'string'
952
- }
953
- ]
954
- },
955
- description: 'Child items of the invoice item'
956
- }
957
- },
958
- additionalProperties: false
959
- },
960
- description: 'Credits of the invoice'
779
+ format: 'date-time',
780
+ description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
781
+ example: '2023-12-20T13:53:32.000Z'
961
782
  },
962
- items: {
963
- type: 'array',
964
- items: {
965
- type: 'object',
966
- properties: {
967
- id: {
968
- type: 'string',
969
- format: 'uuid',
970
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
971
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
972
- },
973
- linkedInvoiceItemId: {
974
- type: 'string',
975
- format: 'uuid',
976
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
977
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
978
- },
979
- productName: {
980
- type: 'string',
981
- description: 'Name of the product',
982
- example: 'Research team'
983
- },
984
- planName: {
985
- type: 'string',
986
- description: 'Name of the plan',
987
- example: 'Plan A'
988
- },
989
- phaseName: {
990
- type: 'string',
991
- description: 'Name of the phase',
992
- example: 'Phase A'
993
- },
994
- usageName: {
995
- type: 'string',
996
- description: 'Name of the usage',
997
- example: 'Usage A'
998
- },
999
- prettyProductName: {
1000
- type: 'string',
1001
- description: 'Pretty name of the product',
1002
- example: 'Research team'
1003
- },
1004
- prettyPlanName: {
1005
- type: 'string',
1006
- description: 'Pretty name of the plan',
1007
- example: 'Plan A'
1008
- },
1009
- prettyPhaseName: {
1010
- type: 'string',
1011
- description: 'Pretty name of the phase',
1012
- example: 'Phase A'
1013
- },
1014
- prettyUsageName: {
1015
- type: 'string',
1016
- description: 'Pretty name of the usage',
1017
- example: 'Usage A'
1018
- },
1019
- itemType: {
1020
- type: 'string',
1021
- description: 'Type of the invoice item',
1022
- example: 'EXTERNAL_CHARGE',
1023
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
1024
- },
1025
- description: {
1026
- type: 'string',
1027
- description: 'Description of the invoice item',
1028
- example: 'Description of the invoice item'
1029
- },
1030
- startDate: {
1031
- type: 'string',
1032
- description: 'Start date of the invoice item',
1033
- example: '2019-01-01T00:00:00.000Z'
1034
- },
1035
- endDate: {
1036
- type: 'string',
1037
- description: 'End date of the invoice item',
1038
- example: '2019-01-01T00:00:00.000Z'
1039
- },
1040
- amount: {
1041
- type: 'number',
1042
- format: 'float',
1043
- description: 'Amount of the invoice item',
1044
- example: 100
1045
- },
1046
- rate: {
1047
- type: 'number',
1048
- format: 'float',
1049
- description: 'Rate of the invoice item',
1050
- example: 100
1051
- },
1052
- currency: {
1053
- type: 'string',
1054
- description: 'Currency of the invoice item',
1055
- example: 'USD',
1056
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
1057
- },
1058
- quantity: {
1059
- type: 'number',
1060
- format: 'float',
1061
- description: 'Quantity of the invoice item',
1062
- example: 1
1063
- },
1064
- itemDetails: {
1065
- type: 'string',
1066
- description: 'Details of the invoice item',
1067
- example: 'Details of the invoice item'
1068
- },
1069
- catalogEffectiveDate: {
1070
- type: 'string',
1071
- description: 'Effective date of the catalog',
1072
- example: '2019-01-01T00:00:00.000Z'
1073
- },
1074
- childItems: {
1075
- type: 'array',
1076
- items: {
1077
- oneOf: [
1078
- {
1079
- type: 'array'
1080
- },
1081
- {
1082
- type: 'boolean'
1083
- },
1084
- {
1085
- type: 'number'
1086
- },
1087
- {
1088
- type: 'object',
1089
- additionalProperties: true
1090
- },
1091
- {
1092
- type: 'string'
1093
- }
1094
- ]
1095
- },
1096
- description: 'Child items of the invoice item'
1097
- }
1098
- },
1099
- additionalProperties: false
1100
- },
1101
- description: 'Items of the invoice'
783
+ invoice_pdf: {
784
+ type: 'string'
1102
785
  }
1103
786
  },
787
+ required: ['created', 'period_start', 'period_end'],
1104
788
  additionalProperties: false
1105
789
  };
1106
790
  export const MarketplaceListingSchema = {
@@ -1301,12 +985,12 @@ export const OrganizationSchema = {
1301
985
  id: {
1302
986
  type: 'string',
1303
987
  description: 'Id of the control plane version. Used in API calls.',
1304
- example: '1.29.x-cfke.x'
988
+ example: '1.33.x-cfke.x'
1305
989
  },
1306
990
  label: {
1307
991
  type: 'string',
1308
992
  description: 'Label of the control plane version. Used in frontent UI.',
1309
- example: '1.29.x (Always latest 1.29 patch version)'
993
+ example: '1.33.x (Always latest 1.33 patch version)'
1310
994
  }
1311
995
  },
1312
996
  required: ['id', 'label'],
@@ -1382,6 +1066,261 @@ export const PaymentMethodSchema = {
1382
1066
  required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
1383
1067
  additionalProperties: false
1384
1068
  };
1069
+ export const PlatformQuotaSchema = {
1070
+ type: 'object',
1071
+ properties: {
1072
+ basic_clusters_max: {
1073
+ type: 'integer',
1074
+ minimum: 0,
1075
+ description: 'Maximum number of Basic clusters that can be created.',
1076
+ example: 999
1077
+ },
1078
+ basic_clusters_available: {
1079
+ type: 'integer',
1080
+ description: 'Available number of Basic clusters that can be created.',
1081
+ example: 999
1082
+ },
1083
+ pro_clusters_max: {
1084
+ type: 'integer',
1085
+ minimum: 0,
1086
+ description: 'Maximum number of Pro clusters that can be created.',
1087
+ example: 999
1088
+ },
1089
+ pro_clusters_available: {
1090
+ type: 'integer',
1091
+ description: 'Available number of Pro clusters that can be created.',
1092
+ example: 999
1093
+ },
1094
+ fleets_max: {
1095
+ type: 'integer',
1096
+ minimum: 0,
1097
+ description: 'Maximum number of fleets that can be created per cluster.',
1098
+ example: 999
1099
+ },
1100
+ cluster_tiers: {
1101
+ type: 'array',
1102
+ items: {
1103
+ type: 'string',
1104
+ example: 'basic'
1105
+ },
1106
+ minItems: 0,
1107
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
1108
+ },
1109
+ regions: {
1110
+ type: 'array',
1111
+ items: {
1112
+ type: 'string',
1113
+ example: 'northamerica-central-1'
1114
+ },
1115
+ minItems: 1,
1116
+ description: 'List of Cloudfleet control plane regions available for the organization.'
1117
+ },
1118
+ versions: {
1119
+ type: 'array',
1120
+ items: {
1121
+ type: 'object',
1122
+ properties: {
1123
+ id: {
1124
+ type: 'string',
1125
+ description: 'Id of the control plane version. Used in API calls.',
1126
+ example: '1.33.x-cfke.x'
1127
+ },
1128
+ label: {
1129
+ type: 'string',
1130
+ description: 'Label of the control plane version. Used in frontent UI.',
1131
+ example: '1.33.x (Always latest 1.33 patch version)'
1132
+ }
1133
+ },
1134
+ required: ['id', 'label'],
1135
+ additionalProperties: false
1136
+ },
1137
+ minItems: 1,
1138
+ description: 'List of CFKE control plane versions available for the organization.'
1139
+ }
1140
+ },
1141
+ required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1142
+ additionalProperties: false
1143
+ };
1144
+ export const RegistryRepositorySchema = {
1145
+ type: 'object',
1146
+ properties: {
1147
+ name: {
1148
+ type: 'string',
1149
+ description: 'Repository name.',
1150
+ example: 'my-app'
1151
+ },
1152
+ region: {
1153
+ type: 'string',
1154
+ description: 'Registry region.',
1155
+ example: 'northamerica'
1156
+ },
1157
+ uri: {
1158
+ type: 'string',
1159
+ description: 'Full URI of the repository.',
1160
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1161
+ }
1162
+ },
1163
+ required: ['name', 'region', 'uri'],
1164
+ additionalProperties: false
1165
+ };
1166
+ export const RegistryRepositoryWithTagsSchema = {
1167
+ type: 'object',
1168
+ properties: {
1169
+ name: {
1170
+ type: 'string',
1171
+ description: 'Repository name.',
1172
+ example: 'my-app'
1173
+ },
1174
+ region: {
1175
+ type: 'string',
1176
+ description: 'Registry region.',
1177
+ example: 'northamerica'
1178
+ },
1179
+ uri: {
1180
+ type: 'string',
1181
+ description: 'Full URI of the repository.',
1182
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1183
+ },
1184
+ tags: {
1185
+ type: 'array',
1186
+ items: {
1187
+ type: 'object',
1188
+ properties: {
1189
+ name: {
1190
+ type: 'string',
1191
+ description: 'Tag name.',
1192
+ example: 'latest'
1193
+ },
1194
+ size: {
1195
+ type: 'number',
1196
+ format: 'float',
1197
+ description: 'Size of the tag in bytes.',
1198
+ example: 123456789
1199
+ },
1200
+ mediaType: {
1201
+ type: 'string',
1202
+ description: 'Media type of the manifest.',
1203
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
1204
+ }
1205
+ },
1206
+ required: ['name', 'size'],
1207
+ additionalProperties: false
1208
+ },
1209
+ description: 'Array of tags in the repository.'
1210
+ },
1211
+ totalSize: {
1212
+ type: 'number',
1213
+ format: 'float',
1214
+ description: 'Total size of all tags in the repository in bytes.',
1215
+ example: 987654321
1216
+ }
1217
+ },
1218
+ required: ['name', 'region', 'uri', 'tags', 'totalSize'],
1219
+ additionalProperties: false
1220
+ };
1221
+ export const RegistryTagSchema = {
1222
+ type: 'object',
1223
+ properties: {
1224
+ name: {
1225
+ type: 'string',
1226
+ description: 'Tag name.',
1227
+ example: 'latest'
1228
+ },
1229
+ mediaType: {
1230
+ type: 'string',
1231
+ description: 'Media type of the manifest.',
1232
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
1233
+ },
1234
+ config: {
1235
+ type: 'object',
1236
+ properties: {
1237
+ size: {
1238
+ type: 'number',
1239
+ format: 'float',
1240
+ description: 'Size of the config in bytes.',
1241
+ example: 1234
1242
+ }
1243
+ },
1244
+ required: ['size'],
1245
+ additionalProperties: false,
1246
+ description: 'Manifest config metadata.'
1247
+ },
1248
+ layers: {
1249
+ type: 'array',
1250
+ items: {
1251
+ type: 'object',
1252
+ properties: {
1253
+ size: {
1254
+ type: 'number',
1255
+ format: 'float',
1256
+ description: 'Size of the layer in bytes.',
1257
+ example: 5678
1258
+ }
1259
+ },
1260
+ required: ['size'],
1261
+ additionalProperties: false
1262
+ },
1263
+ description: 'Array of layer metadata.'
1264
+ },
1265
+ manifests: {
1266
+ type: 'array',
1267
+ items: {
1268
+ type: 'object',
1269
+ properties: {
1270
+ digest: {
1271
+ type: 'string',
1272
+ description: 'Digest of the manifest.',
1273
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
1274
+ },
1275
+ platform: {
1276
+ type: 'object',
1277
+ properties: {
1278
+ architecture: {
1279
+ type: 'string',
1280
+ description: 'Architecture of the platform.',
1281
+ example: 'amd64'
1282
+ },
1283
+ os: {
1284
+ type: 'string',
1285
+ description: 'Operating system of the platform.',
1286
+ example: 'linux'
1287
+ }
1288
+ },
1289
+ required: ['architecture', 'os'],
1290
+ additionalProperties: false,
1291
+ description: 'Platform information for the manifest.'
1292
+ }
1293
+ },
1294
+ required: ['digest'],
1295
+ additionalProperties: false
1296
+ },
1297
+ description: 'Array of manifests for multi-arch images.'
1298
+ },
1299
+ size: {
1300
+ type: 'number',
1301
+ format: 'float',
1302
+ description: 'Total size of the tag in bytes.',
1303
+ example: 123456789
1304
+ },
1305
+ region: {
1306
+ type: 'string',
1307
+ description: 'Registry region.',
1308
+ example: 'northamerica'
1309
+ },
1310
+ repository: {
1311
+ type: 'string',
1312
+ description: 'Repository name.',
1313
+ example: 'my-app'
1314
+ },
1315
+ uri: {
1316
+ type: 'string',
1317
+ description: 'Full URI of the tag.',
1318
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
1319
+ }
1320
+ },
1321
+ required: ['name', 'size', 'region', 'repository', 'uri'],
1322
+ additionalProperties: false
1323
+ };
1385
1324
  export const TokenCreateInputSchema = {
1386
1325
  type: 'object',
1387
1326
  properties: {
@@ -1460,6 +1399,101 @@ export const TokenUpdateInputSchema = {
1460
1399
  },
1461
1400
  additionalProperties: false
1462
1401
  };
1402
+ export const UsageFacetsSchema = {
1403
+ type: 'object',
1404
+ properties: {
1405
+ cluster_id: {
1406
+ type: 'array',
1407
+ items: {
1408
+ type: 'string'
1409
+ },
1410
+ description: 'List of unique cluster IDs',
1411
+ example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
1412
+ },
1413
+ product: {
1414
+ type: 'array',
1415
+ items: {
1416
+ type: 'string'
1417
+ },
1418
+ description: 'List of unique products',
1419
+ example: ['cfke_controlplane', 'cfke_connected_nodes']
1420
+ }
1421
+ },
1422
+ additionalProperties: false
1423
+ };
1424
+ export const UsageResponseSchema = {
1425
+ type: 'object',
1426
+ properties: {
1427
+ data: {
1428
+ type: 'array',
1429
+ items: {
1430
+ type: 'object',
1431
+ properties: {
1432
+ hour: {
1433
+ type: 'string',
1434
+ description: 'Hour of the usage',
1435
+ example: '2019-01-01T00:00:00.000Z'
1436
+ },
1437
+ cluster_id: {
1438
+ type: 'string',
1439
+ description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1440
+ example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1441
+ },
1442
+ product: {
1443
+ type: 'string',
1444
+ description: 'The product the usage is associated with',
1445
+ example: 'cfke_controlplane'
1446
+ },
1447
+ value: {
1448
+ type: 'number',
1449
+ format: 'float',
1450
+ description: 'Consumption',
1451
+ example: 4
1452
+ },
1453
+ price: {
1454
+ type: 'number',
1455
+ format: 'float',
1456
+ description: 'Price per unit',
1457
+ example: 0.01
1458
+ },
1459
+ total: {
1460
+ type: 'number',
1461
+ format: 'float',
1462
+ description: 'Total cost'
1463
+ }
1464
+ },
1465
+ required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
1466
+ additionalProperties: false
1467
+ },
1468
+ description: 'Usage data'
1469
+ },
1470
+ facets: {
1471
+ type: 'object',
1472
+ properties: {
1473
+ cluster_id: {
1474
+ type: 'array',
1475
+ items: {
1476
+ type: 'string'
1477
+ },
1478
+ description: 'List of unique cluster IDs',
1479
+ example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
1480
+ },
1481
+ product: {
1482
+ type: 'array',
1483
+ items: {
1484
+ type: 'string'
1485
+ },
1486
+ description: 'List of unique products',
1487
+ example: ['cfke_controlplane', 'cfke_connected_nodes']
1488
+ }
1489
+ },
1490
+ additionalProperties: false,
1491
+ description: 'Facets for filtering'
1492
+ }
1493
+ },
1494
+ required: ['data', 'facets'],
1495
+ additionalProperties: false
1496
+ };
1463
1497
  export const UsageSchema = {
1464
1498
  type: 'object',
1465
1499
  properties: {
@@ -1470,90 +1504,33 @@ export const UsageSchema = {
1470
1504
  },
1471
1505
  cluster_id: {
1472
1506
  type: 'string',
1473
- format: 'uuid',
1474
1507
  description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1475
1508
  example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1476
1509
  },
1477
- cluster_tier: {
1478
- type: 'string',
1479
- description: 'Tier of the cluster.',
1480
- example: 'pro',
1481
- enum: ['basic', 'pro', '']
1482
- },
1483
1510
  product: {
1484
1511
  type: 'string',
1485
1512
  description: 'The product the usage is associated with',
1486
- example: 'cfke_controlplane',
1487
- enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
1513
+ example: 'cfke_controlplane'
1488
1514
  },
1489
- node_name: {
1490
- type: 'string',
1491
- description: 'Name of the Kubernetes node',
1492
- example: 'flexible-moth-956037384'
1493
- },
1494
- sku: {
1495
- type: 'string',
1496
- description: 'SKU of the Kubernetes node',
1497
- example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
1498
- },
1499
- cpu: {
1500
- anyOf: [
1501
- {
1502
- type: 'number',
1503
- format: 'float',
1504
- description: 'CPU core count of the node',
1505
- example: 4
1506
- },
1507
- {
1508
- type: 'string',
1509
- enum: ['']
1510
- }
1511
- ]
1515
+ value: {
1516
+ type: 'number',
1517
+ format: 'float',
1518
+ description: 'Consumption',
1519
+ example: 4
1512
1520
  },
1513
1521
  price: {
1514
- anyOf: [
1515
- {
1516
- type: 'number',
1517
- format: 'float',
1518
- description: 'Price',
1519
- example: 4
1520
- },
1521
- {
1522
- type: 'string',
1523
- enum: ['']
1524
- }
1525
- ]
1526
- },
1527
- value: {
1528
- anyOf: [
1529
- {
1530
- type: 'number',
1531
- format: 'float',
1532
- description: 'Value',
1533
- example: 4
1534
- },
1535
- {
1536
- type: 'string',
1537
- enum: ['']
1538
- }
1539
- ]
1522
+ type: 'number',
1523
+ format: 'float',
1524
+ description: 'Price per unit',
1525
+ example: 0.01
1540
1526
  },
1541
1527
  total: {
1542
- anyOf: [
1543
- {
1544
- type: 'number',
1545
- format: 'float',
1546
- description: 'Total',
1547
- example: 4
1548
- },
1549
- {
1550
- type: 'string',
1551
- enum: ['']
1552
- }
1553
- ]
1528
+ type: 'number',
1529
+ format: 'float',
1530
+ description: 'Total cost'
1554
1531
  }
1555
1532
  },
1556
- required: ['cluster_id', 'cluster_tier', 'product', 'node_name', 'sku', 'cpu', 'price', 'value', 'total'],
1533
+ required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
1557
1534
  additionalProperties: false
1558
1535
  };
1559
1536
  export const UserCreateInputSchema = {