@cloudfleet/sdk 0.0.1-e343dde → 0.0.1-e445d54

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 (93) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1156 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1148 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +8 -7
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js +6 -4
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/{utils.js → utils.gen.js} +63 -119
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +3 -3
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +1 -3
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/{auth.js → auth.gen.js} +2 -1
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/{params.js → params.gen.js} +20 -7
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1005 -480
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +1623 -584
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +137 -20
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +226 -164
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +945 -325
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +1769 -3568
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +462 -1030
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -6
  73. package/dist/client/client.d.ts +0 -3
  74. package/dist/client/client.d.ts.map +0 -1
  75. package/dist/client/client.js +0 -146
  76. package/dist/client/client.js.map +0 -1
  77. package/dist/client/types.d.ts.map +0 -1
  78. package/dist/client/types.js +0 -2
  79. package/dist/client/types.js.map +0 -1
  80. package/dist/client/utils.d.ts.map +0 -1
  81. package/dist/client/utils.js.map +0 -1
  82. package/dist/core/auth.d.ts.map +0 -1
  83. package/dist/core/auth.js.map +0 -1
  84. package/dist/core/bodySerializer.d.ts +0 -18
  85. package/dist/core/bodySerializer.d.ts.map +0 -1
  86. package/dist/core/bodySerializer.js.map +0 -1
  87. package/dist/core/params.d.ts.map +0 -1
  88. package/dist/core/params.js.map +0 -1
  89. package/dist/core/pathSerializer.d.ts.map +0 -1
  90. package/dist/core/pathSerializer.js.map +0 -1
  91. package/dist/core/types.d.ts.map +0 -1
  92. package/dist/core/types.js +0 -2
  93. package/dist/core/types.js.map +0 -1
