@cloudfleet/sdk 0.0.1-d8d23ea → 0.0.1-da466c0

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 (108) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +943 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1156 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts +3 -0
  7. package/dist/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client.gen.js +217 -0
  9. package/dist/client/client.gen.js.map +1 -0
  10. package/dist/client/index.d.ts +8 -7
  11. package/dist/client/index.d.ts.map +1 -1
  12. package/dist/client/index.js +6 -4
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  15. package/dist/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/types.gen.js +3 -0
  17. package/dist/client/types.gen.js.map +1 -0
  18. package/dist/client/{utils.d.ts → utils.gen.d.ts} +17 -25
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/{utils.js → utils.gen.js} +66 -122
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +3 -3
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +1 -3
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/{auth.js → auth.gen.js} +2 -1
  29. package/dist/core/auth.gen.js.map +1 -0
  30. package/dist/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/{params.js → params.gen.js} +24 -11
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  41. package/dist/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/core/serverSentEvents.gen.js +133 -0
  49. package/dist/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
  51. package/dist/core/types.gen.d.ts.map +1 -0
  52. package/dist/core/types.gen.js +3 -0
  53. package/dist/core/types.gen.js.map +1 -0
  54. package/dist/core/utils.gen.d.ts +20 -0
  55. package/dist/core/utils.gen.d.ts.map +1 -0
  56. package/dist/core/utils.gen.js +88 -0
  57. package/dist/core/utils.gen.js.map +1 -0
  58. package/dist/errors.d.ts +42 -0
  59. package/dist/errors.d.ts.map +1 -0
  60. package/dist/errors.js +83 -0
  61. package/dist/errors.js.map +1 -0
  62. package/dist/index.d.ts +1 -0
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +4 -0
  65. package/dist/index.js.map +1 -1
  66. package/dist/schemas.gen.d.ts +1730 -748
  67. package/dist/schemas.gen.d.ts.map +1 -1
  68. package/dist/schemas.gen.js +3153 -817
  69. package/dist/schemas.gen.js.map +1 -1
  70. package/dist/sdk.gen.d.ts +279 -164
  71. package/dist/sdk.gen.d.ts.map +1 -1
  72. package/dist/sdk.gen.js +403 -334
  73. package/dist/sdk.gen.js.map +1 -1
  74. package/dist/services/kubernetes/api.d.ts +10 -47
  75. package/dist/services/kubernetes/api.d.ts.map +1 -1
  76. package/dist/services/kubernetes/api.js +36 -75
  77. package/dist/services/kubernetes/api.js.map +1 -1
  78. package/dist/services/kubernetes/index.d.ts.map +1 -1
  79. package/dist/services/kubernetes/index.js +36 -37
  80. package/dist/services/kubernetes/index.js.map +1 -1
  81. package/dist/types.gen.d.ts +1883 -947
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +4008 -3773
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1493 -1178
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +27 -9
  88. package/dist/client/client.d.ts +0 -3
  89. package/dist/client/client.d.ts.map +0 -1
  90. package/dist/client/client.js +0 -146
  91. package/dist/client/client.js.map +0 -1
  92. package/dist/client/types.d.ts.map +0 -1
  93. package/dist/client/types.js +0 -2
  94. package/dist/client/types.js.map +0 -1
  95. package/dist/client/utils.d.ts.map +0 -1
  96. package/dist/client/utils.js.map +0 -1
  97. package/dist/core/auth.d.ts.map +0 -1
  98. package/dist/core/auth.js.map +0 -1
  99. package/dist/core/bodySerializer.d.ts +0 -18
  100. package/dist/core/bodySerializer.d.ts.map +0 -1
  101. package/dist/core/bodySerializer.js.map +0 -1
  102. package/dist/core/params.d.ts.map +0 -1
  103. package/dist/core/params.js.map +0 -1
  104. package/dist/core/pathSerializer.d.ts.map +0 -1
  105. package/dist/core/pathSerializer.js.map +0 -1
  106. package/dist/core/types.d.ts.map +0 -1
  107. package/dist/core/types.js +0 -2
  108. package/dist/core/types.js.map +0 -1
package/dist/zod.gen.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod/v3';
2
+ import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
4
+ type: z.enum(['business', 'personal']),
4
5
  company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
6
  address1: z.string().optional(),
6
7
  address2: z.string().optional(),
@@ -9,9 +10,8 @@ export const zBillingContact = z.object({
9
10
  state: z.string().optional(),
10
11
  country: z.string().optional(),
11
12
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
13
+ email: z.email(),
14
+ individual_name: z.string(),
15
15
  tax_id: z.string().optional(),
16
16
  tax_id_type: z.enum([
17
17
  'ad_nrt',
@@ -23,12 +23,17 @@ export const zBillingContact = z.object({
23
23
  'at_vat',
24
24
  'au_abn',
25
25
  'au_arn',
26
+ 'aw_tin',
27
+ 'az_tin',
26
28
  'ba_tin',
27
29
  'bb_tin',
30
+ 'bd_bin',
28
31
  'be_vat',
32
+ 'bf_ifu',
29
33
  'bg_uic',
30
34
  'bg_vat',
31
35
  'bh_vat',
36
+ 'bj_ifu',
32
37
  'bo_tin',
33
38
  'br_cnpj',
34
39
  'br_cpf',
@@ -44,9 +49,11 @@ export const zBillingContact = z.object({
44
49
  'ch_uid',
45
50
  'ch_vat',
46
51
  'cl_tin',
52
+ 'cm_niu',
47
53
  'cn_tin',
48
54
  'co_nit',
49
55
  'cr_tin',
56
+ 'cv_nif',
50
57
  'cy_vat',
51
58
  'cz_vat',
52
59
  'de_stn',
@@ -58,6 +65,7 @@ export const zBillingContact = z.object({
58
65
  'eg_tin',
59
66
  'es_cif',
60
67
  'es_vat',
68
+ 'et_tin',
61
69
  'eu_oss_vat',
62
70
  'fi_vat',
63
71
  'fr_vat',
@@ -80,11 +88,14 @@ export const zBillingContact = z.object({
80
88
  'jp_rn',
81
89
  'jp_trn',
82
90
  'ke_pin',
91
+ 'kg_tin',
83
92
  'kh_tin',
84
93
  'kr_brn',
85
94
  'kz_bin',
95
+ 'la_tin',
86
96
  'li_uid',
87
97
  'li_vat',
98
+ 'lk_vat',
88
99
  'lt_vat',
89
100
  'lu_vat',
90
101
  'lv_vat',
@@ -146,73 +157,65 @@ export const zBillingContact = z.object({
146
157
  });
147
158
  export const zBillingCredits = z.object({
148
159
  id: z.string().optional(),
149
- date_created: z.string().datetime(),
160
+ type: z.enum(['credit', 'discount']),
161
+ date_start: z.iso.datetime(),
162
+ date_end: z.iso.datetime().optional(),
150
163
  code: z.string(),
151
164
  description: z.string().optional(),
152
- products: z.array(z.string()).optional(),
153
- type: z.enum([
154
- 'credit',
155
- 'discount'
156
- ]),
157
- value: z.number(),
158
- billing_period: z.string().datetime(),
165
+ value_total: z.number(),
159
166
  value_remaining: z.number().optional()
160
167
  });
161
- export const zChartCreateInput = z.object({
162
- values: z.string(),
163
- version_channel: z.string().regex(/^(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-]+)*))?$/),
164
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
165
- namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
166
- chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
167
- });
168
- export const zChart = z.object({
169
- values: z.string(),
170
- version_channel: z.string().regex(/^(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-]+)*))?$/),
171
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
172
- namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
173
- chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
174
- status: z.enum([
175
- 'InstallSucceeded',
176
- 'InstallFailed',
177
- 'UpgradeSucceeded',
178
- 'UpgradeFailed',
179
- 'TestSucceeded',
180
- 'TestFailed',
181
- 'RollbackSucceeded',
182
- 'RollbackFailed',
183
- 'UninstallSucceeded',
184
- 'UninstallFailed',
185
- 'ArtifactFailed',
186
- 'DependencyNotReady',
187
- 'Progressing',
188
- 'SourceNotReady'
189
- ]),
190
- version_current: z.string(),
191
- created_at: z.string(),
192
- updated_at: z.string(),
193
- ready: z.boolean()
194
- });
195
- export const zChartUpdateInput = z.object({
196
- values: z.string(),
197
- version_channel: z.string().regex(/^(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-]+)*))?$/)
198
- });
168
+ /**
169
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
170
+ */
199
171
  export const zClusterCreateInput = z.object({
200
172
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
201
173
  tier: z.enum([
202
174
  'basic',
203
- 'pro'
204
- ]),
205
- region: z.enum([
206
- 'staging',
207
- 'northamerica-central-1',
208
- 'europe-central-1a'
209
- ]).optional(),
210
- version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x')
175
+ 'pro',
176
+ 'enterprise'
177
+ ]).optional().default('basic'),
178
+ version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x'),
179
+ release_channel: z.enum([
180
+ 'rapid',
181
+ 'stable',
182
+ 'extended'
183
+ ]).optional().default('rapid'),
184
+ features: z.object({
185
+ gpu_sharing_strategy: z.enum([
186
+ 'none',
187
+ 'mps',
188
+ 'time_slicing'
189
+ ]).optional().default('none'),
190
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
191
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
192
+ }).optional().default({
193
+ gpu_sharing_strategy: 'none',
194
+ gpu_max_shared_clients_per_gpu: 4,
195
+ cilium_socket_lb_host_namespace_only: false
196
+ }),
197
+ region: z.string(),
198
+ networking: z.object({
199
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
200
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
201
+ dual_stack: z.boolean().optional(),
202
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
203
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
204
+ }).optional().default({
205
+ pod_cidr: '10.244.0.0/16',
206
+ service_cidr: '10.96.0.0/12',
207
+ dual_stack: false,
208
+ pod_cidr_v6: '2001:db8:1:2::/48',
209
+ service_cidr_v6: '2001:db8:1:1::/112'
210
+ })
211
211
  });
212
212
  export const zClusterJoinInformation = z.object({
213
213
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
214
+ endpoint: z.url(),
215
+ cluster_dns: z.string(),
216
+ pod_cidr: z.string(),
215
217
  auth_key: z.string(),
218
+ login_server: z.string(),
216
219
  bootstrap_token: z.string(),
217
220
  versions: z.object({
218
221
  kubernetes: z.string(),
@@ -226,1356 +229,1668 @@ export const zClusterJoinInformation = z.object({
226
229
  gcp_workload_identity_provider: z.string()
227
230
  })
228
231
  });
232
+ /**
233
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
234
+ */
229
235
  export const zCluster = z.object({
230
236
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
237
  tier: z.enum([
232
238
  'basic',
233
- 'pro'
234
- ]),
235
- region: z.enum([
236
- 'staging',
237
- 'northamerica-central-1',
238
- 'europe-central-1a'
239
- ]).optional(),
240
- version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x'),
241
- id: z.string().uuid(),
239
+ 'pro',
240
+ 'enterprise'
241
+ ]).default('basic'),
242
+ version_channel: z.string().regex(/^(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-]+)*))?$/).default('1.x.x-cfke.x'),
243
+ release_channel: z.enum([
244
+ 'rapid',
245
+ 'stable',
246
+ 'extended'
247
+ ]).default('rapid'),
248
+ features: z.object({
249
+ gpu_sharing_strategy: z.enum([
250
+ 'none',
251
+ 'mps',
252
+ 'time_slicing'
253
+ ]).default('none'),
254
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
255
+ cilium_socket_lb_host_namespace_only: z.boolean()
256
+ }).default({
257
+ gpu_sharing_strategy: 'none',
258
+ gpu_max_shared_clients_per_gpu: 4,
259
+ cilium_socket_lb_host_namespace_only: false
260
+ }),
261
+ region: z.string(),
262
+ networking: z.object({
263
+ pod_cidr: z.string().default('10.244.0.0/16'),
264
+ service_cidr: z.string().default('10.96.0.0/12'),
265
+ dual_stack: z.boolean(),
266
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
267
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
268
+ }).default({
269
+ pod_cidr: '10.244.0.0/16',
270
+ service_cidr: '10.96.0.0/12',
271
+ dual_stack: false,
272
+ pod_cidr_v6: '2001:db8:1:2::/48',
273
+ service_cidr_v6: '2001:db8:1:1::/112'
274
+ }),
275
+ id: z.uuid(),
242
276
  status: z.enum([
243
- 'active',
244
- 'deleted',
245
277
  'creating',
246
278
  'deployed',
247
- 'failed',
248
- 'updating'
279
+ 'updating',
280
+ 'disabled'
249
281
  ]),
