@cloudfleet/sdk 0.0.1-830b4e3 → 0.0.1-8608ef2

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 (94) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1026 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1194 -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} +21 -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} +21 -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/schemas.gen.d.ts +1764 -639
  59. package/dist/schemas.gen.d.ts.map +1 -1
  60. package/dist/schemas.gen.js +3159 -688
  61. package/dist/schemas.gen.js.map +1 -1
  62. package/dist/sdk.gen.d.ts +300 -161
  63. package/dist/sdk.gen.d.ts.map +1 -1
  64. package/dist/sdk.gen.js +423 -335
  65. package/dist/sdk.gen.js.map +1 -1
  66. package/dist/services/kubernetes/api.d.ts +20 -20
  67. package/dist/types.gen.d.ts +1939 -841
  68. package/dist/types.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.d.ts +3947 -3751
  70. package/dist/zod.gen.d.ts.map +1 -1
  71. package/dist/zod.gen.js +1478 -1151
  72. package/dist/zod.gen.js.map +1 -1
  73. package/package.json +28 -8
  74. package/dist/client/client.d.ts +0 -3
  75. package/dist/client/client.d.ts.map +0 -1
  76. package/dist/client/client.js +0 -144
  77. package/dist/client/client.js.map +0 -1
  78. package/dist/client/types.d.ts.map +0 -1
  79. package/dist/client/types.js +0 -2
  80. package/dist/client/types.js.map +0 -1
  81. package/dist/client/utils.d.ts.map +0 -1
  82. package/dist/client/utils.js.map +0 -1
  83. package/dist/core/auth.d.ts.map +0 -1
  84. package/dist/core/auth.js.map +0 -1
  85. package/dist/core/bodySerializer.d.ts +0 -18
  86. package/dist/core/bodySerializer.d.ts.map +0 -1
  87. package/dist/core/bodySerializer.js.map +0 -1
  88. package/dist/core/params.d.ts.map +0 -1
  89. package/dist/core/params.js.map +0 -1
  90. package/dist/core/pathSerializer.d.ts.map +0 -1
  91. package/dist/core/pathSerializer.js.map +0 -1
  92. package/dist/core/types.d.ts.map +0 -1
  93. package/dist/core/types.js +0 -2
  94. 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';
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',
@@ -146,16 +146,12 @@ export const zBillingContact = z.object({
146
146
  });
147
147
  export const zBillingCredits = z.object({
148
148
  id: z.string().optional(),
149
- date_created: z.string().datetime(),
149
+ type: z.enum(['credit', 'discount']),
150
+ date_start: z.iso.datetime(),
151
+ date_end: z.iso.datetime().optional(),
150
152
  code: z.string(),
151
153
  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(),
154
+ value_total: z.number(),
159
155
  value_remaining: z.number().optional()
160
156
  });
161
157
  export const zChartCreateInput = z.object({
@@ -171,22 +167,7 @@ export const zChart = z.object({
171
167
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
172
168
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
173
169
  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
- ]),
170
+ status: z.string(),
190
171
  version_current: z.string(),
191
172
  created_at: z.string(),
192
173
  updated_at: z.string(),
@@ -196,23 +177,57 @@ export const zChartUpdateInput = z.object({
196
177
  values: z.string(),
197
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-]+)*))?$/)
198
179
  });
180
+ /**
181
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
182
+ */
199
183
  export const zClusterCreateInput = z.object({
200
184
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
201
185
  tier: z.enum([
202
186
  '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')
187
+ 'pro',
188
+ 'enterprise'
189
+ ]).optional().default('basic'),
190
+ 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'),
191
+ release_channel: z.enum([
192
+ 'rapid',
193
+ 'stable',
194
+ 'extended'
195
+ ]).optional().default('rapid'),
196
+ features: z.object({
197
+ gpu_sharing_strategy: z.enum([
198
+ 'none',
199
+ 'mps',
200
+ 'time_slicing'
201
+ ]).optional().default('none'),
202
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
203
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
204
+ }).optional().default({
205
+ gpu_sharing_strategy: 'none',
206
+ gpu_max_shared_clients_per_gpu: 4,
207
+ cilium_socket_lb_host_namespace_only: false
208
+ }),
209
+ region: z.string(),
210
+ networking: z.object({
211
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
212
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
213
+ dual_stack: z.boolean().optional(),
214
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
215
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
216
+ }).optional().default({
217
+ pod_cidr: '10.244.0.0/16',
218
+ service_cidr: '10.96.0.0/12',
219
+ dual_stack: false,
220
+ pod_cidr_v6: '2001:db8:1:2::/48',
221
+ service_cidr_v6: '2001:db8:1:1::/112'
222
+ })
211
223
  });
212
224
  export const zClusterJoinInformation = z.object({
213
225
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
226
+ endpoint: z.url(),
227
+ cluster_dns: z.string(),
228
+ pod_cidr: z.string(),
215
229
  auth_key: z.string(),
230
+ login_server: z.string(),
216
231
  bootstrap_token: z.string(),
217
232
  versions: z.object({
218
233
  kubernetes: z.string(),
@@ -226,1356 +241,1668 @@ export const zClusterJoinInformation = z.object({
226
241
  gcp_workload_identity_provider: z.string()
227
242
  })
228
243
  });
244
+ /**
245
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
246
+ */
229
247
  export const zCluster = z.object({
230
248
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
249
  tier: z.enum([
232
250
  '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(),
251
+ 'pro',
252
+ 'enterprise'
253
+ ]).default('basic'),
254
+ 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'),
255
+ release_channel: z.enum([
256
+ 'rapid',
257
+ 'stable',
258
+ 'extended'
259
+ ]).default('rapid'),
260
+ features: z.object({
261
+ gpu_sharing_strategy: z.enum([
262
+ 'none',
263
+ 'mps',
264
+ 'time_slicing'
265
+ ]).default('none'),
266
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
267
+ cilium_socket_lb_host_namespace_only: z.boolean()
268
+ }).default({
269
+ gpu_sharing_strategy: 'none',
270
+ gpu_max_shared_clients_per_gpu: 4,
271
+ cilium_socket_lb_host_namespace_only: false
272
+ }),
273
+ region: z.string(),
274
+ networking: z.object({
275
+ pod_cidr: z.string().default('10.244.0.0/16'),
276
+ service_cidr: z.string().default('10.96.0.0/12'),
277
+ dual_stack: z.boolean(),
278
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
279
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
280
+ }).default({
281
+ pod_cidr: '10.244.0.0/16',
282
+ service_cidr: '10.96.0.0/12',
283
+ dual_stack: false,
284
+ pod_cidr_v6: '2001:db8:1:2::/48',
285
+ service_cidr_v6: '2001:db8:1:1::/112'
286
+ }),
287
+ id: z.uuid(),
242
288
  status: z.enum([
243
- 'active',
244
- 'deleted',
245
289
  'creating',
246
290
  'deployed',
247
- 'failed',
248
- 'updating'
291
+ 'updating',
292
+ 'disabled'
249
293
  ]),
250
294
  endpoint: z.union([
251
- z.string().url(),
252
- z.enum([
253
- ''
254
- ])
295
+ z.url(),
296
+ z.enum([''])
297
+ ]).optional(),
298
+ endpoint_public: z.union([
299
+ z.url(),
300
+ z.enum([''])
255
301
  ]).optional(),
256
302
  certificate_ca: z.string().optional(),
257
303
  version_current: z.string().optional(),
258
304
  created_at: z.string().optional(),
259
305
  updated_at: z.string().optional(),
260
- ready: z.boolean().optional()
306
+ ready: z.boolean()
261
307
  });
308
+ /**
309
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
310
+ */
262
311
  export const zClusterUpdateInput = z.object({
263
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
312
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
264
313
  tier: z.enum([
265
314
  'basic',
266
- 'pro'
267
- ]),
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()
315
+ 'pro',
316
+ 'enterprise'
317
+ ]).optional().default('basic'),
318
+ 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'),
319
+ release_channel: z.enum([
320
+ 'rapid',
321
+ 'stable',
322
+ 'extended'
323
+ ]).optional().default('rapid'),
324
+ features: z.object({
325
+ gpu_sharing_strategy: z.enum([
326
+ 'none',
327
+ 'mps',
328
+ 'time_slicing'
329
+ ]).optional().default('none'),
330
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
331
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
332
+ }).optional().default({
333
+ gpu_sharing_strategy: 'none',
334
+ gpu_max_shared_clients_per_gpu: 4,
335
+ cilium_socket_lb_host_namespace_only: false
336
+ })
269
337
  });