@@ -1,3 +1,6 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
+ };
1
4
  export type BillingContact = {
2
5
  /**
3
6
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
@@ -36,13 +39,9 @@ export type BillingContact = {
36
39
  */
37
40
  email: string;
38
41
  /**
39
- * First name of the billing contact person.
40
- */
41
- first_name: string;
42
- /**
43
- * Last name of the billing contact person.
42
+ * Name of the billing contact person.
44
43
  */
45
- last_name: string;
44
+ individual_name: string;
46
45
  /**
47
46
  * Tax ID of the organization.
48
47
  */
@@ -58,35 +57,31 @@ export type BillingCredits = {
58
57
  */
59
58
  id?: string;
60
59
  /**
61
- * Date of the credit application. ISO 8601 date string in the UTC timezone.
62
- */
63
- date_created: string;
64
- /**
65
- * Promotional code used by the customer.
60
+ * Type of the promotional code.
66
61
  */
67
- code: string;
62
+ type: 'credit' | 'discount';
68
63
  /**
69
- * Description of the promotional code.
64
+ * Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.
70
65
  */
71
- description?: string;
66
+ date_start: string;
72
67
  /**
73
- * List of product SKUs that the promotional code can be used on.
68
+ * Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.
74
69
  */
75
- products?: Array<string>;
70
+ date_end?: string;
76
71
  /**
77
- * Type of the promotional code.
72
+ * Promotional code used by the customer.
78
73
  */
79
- type: 'credit' | 'discount';
74
+ code: string;
80
75
  /**
81
- * Value of the promotional code.
76
+ * Description of the promotional code.
82
77
  */
83
- value: number;
78
+ description?: string;
84
79
  /**
85
- * Date of the billing cycle. An ISO 8601 date string in the UTC timezone.
80
+ * Total value of the promotional code.
86
81
  */
87
- billing_period: string;
82
+ value_total: number;
88
83
  /**
89
- * Value of the promotional code.
84
+ * Remaining value of the promotional code.
90
85
  */
91
86
  value_remaining?: number;
92
87
  };
@@ -174,13 +169,13 @@ export type ClusterCreateInput = {
174
169
  */
175
170
  tier: 'basic' | 'pro';
176
171
  /**
177
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
172
+ * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
178
173
  */
179
- region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
174
+ region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
180
175
  /**
181
176
  * Version of the kubernetes cluster.
182
177
  */
183
- version_channel?: string;
178
+ version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
184
179
  };
185
180
  export type ClusterJoinInformation = {
186
181
  /**
@@ -191,6 +186,10 @@ export type ClusterJoinInformation = {
191
186
  * Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.
192
187
  */
193
188
  endpoint: string;
189
+ /**
190
+ * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
191
+ */
192
+ cluster_dns: string;
194
193
  /**
195
194
  * Authentication key for the cluster.
196
195
  */
@@ -248,13 +247,9 @@ export type Cluster = {
248
247
  */
249
248
  tier: 'basic' | 'pro';
250
249
  /**
251
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
252
- */
253
- region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
254
- /**
255
- * Version of the kubernetes cluster.
250
+ * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
256
251
  */
257
- version_channel?: string;
252
+ region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
258
253
  /**
259
254
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
260
255
  */
@@ -262,7 +257,7 @@ export type Cluster = {
262
257
  /**
263
258
  * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
264
259
  */
265
- status: 'active' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
260
+ status: 'active' | 'disabled' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
266
261
  endpoint?: string | '';
267
262
  /**
268
263
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
@@ -284,6 +279,10 @@ export type Cluster = {
284
279
  * Indicates if the cluster is ready to be used.
285
280
  */
286
281
  ready?: boolean;
282
+ /**
283
+ * Version of the kubernetes cluster.
284
+ */
285
+ version_channel?: string;
287
286
  };
288
287
  export type ClusterUpdateInput = {
289
288
  /**
@@ -427,396 +426,688 @@ export type Invite = {
427
426
  };
428
427
  export type Invoice = {
429
428
  /**
430
- * Unique identifier of the invoice. UUID v4 string in canonical form
429
+ * Unique identifier of the invoice.
431
430
  */
432
431
  id?: string;
433
- /**
434
- * Unique identifier of the organization. UUID v4 string in canonical form
435
- */
436
- organizationId?: string;
432
+ number?: string;
437
433
  /**
438
434
  * Status of the invoice
439
435
  */
440
- status?: 'DRAFT' | 'COMMITTED' | 'VOID';
436
+ status?: string;
441
437
  /**
442
438
  * Total amount of the invoice
443
439
  */
444
- amount?: number;
440
+ total?: number;
445
441
  /**
446
442
  * Currency of the invoice
447
443
  */
448
- currency?: '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';
444
+ currency?: string;
445
+ /**
446
+ * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
447
+ */
448
+ created: string;
449
+ /**
450
+ * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
451
+ */
452
+ period_start: string;
453
+ /**
454
+ * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
455
+ */
456
+ period_end: string;
457
+ invoice_pdf?: string;
458
+ };
459
+ export type MarketplaceListingFiles = {
449
460
  /**
450
- * Total amount of credit adjustments
461
+ * Raw Chart.yaml content from the Helm chart
451
462
  */
452
- creditAdj?: number;
463
+ chartYaml?: string;
453
464
  /**
454
- * Total amount of refund adjustments
465
+ * Raw values.yaml content from the Helm chart
455
466
  */
456
- refundAdj?: number;
467
+ valuesYaml?: string;
457
468
  /**
458
- * Date of the invoice
469
+ * JSON schema for values.yaml as a string
459
470
  */
460
- invoiceDate?: string;
471
+ valuesSchemaJson?: string;
472
+ };
473
+ export type MarketplaceListing = {
461
474
  /**
462
- * Target date of the invoice
475
+ * Name of the chart
463
476
  */
464
- targetDate?: string;
477
+ name: string;
465
478
  /**
466
- * Number of the invoice
479
+ * Available versions of the chart
467
480
  */
468
- invoiceNumber?: string;
481
+ versions: Array<string>;
469
482
  /**
470
- * Balance of the invoice
483
+ * Version channels for the chart
471
484
  */
472
- balance?: number;
485
+ version_channels: Array<string>;
473
486
  /**
474
- * Bundle keys of the invoice
487
+ * Latest version of the chart
475
488
  */
476
- bundleKeys?: string;
489
+ latestVersion: string;
477
490
  /**
478
- * Credits of the invoice
491
+ * Chart metadata
479
492
  */
480
- credits?: Array<{
493
+ metadata?: {
481
494
  /**
482
- * Unique identifier of the invoice item. UUID v4 string in canonical form
495
+ * Chart name from metadata
483
496
  */
484
- id?: string;
497
+ name: string;
485
498
  /**
486
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
499
+ * Chart version from metadata
487
500
  */
488
- linkedInvoiceItemId?: string;
501
+ version: string;
489
502
  /**
490
- * Name of the product
503
+ * Chart description
491
504
  */
492
- productName?: string;
505
+ description?: string;
493
506
  /**
494
- * Name of the plan
507
+ * Application version
495
508
  */
496
- planName?: string;
509
+ appVersion?: string;
497
510
  /**
498
- * Name of the phase
511
+ * Helm API version
499
512
  */
500
- phaseName?: string;
513
+ apiVersion?: string;
501
514
  /**
502
- * Name of the usage
515
+ * Chart keywords
503
516
  */
504
- usageName?: string;
517
+ keywords?: Array<string>;
505
518
  /**
506
- * Pretty name of the product
519
+ * Chart home URL
507
520
  */
508
- prettyProductName?: string;
521
+ home?: string;
509
522
  /**
510
- * Pretty name of the plan
523
+ * A URL to an SVG or PNG image to be used as an icon
511
524
  */
512
- prettyPlanName?: string;
525
+ icon?: string;
513
526
  /**
514
- * Pretty name of the phase
527
+ * Chart source URLs
515
528
  */
516
- prettyPhaseName?: string;
529
+ sources?: Array<string>;
517
530
  /**
518
- * Pretty name of the usage
531
+ * Chart maintainers
519
532
  */
520
- prettyUsageName?: string;
533
+ maintainers?: Array<{
534
+ /**
535
+ * Maintainer name
536
+ */
537
+ name: string;
538
+ /**
539
+ * Maintainer email
540
+ */
541
+ email?: string;
542
+ }>;
543
+ };
544
+ };
545
+ export type OrganizationCreateInput = {
546
+ /**
547
+ * Email address used for billing as a string.
548
+ */
549
+ email: string;
550
+ /**
551
+ * First name of the billing contact person.
552
+ */
553
+ first_name: string;
554
+ /**
555
+ * Last name of the billing contact person.
556
+ */
557
+ last_name: string;
558
+ /**
559
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
560
+ */
561
+ company_name: string;
562
+ /**
563
+ * 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.
564
+ */
565
+ password: string;
566
+ };
567
+ export type Organization = {
568
+ /**
569
+ * Unique identifier of the organization. UUID v4 string in canonical form
570
+ */
571
+ id: string;
572
+ /**
573
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
574
+ */
575
+ name?: string;
576
+ /**
577
+ * Creation date of the organization. ISO 8601 date string in UTC timezone
578
+ */
579
+ date_created: string;
580
+ /**
581
+ * For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.
582
+ */
583
+ quota: {
521
584
  /**
522
- * Type of the invoice item
585
+ * Maximum number of Basic clusters that can be created.
523
586
  */
524
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
587
+ basic_clusters_max: number;
525
588
  /**
526
- * Description of the invoice item
589
+ * Available number of Basic clusters that can be created.
527
590
  */
528
- description?: string;
591
+ basic_clusters_available: number;
529
592
  /**
530
- * Start date of the invoice item
593
+ * Maximum number of Pro clusters that can be created.
531
594
  */
532
- startDate?: string;
595
+ pro_clusters_max: number;
533
596
  /**
534
- * End date of the invoice item
597
+ * Available number of Pro clusters that can be created.
535
598
  */
536
- endDate?: string;
599
+ pro_clusters_available: number;
537
600
  /**
538
- * Amount of the invoice item
601
+ * Maximum number of fleets that can be created per cluster.
539
602
  */
540
- amount?: number;
603
+ fleets_max: number;
541
604
  /**
542
- * Rate of the invoice item
605
+ * List of Cloudfleet cluster tiers available for the organization.
543
606
  */
544
- rate?: number;
607
+ cluster_tiers: Array<string>;
545
608
  /**
546
- * Currency of the invoice item
609
+ * List of Cloudfleet control plane regions available for the organization.
547
610
  */
548
- currency?: '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';
611
+ regions: Array<string>;
549
612
  /**
550
- * Quantity of the invoice item
613
+ * List of CFKE control plane versions available for the organization.
551
614
  */
552
- quantity?: number;
615
+ versions: Array<{
616
+ /**
617
+ * Id of the control plane version. Used in API calls.
618
+ */
619
+ id: string;
620
+ /**
621
+ * Label of the control plane version. Used in frontent UI.
622
+ */
623
+ label: string;
624
+ }>;
553
625
  /**
554
- * Details of the invoice item
626
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
555
627
  */
556
- itemDetails?: string;
628
+ cfcr_storage_gb: number;
629
+ };
630
+ /**
631
+ * Status of the organization. Can be `active` or `closed`, or `suspended`.
632
+ */
633
+ status: 'active' | 'closed' | 'suspended';
634
+ };
635
+ export type PaymentMethod = {
636
+ /**
637
+ * Unique identifier of the organization. UUID v4 string in canonical form.
638
+ */
639
+ id: string;
640
+ /**
641
+ * Whether organization payment method was set up and ready to use for payments.
642
+ */
643
+ setup: boolean;
644
+ /**
645
+ * Payment method type type. Only `card` payments supported at the moment.
646
+ */
647
+ type: 'card';
648
+ /**
649
+ * Last 4 digits of the payment card number.
650
+ */
651
+ last4: string;
652
+ /**
653
+ * Two-digit number representing the card's expiration month.
654
+ */
655
+ exp_month: number;
656
+ /**
657
+ * Four-digit number representing the card's expiration year.
658
+ */
659
+ exp_year: number;
660
+ /**
661
+ * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
662
+ */
663
+ brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
664
+ };
665
+ export type PlatformQuota = {
666
+ /**
667
+ * Maximum number of Basic clusters that can be created.
668
+ */
669
+ basic_clusters_max: number;
670
+ /**
671
+ * Available number of Basic clusters that can be created.
672
+ */
673
+ basic_clusters_available: number;
674
+ /**
675
+ * Maximum number of Pro clusters that can be created.
676
+ */
677
+ pro_clusters_max: number;
678
+ /**
679
+ * Available number of Pro clusters that can be created.
680
+ */
681
+ pro_clusters_available: number;
682
+ /**
683
+ * Maximum number of fleets that can be created per cluster.
684
+ */
685
+ fleets_max: number;
686
+ /**
687
+ * List of Cloudfleet cluster tiers available for the organization.
688
+ */
689
+ cluster_tiers: Array<string>;
690
+ /**
691
+ * List of Cloudfleet control plane regions available for the organization.
692
+ */
693
+ regions: Array<string>;
694
+ /**
695
+ * List of CFKE control plane versions available for the organization.
696
+ */
697
+ versions: Array<{
557
698
  /**
558
- * Effective date of the catalog
699
+ * Id of the control plane version. Used in API calls.
559
700
  */
560
- catalogEffectiveDate?: string;
701
+ id: string;
561
702
  /**
562
- * Child items of the invoice item
703
+ * Label of the control plane version. Used in frontent UI.
563
704
  */
564
- childItems?: Array<Array<unknown> | boolean | number | {
565
- [key: string]: unknown;
566
- } | string>;
705
+ label: string;
567
706
  }>;
568
707
  /**
569
- * Items of the invoice
708
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
570
709
  */
571
- items?: Array<{
572
- /**
573
- * Unique identifier of the invoice item. UUID v4 string in canonical form
574
- */
575
- id?: string;
576
- /**
577
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
578
- */
579
- linkedInvoiceItemId?: string;
710
+ cfcr_storage_gb: number;
711
+ };
712
+ export type RegistryRepository = {
713
+ /**
714
+ * Repository name.
715
+ */
716
+ name: string;
717
+ /**
718
+ * Registry region.
719
+ */
720
+ region: string;
721
+ /**
722
+ * Full URI of the repository.
723
+ */
724
+ uri: string;
725
+ };
726
+ export type RegistryRepositoryWithTags = {
727
+ /**
728
+ * Repository name.
729
+ */
730
+ name: string;
731
+ /**
732
+ * Registry region.
733
+ */
734
+ region: string;
735
+ /**
736
+ * Full URI of the repository.
737
+ */
738
+ uri: string;
739
+ /**
740
+ * Array of tags in the repository.
741
+ */
742
+ tags: Array<{
580
743
  /**
581
- * Name of the product
744
+ * Tag name.
582
745
  */
583
- productName?: string;
746
+ name: string;
584
747
  /**
585
- * Name of the plan
748
+ * Size of the tag in bytes.
586
749
  */
587
- planName?: string;
750
+ size: number;
588
751
  /**
589
- * Name of the phase
752
+ * Media type of the manifest.
590
753
  */
591
- phaseName?: string;
754
+ mediaType?: string;
592
755
  /**
593
- * Name of the usage
756
+ * Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).
594
757
  */
595
- usageName?: string;
758
+ platforms?: Array<string>;
759
+ }>;
760
+ /**
761
+ * Total size of all tags in the repository in bytes.
762
+ */
763
+ totalSize: number;
764
+ };
765
+ export type RegistryTag = {
766
+ /**
767
+ * Tag name.
768
+ */
769
+ name: string;
770
+ /**
771
+ * Manifest digest for pulling by digest.
772
+ */
773
+ digest: string;
774
+ /**
775
+ * Media type of the manifest.
776
+ */
777
+ mediaType?: string;
778
+ /**
779
+ * Manifest config metadata.
780
+ */
781
+ config?: {
596
782
  /**
597
- * Pretty name of the product
783
+ * Size of the config in bytes.
598
784
  */
599
- prettyProductName?: string;
785
+ size: number;
786
+ };
787
+ /**
788
+ * Array of layer metadata.
789
+ */
790
+ layers?: Array<{
600
791
  /**
601
- * Pretty name of the plan
792
+ * Digest of the layer.
602
793
  */
603
- prettyPlanName?: string;
794
+ digest?: string;
604
795
  /**
605
- * Pretty name of the phase
796
+ * Size of the layer in bytes.
606
797
  */
607
- prettyPhaseName?: string;
798
+ size: number;
799
+ }>;
800
+ /**
801
+ * Array of manifests for multi-arch images.
802
+ */
803
+ manifests?: Array<{
608
804
  /**
609
- * Pretty name of the usage
805
+ * Digest of the manifest.
610
806
  */
611
- prettyUsageName?: string;
807
+ digest: string;
612
808
  /**
613
- * Type of the invoice item
809
+ * Platform information for the manifest.
614
810
  */
615
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
811
+ platform?: {
812
+ /**
813
+ * Architecture of the platform.
814
+ */
815
+ architecture: string;
816
+ /**
817
+ * Operating system of the platform.
818
+ */
819
+ os: string;
820
+ /**
821
+ * Variant of the platform (e.g., v7, v8 for ARM).
822
+ */
823
+ variant?: string;
824
+ };
616
825
  /**
617
- * Description of the invoice item
826
+ * Layers for this platform.
618
827
  */
619
- description?: string;
828
+ layers?: Array<{
829
+ /**
830
+ * Digest of the layer.
831
+ */
832
+ digest?: string;
833
+ /**
834
+ * Size of the layer in bytes.
835
+ */
836
+ size: number;
837
+ }>;
620
838
  /**
621
- * Start date of the invoice item
839
+ * Total size of this platform manifest in bytes.
622
840
  */
623
- startDate?: string;
841
+ size?: number;
842
+ }>;
843
+ /**
844
+ * Total size of the tag in bytes.
845
+ */
846
+ size: number;
847
+ /**
848
+ * Registry region.
849
+ */
850
+ region: string;
851
+ /**
852
+ * Repository name.
853
+ */
854
+ repository: string;
855
+ /**
856
+ * Full URI of the tag.
857
+ */
858
+ uri: string;
859
+ };
860
+ export type TicketAttachment = {
861
+ /**
862
+ * Unique identifier of the attachment (Mongo ObjectId).
863
+ */
864
+ id: string;
865
+ /**
866
+ * Original filename as uploaded.
867
+ */
868
+ filename: string;
869
+ /**
870
+ * MIME content type of the attachment.
871
+ */
872
+ content_type: string;
873
+ /**
874
+ * Size of the attachment in bytes.
875
+ */
876
+ size: number;
877
+ };
878
+ export type TicketCreateInput = {
879
+ /**
880
+ * Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.
881
+ */
882
+ category: 'billing' | 'technical' | 'general';
883
+ /**
884
+ * Initial message body in markdown. There is no separate subject — the first message body is the description.
885
+ */
886
+ body: string;
887
+ /**
888
+ * Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).
889
+ */
890
+ properties?: {
891
+ [key: string]: unknown;
892
+ };
893
+ };
894
+ export type TicketListResponse = {
895
+ /**
896
+ * Tickets for the organization, ordered newest first. Messages are omitted from list responses.
897
+ */
898
+ items: Array<{
624
899
  /**
625
- * End date of the invoice item
900
+ * Unique identifier of the ticket (Mongo ObjectId).
626
901
  */
627
- endDate?: string;
902
+ id: string;
628
903
  /**
629
- * Amount of the invoice item
904
+ * Current state of the ticket.
630
905
  */
631
- amount?: number;
906
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
632
907
  /**
633
- * Rate of the invoice item
908
+ * Ticket category.
634
909
  */
635
- rate?: number;
910
+ category: 'billing' | 'technical' | 'general';
636
911
  /**
637
- * Currency of the invoice item
912
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
638
913
  */
639
- currency?: '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';
914
+ summary: string;
640
915
  /**
641
- * Quantity of the invoice item
916
+ * Closure timestamp. Null while the ticket is open.
642
917
  */
643
- quantity?: number;
918
+ closed_at?: string;
644
919
  /**
645
- * Details of the invoice item
920
+ * Creation date of the ticket. ISO 8601 UTC.
646
921
  */
647
- itemDetails?: string;
922
+ date_created: string;
648
923
  /**
649
- * Effective date of the catalog
924
+ * Last update date of the ticket. ISO 8601 UTC.
650
925
  */
651
- catalogEffectiveDate?: string;
926
+ date_updated: string;
652
927
  /**
653
- * Child items of the invoice item
928
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
654
929
  */
655
- childItems?: Array<Array<unknown> | boolean | number | {
656
- [key: string]: unknown;
657
- } | string>;
930
+ messages?: Array<{
931
+ /**
932
+ * Unique identifier of the message (Mongo ObjectId).
933
+ */
934
+ id: string;
935
+ /**
936
+ * Message type. Internal notes are filtered out of customer-facing responses.
937
+ */
938
+ type: 'customer_reply' | 'agent_reply';
939
+ /**
940
+ * Message body in markdown.
941
+ */
942
+ body: string;
943
+ /**
944
+ * First name of the author. Null when not provided.
945
+ */
946
+ author_first_name?: string;
947
+ /**
948
+ * Last name of the author. Null when not provided.
949
+ */
950
+ author_last_name?: string;
951
+ /**
952
+ * Attachments associated with this message.
953
+ */
954
+ attachments?: Array<{
955
+ /**
956
+ * Unique identifier of the attachment (Mongo ObjectId).
957
+ */
958
+ id: string;
959
+ /**
960
+ * Original filename as uploaded.
961
+ */
962
+ filename: string;
963
+ /**
964
+ * MIME content type of the attachment.
965
+ */
966
+ content_type: string;
967
+ /**
968
+ * Size of the attachment in bytes.
969
+ */
970
+ size: number;
971
+ }>;
972
+ /**
973
+ * Creation date of the message. ISO 8601 UTC.
974
+ */
975
+ date_created: string;
976
+ }>;
658
977
  }>;
659
978
  };
660
- export type MarketplaceListing = {
979
+ export type TicketMessageInput = {
661
980
  /**
662
- * Id of the chart listing
981
+ * Reply body in markdown.
663
982
  */
664
- id: string;
983
+ body: string;
984
+ };
985
+ export type TicketMessage = {
665
986
  /**
666
- * Name of the chart listing
987
+ * Unique identifier of the message (Mongo ObjectId).
667
988
  */
668
- name: string;
989
+ id: string;
669
990
  /**
670
- * Author of the chart listing
991
+ * Message type. Internal notes are filtered out of customer-facing responses.
671
992
  */
672
- developer: string;
993
+ type: 'customer_reply' | 'agent_reply';
673
994
  /**
674
- * Short description of the chart listing
995
+ * Message body in markdown.
675
996
  */
676
- description: string;
997
+ body: string;
677
998
  /**
678
- * Logo of the chart listing
999
+ * First name of the author. Null when not provided.
679
1000
  */
680
- logoUrl: string;
1001
+ author_first_name?: string;
681
1002
  /**
682
- * Long description of the chart listing
1003
+ * Last name of the author. Null when not provided.
683
1004
  */
684
- longDescription: string;
1005
+ author_last_name?: string;
685
1006
  /**
686
- * Tags of the chart
1007
+ * Attachments associated with this message.
687
1008
  */
688
- categories: Array<string>;
689
- version_channels: Array<string>;
690
- value_schemas: Array<{
1009
+ attachments?: Array<{
691
1010
  /**
692
- * Version of the chart.
1011
+ * Unique identifier of the attachment (Mongo ObjectId).
693
1012
  */
694
- version: string;
1013
+ id: string;
695
1014
  /**
696
- * Schema of the chart values. JSON Schema as string
1015
+ * Original filename as uploaded.
697
1016
  */
698
- schema: string;
1017
+ filename: string;
699
1018
  /**
700
- * Schema of the chart values
1019
+ * MIME content type of the attachment.
701
1020
  */
702
- placeholder: string;
1021
+ content_type: string;
1022
+ /**
1023
+ * Size of the attachment in bytes.
1024
+ */
1025
+ size: number;
703
1026
  }>;
704
- };
705
- export type OrganizationCreateInput = {
706
1027
  /**
707
- * Email address used for billing as a string.
1028
+ * Creation date of the message. ISO 8601 UTC.
708
1029
  */
709
- email: string;
1030
+ date_created: string;
1031
+ };
1032
+ export type Ticket = {
710
1033
  /**
711
- * First name of the billing contact person.
1034
+ * Unique identifier of the ticket (Mongo ObjectId).
712
1035
  */
713
- first_name: string;
1036
+ id: string;
714
1037
  /**
715
- * Last name of the billing contact person.
1038
+ * Current state of the ticket.
716
1039
  */
717
- last_name: string;
1040
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
718
1041
  /**
719
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
1042
+ * Ticket category.
720
1043
  */
721
- company_name: string;
1044
+ category: 'billing' | 'technical' | 'general';
722
1045
  /**
723
- * 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.
1046
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
724
1047
  */
725
- password: string;
726
- };
727
- export type Organization = {
1048
+ summary: string;
728
1049
  /**
729
- * Unique identifier of the organization. UUID v4 string in canonical form
1050
+ * Closure timestamp. Null while the ticket is open.
730
1051
  */
731
- id: string;
1052
+ closed_at?: string;
732
1053
  /**
733
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
1054
+ * Creation date of the ticket. ISO 8601 UTC.
734
1055
  */
735
- name?: string;
1056
+ date_created: string;
736
1057
  /**
737
- * Creation date of the organization. ISO 8601 date string in UTC timezone
1058
+ * Last update date of the ticket. ISO 8601 UTC.
738
1059
  */
739
- date_created: string;
1060
+ date_updated: string;
740
1061
  /**
741
- * For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.
1062
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
742
1063
  */
743
- quota: {
744
- /**
745
- * Maximum number of Basic clusters that can be created.
746
- */
747
- basic_clusters_max: number;
1064
+ messages?: Array<{
748
1065
  /**
749
- * Available number of Basic clusters that can be created.
1066
+ * Unique identifier of the message (Mongo ObjectId).
750
1067
  */
751
- basic_clusters_available: number;
1068
+ id: string;
752
1069
  /**
753
- * Maximum number of Pro clusters that can be created.
1070
+ * Message type. Internal notes are filtered out of customer-facing responses.
754
1071
  */
755
- pro_clusters_max: number;
1072
+ type: 'customer_reply' | 'agent_reply';
756
1073
  /**
757
- * Available number of Pro clusters that can be created.
1074
+ * Message body in markdown.
758
1075
  */
759
- pro_clusters_available: number;
1076
+ body: string;
760
1077
  /**
761
- * Maximum number of fleets that can be created per cluster.
1078
+ * First name of the author. Null when not provided.
762
1079
  */
763
- fleets_max: number;
1080
+ author_first_name?: string;
764
1081
  /**
765
- * List of Cloudfleet cluster tiers available for the organization.
1082
+ * Last name of the author. Null when not provided.
766
1083
  */
767
- cluster_tiers: Array<string>;
1084
+ author_last_name?: string;
768
1085
  /**
769
- * List of Cloudfleet control plane regions available for the organization.
1086
+ * Attachments associated with this message.
770
1087
  */
771
- regions: Array<string>;
772
- /**
773
- * List of CFKE control plane versions available for the organization.
774
- */
775
- versions: Array<{
1088
+ attachments?: Array<{
776
1089
  /**
777
- * Id of the control plane version. Used in API calls.
1090
+ * Unique identifier of the attachment (Mongo ObjectId).
778
1091
  */
779
1092
  id: string;
780
1093
  /**
781
- * Label of the control plane version. Used in frontent UI.
1094
+ * Original filename as uploaded.
782
1095
  */
783
- label: string;
784
- }>;
785
- };
786
- /**
787
- * Status of the organization. Can be `active` or `closed`, or `suspended`.
788
- */
789
- status: 'active' | 'closed' | 'suspended';
790
- };
791
- export type PaymentMethod = {
792
- /**
793
- * Unique identifier of the organization. UUID v4 string in canonical form.
794
- */
795
- id: string;
796
- /**
797
- * Whether organization payment method was set up and ready to use for payments.
798
- */
799
- setup: boolean;
800
- /**
801
- * Payment method type type. Only `card` payments supported at the moment.
802
- */
803
- type: 'card';
804
- /**
805
- * Last 4 digits of the payment card number.
806
- */
807
- last4: string;
808
- /**
809
- * Two-digit number representing the card's expiration month.
810
- */
811
- exp_month: number;
812
- /**
813
- * Four-digit number representing the card's expiration year.
814
- */
815
- exp_year: number;
816
- /**
817
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
818
- */
819
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
1096
+ filename: string;
1097
+ /**
1098
+ * MIME content type of the attachment.
1099
+ */
1100
+ content_type: string;
1101
+ /**
1102
+ * Size of the attachment in bytes.
1103
+ */
1104
+ size: number;
1105
+ }>;
1106
+ /**
1107
+ * Creation date of the message. ISO 8601 UTC.
1108
+ */
1109
+ date_created: string;
1110
+ }>;
820
1111
  };
821
1112
  export type TokenCreateInput = {
822
1113
  /**
@@ -860,35 +1151,85 @@ export type TokenUpdateInput = {
860
1151
  */
861
1152
  role?: 'Administrator' | 'User';
862
1153
  };
1154
+ export type UsageFacets = {
1155
+ /**
1156
+ * List of unique cluster IDs
1157
+ */
1158
+ cluster_id?: Array<string>;
1159
+ /**
1160
+ * List of unique products
1161
+ */
1162
+ product?: Array<string>;
1163
+ };
1164
+ export type UsageResponse = {
1165
+ /**
1166
+ * Usage data
1167
+ */
1168
+ data: Array<{
1169
+ /**
1170
+ * Hour of the usage
1171
+ */
1172
+ hour: string;
1173
+ /**
1174
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1175
+ */
1176
+ cluster_id: string;
1177
+ /**
1178
+ * The product the usage is associated with
1179
+ */
1180
+ product: string;
1181
+ /**
1182
+ * Consumption
1183
+ */
1184
+ value: number;
1185
+ /**
1186
+ * Price per unit
1187
+ */
1188
+ price: number;
1189
+ /**
1190
+ * Total cost
1191
+ */
1192
+ total: number;
1193
+ }>;
1194
+ /**
1195
+ * Facets for filtering
1196
+ */
1197
+ facets: {
1198
+ /**
1199
+ * List of unique cluster IDs
1200
+ */
1201
+ cluster_id?: Array<string>;
1202
+ /**
1203
+ * List of unique products
1204
+ */
1205
+ product?: Array<string>;
1206
+ };
1207
+ };
863
1208
  export type Usage = {
864
1209
  /**
865
1210
  * Hour of the usage
866
1211
  */
867
- hour?: string;
1212
+ hour: string;
868
1213
  /**
869
1214
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
870
1215
  */
871
1216
  cluster_id: string;
872
1217
  /**
873
- * Tier of the cluster.
1218
+ * The product the usage is associated with
874
1219
  */
875
- cluster_tier: 'basic' | 'pro' | '';
1220
+ product: string;
876
1221
  /**
877
- * The product the usage is associated with
1222
+ * Consumption
878
1223
  */
879
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
1224
+ value: number;
880
1225
  /**
881
- * Name of the Kubernetes node
1226
+ * Price per unit
882
1227
  */
883
- node_name: string;
1228
+ price: number;
884
1229
  /**
885
- * SKU of the Kubernetes node
1230
+ * Total cost
886
1231
  */
887
- sku: string;
888
- cpu: number | '';
889
- price: number | '';
890
- value: number | '';
891
- total: number | '';
1232
+ total: number;
892
1233
  };
893
1234
  export type UserCreateInput = {
894
1235
  /**
@@ -975,7 +1316,12 @@ export type UserUpdateInput = {
975
1316
  export type GetUsageData = {
976
1317
  body?: never;
977
1318
  path?: never;
978
- query?: never;
1319
+ query?: {
1320
+ /**
1321
+ * Time granularity for usage aggregation - hourly (Past 48 hours aggregated by hour), daily (Past 30 days aggregated by day), monthly (Past 12 months aggregated by month)
1322
+ */
1323
+ granularity?: 'hourly' | 'daily' | 'monthly';
1324
+ };
979
1325
  url: '/billing/usage';
980
1326
  };
981
1327
  export type GetUsageErrors = {
@@ -986,24 +1332,11 @@ export type GetUsageErrors = {
986
1332
  };
987
1333
  export type GetUsageResponses = {
988
1334
  /**
989
- * An array of usage records.
1335
+ * Usage data with facets for filtering
990
1336
  */
991
- 200: Array<Usage>;
1337
+ 200: UsageResponse;
992
1338
  };
993
1339
  export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
994
- export type GetBalanceData = {
995
- body?: never;
996
- path?: never;
997
- query?: never;
998
- url: '/billing/balance';
999
- };
1000
- export type GetBalanceResponses = {
1001
- /**
1002
- * Current balance of the organization in USD as a floating-point number.
1003
- */
1004
- 200: number;
1005
- };
1006
- export type GetBalanceResponse = GetBalanceResponses[keyof GetBalanceResponses];
1007
1340
  export type GetPaymentMethodData = {
1008
1341
  body?: never;
1009
1342
  path?: never;
@@ -1045,16 +1378,7 @@ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[key
1045
1378
  export type ListInvoicesData = {
1046
1379
  body?: never;
1047
1380
  path?: never;
1048
- query: {
1049
- /**
1050
- * Start date for the usage. Date of oldest data point to retrieve.
1051
- */
1052
- start_date: string;
1053
- /**
1054
- * End date for the usage. Date of newest data point to retrieve.
1055
- */
1056
- end_date: string;
1057
- };
1381
+ query?: never;
1058
1382
  url: '/billing/invoices';
1059
1383
  };
1060
1384
  export type ListInvoicesErrors = {
@@ -1070,26 +1394,6 @@ export type ListInvoicesResponses = {
1070
1394
  200: Array<Invoice>;
1071
1395
  };
1072
1396
  export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1073
- export type GetInvoiceData = {
1074
- body?: never;
1075
- path: {
1076
- /**
1077
- * Unique invoice identifier. UUID v4 string in canonical form
1078
- */
1079
- id: string;
1080
- };
1081
- query?: never;
1082
- url: '/billing/invoices/{id}';
1083
- };
1084
- export type GetInvoiceResponses = {
1085
- /**
1086
- * Returns a single Invoice HTML representation under `html` property.
1087
- */
1088
- 200: {
1089
- html?: string;
1090
- };
1091
- };
1092
- export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
1093
1397
  export type GetContactData = {
1094
1398
  body?: never;
1095
1399
  path?: never;
@@ -1504,6 +1808,30 @@ export type UpdateClusterResponses = {
1504
1808
  200: Cluster;
1505
1809
  };
1506
1810
  export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1811
+ export type GetClusterCaData = {
1812
+ body?: never;
1813
+ path: {
1814
+ /**
1815
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1816
+ */
1817
+ cluster_id: string;
1818
+ };
1819
+ query?: never;
1820
+ url: '/clusters/{cluster_id}/ca';
1821
+ };
1822
+ export type GetClusterCaErrors = {
1823
+ /**
1824
+ * Cluster not found, or its certificate authority is not available yet.
1825
+ */
1826
+ 404: unknown;
1827
+ };
1828
+ export type GetClusterCaResponses = {
1829
+ /**
1830
+ * PEM-encoded certificate authority of the cluster.
1831
+ */
1832
+ 200: string;
1833
+ };
1834
+ export type GetClusterCaResponse = GetClusterCaResponses[keyof GetClusterCaResponses];
1507
1835
  export type GetJoinInformationData = {
1508
1836
  body?: never;
1509
1837
  path: {
@@ -1619,24 +1947,76 @@ export type ListMarketplaceChartsResponses = {
1619
1947
  200: Array<MarketplaceListing>;
1620
1948
  };
1621
1949
  export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1622
- export type GetMarketplaceChartData = {
1950
+ export type GetMarketplaceChartFilesData = {
1623
1951
  body?: never;
1624
1952
  path: {
1625
1953
  /**
1626
- * Unique identifier of the chart listing in the marketplace.
1954
+ * Name of the chart in the marketplace.
1955
+ */
1956
+ chart_name: string;
1957
+ /**
1958
+ * Version channel pattern to match (e.g., "1.31.x-cfke.x" for latest 1.31 patch, "1.x.x-cfke.x" for latest 1.x minor).
1959
+ */
1960
+ version_channel: string;
1961
+ };
1962
+ query?: never;
1963
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1964
+ };
1965
+ export type GetMarketplaceChartFilesErrors = {
1966
+ /**
1967
+ * Chart not found or no version matches the channel
1968
+ */
1969
+ 404: unknown;
1970
+ };
1971
+ export type GetMarketplaceChartFilesResponses = {
1972
+ /**
1973
+ * Returns an object containing the chart files for the latest matching version.
1974
+ */
1975
+ 200: MarketplaceListingFiles;
1976
+ };
1977
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1978
+ export type PostMcpData = {
1979
+ /**
1980
+ * JSON-RPC 2.0 request payload
1981
+ */
1982
+ body: {
1983
+ jsonrpc?: string;
1984
+ method?: string;
1985
+ id?: string | number;
1986
+ /**
1987
+ * Method-specific parameters
1627
1988
  */
1628
- listing_id: string;
1989
+ params?: {
1990
+ [key: string]: unknown;
1991
+ };
1629
1992
  };
1993
+ path?: never;
1630
1994
  query?: never;
1631
- url: '/marketplace/{listing_id}';
1995
+ url: '/mcp';
1996
+ };
1997
+ export type PostMcpErrors = {
1998
+ /**
1999
+ * Not authenticated
2000
+ */
2001
+ 401: unknown;
1632
2002
  };
1633
- export type GetMarketplaceChartResponses = {
2003
+ export type PostMcpResponses = {
1634
2004
  /**
1635
- * Returns an object containing the chart listing details.
2005
+ * JSON-RPC 2.0 success or error response
1636
2006
  */
1637
- 200: MarketplaceListing;
2007
+ 200: {
2008
+ jsonrpc?: string;
2009
+ id?: string | number;
2010
+ result?: {
2011
+ [key: string]: unknown;
2012
+ };
2013
+ error?: {
2014
+ code?: number;
2015
+ message?: string;
2016
+ };
2017
+ };
1638
2018
  };
1639
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
2019
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1640
2020
  export type GetOrganizationData = {
1641
2021
  body?: never;
1642
2022
  path?: never;
@@ -1662,6 +2042,249 @@ export type CreateOrganizationResponses = {
1662
2042
  */
1663
2043
  200: unknown;
1664
2044
  };
2045
+ export type ListRepositoriesData = {
2046
+ body?: never;
2047
+ path?: never;
2048
+ query?: never;
2049
+ url: '/registry';
2050
+ };
2051
+ export type ListRepositoriesErrors = {
2052
+ /**
2053
+ * Not authenticated
2054
+ */
2055
+ 401: unknown;
2056
+ /**
2057
+ * Internal server error
2058
+ */
2059
+ 500: unknown;
2060
+ };
2061
+ export type ListRepositoriesResponses = {
2062
+ /**
2063
+ * List of repositories
2064
+ */
2065
+ 200: Array<RegistryRepository>;
2066
+ };
2067
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2068
+ export type ListTagsData = {
2069
+ body?: never;
2070
+ path: {
2071
+ /**
2072
+ * Region where the repository is located
2073
+ */
2074
+ region: string;
2075
+ /**
2076
+ * Name of the repository
2077
+ */
2078
+ repository: string;
2079
+ };
2080
+ query?: never;
2081
+ url: '/registry/{region}/{repository}';
2082
+ };
2083
+ export type ListTagsErrors = {
2084
+ /**
2085
+ * Not authenticated
2086
+ */
2087
+ 401: unknown;
2088
+ /**
2089
+ * Repository not found
2090
+ */
2091
+ 404: unknown;
2092
+ /**
2093
+ * Internal server error
2094
+ */
2095
+ 500: unknown;
2096
+ };
2097
+ export type ListTagsResponses = {
2098
+ /**
2099
+ * Repository with tags
2100
+ */
2101
+ 200: RegistryRepositoryWithTags;
2102
+ };
2103
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2104
+ export type DeleteTagData = {
2105
+ body?: never;
2106
+ path: {
2107
+ /**
2108
+ * Region where the repository is located
2109
+ */
2110
+ region: string;
2111
+ /**
2112
+ * Name of the repository
2113
+ */
2114
+ repository: string;
2115
+ /**
2116
+ * Name of the tag
2117
+ */
2118
+ tag: string;
2119
+ };
2120
+ query?: never;
2121
+ url: '/registry/{region}/{repository}/{tag}';
2122
+ };
2123
+ export type DeleteTagErrors = {
2124
+ /**
2125
+ * Not authenticated
2126
+ */
2127
+ 401: unknown;
2128
+ /**
2129
+ * Tag not found
2130
+ */
2131
+ 404: unknown;
2132
+ /**
2133
+ * Internal server error
2134
+ */
2135
+ 500: unknown;
2136
+ };
2137
+ export type DeleteTagResponses = {
2138
+ /**
2139
+ * Tag successfully deleted
2140
+ */
2141
+ 200: unknown;
2142
+ };
2143
+ export type GetTagData = {
2144
+ body?: never;
2145
+ path: {
2146
+ /**
2147
+ * Region where the repository is located
2148
+ */
2149
+ region: string;
2150
+ /**
2151
+ * Name of the repository
2152
+ */
2153
+ repository: string;
2154
+ /**
2155
+ * Name of the tag
2156
+ */
2157
+ tag: string;
2158
+ };
2159
+ query?: never;
2160
+ url: '/registry/{region}/{repository}/{tag}';
2161
+ };
2162
+ export type GetTagErrors = {
2163
+ /**
2164
+ * Not authenticated
2165
+ */
2166
+ 401: unknown;
2167
+ /**
2168
+ * Tag not found
2169
+ */
2170
+ 404: unknown;
2171
+ /**
2172
+ * Internal server error
2173
+ */
2174
+ 500: unknown;
2175
+ };
2176
+ export type GetTagResponses = {
2177
+ /**
2178
+ * Tag details
2179
+ */
2180
+ 200: RegistryTag;
2181
+ };
2182
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2183
+ export type ListTicketsData = {
2184
+ body?: never;
2185
+ path?: never;
2186
+ query?: never;
2187
+ url: '/tickets';
2188
+ };
2189
+ export type ListTicketsResponses = {
2190
+ /**
2191
+ * Tickets for the organization.
2192
+ */
2193
+ 200: TicketListResponse;
2194
+ };
2195
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
2196
+ export type CreateTicketData = {
2197
+ body: {
2198
+ /**
2199
+ * JSON-encoded TicketCreateInput.
2200
+ */
2201
+ payload?: string;
2202
+ attachments?: Array<Blob | File>;
2203
+ };
2204
+ path?: never;
2205
+ query?: never;
2206
+ url: '/tickets';
2207
+ };
2208
+ export type CreateTicketResponses = {
2209
+ /**
2210
+ * Ticket created.
2211
+ */
2212
+ 200: Ticket;
2213
+ };
2214
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
2215
+ export type CloseTicketData = {
2216
+ body?: never;
2217
+ path: {
2218
+ ticket_id: string;
2219
+ };
2220
+ query?: never;
2221
+ url: '/tickets/{ticket_id}';
2222
+ };
2223
+ export type CloseTicketResponses = {
2224
+ /**
2225
+ * Ticket closed.
2226
+ */
2227
+ 200: Ticket;
2228
+ };
2229
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
2230
+ export type GetTicketData = {
2231
+ body?: never;
2232
+ path: {
2233
+ ticket_id: string;
2234
+ };
2235
+ query?: never;
2236
+ url: '/tickets/{ticket_id}';
2237
+ };
2238
+ export type GetTicketResponses = {
2239
+ /**
2240
+ * Ticket with messages (internal notes excluded).
2241
+ */
2242
+ 200: Ticket;
2243
+ };
2244
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2245
+ export type ReplyTicketData = {
2246
+ body: {
2247
+ /**
2248
+ * JSON-encoded TicketMessageInput.
2249
+ */
2250
+ payload?: string;
2251
+ attachments?: Array<Blob | File>;
2252
+ };
2253
+ path: {
2254
+ ticket_id: string;
2255
+ };
2256
+ query?: never;
2257
+ url: '/tickets/{ticket_id}/messages';
2258
+ };
2259
+ export type ReplyTicketErrors = {
2260
+ /**
2261
+ * Ticket is closed. Open a new ticket instead.
2262
+ */
2263
+ 409: unknown;
2264
+ };
2265
+ export type ReplyTicketResponses = {
2266
+ /**
2267
+ * Reply appended.
2268
+ */
2269
+ 200: TicketMessage;
2270
+ };
2271
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2272
+ export type GetTicketAttachmentData = {
2273
+ body?: never;
2274
+ path: {
2275
+ ticket_id: string;
2276
+ attachment_id: string;
2277
+ };
2278
+ query?: never;
2279
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2280
+ };
2281
+ export type GetTicketAttachmentResponses = {
2282
+ /**
2283
+ * Attachment binary stream.
2284
+ */
2285
+ 200: Blob | File;
2286
+ };
2287
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1665
2288
  export type ListTokensData = {
1666
2289
  body?: never;
1667
2290
  path?: never;
@@ -1918,7 +2541,4 @@ export type UpdateUserResponses = {
1918
2541
  200: User;
1919
2542
  };
1920
2543
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1921
- export type ClientOptions = {
1922
- baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
1923
- };
1924
2544
  //# sourceMappingURL=types.gen.d.ts.map