250
282
  endpoint: z.union([
251
- z.string().url(),
252
- z.enum([
253
- ''
254
- ])
283
+ z.url(),
284
+ z.enum([''])
285
+ ]).optional(),
286
+ endpoint_public: z.union([
287
+ z.url(),
288
+ z.enum([''])
255
289
  ]).optional(),
256
290
  certificate_ca: z.string().optional(),
257
291
  version_current: z.string().optional(),
258
292
  created_at: z.string().optional(),
259
293
  updated_at: z.string().optional(),
260
- ready: z.boolean().optional()
294
+ ready: z.boolean()
261
295
  });
296
+ /**
297
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
298
+ */
262
299
  export const zClusterUpdateInput = z.object({
263
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
300
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
264
301
  tier: z.enum([
265
302
  'basic',
266
- 'pro'
303
+ 'pro',
304
+ 'enterprise'
305
+ ]).optional().default('basic'),
306
+ version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x'),
307
+ release_channel: z.enum([
308
+ 'rapid',
309
+ 'stable',
310
+ 'extended'
311
+ ]).optional().default('rapid'),
312
+ features: z.object({
313
+ gpu_sharing_strategy: z.enum([
314
+ 'none',
315
+ 'mps',
316
+ 'time_slicing'
317
+ ]).optional().default('none'),
318
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
319
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
320
+ }).optional().default({
321
+ gpu_sharing_strategy: 'none',
322
+ gpu_max_shared_clients_per_gpu: 4,
323
+ cilium_socket_lb_host_namespace_only: false
324
+ })
325
+ });
326
+ export const zFeedbackCreateInput = z.object({
327
+ sentiment: z.enum([
328
+ 'positive',
329
+ 'neutral',
330
+ 'negative'
267
331
  ]),
268
- version_channel: z.string().regex(/^(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-]+)*))?$/).optional()
332
+ message: z.string().min(1).max(2000),
333
+ context: z.string().max(2000).optional(),
334
+ source: z.enum([
335
+ 'cli',
336
+ 'mcp',
337
+ 'plugin',
338
+ 'console',
339
+ 'api'
340
+ ]).optional().default('api'),
341
+ client: z.string().max(100).optional()
342
+ });
343
+ export const zFeedback = z.object({
344
+ id: z.string()
269
345
  });
346
+ /**
347
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
348
+ */
270
349
  export const zFleetCreateInput = z.object({
271
350
  limits: z.object({
272
- cpu: z.number().gte(0)
351
+ cpu: z.int().gte(0).lte(100000).optional()
273
352
  }).optional(),
274
353
  gcp: z.object({
275
- enabled: z.boolean().optional().default(true),
276
- project: z.string()
354
+ enabled: z.boolean(),
355
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
277
356
  }).optional(),
278
357
  hetzner: z.object({
279
- enabled: z.boolean().optional().default(true),
280
- apiKey: z.string()
358
+ enabled: z.boolean(),
359
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
281
360
  }).optional(),
282
361
  aws: z.object({
283
- enabled: z.boolean().optional().default(true),
284
- controllerRoleArn: z.string()
362
+ enabled: z.boolean(),
363
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
285
364
  }).optional(),
365
+ constraints: z.object({
366
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
367
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
368
+ 'cfke.io/instance-family': z.array(z.enum([
369
+ 'a1',
370
+ 'a2',
371
+ 'a3',
372
+ 'a4',
373
+ 'c1',
374
+ 'c2',
375
+ 'c2d',
376
+ 'c3',
377
+ 'c3d',
378
+ 'c4',
379
+ 'c4a',
380
+ 'c4d',
381
+ 'c5',
382
+ 'c5a',
383
+ 'c5ad',
384
+ 'c5d',
385
+ 'c5n',
386
+ 'c6a',
387
+ 'c6g',
388
+ 'c6gd',
389
+ 'c6gn',
390
+ 'c6i',
391
+ 'c6id',
392
+ 'c6in',
393
+ 'c7a',
394
+ 'c7g',
395
+ 'c7gd',
396
+ 'c7gn',
397
+ 'c7i',
398
+ 'c7i-flex',
399
+ 'c8g',
400
+ 'c8gd',
401
+ 'cax',
402
+ 'ccx',
403
+ 'cpx',
404
+ 'cx',
405
+ 'd2',
406
+ 'd3',
407
+ 'd3en',
408
+ 'dl1',
409
+ 'dl2q',
410
+ 'e2',
411
+ 'f1',
412
+ 'f2',
413
+ 'g1',
414
+ 'g2',
415
+ 'g4ad',
416
+ 'g4dn',
417
+ 'g5',
418
+ 'g5g',
419
+ 'g6',
420
+ 'g6e',
421
+ 'gr6',
422
+ 'h1',
423
+ 'h3',
424
+ 'hpc6a',
425
+ 'hpc6id',
426
+ 'hpc7a',
427
+ 'hpc7g',
428
+ 'i2',
429
+ 'i3',
430
+ 'i3en',
431
+ 'i4g',
432
+ 'i4i',
433
+ 'i7i',
434
+ 'i7ie',
435
+ 'i8g',
436
+ 'im4gn',
437
+ 'inf1',
438
+ 'inf2',
439
+ 'is4gen',
440
+ 'm1',
441
+ 'm2',
442
+ 'm3',
443
+ 'm4',
444
+ 'm5',
445
+ 'm5a',
446
+ 'm5ad',
447
+ 'm5d',
448
+ 'm5dn',
449
+ 'm5n',
450
+ 'm5zn',
451
+ 'm6a',
452
+ 'm6g',
453
+ 'm6gd',
454
+ 'm6i',
455
+ 'm6id',
456
+ 'm6idn',
457
+ 'm6in',
458
+ 'm7a',
459
+ 'm7g',
460
+ 'm7gd',
461
+ 'm7i',
462
+ 'm7i-flex',
463
+ 'm8g',
464
+ 'm8gd',
465
+ 'n1',
466
+ 'n2',
467
+ 'n2d',
468
+ 'n4',
469
+ 'p3',
470
+ 'p3dn',
471
+ 'p4d',
472
+ 'p4de',
473
+ 'p5',
474
+ 'p5e',
475
+ 'p5en',
476
+ 'p6-b200',
477
+ 'r3',
478
+ 'r4',
479
+ 'r5',
480
+ 'r5a',
481
+ 'r5ad',
482
+ 'r5b',
483
+ 'r5d',
484
+ 'r5dn',
485
+ 'r5n',
486
+ 'r6a',
487
+ 'r6g',
488
+ 'r6gd',
489
+ 'r6i',
490
+ 'r6id',
491
+ 'r6idn',
492
+ 'r6in',
493
+ 'r7a',
494
+ 'r7g',
495
+ 'r7gd',
496
+ 'r7i',
497
+ 'r7iz',
498
+ 'r8g',
499
+ 'r8gd',
500
+ 't2',
501
+ 't2a',
502
+ 't2d',
503
+ 't3',
504
+ 't3a',
505
+ 't4g',
506
+ 'trn1',
507
+ 'trn1n',
508
+ 'u-3tb1',
509
+ 'u-6tb1',
510
+ 'u7i-12tb',
511
+ 'u7i-6tb',
512
+ 'u7i-8tb',
513
+ 'u7in-16tb',
514
+ 'u7in-24tb',
515
+ 'u7in-32tb',
516
+ 'vt1',
517
+ 'x1',
518
+ 'x1e',
519
+ 'x2gd',
520
+ 'x2idn',
521
+ 'x2iedn',
522
+ 'x2iezn',
523
+ 'x4',
524
+ 'x8g',
525
+ 'z1d',
526
+ 'z3'
527
+ ])).optional().default([]),
528
+ 'topology.kubernetes.io/region': z.array(z.enum([
529
+ 'africa-south1',
530
+ 'ap-northeast-1',
531
+ 'ap-northeast-2',
532
+ 'ap-northeast-3',
533
+ 'ap-south-1',
534
+ 'ap-southeast-1',
535
+ 'ap-southeast-2',
536
+ 'ash',
537
+ 'asia-east1',
538
+ 'asia-east2',
539
+ 'asia-northeast1',
540
+ 'asia-northeast2',
541
+ 'asia-northeast3',
542
+ 'asia-south1',
543
+ 'asia-south2',
544
+ 'asia-southeast1',
545
+ 'asia-southeast2',
546
+ 'australia-southeast1',
547
+ 'australia-southeast2',
548
+ 'ca-central-1',
549
+ 'eu-central-1',
550
+ 'eu-central-2',
551
+ 'eu-north-1',
552
+ 'eu-west-1',
553
+ 'eu-west-2',
554
+ 'eu-west-3',
555
+ 'europe-central2',
556
+ 'europe-north1',
557
+ 'europe-southwest1',
558
+ 'europe-west1',
559
+ 'europe-west10',
560
+ 'europe-west12',
561
+ 'europe-west2',
562
+ 'europe-west3',
563
+ 'europe-west4',
564
+ 'europe-west6',
565
+ 'europe-west8',
566
+ 'europe-west9',
567
+ 'fsn1',
568
+ 'hel1',
569
+ 'hil',
570
+ 'me-central1',
571
+ 'me-central2',
572
+ 'me-west1',
573
+ 'nbg1',
574
+ 'northamerica-northeast1',
575
+ 'northamerica-northeast2',
576
+ 'sa-east-1',
577
+ 'sin',
578
+ 'southamerica-east1',
579
+ 'southamerica-west1',
580
+ 'us-central1',
581
+ 'us-east-1',
582
+ 'us-east-2',
583
+ 'us-east1',
584
+ 'us-east4',
585
+ 'us-east5',
586
+ 'us-south1',
587
+ 'us-west-1',
588
+ 'us-west-2',
589
+ 'us-west1',
590
+ 'us-west2',
591
+ 'us-west3',
592
+ 'us-west4'
593
+ ])).optional().default([])
594
+ }).optional().default({
595
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
596
+ 'kubernetes.io/arch': ['amd64'],
597
+ 'cfke.io/instance-family': [],
598
+ 'topology.kubernetes.io/region': []
599
+ }),
600
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
601
+ taints: z.array(z.object({
602
+ key: z.string(),
603
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
604
+ effect: z.enum([
605
+ 'NoSchedule',
606
+ 'PreferNoSchedule',
607
+ 'NoExecute'
608
+ ])
609
+ })).max(50).optional().default([]),
286
610
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
287
611
  });