338
+ /**
339
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
340
+ */
270
341
  export const zFleetCreateInput = z.object({
271
342
  limits: z.object({
272
- cpu: z.number().gte(0)
343
+ cpu: z.int().gte(0).lte(100000).optional()
273
344
  }).optional(),
274
345
  gcp: z.object({
275
- enabled: z.boolean().optional().default(true),
276
- project: z.string()
346
+ enabled: z.boolean(),
347
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
277
348
  }).optional(),
278
349
  hetzner: z.object({
279
- enabled: z.boolean().optional().default(true),
280
- apiKey: z.string()
350
+ enabled: z.boolean(),
351
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
281
352
  }).optional(),
282
353
  aws: z.object({
283
- enabled: z.boolean().optional().default(true),
284
- controllerRoleArn: z.string()
354
+ enabled: z.boolean(),
355
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
285
356
  }).optional(),
357
+ constraints: z.object({
358
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
359
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
360
+ 'cfke.io/instance-family': z.array(z.enum([
361
+ 'a1',
362
+ 'a2',
363
+ 'a3',
364
+ 'a4',
365
+ 'c1',
366
+ 'c2',
367
+ 'c2d',
368
+ 'c3',
369
+ 'c3d',
370
+ 'c4',
371
+ 'c4a',
372
+ 'c4d',
373
+ 'c5',
374
+ 'c5a',
375
+ 'c5ad',
376
+ 'c5d',
377
+ 'c5n',
378
+ 'c6a',
379
+ 'c6g',
380
+ 'c6gd',
381
+ 'c6gn',
382
+ 'c6i',
383
+ 'c6id',
384
+ 'c6in',
385
+ 'c7a',
386
+ 'c7g',
387
+ 'c7gd',
388
+ 'c7gn',
389
+ 'c7i',
390
+ 'c7i-flex',
391
+ 'c8g',
392
+ 'c8gd',
393
+ 'cax',
394
+ 'ccx',
395
+ 'cpx',
396
+ 'cx',
397
+ 'd2',
398
+ 'd3',
399
+ 'd3en',
400
+ 'dl1',
401
+ 'dl2q',
402
+ 'e2',
403
+ 'f1',
404
+ 'f2',
405
+ 'g1',
406
+ 'g2',
407
+ 'g4ad',
408
+ 'g4dn',
409
+ 'g5',
410
+ 'g5g',
411
+ 'g6',
412
+ 'g6e',
413
+ 'gr6',
414
+ 'h1',
415
+ 'h3',
416
+ 'hpc6a',
417
+ 'hpc6id',
418
+ 'hpc7a',
419
+ 'hpc7g',
420
+ 'i2',
421
+ 'i3',
422
+ 'i3en',
423
+ 'i4g',
424
+ 'i4i',
425
+ 'i7i',
426
+ 'i7ie',
427
+ 'i8g',
428
+ 'im4gn',
429
+ 'inf1',
430
+ 'inf2',
431
+ 'is4gen',
432
+ 'm1',
433
+ 'm2',
434
+ 'm3',
435
+ 'm4',
436
+ 'm5',
437
+ 'm5a',
438
+ 'm5ad',
439
+ 'm5d',
440
+ 'm5dn',
441
+ 'm5n',
442
+ 'm5zn',
443
+ 'm6a',
444
+ 'm6g',
445
+ 'm6gd',
446
+ 'm6i',
447
+ 'm6id',
448
+ 'm6idn',
449
+ 'm6in',
450
+ 'm7a',
451
+ 'm7g',
452
+ 'm7gd',
453
+ 'm7i',
454
+ 'm7i-flex',
455
+ 'm8g',
456
+ 'm8gd',
457
+ 'n1',
458
+ 'n2',
459
+ 'n2d',
460
+ 'n4',
461
+ 'p3',
462
+ 'p3dn',
463
+ 'p4d',
464
+ 'p4de',
465
+ 'p5',
466
+ 'p5e',
467
+ 'p5en',
468
+ 'p6-b200',
469
+ 'r3',
470
+ 'r4',
471
+ 'r5',
472
+ 'r5a',
473
+ 'r5ad',
474
+ 'r5b',
475
+ 'r5d',
476
+ 'r5dn',
477
+ 'r5n',
478
+ 'r6a',
479
+ 'r6g',
480
+ 'r6gd',
481
+ 'r6i',
482
+ 'r6id',
483
+ 'r6idn',
484
+ 'r6in',
485
+ 'r7a',
486
+ 'r7g',
487
+ 'r7gd',
488
+ 'r7i',
489
+ 'r7iz',
490
+ 'r8g',
491
+ 'r8gd',
492
+ 't2',
493
+ 't2a',
494
+ 't2d',
495
+ 't3',
496
+ 't3a',
497
+ 't4g',
498
+ 'trn1',
499
+ 'trn1n',
500
+ 'u-3tb1',
501
+ 'u-6tb1',
502
+ 'u7i-12tb',
503
+ 'u7i-6tb',
504
+ 'u7i-8tb',
505
+ 'u7in-16tb',
506
+ 'u7in-24tb',
507
+ 'u7in-32tb',
508
+ 'vt1',
509
+ 'x1',
510
+ 'x1e',
511
+ 'x2gd',
512
+ 'x2idn',
513
+ 'x2iedn',
514
+ 'x2iezn',
515
+ 'x4',
516
+ 'x8g',
517
+ 'z1d',
518
+ 'z3'
519
+ ])).optional().default([]),
520
+ 'topology.kubernetes.io/region': z.array(z.enum([
521
+ 'africa-south1',
522
+ 'ap-northeast-1',
523
+ 'ap-northeast-2',
524
+ 'ap-northeast-3',
525
+ 'ap-south-1',
526
+ 'ap-southeast-1',
527
+ 'ap-southeast-2',
528
+ 'ash',
529
+ 'asia-east1',
530
+ 'asia-east2',
531
+ 'asia-northeast1',
532
+ 'asia-northeast2',
533
+ 'asia-northeast3',
534
+ 'asia-south1',
535
+ 'asia-south2',
536
+ 'asia-southeast1',
537
+ 'asia-southeast2',
538
+ 'australia-southeast1',
539
+ 'australia-southeast2',
540
+ 'ca-central-1',
541
+ 'eu-central-1',
542
+ 'eu-central-2',
543
+ 'eu-north-1',
544
+ 'eu-west-1',
545
+ 'eu-west-2',
546
+ 'eu-west-3',
547
+ 'europe-central2',
548
+ 'europe-north1',
549
+ 'europe-southwest1',
550
+ 'europe-west1',
551
+ 'europe-west10',
552
+ 'europe-west12',
553
+ 'europe-west2',
554
+ 'europe-west3',
555
+ 'europe-west4',
556
+ 'europe-west6',
557
+ 'europe-west8',
558
+ 'europe-west9',
559
+ 'fsn1',
560
+ 'hel1',
561
+ 'hil',
562
+ 'me-central1',
563
+ 'me-central2',
564
+ 'me-west1',
565
+ 'nbg1',
566
+ 'northamerica-northeast1',
567
+ 'northamerica-northeast2',
568
+ 'sa-east-1',
569
+ 'sin',
570
+ 'southamerica-east1',
571
+ 'southamerica-west1',
572
+ 'us-central1',
573
+ 'us-east-1',
574
+ 'us-east-2',
575
+ 'us-east1',
576
+ 'us-east4',
577
+ 'us-east5',
578
+ 'us-south1',
579
+ 'us-west-1',
580
+ 'us-west-2',
581
+ 'us-west1',
582
+ 'us-west2',
583
+ 'us-west3',
584
+ 'us-west4'
585
+ ])).optional().default([])
586
+ }).optional().default({
587
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
588
+ 'kubernetes.io/arch': ['amd64'],
589
+ 'cfke.io/instance-family': [],
590
+ 'topology.kubernetes.io/region': []
591
+ }),
592
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
593
+ taints: z.array(z.object({
594
+ key: z.string(),
595
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
596
+ effect: z.enum([
597
+ 'NoSchedule',
598
+ 'PreferNoSchedule',
599
+ 'NoExecute'
600
+ ])
601
+ })).max(50).optional().default([]),
286
602
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
287
603
  });
