@cloudfleet/sdk 0.0.1-028b8fa → 0.0.1-03062e4

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,26 +177,51 @@ 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(['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
+ }),
205
+ region: z.string(),
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
+ })
210
219
  });
211
220
  export const zClusterJoinInformation = z.object({
212
221
  certificate_authority: z.string(),
213
222
  endpoint: z.url(),
214
223
  cluster_dns: z.string(),
224
+ pod_cidr: z.string(),
215
225
  auth_key: z.string(),
216
226
  bootstrap_token: z.string(),
217
227
  versions: z.object({
@@ -226,24 +236,51 @@ export const zClusterJoinInformation = z.object({
226
236
  gcp_workload_identity_provider: z.string()
227
237
  })
228
238
  });
239
+ /**
240
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
241
+ */
229
242
  export const zCluster = z.object({
230
243
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
- tier: z.enum(['basic', 'pro']),
232
- region: z.enum([
233
- 'staging-1a',
234
- 'northamerica-central-1',
235
- 'europe-central-1a',
236
- 'northamerica-central-1a'
237
- ]).optional().default('staging-1a'),
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
+ }),
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
+ }),
238
278
  id: z.uuid(),
239
279
  status: z.enum([
240
- 'active',
241
- 'disabled',
242
- 'deleted',
243
280
  'creating',
244
281
  'deployed',
245
- 'failed',
246
- 'updating'
282
+ 'updating',
283
+ 'disabled'
247
284
  ]),
248
285
  endpoint: z.union([
249
286
  z.url(),
@@ -257,14 +294,37 @@ export const zCluster = z.object({
257
294
  version_current: z.string().optional(),
258
295
  created_at: z.string().optional(),
259
296
  updated_at: z.string().optional(),
260
- ready: z.boolean().optional(),
261
- 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()
262
298
  });
299
+ /**
300
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
301
+ */
263
302
  export const zClusterUpdateInput = z.object({
264
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
265
- tier: z.enum(['basic', 'pro']),
266
- 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
+ })
267
324
  });
325
+ /**
326
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
327
+ */
268
328
  export const zFleetCreateInput = z.object({
269
329
  limits: z.object({
270
330
  cpu: z.int().gte(0).lte(100000).optional()
@@ -275,7 +335,7 @@ export const zFleetCreateInput = z.object({
275
335
  }).optional(),
276
336
  hetzner: z.object({
277
337
  enabled: z.boolean(),
278
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
338
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
279
339
  }).optional(),
280
340
  aws: z.object({
281
341
  enabled: z.boolean(),
@@ -443,7 +503,7 @@ export const zFleetCreateInput = z.object({
443
503
  'x8g',
444
504
  'z1d',
445
505
  'z3'
446
- ])).optional(),
506
+ ])).optional().default([]),
447
507
  'topology.kubernetes.io/region': z.array(z.enum([
448
508
  'africa-south1',
449
509
  'ap-northeast-1',
@@ -509,11 +569,19 @@ export const zFleetCreateInput = z.object({
509
569
  'us-west2',
510
570
  'us-west3',
511
571
  'us-west4'
512
- ])).optional()
513
- }).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
+ }),
514
579
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
515
580
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
516
581
  });
582
+ /**
583
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
584
+ */
517
585
  export const zFleet = z.object({
518
586
  limits: z.object({
519
587
  cpu: z.int().gte(0).lte(100000).optional()
@@ -531,8 +599,8 @@ export const zFleet = z.object({
531
599
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
532
600
  }).optional(),
533
601
  constraints: z.object({
534
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
535
- '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']),
536
604
  'cfke.io/instance-family': z.array(z.enum([
537
605
  'a1',
538
606
  'a2',
@@ -692,7 +760,7 @@ export const zFleet = z.object({
692
760
  'x8g',
693
761
  'z1d',
694
762
  'z3'
695
- ])).optional(),
763
+ ])).optional().default([]),
696
764
  'topology.kubernetes.io/region': z.array(z.enum([
697
765
  'africa-south1',
698
766
  'ap-northeast-1',
@@ -758,11 +826,23 @@ export const zFleet = z.object({
758
826
  'us-west2',
759
827
  'us-west3',
760
828
  'us-west4'
761
- ])).optional()
762
- }).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
+ }),
763
836
  scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
764
- 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()
765
842
  });
