@cloudfleet/sdk 0.0.1-bbca6e3 → 0.0.1-bd45f1a

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
@@ -177,11 +177,45 @@ export const zChartUpdateInput = z.object({
177
177
  values: z.string(),
178
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-]+)*))?$/)
179
179
  });
180
+ /**
181
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
182
+ */
180
183
  export const zClusterCreateInput = z.object({
181
184
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
182
- tier: z.enum(['basic', 'pro']),
185
+ tier: z.enum(['basic', 'pro']).optional().default('basic'),
186
+ 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
+ release_channel: z.enum([
188
+ 'rapid',
189
+ 'stable',
190
+ 'extended'
191
+ ]).optional().default('rapid'),
192
+ features: z.object({
193
+ gpu_sharing_strategy: z.enum([
194
+ 'none',
195
+ 'mps',
196
+ 'time_slicing'
197
+ ]).optional().default('none'),
198
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
199
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
200
+ }).optional().default({
201
+ gpu_sharing_strategy: 'none',
202
+ gpu_max_shared_clients_per_gpu: 4,
203
+ cilium_socket_lb_host_namespace_only: false
204
+ }),
183
205
  region: z.string(),
184
- 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')
206
+ networking: z.object({
207
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
208
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
209
+ dual_stack: z.boolean().optional(),
210
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
211
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
212
+ }).optional().default({
213
+ pod_cidr: '10.244.0.0/16',
214
+ service_cidr: '10.96.0.0/12',
215
+ dual_stack: false,
216
+ pod_cidr_v6: '2001:db8:1:2::/48',
217
+ service_cidr_v6: '2001:db8:1:1::/112'
218
+ })
185
219
  });
186
220
  export const zClusterJoinInformation = z.object({
187
221
  certificate_authority: z.string(),
@@ -202,19 +236,51 @@ export const zClusterJoinInformation = z.object({
202
236
  gcp_workload_identity_provider: z.string()
203
237
  })
204
238
  });
239
+ /**
240
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
241
+ */
205
242
  export const zCluster = z.object({
206
243
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
207
- tier: z.enum(['basic', 'pro']),
244
+ tier: z.enum(['basic', 'pro']).default('basic'),
245
+ 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'),
246
+ release_channel: z.enum([
247
+ 'rapid',
248
+ 'stable',
249
+ 'extended'
250
+ ]).default('rapid'),
251
+ features: z.object({
252
+ gpu_sharing_strategy: z.enum([
253
+ 'none',
254
+ 'mps',
255
+ 'time_slicing'
256
+ ]).default('none'),
257
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
258
+ cilium_socket_lb_host_namespace_only: z.boolean()
259
+ }).default({
260
+ gpu_sharing_strategy: 'none',
261
+ gpu_max_shared_clients_per_gpu: 4,
262
+ cilium_socket_lb_host_namespace_only: false
263
+ }),
208
264
  region: z.string(),
265
+ networking: z.object({
266
+ pod_cidr: z.string().default('10.244.0.0/16'),
267
+ service_cidr: z.string().default('10.96.0.0/12'),
268
+ dual_stack: z.boolean(),
269
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
270
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
271
+ }).default({
272
+ pod_cidr: '10.244.0.0/16',
273
+ service_cidr: '10.96.0.0/12',
274
+ dual_stack: false,
275
+ pod_cidr_v6: '2001:db8:1:2::/48',
276
+ service_cidr_v6: '2001:db8:1:1::/112'
277
+ }),
209
278
  id: z.uuid(),
210
279
  status: z.enum([
211
- 'active',
212
- 'disabled',
213
- 'deleted',
214
280
  'creating',
215
281
  'deployed',
216
- 'failed',
217
- 'updating'
282
+ 'updating',
283
+ 'disabled'
218
284
  ]),
219
285
  endpoint: z.union([
220
286
  z.url(),
@@ -228,14 +294,37 @@ export const zCluster = z.object({
228
294
  version_current: z.string().optional(),
229
295
  created_at: z.string().optional(),
230
296
  updated_at: z.string().optional(),
231
- ready: z.boolean().optional(),
232
- 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()
297
+ ready: z.boolean()
233
298
  });
299
+ /**
300
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
301
+ */
234
302
  export const zClusterUpdateInput = z.object({
235
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
236
- tier: z.enum(['basic', 'pro']),
237
- 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()
303
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
304
+ tier: z.enum(['basic', 'pro']).optional().default('basic'),
305
+ 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'),
306
+ release_channel: z.enum([
307
+ 'rapid',
308
+ 'stable',
309
+ 'extended'
310
+ ]).optional().default('rapid'),
311
+ features: z.object({
312
+ gpu_sharing_strategy: z.enum([
313
+ 'none',
314
+ 'mps',
315
+ 'time_slicing'
316
+ ]).optional().default('none'),
317
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
318
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
319
+ }).optional().default({
320
+ gpu_sharing_strategy: 'none',
321
+ gpu_max_shared_clients_per_gpu: 4,
322
+ cilium_socket_lb_host_namespace_only: false
323
+ })
238
324
  });
325
+ /**
326
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
327
+ */
239
328
  export const zFleetCreateInput = z.object({
240
329
  limits: z.object({
241
330
  cpu: z.int().gte(0).lte(100000).optional()
@@ -414,7 +503,7 @@ export const zFleetCreateInput = z.object({
414
503
  'x8g',
415
504
  'z1d',
416
505
  'z3'
417
- ])).optional(),
506
+ ])).optional().default([]),
418
507
  'topology.kubernetes.io/region': z.array(z.enum([
419
508
  'africa-south1',
420
509
  'ap-northeast-1',
@@ -480,11 +569,19 @@ export const zFleetCreateInput = z.object({
480
569
  'us-west2',
481
570
  'us-west3',
482
571
  'us-west4'
483
- ])).optional()
484
- }).optional(),
572
+ ])).optional().default([])
573
+ }).optional().default({
574
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
575
+ 'kubernetes.io/arch': ['amd64'],
576
+ 'cfke.io/instance-family': [],
577
+ 'topology.kubernetes.io/region': []
578
+ }),
485
579
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
486
580
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
487
581
  });