604
+ /**
605
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
606
+ */
288
607
  export const zFleet = z.object({
289
608
  limits: z.object({
290
- cpu: z.number().gte(0)
609
+ cpu: z.int().gte(0).lte(100000).optional()
291
610
  }).optional(),
292
611
  gcp: z.object({
293
- enabled: z.boolean().optional().default(true),
294
- project: z.string()
612
+ enabled: z.boolean(),
613
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
295
614
  }).optional(),
296
615
  hetzner: z.object({
297
- enabled: z.boolean().optional().default(true),
298
- apiKey: z.string()
616
+ enabled: z.boolean(),
617
+ apiKey: z.string().regex(/^\*{64}$/).optional()
299
618
  }).optional(),
300
619
  aws: z.object({
301
- enabled: z.boolean().optional().default(true),
302
- controllerRoleArn: z.string()
620
+ enabled: z.boolean(),
621
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
303
622
  }).optional(),
304
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
623
+ constraints: z.object({
624
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
625
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
626
+ 'cfke.io/instance-family': z.array(z.enum([
627
+ 'a1',
628
+ 'a2',
629
+ 'a3',
630
+ 'a4',
631
+ 'c1',
632
+ 'c2',
633
+ 'c2d',
634
+ 'c3',
635
+ 'c3d',
636
+ 'c4',
637
+ 'c4a',
638
+ 'c4d',
639
+ 'c5',
640
+ 'c5a',
641
+ 'c5ad',
642
+ 'c5d',
643
+ 'c5n',
644
+ 'c6a',
645
+ 'c6g',
646
+ 'c6gd',
647
+ 'c6gn',
648
+ 'c6i',
649
+ 'c6id',
650
+ 'c6in',
651
+ 'c7a',
652
+ 'c7g',
653
+ 'c7gd',
654
+ 'c7gn',
655
+ 'c7i',
656
+ 'c7i-flex',
657
+ 'c8g',
658
+ 'c8gd',
659
+ 'cax',
660
+ 'ccx',
661
+ 'cpx',
662
+ 'cx',
663
+ 'd2',
664
+ 'd3',
665
+ 'd3en',
666
+ 'dl1',
667
+ 'dl2q',
668
+ 'e2',
669
+ 'f1',
670
+ 'f2',
671
+ 'g1',
672
+ 'g2',
673
+ 'g4ad',
674
+ 'g4dn',
675
+ 'g5',
676
+ 'g5g',
677
+ 'g6',
678
+ 'g6e',
679
+ 'gr6',
680
+ 'h1',
681
+ 'h3',
682
+ 'hpc6a',
683
+ 'hpc6id',
684
+ 'hpc7a',
685
+ 'hpc7g',
686
+ 'i2',
687
+ 'i3',
688
+ 'i3en',
689
+ 'i4g',
690
+ 'i4i',
691
+ 'i7i',
692
+ 'i7ie',
693
+ 'i8g',
694
+ 'im4gn',
695
+ 'inf1',
696
+ 'inf2',
697
+ 'is4gen',
698
+ 'm1',
699
+ 'm2',
700
+ 'm3',
701
+ 'm4',
702
+ 'm5',
703
+ 'm5a',
704
+ 'm5ad',
705
+ 'm5d',
706
+ 'm5dn',
707
+ 'm5n',
708
+ 'm5zn',
709
+ 'm6a',
710
+ 'm6g',
711
+ 'm6gd',
712
+ 'm6i',
713
+ 'm6id',
714
+ 'm6idn',
715
+ 'm6in',
716
+ 'm7a',
717
+ 'm7g',
718
+ 'm7gd',
719
+ 'm7i',
720
+ 'm7i-flex',
721
+ 'm8g',
722
+ 'm8gd',
723
+ 'n1',
724
+ 'n2',
725
+ 'n2d',
726
+ 'n4',
727
+ 'p3',
728
+ 'p3dn',
729
+ 'p4d',
730
+ 'p4de',
731
+ 'p5',
732
+ 'p5e',
733
+ 'p5en',
734
+ 'p6-b200',
735
+ 'r3',
736
+ 'r4',
737
+ 'r5',
738
+ 'r5a',
739
+ 'r5ad',
740
+ 'r5b',
741
+ 'r5d',
742
+ 'r5dn',
743
+ 'r5n',
744
+ 'r6a',
745
+ 'r6g',
746
+ 'r6gd',
747
+ 'r6i',
748
+ 'r6id',
749
+ 'r6idn',
750
+ 'r6in',
751
+ 'r7a',
752
+ 'r7g',
753
+ 'r7gd',
754
+ 'r7i',
755
+ 'r7iz',
756
+ 'r8g',
757
+ 'r8gd',
758
+ 't2',
759
+ 't2a',
760
+ 't2d',
761
+ 't3',
762
+ 't3a',
763
+ 't4g',
764
+ 'trn1',
765
+ 'trn1n',
766
+ 'u-3tb1',
767
+ 'u-6tb1',
768
+ 'u7i-12tb',
769
+ 'u7i-6tb',
770
+ 'u7i-8tb',
771
+ 'u7in-16tb',
772
+ 'u7in-24tb',
773
+ 'u7in-32tb',
774
+ 'vt1',
775
+ 'x1',
776
+ 'x1e',
777
+ 'x2gd',
778
+ 'x2idn',
779
+ 'x2iedn',
780
+ 'x2iezn',
781
+ 'x4',
782
+ 'x8g',
783
+ 'z1d',
784
+ 'z3'
785
+ ])).optional().default([]),
786
+ 'topology.kubernetes.io/region': z.array(z.enum([
787
+ 'africa-south1',
788
+ 'ap-northeast-1',
789
+ 'ap-northeast-2',
790
+ 'ap-northeast-3',
791
+ 'ap-south-1',
792
+ 'ap-southeast-1',
793
+ 'ap-southeast-2',
794
+ 'ash',
795
+ 'asia-east1',
796
+ 'asia-east2',
797
+ 'asia-northeast1',
798
+ 'asia-northeast2',
799
+ 'asia-northeast3',
800
+ 'asia-south1',
801
+ 'asia-south2',
802
+ 'asia-southeast1',
803
+ 'asia-southeast2',
804
+ 'australia-southeast1',
805
+ 'australia-southeast2',
806
+ 'ca-central-1',
807
+ 'eu-central-1',
808
+ 'eu-central-2',
809
+ 'eu-north-1',
810
+ 'eu-west-1',
811
+ 'eu-west-2',
812
+ 'eu-west-3',
813
+ 'europe-central2',
814
+ 'europe-north1',
815
+ 'europe-southwest1',
816
+ 'europe-west1',
817
+ 'europe-west10',
818
+ 'europe-west12',
819
+ 'europe-west2',
820
+ 'europe-west3',
821
+ 'europe-west4',
822
+ 'europe-west6',
823
+ 'europe-west8',
824
+ 'europe-west9',
825
+ 'fsn1',
826
+ 'hel1',
827
+ 'hil',
828
+ 'me-central1',
829
+ 'me-central2',
830
+ 'me-west1',
831
+ 'nbg1',
832
+ 'northamerica-northeast1',
833
+ 'northamerica-northeast2',
834
+ 'sa-east-1',
835
+ 'sin',
836
+ 'southamerica-east1',
837
+ 'southamerica-west1',
838
+ 'us-central1',
839
+ 'us-east-1',
840
+ 'us-east-2',
841
+ 'us-east1',
842
+ 'us-east4',
843
+ 'us-east5',
844
+ 'us-south1',
845
+ 'us-west-1',
846
+ 'us-west-2',
847
+ 'us-west1',
848
+ 'us-west2',
849
+ 'us-west3',
850
+ 'us-west4'
851
+ ])).optional().default([])
852
+ }).default({
853
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
854
+ 'kubernetes.io/arch': ['amd64'],
855
+ 'cfke.io/instance-family': [],
856
+ 'topology.kubernetes.io/region': []
857
+ }),
858
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
859
+ taints: z.array(z.object({
860
+ key: z.string(),
861
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
862
+ effect: z.enum([
863
+ 'NoSchedule',
864
+ 'PreferNoSchedule',
865
+ 'NoExecute'
866
+ ])
867
+ })).max(50).default([]),
868
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
869
+ ready: z.boolean(),
870
+ status_message: z.string().optional(),
871
+ created_at: z.string(),
872
+ updated_at: z.string()
305
873
  });