612
+ /**
613
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
614
+ */
288
615
  export const zFleet = z.object({
289
616
  limits: z.object({
290
- cpu: z.number().gte(0)
617
+ cpu: z.int().gte(0).lte(100000).optional()
291
618
  }).optional(),
292
619
  gcp: z.object({
293
- enabled: z.boolean().optional().default(true),
294
- project: z.string()
620
+ enabled: z.boolean(),
621
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
295
622
  }).optional(),
296
623
  hetzner: z.object({
297
- enabled: z.boolean().optional().default(true),
298
- apiKey: z.string()
624
+ enabled: z.boolean(),
625
+ apiKey: z.string().regex(/^\*{64}$/).optional()
299
626
  }).optional(),
300
627
  aws: z.object({
301
- enabled: z.boolean().optional().default(true),
302
- controllerRoleArn: z.string()
628
+ enabled: z.boolean(),
629
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
303
630
  }).optional(),
304
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
631
+ constraints: z.object({
632
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
633
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
634
+ 'cfke.io/instance-family': z.array(z.enum([
635
+ 'a1',
636
+ 'a2',
637
+ 'a3',
638
+ 'a4',
639
+ 'c1',
640
+ 'c2',
641
+ 'c2d',
642
+ 'c3',
643
+ 'c3d',
644
+ 'c4',
645
+ 'c4a',
646
+ 'c4d',
647
+ 'c5',
648
+ 'c5a',
649
+ 'c5ad',
650
+ 'c5d',
651
+ 'c5n',
652
+ 'c6a',
653
+ 'c6g',
654
+ 'c6gd',
655
+ 'c6gn',
656
+ 'c6i',
657
+ 'c6id',
658
+ 'c6in',
659
+ 'c7a',
660
+ 'c7g',
661
+ 'c7gd',
662
+ 'c7gn',
663
+ 'c7i',
664
+ 'c7i-flex',
665
+ 'c8g',
666
+ 'c8gd',
667
+ 'cax',
668
+ 'ccx',
669
+ 'cpx',
670
+ 'cx',
671
+ 'd2',
672
+ 'd3',
673
+ 'd3en',
674
+ 'dl1',
675
+ 'dl2q',
676
+ 'e2',
677
+ 'f1',
678
+ 'f2',
679
+ 'g1',
680
+ 'g2',
681
+ 'g4ad',
682
+ 'g4dn',
683
+ 'g5',
684
+ 'g5g',
685
+ 'g6',
686
+ 'g6e',
687
+ 'gr6',
688
+ 'h1',
689
+ 'h3',
690
+ 'hpc6a',
691
+ 'hpc6id',
692
+ 'hpc7a',
693
+ 'hpc7g',
694
+ 'i2',
695
+ 'i3',
696
+ 'i3en',
697
+ 'i4g',
698
+ 'i4i',
699
+ 'i7i',
700
+ 'i7ie',
701
+ 'i8g',
702
+ 'im4gn',
703
+ 'inf1',
704
+ 'inf2',
705
+ 'is4gen',
706
+ 'm1',
707
+ 'm2',
708
+ 'm3',
709
+ 'm4',
710
+ 'm5',
711
+ 'm5a',
712
+ 'm5ad',
713
+ 'm5d',
714
+ 'm5dn',
715
+ 'm5n',
716
+ 'm5zn',
717
+ 'm6a',
718
+ 'm6g',
719
+ 'm6gd',
720
+ 'm6i',
721
+ 'm6id',
722
+ 'm6idn',
723
+ 'm6in',
724
+ 'm7a',
725
+ 'm7g',
726
+ 'm7gd',
727
+ 'm7i',
728
+ 'm7i-flex',
729
+ 'm8g',
730
+ 'm8gd',
731
+ 'n1',
732
+ 'n2',
733
+ 'n2d',
734
+ 'n4',
735
+ 'p3',
736
+ 'p3dn',
737
+ 'p4d',
738
+ 'p4de',
739
+ 'p5',
740
+ 'p5e',
741
+ 'p5en',
742
+ 'p6-b200',
743
+ 'r3',
744
+ 'r4',
745
+ 'r5',
746
+ 'r5a',
747
+ 'r5ad',
748
+ 'r5b',
749
+ 'r5d',
750
+ 'r5dn',
751
+ 'r5n',
752
+ 'r6a',
753
+ 'r6g',
754
+ 'r6gd',
755
+ 'r6i',
756
+ 'r6id',
757
+ 'r6idn',
758
+ 'r6in',
759
+ 'r7a',
760
+ 'r7g',
761
+ 'r7gd',
762
+ 'r7i',
763
+ 'r7iz',
764
+ 'r8g',
765
+ 'r8gd',
766
+ 't2',
767
+ 't2a',
768
+ 't2d',
769
+ 't3',
770
+ 't3a',
771
+ 't4g',
772
+ 'trn1',
773
+ 'trn1n',
774
+ 'u-3tb1',
775
+ 'u-6tb1',
776
+ 'u7i-12tb',
777
+ 'u7i-6tb',
778
+ 'u7i-8tb',
779
+ 'u7in-16tb',
780
+ 'u7in-24tb',
781
+ 'u7in-32tb',
782
+ 'vt1',
783
+ 'x1',
784
+ 'x1e',
785
+ 'x2gd',
786
+ 'x2idn',
787
+ 'x2iedn',
788
+ 'x2iezn',
789
+ 'x4',
790
+ 'x8g',
791
+ 'z1d',
792
+ 'z3'
793
+ ])).optional().default([]),
794
+ 'topology.kubernetes.io/region': z.array(z.enum([
795
+ 'africa-south1',
796
+ 'ap-northeast-1',
797
+ 'ap-northeast-2',
798
+ 'ap-northeast-3',
799
+ 'ap-south-1',
800
+ 'ap-southeast-1',
801
+ 'ap-southeast-2',
802
+ 'ash',
803
+ 'asia-east1',
804
+ 'asia-east2',
805
+ 'asia-northeast1',
806
+ 'asia-northeast2',
807
+ 'asia-northeast3',
808
+ 'asia-south1',
809
+ 'asia-south2',
810
+ 'asia-southeast1',
811
+ 'asia-southeast2',
812
+ 'australia-southeast1',
813
+ 'australia-southeast2',
814
+ 'ca-central-1',
815
+ 'eu-central-1',
816
+ 'eu-central-2',
817
+ 'eu-north-1',
818
+ 'eu-west-1',
819
+ 'eu-west-2',
820
+ 'eu-west-3',
821
+ 'europe-central2',
822
+ 'europe-north1',
823
+ 'europe-southwest1',
824
+ 'europe-west1',
825
+ 'europe-west10',
826
+ 'europe-west12',
827
+ 'europe-west2',
828
+ 'europe-west3',
829
+ 'europe-west4',
830
+ 'europe-west6',
831
+ 'europe-west8',
832
+ 'europe-west9',
833
+ 'fsn1',
834
+ 'hel1',
835
+ 'hil',
836
+ 'me-central1',
837
+ 'me-central2',
838
+ 'me-west1',
839
+ 'nbg1',
840
+ 'northamerica-northeast1',
841
+ 'northamerica-northeast2',
842
+ 'sa-east-1',
843
+ 'sin',
844
+ 'southamerica-east1',
845
+ 'southamerica-west1',
846
+ 'us-central1',
847
+ 'us-east-1',
848
+ 'us-east-2',
849
+ 'us-east1',
850
+ 'us-east4',
851
+ 'us-east5',
852
+ 'us-south1',
853
+ 'us-west-1',
854
+ 'us-west-2',
855
+ 'us-west1',
856
+ 'us-west2',
857
+ 'us-west3',
858
+ 'us-west4'
859
+ ])).optional().default([])
860
+ }).default({
861
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
862
+ 'kubernetes.io/arch': ['amd64'],
863
+ 'cfke.io/instance-family': [],
864
+ 'topology.kubernetes.io/region': []
865
+ }),
866
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
867
+ taints: z.array(z.object({
868
+ key: z.string(),
869
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
870
+ effect: z.enum([
871
+ 'NoSchedule',
872
+ 'PreferNoSchedule',
873
+ 'NoExecute'
874
+ ])
875
+ })).max(50).default([]),
876
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
877
+ ready: z.boolean(),
878
+ status_message: z.string().optional(),
879
+ created_at: z.string(),
880
+ updated_at: z.string()
305
881
  });
882
+ /**
883
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
884
+ */
306
885
  export const zFleetUpdateInput = z.object({
307
886
  limits: z.object({
308
- cpu: z.number().gte(0)
887
+ cpu: z.int().gte(0).lte(100000).optional()
309
888
  }).optional(),
310
889
  gcp: z.object({
311
- enabled: z.boolean().optional().default(true),
312
- project: z.string()
890
+ enabled: z.boolean(),
891
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
313
892
  }).optional(),
314
893
  hetzner: z.object({
315
- enabled: z.boolean().optional().default(true),
316
- apiKey: z.string()
894
+ enabled: z.boolean(),
895
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
317
896
  }).optional(),
318
897
  aws: z.object({
319
- enabled: z.boolean().optional().default(true),
320
- controllerRoleArn: z.string()
321
- }).optional()
898
+ enabled: z.boolean(),
899
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
900
+ }).optional(),
901
+ constraints: z.object({
902
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
903
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
904
+ 'cfke.io/instance-family': z.array(z.enum([
905
+ 'a1',
906
+ 'a2',
907
+ 'a3',
908
+ 'a4',
909
+ 'c1',
910
+ 'c2',
911
+ 'c2d',
912
+ 'c3',
913
+ 'c3d',
914
+ 'c4',
915
+ 'c4a',
916
+ 'c4d',
917
+ 'c5',
918
+ 'c5a',
919
+ 'c5ad',
920
+ 'c5d',
921
+ 'c5n',
922
+ 'c6a',
923
+ 'c6g',
924
+ 'c6gd',
925
+ 'c6gn',
926
+ 'c6i',
927
+ 'c6id',
928
+ 'c6in',
929
+ 'c7a',
930
+ 'c7g',
931
+ 'c7gd',
932
+ 'c7gn',
933
+ 'c7i',
934
+ 'c7i-flex',
935
+ 'c8g',
936
+ 'c8gd',
937
+ 'cax',
938
+ 'ccx',
939
+ 'cpx',
940
+ 'cx',
941
+ 'd2',
942
+ 'd3',
943
+ 'd3en',
944
+ 'dl1',
945
+ 'dl2q',
946
+ 'e2',
947
+ 'f1',
948
+ 'f2',
949
+ 'g1',
950
+ 'g2',
951
+ 'g4ad',
952
+ 'g4dn',
953
+ 'g5',
954
+ 'g5g',
955
+ 'g6',
956
+ 'g6e',
957
+ 'gr6',
958
+ 'h1',
959
+ 'h3',
960
+ 'hpc6a',
961
+ 'hpc6id',
962
+ 'hpc7a',
963
+ 'hpc7g',
964
+ 'i2',
965
+ 'i3',
966
+ 'i3en',
967
+ 'i4g',
968
+ 'i4i',
969
+ 'i7i',
970
+ 'i7ie',
971
+ 'i8g',
972
+ 'im4gn',
973
+ 'inf1',
974
+ 'inf2',
975
+ 'is4gen',
976
+ 'm1',
977
+ 'm2',
978
+ 'm3',
979
+ 'm4',
980
+ 'm5',
981
+ 'm5a',
982
+ 'm5ad',
983
+ 'm5d',
984
+ 'm5dn',
985
+ 'm5n',
986
+ 'm5zn',
987
+ 'm6a',
988
+ 'm6g',
989
+ 'm6gd',
990
+ 'm6i',
991
+ 'm6id',
992
+ 'm6idn',
993
+ 'm6in',
994
+ 'm7a',
995
+ 'm7g',
996
+ 'm7gd',
997
+ 'm7i',
998
+ 'm7i-flex',
999
+ 'm8g',
1000
+ 'm8gd',
1001
+ 'n1',
1002
+ 'n2',
1003
+ 'n2d',
1004
+ 'n4',
1005
+ 'p3',
1006
+ 'p3dn',
1007
+ 'p4d',
1008
+ 'p4de',
1009
+ 'p5',
1010
+ 'p5e',
1011
+ 'p5en',
1012
+ 'p6-b200',
1013
+ 'r3',
1014
+ 'r4',
1015
+ 'r5',
1016
+ 'r5a',
1017
+ 'r5ad',
1018
+ 'r5b',
1019
+ 'r5d',
1020
+ 'r5dn',
1021
+ 'r5n',
1022
+ 'r6a',
1023
+ 'r6g',
1024
+ 'r6gd',
1025
+ 'r6i',
1026
+ 'r6id',
1027
+ 'r6idn',
1028
+ 'r6in',
1029
+ 'r7a',
1030
+ 'r7g',
1031
+ 'r7gd',
1032
+ 'r7i',
1033
+ 'r7iz',
1034
+ 'r8g',
1035
+ 'r8gd',
1036
+ 't2',
1037
+ 't2a',
1038
+ 't2d',
1039
+ 't3',
1040
+ 't3a',
1041
+ 't4g',
1042
+ 'trn1',
1043
+ 'trn1n',
1044
+ 'u-3tb1',
1045
+ 'u-6tb1',
1046
+ 'u7i-12tb',
1047
+ 'u7i-6tb',
1048
+ 'u7i-8tb',
1049
+ 'u7in-16tb',
1050
+ 'u7in-24tb',
1051
+ 'u7in-32tb',
1052
+ 'vt1',
1053
+ 'x1',
1054
+ 'x1e',
1055
+ 'x2gd',
1056
+ 'x2idn',
1057
+ 'x2iedn',
1058
+ 'x2iezn',
1059
+ 'x4',
1060
+ 'x8g',
1061
+ 'z1d',
1062
+ 'z3'
1063
+ ])).optional().default([]),
1064
+ 'topology.kubernetes.io/region': z.array(z.enum([
1065
+ 'africa-south1',
1066
+ 'ap-northeast-1',
1067
+ 'ap-northeast-2',
1068
+ 'ap-northeast-3',
1069
+ 'ap-south-1',
1070
+ 'ap-southeast-1',
1071
+ 'ap-southeast-2',
1072
+ 'ash',
1073
+ 'asia-east1',
1074
+ 'asia-east2',
1075
+ 'asia-northeast1',
1076
+ 'asia-northeast2',
1077
+ 'asia-northeast3',
1078
+ 'asia-south1',
1079
+ 'asia-south2',
1080
+ 'asia-southeast1',
1081
+ 'asia-southeast2',
1082
+ 'australia-southeast1',
1083
+ 'australia-southeast2',
1084
+ 'ca-central-1',
1085
+ 'eu-central-1',
1086
+ 'eu-central-2',
1087
+ 'eu-north-1',
1088
+ 'eu-west-1',
1089
+ 'eu-west-2',
1090
+ 'eu-west-3',
1091
+ 'europe-central2',
1092
+ 'europe-north1',
1093
+ 'europe-southwest1',
1094
+ 'europe-west1',
1095
+ 'europe-west10',
1096
+ 'europe-west12',
1097
+ 'europe-west2',
1098
+ 'europe-west3',
1099
+ 'europe-west4',
1100
+ 'europe-west6',
1101
+ 'europe-west8',
1102
+ 'europe-west9',
1103
+ 'fsn1',
1104
+ 'hel1',
1105
+ 'hil',
1106
+ 'me-central1',
1107
+ 'me-central2',
1108
+ 'me-west1',
1109
+ 'nbg1',
1110
+ 'northamerica-northeast1',
1111
+ 'northamerica-northeast2',
1112
+ 'sa-east-1',
1113
+ 'sin',
1114
+ 'southamerica-east1',
1115
+ 'southamerica-west1',
1116
+ 'us-central1',
1117
+ 'us-east-1',
1118
+ 'us-east-2',
1119
+ 'us-east1',
1120
+ 'us-east4',
1121
+ 'us-east5',
1122
+ 'us-south1',
1123
+ 'us-west-1',
1124
+ 'us-west-2',
1125
+ 'us-west1',
1126
+ 'us-west2',
1127
+ 'us-west3',
1128
+ 'us-west4'
1129
+ ])).optional().default([])
1130
+ }).optional().default({
1131
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1132
+ 'kubernetes.io/arch': ['amd64'],
1133
+ 'cfke.io/instance-family': [],
1134
+ 'topology.kubernetes.io/region': []
1135
+ }),
1136
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
1137
+ taints: z.array(z.object({
1138
+ key: z.string(),
1139
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
1140
+ effect: z.enum([
1141
+ 'NoSchedule',
1142
+ 'PreferNoSchedule',
1143
+ 'NoExecute'
1144
+ ])
1145
+ })).max(50).optional().default([])
1146
+ });
1147
+ export const zInviteCreateInput = z.object({
1148
+ email: z.email(),
1149
+ role: z.enum(['Administrator', 'User']).optional().default('User')
322
1150
  });