582
+ /**
583
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
584
+ */
488
585
  export const zFleet = z.object({
489
586
  limits: z.object({
490
587
  cpu: z.int().gte(0).lte(100000).optional()
@@ -502,8 +599,8 @@ export const zFleet = z.object({
502
599
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
503
600
  }).optional(),
504
601
  constraints: z.object({
505
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
506
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
602
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
603
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
507
604
  'cfke.io/instance-family': z.array(z.enum([
508
605
  'a1',
509
606
  'a2',
@@ -663,7 +760,7 @@ export const zFleet = z.object({
663
760
  'x8g',
664
761
  'z1d',
665
762
  'z3'
666
- ])).optional(),
763
+ ])).optional().default([]),
667
764
  'topology.kubernetes.io/region': z.array(z.enum([
668
765
  'africa-south1',
669
766
  'ap-northeast-1',
@@ -729,11 +826,23 @@ export const zFleet = z.object({
729
826
  'us-west2',
730
827
  'us-west3',
731
828
  'us-west4'
732
- ])).optional()
733
- }).optional(),
829
+ ])).optional().default([])
830
+ }).default({
831
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
832
+ 'kubernetes.io/arch': ['amd64'],
833
+ 'cfke.io/instance-family': [],
834
+ 'topology.kubernetes.io/region': []
835
+ }),
734
836
  scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
735
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
837
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
838
+ ready: z.boolean(),
839
+ status_message: z.string().optional(),
840
+ created_at: z.string(),
841
+ updated_at: z.string()
736
842
  });
843
+ /**
844
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
845
+ */
737
846
  export const zFleetUpdateInput = z.object({
738
847
  limits: z.object({
739
848
  cpu: z.int().gte(0).lte(100000).optional()
@@ -751,8 +860,8 @@ export const zFleetUpdateInput = z.object({
751
860
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
752
861
  }).optional(),
753
862
  constraints: z.object({
754
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
755
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
863
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
864
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
756
865
  'cfke.io/instance-family': z.array(z.enum([
757
866
  'a1',
758
867
  'a2',
@@ -912,7 +1021,7 @@ export const zFleetUpdateInput = z.object({
912
1021
  'x8g',
913
1022
  'z1d',
914
1023
  'z3'
915
- ])).optional(),
1024
+ ])).optional().default([]),
916
1025
  'topology.kubernetes.io/region': z.array(z.enum([
917
1026
  'africa-south1',
918
1027
  'ap-northeast-1',
@@ -978,9 +1087,14 @@ export const zFleetUpdateInput = z.object({
978
1087
  'us-west2',
979
1088
  'us-west3',
980
1089
  'us-west4'
981
- ])).optional()
982
- }).optional(),
983
- scalingProfile: z.enum(['aggressive', 'conservative'])
1090
+ ])).optional().default([])
1091
+ }).optional().default({
1092
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1093
+ 'kubernetes.io/arch': ['amd64'],
1094
+ 'cfke.io/instance-family': [],
1095
+ 'topology.kubernetes.io/region': []
1096
+ }),
1097
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
984
1098
  });