874
+ /**
875
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
876
+ */
306
877
  export const zFleetUpdateInput = z.object({
307
878
  limits: z.object({
308
- cpu: z.number().gte(0)
879
+ cpu: z.int().gte(0).lte(100000).optional()
309
880
  }).optional(),
310
881
  gcp: z.object({
311
- enabled: z.boolean().optional().default(true),
312
- project: z.string()
882
+ enabled: z.boolean(),
883
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
313
884
  }).optional(),
314
885
  hetzner: z.object({
315
- enabled: z.boolean().optional().default(true),
316
- apiKey: z.string()
886
+ enabled: z.boolean(),
887
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
317
888
  }).optional(),
318
889
  aws: z.object({
319
- enabled: z.boolean().optional().default(true),
320
- controllerRoleArn: z.string()
321
- }).optional()
890
+ enabled: z.boolean(),
891
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
892
+ }).optional(),
893
+ constraints: z.object({
894
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
895
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
896
+ 'cfke.io/instance-family': z.array(z.enum([
897
+ 'a1',
898
+ 'a2',
899
+ 'a3',
900
+ 'a4',
901
+ 'c1',
902
+ 'c2',
903
+ 'c2d',
904
+ 'c3',
905
+ 'c3d',
906
+ 'c4',
907
+ 'c4a',
908
+ 'c4d',
909
+ 'c5',
910
+ 'c5a',
911
+ 'c5ad',
912
+ 'c5d',
913
+ 'c5n',
914
+ 'c6a',
915
+ 'c6g',
916
+ 'c6gd',
917
+ 'c6gn',
918
+ 'c6i',
919
+ 'c6id',
920
+ 'c6in',
921
+ 'c7a',
922
+ 'c7g',
923
+ 'c7gd',
924
+ 'c7gn',
925
+ 'c7i',
926
+ 'c7i-flex',
927
+ 'c8g',
928
+ 'c8gd',
929
+ 'cax',
930
+ 'ccx',
931
+ 'cpx',
932
+ 'cx',
933
+ 'd2',
934
+ 'd3',
935
+ 'd3en',
936
+ 'dl1',
937
+ 'dl2q',
938
+ 'e2',
939
+ 'f1',
940
+ 'f2',
941
+ 'g1',
942
+ 'g2',
943
+ 'g4ad',
944
+ 'g4dn',
945
+ 'g5',
946
+ 'g5g',
947
+ 'g6',
948
+ 'g6e',
949
+ 'gr6',
950
+ 'h1',
951
+ 'h3',
952
+ 'hpc6a',
953
+ 'hpc6id',
954
+ 'hpc7a',
955
+ 'hpc7g',
956
+ 'i2',
957
+ 'i3',
958
+ 'i3en',
959
+ 'i4g',
960
+ 'i4i',
961
+ 'i7i',
962
+ 'i7ie',
963
+ 'i8g',
964
+ 'im4gn',
965
+ 'inf1',
966
+ 'inf2',
967
+ 'is4gen',
968
+ 'm1',
969
+ 'm2',
970
+ 'm3',
971
+ 'm4',
972
+ 'm5',
973
+ 'm5a',
974
+ 'm5ad',
975
+ 'm5d',
976
+ 'm5dn',
977
+ 'm5n',
978
+ 'm5zn',
979
+ 'm6a',
980
+ 'm6g',
981
+ 'm6gd',
982
+ 'm6i',
983
+ 'm6id',
984
+ 'm6idn',
985
+ 'm6in',
986
+ 'm7a',
987
+ 'm7g',
988
+ 'm7gd',
989
+ 'm7i',
990
+ 'm7i-flex',
991
+ 'm8g',
992
+ 'm8gd',
993
+ 'n1',
994
+ 'n2',
995
+ 'n2d',
996
+ 'n4',
997
+ 'p3',
998
+ 'p3dn',
999
+ 'p4d',
1000
+ 'p4de',
1001
+ 'p5',
1002
+ 'p5e',
1003
+ 'p5en',
1004
+ 'p6-b200',
1005
+ 'r3',
1006
+ 'r4',
1007
+ 'r5',
1008
+ 'r5a',
1009
+ 'r5ad',
1010
+ 'r5b',
1011
+ 'r5d',
1012
+ 'r5dn',
1013
+ 'r5n',
1014
+ 'r6a',
1015
+ 'r6g',
1016
+ 'r6gd',
1017
+ 'r6i',
1018
+ 'r6id',
1019
+ 'r6idn',
1020
+ 'r6in',
1021
+ 'r7a',
1022
+ 'r7g',
1023
+ 'r7gd',
1024
+ 'r7i',
1025
+ 'r7iz',
1026
+ 'r8g',
1027
+ 'r8gd',
1028
+ 't2',
1029
+ 't2a',
1030
+ 't2d',
1031
+ 't3',
1032
+ 't3a',
1033
+ 't4g',
1034
+ 'trn1',
1035
+ 'trn1n',
1036
+ 'u-3tb1',
1037
+ 'u-6tb1',
1038
+ 'u7i-12tb',
1039
+ 'u7i-6tb',
1040
+ 'u7i-8tb',
1041
+ 'u7in-16tb',
1042
+ 'u7in-24tb',
1043
+ 'u7in-32tb',
1044
+ 'vt1',
1045
+ 'x1',
1046
+ 'x1e',
1047
+ 'x2gd',
1048
+ 'x2idn',
1049
+ 'x2iedn',
1050
+ 'x2iezn',
1051
+ 'x4',
1052
+ 'x8g',
1053
+ 'z1d',
1054
+ 'z3'
1055
+ ])).optional().default([]),
1056
+ 'topology.kubernetes.io/region': z.array(z.enum([
1057
+ 'africa-south1',
1058
+ 'ap-northeast-1',
1059
+ 'ap-northeast-2',
1060
+ 'ap-northeast-3',
1061
+ 'ap-south-1',
1062
+ 'ap-southeast-1',
1063
+ 'ap-southeast-2',
1064
+ 'ash',
1065
+ 'asia-east1',
1066
+ 'asia-east2',
1067
+ 'asia-northeast1',
1068
+ 'asia-northeast2',
1069
+ 'asia-northeast3',
1070
+ 'asia-south1',
1071
+ 'asia-south2',
1072
+ 'asia-southeast1',
1073
+ 'asia-southeast2',
1074
+ 'australia-southeast1',
1075
+ 'australia-southeast2',
1076
+ 'ca-central-1',
1077
+ 'eu-central-1',
1078
+ 'eu-central-2',
1079
+ 'eu-north-1',
1080
+ 'eu-west-1',
1081
+ 'eu-west-2',
1082
+ 'eu-west-3',
1083
+ 'europe-central2',
1084
+ 'europe-north1',
1085
+ 'europe-southwest1',
1086
+ 'europe-west1',
1087
+ 'europe-west10',
1088
+ 'europe-west12',
1089
+ 'europe-west2',
1090
+ 'europe-west3',
1091
+ 'europe-west4',
1092
+ 'europe-west6',
1093
+ 'europe-west8',
1094
+ 'europe-west9',
1095
+ 'fsn1',
1096
+ 'hel1',
1097
+ 'hil',
1098
+ 'me-central1',
1099
+ 'me-central2',
1100
+ 'me-west1',
1101
+ 'nbg1',
1102
+ 'northamerica-northeast1',
1103
+ 'northamerica-northeast2',
1104
+ 'sa-east-1',
1105
+ 'sin',
1106
+ 'southamerica-east1',
1107
+ 'southamerica-west1',
1108
+ 'us-central1',
1109
+ 'us-east-1',
1110
+ 'us-east-2',
1111
+ 'us-east1',
1112
+ 'us-east4',
1113
+ 'us-east5',
1114
+ 'us-south1',
1115
+ 'us-west-1',
1116
+ 'us-west-2',
1117
+ 'us-west1',
1118
+ 'us-west2',
1119
+ 'us-west3',
1120
+ 'us-west4'
1121
+ ])).optional().default([])
1122
+ }).optional().default({
1123
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1124
+ 'kubernetes.io/arch': ['amd64'],
1125
+ 'cfke.io/instance-family': [],
1126
+ 'topology.kubernetes.io/region': []
1127
+ }),
1128
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
1129
+ taints: z.array(z.object({
1130
+ key: z.string(),
1131
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
1132
+ effect: z.enum([
1133
+ 'NoSchedule',
1134
+ 'PreferNoSchedule',
1135
+ 'NoExecute'
1136
+ ])
1137
+ })).max(50).optional().default([])
1138
+ });
1139
+ export const zInviteCreateInput = z.object({
1140
+ email: z.email(),
1141
+ role: z.enum(['Administrator', 'User']).optional().default('User')
322
1142
  });
