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

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(),
@@ -214,6 +227,7 @@ export const zClusterJoinInformation = z.object({
214
227
  cluster_dns: z.string(),
215
228
  pod_cidr: z.string(),
216
229
  auth_key: z.string(),
230
+ login_server: z.string(),
217
231
  bootstrap_token: z.string(),
218
232
  versions: z.object({
219
233
  kubernetes: z.string(),
@@ -227,24 +241,55 @@ export const zClusterJoinInformation = z.object({
227
241
  gcp_workload_identity_provider: z.string()
228
242
  })
229
243
  });
244
+ /**
245
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
246
+ */
230
247
  export const zCluster = z.object({
231
248
  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'),
249
+ tier: z.enum([
250
+ 'basic',
251
+ 'pro',
252
+ 'enterprise'
253
+ ]).default('basic'),
254
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default('1.x.x-cfke.x'),
255
+ release_channel: z.enum([
256
+ 'rapid',
257
+ 'stable',
258
+ 'extended'
259
+ ]).default('rapid'),
260
+ features: z.object({
261
+ gpu_sharing_strategy: z.enum([
262
+ 'none',
263
+ 'mps',
264
+ 'time_slicing'
265
+ ]).default('none'),
266
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
267
+ cilium_socket_lb_host_namespace_only: z.boolean()
268
+ }).default({
269
+ gpu_sharing_strategy: 'none',
270
+ gpu_max_shared_clients_per_gpu: 4,
271
+ cilium_socket_lb_host_namespace_only: false
272
+ }),
273
+ region: z.string(),
274
+ networking: z.object({
275
+ pod_cidr: z.string().default('10.244.0.0/16'),
276
+ service_cidr: z.string().default('10.96.0.0/12'),
277
+ dual_stack: z.boolean(),
278
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
279
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
280
+ }).default({
281
+ pod_cidr: '10.244.0.0/16',
282
+ service_cidr: '10.96.0.0/12',
283
+ dual_stack: false,
284
+ pod_cidr_v6: '2001:db8:1:2::/48',
285
+ service_cidr_v6: '2001:db8:1:1::/112'
286
+ }),
239
287
  id: z.uuid(),
240
288
  status: z.enum([
241
- 'active',
242
- 'disabled',
243
- 'deleted',
244
289
  'creating',
245
290
  'deployed',
246
- 'failed',
247
- 'updating'
291
+ 'updating',
292
+ 'disabled'
248
293
  ]),
249
294
  endpoint: z.union([
250
295
  z.url(),
@@ -258,14 +303,41 @@ export const zCluster = z.object({
258
303
  version_current: z.string().optional(),
259
304
  created_at: z.string().optional(),
260
305
  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()
306
+ ready: z.boolean()
263
307
  });
308
+ /**
309
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
310
+ */
264
311
  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()
312
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
313
+ tier: z.enum([
314
+ 'basic',
315
+ 'pro',
316
+ 'enterprise'
317
+ ]).optional().default('basic'),
318
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
319
+ release_channel: z.enum([
320
+ 'rapid',
321
+ 'stable',
322
+ 'extended'
323
+ ]).optional().default('rapid'),
324
+ features: z.object({
325
+ gpu_sharing_strategy: z.enum([
326
+ 'none',
327
+ 'mps',
328
+ 'time_slicing'
329
+ ]).optional().default('none'),
330
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
331
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
332
+ }).optional().default({
333
+ gpu_sharing_strategy: 'none',
334
+ gpu_max_shared_clients_per_gpu: 4,
335
+ cilium_socket_lb_host_namespace_only: false
336
+ })
268
337
  });
338
+ /**
339
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
340
+ */
269
341
  export const zFleetCreateInput = z.object({
270
342
  limits: z.object({
271
343
  cpu: z.int().gte(0).lte(100000).optional()
@@ -276,7 +348,7 @@ export const zFleetCreateInput = z.object({
276
348
  }).optional(),
277
349
  hetzner: z.object({
278
350
  enabled: z.boolean(),
279
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
351
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
280
352
  }).optional(),
281
353
  aws: z.object({
282
354
  enabled: z.boolean(),
@@ -444,7 +516,7 @@ export const zFleetCreateInput = z.object({
444
516
  'x8g',
445
517
  'z1d',
446
518
  'z3'
447
- ])).optional(),
519
+ ])).optional().default([]),
448
520
  'topology.kubernetes.io/region': z.array(z.enum([
449
521
  'africa-south1',
450
522
  'ap-northeast-1',
@@ -510,11 +582,19 @@ export const zFleetCreateInput = z.object({
510
582
  'us-west2',
511
583
  'us-west3',
512
584
  'us-west4'
513
- ])).optional()
514
- }).optional(),
585
+ ])).optional().default([])
586
+ }).optional().default({
587
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
588
+ 'kubernetes.io/arch': ['amd64'],
589
+ 'cfke.io/instance-family': [],
590
+ 'topology.kubernetes.io/region': []
591
+ }),
515
592
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
516
593
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
517
594
  });