323
1151
  export const zInvite = z.object({
324
1152
  id: z.string().optional(),
325
- organization_id: z.string().uuid().optional(),
326
- date_created: z.string().datetime(),
327
- email: z.string().email().optional(),
328
- code: z.string().optional()
329
- });
330
- export const zInvoice = z.object({
331
- id: z.string().uuid().optional(),
332
- organizationId: z.string().uuid().optional(),
1153
+ organization_id: z.uuid().optional(),
1154
+ date_created: z.iso.datetime(),
1155
+ email: z.email().optional(),
1156
+ code: z.string().optional(),
1157
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1158
+ });
1159
+ export const zInvoicePaymentAttempt = z.object({
1160
+ invoice_id: z.string(),
1161
+ number: z.string(),
1162
+ amount: z.number(),
1163
+ currency: z.string(),
333
1164
  status: z.enum([
334
- 'DRAFT',
335
- 'COMMITTED',
336
- 'VOID'
337
- ]).optional(),
338
- amount: z.number().optional(),
339
- currency: z.enum([
340
- 'AED',
341
- 'AFN',
342
- 'ALL',
343
- 'AMD',
344
- 'ANG',
345
- 'AOA',
346
- 'ARS',
347
- 'AUD',
348
- 'AWG',
349
- 'AZN',
350
- 'BAM',
351
- 'BBD',
352
- 'BDT',
353
- 'BGN',
354
- 'BHD',
355
- 'BIF',
356
- 'BMD',
357
- 'BND',
358
- 'BOB',
359
- 'BRL',
360
- 'BSD',
361
- 'BTN',
362
- 'BWP',
363
- 'BYR',
364
- 'BZD',
365
- 'CAD',
366
- 'CDF',
367
- 'CHF',
368
- 'CLP',
369
- 'CNY',
370
- 'COP',
371
- 'CRC',
372
- 'CUC',
373
- 'CUP',
374
- 'CVE',
375
- 'CZK',
376
- 'DJF',
377
- 'DKK',
378
- 'DOP',
379
- 'DZD',
380
- 'EGP',
381
- 'ERN',
382
- 'ETB',
383
- 'EUR',
384
- 'FJD',
385
- 'FKP',
386
- 'GBP',
387
- 'GEL',
388
- 'GGP',
389
- 'GHS',
390
- 'GIP',
391
- 'GMD',
392
- 'GNF',
393
- 'GTQ',
394
- 'GYD',
395
- 'HKD',
396
- 'HNL',
397
- 'HRK',
398
- 'HTG',
399
- 'HUF',
400
- 'IDR',
401
- 'ILS',
402
- 'IMP',
403
- 'INR',
404
- 'IQD',
405
- 'IRR',
406
- 'ISK',
407
- 'JEP',
408
- 'JMD',
409
- 'JOD',
410
- 'JPY',
411
- 'KES',
412
- 'KGS',
413
- 'KHR',
414
- 'KMF',
415
- 'KPW',
416
- 'KRW',
417
- 'KWD',
418
- 'KYD',
419
- 'KZT',
420
- 'LAK',
421
- 'LBP',
422
- 'LKR',
423
- 'LRD',
424
- 'LSL',
425
- 'LTL',
426
- 'LVL',
427
- 'LYD',
428
- 'MAD',
429
- 'MDL',
430
- 'MGA',
431
- 'MKD',
432
- 'MMK',
433
- 'MNT',
434
- 'MOP',
435
- 'MRO',
436
- 'MUR',
437
- 'MVR',
438
- 'MWK',
439
- 'MXN',
440
- 'MYR',
441
- 'MZN',
442
- 'NAD',
443
- 'NGN',
444
- 'NIO',
445
- 'NOK',
446
- 'NPR',
447
- 'NZD',
448
- 'OMR',
449
- 'PAB',
450
- 'PEN',
451
- 'PGK',
452
- 'PHP',
453
- 'PKR',
454
- 'PLN',
455
- 'PYG',
456
- 'QAR',
457
- 'RON',
458
- 'RSD',
459
- 'RUB',
460
- 'RWF',
461
- 'SAR',
462
- 'SBD',
463
- 'SCR',
464
- 'SDG',
465
- 'SEK',
466
- 'SGD',
467
- 'SHP',
468
- 'SLL',
469
- 'SOS',
470
- 'SPL',
471
- 'SRD',
472
- 'STD',
473
- 'SVC',
474
- 'SYP',
475
- 'SZL',
476
- 'THB',
477
- 'TJS',
478
- 'TMT',
479
- 'TND',
480
- 'TOP',
481
- 'TRY',
482
- 'TTD',
483
- 'TVD',
484
- 'TWD',
485
- 'TZS',
486
- 'UAH',
487
- 'UGX',
488
- 'USD',
489
- 'UYU',
490
- 'UZS',
491
- 'VEF',
492
- 'VND',
493
- 'VUV',
494
- 'WST',
495
- 'XAF',
496
- 'XCD',
497
- 'XDR',
498
- 'XOF',
499
- 'XPF',
500
- 'YER',
501
- 'ZAR',
502
- 'ZMW',
503
- 'ZWD',
504
- 'BTC'
505
- ]).optional(),
506
- creditAdj: z.number().optional(),
507
- refundAdj: z.number().optional(),
508
- invoiceDate: z.string().optional(),
509
- targetDate: z.string().optional(),
510
- invoiceNumber: z.string().optional(),
511
- balance: z.number().optional(),
512
- bundleKeys: z.string().optional(),
513
- credits: z.array(z.object({
514
- id: z.string().uuid().optional(),
515
- linkedInvoiceItemId: z.string().uuid().optional(),
516
- productName: z.string().optional(),
517
- planName: z.string().optional(),
518
- phaseName: z.string().optional(),
519
- usageName: z.string().optional(),
520
- prettyProductName: z.string().optional(),
521
- prettyPlanName: z.string().optional(),
522
- prettyPhaseName: z.string().optional(),
523
- prettyUsageName: z.string().optional(),
524
- itemType: z.enum([
525
- 'EXTERNAL_CHARGE',
526
- 'FIXED',
527
- 'RECURRING',
528
- 'REPAIR_ADJ',
529
- 'CBA_ADJ',
530
- 'CREDIT_ADJ',
531
- 'ITEM_ADJ',
532
- 'USAGE',
533
- 'TAX',
534
- 'PARENT_SUMMARY'
535
- ]).optional(),
536
- description: z.string().optional(),
537
- startDate: z.string().optional(),
538
- endDate: z.string().optional(),
539
- amount: z.number().optional(),
540
- rate: z.number().optional(),
541
- currency: z.enum([
542
- 'AED',
543
- 'AFN',
544
- 'ALL',
545
- 'AMD',
546
- 'ANG',
547
- 'AOA',
548
- 'ARS',
549
- 'AUD',
550
- 'AWG',
551
- 'AZN',
552
- 'BAM',
553
- 'BBD',
554
- 'BDT',
555
- 'BGN',
556
- 'BHD',
557
- 'BIF',
558
- 'BMD',
559
- 'BND',
560
- 'BOB',
561
- 'BRL',
562
- 'BSD',
563
- 'BTN',
564
- 'BWP',
565
- 'BYR',
566
- 'BZD',
567
- 'CAD',
568
- 'CDF',
569
- 'CHF',
570
- 'CLP',
571
- 'CNY',
572
- 'COP',
573
- 'CRC',
574
- 'CUC',
575
- 'CUP',
576
- 'CVE',
577
- 'CZK',
578
- 'DJF',
579
- 'DKK',
580
- 'DOP',
581
- 'DZD',
582
- 'EGP',
583
- 'ERN',
584
- 'ETB',
585
- 'EUR',
586
- 'FJD',
587
- 'FKP',
588
- 'GBP',
589
- 'GEL',
590
- 'GGP',
591
- 'GHS',
592
- 'GIP',
593
- 'GMD',
594
- 'GNF',
595
- 'GTQ',
596
- 'GYD',
597
- 'HKD',
598
- 'HNL',
599
- 'HRK',
600
- 'HTG',
601
- 'HUF',
602
- 'IDR',
603
- 'ILS',
604
- 'IMP',
605
- 'INR',
606
- 'IQD',
607
- 'IRR',
608
- 'ISK',
609
- 'JEP',
610
- 'JMD',
611
- 'JOD',
612
- 'JPY',
613
- 'KES',
614
- 'KGS',
615
- 'KHR',
616
- 'KMF',
617
- 'KPW',
618
- 'KRW',
619
- 'KWD',
620
- 'KYD',
621
- 'KZT',
622
- 'LAK',
623
- 'LBP',
624
- 'LKR',
625
- 'LRD',
626
- 'LSL',
627
- 'LTL',
628
- 'LVL',
629
- 'LYD',
630
- 'MAD',
631
- 'MDL',
632
- 'MGA',
633
- 'MKD',
634
- 'MMK',
635
- 'MNT',
636
- 'MOP',
637
- 'MRO',
638
- 'MUR',
639
- 'MVR',
640
- 'MWK',
641
- 'MXN',
642
- 'MYR',
643
- 'MZN',
644
- 'NAD',
645
- 'NGN',
646
- 'NIO',
647
- 'NOK',
648
- 'NPR',
649
- 'NZD',
650
- 'OMR',
651
- 'PAB',
652
- 'PEN',
653
- 'PGK',
654
- 'PHP',
655
- 'PKR',
656
- 'PLN',
657
- 'PYG',
658
- 'QAR',
659
- 'RON',
660
- 'RSD',
661
- 'RUB',
662
- 'RWF',
663
- 'SAR',
664
- 'SBD',
665
- 'SCR',
666
- 'SDG',
667
- 'SEK',
668
- 'SGD',
669
- 'SHP',
670
- 'SLL',
671
- 'SOS',
672
- 'SPL',
673
- 'SRD',
674
- 'STD',
675
- 'SVC',
676
- 'SYP',
677
- 'SZL',
678
- 'THB',
679
- 'TJS',
680
- 'TMT',
681
- 'TND',
682
- 'TOP',
683
- 'TRY',
684
- 'TTD',
685
- 'TVD',
686
- 'TWD',
687
- 'TZS',
688
- 'UAH',
689
- 'UGX',
690
- 'USD',
691
- 'UYU',
692
- 'UZS',
693
- 'VEF',
694
- 'VND',
695
- 'VUV',
696
- 'WST',
697
- 'XAF',
698
- 'XCD',
699
- 'XDR',
700
- 'XOF',
701
- 'XPF',
702
- 'YER',
703
- 'ZAR',
704
- 'ZMW',
705
- 'ZWD',
706
- 'BTC'
707
- ]).optional(),
708
- quantity: z.number().optional(),
709
- itemDetails: z.string().optional(),
710
- catalogEffectiveDate: z.string().optional(),
711
- childItems: z.array(z.union([
712
- z.array(z.unknown()),
713
- z.boolean(),
714
- z.number(),
715
- z.object({}),
716
- z.string()
717
- ])).optional()
718
- })).optional(),
719
- items: z.array(z.object({
720
- id: z.string().uuid().optional(),
721
- linkedInvoiceItemId: z.string().uuid().optional(),
722
- productName: z.string().optional(),
723
- planName: z.string().optional(),
724
- phaseName: z.string().optional(),
725
- usageName: z.string().optional(),
726
- prettyProductName: z.string().optional(),
727
- prettyPlanName: z.string().optional(),
728
- prettyPhaseName: z.string().optional(),
729
- prettyUsageName: z.string().optional(),
730
- itemType: z.enum([
731
- 'EXTERNAL_CHARGE',
732
- 'FIXED',
733
- 'RECURRING',
734
- 'REPAIR_ADJ',
735
- 'CBA_ADJ',
736
- 'CREDIT_ADJ',
737
- 'ITEM_ADJ',
738
- 'USAGE',
739
- 'TAX',
740
- 'PARENT_SUMMARY'
741
- ]).optional(),
742
- description: z.string().optional(),
743
- startDate: z.string().optional(),
744
- endDate: z.string().optional(),
745
- amount: z.number().optional(),
746
- rate: z.number().optional(),
747
- currency: z.enum([
748
- 'AED',
749
- 'AFN',
750
- 'ALL',
751
- 'AMD',
752
- 'ANG',
753
- 'AOA',
754
- 'ARS',
755
- 'AUD',
756
- 'AWG',
757
- 'AZN',
758
- 'BAM',
759
- 'BBD',
760
- 'BDT',
761
- 'BGN',
762
- 'BHD',
763
- 'BIF',
764
- 'BMD',
765
- 'BND',
766
- 'BOB',
767
- 'BRL',
768
- 'BSD',
769
- 'BTN',
770
- 'BWP',
771
- 'BYR',
772
- 'BZD',
773
- 'CAD',
774
- 'CDF',
775
- 'CHF',
776
- 'CLP',
777
- 'CNY',
778
- 'COP',
779
- 'CRC',
780
- 'CUC',
781
- 'CUP',
782
- 'CVE',
783
- 'CZK',
784
- 'DJF',
785
- 'DKK',
786
- 'DOP',
787
- 'DZD',
788
- 'EGP',
789
- 'ERN',
790
- 'ETB',
791
- 'EUR',
792
- 'FJD',
793
- 'FKP',
794
- 'GBP',
795
- 'GEL',
796
- 'GGP',
797
- 'GHS',
798
- 'GIP',
799
- 'GMD',
800
- 'GNF',
801
- 'GTQ',
802
- 'GYD',
803
- 'HKD',
804
- 'HNL',
805
- 'HRK',
806
- 'HTG',
807
- 'HUF',
808
- 'IDR',
809
- 'ILS',
810
- 'IMP',
811
- 'INR',
812
- 'IQD',
813
- 'IRR',
814
- 'ISK',
815
- 'JEP',
816
- 'JMD',
817
- 'JOD',
818
- 'JPY',
819
- 'KES',
820
- 'KGS',
821
- 'KHR',
822
- 'KMF',
823
- 'KPW',
824
- 'KRW',
825
- 'KWD',
826
- 'KYD',
827
- 'KZT',
828
- 'LAK',
829
- 'LBP',
830
- 'LKR',
831
- 'LRD',
832
- 'LSL',
833
- 'LTL',
834
- 'LVL',
835
- 'LYD',
836
- 'MAD',
837
- 'MDL',
838
- 'MGA',
839
- 'MKD',
840
- 'MMK',
841
- 'MNT',
842
- 'MOP',
843
- 'MRO',
844
- 'MUR',
845
- 'MVR',
846
- 'MWK',
847
- 'MXN',
848
- 'MYR',
849
- 'MZN',
850
- 'NAD',
851
- 'NGN',
852
- 'NIO',
853
- 'NOK',
854
- 'NPR',
855
- 'NZD',
856
- 'OMR',
857
- 'PAB',
858
- 'PEN',
859
- 'PGK',
860
- 'PHP',
861
- 'PKR',
862
- 'PLN',
863
- 'PYG',
864
- 'QAR',
865
- 'RON',
866
- 'RSD',
867
- 'RUB',
868
- 'RWF',
869
- 'SAR',
870
- 'SBD',
871
- 'SCR',
872
- 'SDG',
873
- 'SEK',
874
- 'SGD',
875
- 'SHP',
876
- 'SLL',
877
- 'SOS',
878
- 'SPL',
879
- 'SRD',
880
- 'STD',
881
- 'SVC',
882
- 'SYP',
883
- 'SZL',
884
- 'THB',
885
- 'TJS',
886
- 'TMT',
887
- 'TND',
888
- 'TOP',
889
- 'TRY',
890
- 'TTD',
891
- 'TVD',
892
- 'TWD',
893
- 'TZS',
894
- 'UAH',
895
- 'UGX',
896
- 'USD',
897
- 'UYU',
898
- 'UZS',
899
- 'VEF',
900
- 'VND',
901
- 'VUV',
902
- 'WST',
903
- 'XAF',
904
- 'XCD',
905
- 'XDR',
906
- 'XOF',
907
- 'XPF',
908
- 'YER',
909
- 'ZAR',
910
- 'ZMW',
911
- 'ZWD',
912
- 'BTC'
913
- ]).optional(),
914
- quantity: z.number().optional(),
915
- itemDetails: z.string().optional(),
916
- catalogEffectiveDate: z.string().optional(),
917
- childItems: z.array(z.union([
918
- z.array(z.unknown()),
919
- z.boolean(),
920
- z.number(),
921
- z.object({}),
922
- z.string()
923
- ])).optional()
924
- })).optional()
925
- });
926
- export const zMarketplaceListing = z.object({
927
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
928
- name: z.string(),
929
- developer: z.string(),
930
- description: z.string(),
931
- logoUrl: z.string(),
932
- longDescription: z.string(),
933
- categories: z.array(z.string()),
934
- version_channels: z.array(z.string().regex(/^(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-]+)*))?$/)),
935
- value_schemas: z.array(z.object({
936
- version: z.string().regex(/^(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-]+)*))?$/),
937
- schema: z.string(),
938
- placeholder: z.string()
1165
+ 'paid',
1166
+ 'processing',
1167
+ 'requires_action',
1168
+ 'failed'
1169
+ ]),
1170
+ client_secret: z.string(),
1171
+ failure_code: z.string(),
1172
+ failure_message: z.string()
1173
+ });
1174
+ export const zInvoicePaymentResult = z.object({
1175
+ code: z.enum([
1176
+ 'paid',
1177
+ 'processing',
1178
+ 'action_required',
1179
+ 'partially_paid',
1180
+ 'failed',
1181
+ 'nothing_due',
1182
+ 'bank_transfer_due'
1183
+ ]),
1184
+ message: z.string(),
1185
+ results: z.array(z.object({
1186
+ invoice_id: z.string(),
1187
+ number: z.string(),
1188
+ amount: z.number(),
1189
+ currency: z.string(),
1190
+ status: z.enum([
1191
+ 'paid',
1192
+ 'processing',
1193
+ 'requires_action',
1194
+ 'failed'
1195
+ ]),
1196
+ client_secret: z.string(),
1197
+ failure_code: z.string(),
1198
+ failure_message: z.string()
939
1199
  }))
940
1200
  });