323
1143
  export const zInvite = z.object({
324
1144
  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()
1145
+ organization_id: z.uuid().optional(),
1146
+ date_created: z.iso.datetime(),
1147
+ email: z.email().optional(),
1148
+ code: z.string().optional(),
1149
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1150
+ });
1151
+ export const zInvoicePaymentAttempt = z.object({
1152
+ invoice_id: z.string(),
1153
+ number: z.string(),
1154
+ amount: z.number(),
1155
+ currency: z.string(),
1156
+ status: z.enum([
1157
+ 'paid',
1158
+ 'processing',
1159
+ 'requires_action',
1160
+ 'failed'
1161
+ ]),
1162
+ client_secret: z.string(),
1163
+ failure_code: z.string(),
1164
+ failure_message: z.string()
1165
+ });
1166
+ export const zInvoicePaymentResult = z.object({
1167
+ code: z.enum([
1168
+ 'paid',
1169
+ 'processing',
1170
+ 'action_required',
1171
+ 'partially_paid',
1172
+ 'failed',
1173
+ 'nothing_due',
1174
+ 'bank_transfer_due'
1175
+ ]),
1176
+ message: z.string(),
1177
+ results: z.array(z.object({
1178
+ invoice_id: z.string(),
1179
+ number: z.string(),
1180
+ amount: z.number(),
1181
+ currency: z.string(),
1182
+ status: z.enum([
1183
+ 'paid',
1184
+ 'processing',
1185
+ 'requires_action',
1186
+ 'failed'
1187
+ ]),
1188
+ client_secret: z.string(),
1189
+ failure_code: z.string(),
1190
+ failure_message: z.string()
1191
+ }))
329
1192
  });
330
1193
  export const zInvoice = z.object({
331
- id: z.string().uuid().optional(),
332
- organizationId: z.string().uuid().optional(),
333
- 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()
1194
+ id: z.string().optional(),
1195
+ number: z.string().optional(),
1196
+ status: z.string().optional(),
1197
+ total: z.number().optional(),
1198
+ currency: z.string().optional(),
1199
+ created: z.iso.datetime(),
1200
+ period_start: z.iso.datetime(),
1201
+ period_end: z.iso.datetime(),
1202
+ invoice_pdf: z.string().optional()
1203
+ });
1204
+ export const zMarketplaceListingFiles = z.object({
1205
+ chartYaml: z.string().optional(),
1206
+ valuesYaml: z.string().optional(),
1207
+ valuesSchemaJson: z.string().optional()
925
1208
  });
926
1209
  export const zMarketplaceListing = z.object({
927
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
928
1210
  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()),
1211
+ versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(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-]+)*))?$/)),
934
1212
  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()
939
- }))
1213
+ latestVersion: z.string(),
1214
+ metadata: z.object({
1215
+ name: z.string(),
1216
+ version: z.string(),
1217
+ description: z.string().optional(),
1218
+ appVersion: z.string().optional(),
1219
+ apiVersion: z.string().optional(),
1220
+ keywords: z.array(z.string()).optional(),
1221
+ home: z.string().optional(),
1222
+ icon: z.string().optional(),
1223
+ sources: z.array(z.string()).optional(),
1224
+ maintainers: z.array(z.object({
1225
+ name: z.string(),
1226
+ email: z.string().optional()
1227
+ })).optional()
1228
+ }).optional()
940
1229
  });
941
1230
  export const zOrganizationCreateInput = z.object({
942
- email: z.string().email(),
943
- first_name: z.string(),
944
- last_name: z.string(),
1231
+ type: z.enum(['business', 'personal']),
1232
+ email: z.email(),
1233
+ first_name: z.string().min(1),
1234
+ last_name: z.string().min(1),
945
1235
  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
1236
  password: z.string().min(8)
947
1237
  });
1238
+ export const zOrganizationCreateOutput = z.object({
1239
+ id: z.string()
1240
+ });
948
1241
  export const zOrganization = z.object({
949
- id: z.string().uuid(),
1242
+ id: z.uuid(),
950
1243
  name: z.string().min(2).max(120).optional(),
951
- date_created: z.string().datetime(),
1244
+ type: z.enum(['business', 'personal']),
1245
+ date_created: z.iso.datetime(),
952
1246
  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),
1247
+ basic_clusters_max: z.int().gte(0),
1248
+ basic_clusters_available: z.int(),
1249
+ pro_clusters_max: z.int().gte(0),
1250
+ pro_clusters_available: z.int(),
1251
+ enterprise_clusters_max: z.int().gte(0),
1252
+ enterprise_clusters_available: z.int(),
1253
+ fleets_max: z.int().gte(0),
958
1254
  cluster_tiers: z.array(z.string()).min(0),
959
1255
  regions: z.array(z.string()).min(1),
960
1256
  versions: z.array(z.object({
961
1257
  id: z.string(),
962
1258
  label: z.string()
963
- })).min(1)
1259
+ })).min(1),
1260
+ cfcr_storage_gb: z.int().gte(-1)
964
1261
  }),
965
1262
  status: z.enum([
966
1263
  'active',
967
1264
  'closed',
968
1265
  'suspended'
1266
+ ]),
1267
+ verification: z.enum([
1268
+ 'none',
1269
+ 'submitted',
1270
+ 'verified'
969
1271
  ])
970
1272
  });
