@cloudfleet/sdk 0.0.1-7aa2bb2 → 0.0.1-7cc6159

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.
package/dist/zod.gen.js CHANGED
@@ -167,22 +167,7 @@ export const zChart = z.object({
167
167
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
168
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
169
  chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
170
- status: z.enum([
171
- 'InstallSucceeded',
172
- 'InstallFailed',
173
- 'UpgradeSucceeded',
174
- 'UpgradeFailed',
175
- 'TestSucceeded',
176
- 'TestFailed',
177
- 'RollbackSucceeded',
178
- 'RollbackFailed',
179
- 'UninstallSucceeded',
180
- 'UninstallFailed',
181
- 'ArtifactFailed',
182
- 'DependencyNotReady',
183
- 'Progressing',
184
- 'SourceNotReady'
185
- ]),
170
+ status: z.string(),
186
171
  version_current: z.string(),
187
172
  created_at: z.string(),
188
173
  updated_at: z.string(),
@@ -192,21 +177,49 @@ export const zChartUpdateInput = z.object({
192
177
  values: z.string(),
193
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-]+)*))?$/)
194
179
  });
180
+ /**
181
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
182
+ */
195
183
  export const zClusterCreateInput = z.object({
196
184
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
197
- tier: z.enum(['basic', 'pro']),
198
- region: z.enum([
199
- 'staging-1a',
200
- 'northamerica-central-1',
201
- 'europe-central-1a',
202
- 'northamerica-central-1a'
203
- ]).optional().default('staging-1a'),
204
- version_channel: z.enum([
205
- '1.x.x-cfke.x',
206
- '1.31.x-cfke.x',
207
- '1.32.x-cfke.x',
208
- '1.33.x-cfke.x'
209
- ]).optional().default('1.x.x-cfke.x')
185
+ tier: z.enum([
186
+ 'basic',
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
+ })
210
223
  });
211
224
  export const zClusterJoinInformation = z.object({
212
225
  certificate_authority: z.string(),
@@ -227,24 +240,55 @@ export const zClusterJoinInformation = z.object({
227
240
  gcp_workload_identity_provider: z.string()
228
241
  })
229
242
  });