595
+ /**
596
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
597
+ */
518
598
  export const zFleet = z.object({
519
599
  limits: z.object({
520
600
  cpu: z.int().gte(0).lte(100000).optional()
@@ -532,8 +612,8 @@ export const zFleet = z.object({
532
612
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
533
613
  }).optional(),
534
614
  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']),
615
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
616
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
537
617
  'cfke.io/instance-family': z.array(z.enum([
538
618
  'a1',
539
619
  'a2',
@@ -693,7 +773,7 @@ export const zFleet = z.object({
693
773
  'x8g',
694
774
  'z1d',
695
775
  'z3'
696
- ])).optional(),
776
+ ])).optional().default([]),
697
777
  'topology.kubernetes.io/region': z.array(z.enum([
698
778
  'africa-south1',
699
779
  'ap-northeast-1',
@@ -759,11 +839,23 @@ export const zFleet = z.object({
759
839
  'us-west2',
760
840
  'us-west3',
761
841
  'us-west4'
762
- ])).optional()
763
- }).optional(),
842
+ ])).optional().default([])
843
+ }).default({
844
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
845
+ 'kubernetes.io/arch': ['amd64'],
846
+ 'cfke.io/instance-family': [],
847
+ 'topology.kubernetes.io/region': []
848
+ }),
764
849
  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])?$/)
850
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
851
+ ready: z.boolean(),
852
+ status_message: z.string().optional(),
853
+ created_at: z.string(),
854
+ updated_at: z.string()
766
855
  });
856
+ /**
857
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
858
+ */
767
859
  export const zFleetUpdateInput = z.object({
768
860
  limits: z.object({
769
861
  cpu: z.int().gte(0).lte(100000).optional()
@@ -774,15 +866,15 @@ export const zFleetUpdateInput = z.object({
774
866
  }).optional(),
775
867
  hetzner: z.object({
776
868
  enabled: z.boolean(),
777
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
869
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
778
870
  }).optional(),
779
871
  aws: z.object({
780
872
  enabled: z.boolean(),
781
873
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
782
874
  }).optional(),
783
875
  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(),
876
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
877
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
786
878
  'cfke.io/instance-family': z.array(z.enum([
787
879
  'a1',
788
880
  'a2',
@@ -942,7 +1034,7 @@ export const zFleetUpdateInput = z.object({
942
1034
  'x8g',
943
1035
  'z1d',
944
1036
  'z3'
945
- ])).optional(),
1037
+ ])).optional().default([]),
946
1038
  'topology.kubernetes.io/region': z.array(z.enum([
947
1039
  'africa-south1',
948
1040
  'ap-northeast-1',
@@ -1008,9 +1100,14 @@ export const zFleetUpdateInput = z.object({
1008
1100
  'us-west2',
1009
1101
  'us-west3',
1010
1102
  'us-west4'
1011
- ])).optional()
1012
- }).optional(),
1013
- scalingProfile: z.enum(['aggressive', 'conservative'])
1103
+ ])).optional().default([])
1104
+ }).optional().default({
1105
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1106
+ 'kubernetes.io/arch': ['amd64'],
1107
+ 'cfke.io/instance-family': [],
1108
+ 'topology.kubernetes.io/region': []
1109
+ }),
1110
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
1014
1111
  });