1201
+ export const zInvoice = z.object({
1202
+ id: z.string().optional(),
1203
+ number: z.string().optional(),
1204
+ status: z.string().optional(),
1205
+ total: z.number().optional(),
1206
+ currency: z.string().optional(),
1207
+ created: z.iso.datetime(),
1208
+ period_start: z.iso.datetime(),
1209
+ period_end: z.iso.datetime(),
1210
+ invoice_pdf: z.string().optional()
1211
+ });
941
1212
  export const zOrganizationCreateInput = z.object({
942
- email: z.string().email(),
943
- first_name: z.string(),
944
- last_name: z.string(),
1213
+ type: z.enum(['business', 'personal']),
1214
+ email: z.email(),
1215
+ first_name: z.string().min(1),
1216
+ last_name: z.string().min(1),
945
1217
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
946
1218
  password: z.string().min(8)
947
1219
  });
1220
+ export const zOrganizationCreateOutput = z.object({
1221
+ id: z.string()
1222
+ });
948
1223
  export const zOrganization = z.object({
949
- id: z.string().uuid(),
1224
+ id: z.uuid(),
950
1225
  name: z.string().min(2).max(120).optional(),
951
- date_created: z.string().datetime(),
1226
+ type: z.enum(['business', 'personal']),
1227
+ date_created: z.iso.datetime(),
952
1228
  quota: z.object({
953
- basic_clusters_max: z.number().int().gte(0),
954
- basic_clusters_available: z.number().int(),
955
- pro_clusters_max: z.number().int().gte(0),
956
- pro_clusters_available: z.number().int(),
957
- fleets_max: z.number().int().gte(0),
1229
+ basic_clusters_max: z.int().gte(0),
1230
+ basic_clusters_available: z.int(),
1231
+ pro_clusters_max: z.int().gte(0),
1232
+ pro_clusters_available: z.int(),
1233
+ enterprise_clusters_max: z.int().gte(0),
1234
+ enterprise_clusters_available: z.int(),
1235
+ fleets_max: z.int().gte(0),
958
1236
  cluster_tiers: z.array(z.string()).min(0),
959
1237
  regions: z.array(z.string()).min(1),
960
1238
  versions: z.array(z.object({
961
1239
  id: z.string(),
962
1240
  label: z.string()
963
- })).min(1)
1241
+ })).min(1),
1242
+ cfcr_storage_gb: z.int().gte(-1)
964
1243
  }),
965
1244
  status: z.enum([
966
1245
  'active',
967
1246
  'closed',
968
1247
  'suspended'
1248
+ ]),
1249
+ verification: z.enum([
1250
+ 'none',
1251
+ 'submitted',
1252
+ 'verified'
969
1253
  ])
970
1254
  });