971
1273
  export const zPaymentMethod = z.object({
972
- id: z.string().uuid(),
973
- setup: z.boolean(),
1274
+ id: z.string(),
974
1275
  type: z.enum([
975
- 'card'
1276
+ 'card',
1277
+ 'sepa_debit',
1278
+ 'bank_transfer'
976
1279
  ]),
977
1280
  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'
990
- ])
1281
+ exp_month: z.int().gte(1).lte(12),
1282
+ exp_year: z.int(),
1283
+ brand: z.string(),
1284
+ iban: z.string(),
1285
+ bic: z.string(),
1286
+ account_holder_name: z.string(),
1287
+ is_default: z.boolean()
1288
+ });
1289
+ export const zPlatformQuota = z.object({
1290
+ basic_clusters_max: z.int().gte(0),
1291
+ basic_clusters_available: z.int(),
1292
+ pro_clusters_max: z.int().gte(0),
1293
+ pro_clusters_available: z.int(),
1294
+ enterprise_clusters_max: z.int().gte(0),
1295
+ enterprise_clusters_available: z.int(),
1296
+ fleets_max: z.int().gte(0),
1297
+ cluster_tiers: z.array(z.string()).min(0),
1298
+ regions: z.array(z.string()).min(1),
1299
+ versions: z.array(z.object({
1300
+ id: z.string(),
1301
+ label: z.string()
1302
+ })).min(1),
1303
+ cfcr_storage_gb: z.int().gte(-1)
1304
+ });
1305
+ export const zRegistryRepository = z.object({
1306
+ name: z.string(),
1307
+ region: z.string(),
1308
+ uri: z.string()
1309
+ });
1310
+ export const zRegistryRepositoryWithTags = z.object({
1311
+ name: z.string(),
1312
+ region: z.string(),
1313
+ uri: z.string(),
1314
+ tags: z.array(z.object({
1315
+ name: z.string(),
1316
+ size: z.number(),
1317
+ mediaType: z.string().optional(),
1318
+ platforms: z.array(z.string()).optional()
1319
+ })),
1320
+ totalSize: z.number()
1321
+ });
1322
+ export const zRegistryTag = z.object({
1323
+ name: z.string(),
1324
+ digest: z.string(),
1325
+ mediaType: z.string().optional(),
1326
+ config: z.object({
1327
+ size: z.number()
1328
+ }).optional(),
1329
+ layers: z.array(z.object({
1330
+ digest: z.string().optional(),
1331
+ size: z.number()
1332
+ })).optional(),
1333
+ manifests: z.array(z.object({
1334
+ digest: z.string(),
1335
+ platform: z.object({
1336
+ architecture: z.string(),
1337
+ os: z.string(),
1338
+ variant: z.string().optional()
1339
+ }).optional(),
1340
+ layers: z.array(z.object({
1341
+ digest: z.string().optional(),
1342
+ size: z.number()
1343
+ })).optional(),
1344
+ size: z.number().optional()
1345
+ })).optional(),
1346
+ size: z.number(),
1347
+ region: z.string(),
1348
+ repository: z.string(),
1349
+ uri: z.string()
1350
+ });
1351
+ export const zTicketAttachment = z.object({
1352
+ id: z.string(),
1353
+ filename: z.string(),
1354
+ content_type: z.string(),
1355
+ size: z.int()
1356
+ });
1357
+ export const zTicketCreateInput = z.object({
1358
+ category: z.enum([
1359
+ 'billing',
1360
+ 'technical',
1361
+ 'general'
1362
+ ]),
1363
+ body: z.string().min(1).max(50000).regex(/\S/),
1364
+ properties: z.record(z.string(), z.unknown()).optional()
1365
+ });
1366
+ export const zTicketMessageInput = z.object({
1367
+ body: z.string().min(1).max(50000).regex(/\S/)
1368
+ });
1369
+ export const zTicketMessage = z.object({
1370
+ id: z.string(),
1371
+ type: z.enum(['customer_reply', 'agent_reply']),
1372
+ body: z.string(),
1373
+ author_first_name: z.string().optional(),
1374
+ author_last_name: z.string().optional(),
1375
+ attachments: z.array(z.object({
1376
+ id: z.string(),
1377
+ filename: z.string(),
1378
+ content_type: z.string(),
1379
+ size: z.int()
1380
+ })).optional(),
1381
+ date_created: z.iso.datetime()
1382
+ });
1383
+ export const zTicket = z.object({
1384
+ id: z.string(),
1385
+ status: z.enum([
1386
+ 'waiting_on_us',
1387
+ 'waiting_on_user',
1388
+ 'closed'
1389
+ ]),
1390
+ category: z.enum([
1391
+ 'billing',
1392
+ 'technical',
1393
+ 'general'
1394
+ ]),
1395
+ summary: z.string(),
1396
+ closed_at: z.iso.datetime().optional(),
1397
+ date_created: z.iso.datetime(),
1398
+ date_updated: z.iso.datetime(),
1399
+ messages: z.array(z.object({
1400
+ id: z.string(),
1401
+ type: z.enum(['customer_reply', 'agent_reply']),
1402
+ body: z.string(),
1403
+ author_first_name: z.string().optional(),
1404
+ author_last_name: z.string().optional(),
1405
+ attachments: z.array(z.object({
1406
+ id: z.string(),
1407
+ filename: z.string(),
1408
+ content_type: z.string(),
1409
+ size: z.int()
1410
+ })).optional(),
1411
+ date_created: z.iso.datetime()
1412
+ })).optional()
991
1413
  });
992
1414
  export const zTokenCreateInput = z.object({
993
1415
  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
- ])
1416
+ role: z.enum(['Administrator', 'User'])
998
1417
  });
999
1418
  export const zToken = z.object({
1000
1419
  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
- ]),
1420
+ role: z.enum(['Administrator', 'User']),
1005
1421
  id: z.string().optional(),
1006
1422
  secret: z.string().optional(),
1007
- date_created: z.string().datetime()
1423
+ date_created: z.iso.datetime()
1008
1424
  });
1009
1425
  export const zTokenUpdateInput = z.object({
1010
1426
  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()
1427
+ role: z.enum(['Administrator', 'User']).optional()
1428
+ });
1429
+ export const zUsageFacets = z.object({
1430
+ cluster_id: z.array(z.string()).optional(),
1431
+ product: z.array(z.enum([
1432
+ 'cfke_controlplane_basic',
1433
+ 'cfke_controlplane_pro',
1434
+ 'cfke_controlplane_enterprise',
1435
+ 'cfke_connected_nodes_basic',
1436
+ 'cfke_connected_nodes_pro',
1437
+ 'cfke_connected_nodes_enterprise',
1438
+ 'cfcr_storage'
1439
+ ])).optional()
1440
+ });
1441
+ export const zUsageResponse = z.object({
1442
+ data: z.array(z.object({
1443
+ hour: z.string(),
1444
+ cluster_id: z.string(),
1445
+ product: z.enum([
1446
+ 'cfke_controlplane_basic',
1447
+ 'cfke_controlplane_pro',
1448
+ 'cfke_controlplane_enterprise',
1449
+ 'cfke_connected_nodes_basic',
1450
+ 'cfke_connected_nodes_pro',
1451
+ 'cfke_connected_nodes_enterprise',
1452
+ 'cfcr_storage'
1453
+ ]),
1454
+ value: z.number(),
1455
+ price: z.number(),
1456
+ total: z.number()
1457
+ })),
1458
+ facets: z.object({
1459
+ cluster_id: z.array(z.string()).optional(),
1460
+ product: z.array(z.enum([
1461
+ 'cfke_controlplane_basic',
1462
+ 'cfke_controlplane_pro',
1463
+ 'cfke_controlplane_enterprise',
1464
+ 'cfke_connected_nodes_basic',
1465
+ 'cfke_connected_nodes_pro',
1466
+ 'cfke_connected_nodes_enterprise',
1467
+ 'cfcr_storage'
1468
+ ])).optional()
1469
+ })
1015
1470
  });
1016
1471
  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
- ]),
1472
+ hour: z.string(),
1473
+ cluster_id: z.string(),
1024
1474
  product: z.enum([
1025
- 'cfke_controlplane',
1026
- 'cfke_connected_nodes',
1027
- 'infra_compute',
1028
- 'infra_storage',
1029
- 'infra_loadbalancing',
1030
- 'infra_traffic',
1475
+ 'cfke_controlplane_basic',
1476
+ 'cfke_controlplane_pro',
1477
+ 'cfke_controlplane_enterprise',
1478
+ 'cfke_connected_nodes_basic',
1479
+ 'cfke_connected_nodes_pro',
1480
+ 'cfke_connected_nodes_enterprise',
1031
1481
  'cfcr_storage'
1032
1482
  ]),
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
- ])
1483
+ value: z.number(),
1484
+ price: z.number(),
1485
+ total: z.number()
1059
1486
  });
1060
1487
  export const zUserCreateInput = z.object({
1061
- email: z.string().email(),
1488
+ email: z.email(),
1062
1489
  first_name: z.string().min(1).max(50),
1063
1490
  last_name: z.string().min(1).max(50),
1064
1491
  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()
1492
+ password: z.string().min(8)
1074
1493
  });
1075
1494
  export const zUser = z.object({
1076
- email: z.string().email(),
1495
+ email: z.email(),
1077
1496
  first_name: z.string().min(1).max(50),
1078
1497
  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()
1498
+ role: z.enum(['Administrator', 'User']),
1499
+ status: z.enum(['active', 'inactive']),
1500
+ id: z.uuid(),
1501
+ date_created: z.iso.datetime()
1089
1502
  });
1090
1503
  export const zUserUpdateInput = z.object({
1091
- email: z.string().email().optional(),
1504
+ email: z.email().optional(),
1092
1505
  first_name: z.string().min(1).max(50).optional(),
1093
1506
  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()
1507
+ role: z.enum(['Administrator', 'User']).optional(),
1508
+ status: z.enum(['active', 'inactive']).optional()
1102
1509
  });