1015
1112
  export const zInviteCreateInput = z.object({
1016
1113
  email: z.email(),
@@ -1024,6 +1121,48 @@ export const zInvite = z.object({
1024
1121
  code: z.string().optional(),
1025
1122
  role: z.enum(['Administrator', 'User']).optional().default('User')
1026
1123
  });
1124
+ export const zInvoicePaymentAttempt = z.object({
1125
+ invoice_id: z.string(),
1126
+ number: z.string(),
1127
+ amount: z.number(),
1128
+ currency: z.string(),
1129
+ status: z.enum([
1130
+ 'paid',
1131
+ 'processing',
1132
+ 'requires_action',
1133
+ 'failed'
1134
+ ]),
1135
+ client_secret: z.string(),
1136
+ failure_code: z.string(),
1137
+ failure_message: z.string()
1138
+ });
1139
+ export const zInvoicePaymentResult = z.object({
1140
+ code: z.enum([
1141
+ 'paid',
1142
+ 'processing',
1143
+ 'action_required',
1144
+ 'partially_paid',
1145
+ 'failed',
1146
+ 'nothing_due',
1147
+ 'bank_transfer_due'
1148
+ ]),
1149
+ message: z.string(),
1150
+ results: z.array(z.object({
1151
+ invoice_id: z.string(),
1152
+ number: z.string(),
1153
+ amount: z.number(),
1154
+ currency: z.string(),
1155
+ status: z.enum([
1156
+ 'paid',
1157
+ 'processing',
1158
+ 'requires_action',
1159
+ 'failed'
1160
+ ]),
1161
+ client_secret: z.string(),
1162
+ failure_code: z.string(),
1163
+ failure_message: z.string()
1164
+ }))
1165
+ });
1027
1166
  export const zInvoice = z.object({
1028
1167
  id: z.string().optional(),
1029
1168
  number: z.string().optional(),
@@ -1082,6 +1221,8 @@ export const zOrganization = z.object({
1082
1221
  basic_clusters_available: z.int(),
1083
1222
  pro_clusters_max: z.int().gte(0),
1084
1223
  pro_clusters_available: z.int(),
1224
+ enterprise_clusters_max: z.int().gte(0),
1225
+ enterprise_clusters_available: z.int(),
1085
1226
  fleets_max: z.int().gte(0),
1086
1227
  cluster_tiers: z.array(z.string()).min(0),
1087
1228
  regions: z.array(z.string()).min(1),
@@ -1123,6 +1264,8 @@ export const zPlatformQuota = z.object({
1123
1264
  basic_clusters_available: z.int(),
1124
1265
  pro_clusters_max: z.int().gte(0),
1125
1266
  pro_clusters_available: z.int(),
1267
+ enterprise_clusters_max: z.int().gte(0),
1268
+ enterprise_clusters_available: z.int(),
1126
1269
  fleets_max: z.int().gte(0),
1127
1270
  cluster_tiers: z.array(z.string()).min(0),
1128
1271
  regions: z.array(z.string()).min(1),
@@ -1193,39 +1336,6 @@ export const zTicketCreateInput = z.object({
1193
1336
  body: z.string().min(1).max(50000).regex(/\S/),
1194
1337
  properties: z.record(z.string(), z.unknown()).optional()
1195
1338
  });
1196
- export const zTicketListResponse = z.object({
1197
- items: z.array(z.object({
1198
- id: z.string(),
1199
- status: z.enum([
1200
- 'waiting_on_us',
1201
- 'waiting_on_user',
1202
- 'closed'
1203
- ]),
1204
- category: z.enum([
1205
- 'billing',
1206
- 'technical',
1207
- 'general'
1208
- ]),
1209
- summary: z.string(),
1210
- closed_at: z.iso.datetime().optional(),
1211
- date_created: z.iso.datetime(),
1212
- date_updated: z.iso.datetime(),
1213
- messages: z.array(z.object({
1214
- id: z.string(),
1215
- type: z.enum(['customer_reply', 'agent_reply']),
1216
- body: z.string(),
1217
- author_first_name: z.string().optional(),
1218
- author_last_name: z.string().optional(),
1219
- attachments: z.array(z.object({
1220
- id: z.string(),
1221
- filename: z.string(),
1222
- content_type: z.string(),
1223
- size: z.int()
1224
- })).optional(),
1225
- date_created: z.iso.datetime()
1226
- })).optional()
1227
- }))
1228
- });
1229
1339
  export const zTicketMessageInput = z.object({
1230
1340
  body: z.string().min(1).max(50000).regex(/\S/)
1231
1341
  });
@@ -1291,26 +1401,58 @@ export const zTokenUpdateInput = z.object({
1291
1401
  });
1292
1402
  export const zUsageFacets = z.object({
1293
1403
  cluster_id: z.array(z.string()).optional(),
1294
- product: z.array(z.string()).optional()
1404
+ product: z.array(z.enum([
1405
+ 'cfke_controlplane_basic',
1406
+ 'cfke_controlplane_pro',
1407
+ 'cfke_controlplane_enterprise',
1408
+ 'cfke_connected_nodes_basic',
1409
+ 'cfke_connected_nodes_pro',
1410
+ 'cfke_connected_nodes_enterprise',
1411
+ 'cfcr_storage'
1412
+ ])).optional()
1295
1413
  });
1296
1414
  export const zUsageResponse = z.object({
1297
1415
  data: z.array(z.object({
1298
1416
  hour: z.string(),
1299
1417
  cluster_id: z.string(),
1300
- product: z.string(),
1418
+ product: z.enum([
1419
+ 'cfke_controlplane_basic',
1420
+ 'cfke_controlplane_pro',
1421
+ 'cfke_controlplane_enterprise',
1422
+ 'cfke_connected_nodes_basic',
1423
+ 'cfke_connected_nodes_pro',
1424
+ 'cfke_connected_nodes_enterprise',
1425
+ 'cfcr_storage'
1426
+ ]),
1301
1427
  value: z.number(),
1302
1428
  price: z.number(),
1303
1429
  total: z.number()
1304
1430
  })),
1305
1431
  facets: z.object({
1306
1432
  cluster_id: z.array(z.string()).optional(),
1307
- product: z.array(z.string()).optional()
1433
+ product: z.array(z.enum([
1434
+ 'cfke_controlplane_basic',
1435
+ 'cfke_controlplane_pro',
1436
+ 'cfke_controlplane_enterprise',
1437
+ 'cfke_connected_nodes_basic',
1438
+ 'cfke_connected_nodes_pro',
1439
+ 'cfke_connected_nodes_enterprise',
1440
+ 'cfcr_storage'
1441
+ ])).optional()
1308
1442
  })
1309
1443
  });
1310
1444
  export const zUsage = z.object({
1311
1445
  hour: z.string(),
1312
1446
  cluster_id: z.string(),
1313
- product: z.string(),
1447
+ product: z.enum([
1448
+ 'cfke_controlplane_basic',
1449
+ 'cfke_controlplane_pro',
1450
+ 'cfke_controlplane_enterprise',
1451
+ 'cfke_connected_nodes_basic',
1452
+ 'cfke_connected_nodes_pro',
1453
+ 'cfke_connected_nodes_enterprise',
1454
+ 'cfcr_storage'
1455
+ ]),
1314
1456
  value: z.number(),
1315
1457
  price: z.number(),
1316
1458
  total: z.number()
@@ -1338,183 +1480,201 @@ export const zUserUpdateInput = z.object({
1338
1480
  role: z.enum(['Administrator', 'User']).optional(),
1339
1481
  status: z.enum(['active', 'inactive']).optional()
1340
1482
  });
1341
- export const zGetUsageQuery = z.object({
1342
- granularity: z.enum([
1343
- 'hourly',
1344
- 'daily',
1345
- 'monthly'
1346
- ]).optional().default('daily')
1483
+ export const zListUserOrganizationsPath = z.object({
1484
+ email: z.string()
1347
1485
  });
1348
1486
  /**
1349
- * Usage data with facets for filtering
1487
+ * An array of organizations the user belongs to.
1350
1488
  */
1351
- export const zGetUsageResponse = zUsageResponse;
1489
+ export const zListUserOrganizationsResponse = z.array(z.object({
1490
+ realm: z.string().optional(),
1491
+ displayName: z.string().optional()
1492
+ }));
1352
1493
  /**
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
- *
1494
+ * An array of users
1355
1495
  */
1356
- export const zGetPaymentMethodSecretResponse = z.object({
1357
- id: z.string().optional()
1358
- });
1496
+ export const zListUsersResponse = z.array(zUser);
1497
+ export const zCreateUserBody = zUserCreateInput;
1359
1498
  /**
1360
- * An array of payment methods.
1499
+ * Successfully created. Returns created user details.
1361
1500
  */
1362
- export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1363
- export const zSetDefaultPaymentMethodPath = z.object({
1364
- paymentMethodId: z.string()
1501
+ export const zCreateUserResponse = zUser;
1502
+ export const zDeleteUserPath = z.object({
1503
+ user_id: z.string()
1365
1504
  });
1366
1505
  /**
1367
- * Default payment method updated.
1506
+ * User profile information
1368
1507
  */
1369
- export const zSetDefaultPaymentMethodResponse = z.void();
1370
- export const zDeletePaymentMethodPath = z.object({
1371
- paymentMethodId: z.string()
1508
+ export const zDeleteUserResponse = zUser;
1509
+ export const zGetUserPath = z.object({
1510
+ user_id: z.string()
1372
1511
  });
1373
1512
  /**
1374
- * Payment method deleted.
1375
- */
1376
- export const zDeletePaymentMethodResponse = z.void();
1377
- /**
1378
- * An array of usage records.
1513
+ * User profile information
1379
1514
  */
1380
- export const zListInvoicesResponse = z.array(zInvoice);
1515
+ export const zGetUserResponse = zUser;
1516
+ export const zUpdateUserBody = zUserUpdateInput;
1517
+ export const zUpdateUserPath = z.object({
1518
+ user_id: z.string()
1519
+ });
1381
1520
  /**
1382
- * Returns a single object containing organization contact and billing address details.
1521
+ * Successfully created. Returns created user details.
1383
1522
  */
1384
- export const zGetContactResponse = zBillingContact;
1385
- export const zUpdateContactBody = zBillingContact;
1523
+ export const zUpdateUserResponse = zUser;
1386
1524
  /**
1387
- * Successfully updated. Returns updated organization details.
1525
+ * Returns a list of access token details with masked secrets.
1388
1526
  */
1389
- export const zUpdateContactResponse = zBillingContact;
1527
+ export const zListTokensResponse = z.array(zToken);
1528
+ export const zCreateTokenBody = zTokenCreateInput;
1390
1529
  /**
1391
- * An array of the applied promotional credits records.
1530
+ * Successfully created. Returns created token details with unmasked/raw secret.
1392
1531
  */
1393
- export const zGetCreditsResponse = z.array(zBillingCredits);
1394
- export const zRedeemCreditsBody = z.object({
1395
- code: z.string().optional()
1532
+ export const zCreateTokenResponse = zToken;
1533
+ export const zDeleteTokenPath = z.object({
1534
+ token_id: z.string()
1396
1535
  });
1397
- export const zListChartsPath = z.object({
1398
- cluster_id: z.string()
1536
+ export const zGetTokenPath = z.object({
1537
+ token_id: z.string()
1399
1538
  });
1400
1539
  /**
1401
- * An array of charts
1540
+ * Returns access token details with masked secret.
1402
1541
  */
1403
- export const zListChartsResponse = z.array(zChart);
1404
- export const zCreateChartBody = zChartCreateInput;
1405
- export const zCreateChartPath = z.object({
1406
- cluster_id: z.string()
1542
+ export const zGetTokenResponse = zToken;
1543
+ export const zUpdateTokenBody = zTokenUpdateInput;
1544
+ export const zUpdateTokenPath = z.object({
1545
+ token_id: z.string()
1407
1546
  });
1408
1547
  /**
1409
- * Successfully created. Returns created Chart ID.
1548
+ * Successfully updated. Returns updated token details with masked secret.
1410
1549
  */
1411
- export const zCreateChartResponse = z.string();
1412
- export const zDeleteChartPath = z.object({
1413
- cluster_id: z.string(),
1414
- chart_name: z.string()
1550
+ export const zUpdateTokenResponse = zToken;
1551
+ export const zRegenerateTokenPath = z.object({
1552
+ token_id: z.string()
1415
1553
  });
1416
1554
  /**
1417
- * Successfully deleted.
1555
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1418
1556
  */
1419
- export const zDeleteChartResponse = z.string();
1420
- export const zGetChartPath = z.object({
1421
- cluster_id: z.string(),
1422
- chart_name: z.string()
1423
- });
1557
+ export const zRegenerateTokenResponse = zToken;
1424
1558
  /**
1425
- * Returns a single object containing chart details.
1559
+ * An array of tickets for the organization, newest first.
1426
1560
  */
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()
1561
+ export const zListTicketsResponse = z.array(zTicket);
1562
+ export const zCreateTicketBody = z.object({
1563
+ payload: z.string().optional(),
1564
+ attachments: z.array(z.string()).optional()
1432
1565
  });
1433
1566
  /**
1434
- * Successfully updated.
1567
+ * Ticket created.
1435
1568
  */
1436
- export const zUpdateChartResponse = z.string();
1437
- export const zListFleetsPath = z.object({
1438
- cluster_id: z.string()
1569
+ export const zCreateTicketResponse = zTicket;
1570
+ export const zCloseTicketPath = z.object({
1571
+ ticket_id: z.string()
1439
1572
  });
1440
1573
  /**
1441
- * An array of fleets
1574
+ * Ticket closed.
1442
1575
  */
1443
- export const zListFleetsResponse = z.array(zFleet);
1444
- export const zCreateFleetBody = zFleetCreateInput;
1445
- export const zCreateFleetPath = z.object({
1446
- cluster_id: z.string()
1576
+ export const zCloseTicketResponse = zTicket;
1577
+ export const zGetTicketPath = z.object({
1578
+ ticket_id: z.string()
1447
1579
  });
1448
1580
  /**
1449
- * Successfully created. Returns created Fleet ID.
1581
+ * Ticket with messages (internal notes excluded).
1450
1582
  */
1451
- export const zCreateFleetResponse = z.string();
1452
- export const zDeleteFleetPath = z.object({
1453
- cluster_id: z.string(),
1454
- fleet_name: z.string()
1583
+ export const zGetTicketResponse = zTicket;
1584
+ export const zReplyTicketBody = z.object({
1585
+ payload: z.string().optional(),
1586
+ attachments: z.array(z.string()).optional()
1455
1587
  });
1456
- /**
1457
- * Successfully deleted.
1458
- */
1459
- export const zDeleteFleetResponse = z.string();
1460
- export const zGetFleetPath = z.object({
1461
- cluster_id: z.string(),
1462
- fleet_name: z.string()
1588
+ export const zReplyTicketPath = z.object({
1589
+ ticket_id: z.string()
1463
1590
  });
1464
1591
  /**
1465
- * Returns a single object containing fleet details.
1592
+ * Reply appended.
1466
1593
  */
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()
1594
+ export const zReplyTicketResponse = zTicketMessage;
1595
+ export const zGetTicketAttachmentPath = z.object({
1596
+ ticket_id: z.string(),
1597
+ attachment_id: z.string()
1472
1598
  });
1473
1599
  /**
1474
- * Successfully updated.
1600
+ * Attachment binary stream.
1475
1601
  */
1476
- export const zUpdateFleetResponse = z.string();
1477
- export const zQueryClusterPath = z.object({
1478
- cluster_id: z.string()
1479
- });
1602
+ export const zGetTicketAttachmentResponse = z.string();
1480
1603
  /**
1481
- * An array of clusters
1604
+ * List of repositories
1482
1605
  */
1483
- export const zListClustersResponse = z.array(zCluster);
1484
- export const zCreateClusterBody = zClusterCreateInput;
1606
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1607
+ export const zListTagsPath = z.object({
1608
+ region: z.string(),
1609
+ repository: z.string()
1610
+ });
1485
1611
  /**
1486
- * Successfully created. Returns created Cluster ID.
1612
+ * Repository with tags
1487
1613
  */
1488
- export const zCreateClusterResponse = z.string();
1489
- export const zDeleteClusterPath = z.object({
1490
- cluster_id: z.string()
1614
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1615
+ export const zDeleteTagPath = z.object({
1616
+ region: z.string(),
1617
+ repository: z.string(),
1618
+ tag: z.string()
1619
+ });
1620
+ export const zGetTagPath = z.object({
1621
+ region: z.string(),
1622
+ repository: z.string(),
1623
+ tag: z.string()
1491
1624
  });
1492
1625
  /**
1493
- * Successfully deleted.
1626
+ * Tag details
1494
1627
  */
1495
- export const zDeleteClusterResponse = z.string();
1496
- export const zGetClusterPath = z.object({
1497
- cluster_id: z.string()
1498
- });
1628
+ export const zGetTagResponse = zRegistryTag;
1499
1629
  /**
1500
- * Returns a single object containing cluster details.
1630
+ * Returns a single object containing organization details.
1501
1631
  */
1502
- export const zGetClusterResponse = zCluster;
1503
- export const zUpdateClusterBody = zClusterUpdateInput;
1504
- export const zUpdateClusterPath = z.object({
1505
- cluster_id: z.string()
1632
+ export const zGetOrganizationResponse = zOrganization;
1633
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1634
+ /**
1635
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1636
+ *
1637
+ */
1638
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1639
+ /**
1640
+ * JSON-RPC 2.0 request payload
1641
+ */
1642
+ export const zPostMcpBody = z.object({
1643
+ jsonrpc: z.string().optional(),
1644
+ method: z.string().optional(),
1645
+ id: z.union([
1646
+ z.string(),
1647
+ z.number()
1648
+ ]).optional(),
1649
+ params: z.record(z.string(), z.unknown()).optional()
1506
1650
  });
1507
1651
  /**
1508
- * Successfully updated. Returns updated cluster details.
1652
+ * JSON-RPC 2.0 success or error response
1509
1653
  */
1510
- export const zUpdateClusterResponse = zCluster;
1511
- export const zGetJoinInformationPath = z.object({
1512
- cluster_id: z.string()
1654
+ export const zPostMcpResponse = z.object({
1655
+ jsonrpc: z.string().optional(),
1656
+ id: z.union([
1657
+ z.string(),
1658
+ z.number()
1659
+ ]).optional(),
1660
+ result: z.record(z.string(), z.unknown()).optional(),
1661
+ error: z.object({
1662
+ code: z.int().optional(),
1663
+ message: z.string().optional()
1664
+ }).optional()
1513
1665
  });
1514
1666
  /**
1515
- * An object of cluster join information
1667
+ * An array of chart listings in the marketplace.
1516
1668
  */
1517
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1669
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1670
+ export const zGetMarketplaceChartFilesPath = z.object({
1671
+ chart_name: z.string(),
1672
+ version_channel: z.string()
1673
+ });
1674
+ /**
1675
+ * Returns an object containing the chart files for the latest matching version.
1676
+ */
1677
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1518
1678
  /**
1519
1679
  * An array of invites
1520
1680
  */
@@ -1537,199 +1697,185 @@ export const zGetInviteResponse = z.object({
1537
1697
  export const zDeleteInvitePath = z.object({
1538
1698
  email: z.email()
1539
1699
  });
1700
+ export const zQueryClusterPath = z.object({
1701
+ cluster_id: z.string()
1702
+ });
1703
+ export const zListFleetsPath = z.object({
1704
+ cluster_id: z.string()
1705
+ });
1540
1706
  /**
1541
- * An array of chart listings in the marketplace.
1707
+ * An array of fleets
1542
1708
  */
1543
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1544
- export const zGetMarketplaceChartFilesPath = z.object({
1545
- chart_name: z.string(),
1546
- version_channel: z.string()
1709
+ export const zListFleetsResponse = z.array(zFleet);
1710
+ export const zCreateFleetBody = zFleetCreateInput;
1711
+ export const zCreateFleetPath = z.object({
1712
+ cluster_id: z.string()
1547
1713
  });
1548
1714
  /**
1549
- * Returns an object containing the chart files for the latest matching version.
1715
+ * Successfully created. Returns created Fleet ID.
1550
1716
  */
1551
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1717
+ export const zCreateFleetResponse = z.string();
1718
+ export const zDeleteFleetPath = z.object({
1719
+ cluster_id: z.string(),
1720
+ fleet_name: z.string()
1721
+ });
1552
1722
  /**
1553
- * JSON-RPC 2.0 request payload
1723
+ * Successfully deleted.
1554
1724
  */
1555
- export const zPostMcpBody = z.object({
1556
- jsonrpc: z.string().optional(),
1557
- method: z.string().optional(),
1558
- id: z.union([
1559
- z.string(),
1560
- z.number()
1561
- ]).optional(),
1562
- params: z.record(z.string(), z.unknown()).optional()
1725
+ export const zDeleteFleetResponse = z.string();
1726
+ export const zGetFleetPath = z.object({
1727
+ cluster_id: z.string(),
1728
+ fleet_name: z.string()
1563
1729
  });
1564
1730
  /**
1565
- * JSON-RPC 2.0 success or error response
1731
+ * Returns a single object containing fleet details.
1566
1732
  */
1567
- export const zPostMcpResponse = z.object({
1568
- jsonrpc: z.string().optional(),
1569
- id: z.union([
1570
- z.string(),
1571
- z.number()
1572
- ]).optional(),
1573
- result: z.record(z.string(), z.unknown()).optional(),
1574
- error: z.object({
1575
- code: z.int().optional(),
1576
- message: z.string().optional()
1577
- }).optional()
1733
+ export const zGetFleetResponse = zFleet;
1734
+ export const zUpdateFleetBody = zFleetUpdateInput;
1735
+ export const zUpdateFleetPath = z.object({
1736
+ cluster_id: z.string(),
1737
+ fleet_name: z.string()
1578
1738
  });
1579
1739
  /**
1580
- * Returns a single object containing organization details.
1740
+ * Successfully updated.
1581
1741
  */
1582
- export const zGetOrganizationResponse = zOrganization;
1583
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1742
+ export const zUpdateFleetResponse = z.string();
1743
+ export const zListChartsPath = z.object({
1744
+ cluster_id: z.string()
1745
+ });
1584
1746
  /**
1585
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1586
- *
1747
+ * An array of charts
1587
1748
  */
1588
- export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1749
+ export const zListChartsResponse = z.array(zChart);
1750
+ export const zCreateChartBody = zChartCreateInput;
1751
+ export const zCreateChartPath = z.object({
1752
+ cluster_id: z.string()
1753
+ });
1589
1754
  /**
1590
- * List of repositories
1755
+ * Successfully created. Returns created Chart ID.
1591
1756
  */
1592
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1593
- export const zListTagsPath = z.object({
1594
- region: z.string(),
1595
- repository: z.string()
1757
+ export const zCreateChartResponse = z.string();
1758
+ export const zDeleteChartPath = z.object({
1759
+ cluster_id: z.string(),
1760
+ chart_name: z.string()
1596
1761
  });
1597
1762
  /**
1598
- * Repository with tags
1763
+ * Successfully deleted.
1599
1764
  */
1600
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1601
- export const zDeleteTagPath = z.object({
1602
- region: z.string(),
1603
- repository: z.string(),
1604
- tag: z.string()
1765
+ export const zDeleteChartResponse = z.string();
1766
+ export const zGetChartPath = z.object({
1767
+ cluster_id: z.string(),
1768
+ chart_name: z.string()
1605
1769
  });
1606
- export const zGetTagPath = z.object({
1607
- region: z.string(),
1608
- repository: z.string(),
1609
- tag: z.string()
1770
+ /**
1771
+ * Returns a single object containing chart details.
1772
+ */
1773
+ export const zGetChartResponse = zChart;
1774
+ export const zUpdateChartBody = zChartUpdateInput;
1775
+ export const zUpdateChartPath = z.object({
1776
+ cluster_id: z.string(),
1777
+ chart_name: z.string()
1610
1778
  });
1611
1779
  /**
1612
- * Tag details
1780
+ * Successfully updated.
1613
1781
  */
1614
- export const zGetTagResponse = zRegistryTag;
1782
+ export const zUpdateChartResponse = z.string();
1615
1783
  /**
1616
- * Tickets for the organization.
1784
+ * An array of clusters
1617
1785
  */
1618
- export const zListTicketsResponse = zTicketListResponse;
1619
- export const zCreateTicketBody = z.object({
1620
- payload: z.string().optional(),
1621
- attachments: z.array(z.string()).optional()
1622
- });
1786
+ export const zListClustersResponse = z.array(zCluster);
1787
+ export const zCreateClusterBody = zClusterCreateInput;
1623
1788
  /**
1624
- * Ticket created.
1789
+ * Successfully created. Returns created Cluster ID.
1625
1790
  */
1626
- export const zCreateTicketResponse = zTicket;
1627
- export const zCloseTicketPath = z.object({
1628
- ticket_id: z.string()
1791
+ export const zCreateClusterResponse = z.string();
1792
+ export const zDeleteClusterPath = z.object({
1793
+ cluster_id: z.string()
1629
1794
  });
1630
1795
  /**
1631
- * Ticket closed.
1796
+ * Successfully deleted. The cluster has been torn down.
1632
1797
  */
1633
- export const zCloseTicketResponse = zTicket;
1634
- export const zGetTicketPath = z.object({
1635
- ticket_id: z.string()
1798
+ export const zDeleteClusterResponse = z.string();
1799
+ export const zGetClusterPath = z.object({
1800
+ cluster_id: z.string()
1636
1801
  });
1637
1802
  /**
1638
- * Ticket with messages (internal notes excluded).
1803
+ * Returns a single object containing cluster details.
1639
1804
  */
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()
1805
+ export const zGetClusterResponse = zCluster;
1806
+ export const zUpdateClusterBody = zClusterUpdateInput;
1807
+ export const zUpdateClusterPath = z.object({
1808
+ cluster_id: z.string()
1647
1809
  });
1648
1810
  /**
1649
- * Reply appended.
1811
+ * Successfully updated. Returns updated cluster details.
1650
1812
  */
1651
- export const zReplyTicketResponse = zTicketMessage;
1652
- export const zGetTicketAttachmentPath = z.object({
1653
- ticket_id: z.string(),
1654
- attachment_id: z.string()
1813
+ export const zUpdateClusterResponse = zCluster;
1814
+ export const zGetJoinInformationPath = z.object({
1815
+ cluster_id: z.string()
1655
1816
  });
1656
1817
  /**
1657
- * Attachment binary stream.
1818
+ * An object of cluster join information
1658
1819
  */
1659
- export const zGetTicketAttachmentResponse = z.string();
1820
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1821
+ export const zGetUsageQuery = z.object({
1822
+ granularity: z.enum([
1823
+ 'hourly',
1824
+ 'daily',
1825
+ 'monthly'
1826
+ ]).optional().default('daily')
1827
+ });
1660
1828
  /**
1661
- * Returns a list of access token details with masked secrets.
1829
+ * Usage data with facets for filtering
1662
1830
  */
1663
- export const zListTokensResponse = z.array(zToken);
1664
- export const zCreateTokenBody = zTokenCreateInput;
1831
+ export const zGetUsageResponse = zUsageResponse;
1665
1832
  /**
1666
- * Successfully created. Returns created token details with unmasked/raw secret.
1833
+ * 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.
1834
+ *
1667
1835
  */
1668
- export const zCreateTokenResponse = zToken;
1669
- export const zDeleteTokenPath = z.object({
1670
- token_id: z.string()
1671
- });
1672
- export const zGetTokenPath = z.object({
1673
- token_id: z.string()
1836
+ export const zGetPaymentMethodSecretResponse = z.object({
1837
+ id: z.string().optional()
1674
1838
  });
1675
1839
  /**
1676
- * Returns access token details with masked secret.
1840
+ * An array of payment methods.
1677
1841
  */
1678
- export const zGetTokenResponse = zToken;
1679
- export const zUpdateTokenBody = zTokenUpdateInput;
1680
- export const zUpdateTokenPath = z.object({
1681
- token_id: z.string()
1842
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1843
+ export const zSetDefaultPaymentMethodPath = z.object({
1844
+ paymentMethodId: z.string()
1682
1845
  });
1683
1846
  /**
1684
- * Successfully updated. Returns updated token details with masked secret.
1847
+ * Default payment method updated.
1685
1848
  */
1686
- export const zUpdateTokenResponse = zToken;
1687
- export const zRegenerateTokenPath = z.object({
1688
- token_id: z.string()
1849
+ export const zSetDefaultPaymentMethodResponse = z.void();
1850
+ export const zDeletePaymentMethodPath = z.object({
1851
+ paymentMethodId: z.string()
1689
1852
  });
1690
1853
  /**
1691
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1854
+ * Payment method deleted.
1692
1855
  */
1693
- export const zRegenerateTokenResponse = zToken;
1694
- export const zListUserOrganizationsPath = z.object({
1695
- email: z.string()
1696
- });
1856
+ export const zDeletePaymentMethodResponse = z.void();
1697
1857
  /**
1698
- * An array of organizations the user belongs to.
1858
+ * An array of usage records.
1699
1859
  */
1700
- export const zListUserOrganizationsResponse = z.array(z.object({
1701
- realm: z.string().optional(),
1702
- displayName: z.string().optional()
1703
- }));
1860
+ export const zListInvoicesResponse = z.array(zInvoice);
1704
1861
  /**
1705
- * An array of users
1862
+ * The outcome of the attempt.
1706
1863
  */
1707
- export const zListUsersResponse = z.array(zUser);
1708
- export const zCreateUserBody = zUserCreateInput;
1864
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1709
1865
  /**
1710
- * Successfully created. Returns created user details.
1866
+ * Returns a single object containing organization contact and billing address details.
1711
1867
  */
1712
- export const zCreateUserResponse = zUser;
1713
- export const zDeleteUserPath = z.object({
1714
- user_id: z.string()
1715
- });
1868
+ export const zGetContactResponse = zBillingContact;
1869
+ export const zUpdateContactBody = zBillingContact;
1716
1870
  /**
1717
- * User profile information
1871
+ * Successfully updated. Returns updated organization details.
1718
1872
  */
1719
- export const zDeleteUserResponse = zUser;
1720
- export const zGetUserPath = z.object({
1721
- user_id: z.string()
1722
- });
1873
+ export const zUpdateContactResponse = zBillingContact;
1723
1874
  /**
1724
- * User profile information
1875
+ * An array of the applied promotional credits records.
1725
1876
  */
1726
- export const zGetUserResponse = zUser;
1727
- export const zUpdateUserBody = zUserUpdateInput;
1728
- export const zUpdateUserPath = z.object({
1729
- user_id: z.string()
1877
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1878
+ export const zRedeemCreditsBody = z.object({
1879
+ code: z.string().optional()
1730
1880
  });
1731
- /**
1732
- * Successfully created. Returns created user details.
1733
- */
1734
- export const zUpdateUserResponse = zUser;
1735
1881
  //# sourceMappingURL=zod.gen.js.map