243
+ /**
244
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
245
+ */
230
246
  export const zCluster = z.object({
231
247
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
232
- tier: z.enum(['basic', 'pro']),
233
- region: z.enum([
234
- 'staging-1a',
235
- 'northamerica-central-1',
236
- 'europe-central-1a',
237
- 'northamerica-central-1a'
238
- ]).optional().default('staging-1a'),
248
+ tier: z.enum([
249
+ 'basic',
250
+ 'pro',
251
+ 'enterprise'
252
+ ]).default('basic'),
253
+ 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'),
254
+ release_channel: z.enum([
255
+ 'rapid',
256
+ 'stable',
257
+ 'extended'
258
+ ]).default('rapid'),
259
+ features: z.object({
260
+ gpu_sharing_strategy: z.enum([
261
+ 'none',
262
+ 'mps',
263
+ 'time_slicing'
264
+ ]).default('none'),
265
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
266
+ cilium_socket_lb_host_namespace_only: z.boolean()
267
+ }).default({
268
+ gpu_sharing_strategy: 'none',
269
+ gpu_max_shared_clients_per_gpu: 4,
270
+ cilium_socket_lb_host_namespace_only: false
271
+ }),
272
+ region: z.string(),
273
+ networking: z.object({
274
+ pod_cidr: z.string().default('10.244.0.0/16'),
275
+ service_cidr: z.string().default('10.96.0.0/12'),
276
+ dual_stack: z.boolean(),
277
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
278
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
279
+ }).default({
280
+ pod_cidr: '10.244.0.0/16',
281
+ service_cidr: '10.96.0.0/12',
282
+ dual_stack: false,
283
+ pod_cidr_v6: '2001:db8:1:2::/48',
284
+ service_cidr_v6: '2001:db8:1:1::/112'
285
+ }),
239
286
  id: z.uuid(),
240
287
  status: z.enum([
241
- 'active',
242
- 'disabled',
243
- 'deleted',
244
288
  'creating',
245
289
  'deployed',
246
- 'failed',
247
- 'updating'
290
+ 'updating',
291
+ 'disabled'
248
292
  ]),
249
293
  endpoint: z.union([
250
294
  z.url(),
@@ -258,14 +302,41 @@ export const zCluster = z.object({
258
302
  version_current: z.string().optional(),
259
303
  created_at: z.string().optional(),
260
304
  updated_at: z.string().optional(),
261
- ready: z.boolean().optional(),
262
- 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()
305
+ ready: z.boolean()
263
306
  });
307
+ /**
308
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
309
+ */
264
310
  export const zClusterUpdateInput = z.object({
265
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
266
- tier: z.enum(['basic', 'pro']),
267
- 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()
311
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
312
+ tier: z.enum([
313
+ 'basic',
314
+ 'pro',
315
+ 'enterprise'
316
+ ]).optional().default('basic'),
317
+ 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'),
318
+ release_channel: z.enum([
319
+ 'rapid',
320
+ 'stable',
321
+ 'extended'
322
+ ]).optional().default('rapid'),
323
+ features: z.object({
324
+ gpu_sharing_strategy: z.enum([
325
+ 'none',
326
+ 'mps',
327
+ 'time_slicing'
328
+ ]).optional().default('none'),
329
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
330
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
331
+ }).optional().default({
332
+ gpu_sharing_strategy: 'none',
333
+ gpu_max_shared_clients_per_gpu: 4,
334
+ cilium_socket_lb_host_namespace_only: false
335
+ })
268
336
  });
337
+ /**
338
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
339
+ */
269
340
  export const zFleetCreateInput = z.object({
270
341
  limits: z.object({
271
342
  cpu: z.int().gte(0).lte(100000).optional()
@@ -276,7 +347,7 @@ export const zFleetCreateInput = z.object({
276
347
  }).optional(),
277
348
  hetzner: z.object({
278
349
  enabled: z.boolean(),
279
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
350
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
280
351
  }).optional(),
281
352
  aws: z.object({
282
353
  enabled: z.boolean(),
@@ -444,7 +515,7 @@ export const zFleetCreateInput = z.object({
444
515
  'x8g',
445
516
  'z1d',
446
517
  'z3'
447
- ])).optional(),
518
+ ])).optional().default([]),
448
519
  'topology.kubernetes.io/region': z.array(z.enum([
449
520
  'africa-south1',
450
521
  'ap-northeast-1',
@@ -510,11 +581,19 @@ export const zFleetCreateInput = z.object({
510
581
  'us-west2',
511
582
  'us-west3',
512
583
  'us-west4'
513
- ])).optional()
514
- }).optional(),
584
+ ])).optional().default([])
585
+ }).optional().default({
586
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
587
+ 'kubernetes.io/arch': ['amd64'],
588
+ 'cfke.io/instance-family': [],
589
+ 'topology.kubernetes.io/region': []
590
+ }),
515
591
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
516
592
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
517
593
  });
594
+ /**
595
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
596
+ */
518
597
  export const zFleet = z.object({
519
598
  limits: z.object({
520
599
  cpu: z.int().gte(0).lte(100000).optional()
@@ -532,8 +611,8 @@ export const zFleet = z.object({
532
611
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
533
612
  }).optional(),
534
613
  constraints: z.object({
535
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
536
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
614
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
615
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
537
616
  'cfke.io/instance-family': z.array(z.enum([
538
617
  'a1',
539
618
  'a2',
@@ -693,7 +772,7 @@ export const zFleet = z.object({
693
772
  'x8g',
694
773
  'z1d',
695
774
  'z3'
696
- ])).optional(),
775
+ ])).optional().default([]),
697
776
  'topology.kubernetes.io/region': z.array(z.enum([
698
777
  'africa-south1',
699
778
  'ap-northeast-1',
@@ -759,11 +838,23 @@ export const zFleet = z.object({
759
838
  'us-west2',
760
839
  'us-west3',
761
840
  'us-west4'
762
- ])).optional()
763
- }).optional(),
841
+ ])).optional().default([])
842
+ }).default({
843
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
844
+ 'kubernetes.io/arch': ['amd64'],
845
+ 'cfke.io/instance-family': [],
846
+ 'topology.kubernetes.io/region': []
847
+ }),
764
848
  scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
765
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
849
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
850
+ ready: z.boolean(),
851
+ status_message: z.string().optional(),
852
+ created_at: z.string(),
853
+ updated_at: z.string()
766
854
  });