843
+ /**
844
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
845
+ */
766
846
  export const zFleetUpdateInput = z.object({
767
847
  limits: z.object({
768
848
  cpu: z.int().gte(0).lte(100000).optional()
@@ -773,15 +853,15 @@ export const zFleetUpdateInput = z.object({
773
853
  }).optional(),
774
854
  hetzner: z.object({
775
855
  enabled: z.boolean(),
776
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
856
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
777
857
  }).optional(),
778
858
  aws: z.object({
779
859
  enabled: z.boolean(),
780
860
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
781
861
  }).optional(),
782
862
  constraints: z.object({
783
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
784
- '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']),
785
865
  'cfke.io/instance-family': z.array(z.enum([
786
866
  'a1',
787
867
  'a2',
@@ -941,7 +1021,7 @@ export const zFleetUpdateInput = z.object({
941
1021
  'x8g',
942
1022
  'z1d',
943
1023
  'z3'
944
- ])).optional(),
1024
+ ])).optional().default([]),
945
1025
  'topology.kubernetes.io/region': z.array(z.enum([
946
1026
  'africa-south1',
947
1027
  'ap-northeast-1',
@@ -1007,16 +1087,26 @@ export const zFleetUpdateInput = z.object({
1007
1087
  'us-west2',
1008
1088
  'us-west3',
1009
1089
  'us-west4'
1010
- ])).optional()
1011
- }).optional(),
1012
- 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')
1098
+ });
1099
+ export const zInviteCreateInput = z.object({
1100
+ email: z.email(),
1101
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1013
1102
  });
1014
1103
  export const zInvite = z.object({
1015
1104
  id: z.string().optional(),
1016
1105
  organization_id: z.uuid().optional(),
1017
1106
  date_created: z.iso.datetime(),
1018
1107
  email: z.email().optional(),
1019
- code: z.string().optional()
1108
+ code: z.string().optional(),
1109
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1020
1110
  });
1021
1111
  export const zInvoice = z.object({
1022
1112
  id: z.string().optional(),
@@ -1314,9 +1404,7 @@ export const zUserCreateInput = z.object({
1314
1404
  first_name: z.string().min(1).max(50),
1315
1405
  last_name: z.string().min(1).max(50),
1316
1406
  code: z.string(),
1317
- password: z.string().min(8),
1318
- status: z.enum(['active', 'inactive']).optional(),
1319
- role: z.enum(['Administrator', 'User']).optional()
1407
+ password: z.string().min(8)
1320
1408
  });
1321
1409
  export const zUser = z.object({
1322
1410
  email: z.email(),
@@ -1334,216 +1422,162 @@ export const zUserUpdateInput = z.object({
1334
1422
  role: z.enum(['Administrator', 'User']).optional(),
1335
1423
  status: z.enum(['active', 'inactive']).optional()
1336
1424
  });
1337
- export const zGetUsageQuery = z.object({
1338
- granularity: z.enum([
1339
- 'hourly',
1340
- 'daily',
1341
- 'monthly'
1342
- ]).optional().default('daily')
1425
+ export const zListUserOrganizationsPath = z.object({
1426
+ email: z.string()
1343
1427
  });
1344
1428
  /**
1345
- * Usage data with facets for filtering
1429
+ * An array of organizations the user belongs to.
1346
1430
  */
1347
- export const zGetUsageResponse = zUsageResponse;
1431
+ export const zListUserOrganizationsResponse = z.array(z.object({
1432
+ realm: z.string().optional(),
1433
+ displayName: z.string().optional()
1434
+ }));
1348
1435
  /**
1349
- * 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.
1350
- *
1436
+ * An array of users
1351
1437
  */
1352
- export const zGetPaymentMethodSecretResponse = z.object({
1353
- id: z.string().optional()
1354
- });
1438
+ export const zListUsersResponse = z.array(zUser);
1439
+ export const zCreateUserBody = zUserCreateInput;
1355
1440
  /**
1356
- * An array of payment methods.
1441
+ * Successfully created. Returns created user details.
1357
1442
  */
1358
- export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1359
- export const zSetDefaultPaymentMethodPath = z.object({
1360
- paymentMethodId: z.string()
1443
+ export const zCreateUserResponse = zUser;
1444
+ export const zDeleteUserPath = z.object({
1445
+ user_id: z.string()
1361
1446
  });
1362
1447
  /**
1363
- * Default payment method updated.
1448
+ * User profile information
1364
1449
  */
1365
- export const zSetDefaultPaymentMethodResponse = z.void();
1366
- export const zDeletePaymentMethodPath = z.object({
1367
- paymentMethodId: z.string()
1450
+ export const zDeleteUserResponse = zUser;
1451
+ export const zGetUserPath = z.object({
1452
+ user_id: z.string()
1368
1453
  });
1369
1454
  /**
1370
- * Payment method deleted.
1371
- */
1372
- export const zDeletePaymentMethodResponse = z.void();
1373
- /**
1374
- * An array of usage records.
1455
+ * User profile information
1375
1456
  */
1376
- 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
+ });
1377
1462
  /**
1378
- * Returns a single object containing organization contact and billing address details.
1463
+ * Successfully created. Returns created user details.
1379
1464
  */
1380
- export const zGetContactResponse = zBillingContact;
1381
- export const zUpdateContactBody = zBillingContact;
1465
+ export const zUpdateUserResponse = zUser;
1382
1466
  /**
1383
- * Successfully updated. Returns updated organization details.
1467
+ * Returns a list of access token details with masked secrets.
1384
1468
  */
1385
- export const zUpdateContactResponse = zBillingContact;
1469
+ export const zListTokensResponse = z.array(zToken);
1470
+ export const zCreateTokenBody = zTokenCreateInput;
1386
1471
  /**
1387
- * An array of the applied promotional credits records.
1472
+ * Successfully created. Returns created token details with unmasked/raw secret.
1388
1473
  */
1389
- export const zGetCreditsResponse = z.array(zBillingCredits);
1390
- export const zRedeemCreditsBody = z.object({
1391
- code: z.string().optional()
1392
- });
1393
- export const zListChartsPath = z.object({
1394
- cluster_id: z.string()
1474
+ export const zCreateTokenResponse = zToken;
1475
+ export const zDeleteTokenPath = z.object({
1476
+ token_id: z.string()
1395
1477
  });
1396
- /**
1397
- * An array of charts
1398
- */
1399
- export const zListChartsResponse = z.array(zChart);
1400
- export const zCreateChartBody = zChartCreateInput;
1401
- export const zCreateChartPath = z.object({
1402
- cluster_id: z.string()
1478
+ export const zGetTokenPath = z.object({
1479
+ token_id: z.string()
1403
1480
  });
1404
1481
  /**
1405
- * Successfully created. Returns created Chart ID.
1482
+ * Returns access token details with masked secret.
1406
1483
  */
1407
- export const zCreateChartResponse = z.string();
1408
- export const zDeleteChartPath = z.object({
1409
- cluster_id: z.string(),
1410
- 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()
1411
1488
  });
1412
1489
  /**
1413
- * Successfully deleted.
1490
+ * Successfully updated. Returns updated token details with masked secret.
1414
1491
  */
1415
- export const zDeleteChartResponse = z.string();
1416
- export const zGetChartPath = z.object({
1417
- cluster_id: z.string(),
1418
- chart_name: z.string()
1492
+ export const zUpdateTokenResponse = zToken;
1493
+ export const zRegenerateTokenPath = z.object({
1494
+ token_id: z.string()
1419
1495
  });
1420
1496
  /**
1421
- * Returns a single object containing chart details.
1497
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1422
1498
  */
1423
- export const zGetChartResponse = zChart;
1424
- export const zUpdateChartBody = zChartUpdateInput;
1425
- export const zUpdateChartPath = z.object({
1426
- cluster_id: z.string(),
1427
- chart_name: z.string()
1428
- });
1499
+ export const zRegenerateTokenResponse = zToken;
1429
1500
  /**
1430
- * Successfully updated.
1501
+ * Tickets for the organization.
1431
1502
  */
1432
- export const zUpdateChartResponse = z.string();
1433
- export const zListFleetsPath = z.object({
1434
- 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()
1435
1507
  });
1436
1508
  /**
1437
- * An array of fleets
1509
+ * Ticket created.
1438
1510
  */
1439
- export const zListFleetsResponse = z.array(zFleet);
1440
- export const zCreateFleetBody = zFleetCreateInput;
1441
- export const zCreateFleetPath = z.object({
1442
- cluster_id: z.string()
1511
+ export const zCreateTicketResponse = zTicket;
1512
+ export const zCloseTicketPath = z.object({
1513
+ ticket_id: z.string()
1443
1514
  });
1444
1515
  /**
1445
- * Successfully created. Returns created Fleet ID.
1516
+ * Ticket closed.
1446
1517
  */
1447
- export const zCreateFleetResponse = z.string();
1448
- export const zDeleteFleetPath = z.object({
1449
- cluster_id: z.string(),
1450
- fleet_name: z.string()
1518
+ export const zCloseTicketResponse = zTicket;
1519
+ export const zGetTicketPath = z.object({
1520
+ ticket_id: z.string()
1451
1521
  });
1452
1522
  /**
1453
- * Successfully deleted.
1523
+ * Ticket with messages (internal notes excluded).
1454
1524
  */
1455
- export const zDeleteFleetResponse = z.string();
1456
- export const zGetFleetPath = z.object({
1457
- cluster_id: z.string(),
1458
- 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()
1459
1529
  });
1460
- /**
1461
- * Returns a single object containing fleet details.
1462
- */
1463
- export const zGetFleetResponse = zFleet;
1464
- export const zUpdateFleetBody = zFleetUpdateInput;
1465
- export const zUpdateFleetPath = z.object({
1466
- cluster_id: z.string(),
1467
- fleet_name: z.string()
1530
+ export const zReplyTicketPath = z.object({
1531
+ ticket_id: z.string()
1468
1532
  });
1469
1533
  /**
1470
- * Successfully updated.
1534
+ * Reply appended.
1471
1535
  */
1472
- export const zUpdateFleetResponse = z.string();
1473
- export const zQueryClusterPath = z.object({
1474
- 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()
1475
1540
  });
1476
1541
  /**
1477
- * An array of clusters
1542
+ * Attachment binary stream.
1478
1543
  */
1479
- export const zListClustersResponse = z.array(zCluster);
1480
- export const zCreateClusterBody = zClusterCreateInput;
1544
+ export const zGetTicketAttachmentResponse = z.string();
1481
1545
  /**
1482
- * Successfully created. Returns created Cluster ID.
1546
+ * List of repositories
1483
1547
  */
1484
- export const zCreateClusterResponse = z.string();
1485
- export const zDeleteClusterPath = z.object({
1486
- 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()
1487
1552
  });
1488
1553
  /**
1489
- * Successfully deleted.
1554
+ * Repository with tags
1490
1555
  */
1491
- export const zDeleteClusterResponse = z.string();
1492
- export const zGetClusterPath = z.object({
1493
- 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()
1494
1561
  });
1495
- /**
1496
- * Returns a single object containing cluster details.
1497
- */
1498
- export const zGetClusterResponse = zCluster;
1499
- export const zUpdateClusterBody = zClusterUpdateInput;
1500
- export const zUpdateClusterPath = z.object({
1501
- cluster_id: z.string()
1562
+ export const zGetTagPath = z.object({
1563
+ region: z.string(),
1564
+ repository: z.string(),
1565
+ tag: z.string()
1502
1566
  });
1503
1567
  /**
1504
- * Successfully updated. Returns updated cluster details.
1568
+ * Tag details
1505
1569
  */
1506
- export const zUpdateClusterResponse = zCluster;
1507
- export const zGetJoinInformationPath = z.object({
1508
- cluster_id: z.string()
1509
- });
1570
+ export const zGetTagResponse = zRegistryTag;
1510
1571
  /**
1511
- * An object of cluster join information
1572
+ * Returns a single object containing organization details.
1512
1573
  */
1513
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1574
+ export const zGetOrganizationResponse = zOrganization;
1575
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1514
1576
  /**
1515
- * An array of invites
1516
- */
1517
- export const zListInvitesResponse = z.array(zInvite);
1518
- export const zCreateInviteBody = z.object({
1519
- email: z.string().optional()
1520
- });
1521
- /**
1522
- * Successfully created. Returns created invite details.
1523
- */
1524
- export const zCreateInviteResponse = zInvite;
1525
- export const zGetInvitePath = z.object({
1526
- code: z.string()
1527
- });
1528
- /**
1529
- * Returns a single object containing invite details.
1530
- */
1531
- export const zGetInviteResponse = zInvite;
1532
- export const zDeleteInvitePath = z.object({
1533
- email: z.string()
1534
- });
1535
- /**
1536
- * An array of chart listings in the marketplace.
1537
- */
1538
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1539
- export const zGetMarketplaceChartFilesPath = z.object({
1540
- chart_name: z.string(),
1541
- version_channel: z.string()
1542
- });
1543
- /**
1544
- * Returns an object containing the chart files for the latest matching version.
1577
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1578
+ *
1545
1579
  */
1546
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1580
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1547
1581
  /**
1548
1582
  * JSON-RPC 2.0 request payload
1549
1583
  */
@@ -1572,159 +1606,214 @@ export const zPostMcpResponse = z.object({
1572
1606
  }).optional()
1573
1607
  });
1574
1608
  /**
1575
- * Returns a single object containing organization details.
1609
+ * An array of chart listings in the marketplace.
1576
1610
  */
1577
- export const zGetOrganizationResponse = zOrganization;
1578
- 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
+ });
1579
1616
  /**
1580
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1581
- *
1617
+ * Returns an object containing the chart files for the latest matching version.
1582
1618
  */
1583
- export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1619
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1584
1620
  /**
1585
- * List of repositories
1621
+ * An array of invites
1586
1622
  */
1587
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1588
- export const zListTagsPath = z.object({
1589
- region: z.string(),
1590
- 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()
1591
1631
  });
1592
1632
  /**
1593
- * Repository with tags
1633
+ * The invitation code is valid. Returns the invited email and organization.
1594
1634
  */
1595
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1596
- export const zDeleteTagPath = z.object({
1597
- region: z.string(),
1598
- repository: z.string(),
1599
- tag: z.string()
1635
+ export const zGetInviteResponse = z.object({
1636
+ email: z.email().optional(),
1637
+ organization_id: z.string().optional()
1600
1638
  });
1601
- export const zGetTagPath = z.object({
1602
- region: z.string(),
1603
- repository: z.string(),
1604
- 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()
1605
1647
  });
1606
1648
  /**
1607
- * Tag details
1649
+ * An array of fleets
1608
1650
  */
1609
- 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
+ });
1610
1656
  /**
1611
- * Tickets for the organization.
1657
+ * Successfully created. Returns created Fleet ID.
1612
1658
  */
1613
- export const zListTicketsResponse = zTicketListResponse;
1614
- export const zCreateTicketBody = z.object({
1615
- payload: z.string().optional(),
1616
- 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()
1617
1663
  });
1618
1664
  /**
1619
- * Ticket created.
1665
+ * Successfully deleted.
1620
1666
  */
1621
- export const zCreateTicketResponse = zTicket;
1622
- export const zCloseTicketPath = z.object({
1623
- 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()
1624
1671
  });
1625
1672
  /**
1626
- * Ticket closed.
1673
+ * Returns a single object containing fleet details.
1627
1674
  */
1628
- export const zCloseTicketResponse = zTicket;
1629
- export const zGetTicketPath = z.object({
1630
- 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()
1631
1680
  });
1632
1681
  /**
1633
- * Ticket with messages (internal notes excluded).
1682
+ * Successfully updated.
1634
1683
  */
1635
- export const zGetTicketResponse = zTicket;
1636
- export const zReplyTicketBody = z.object({
1637
- payload: z.string().optional(),
1638
- attachments: z.array(z.string()).optional()
1639
- });
1640
- export const zReplyTicketPath = z.object({
1641
- ticket_id: z.string()
1684
+ export const zUpdateFleetResponse = z.string();
1685
+ export const zListChartsPath = z.object({
1686
+ cluster_id: z.string()
1642
1687
  });
1643
1688
  /**
1644
- * Reply appended.
1689
+ * An array of charts
1645
1690
  */
1646
- export const zReplyTicketResponse = zTicketMessage;
1647
- export const zGetTicketAttachmentPath = z.object({
1648
- ticket_id: z.string(),
1649
- 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()
1650
1695
  });
1651
1696
  /**
1652
- * Attachment binary stream.
1697
+ * Successfully created. Returns created Chart ID.
1653
1698
  */
1654
- 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
+ });
1655
1704
  /**
1656
- * Returns a list of access token details with masked secrets.
1705
+ * Successfully deleted.
1657
1706
  */
1658
- export const zListTokensResponse = z.array(zToken);
1659
- 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
+ });
1660
1712
  /**
1661
- * Successfully created. Returns created token details with unmasked/raw secret.
1713
+ * Returns a single object containing chart details.
1662
1714
  */
1663
- export const zCreateTokenResponse = zToken;
1664
- export const zDeleteTokenPath = z.object({
1665
- 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()
1666
1720
  });
1667
- export const zGetTokenPath = z.object({
1668
- 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()
1669
1736
  });
1670
1737
  /**
1671
- * Returns access token details with masked secret.
1738
+ * Successfully deleted. The cluster has been torn down.
1672
1739
  */
1673
- export const zGetTokenResponse = zToken;
1674
- export const zUpdateTokenBody = zTokenUpdateInput;
1675
- export const zUpdateTokenPath = z.object({
1676
- token_id: z.string()
1740
+ export const zDeleteClusterResponse = z.string();
1741
+ export const zGetClusterPath = z.object({
1742
+ cluster_id: z.string()
1677
1743
  });
1678
1744
  /**
1679
- * Successfully updated. Returns updated token details with masked secret.
1745
+ * Returns a single object containing cluster details.
1680
1746
  */
1681
- export const zUpdateTokenResponse = zToken;
1682
- export const zRegenerateTokenPath = z.object({
1683
- 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()
1684
1751
  });
1685
1752
  /**
1686
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1753
+ * Successfully updated. Returns updated cluster details.
1687
1754
  */
1688
- export const zRegenerateTokenResponse = zToken;
1689
- export const zListUserOrganizationsPath = z.object({
1690
- email: z.string()
1755
+ export const zUpdateClusterResponse = zCluster;
1756
+ export const zGetJoinInformationPath = z.object({
1757
+ cluster_id: z.string()
1691
1758
  });
1692
1759
  /**
1693
- * An array of organizations the user belongs to.
1760
+ * An object of cluster join information
1694
1761
  */
1695
- export const zListUserOrganizationsResponse = z.array(z.object({
1696
- realm: z.string().optional(),
1697
- displayName: z.string().optional()
1698
- }));
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
+ });
1699
1770
  /**
1700
- * An array of users
1771
+ * Usage data with facets for filtering
1701
1772
  */
1702
- export const zListUsersResponse = z.array(zUser);
1703
- export const zCreateUserBody = zUserCreateInput;
1773
+ export const zGetUsageResponse = zUsageResponse;
1704
1774
  /**
1705
- * 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
+ *
1706
1777
  */
1707
- export const zCreateUserResponse = zUser;
1708
- export const zDeleteUserPath = z.object({
1709
- user_id: z.string()
1778
+ export const zGetPaymentMethodSecretResponse = z.object({
1779
+ id: z.string().optional()
1710
1780
  });
1711
1781
  /**
1712
- * User profile information
1782
+ * An array of payment methods.
1713
1783
  */
1714
- export const zDeleteUserResponse = zUser;
1715
- export const zGetUserPath = z.object({
1716
- user_id: z.string()
1784
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1785
+ export const zSetDefaultPaymentMethodPath = z.object({
1786
+ paymentMethodId: z.string()
1717
1787
  });
1718
1788
  /**
1719
- * User profile information
1789
+ * Default payment method updated.
1720
1790
  */
1721
- export const zGetUserResponse = zUser;
1722
- export const zUpdateUserBody = zUserUpdateInput;
1723
- export const zUpdateUserPath = z.object({
1724
- user_id: z.string()
1791
+ export const zSetDefaultPaymentMethodResponse = z.void();
1792
+ export const zDeletePaymentMethodPath = z.object({
1793
+ paymentMethodId: z.string()
1725
1794
  });
1726
1795
  /**
1727
- * Successfully created. Returns created user details.
1796
+ * Payment method deleted.
1728
1797
  */
1729
- 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
+ });
1730
1819
  //# sourceMappingURL=zod.gen.js.map