@cloudfleet/sdk 0.0.1-48f3efe → 0.0.1-523e444

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 (68) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +205 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +125 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +231 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +4 -4
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -1
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +136 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/schemas.gen.d.ts +69 -361
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +71 -375
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +92 -67
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +104 -82
  60. package/dist/sdk.gen.js.map +1 -1
  61. package/dist/services/kubernetes/api.d.ts +12 -12
  62. package/dist/types.gen.d.ts +48 -290
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1596 -2065
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +546 -707
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +5 -6
@@ -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: {
62
- type: 'string',
63
- description: 'First name of the billing contact person.',
64
- example: 'John'
65
- },
66
- last_name: {
61
+ individual_name: {
67
62
  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 = {
@@ -281,19 +268,19 @@ export const ClusterCreateInputSchema = {
281
268
  description: 'Name of the cluster.',
282
269
  example: 'production-cluster'
283
270
  },
284
- region: {
285
- type: 'string',
286
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
287
- default: 'staging',
288
- example: 'northamerica-central-1',
289
- enum: ['staging', 'northamerica-central-1']
290
- },
291
271
  tier: {
292
272
  type: 'string',
293
273
  description: 'Tier of the cluster.',
294
274
  example: 'pro',
295
275
  enum: ['basic', 'pro']
296
276
  },
277
+ region: {
278
+ type: 'string',
279
+ description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
280
+ default: 'staging',
281
+ example: 'northamerica-central-1a',
282
+ enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
283
+ },
297
284
  version_channel: {
298
285
  type: 'string',
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-]+)*))?$',
@@ -347,9 +334,14 @@ MIIC0DCCAbigAwIBAgI...`
347
334
  type: 'string',
348
335
  description: 'Containerd version of the cluster.',
349
336
  example: '1.7.19'
337
+ },
338
+ nvidia_driver: {
339
+ type: 'string',
340
+ description: 'NVIDIA driver version of the cluster.',
341
+ example: '565.0.0'
350
342
  }
351
343
  },
352
- required: ['kubernetes', 'tailscale', 'containerd'],
344
+ required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
353
345
  additionalProperties: false,
354
346
  description: 'Versions of the different components of the cluster.'
355
347
  },
@@ -391,19 +383,19 @@ export const ClusterSchema = {
391
383
  description: 'Name of the cluster.',
392
384
  example: 'production-cluster'
393
385
  },
394
- region: {
395
- type: 'string',
396
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
397
- default: 'staging',
398
- example: 'northamerica-central-1',
399
- enum: ['staging', 'northamerica-central-1']
400
- },
401
386
  tier: {
402
387
  type: 'string',
403
388
  description: 'Tier of the cluster.',
404
389
  example: 'pro',
405
390
  enum: ['basic', 'pro']
406
391
  },
392
+ region: {
393
+ type: 'string',
394
+ description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
395
+ default: 'staging',
396
+ example: 'northamerica-central-1a',
397
+ enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
398
+ },
407
399
  version_channel: {
408
400
  type: 'string',
409
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-]+)*))?$',
@@ -421,7 +413,7 @@ export const ClusterSchema = {
421
413
  type: 'string',
422
414
  description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
423
415
  example: 'active',
424
- enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
416
+ enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
425
417
  },
426
418
  endpoint: {
427
419
  anyOf: [
@@ -478,6 +470,12 @@ export const ClusterUpdateInputSchema = {
478
470
  description: 'Name of the cluster.',
479
471
  example: 'production-cluster'
480
472
  },
473
+ tier: {
474
+ type: 'string',
475
+ description: 'Tier of the cluster.',
476
+ example: 'pro',
477
+ enum: ['basic', 'pro']
478
+ },
481
479
  version_channel: {
482
480
  type: 'string',
483
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-]+)*))?$',
@@ -485,6 +483,7 @@ export const ClusterUpdateInputSchema = {
485
483
  example: '1.29.x-cfke.x'
486
484
  }
487
485
  },
486
+ required: ['tier'],
488
487
  additionalProperties: false
489
488
  };
490
489
  export const FleetCreateInputSchema = {
@@ -744,19 +743,15 @@ export const InvoiceSchema = {
744
743
  description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
745
744
  example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
746
745
  },
747
- organizationId: {
748
- type: 'string',
749
- format: 'uuid',
750
- description: 'Unique identifier of the organization. UUID v4 string in canonical form',
751
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
746
+ number: {
747
+ type: 'string'
752
748
  },
753
749
  status: {
754
750
  type: 'string',
755
751
  description: 'Status of the invoice',
756
- example: 'DRAFT',
757
- enum: ['DRAFT', 'COMMITTED', 'VOID']
752
+ example: 'paid'
758
753
  },
759
- amount: {
754
+ total: {
760
755
  type: 'number',
761
756
  format: 'float',
762
757
  description: 'Total amount of the invoice',
@@ -765,330 +760,31 @@ export const InvoiceSchema = {
765
760
  currency: {
766
761
  type: 'string',
767
762
  description: 'Currency of the invoice',
768
- example: 'USD',
769
- 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']
770
- },
771
- creditAdj: {
772
- type: 'number',
773
- format: 'float',
774
- description: 'Total amount of credit adjustments',
775
- example: 0
763
+ example: 'usd'
776
764
  },
777
- refundAdj: {
778
- type: 'number',
779
- format: 'float',
780
- description: 'Total amount of refund adjustments',
781
- example: 0
782
- },
783
- invoiceDate: {
784
- type: 'string',
785
- description: 'Date of the invoice',
786
- example: '2019-01-01T00:00:00.000Z'
787
- },
788
- targetDate: {
765
+ created: {
789
766
  type: 'string',
790
- description: 'Target date of the invoice',
791
- 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'
792
770
  },
793
- invoiceNumber: {
771
+ period_start: {
794
772
  type: 'string',
795
- description: 'Number of the invoice',
796
- example: 'INV-0001'
797
- },
798
- balance: {
799
- type: 'number',
800
- format: 'float',
801
- description: 'Balance of the invoice',
802
- 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'
803
776
  },
804
- bundleKeys: {
777
+ period_end: {
805
778
  type: 'string',
806
- description: 'Bundle keys of the invoice',
807
- example: 'bundleKey1,bundleKey2'
808
- },
809
- credits: {
810
- type: 'array',
811
- items: {
812
- type: 'object',
813
- properties: {
814
- id: {
815
- type: 'string',
816
- format: 'uuid',
817
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
818
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
819
- },
820
- linkedInvoiceItemId: {
821
- type: 'string',
822
- format: 'uuid',
823
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
824
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
825
- },
826
- productName: {
827
- type: 'string',
828
- description: 'Name of the product',
829
- example: 'Research team'
830
- },
831
- planName: {
832
- type: 'string',
833
- description: 'Name of the plan',
834
- example: 'Plan A'
835
- },
836
- phaseName: {
837
- type: 'string',
838
- description: 'Name of the phase',
839
- example: 'Phase A'
840
- },
841
- usageName: {
842
- type: 'string',
843
- description: 'Name of the usage',
844
- example: 'Usage A'
845
- },
846
- prettyProductName: {
847
- type: 'string',
848
- description: 'Pretty name of the product',
849
- example: 'Research team'
850
- },
851
- prettyPlanName: {
852
- type: 'string',
853
- description: 'Pretty name of the plan',
854
- example: 'Plan A'
855
- },
856
- prettyPhaseName: {
857
- type: 'string',
858
- description: 'Pretty name of the phase',
859
- example: 'Phase A'
860
- },
861
- prettyUsageName: {
862
- type: 'string',
863
- description: 'Pretty name of the usage',
864
- example: 'Usage A'
865
- },
866
- itemType: {
867
- type: 'string',
868
- description: 'Type of the invoice item',
869
- example: 'EXTERNAL_CHARGE',
870
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
871
- },
872
- description: {
873
- type: 'string',
874
- description: 'Description of the invoice item',
875
- example: 'Description of the invoice item'
876
- },
877
- startDate: {
878
- type: 'string',
879
- description: 'Start date of the invoice item',
880
- example: '2019-01-01T00:00:00.000Z'
881
- },
882
- endDate: {
883
- type: 'string',
884
- description: 'End date of the invoice item',
885
- example: '2019-01-01T00:00:00.000Z'
886
- },
887
- amount: {
888
- type: 'number',
889
- format: 'float',
890
- description: 'Amount of the invoice item',
891
- example: 100
892
- },
893
- rate: {
894
- type: 'number',
895
- format: 'float',
896
- description: 'Rate of the invoice item',
897
- example: 100
898
- },
899
- currency: {
900
- type: 'string',
901
- description: 'Currency of the invoice item',
902
- example: 'USD',
903
- 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']
904
- },
905
- quantity: {
906
- type: 'number',
907
- format: 'float',
908
- description: 'Quantity of the invoice item',
909
- example: 1
910
- },
911
- itemDetails: {
912
- type: 'string',
913
- description: 'Details of the invoice item',
914
- example: 'Details of the invoice item'
915
- },
916
- catalogEffectiveDate: {
917
- type: 'string',
918
- description: 'Effective date of the catalog',
919
- example: '2019-01-01T00:00:00.000Z'
920
- },
921
- childItems: {
922
- type: 'array',
923
- items: {
924
- oneOf: [
925
- {
926
- type: 'array'
927
- },
928
- {
929
- type: 'boolean'
930
- },
931
- {
932
- type: 'number'
933
- },
934
- {
935
- type: 'object',
936
- additionalProperties: true
937
- },
938
- {
939
- type: 'string'
940
- }
941
- ]
942
- },
943
- description: 'Child items of the invoice item'
944
- }
945
- },
946
- additionalProperties: false
947
- },
948
- 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'
949
782
  },
950
- items: {
951
- type: 'array',
952
- items: {
953
- type: 'object',
954
- properties: {
955
- id: {
956
- type: 'string',
957
- format: 'uuid',
958
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
959
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
960
- },
961
- linkedInvoiceItemId: {
962
- type: 'string',
963
- format: 'uuid',
964
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
965
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
966
- },
967
- productName: {
968
- type: 'string',
969
- description: 'Name of the product',
970
- example: 'Research team'
971
- },
972
- planName: {
973
- type: 'string',
974
- description: 'Name of the plan',
975
- example: 'Plan A'
976
- },
977
- phaseName: {
978
- type: 'string',
979
- description: 'Name of the phase',
980
- example: 'Phase A'
981
- },
982
- usageName: {
983
- type: 'string',
984
- description: 'Name of the usage',
985
- example: 'Usage A'
986
- },
987
- prettyProductName: {
988
- type: 'string',
989
- description: 'Pretty name of the product',
990
- example: 'Research team'
991
- },
992
- prettyPlanName: {
993
- type: 'string',
994
- description: 'Pretty name of the plan',
995
- example: 'Plan A'
996
- },
997
- prettyPhaseName: {
998
- type: 'string',
999
- description: 'Pretty name of the phase',
1000
- example: 'Phase A'
1001
- },
1002
- prettyUsageName: {
1003
- type: 'string',
1004
- description: 'Pretty name of the usage',
1005
- example: 'Usage A'
1006
- },
1007
- itemType: {
1008
- type: 'string',
1009
- description: 'Type of the invoice item',
1010
- example: 'EXTERNAL_CHARGE',
1011
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
1012
- },
1013
- description: {
1014
- type: 'string',
1015
- description: 'Description of the invoice item',
1016
- example: 'Description of the invoice item'
1017
- },
1018
- startDate: {
1019
- type: 'string',
1020
- description: 'Start date of the invoice item',
1021
- example: '2019-01-01T00:00:00.000Z'
1022
- },
1023
- endDate: {
1024
- type: 'string',
1025
- description: 'End date of the invoice item',
1026
- example: '2019-01-01T00:00:00.000Z'
1027
- },
1028
- amount: {
1029
- type: 'number',
1030
- format: 'float',
1031
- description: 'Amount of the invoice item',
1032
- example: 100
1033
- },
1034
- rate: {
1035
- type: 'number',
1036
- format: 'float',
1037
- description: 'Rate of the invoice item',
1038
- example: 100
1039
- },
1040
- currency: {
1041
- type: 'string',
1042
- description: 'Currency of the invoice item',
1043
- example: 'USD',
1044
- 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']
1045
- },
1046
- quantity: {
1047
- type: 'number',
1048
- format: 'float',
1049
- description: 'Quantity of the invoice item',
1050
- example: 1
1051
- },
1052
- itemDetails: {
1053
- type: 'string',
1054
- description: 'Details of the invoice item',
1055
- example: 'Details of the invoice item'
1056
- },
1057
- catalogEffectiveDate: {
1058
- type: 'string',
1059
- description: 'Effective date of the catalog',
1060
- example: '2019-01-01T00:00:00.000Z'
1061
- },
1062
- childItems: {
1063
- type: 'array',
1064
- items: {
1065
- oneOf: [
1066
- {
1067
- type: 'array'
1068
- },
1069
- {
1070
- type: 'boolean'
1071
- },
1072
- {
1073
- type: 'number'
1074
- },
1075
- {
1076
- type: 'object',
1077
- additionalProperties: true
1078
- },
1079
- {
1080
- type: 'string'
1081
- }
1082
- ]
1083
- },
1084
- description: 'Child items of the invoice item'
1085
- }
1086
- },
1087
- additionalProperties: false
1088
- },
1089
- description: 'Items of the invoice'
783
+ invoice_pdf: {
784
+ type: 'string'
1090
785
  }
1091
786
  },
787
+ required: ['created', 'period_start', 'period_end'],
1092
788
  additionalProperties: false
1093
789
  };
1094
790
  export const MarketplaceListingSchema = {