855
+ /**
856
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
857
+ */
767
858
  export const zFleetUpdateInput = z.object({
768
859
  limits: z.object({
769
860
  cpu: z.int().gte(0).lte(100000).optional()
@@ -774,15 +865,15 @@ export const zFleetUpdateInput = z.object({
774
865
  }).optional(),
775
866
  hetzner: z.object({
776
867
  enabled: z.boolean(),
777
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
868
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
778
869
  }).optional(),
779
870
  aws: z.object({
780
871
  enabled: z.boolean(),
781
872
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
782
873
  }).optional(),
783
874
  constraints: z.object({
784
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
785
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
875
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
876
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
786
877
  'cfke.io/instance-family': z.array(z.enum([
787
878
  'a1',
788
879
  'a2',
@@ -942,7 +1033,7 @@ export const zFleetUpdateInput = z.object({
942
1033
  'x8g',
943
1034
  'z1d',
944
1035
  'z3'
945
- ])).optional(),
1036
+ ])).optional().default([]),
946
1037
  'topology.kubernetes.io/region': z.array(z.enum([
947
1038
  'africa-south1',
948
1039
  'ap-northeast-1',
@@ -1008,9 +1099,14 @@ export const zFleetUpdateInput = z.object({
1008
1099
  'us-west2',
1009
1100
  'us-west3',
1010
1101
  'us-west4'
1011
- ])).optional()
1012
- }).optional(),
1013
- scalingProfile: z.enum(['aggressive', 'conservative'])
1102
+ ])).optional().default([])
1103
+ }).optional().default({
1104
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1105
+ 'kubernetes.io/arch': ['amd64'],
1106
+ 'cfke.io/instance-family': [],
1107
+ 'topology.kubernetes.io/region': []
1108
+ }),
1109
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
1014
1110
  });