1103
- export const zGetUsageData = z.object({
1104
- body: z.never().optional(),
1105
- path: z.never().optional(),
1106
- query: z.never().optional()
1510
+ export const zListUserOrganizationsPath = z.object({
1511
+ email: z.string()
1107
1512
  });
1108
1513
  /**
1109
- * An array of usage records.
1514
+ * An array of organizations the user belongs to.
1515
+ */
1516
+ export const zListUserOrganizationsResponse = z.array(z.object({
1517
+ realm: z.string().optional(),
1518
+ displayName: z.string().optional()
1519
+ }));
1520
+ /**
1521
+ * An array of users
1522
+ */
1523
+ export const zListUsersResponse = z.array(zUser);
1524
+ export const zCreateUserBody = zUserCreateInput;
1525
+ /**
1526
+ * Successfully created. Returns created user details.
1110
1527
  */
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()
1528
+ export const zCreateUserResponse = zUser;
1529
+ export const zDeleteUserPath = z.object({
1530
+ user_id: z.string()
1116
1531
  });
1117
1532
  /**
1118
- * Current balance of the organization in USD as a floating-point number.
1533
+ * User profile information
1119
1534
  */
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()
1535
+ export const zDeleteUserResponse = zUser;
1536
+ export const zGetUserPath = z.object({
1537
+ user_id: z.string()
1125
1538
  });
1126
1539
  /**
1127
- * Redacted payment card information.
1540
+ * User profile information
1128
1541
  */
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()
1542
+ export const zGetUserResponse = zUser;
1543
+ export const zUpdateUserBody = zUserUpdateInput;
1544
+ export const zUpdateUserPath = z.object({
1545
+ user_id: z.string()
1134
1546
  });
1135
1547
  /**
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
- *
1548
+ * Successfully created. Returns created user details.
1138
1549
  */
1139
- export const zGetPaymentMethodSecretResponse = z.object({
1140
- id: z.string().optional()
1550
+ export const zUpdateUserResponse = zUser;
1551
+ /**
1552
+ * Returns a list of access token details with masked secrets.
1553
+ */
1554
+ export const zListTokensResponse = z.array(zToken);
1555
+ export const zCreateTokenBody = zTokenCreateInput;
1556
+ /**
1557
+ * Successfully created. Returns created token details with unmasked/raw secret.
1558
+ */
1559
+ export const zCreateTokenResponse = zToken;
1560
+ export const zDeleteTokenPath = z.object({
1561
+ token_id: z.string()
1141
1562
  });
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
- })
1563
+ export const zGetTokenPath = z.object({
1564
+ token_id: z.string()
1149
1565
  });
1150
1566
  /**
1151
- * An array of usage records.
1567
+ * Returns access token details with masked secret.
1152
1568
  */
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()
1569
+ export const zGetTokenResponse = zToken;
1570
+ export const zUpdateTokenBody = zTokenUpdateInput;
1571
+ export const zUpdateTokenPath = z.object({
1572
+ token_id: z.string()
1160
1573
  });
1161
1574
  /**
1162
- * Returns a single Invoice HTML representation under `html` property.
1575
+ * Successfully updated. Returns updated token details with masked secret.
1163
1576
  */
1164
- export const zGetInvoiceResponse = z.object({
1165
- html: z.string().optional()
1577
+ export const zUpdateTokenResponse = zToken;
1578
+ export const zRegenerateTokenPath = z.object({
1579
+ token_id: z.string()
1166
1580
  });
1167
- export const zGetContactData = z.object({
1168
- body: z.never().optional(),
1169
- path: z.never().optional(),
1170
- query: z.never().optional()
1581
+ /**
1582
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1583
+ */
1584
+ export const zRegenerateTokenResponse = zToken;
1585
+ /**
1586
+ * An array of tickets for the organization, newest first.
1587
+ */
1588
+ export const zListTicketsResponse = z.array(zTicket);
1589
+ export const zCreateTicketBody = z.object({
1590
+ payload: z.string().optional(),
1591
+ attachments: z.array(z.string()).optional()
1171
1592
  });
1172
1593
  /**
1173
- * Returns a single object containing organization contact and billing address details.
1594
+ * Ticket created.
1174
1595
  */
1175
- export const zGetContactResponse = zBillingContact;
1176
- export const zUpdateContactData = z.object({
1177
- body: zBillingContact,
1178
- path: z.never().optional(),
1179
- query: z.never().optional()
1596
+ export const zCreateTicketResponse = zTicket;
1597
+ export const zCloseTicketPath = z.object({
1598
+ ticket_id: z.string()
1180
1599
  });
1181
1600
  /**
1182
- * Successfully updated. Returns updated organization details.
1601
+ * Ticket closed.
1183
1602
  */
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()
1603
+ export const zCloseTicketResponse = zTicket;
1604
+ export const zGetTicketPath = z.object({
1605
+ ticket_id: z.string()
1189
1606
  });
1190
1607
  /**
1191
- * An array of the applied promotional credits records.
1608
+ * Ticket with messages (internal notes excluded).
1192
1609
  */
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()
1610
+ export const zGetTicketResponse = zTicket;
1611
+ export const zReplyTicketBody = z.object({
1612
+ payload: z.string().optional(),
1613
+ attachments: z.array(z.string()).optional()
1200
1614
  });
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()
1615
+ export const zReplyTicketPath = z.object({
1616
+ ticket_id: z.string()
1207
1617
  });
1208
1618
  /**
1209
- * An array of charts
1619
+ * Reply appended.
1210
1620
  */
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()
1621
+ export const zReplyTicketResponse = zTicketMessage;
1622
+ export const zGetTicketAttachmentPath = z.object({
1623
+ ticket_id: z.string(),
1624
+ attachment_id: z.string()
1218
1625
  });
1219
1626
  /**
1220
- * Successfully created. Returns created Chart ID.
1627
+ * Attachment binary stream.
1221
1628
  */
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()
1629
+ export const zGetTicketAttachmentResponse = z.string();
1630
+ /**
1631
+ * List of repositories
1632
+ */
1633
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1634
+ export const zListTagsPath = z.object({
1635
+ region: z.string(),
1636
+ repository: z.string()
1230
1637
  });
1231
1638
  /**
1232
- * Successfully deleted.
1639
+ * Repository with tags
1233
1640
  */
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()
1641
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1642
+ export const zDeleteTagPath = z.object({
1643
+ region: z.string(),
1644
+ repository: z.string(),
1645
+ tag: z.string()
1646
+ });
1647
+ export const zGetTagPath = z.object({
1648
+ region: z.string(),
1649
+ repository: z.string(),
1650
+ tag: z.string()
1242
1651
  });
1243
1652
  /**
1244
- * Returns a single object containing chart details.
1653
+ * Tag details
1245
1654
  */
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()
1655
+ export const zGetTagResponse = zRegistryTag;
1656
+ /**
1657
+ * Returns a single object containing organization details.
1658
+ */
1659
+ export const zGetOrganizationResponse = zOrganization;
1660
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1661
+ /**
1662
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1663
+ *
1664
+ */
1665
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1666
+ /**
1667
+ * JSON-RPC 2.0 request payload
1668
+ */
1669
+ export const zPostMcpBody = z.object({
1670
+ jsonrpc: z.string().optional(),
1671
+ method: z.string().optional(),
1672
+ id: z.union([
1673
+ z.string(),
1674
+ z.number()
1675
+ ]).optional(),
1676
+ params: z.record(z.string(), z.unknown()).optional()
1254
1677
  });
1255
1678
  /**
1256
- * Successfully updated.
1679
+ * JSON-RPC 2.0 success or error response
1257
1680
  */
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()
1681
+ export const zPostMcpResponse = z.object({
1682
+ jsonrpc: z.string().optional(),
1683
+ id: z.union([
1684
+ z.string(),
1685
+ z.number()
1686
+ ]).optional(),
1687
+ result: z.record(z.string(), z.unknown()).optional(),
1688
+ error: z.object({
1689
+ code: z.int().optional(),
1690
+ message: z.string().optional()
1691
+ }).optional()
1692
+ });
1693
+ /**
1694
+ * An array of chart listings in the marketplace.
1695
+ */
1696
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1697
+ export const zGetMarketplaceChartFilesPath = z.object({
1698
+ chart_name: z.string(),
1699
+ version_channel: z.string()
1700
+ });
1701
+ /**
1702
+ * Returns an object containing the chart files for the latest matching version.
1703
+ */
1704
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1705
+ /**
1706
+ * An array of invites
1707
+ */
1708
+ export const zListInvitesResponse = z.array(zInvite);
1709
+ export const zCreateInviteBody = zInviteCreateInput;
1710
+ /**
1711
+ * Successfully created. Returns created invite details.
1712
+ */
1713
+ export const zCreateInviteResponse = zInvite;
1714
+ export const zGetInvitePath = z.object({
1715
+ code: z.string()
1716
+ });
1717
+ /**
1718
+ * The invitation code is valid. Returns the invited email and organization.
1719
+ */
1720
+ export const zGetInviteResponse = z.object({
1721
+ email: z.email().optional(),
1722
+ organization_id: z.string().optional()
1723
+ });
1724
+ export const zDeleteInvitePath = z.object({
1725
+ email: z.email()
1726
+ });
1727
+ export const zQueryClusterPath = z.object({
1728
+ cluster_id: z.string()
1729
+ });
1730
+ export const zListFleetsPath = z.object({
1731
+ cluster_id: z.string()
1265
1732
  });
1266
1733
  /**
1267
1734
  * An array of fleets
1268
1735
  */
1269
1736
  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()
1737
+ export const zCreateFleetBody = zFleetCreateInput;
1738
+ export const zCreateFleetPath = z.object({
1739
+ cluster_id: z.string()
1276
1740
  });
1277
1741
  /**
1278
1742
  * Successfully created. Returns created Fleet ID.
1279
1743
  */
1280
1744
  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()
1745
+ export const zDeleteFleetPath = z.object({
1746
+ cluster_id: z.string(),
1747
+ fleet_name: z.string()
1288
1748
  });
1289
1749
  /**
1290
1750
  * Successfully deleted.
1291
1751
  */
1292
1752
  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()
1753
+ export const zGetFleetPath = z.object({
1754
+ cluster_id: z.string(),
1755
+ fleet_name: z.string()
1300
1756
  });
1301
1757
  /**
1302
1758
  * Returns a single object containing fleet details.
1303
1759
  */
1304
1760
  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()
1761
+ export const zUpdateFleetBody = zFleetUpdateInput;
1762
+ export const zUpdateFleetPath = z.object({
1763
+ cluster_id: z.string(),
1764
+ fleet_name: z.string()
1312
1765
  });
1313
1766
  /**
1314
1767
  * Successfully updated.
1315
1768
  */
1316
1769
  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()
1770
+ export const zListChartsPath = z.object({
1771
+ cluster_id: z.string()
1328
1772
  });
1329
1773
  /**
1330
- * An array of clusters
1774
+ * An array of charts
1331
1775
  */
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()
1776
+ export const zListChartsResponse = z.array(zChart);
1777
+ export const zCreateChartBody = zChartCreateInput;
1778
+ export const zCreateChartPath = z.object({
1779
+ cluster_id: z.string()
1337
1780
  });
1338
1781
  /**
1339
- * Successfully created. Returns created Cluster ID.
1782
+ * Successfully created. Returns created Chart ID.
1340
1783
  */
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()
1784
+ export const zCreateChartResponse = z.string();
1785
+ export const zDeleteChartPath = z.object({
1786
+ cluster_id: z.string(),
1787
+ chart_name: z.string()
1348
1788
  });
1349
1789
  /**
1350
1790
  * Successfully deleted.
1351
1791
  */
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()
1359
- });
1360
- /**
1361
- * Returns a single object containing cluster details.
1362
- */
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()
1792
+ export const zDeleteChartResponse = z.string();
1793
+ export const zGetChartPath = z.object({
1794
+ cluster_id: z.string(),
1795
+ chart_name: z.string()
1370
1796
  });
1371
1797
  /**
1372
- * Successfully updated. Returns updated cluster details.
1798
+ * Returns a single object containing chart details.
1373
1799
  */
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()
1800
+ export const zGetChartResponse = zChart;
1801
+ export const zUpdateChartBody = zChartUpdateInput;
1802
+ export const zUpdateChartPath = z.object({
1803
+ cluster_id: z.string(),
1804
+ chart_name: z.string()
1381
1805
  });
1382
1806
  /**
1383
- * An object of cluster join information
1807
+ * Successfully updated.
1384
1808
  */
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()
1390
- });
1809
+ export const zUpdateChartResponse = z.string();
1391
1810
  /**
1392
- * An array of invites
1811
+ * An array of clusters
1393
1812
  */
1394
- 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
- });
1813
+ export const zListClustersResponse = z.array(zCluster);
1814
+ export const zCreateClusterBody = zClusterCreateInput;
1402
1815
  /**
1403
- * Successfully created. Returns created invite details.
1816
+ * Successfully created. Returns created Cluster ID.
1404
1817
  */
1405
- 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()
1818
+ export const zCreateClusterResponse = z.string();
1819
+ export const zDeleteClusterPath = z.object({
1820
+ cluster_id: z.string()
1412
1821
  });
1413
1822
  /**
1414
- * Returns a single object containing invite details.
1823
+ * Successfully deleted. The cluster has been torn down.
1415
1824
  */
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()
1423
- });
1424
- export const zListMarketplaceChartsData = z.object({
1425
- body: z.never().optional(),
1426
- path: z.never().optional(),
1427
- query: z.never().optional()
1825
+ export const zDeleteClusterResponse = z.string();
1826
+ export const zGetClusterPath = z.object({
1827
+ cluster_id: z.string()
1428
1828
  });
1429
1829
  /**
1430
- * An array of chart listings in the marketplace.
1830
+ * Returns a single object containing cluster details.
1431
1831
  */
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()
1832
+ export const zGetClusterResponse = zCluster;
1833
+ export const zUpdateClusterBody = zClusterUpdateInput;
1834
+ export const zUpdateClusterPath = z.object({
1835
+ cluster_id: z.string()
1439
1836
  });
1440
1837
  /**
1441
- * Returns an object containing the chart listing details.
1838
+ * Successfully updated. Returns updated cluster details.
1442
1839
  */
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()
1840
+ export const zUpdateClusterResponse = zCluster;
1841
+ export const zGetJoinInformationPath = z.object({
1842
+ cluster_id: z.string()
1448
1843
  });
1449
1844
  /**
1450
- * Returns a single object containing organization details.
1845
+ * An object of cluster join information
1451
1846
  */
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()
1847
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1848
+ export const zGetUsageQuery = z.object({
1849
+ granularity: z.enum([
1850
+ 'hourly',
1851
+ 'daily',
1852
+ 'monthly'
1853
+ ]).optional().default('daily')
1462
1854
  });
1463
1855
  /**
1464
- * Returns a list of access token details with masked secrets.
1856
+ * Usage data with facets for filtering
1465
1857
  */
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()
1471
- });
1858
+ export const zGetUsageResponse = zUsageResponse;
1472
1859
  /**
1473
- * Successfully created. Returns created token details with unmasked/raw secret.
1860
+ * 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.
1861
+ *
1474
1862
  */
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()
1863
+ export const zGetPaymentMethodSecretResponse = z.object({
1864
+ id: z.string().optional()
1489
1865
  });