985
1099
  export const zInviteCreateInput = z.object({
986
1100
  email: z.email(),
@@ -1308,219 +1422,164 @@ export const zUserUpdateInput = z.object({
1308
1422
  role: z.enum(['Administrator', 'User']).optional(),
1309
1423
  status: z.enum(['active', 'inactive']).optional()
1310
1424
  });
1311
- export const zGetUsageQuery = z.object({
1312
- granularity: z.enum([
1313
- 'hourly',
1314
- 'daily',
1315
- 'monthly'
1316
- ]).optional().default('daily')
1425
+ export const zListUserOrganizationsPath = z.object({
1426
+ email: z.string()
1317
1427
  });
1318
1428
  /**
1319
- * Usage data with facets for filtering
1429
+ * An array of organizations the user belongs to.
1320
1430
  */
1321
- export const zGetUsageResponse = zUsageResponse;
1431
+ export const zListUserOrganizationsResponse = z.array(z.object({
1432
+ realm: z.string().optional(),
1433
+ displayName: z.string().optional()
1434
+ }));
1322
1435
  /**
1323
- * 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.
1324
- *
1436
+ * An array of users
1325
1437
  */
1326
- export const zGetPaymentMethodSecretResponse = z.object({
1327
- id: z.string().optional()
1328
- });
1438
+ export const zListUsersResponse = z.array(zUser);
1439
+ export const zCreateUserBody = zUserCreateInput;
1329
1440
  /**
1330
- * An array of payment methods.
1441
+ * Successfully created. Returns created user details.
1331
1442
  */
1332
- export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1333
- export const zSetDefaultPaymentMethodPath = z.object({
1334
- paymentMethodId: z.string()
1443
+ export const zCreateUserResponse = zUser;
1444
+ export const zDeleteUserPath = z.object({
1445
+ user_id: z.string()
1335
1446
  });
1336
1447
  /**
1337
- * Default payment method updated.
1448
+ * User profile information
1338
1449
  */
1339
- export const zSetDefaultPaymentMethodResponse = z.void();
1340
- export const zDeletePaymentMethodPath = z.object({
1341
- paymentMethodId: z.string()
1450
+ export const zDeleteUserResponse = zUser;
1451
+ export const zGetUserPath = z.object({
1452
+ user_id: z.string()
1342
1453
  });
1343
1454
  /**
1344
- * Payment method deleted.
1345
- */
1346
- export const zDeletePaymentMethodResponse = z.void();
1347
- /**
1348
- * An array of usage records.
1455
+ * User profile information
1349
1456
  */
1350
- export const zListInvoicesResponse = z.array(zInvoice);
1457
+ export const zGetUserResponse = zUser;
1458
+ export const zUpdateUserBody = zUserUpdateInput;
1459
+ export const zUpdateUserPath = z.object({
1460
+ user_id: z.string()
1461
+ });
1351
1462
  /**
1352
- * Returns a single object containing organization contact and billing address details.
1463
+ * Successfully created. Returns created user details.
1353
1464
  */
1354
- export const zGetContactResponse = zBillingContact;
1355
- export const zUpdateContactBody = zBillingContact;
1465
+ export const zUpdateUserResponse = zUser;
1356
1466
  /**
1357
- * Successfully updated. Returns updated organization details.
1467
+ * Returns a list of access token details with masked secrets.
1358
1468
  */
1359
- export const zUpdateContactResponse = zBillingContact;
1469
+ export const zListTokensResponse = z.array(zToken);
1470
+ export const zCreateTokenBody = zTokenCreateInput;
1360
1471
  /**
1361
- * An array of the applied promotional credits records.
1472
+ * Successfully created. Returns created token details with unmasked/raw secret.
1362
1473
  */
1363
- export const zGetCreditsResponse = z.array(zBillingCredits);
1364
- export const zRedeemCreditsBody = z.object({
1365
- code: z.string().optional()
1366
- });
1367
- export const zListChartsPath = z.object({
1368
- cluster_id: z.string()
1474
+ export const zCreateTokenResponse = zToken;
1475
+ export const zDeleteTokenPath = z.object({
1476
+ token_id: z.string()
1369
1477
  });
1370
- /**
1371
- * An array of charts
1372
- */
1373
- export const zListChartsResponse = z.array(zChart);
1374
- export const zCreateChartBody = zChartCreateInput;
1375
- export const zCreateChartPath = z.object({
1376
- cluster_id: z.string()
1478
+ export const zGetTokenPath = z.object({
1479
+ token_id: z.string()
1377
1480
  });
1378
1481
  /**
1379
- * Successfully created. Returns created Chart ID.
1482
+ * Returns access token details with masked secret.
1380
1483
  */
1381
- export const zCreateChartResponse = z.string();
1382
- export const zDeleteChartPath = z.object({
1383
- cluster_id: z.string(),
1384
- chart_name: z.string()
1484
+ export const zGetTokenResponse = zToken;
1485
+ export const zUpdateTokenBody = zTokenUpdateInput;
1486
+ export const zUpdateTokenPath = z.object({
1487
+ token_id: z.string()
1385
1488
  });
1386
1489
  /**
1387
- * Successfully deleted.
1490
+ * Successfully updated. Returns updated token details with masked secret.
1388
1491
  */
1389
- export const zDeleteChartResponse = z.string();
1390
- export const zGetChartPath = z.object({
1391
- cluster_id: z.string(),
1392
- chart_name: z.string()
1492
+ export const zUpdateTokenResponse = zToken;
1493
+ export const zRegenerateTokenPath = z.object({
1494
+ token_id: z.string()
1393
1495
  });
1394
1496
  /**
1395
- * Returns a single object containing chart details.
1497
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1396
1498
  */
1397
- export const zGetChartResponse = zChart;
1398
- export const zUpdateChartBody = zChartUpdateInput;
1399
- export const zUpdateChartPath = z.object({
1400
- cluster_id: z.string(),
1401
- chart_name: z.string()
1402
- });
1499
+ export const zRegenerateTokenResponse = zToken;
1403
1500
  /**
1404
- * Successfully updated.
1501
+ * Tickets for the organization.
1405
1502
  */
1406
- export const zUpdateChartResponse = z.string();
1407
- export const zListFleetsPath = z.object({
1408
- cluster_id: z.string()
1503
+ export const zListTicketsResponse = zTicketListResponse;
1504
+ export const zCreateTicketBody = z.object({
1505
+ payload: z.string().optional(),
1506
+ attachments: z.array(z.string()).optional()
1409
1507
  });
1410
1508
  /**
1411
- * An array of fleets
1509
+ * Ticket created.
1412
1510
  */
1413
- export const zListFleetsResponse = z.array(zFleet);
1414
- export const zCreateFleetBody = zFleetCreateInput;
1415
- export const zCreateFleetPath = z.object({
1416
- cluster_id: z.string()
1511
+ export const zCreateTicketResponse = zTicket;
1512
+ export const zCloseTicketPath = z.object({
1513
+ ticket_id: z.string()
1417
1514
  });
1418
1515
  /**
1419
- * Successfully created. Returns created Fleet ID.
1516
+ * Ticket closed.
1420
1517
  */
1421
- export const zCreateFleetResponse = z.string();
1422
- export const zDeleteFleetPath = z.object({
1423
- cluster_id: z.string(),
1424
- fleet_name: z.string()
1518
+ export const zCloseTicketResponse = zTicket;
1519
+ export const zGetTicketPath = z.object({
1520
+ ticket_id: z.string()
1425
1521
  });
1426
1522
  /**
1427
- * Successfully deleted.
1523
+ * Ticket with messages (internal notes excluded).
1428
1524
  */
1429
- export const zDeleteFleetResponse = z.string();
1430
- export const zGetFleetPath = z.object({
1431
- cluster_id: z.string(),
1432
- fleet_name: z.string()
1525
+ export const zGetTicketResponse = zTicket;
1526
+ export const zReplyTicketBody = z.object({
1527
+ payload: z.string().optional(),
1528
+ attachments: z.array(z.string()).optional()
1433
1529
  });
1434
- /**
1435
- * Returns a single object containing fleet details.
1436
- */
1437
- export const zGetFleetResponse = zFleet;
1438
- export const zUpdateFleetBody = zFleetUpdateInput;
1439
- export const zUpdateFleetPath = z.object({
1440
- cluster_id: z.string(),
1441
- fleet_name: z.string()
1530
+ export const zReplyTicketPath = z.object({
1531
+ ticket_id: z.string()
1442
1532
  });
1443
1533
  /**
1444
- * Successfully updated.
1534
+ * Reply appended.
1445
1535
  */
1446
- export const zUpdateFleetResponse = z.string();
1447
- export const zQueryClusterPath = z.object({
1448
- cluster_id: z.string()
1536
+ export const zReplyTicketResponse = zTicketMessage;
1537
+ export const zGetTicketAttachmentPath = z.object({
1538
+ ticket_id: z.string(),
1539
+ attachment_id: z.string()
1449
1540
  });
1450
1541
  /**
1451
- * An array of clusters
1542
+ * Attachment binary stream.
1452
1543
  */
1453
- export const zListClustersResponse = z.array(zCluster);
1454
- export const zCreateClusterBody = zClusterCreateInput;
1544
+ export const zGetTicketAttachmentResponse = z.string();
1455
1545
  /**
1456
- * Successfully created. Returns created Cluster ID.
1546
+ * List of repositories
1457
1547
  */
1458
- export const zCreateClusterResponse = z.string();
1459
- export const zDeleteClusterPath = z.object({
1460
- cluster_id: z.string()
1548
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1549
+ export const zListTagsPath = z.object({
1550
+ region: z.string(),
1551
+ repository: z.string()
1461
1552
  });
1462
1553
  /**
1463
- * Successfully deleted. The cluster has been torn down.
1554
+ * Repository with tags
1464
1555
  */
1465
- export const zDeleteClusterResponse = z.string();
1466
- export const zGetClusterPath = z.object({
1467
- cluster_id: z.string()
1556
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1557
+ export const zDeleteTagPath = z.object({
1558
+ region: z.string(),
1559
+ repository: z.string(),
1560
+ tag: z.string()
1468
1561
  });
1469
- /**
1470
- * Returns a single object containing cluster details.
1471
- */
1472
- export const zGetClusterResponse = zCluster;
1473
- export const zUpdateClusterBody = zClusterUpdateInput;
1474
- export const zUpdateClusterPath = z.object({
1475
- cluster_id: z.string()
1562
+ export const zGetTagPath = z.object({
1563
+ region: z.string(),
1564
+ repository: z.string(),
1565
+ tag: z.string()
1476
1566
  });
1477
1567
  /**
1478
- * Successfully updated. Returns updated cluster details.
1568
+ * Tag details
1479
1569
  */
1480
- export const zUpdateClusterResponse = zCluster;
1481
- export const zGetJoinInformationPath = z.object({
1482
- cluster_id: z.string()
1483
- });
1570
+ export const zGetTagResponse = zRegistryTag;
1484
1571
  /**
1485
- * An object of cluster join information
1572
+ * Returns a single object containing organization details.
1486
1573
  */
1487
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1574
+ export const zGetOrganizationResponse = zOrganization;
1575
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1488
1576
  /**
1489
- * An array of invites
1577
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1578
+ *
1490
1579
  */
1491
- export const zListInvitesResponse = z.array(zInvite);
1492
- export const zCreateInviteBody = zInviteCreateInput;
1580
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1493
1581
  /**
1494
- * Successfully created. Returns created invite details.
1495
- */
1496
- export const zCreateInviteResponse = zInvite;
1497
- export const zGetInvitePath = z.object({
1498
- code: z.string()
1499
- });
1500
- /**
1501
- * The invitation code is valid. Returns the invited email and organization.
1502
- */
1503
- export const zGetInviteResponse = z.object({
1504
- email: z.email().optional(),
1505
- organization_id: z.string().optional()
1506
- });
1507
- export const zDeleteInvitePath = z.object({
1508
- email: z.email()
1509
- });
1510
- /**
1511
- * An array of chart listings in the marketplace.
1512
- */
1513
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1514
- export const zGetMarketplaceChartFilesPath = z.object({
1515
- chart_name: z.string(),
1516
- version_channel: z.string()
1517
- });
1518
- /**
1519
- * Returns an object containing the chart files for the latest matching version.
1520
- */
1521
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1522
- /**
1523
- * JSON-RPC 2.0 request payload
1582
+ * JSON-RPC 2.0 request payload
1524
1583
  */
1525
1584
  export const zPostMcpBody = z.object({
1526
1585
  jsonrpc: z.string().optional(),
@@ -1547,159 +1606,214 @@ export const zPostMcpResponse = z.object({
1547
1606
  }).optional()
1548
1607
  });
1549
1608
  /**
1550
- * Returns a single object containing organization details.
1609
+ * An array of chart listings in the marketplace.
1551
1610
  */
1552
- export const zGetOrganizationResponse = zOrganization;
1553
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1611
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1612
+ export const zGetMarketplaceChartFilesPath = z.object({
1613
+ chart_name: z.string(),
1614
+ version_channel: z.string()
1615
+ });
1554
1616
  /**
1555
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1556
- *
1617
+ * Returns an object containing the chart files for the latest matching version.
1557
1618
  */
1558
- export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1619
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1559
1620
  /**
1560
- * List of repositories
1621
+ * An array of invites
1561
1622
  */
1562
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1563
- export const zListTagsPath = z.object({
1564
- region: z.string(),
1565
- repository: z.string()
1623
+ export const zListInvitesResponse = z.array(zInvite);
1624
+ export const zCreateInviteBody = zInviteCreateInput;
1625
+ /**
1626
+ * Successfully created. Returns created invite details.
1627
+ */
1628
+ export const zCreateInviteResponse = zInvite;
1629
+ export const zGetInvitePath = z.object({
1630
+ code: z.string()
1566
1631
  });
1567
1632
  /**
1568
- * Repository with tags
1633
+ * The invitation code is valid. Returns the invited email and organization.
1569
1634
  */
1570
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1571
- export const zDeleteTagPath = z.object({
1572
- region: z.string(),
1573
- repository: z.string(),
1574
- tag: z.string()
1635
+ export const zGetInviteResponse = z.object({
1636
+ email: z.email().optional(),
1637
+ organization_id: z.string().optional()
1575
1638
  });
1576
- export const zGetTagPath = z.object({
1577
- region: z.string(),
1578
- repository: z.string(),
1579
- tag: z.string()
1639
+ export const zDeleteInvitePath = z.object({
1640
+ email: z.email()
1641
+ });
1642
+ export const zQueryClusterPath = z.object({
1643
+ cluster_id: z.string()
1644
+ });
1645
+ export const zListFleetsPath = z.object({
1646
+ cluster_id: z.string()
1580
1647
  });
1581
1648
  /**
1582
- * Tag details
1649
+ * An array of fleets
1583
1650
  */
1584
- export const zGetTagResponse = zRegistryTag;
1651
+ export const zListFleetsResponse = z.array(zFleet);
1652
+ export const zCreateFleetBody = zFleetCreateInput;
1653
+ export const zCreateFleetPath = z.object({
1654
+ cluster_id: z.string()
1655
+ });
1585
1656
  /**
1586
- * Tickets for the organization.
1657
+ * Successfully created. Returns created Fleet ID.
1587
1658
  */
1588
- export const zListTicketsResponse = zTicketListResponse;
1589
- export const zCreateTicketBody = z.object({
1590
- payload: z.string().optional(),
1591
- attachments: z.array(z.string()).optional()
1659
+ export const zCreateFleetResponse = z.string();
1660
+ export const zDeleteFleetPath = z.object({
1661
+ cluster_id: z.string(),
1662
+ fleet_name: z.string()
1592
1663
  });
1593
1664
  /**
1594
- * Ticket created.
1665
+ * Successfully deleted.
1595
1666
  */
1596
- export const zCreateTicketResponse = zTicket;
1597
- export const zCloseTicketPath = z.object({
1598
- ticket_id: z.string()
1667
+ export const zDeleteFleetResponse = z.string();
1668
+ export const zGetFleetPath = z.object({
1669
+ cluster_id: z.string(),
1670
+ fleet_name: z.string()
1599
1671
  });
1600
1672
  /**
1601
- * Ticket closed.
1673
+ * Returns a single object containing fleet details.
1602
1674
  */
1603
- export const zCloseTicketResponse = zTicket;
1604
- export const zGetTicketPath = z.object({
1605
- ticket_id: z.string()
1675
+ export const zGetFleetResponse = zFleet;
1676
+ export const zUpdateFleetBody = zFleetUpdateInput;
1677
+ export const zUpdateFleetPath = z.object({
1678
+ cluster_id: z.string(),
1679
+ fleet_name: z.string()
1606
1680
  });
1607
1681
  /**
1608
- * Ticket with messages (internal notes excluded).
1682
+ * Successfully updated.
1609
1683
  */
1610
- export const zGetTicketResponse = zTicket;
1611
- export const zReplyTicketBody = z.object({
1612
- payload: z.string().optional(),
1613
- attachments: z.array(z.string()).optional()
1614
- });
1615
- export const zReplyTicketPath = z.object({
1616
- ticket_id: z.string()
1684
+ export const zUpdateFleetResponse = z.string();
1685
+ export const zListChartsPath = z.object({
1686
+ cluster_id: z.string()
1617
1687
  });
1618
1688
  /**
1619
- * Reply appended.
1689
+ * An array of charts
1620
1690
  */
1621
- export const zReplyTicketResponse = zTicketMessage;
1622
- export const zGetTicketAttachmentPath = z.object({
1623
- ticket_id: z.string(),
1624
- attachment_id: z.string()
1691
+ export const zListChartsResponse = z.array(zChart);
1692
+ export const zCreateChartBody = zChartCreateInput;
1693
+ export const zCreateChartPath = z.object({
1694
+ cluster_id: z.string()
1625
1695
  });
1626
1696
  /**
1627
- * Attachment binary stream.
1697
+ * Successfully created. Returns created Chart ID.
1628
1698
  */
1629
- export const zGetTicketAttachmentResponse = z.string();
1699
+ export const zCreateChartResponse = z.string();
1700
+ export const zDeleteChartPath = z.object({
1701
+ cluster_id: z.string(),
1702
+ chart_name: z.string()
1703
+ });
1630
1704
  /**
1631
- * Returns a list of access token details with masked secrets.
1705
+ * Successfully deleted.
1632
1706
  */
1633
- export const zListTokensResponse = z.array(zToken);
1634
- export const zCreateTokenBody = zTokenCreateInput;
1707
+ export const zDeleteChartResponse = z.string();
1708
+ export const zGetChartPath = z.object({
1709
+ cluster_id: z.string(),
1710
+ chart_name: z.string()
1711
+ });
1635
1712
  /**
1636
- * Successfully created. Returns created token details with unmasked/raw secret.
1713
+ * Returns a single object containing chart details.
1637
1714
  */
1638
- export const zCreateTokenResponse = zToken;
1639
- export const zDeleteTokenPath = z.object({
1640
- token_id: z.string()
1715
+ export const zGetChartResponse = zChart;
1716
+ export const zUpdateChartBody = zChartUpdateInput;
1717
+ export const zUpdateChartPath = z.object({
1718
+ cluster_id: z.string(),
1719
+ chart_name: z.string()
1641
1720
  });
1642
- export const zGetTokenPath = z.object({
1643
- token_id: z.string()
1721
+ /**
1722
+ * Successfully updated.
1723
+ */
1724
+ export const zUpdateChartResponse = z.string();
1725
+ /**
1726
+ * An array of clusters
1727
+ */
1728
+ export const zListClustersResponse = z.array(zCluster);
1729
+ export const zCreateClusterBody = zClusterCreateInput;
1730
+ /**
1731
+ * Successfully created. Returns created Cluster ID.
1732
+ */
1733
+ export const zCreateClusterResponse = z.string();
1734
+ export const zDeleteClusterPath = z.object({
1735
+ cluster_id: z.string()
1644
1736
  });
1645
1737
  /**
1646
- * Returns access token details with masked secret.
1738
+ * Successfully deleted. The cluster has been torn down.
1647
1739
  */
1648
- export const zGetTokenResponse = zToken;
1649
- export const zUpdateTokenBody = zTokenUpdateInput;
1650
- export const zUpdateTokenPath = z.object({
1651
- token_id: z.string()
1740
+ export const zDeleteClusterResponse = z.string();
1741
+ export const zGetClusterPath = z.object({
1742
+ cluster_id: z.string()
1652
1743
  });
1653
1744
  /**
1654
- * Successfully updated. Returns updated token details with masked secret.
1745
+ * Returns a single object containing cluster details.
1655
1746
  */
1656
- export const zUpdateTokenResponse = zToken;
1657
- export const zRegenerateTokenPath = z.object({
1658
- token_id: z.string()
1747
+ export const zGetClusterResponse = zCluster;
1748
+ export const zUpdateClusterBody = zClusterUpdateInput;
1749
+ export const zUpdateClusterPath = z.object({
1750
+ cluster_id: z.string()
1659
1751
  });
1660
1752
  /**
1661
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1753
+ * Successfully updated. Returns updated cluster details.
1662
1754
  */
1663
- export const zRegenerateTokenResponse = zToken;
1664
- export const zListUserOrganizationsPath = z.object({
1665
- email: z.string()
1755
+ export const zUpdateClusterResponse = zCluster;
1756
+ export const zGetJoinInformationPath = z.object({
1757
+ cluster_id: z.string()
1666
1758
  });
1667
1759
  /**
1668
- * An array of organizations the user belongs to.
1760
+ * An object of cluster join information
1669
1761
  */
1670
- export const zListUserOrganizationsResponse = z.array(z.object({
1671
- realm: z.string().optional(),
1672
- displayName: z.string().optional()
1673
- }));
1762
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1763
+ export const zGetUsageQuery = z.object({
1764
+ granularity: z.enum([
1765
+ 'hourly',
1766
+ 'daily',
1767
+ 'monthly'
1768
+ ]).optional().default('daily')
1769
+ });
1674
1770
  /**
1675
- * An array of users
1771
+ * Usage data with facets for filtering
1676
1772
  */
1677
- export const zListUsersResponse = z.array(zUser);
1678
- export const zCreateUserBody = zUserCreateInput;
1773
+ export const zGetUsageResponse = zUsageResponse;
1679
1774
  /**
1680
- * Successfully created. Returns created user details.
1775
+ * 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.
1776
+ *
1681
1777
  */
1682
- export const zCreateUserResponse = zUser;
1683
- export const zDeleteUserPath = z.object({
1684
- user_id: z.string()
1778
+ export const zGetPaymentMethodSecretResponse = z.object({
1779
+ id: z.string().optional()
1685
1780
  });
1686
1781
  /**
1687
- * User profile information
1782
+ * An array of payment methods.
1688
1783
  */
1689
- export const zDeleteUserResponse = zUser;
1690
- export const zGetUserPath = z.object({
1691
- user_id: z.string()
1784
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1785
+ export const zSetDefaultPaymentMethodPath = z.object({
1786
+ paymentMethodId: z.string()
1692
1787
  });
1693
1788
  /**
1694
- * User profile information
1789
+ * Default payment method updated.
1695
1790
  */
1696
- export const zGetUserResponse = zUser;
1697
- export const zUpdateUserBody = zUserUpdateInput;
1698
- export const zUpdateUserPath = z.object({
1699
- user_id: z.string()
1791
+ export const zSetDefaultPaymentMethodResponse = z.void();
1792
+ export const zDeletePaymentMethodPath = z.object({
1793
+ paymentMethodId: z.string()
1700
1794
  });
1701
1795
  /**
1702
- * Successfully created. Returns created user details.
1796
+ * Payment method deleted.
1703
1797
  */
1704
- export const zUpdateUserResponse = zUser;
1798
+ export const zDeletePaymentMethodResponse = z.void();
1799
+ /**
1800
+ * An array of usage records.
1801
+ */
1802
+ export const zListInvoicesResponse = z.array(zInvoice);
1803
+ /**
1804
+ * Returns a single object containing organization contact and billing address details.
1805
+ */
1806
+ export const zGetContactResponse = zBillingContact;
1807
+ export const zUpdateContactBody = zBillingContact;
1808
+ /**
1809
+ * Successfully updated. Returns updated organization details.
1810
+ */
1811
+ export const zUpdateContactResponse = zBillingContact;
1812
+ /**
1813
+ * An array of the applied promotional credits records.
1814
+ */
1815
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1816
+ export const zRedeemCreditsBody = z.object({
1817
+ code: z.string().optional()
1818
+ });
1705
1819
  //# sourceMappingURL=zod.gen.js.map