1015
1111
  export const zInviteCreateInput = z.object({
1016
1112
  email: z.email(),
@@ -1082,6 +1178,8 @@ export const zOrganization = z.object({
1082
1178
  basic_clusters_available: z.int(),
1083
1179
  pro_clusters_max: z.int().gte(0),
1084
1180
  pro_clusters_available: z.int(),
1181
+ enterprise_clusters_max: z.int().gte(0),
1182
+ enterprise_clusters_available: z.int(),
1085
1183
  fleets_max: z.int().gte(0),
1086
1184
  cluster_tiers: z.array(z.string()).min(0),
1087
1185
  regions: z.array(z.string()).min(1),
@@ -1123,6 +1221,8 @@ export const zPlatformQuota = z.object({
1123
1221
  basic_clusters_available: z.int(),
1124
1222
  pro_clusters_max: z.int().gte(0),
1125
1223
  pro_clusters_available: z.int(),
1224
+ enterprise_clusters_max: z.int().gte(0),
1225
+ enterprise_clusters_available: z.int(),
1126
1226
  fleets_max: z.int().gte(0),
1127
1227
  cluster_tiers: z.array(z.string()).min(0),
1128
1228
  regions: z.array(z.string()).min(1),
@@ -1338,217 +1438,162 @@ export const zUserUpdateInput = z.object({
1338
1438
  role: z.enum(['Administrator', 'User']).optional(),
1339
1439
  status: z.enum(['active', 'inactive']).optional()
1340
1440
  });
1341
- export const zGetUsageQuery = z.object({
1342
- granularity: z.enum([
1343
- 'hourly',
1344
- 'daily',
1345
- 'monthly'
1346
- ]).optional().default('daily')
1441
+ export const zListUserOrganizationsPath = z.object({
1442
+ email: z.string()
1347
1443
  });
1348
1444
  /**
1349
- * Usage data with facets for filtering
1445
+ * An array of organizations the user belongs to.
1350
1446
  */
1351
- export const zGetUsageResponse = zUsageResponse;
1447
+ export const zListUserOrganizationsResponse = z.array(z.object({
1448
+ realm: z.string().optional(),
1449
+ displayName: z.string().optional()
1450
+ }));
1352
1451
  /**
1353
- * 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.
1354
- *
1452
+ * An array of users
1355
1453
  */
1356
- export const zGetPaymentMethodSecretResponse = z.object({
1357
- id: z.string().optional()
1358
- });
1454
+ export const zListUsersResponse = z.array(zUser);
1455
+ export const zCreateUserBody = zUserCreateInput;
1359
1456
  /**
1360
- * An array of payment methods.
1457
+ * Successfully created. Returns created user details.
1361
1458
  */
1362
- export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1363
- export const zSetDefaultPaymentMethodPath = z.object({
1364
- paymentMethodId: z.string()
1459
+ export const zCreateUserResponse = zUser;
1460
+ export const zDeleteUserPath = z.object({
1461
+ user_id: z.string()
1365
1462
  });
1366
1463
  /**
1367
- * Default payment method updated.
1464
+ * User profile information
1368
1465
  */
1369
- export const zSetDefaultPaymentMethodResponse = z.void();
1370
- export const zDeletePaymentMethodPath = z.object({
1371
- paymentMethodId: z.string()
1466
+ export const zDeleteUserResponse = zUser;
1467
+ export const zGetUserPath = z.object({
1468
+ user_id: z.string()
1372
1469
  });
1373
1470
  /**
1374
- * Payment method deleted.
1375
- */
1376
- export const zDeletePaymentMethodResponse = z.void();
1377
- /**
1378
- * An array of usage records.
1471
+ * User profile information
1379
1472
  */
1380
- export const zListInvoicesResponse = z.array(zInvoice);
1473
+ export const zGetUserResponse = zUser;
1474
+ export const zUpdateUserBody = zUserUpdateInput;
1475
+ export const zUpdateUserPath = z.object({
1476
+ user_id: z.string()
1477
+ });
1381
1478
  /**
1382
- * Returns a single object containing organization contact and billing address details.
1479
+ * Successfully created. Returns created user details.
1383
1480
  */
1384
- export const zGetContactResponse = zBillingContact;
1385
- export const zUpdateContactBody = zBillingContact;
1481
+ export const zUpdateUserResponse = zUser;
1386
1482
  /**
1387
- * Successfully updated. Returns updated organization details.
1483
+ * Returns a list of access token details with masked secrets.
1388
1484
  */
1389
- export const zUpdateContactResponse = zBillingContact;
1485
+ export const zListTokensResponse = z.array(zToken);
1486
+ export const zCreateTokenBody = zTokenCreateInput;
1390
1487
  /**
1391
- * An array of the applied promotional credits records.
1488
+ * Successfully created. Returns created token details with unmasked/raw secret.
1392
1489
  */
1393
- export const zGetCreditsResponse = z.array(zBillingCredits);
1394
- export const zRedeemCreditsBody = z.object({
1395
- code: z.string().optional()
1396
- });
1397
- export const zListChartsPath = z.object({
1398
- cluster_id: z.string()
1490
+ export const zCreateTokenResponse = zToken;
1491
+ export const zDeleteTokenPath = z.object({
1492
+ token_id: z.string()
1399
1493
  });
1400
- /**
1401
- * An array of charts
1402
- */
1403
- export const zListChartsResponse = z.array(zChart);
1404
- export const zCreateChartBody = zChartCreateInput;
1405
- export const zCreateChartPath = z.object({
1406
- cluster_id: z.string()
1494
+ export const zGetTokenPath = z.object({
1495
+ token_id: z.string()
1407
1496
  });
1408
1497
  /**
1409
- * Successfully created. Returns created Chart ID.
1498
+ * Returns access token details with masked secret.
1410
1499
  */
1411
- export const zCreateChartResponse = z.string();
1412
- export const zDeleteChartPath = z.object({
1413
- cluster_id: z.string(),
1414
- chart_name: z.string()
1500
+ export const zGetTokenResponse = zToken;
1501
+ export const zUpdateTokenBody = zTokenUpdateInput;
1502
+ export const zUpdateTokenPath = z.object({
1503
+ token_id: z.string()
1415
1504
  });
1416
1505
  /**
1417
- * Successfully deleted.
1506
+ * Successfully updated. Returns updated token details with masked secret.
1418
1507
  */
1419
- export const zDeleteChartResponse = z.string();
1420
- export const zGetChartPath = z.object({
1421
- cluster_id: z.string(),
1422
- chart_name: z.string()
1508
+ export const zUpdateTokenResponse = zToken;
1509
+ export const zRegenerateTokenPath = z.object({
1510
+ token_id: z.string()
1423
1511
  });
1424
1512
  /**
1425
- * Returns a single object containing chart details.
1513
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1426
1514
  */
1427
- export const zGetChartResponse = zChart;
1428
- export const zUpdateChartBody = zChartUpdateInput;
1429
- export const zUpdateChartPath = z.object({
1430
- cluster_id: z.string(),
1431
- chart_name: z.string()
1432
- });
1515
+ export const zRegenerateTokenResponse = zToken;
1433
1516
  /**
1434
- * Successfully updated.
1517
+ * Tickets for the organization.
1435
1518
  */
1436
- export const zUpdateChartResponse = z.string();
1437
- export const zListFleetsPath = z.object({
1438
- cluster_id: z.string()
1519
+ export const zListTicketsResponse = zTicketListResponse;
1520
+ export const zCreateTicketBody = z.object({
1521
+ payload: z.string().optional(),
1522
+ attachments: z.array(z.string()).optional()
1439
1523
  });
1440
1524
  /**
1441
- * An array of fleets
1525
+ * Ticket created.
1442
1526
  */
1443
- export const zListFleetsResponse = z.array(zFleet);
1444
- export const zCreateFleetBody = zFleetCreateInput;
1445
- export const zCreateFleetPath = z.object({
1446
- cluster_id: z.string()
1527
+ export const zCreateTicketResponse = zTicket;
1528
+ export const zCloseTicketPath = z.object({
1529
+ ticket_id: z.string()
1447
1530
  });
1448
1531
  /**
1449
- * Successfully created. Returns created Fleet ID.
1532
+ * Ticket closed.
1450
1533
  */
1451
- export const zCreateFleetResponse = z.string();
1452
- export const zDeleteFleetPath = z.object({
1453
- cluster_id: z.string(),
1454
- fleet_name: z.string()
1534
+ export const zCloseTicketResponse = zTicket;
1535
+ export const zGetTicketPath = z.object({
1536
+ ticket_id: z.string()
1455
1537
  });
1456
1538
  /**
1457
- * Successfully deleted.
1539
+ * Ticket with messages (internal notes excluded).
1458
1540
  */
1459
- export const zDeleteFleetResponse = z.string();
1460
- export const zGetFleetPath = z.object({
1461
- cluster_id: z.string(),
1462
- fleet_name: z.string()
1541
+ export const zGetTicketResponse = zTicket;
1542
+ export const zReplyTicketBody = z.object({
1543
+ payload: z.string().optional(),
1544
+ attachments: z.array(z.string()).optional()
1463
1545
  });
1464
- /**
1465
- * Returns a single object containing fleet details.
1466
- */
1467
- export const zGetFleetResponse = zFleet;
1468
- export const zUpdateFleetBody = zFleetUpdateInput;
1469
- export const zUpdateFleetPath = z.object({
1470
- cluster_id: z.string(),
1471
- fleet_name: z.string()
1546
+ export const zReplyTicketPath = z.object({
1547
+ ticket_id: z.string()
1472
1548
  });
1473
1549
  /**
1474
- * Successfully updated.
1550
+ * Reply appended.
1475
1551
  */
1476
- export const zUpdateFleetResponse = z.string();
1477
- export const zQueryClusterPath = z.object({
1478
- cluster_id: z.string()
1552
+ export const zReplyTicketResponse = zTicketMessage;
1553
+ export const zGetTicketAttachmentPath = z.object({
1554
+ ticket_id: z.string(),
1555
+ attachment_id: z.string()
1479
1556
  });
1480
1557
  /**
1481
- * An array of clusters
1558
+ * Attachment binary stream.
1482
1559
  */
1483
- export const zListClustersResponse = z.array(zCluster);
1484
- export const zCreateClusterBody = zClusterCreateInput;
1560
+ export const zGetTicketAttachmentResponse = z.string();
1485
1561
  /**
1486
- * Successfully created. Returns created Cluster ID.
1562
+ * List of repositories
1487
1563
  */
1488
- export const zCreateClusterResponse = z.string();
1489
- export const zDeleteClusterPath = z.object({
1490
- cluster_id: z.string()
1564
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1565
+ export const zListTagsPath = z.object({
1566
+ region: z.string(),
1567
+ repository: z.string()
1491
1568
  });
1492
1569
  /**
1493
- * Successfully deleted.
1570
+ * Repository with tags
1494
1571
  */
1495
- export const zDeleteClusterResponse = z.string();
1496
- export const zGetClusterPath = z.object({
1497
- cluster_id: z.string()
1572
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1573
+ export const zDeleteTagPath = z.object({
1574
+ region: z.string(),
1575
+ repository: z.string(),
1576
+ tag: z.string()
1498
1577
  });
1499
- /**
1500
- * Returns a single object containing cluster details.
1501
- */
1502
- export const zGetClusterResponse = zCluster;
1503
- export const zUpdateClusterBody = zClusterUpdateInput;
1504
- export const zUpdateClusterPath = z.object({
1505
- cluster_id: z.string()
1578
+ export const zGetTagPath = z.object({
1579
+ region: z.string(),
1580
+ repository: z.string(),
1581
+ tag: z.string()
1506
1582
  });
1507
1583
  /**
1508
- * Successfully updated. Returns updated cluster details.
1584
+ * Tag details
1509
1585
  */
1510
- export const zUpdateClusterResponse = zCluster;
1511
- export const zGetJoinInformationPath = z.object({
1512
- cluster_id: z.string()
1513
- });
1586
+ export const zGetTagResponse = zRegistryTag;
1514
1587
  /**
1515
- * An object of cluster join information
1588
+ * Returns a single object containing organization details.
1516
1589
  */
1517
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1590
+ export const zGetOrganizationResponse = zOrganization;
1591
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1518
1592
  /**
1519
- * An array of invites
1593
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1594
+ *
1520
1595
  */
1521
- export const zListInvitesResponse = z.array(zInvite);
1522
- export const zCreateInviteBody = zInviteCreateInput;
1523
- /**
1524
- * Successfully created. Returns created invite details.
1525
- */
1526
- export const zCreateInviteResponse = zInvite;
1527
- export const zGetInvitePath = z.object({
1528
- code: z.string()
1529
- });
1530
- /**
1531
- * The invitation code is valid. Returns the invited email and organization.
1532
- */
1533
- export const zGetInviteResponse = z.object({
1534
- email: z.email().optional(),
1535
- organization_id: z.string().optional()
1536
- });
1537
- export const zDeleteInvitePath = z.object({
1538
- email: z.email()
1539
- });
1540
- /**
1541
- * An array of chart listings in the marketplace.
1542
- */
1543
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1544
- export const zGetMarketplaceChartFilesPath = z.object({
1545
- chart_name: z.string(),
1546
- version_channel: z.string()
1547
- });
1548
- /**
1549
- * Returns an object containing the chart files for the latest matching version.
1550
- */
1551
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1596
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1552
1597
  /**
1553
1598
  * JSON-RPC 2.0 request payload
1554
1599
  */
@@ -1577,159 +1622,214 @@ export const zPostMcpResponse = z.object({
1577
1622
  }).optional()
1578
1623
  });
1579
1624
  /**
1580
- * Returns a single object containing organization details.
1625
+ * An array of chart listings in the marketplace.
1581
1626
  */
1582
- export const zGetOrganizationResponse = zOrganization;
1583
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1627
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1628
+ export const zGetMarketplaceChartFilesPath = z.object({
1629
+ chart_name: z.string(),
1630
+ version_channel: z.string()
1631
+ });
1584
1632
  /**
1585
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1586
- *
1633
+ * Returns an object containing the chart files for the latest matching version.
1587
1634
  */
1588
- export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1635
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1589
1636
  /**
1590
- * List of repositories
1637
+ * An array of invites
1591
1638
  */
1592
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1593
- export const zListTagsPath = z.object({
1594
- region: z.string(),
1595
- repository: z.string()
1639
+ export const zListInvitesResponse = z.array(zInvite);
1640
+ export const zCreateInviteBody = zInviteCreateInput;
1641
+ /**
1642
+ * Successfully created. Returns created invite details.
1643
+ */
1644
+ export const zCreateInviteResponse = zInvite;
1645
+ export const zGetInvitePath = z.object({
1646
+ code: z.string()
1596
1647
  });
1597
1648
  /**
1598
- * Repository with tags
1649
+ * The invitation code is valid. Returns the invited email and organization.
1599
1650
  */
1600
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1601
- export const zDeleteTagPath = z.object({
1602
- region: z.string(),
1603
- repository: z.string(),
1604
- tag: z.string()
1651
+ export const zGetInviteResponse = z.object({
1652
+ email: z.email().optional(),
1653
+ organization_id: z.string().optional()
1605
1654
  });
1606
- export const zGetTagPath = z.object({
1607
- region: z.string(),
1608
- repository: z.string(),
1609
- tag: z.string()
1655
+ export const zDeleteInvitePath = z.object({
1656
+ email: z.email()
1657
+ });
1658
+ export const zQueryClusterPath = z.object({
1659
+ cluster_id: z.string()
1660
+ });
1661
+ export const zListFleetsPath = z.object({
1662
+ cluster_id: z.string()
1610
1663
  });
1611
1664
  /**
1612
- * Tag details
1665
+ * An array of fleets
1613
1666
  */
1614
- export const zGetTagResponse = zRegistryTag;
1667
+ export const zListFleetsResponse = z.array(zFleet);
1668
+ export const zCreateFleetBody = zFleetCreateInput;
1669
+ export const zCreateFleetPath = z.object({
1670
+ cluster_id: z.string()
1671
+ });
1615
1672
  /**
1616
- * Tickets for the organization.
1673
+ * Successfully created. Returns created Fleet ID.
1617
1674
  */
1618
- export const zListTicketsResponse = zTicketListResponse;
1619
- export const zCreateTicketBody = z.object({
1620
- payload: z.string().optional(),
1621
- attachments: z.array(z.string()).optional()
1675
+ export const zCreateFleetResponse = z.string();
1676
+ export const zDeleteFleetPath = z.object({
1677
+ cluster_id: z.string(),
1678
+ fleet_name: z.string()
1622
1679
  });
1623
1680
  /**
1624
- * Ticket created.
1681
+ * Successfully deleted.
1625
1682
  */
1626
- export const zCreateTicketResponse = zTicket;
1627
- export const zCloseTicketPath = z.object({
1628
- ticket_id: z.string()
1683
+ export const zDeleteFleetResponse = z.string();
1684
+ export const zGetFleetPath = z.object({
1685
+ cluster_id: z.string(),
1686
+ fleet_name: z.string()
1629
1687
  });
1630
1688
  /**
1631
- * Ticket closed.
1689
+ * Returns a single object containing fleet details.
1632
1690
  */
1633
- export const zCloseTicketResponse = zTicket;
1634
- export const zGetTicketPath = z.object({
1635
- ticket_id: z.string()
1691
+ export const zGetFleetResponse = zFleet;
1692
+ export const zUpdateFleetBody = zFleetUpdateInput;
1693
+ export const zUpdateFleetPath = z.object({
1694
+ cluster_id: z.string(),
1695
+ fleet_name: z.string()
1636
1696
  });
1637
1697
  /**
1638
- * Ticket with messages (internal notes excluded).
1698
+ * Successfully updated.
1639
1699
  */
1640
- export const zGetTicketResponse = zTicket;
1641
- export const zReplyTicketBody = z.object({
1642
- payload: z.string().optional(),
1643
- attachments: z.array(z.string()).optional()
1644
- });
1645
- export const zReplyTicketPath = z.object({
1646
- ticket_id: z.string()
1700
+ export const zUpdateFleetResponse = z.string();
1701
+ export const zListChartsPath = z.object({
1702
+ cluster_id: z.string()
1647
1703
  });
1648
1704
  /**
1649
- * Reply appended.
1705
+ * An array of charts
1650
1706
  */
1651
- export const zReplyTicketResponse = zTicketMessage;
1652
- export const zGetTicketAttachmentPath = z.object({
1653
- ticket_id: z.string(),
1654
- attachment_id: z.string()
1707
+ export const zListChartsResponse = z.array(zChart);
1708
+ export const zCreateChartBody = zChartCreateInput;
1709
+ export const zCreateChartPath = z.object({
1710
+ cluster_id: z.string()
1655
1711
  });
1656
1712
  /**
1657
- * Attachment binary stream.
1713
+ * Successfully created. Returns created Chart ID.
1658
1714
  */
1659
- export const zGetTicketAttachmentResponse = z.string();
1715
+ export const zCreateChartResponse = z.string();
1716
+ export const zDeleteChartPath = z.object({
1717
+ cluster_id: z.string(),
1718
+ chart_name: z.string()
1719
+ });
1660
1720
  /**
1661
- * Returns a list of access token details with masked secrets.
1721
+ * Successfully deleted.
1662
1722
  */
1663
- export const zListTokensResponse = z.array(zToken);
1664
- export const zCreateTokenBody = zTokenCreateInput;
1723
+ export const zDeleteChartResponse = z.string();
1724
+ export const zGetChartPath = z.object({
1725
+ cluster_id: z.string(),
1726
+ chart_name: z.string()
1727
+ });
1665
1728
  /**
1666
- * Successfully created. Returns created token details with unmasked/raw secret.
1729
+ * Returns a single object containing chart details.
1667
1730
  */
1668
- export const zCreateTokenResponse = zToken;
1669
- export const zDeleteTokenPath = z.object({
1670
- token_id: z.string()
1731
+ export const zGetChartResponse = zChart;
1732
+ export const zUpdateChartBody = zChartUpdateInput;
1733
+ export const zUpdateChartPath = z.object({
1734
+ cluster_id: z.string(),
1735
+ chart_name: z.string()
1671
1736
  });
1672
- export const zGetTokenPath = z.object({
1673
- token_id: z.string()
1737
+ /**
1738
+ * Successfully updated.
1739
+ */
1740
+ export const zUpdateChartResponse = z.string();
1741
+ /**
1742
+ * An array of clusters
1743
+ */
1744
+ export const zListClustersResponse = z.array(zCluster);
1745
+ export const zCreateClusterBody = zClusterCreateInput;
1746
+ /**
1747
+ * Successfully created. Returns created Cluster ID.
1748
+ */
1749
+ export const zCreateClusterResponse = z.string();
1750
+ export const zDeleteClusterPath = z.object({
1751
+ cluster_id: z.string()
1674
1752
  });
1675
1753
  /**
1676
- * Returns access token details with masked secret.
1754
+ * Successfully deleted. The cluster has been torn down.
1677
1755
  */
1678
- export const zGetTokenResponse = zToken;
1679
- export const zUpdateTokenBody = zTokenUpdateInput;
1680
- export const zUpdateTokenPath = z.object({
1681
- token_id: z.string()
1756
+ export const zDeleteClusterResponse = z.string();
1757
+ export const zGetClusterPath = z.object({
1758
+ cluster_id: z.string()
1682
1759
  });
1683
1760
  /**
1684
- * Successfully updated. Returns updated token details with masked secret.
1761
+ * Returns a single object containing cluster details.
1685
1762
  */
1686
- export const zUpdateTokenResponse = zToken;
1687
- export const zRegenerateTokenPath = z.object({
1688
- token_id: z.string()
1763
+ export const zGetClusterResponse = zCluster;
1764
+ export const zUpdateClusterBody = zClusterUpdateInput;
1765
+ export const zUpdateClusterPath = z.object({
1766
+ cluster_id: z.string()
1689
1767
  });
1690
1768
  /**
1691
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1769
+ * Successfully updated. Returns updated cluster details.
1692
1770
  */
1693
- export const zRegenerateTokenResponse = zToken;
1694
- export const zListUserOrganizationsPath = z.object({
1695
- email: z.string()
1771
+ export const zUpdateClusterResponse = zCluster;
1772
+ export const zGetJoinInformationPath = z.object({
1773
+ cluster_id: z.string()
1696
1774
  });
1697
1775
  /**
1698
- * An array of organizations the user belongs to.
1776
+ * An object of cluster join information
1699
1777
  */
1700
- export const zListUserOrganizationsResponse = z.array(z.object({
1701
- realm: z.string().optional(),
1702
- displayName: z.string().optional()
1703
- }));
1778
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1779
+ export const zGetUsageQuery = z.object({
1780
+ granularity: z.enum([
1781
+ 'hourly',
1782
+ 'daily',
1783
+ 'monthly'
1784
+ ]).optional().default('daily')
1785
+ });
1704
1786
  /**
1705
- * An array of users
1787
+ * Usage data with facets for filtering
1706
1788
  */
1707
- export const zListUsersResponse = z.array(zUser);
1708
- export const zCreateUserBody = zUserCreateInput;
1789
+ export const zGetUsageResponse = zUsageResponse;
1709
1790
  /**
1710
- * Successfully created. Returns created user details.
1791
+ * 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.
1792
+ *
1711
1793
  */
1712
- export const zCreateUserResponse = zUser;
1713
- export const zDeleteUserPath = z.object({
1714
- user_id: z.string()
1794
+ export const zGetPaymentMethodSecretResponse = z.object({
1795
+ id: z.string().optional()
1715
1796
  });
1716
1797
  /**
1717
- * User profile information
1798
+ * An array of payment methods.
1718
1799
  */
1719
- export const zDeleteUserResponse = zUser;
1720
- export const zGetUserPath = z.object({
1721
- user_id: z.string()
1800
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1801
+ export const zSetDefaultPaymentMethodPath = z.object({
1802
+ paymentMethodId: z.string()
1722
1803
  });
1723
1804
  /**
1724
- * User profile information
1805
+ * Default payment method updated.
1725
1806
  */
1726
- export const zGetUserResponse = zUser;
1727
- export const zUpdateUserBody = zUserUpdateInput;
1728
- export const zUpdateUserPath = z.object({
1729
- user_id: z.string()
1807
+ export const zSetDefaultPaymentMethodResponse = z.void();
1808
+ export const zDeletePaymentMethodPath = z.object({
1809
+ paymentMethodId: z.string()
1730
1810
  });
1731
1811
  /**
1732
- * Successfully created. Returns created user details.
1812
+ * Payment method deleted.
1733
1813
  */
1734
- export const zUpdateUserResponse = zUser;
1814
+ export const zDeletePaymentMethodResponse = z.void();
1815
+ /**
1816
+ * An array of usage records.
1817
+ */
1818
+ export const zListInvoicesResponse = z.array(zInvoice);
1819
+ /**
1820
+ * Returns a single object containing organization contact and billing address details.
1821
+ */
1822
+ export const zGetContactResponse = zBillingContact;
1823
+ export const zUpdateContactBody = zBillingContact;
1824
+ /**
1825
+ * Successfully updated. Returns updated organization details.
1826
+ */
1827
+ export const zUpdateContactResponse = zBillingContact;
1828
+ /**
1829
+ * An array of the applied promotional credits records.
1830
+ */
1831
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1832
+ export const zRedeemCreditsBody = z.object({
1833
+ code: z.string().optional()
1834
+ });
1735
1835
  //# sourceMappingURL=zod.gen.js.map