971
1255
  export const zPaymentMethod = z.object({
972
- id: z.string().uuid(),
973
- setup: z.boolean(),
1256
+ id: z.string(),
974
1257
  type: z.enum([
975
- 'card'
1258
+ 'card',
1259
+ 'sepa_debit',
1260
+ 'bank_transfer'
976
1261
  ]),
977
1262
  last4: z.string(),
978
- exp_month: z.number().int().gte(1).lte(12),
979
- exp_year: z.number().int().gte(2024),
980
- brand: z.enum([
981
- 'amex',
982
- 'diners',
983
- 'discover',
984
- 'eftpos_au',
985
- 'jcb',
986
- 'mastercard',
987
- 'unionpay',
988
- 'visa',
989
- 'unknown'
1263
+ exp_month: z.int().gte(1).lte(12),
1264
+ exp_year: z.int(),
1265
+ brand: z.string(),
1266
+ iban: z.string(),
1267
+ bic: z.string(),
1268
+ account_holder_name: z.string(),
1269
+ is_default: z.boolean()
1270
+ });
1271
+ export const zPlatformQuota = z.object({
1272
+ basic_clusters_max: z.int().gte(0),
1273
+ basic_clusters_available: z.int(),
1274
+ pro_clusters_max: z.int().gte(0),
1275
+ pro_clusters_available: z.int(),
1276
+ enterprise_clusters_max: z.int().gte(0),
1277
+ enterprise_clusters_available: z.int(),
1278
+ fleets_max: z.int().gte(0),
1279
+ cluster_tiers: z.array(z.string()).min(0),
1280
+ regions: z.array(z.string()).min(1),
1281
+ versions: z.array(z.object({
1282
+ id: z.string(),
1283
+ label: z.string()
1284
+ })).min(1),
1285
+ cfcr_storage_gb: z.int().gte(-1)
1286
+ });
1287
+ export const zRegistryRepository = z.object({
1288
+ name: z.string(),
1289
+ region: z.string(),
1290
+ uri: z.string()
1291
+ });
1292
+ export const zRegistryRepositoryWithTags = z.object({
1293
+ name: z.string(),
1294
+ region: z.string(),
1295
+ uri: z.string(),
1296
+ tags: z.array(z.object({
1297
+ name: z.string(),
1298
+ size: z.number(),
1299
+ mediaType: z.string().optional(),
1300
+ platforms: z.array(z.string()).optional()
1301
+ })),
1302
+ totalSize: z.number()
1303
+ });
1304
+ export const zRegistryTag = z.object({
1305
+ name: z.string(),
1306
+ digest: z.string(),
1307
+ mediaType: z.string().optional(),
1308
+ config: z.object({
1309
+ size: z.number()
1310
+ }).optional(),
1311
+ layers: z.array(z.object({
1312
+ digest: z.string().optional(),
1313
+ size: z.number()
1314
+ })).optional(),
1315
+ manifests: z.array(z.object({
1316
+ digest: z.string(),
1317
+ platform: z.object({
1318
+ architecture: z.string(),
1319
+ os: z.string(),
1320
+ variant: z.string().optional()
1321
+ }).optional(),
1322
+ layers: z.array(z.object({
1323
+ digest: z.string().optional(),
1324
+ size: z.number()
1325
+ })).optional(),
1326
+ size: z.number().optional()
1327
+ })).optional(),
1328
+ size: z.number(),
1329
+ region: z.string(),
1330
+ repository: z.string(),
1331
+ uri: z.string()
1332
+ });
1333
+ export const zRoadmapItemCreateInput = z.object({
1334
+ text: z.string().min(1).max(500)
1335
+ });
1336
+ export const zRoadmapItem = z.object({
1337
+ id: z.string(),
1338
+ text: z.string(),
1339
+ vote: z.union([
1340
+ z.literal(-1),
1341
+ z.literal(1),
1342
+ z.literal(2)
1343
+ ])
1344
+ });
1345
+ export const zRoadmapVoteInput = z.object({
1346
+ value: z.union([
1347
+ z.literal(-1),
1348
+ z.literal(1),
1349
+ z.literal(2)
990
1350
  ])
991
1351
  });
1352
+ export const zTicketAttachment = z.object({
1353
+ id: z.string(),
1354
+ filename: z.string(),
1355
+ content_type: z.string(),
1356
+ size: z.int()
1357
+ });
1358
+ export const zTicketCreateInput = z.object({
1359
+ category: z.enum([
1360
+ 'billing',
1361
+ 'technical',
1362
+ 'general'
1363
+ ]),
1364
+ body: z.string().min(1).max(50000).regex(/\S/),
1365
+ properties: z.record(z.string(), z.unknown()).optional(),
1366
+ grant_support_access: z.boolean().optional()
1367
+ });
1368
+ export const zTicketMessageInput = z.object({
1369
+ body: z.string().min(1).max(50000).regex(/\S/)
1370
+ });
1371
+ export const zTicketMessage = z.object({
1372
+ id: z.string(),
1373
+ type: z.enum(['customer_reply', 'agent_reply']),
1374
+ body: z.string(),
1375
+ author_first_name: z.string().optional(),
1376
+ author_last_name: z.string().optional(),
1377
+ attachments: z.array(z.object({
1378
+ id: z.string(),
1379
+ filename: z.string(),
1380
+ content_type: z.string(),
1381
+ size: z.int()
1382
+ })).optional(),
1383
+ date_created: z.iso.datetime()
1384
+ });
1385
+ export const zTicket = z.object({
1386
+ id: z.string(),
1387
+ status: z.enum([
1388
+ 'waiting_on_us',
1389
+ 'waiting_on_user',
1390
+ 'closed'
1391
+ ]),
1392
+ category: z.enum([
1393
+ 'billing',
1394
+ 'technical',
1395
+ 'general'
1396
+ ]),
1397
+ summary: z.string(),
1398
+ support_access_granted: z.boolean(),
1399
+ support_access_granted_at: z.iso.datetime(),
1400
+ closed_at: z.iso.datetime().optional(),
1401
+ date_created: z.iso.datetime(),
1402
+ date_updated: z.iso.datetime(),
1403
+ messages: z.array(z.object({
1404
+ id: z.string(),
1405
+ type: z.enum(['customer_reply', 'agent_reply']),
1406
+ body: z.string(),
1407
+ author_first_name: z.string().optional(),
1408
+ author_last_name: z.string().optional(),
1409
+ attachments: z.array(z.object({
1410
+ id: z.string(),
1411
+ filename: z.string(),
1412
+ content_type: z.string(),
1413
+ size: z.int()
1414
+ })).optional(),
1415
+ date_created: z.iso.datetime()
1416
+ })).optional()
1417
+ });
992
1418
  export const zTokenCreateInput = z.object({
993
1419
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
994
- role: z.enum([
995
- 'Administrator',
996
- 'User'
997
- ])
1420
+ role: z.enum(['Administrator', 'User'])
998
1421
  });
999
1422
  export const zToken = z.object({
1000
1423
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1001
- role: z.enum([
1002
- 'Administrator',
1003
- 'User'
1004
- ]),
1424
+ role: z.enum(['Administrator', 'User']),
1005
1425
  id: z.string().optional(),
1006
1426
  secret: z.string().optional(),
1007
- date_created: z.string().datetime()
1427
+ date_created: z.iso.datetime()
1008
1428
  });
1009
1429
  export const zTokenUpdateInput = z.object({
1010
1430
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1011
- role: z.enum([
1012
- 'Administrator',
1013
- 'User'
1014
- ]).optional()
1431
+ role: z.enum(['Administrator', 'User']).optional()
1432
+ });
1433
+ export const zUsageFacets = z.object({
1434
+ cluster_id: z.array(z.string()).optional(),
1435
+ product: z.array(z.enum([
1436
+ 'cfke_controlplane_basic',
1437
+ 'cfke_controlplane_pro',
1438
+ 'cfke_controlplane_enterprise',
1439
+ 'cfke_connected_nodes_basic',
1440
+ 'cfke_connected_nodes_pro',
1441
+ 'cfke_connected_nodes_enterprise',
1442
+ 'cfcr_storage'
1443
+ ])).optional()
1444
+ });
1445
+ export const zUsageResponse = z.object({
1446
+ data: z.array(z.object({
1447
+ hour: z.string(),
1448
+ cluster_id: z.string(),
1449
+ product: z.enum([
1450
+ 'cfke_controlplane_basic',
1451
+ 'cfke_controlplane_pro',
1452
+ 'cfke_controlplane_enterprise',
1453
+ 'cfke_connected_nodes_basic',
1454
+ 'cfke_connected_nodes_pro',
1455
+ 'cfke_connected_nodes_enterprise',
1456
+ 'cfcr_storage'
1457
+ ]),
1458
+ value: z.number(),
1459
+ price: z.number(),
1460
+ total: z.number()
1461
+ })),
1462
+ facets: z.object({
1463
+ cluster_id: z.array(z.string()).optional(),
1464
+ product: z.array(z.enum([
1465
+ 'cfke_controlplane_basic',
1466
+ 'cfke_controlplane_pro',
1467
+ 'cfke_controlplane_enterprise',
1468
+ 'cfke_connected_nodes_basic',
1469
+ 'cfke_connected_nodes_pro',
1470
+ 'cfke_connected_nodes_enterprise',
1471
+ 'cfcr_storage'
1472
+ ])).optional()
1473
+ })
1015
1474
  });
1016
1475
  export const zUsage = z.object({
1017
- hour: z.string().optional(),
1018
- cluster_id: z.string().uuid(),
1019
- cluster_tier: z.enum([
1020
- 'basic',
1021
- 'pro',
1022
- ''
1023
- ]),
1476
+ hour: z.string(),
1477
+ cluster_id: z.string(),
1024
1478
  product: z.enum([
1025
- 'cfke_controlplane',
1026
- 'cfke_connected_nodes',
1027
- 'infra_compute',
1028
- 'infra_storage',
1029
- 'infra_loadbalancing',
1030
- 'infra_traffic',
1479
+ 'cfke_controlplane_basic',
1480
+ 'cfke_controlplane_pro',
1481
+ 'cfke_controlplane_enterprise',
1482
+ 'cfke_connected_nodes_basic',
1483
+ 'cfke_connected_nodes_pro',
1484
+ 'cfke_connected_nodes_enterprise',
1031
1485
  'cfcr_storage'
1032
1486
  ]),
1033
- node_name: z.string(),
1034
- sku: z.string(),
1035
- cpu: z.union([
1036
- z.number(),
1037
- z.enum([
1038
- ''
1039
- ])
1040
- ]),
1041
- price: z.union([
1042
- z.number(),
1043
- z.enum([
1044
- ''
1045
- ])
1046
- ]),
1047
- value: z.union([
1048
- z.number(),
1049
- z.enum([
1050
- ''
1051
- ])
1052
- ]),
1053
- total: z.union([
1054
- z.number(),
1055
- z.enum([
1056
- ''
1057
- ])
1058
- ])
1487
+ value: z.number(),
1488
+ price: z.number(),
1489
+ total: z.number()
1059
1490
  });
1060
1491
  export const zUserCreateInput = z.object({
1061
- email: z.string().email(),
1492
+ email: z.email(),
1062
1493
  first_name: z.string().min(1).max(50),
1063
1494
  last_name: z.string().min(1).max(50),
1064
1495
  code: z.string(),
1065
- password: z.string().min(8),
1066
- status: z.enum([
1067
- 'active',
1068
- 'inactive'
1069
- ]).optional(),
1070
- role: z.enum([
1071
- 'Administrator',
1072
- 'User'
1073
- ]).optional()
1496
+ password: z.string().min(8)
1074
1497
  });
1075
1498
  export const zUser = z.object({
1076
- email: z.string().email(),
1499
+ email: z.email(),
1077
1500
  first_name: z.string().min(1).max(50),
1078
1501
  last_name: z.string().min(1).max(50),
1079
- role: z.enum([
1080
- 'Administrator',
1081
- 'User'
1082
- ]),
1083
- status: z.enum([
1084
- 'active',
1085
- 'inactive'
1086
- ]),
1087
- id: z.string().uuid(),
1088
- date_created: z.string().datetime()
1502
+ role: z.enum(['Administrator', 'User']),
1503
+ status: z.enum(['active', 'inactive']),
1504
+ id: z.uuid(),
1505
+ date_created: z.iso.datetime()
1089
1506
  });
1090
1507
  export const zUserUpdateInput = z.object({
1091
- email: z.string().email().optional(),
1508
+ email: z.email().optional(),
1092
1509
  first_name: z.string().min(1).max(50).optional(),
1093
1510
  last_name: z.string().min(1).max(50).optional(),
1094
- role: z.enum([
1095
- 'Administrator',
1096
- 'User'
1097
- ]).optional(),
1098
- status: z.enum([
1099
- 'active',
1100
- 'inactive'
1101
- ]).optional()
1511
+ role: z.enum(['Administrator', 'User']).optional(),
1512
+ status: z.enum(['active', 'inactive']).optional()
1102
1513
  });
1103
- export const zGetUsageData = z.object({
1104
- body: z.never().optional(),
1105
- path: z.never().optional(),
1106
- query: z.never().optional()
1514
+ export const zListUserOrganizationsPath = z.object({
1515
+ email: z.string()
1107
1516
  });
1108
1517
  /**
1109
- * An array of usage records.
1518
+ * An array of organizations the user belongs to.
1110
1519
  */
1111
- export const zGetUsageResponse = z.array(zUsage);
1112
- export const zGetBalanceData = z.object({
1113
- body: z.never().optional(),
1114
- path: z.never().optional(),
1115
- query: z.never().optional()
1116
- });
1520
+ export const zListUserOrganizationsResponse = z.array(z.object({
1521
+ realm: z.string().optional(),
1522
+ displayName: z.string().optional()
1523
+ }));
1117
1524
  /**
1118
- * Current balance of the organization in USD as a floating-point number.
1525
+ * An array of users
1119
1526
  */
1120
- export const zGetBalanceResponse = z.number();
1121
- export const zGetPaymentMethodData = z.object({
1122
- body: z.never().optional(),
1123
- path: z.never().optional(),
1124
- query: z.never().optional()
1125
- });
1527
+ export const zListUsersResponse = z.array(zUser);
1528
+ export const zCreateUserBody = zUserCreateInput;
1126
1529
  /**
1127
- * Redacted payment card information.
1530
+ * Successfully created. Returns created user details.
1128
1531
  */
1129
- export const zGetPaymentMethodResponse = zPaymentMethod;
1130
- export const zGetPaymentMethodSecretData = z.object({
1131
- body: z.never().optional(),
1132
- path: z.never().optional(),
1133
- query: z.never().optional()
1532
+ export const zCreateUserResponse = zUser;
1533
+ export const zDeleteUserPath = z.object({
1534
+ user_id: z.string()
1134
1535
  });
1135
1536
  /**
1136
- * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1137
- *
1537
+ * User profile information
1138
1538
  */
1139
- export const zGetPaymentMethodSecretResponse = z.object({
1140
- id: z.string().optional()
1141
- });
1142
- export const zListInvoicesData = z.object({
1143
- body: z.never().optional(),
1144
- path: z.never().optional(),
1145
- query: z.object({
1146
- start_date: z.string(),
1147
- end_date: z.string()
1148
- })
1539
+ export const zDeleteUserResponse = zUser;
1540
+ export const zGetUserPath = z.object({
1541
+ user_id: z.string()
1149
1542
  });
1150
1543
  /**
1151
- * An array of usage records.
1544
+ * User profile information
1152
1545
  */
1153
- export const zListInvoicesResponse = z.array(zInvoice);
1154
- export const zGetInvoiceData = z.object({
1155
- body: z.never().optional(),
1156
- path: z.object({
1157
- id: z.string()
1158
- }),
1159
- query: z.never().optional()
1546
+ export const zGetUserResponse = zUser;
1547
+ export const zUpdateUserBody = zUserUpdateInput;
1548
+ export const zUpdateUserPath = z.object({
1549
+ user_id: z.string()
1160
1550
  });
1161
1551
  /**
1162
- * Returns a single Invoice HTML representation under `html` property.
1552
+ * Successfully created. Returns created user details.
1163
1553
  */
1164
- export const zGetInvoiceResponse = z.object({
1165
- html: z.string().optional()
1554
+ export const zUpdateUserResponse = zUser;
1555
+ /**
1556
+ * Returns a list of access token details with masked secrets.
1557
+ */
1558
+ export const zListTokensResponse = z.array(zToken);
1559
+ export const zCreateTokenBody = zTokenCreateInput;
1560
+ /**
1561
+ * Successfully created. Returns created token details with unmasked/raw secret.
1562
+ */
1563
+ export const zCreateTokenResponse = zToken;
1564
+ export const zDeleteTokenPath = z.object({
1565
+ token_id: z.string()
1166
1566
  });
1167
- export const zGetContactData = z.object({
1168
- body: z.never().optional(),
1169
- path: z.never().optional(),
1170
- query: z.never().optional()
1567
+ export const zGetTokenPath = z.object({
1568
+ token_id: z.string()
1171
1569
  });
1172
1570
  /**
1173
- * Returns a single object containing organization contact and billing address details.
1571
+ * Returns access token details with masked secret.
1174
1572
  */
1175
- export const zGetContactResponse = zBillingContact;
1176
- export const zUpdateContactData = z.object({
1177
- body: zBillingContact,
1178
- path: z.never().optional(),
1179
- query: z.never().optional()
1573
+ export const zGetTokenResponse = zToken;
1574
+ export const zUpdateTokenBody = zTokenUpdateInput;
1575
+ export const zUpdateTokenPath = z.object({
1576
+ token_id: z.string()
1180
1577
  });
1181
1578
  /**
1182
- * Successfully updated. Returns updated organization details.
1579
+ * Successfully updated. Returns updated token details with masked secret.
1183
1580
  */
1184
- export const zUpdateContactResponse = zBillingContact;
1185
- export const zGetCreditsData = z.object({
1186
- body: z.never().optional(),
1187
- path: z.never().optional(),
1188
- query: z.never().optional()
1581
+ export const zUpdateTokenResponse = zToken;
1582
+ export const zRegenerateTokenPath = z.object({
1583
+ token_id: z.string()
1189
1584
  });
1190
1585
  /**
1191
- * An array of the applied promotional credits records.
1586
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1192
1587
  */
1193
- export const zGetCreditsResponse = z.array(zBillingCredits);
1194
- export const zRedeemCreditsData = z.object({
1195
- body: z.object({
1196
- code: z.string().optional()
1197
- }),
1198
- path: z.never().optional(),
1199
- query: z.never().optional()
1200
- });
1201
- export const zListChartsData = z.object({
1202
- body: z.never().optional(),
1203
- path: z.object({
1204
- cluster_id: z.string()
1205
- }),
1206
- query: z.never().optional()
1207
- });
1588
+ export const zRegenerateTokenResponse = zToken;
1208
1589
  /**
1209
- * An array of charts
1590
+ * An array of tickets for the organization, newest first.
1210
1591
  */
1211
- export const zListChartsResponse = z.array(zChart);
1212
- export const zCreateChartData = z.object({
1213
- body: zChartCreateInput,
1214
- path: z.object({
1215
- cluster_id: z.string()
1216
- }),
1217
- query: z.never().optional()
1592
+ export const zListTicketsResponse = z.array(zTicket);
1593
+ export const zCreateTicketBody = z.object({
1594
+ payload: z.string().optional(),
1595
+ attachments: z.array(z.string()).optional()
1218
1596
  });
1219
1597
  /**
1220
- * Successfully created. Returns created Chart ID.
1598
+ * Ticket created.
1221
1599
  */
1222
- export const zCreateChartResponse = z.string();
1223
- export const zDeleteChartData = z.object({
1224
- body: z.never().optional(),
1225
- path: z.object({
1226
- cluster_id: z.string(),
1227
- chart_name: z.string()
1228
- }),
1229
- query: z.never().optional()
1600
+ export const zCreateTicketResponse = zTicket;
1601
+ export const zCloseTicketPath = z.object({
1602
+ ticket_id: z.string()
1230
1603
  });
1231
1604
  /**
1232
- * Successfully deleted.
1605
+ * Ticket closed.
1233
1606
  */
1234
- export const zDeleteChartResponse = z.string();
1235
- export const zGetChartData = z.object({
1236
- body: z.never().optional(),
1237
- path: z.object({
1238
- cluster_id: z.string(),
1239
- chart_name: z.string()
1240
- }),
1241
- query: z.never().optional()
1607
+ export const zCloseTicketResponse = zTicket;
1608
+ export const zGetTicketPath = z.object({
1609
+ ticket_id: z.string()
1242
1610
  });
1243
1611
  /**
1244
- * Returns a single object containing chart details.
1612
+ * Ticket with messages (internal notes excluded).
1245
1613
  */
1246
- export const zGetChartResponse = zChart;
1247
- export const zUpdateChartData = z.object({
1248
- body: zChartUpdateInput,
1249
- path: z.object({
1250
- cluster_id: z.string(),
1251
- chart_name: z.string()
1252
- }),
1253
- query: z.never().optional()
1614
+ export const zGetTicketResponse = zTicket;
1615
+ export const zGrantTicketSupportAccessPath = z.object({
1616
+ ticket_id: z.string()
1254
1617
  });
1255
1618
  /**
1256
- * Successfully updated.
1619
+ * Support access granted.
1257
1620
  */
1258
- export const zUpdateChartResponse = z.string();
1259
- export const zListFleetsData = z.object({
1260
- body: z.never().optional(),
1261
- path: z.object({
1262
- cluster_id: z.string()
1263
- }),
1264
- query: z.never().optional()
1621
+ export const zGrantTicketSupportAccessResponse = zTicket;
1622
+ export const zReplyTicketBody = z.object({
1623
+ payload: z.string().optional(),
1624
+ attachments: z.array(z.string()).optional()
1625
+ });
1626
+ export const zReplyTicketPath = z.object({
1627
+ ticket_id: z.string()
1265
1628
  });
1266
1629
  /**
1267
- * An array of fleets
1630
+ * Reply appended.
1268
1631
  */
1269
- export const zListFleetsResponse = z.array(zFleet);
1270
- export const zCreateFleetData = z.object({
1271
- body: zFleetCreateInput,
1272
- path: z.object({
1273
- cluster_id: z.string()
1274
- }),
1275
- query: z.never().optional()
1632
+ export const zReplyTicketResponse = zTicketMessage;
1633
+ export const zGetTicketAttachmentPath = z.object({
1634
+ ticket_id: z.string(),
1635
+ attachment_id: z.string()
1276
1636
  });
1277
1637
  /**
1278
- * Successfully created. Returns created Fleet ID.
1638
+ * Attachment binary stream.
1279
1639
  */
1280
- export const zCreateFleetResponse = z.string();
1281
- export const zDeleteFleetData = z.object({
1282
- body: z.never().optional(),
1283
- path: z.object({
1284
- cluster_id: z.string(),
1285
- fleet_name: z.string()
1286
- }),
1287
- query: z.never().optional()
1288
- });
1640
+ export const zGetTicketAttachmentResponse = z.string();
1289
1641
  /**
1290
- * Successfully deleted.
1642
+ * An array of roadmap items, newest first.
1291
1643
  */
1292
- export const zDeleteFleetResponse = z.string();
1293
- export const zGetFleetData = z.object({
1294
- body: z.never().optional(),
1295
- path: z.object({
1296
- cluster_id: z.string(),
1297
- fleet_name: z.string()
1298
- }),
1299
- query: z.never().optional()
1300
- });
1644
+ export const zListRoadmapResponse = z.array(zRoadmapItem);
1645
+ export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
1301
1646
  /**
1302
- * Returns a single object containing fleet details.
1647
+ * Suggestion submitted for review.
1303
1648
  */
1304
- export const zGetFleetResponse = zFleet;
1305
- export const zUpdateFleetData = z.object({
1306
- body: zFleetUpdateInput,
1307
- path: z.object({
1308
- cluster_id: z.string(),
1309
- fleet_name: z.string()
1310
- }),
1311
- query: z.never().optional()
1649
+ export const zSuggestRoadmapResponse = zRoadmapItem;
1650
+ export const zUnvoteRoadmapPath = z.object({
1651
+ item_id: z.string()
1312
1652
  });
1313
1653
  /**
1314
- * Successfully updated.
1654
+ * Vote removed. Returns the item without a vote.
1315
1655
  */
1316
- export const zUpdateFleetResponse = z.string();
1317
- export const zQueryClusterData = z.object({
1318
- body: z.never().optional(),
1319
- path: z.object({
1320
- cluster_id: z.string()
1321
- }),
1322
- query: z.never().optional()
1323
- });
1324
- export const zListClustersData = z.object({
1325
- body: z.never().optional(),
1326
- path: z.never().optional(),
1327
- query: z.never().optional()
1656
+ export const zUnvoteRoadmapResponse = zRoadmapItem;
1657
+ export const zVoteRoadmapBody = zRoadmapVoteInput;
1658
+ export const zVoteRoadmapPath = z.object({
1659
+ item_id: z.string()
1328
1660
  });
1329
1661
  /**
1330
- * An array of clusters
1662
+ * Vote saved. Returns the item with your vote.
1331
1663
  */
1332
- export const zListClustersResponse = z.array(zCluster);
1333
- export const zCreateClusterData = z.object({
1334
- body: zClusterCreateInput,
1335
- path: z.never().optional(),
1336
- query: z.never().optional()
1337
- });
1664
+ export const zVoteRoadmapResponse = zRoadmapItem;
1338
1665
  /**
1339
- * Successfully created. Returns created Cluster ID.
1666
+ * List of repositories
1340
1667
  */
1341
- export const zCreateClusterResponse = z.string();
1342
- export const zDeleteClusterData = z.object({
1343
- body: z.never().optional(),
1344
- path: z.object({
1345
- cluster_id: z.string()
1346
- }),
1347
- query: z.never().optional()
1668
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1669
+ export const zListTagsPath = z.object({
1670
+ region: z.string(),
1671
+ repository: z.string()
1348
1672
  });
1349
1673
  /**
1350
- * Successfully deleted.
1674
+ * Repository with tags
1351
1675
  */
1352
- export const zDeleteClusterResponse = z.string();
1353
- export const zGetClusterData = z.object({
1354
- body: z.never().optional(),
1355
- path: z.object({
1356
- cluster_id: z.string()
1357
- }),
1358
- query: z.never().optional()
1676
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1677
+ export const zDeleteTagPath = z.object({
1678
+ region: z.string(),
1679
+ repository: z.string(),
1680
+ tag: z.string()
1681
+ });
1682
+ export const zGetTagPath = z.object({
1683
+ region: z.string(),
1684
+ repository: z.string(),
1685
+ tag: z.string()
1359
1686
  });
1360
1687
  /**
1361
- * Returns a single object containing cluster details.
1688
+ * Tag details
1362
1689
  */
1363
- export const zGetClusterResponse = zCluster;
1364
- export const zUpdateClusterData = z.object({
1365
- body: zClusterUpdateInput,
1366
- path: z.object({
1367
- cluster_id: z.string()
1368
- }),
1369
- query: z.never().optional()
1370
- });
1690
+ export const zGetTagResponse = zRegistryTag;
1371
1691
  /**
1372
- * Successfully updated. Returns updated cluster details.
1692
+ * Returns a single object containing organization details.
1373
1693
  */
1374
- export const zUpdateClusterResponse = zCluster;
1375
- export const zGetJoinInformationData = z.object({
1376
- body: z.never().optional(),
1377
- path: z.object({
1378
- cluster_id: z.string()
1379
- }),
1380
- query: z.never().optional()
1694
+ export const zGetOrganizationResponse = zOrganization;
1695
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1696
+ /**
1697
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1698
+ *
1699
+ */
1700
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1701
+ /**
1702
+ * JSON-RPC 2.0 request payload
1703
+ */
1704
+ export const zPostMcpBody = z.object({
1705
+ jsonrpc: z.string().optional(),
1706
+ method: z.string().optional(),
1707
+ id: z.union([
1708
+ z.string(),
1709
+ z.number()
1710
+ ]).optional(),
1711
+ params: z.record(z.string(), z.unknown()).optional()
1381
1712
  });
1382
1713
  /**
1383
- * An object of cluster join information
1714
+ * JSON-RPC 2.0 success or error response
1384
1715
  */
1385
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1386
- export const zListInvitesData = z.object({
1387
- body: z.never().optional(),
1388
- path: z.never().optional(),
1389
- query: z.never().optional()
1716
+ export const zPostMcpResponse = z.object({
1717
+ jsonrpc: z.string().optional(),
1718
+ id: z.union([
1719
+ z.string(),
1720
+ z.number()
1721
+ ]).optional(),
1722
+ result: z.record(z.string(), z.unknown()).optional(),
1723
+ error: z.object({
1724
+ code: z.int().optional(),
1725
+ message: z.string().optional()
1726
+ }).optional()
1390
1727
  });
1391
1728
  /**
1392
1729
  * An array of invites
1393
1730
  */
1394
1731
  export const zListInvitesResponse = z.array(zInvite);
1395
- export const zCreateInviteData = z.object({
1396
- body: z.object({
1397
- email: z.string().optional()
1398
- }),
1399
- path: z.never().optional(),
1400
- query: z.never().optional()
1401
- });
1732
+ export const zCreateInviteBody = zInviteCreateInput;
1402
1733
  /**
1403
1734
  * Successfully created. Returns created invite details.
1404
1735
  */
1405
1736
  export const zCreateInviteResponse = zInvite;
1406
- export const zGetInviteData = z.object({
1407
- body: z.never().optional(),
1408
- path: z.object({
1409
- code: z.string()
1410
- }),
1411
- query: z.never().optional()
1737
+ export const zGetInvitePath = z.object({
1738
+ code: z.string()
1412
1739
  });
1413
1740
  /**
1414
- * Returns a single object containing invite details.
1741
+ * The invitation code is valid. Returns the invited email and organization.
1415
1742
  */
1416
- export const zGetInviteResponse = zInvite;
1417
- export const zDeleteInviteData = z.object({
1418
- body: z.never().optional(),
1419
- path: z.object({
1420
- email: z.string()
1421
- }),
1422
- query: z.never().optional()
1743
+ export const zGetInviteResponse = z.object({
1744
+ email: z.email().optional(),
1745
+ organization_id: z.string().optional()
1423
1746
  });
1424
- export const zListMarketplaceChartsData = z.object({
1425
- body: z.never().optional(),
1426
- path: z.never().optional(),
1427
- query: z.never().optional()
1747
+ export const zDeleteInvitePath = z.object({
1748
+ email: z.email()
1428
1749
  });
1750
+ export const zSendFeedbackBody = zFeedbackCreateInput;
1429
1751
  /**
1430
- * An array of chart listings in the marketplace.
1752
+ * Feedback received.
1431
1753
  */
1432
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1433
- export const zGetMarketplaceChartData = z.object({
1434
- body: z.never().optional(),
1435
- path: z.object({
1436
- listing_id: z.string()
1437
- }),
1438
- query: z.never().optional()
1754
+ export const zSendFeedbackResponse = zFeedback;
1755
+ export const zQueryClusterPath = z.object({
1756
+ cluster_id: z.string()
1757
+ });
1758
+ export const zListFleetsPath = z.object({
1759
+ cluster_id: z.string()
1439
1760
  });
1440
1761
  /**
1441
- * Returns an object containing the chart listing details.
1762
+ * An array of fleets
1442
1763
  */
1443
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1444
- export const zGetOrganizationData = z.object({
1445
- body: z.never().optional(),
1446
- path: z.never().optional(),
1447
- query: z.never().optional()
1764
+ export const zListFleetsResponse = z.array(zFleet);
1765
+ export const zCreateFleetBody = zFleetCreateInput;
1766
+ export const zCreateFleetPath = z.object({
1767
+ cluster_id: z.string()
1448
1768
  });
1449
1769
  /**
1450
- * Returns a single object containing organization details.
1770
+ * Successfully created. Returns created Fleet ID.
1451
1771
  */
1452
- export const zGetOrganizationResponse = zOrganization;
1453
- export const zCreateOrganizationData = z.object({
1454
- body: zOrganizationCreateInput,
1455
- path: z.never().optional(),
1456
- query: z.never().optional()
1457
- });
1458
- export const zListTokensData = z.object({
1459
- body: z.never().optional(),
1460
- path: z.never().optional(),
1461
- query: z.never().optional()
1772
+ export const zCreateFleetResponse = z.string();
1773
+ export const zDeleteFleetPath = z.object({
1774
+ cluster_id: z.string(),
1775
+ fleet_name: z.string()
1462
1776
  });
1463
1777
  /**
1464
- * Returns a list of access token details with masked secrets.
1778
+ * Successfully deleted.
1465
1779
  */
1466
- export const zListTokensResponse = z.array(zToken);
1467
- export const zCreateTokenData = z.object({
1468
- body: zTokenCreateInput,
1469
- path: z.never().optional(),
1470
- query: z.never().optional()
1780
+ export const zDeleteFleetResponse = z.string();
1781
+ export const zGetFleetPath = z.object({
1782
+ cluster_id: z.string(),
1783
+ fleet_name: z.string()
1471
1784
  });
1472
1785
  /**
1473
- * Successfully created. Returns created token details with unmasked/raw secret.
1786
+ * Returns a single object containing fleet details.
1474
1787
  */
1475
- export const zCreateTokenResponse = zToken;
1476
- export const zDeleteTokenData = z.object({
1477
- body: z.never().optional(),
1478
- path: z.object({
1479
- token_id: z.string()
1480
- }),
1481
- query: z.never().optional()
1482
- });
1483
- export const zGetTokenData = z.object({
1484
- body: z.never().optional(),
1485
- path: z.object({
1486
- token_id: z.string()
1487
- }),
1488
- query: z.never().optional()
1788
+ export const zGetFleetResponse = zFleet;
1789
+ export const zUpdateFleetBody = zFleetUpdateInput;
1790
+ export const zUpdateFleetPath = z.object({
1791
+ cluster_id: z.string(),
1792
+ fleet_name: z.string()
1489
1793
  });
1490
1794
  /**
1491
- * Returns access token details with masked secret.
1795
+ * Successfully updated.
1492
1796
  */
1493
- export const zGetTokenResponse = zToken;
1494
- export const zUpdateTokenData = z.object({
1495
- body: zTokenUpdateInput,
1496
- path: z.object({
1497
- token_id: z.string()
1498
- }),
1499
- query: z.never().optional()
1797
+ export const zUpdateFleetResponse = z.string();
1798
+ /**
1799
+ * An array of clusters
1800
+ */
1801
+ export const zListClustersResponse = z.array(zCluster);
1802
+ export const zCreateClusterBody = zClusterCreateInput;
1803
+ /**
1804
+ * Successfully created. Returns created Cluster ID.
1805
+ */
1806
+ export const zCreateClusterResponse = z.string();
1807
+ export const zDeleteClusterPath = z.object({
1808
+ cluster_id: z.string()
1500
1809
  });
1501
1810
  /**
1502
- * Successfully updated. Returns updated token details with masked secret.
1811
+ * Successfully deleted. The cluster has been torn down.
1503
1812
  */
1504
- export const zUpdateTokenResponse = zToken;
1505
- export const zRegenerateTokenData = z.object({
1506
- body: z.never().optional(),
1507
- path: z.object({
1508
- token_id: z.string()
1509
- }),
1510
- query: z.never().optional()
1813
+ export const zDeleteClusterResponse = z.string();
1814
+ export const zGetClusterPath = z.object({
1815
+ cluster_id: z.string()
1511
1816
  });
1512
1817
  /**
1513
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1818
+ * Returns a single object containing cluster details.
1514
1819
  */
1515
- export const zRegenerateTokenResponse = zToken;
1516
- export const zListUserOrganizationsData = z.object({
1517
- body: z.never().optional(),
1518
- path: z.object({
1519
- email: z.string()
1520
- }),
1521
- query: z.never().optional()
1820
+ export const zGetClusterResponse = zCluster;
1821
+ export const zUpdateClusterBody = zClusterUpdateInput;
1822
+ export const zUpdateClusterPath = z.object({
1823
+ cluster_id: z.string()
1522
1824
  });
1523
1825
  /**
1524
- * An array of organizations the user belongs to.
1826
+ * Successfully updated. Returns updated cluster details.
1525
1827
  */
1526
- export const zListUserOrganizationsResponse = z.array(z.object({
1527
- realm: z.string().optional(),
1528
- displayName: z.string().optional()
1529
- }));
1530
- export const zListUsersData = z.object({
1531
- body: z.never().optional(),
1532
- path: z.never().optional(),
1533
- query: z.never().optional()
1828
+ export const zUpdateClusterResponse = zCluster;
1829
+ export const zGetJoinInformationPath = z.object({
1830
+ cluster_id: z.string()
1534
1831
  });
1535
1832
  /**
1536
- * An array of users
1833
+ * An object of cluster join information
1537
1834
  */
1538
- export const zListUsersResponse = z.array(zUser);
1539
- export const zCreateUserData = z.object({
1540
- body: zUserCreateInput,
1541
- path: z.never().optional(),
1542
- query: z.never().optional()
1835
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1836
+ export const zGetUsageQuery = z.object({
1837
+ granularity: z.enum([
1838
+ 'hourly',
1839
+ 'daily',
1840
+ 'monthly'
1841
+ ]).optional().default('daily')
1543
1842
  });
1544
1843
  /**
1545
- * Successfully created. Returns created user details.
1844
+ * Usage data with facets for filtering
1546
1845
  */
1547
- export const zCreateUserResponse = zUser;
1548
- export const zDeleteUserData = z.object({
1549
- body: z.never().optional(),
1550
- path: z.object({
1551
- user_id: z.string()
1552
- }),
1553
- query: z.never().optional()
1846
+ export const zGetUsageResponse = zUsageResponse;
1847
+ /**
1848
+ * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1849
+ *
1850
+ */
1851
+ export const zGetPaymentMethodSecretResponse = z.object({
1852
+ id: z.string().optional()
1554
1853
  });
1555
1854
  /**
1556
- * User profile information
1855
+ * An array of payment methods.
1557
1856
  */
1558
- export const zDeleteUserResponse = zUser;
1559
- export const zGetUserData = z.object({
1560
- body: z.never().optional(),
1561
- path: z.object({
1562
- user_id: z.string()
1563
- }),
1564
- query: z.never().optional()
1857
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1858
+ export const zSetDefaultPaymentMethodPath = z.object({
1859
+ paymentMethodId: z.string()
1565
1860
  });
1566
1861
  /**
1567
- * User profile information
1862
+ * Default payment method updated.
1568
1863
  */
1569
- export const zGetUserResponse = zUser;
1570
- export const zUpdateUserData = z.object({
1571
- body: zUserUpdateInput,
1572
- path: z.object({
1573
- user_id: z.string()
1574
- }),
1575
- query: z.never().optional()
1864
+ export const zSetDefaultPaymentMethodResponse = z.void();
1865
+ export const zDeletePaymentMethodPath = z.object({
1866
+ paymentMethodId: z.string()
1576
1867
  });
1577
1868
  /**
1578
- * Successfully created. Returns created user details.
1869
+ * Payment method deleted.
1579
1870
  */
1580
- export const zUpdateUserResponse = zUser;
1871
+ export const zDeletePaymentMethodResponse = z.void();
1872
+ /**
1873
+ * An array of usage records.
1874
+ */
1875
+ export const zListInvoicesResponse = z.array(zInvoice);
1876
+ /**
1877
+ * The outcome of the attempt.
1878
+ */
1879
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1880
+ /**
1881
+ * Returns a single object containing organization contact and billing address details.
1882
+ */
1883
+ export const zGetContactResponse = zBillingContact;
1884
+ export const zUpdateContactBody = zBillingContact;
1885
+ /**
1886
+ * Successfully updated. Returns updated organization details.
1887
+ */
1888
+ export const zUpdateContactResponse = zBillingContact;
1889
+ /**
1890
+ * An array of the applied promotional credits records.
1891
+ */
1892
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1893
+ export const zRedeemCreditsBody = z.object({
1894
+ code: z.string().optional()
1895
+ });
1581
1896
  //# sourceMappingURL=zod.gen.js.map