1490
1866
  /**
1491
- * Returns access token details with masked secret.
1867
+ * An array of payment methods.
1492
1868
  */
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()
1869
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1870
+ export const zSetDefaultPaymentMethodPath = z.object({
1871
+ paymentMethodId: z.string()
1500
1872
  });
1501
1873
  /**
1502
- * Successfully updated. Returns updated token details with masked secret.
1874
+ * Default payment method updated.
1503
1875
  */
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()
1876
+ export const zSetDefaultPaymentMethodResponse = z.void();
1877
+ export const zDeletePaymentMethodPath = z.object({
1878
+ paymentMethodId: z.string()
1511
1879
  });
1512
1880
  /**
1513
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1881
+ * Payment method deleted.
1514
1882
  */
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()
1522
- });
1883
+ export const zDeletePaymentMethodResponse = z.void();
1523
1884
  /**
1524
- * An array of organizations the user belongs to.
1885
+ * An array of usage records.
1525
1886
  */
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()
1534
- });
1887
+ export const zListInvoicesResponse = z.array(zInvoice);
1535
1888
  /**
1536
- * An array of users
1889
+ * The outcome of the attempt.
1537
1890
  */
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()
1543
- });
1891
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1544
1892
  /**
1545
- * Successfully created. Returns created user details.
1893
+ * Returns a single object containing organization contact and billing address details.
1546
1894
  */
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()
1554
- });
1895
+ export const zGetContactResponse = zBillingContact;
1896
+ export const zUpdateContactBody = zBillingContact;
1555
1897
  /**
1556
- * User profile information
1898
+ * Successfully updated. Returns updated organization details.
1557
1899
  */
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()
1565
- });
1900
+ export const zUpdateContactResponse = zBillingContact;
1566
1901
  /**
1567
- * User profile information
1902
+ * An array of the applied promotional credits records.
1568
1903
  */
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()
1904
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1905
+ export const zRedeemCreditsBody = z.object({
1906
+ code: z.string().optional()
1576
1907
  });
1577
- /**
1578
- * Successfully created. Returns created user details.
1579
- */
1580
- export const zUpdateUserResponse = zUser;
1581
1908
  //# sourceMappingURL=zod.gen.js.map