@alienplatform/platform-api 3.3.25 → 3.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/esm/funcs/commandsComplete.js +1 -1
  2. package/esm/funcs/commandsComplete.js.map +1 -1
  3. package/esm/funcs/commandsCreate.js +1 -1
  4. package/esm/funcs/commandsCreate.js.map +1 -1
  5. package/esm/funcs/commandsDispatch.js +1 -1
  6. package/esm/funcs/commandsDispatch.js.map +1 -1
  7. package/esm/funcs/commandsGet.js +1 -1
  8. package/esm/funcs/commandsGet.js.map +1 -1
  9. package/esm/funcs/commandsIncrementAttempt.js +1 -1
  10. package/esm/funcs/commandsIncrementAttempt.js.map +1 -1
  11. package/esm/funcs/commandsResolveTarget.js +1 -1
  12. package/esm/funcs/commandsResolveTarget.js.map +1 -1
  13. package/esm/funcs/commandsUpdate.js +1 -1
  14. package/esm/funcs/commandsUpdate.js.map +1 -1
  15. package/esm/funcs/projectsUpdate.js +1 -1
  16. package/esm/funcs/projectsUpdate.js.map +1 -1
  17. package/esm/lib/config.d.ts +2 -2
  18. package/esm/lib/config.js +2 -2
  19. package/esm/models/createcommandrequest.d.ts +6 -1
  20. package/esm/models/createcommandrequest.d.ts.map +1 -1
  21. package/esm/models/createcommandrequest.js +1 -0
  22. package/esm/models/createcommandrequest.js.map +1 -1
  23. package/esm/models/deploymentinfo.d.ts +8 -0
  24. package/esm/models/deploymentinfo.d.ts.map +1 -1
  25. package/esm/models/deploymentinfo.js +2 -0
  26. package/esm/models/deploymentinfo.js.map +1 -1
  27. package/esm/models/operations/configureprojectsource.d.ts +80 -0
  28. package/esm/models/operations/configureprojectsource.d.ts.map +1 -1
  29. package/esm/models/operations/configureprojectsource.js +65 -0
  30. package/esm/models/operations/configureprojectsource.js.map +1 -1
  31. package/esm/models/operations/createproject.d.ts +197 -0
  32. package/esm/models/operations/createproject.d.ts.map +1 -1
  33. package/esm/models/operations/createproject.js +130 -0
  34. package/esm/models/operations/createproject.js.map +1 -1
  35. package/esm/models/operations/createprojectfromtemplate.d.ts +197 -0
  36. package/esm/models/operations/createprojectfromtemplate.d.ts.map +1 -1
  37. package/esm/models/operations/createprojectfromtemplate.js +131 -0
  38. package/esm/models/operations/createprojectfromtemplate.js.map +1 -1
  39. package/esm/models/operations/syncrelease.d.ts +3 -0
  40. package/esm/models/operations/syncrelease.d.ts.map +1 -1
  41. package/esm/models/operations/syncrelease.js.map +1 -1
  42. package/esm/models/package.d.ts +152 -4
  43. package/esm/models/package.d.ts.map +1 -1
  44. package/esm/models/package.js +74 -5
  45. package/esm/models/package.js.map +1 -1
  46. package/esm/models/project.d.ts +80 -0
  47. package/esm/models/project.d.ts.map +1 -1
  48. package/esm/models/project.js +67 -0
  49. package/esm/models/project.js.map +1 -1
  50. package/esm/models/projectlistitemresponse.d.ts +80 -0
  51. package/esm/models/projectlistitemresponse.d.ts.map +1 -1
  52. package/esm/models/projectlistitemresponse.js +65 -0
  53. package/esm/models/projectlistitemresponse.js.map +1 -1
  54. package/esm/models/syncreleaserequest.d.ts +19 -0
  55. package/esm/models/syncreleaserequest.d.ts.map +1 -1
  56. package/esm/models/syncreleaserequest.js +10 -0
  57. package/esm/models/syncreleaserequest.js.map +1 -1
  58. package/esm/models/updateproject.d.ts +470 -34
  59. package/esm/models/updateproject.d.ts.map +1 -1
  60. package/esm/models/updateproject.js +245 -23
  61. package/esm/models/updateproject.js.map +1 -1
  62. package/jsr.json +1 -1
  63. package/package.json +1 -1
  64. package/src/funcs/commandsComplete.ts +1 -1
  65. package/src/funcs/commandsCreate.ts +1 -1
  66. package/src/funcs/commandsDispatch.ts +1 -1
  67. package/src/funcs/commandsGet.ts +1 -1
  68. package/src/funcs/commandsIncrementAttempt.ts +1 -1
  69. package/src/funcs/commandsResolveTarget.ts +1 -1
  70. package/src/funcs/commandsUpdate.ts +1 -1
  71. package/src/funcs/projectsUpdate.ts +1 -1
  72. package/src/lib/config.ts +2 -2
  73. package/src/models/createcommandrequest.ts +7 -1
  74. package/src/models/deploymentinfo.ts +10 -0
  75. package/src/models/operations/configureprojectsource.ts +216 -0
  76. package/src/models/operations/createproject.ts +462 -0
  77. package/src/models/operations/createprojectfromtemplate.ts +502 -0
  78. package/src/models/operations/syncrelease.ts +3 -0
  79. package/src/models/package.ts +284 -15
  80. package/src/models/project.ts +193 -0
  81. package/src/models/projectlistitemresponse.ts +217 -0
  82. package/src/models/syncreleaserequest.ts +24 -0
  83. package/src/models/updateproject.ts +929 -68
@@ -129,10 +129,36 @@ export type ConfigOperatorImage = {
129
129
  type: "operator-image";
130
130
  };
131
131
 
132
+ /**
133
+ * Kubernetes log collection mechanism.
134
+ */
135
+ export const PackageMode = {
136
+ PodApi: "podApi",
137
+ NodeAgent: "nodeAgent",
138
+ } as const;
139
+ /**
140
+ * Kubernetes log collection mechanism.
141
+ */
142
+ export type PackageMode = ClosedEnum<typeof PackageMode>;
143
+
144
+ /**
145
+ * Default log collection mode in a generated Helm chart.
146
+ */
147
+ export type PackageLogCollector = {
148
+ /**
149
+ * Whether logs are collected by default; installers can override this value.
150
+ */
151
+ enabled: boolean;
152
+ /**
153
+ * Kubernetes log collection mechanism.
154
+ */
155
+ mode: PackageMode;
156
+ };
157
+
132
158
  /**
133
159
  * One Kubernetes API requirement declared by an enabled operation.
134
160
  */
135
- export type PackageRule = {
161
+ export type PermissionsRule = {
136
162
  /**
137
163
  * Kubernetes API group. An empty string denotes the core API.
138
164
  */
@@ -162,7 +188,7 @@ export type PackagePermissions = {
162
188
  /**
163
189
  * Explicit Kubernetes API requirements.
164
190
  */
165
- rules: Array<PackageRule>;
191
+ rules: Array<PermissionsRule>;
166
192
  /**
167
193
  * Schema version of the validated permission declaration.
168
194
  */
@@ -204,6 +230,92 @@ export type OperationPermission = {
204
230
  tier: PackageTier;
205
231
  };
206
232
 
233
+ /**
234
+ * Operator identity storage in the generated chart. This does not install a storage driver.
235
+ */
236
+ export type PackageRuntimePersistence = {
237
+ /**
238
+ * Persist operator identity across restarts.
239
+ */
240
+ enabled: boolean;
241
+ /**
242
+ * Existing namespace claim instead of creating a new claim.
243
+ */
244
+ existingClaim: string;
245
+ /**
246
+ * Requested claim capacity, for example 1Gi.
247
+ */
248
+ size: string;
249
+ /**
250
+ * Cluster storage class; empty uses the cluster default.
251
+ */
252
+ storageClassName: string;
253
+ };
254
+
255
+ /**
256
+ * Non-secret configuration for a chart-generated enrollment token.
257
+ */
258
+ export type PackageTokenSecret = {
259
+ /**
260
+ * Data key inside the Secret.
261
+ */
262
+ key: string;
263
+ /**
264
+ * Fixed Kubernetes Secret name expected by the workload's Secret mount.
265
+ */
266
+ name: string;
267
+ /**
268
+ * Plaintext prefix before the random alphanumeric suffix.
269
+ */
270
+ prefix: string;
271
+ /**
272
+ * Length of the random suffix.
273
+ */
274
+ randomLength: number;
275
+ };
276
+
277
+ /**
278
+ * Resource family the chart grants get/list/watch over.
279
+ */
280
+ export type PackageWorkloadReadAccessRule = {
281
+ /**
282
+ * Empty string for the core Kubernetes API group.
283
+ */
284
+ apiGroup: string;
285
+ /**
286
+ * Kubernetes plural resource names; wildcards are not accepted.
287
+ */
288
+ resources: Array<string>;
289
+ };
290
+
291
+ /**
292
+ * Cluster reads granted to a workload identity, separate from Operator permissions.
293
+ */
294
+ export type PackageWorkloadReadAccess = {
295
+ /**
296
+ * Exact API groups and resources. Verbs are fixed to get/list/watch.
297
+ */
298
+ rules: Array<PackageWorkloadReadAccessRule>;
299
+ /**
300
+ * Permission profile used by the workload Container and generated ServiceAccount.
301
+ */
302
+ serviceAccountProfile: string;
303
+ };
304
+
305
+ /**
306
+ * Kubernetes resources created by the product chart before the runtime starts.
307
+ */
308
+ export type PackageSetupResources = {
309
+ /**
310
+ * Non-secret configuration for a chart-generated enrollment token.
311
+ */
312
+ tokenSecret: PackageTokenSecret;
313
+ /**
314
+ * Cluster reads granted to a workload identity, separate from Operator permissions.
315
+ */
316
+ workloadReadAccess: PackageWorkloadReadAccess;
317
+ };
318
+
207
319
  /**
208
320
  * Configuration for the Helm chart package
209
321
  */
@@ -216,6 +328,14 @@ export type ConfigHelm = {
216
328
  * Human-friendly description of the chart
217
329
  */
218
330
  description: string;
331
+ /**
332
+ * Default log collection mode in a generated Helm chart.
333
+ */
334
+ logCollector?: PackageLogCollector | undefined;
335
+ /**
336
+ * Resolved default management endpoint captured when this build was queued.
337
+ */
338
+ managerUrl?: string | undefined;
219
339
  /**
220
340
  * Canonical Kubernetes permissions for the operations enabled when this build was queued.
221
341
  *
@@ -226,6 +346,14 @@ export type ConfigHelm = {
226
346
  * that must be re-enqueued; an empty `Some` is a reviewed snapshot with no extra grants.
227
347
  */
228
348
  operationPermissions?: Array<OperationPermission> | null | undefined;
349
+ /**
350
+ * Operator identity storage in the generated chart. This does not install a storage driver.
351
+ */
352
+ runtimePersistence?: PackageRuntimePersistence | undefined;
353
+ /**
354
+ * Kubernetes resources created by the product chart before the runtime starts.
355
+ */
356
+ setupResources?: PackageSetupResources | undefined;
229
357
  type: "helm";
230
358
  };
231
359
 
@@ -526,6 +654,10 @@ export type OutputsHelm = {
526
654
  * OCI chart reference (e.g., "oci://public.ecr.aws/acme/charts/project-id")
527
655
  */
528
656
  chart: string;
657
+ /**
658
+ * Default management endpoint embedded in this chart, if available.
659
+ */
660
+ managerUrl?: string | undefined;
529
661
  /**
530
662
  * Chart version (e.g., "1.2.3")
531
663
  */
@@ -821,22 +953,48 @@ export function configOperatorImageFromJSON(
821
953
  }
822
954
 
823
955
  /** @internal */
824
- export const PackageRule$inboundSchema: z.ZodType<PackageRule, unknown> = z
825
- .object({
826
- apiGroup: z.string(),
827
- reason: z.string(),
828
- resource: z.string(),
829
- resourceNames: z.array(z.string()).optional(),
830
- verbs: z.array(z.string()),
831
- });
956
+ export const PackageMode$inboundSchema: z.ZodEnum<typeof PackageMode> = z.enum(
957
+ PackageMode,
958
+ );
959
+
960
+ /** @internal */
961
+ export const PackageLogCollector$inboundSchema: z.ZodType<
962
+ PackageLogCollector,
963
+ unknown
964
+ > = z.object({
965
+ enabled: z.boolean(),
966
+ mode: PackageMode$inboundSchema,
967
+ });
832
968
 
833
- export function packageRuleFromJSON(
969
+ export function packageLogCollectorFromJSON(
834
970
  jsonString: string,
835
- ): SafeParseResult<PackageRule, SDKValidationError> {
971
+ ): SafeParseResult<PackageLogCollector, SDKValidationError> {
836
972
  return safeParse(
837
973
  jsonString,
838
- (x) => PackageRule$inboundSchema.parse(JSON.parse(x)),
839
- `Failed to parse 'PackageRule' from JSON`,
974
+ (x) => PackageLogCollector$inboundSchema.parse(JSON.parse(x)),
975
+ `Failed to parse 'PackageLogCollector' from JSON`,
976
+ );
977
+ }
978
+
979
+ /** @internal */
980
+ export const PermissionsRule$inboundSchema: z.ZodType<
981
+ PermissionsRule,
982
+ unknown
983
+ > = z.object({
984
+ apiGroup: z.string(),
985
+ reason: z.string(),
986
+ resource: z.string(),
987
+ resourceNames: z.array(z.string()).optional(),
988
+ verbs: z.array(z.string()),
989
+ });
990
+
991
+ export function permissionsRuleFromJSON(
992
+ jsonString: string,
993
+ ): SafeParseResult<PermissionsRule, SDKValidationError> {
994
+ return safeParse(
995
+ jsonString,
996
+ (x) => PermissionsRule$inboundSchema.parse(JSON.parse(x)),
997
+ `Failed to parse 'PermissionsRule' from JSON`,
840
998
  );
841
999
  }
842
1000
 
@@ -845,7 +1003,7 @@ export const PackagePermissions$inboundSchema: z.ZodType<
845
1003
  PackagePermissions,
846
1004
  unknown
847
1005
  > = z.object({
848
- rules: z.array(z.lazy(() => PackageRule$inboundSchema)),
1006
+ rules: z.array(z.lazy(() => PermissionsRule$inboundSchema)),
849
1007
  schemaVersion: z.int(),
850
1008
  });
851
1009
 
@@ -885,14 +1043,119 @@ export function operationPermissionFromJSON(
885
1043
  );
886
1044
  }
887
1045
 
1046
+ /** @internal */
1047
+ export const PackageRuntimePersistence$inboundSchema: z.ZodType<
1048
+ PackageRuntimePersistence,
1049
+ unknown
1050
+ > = z.object({
1051
+ enabled: z.boolean(),
1052
+ existingClaim: z.string(),
1053
+ size: z.string(),
1054
+ storageClassName: z.string(),
1055
+ });
1056
+
1057
+ export function packageRuntimePersistenceFromJSON(
1058
+ jsonString: string,
1059
+ ): SafeParseResult<PackageRuntimePersistence, SDKValidationError> {
1060
+ return safeParse(
1061
+ jsonString,
1062
+ (x) => PackageRuntimePersistence$inboundSchema.parse(JSON.parse(x)),
1063
+ `Failed to parse 'PackageRuntimePersistence' from JSON`,
1064
+ );
1065
+ }
1066
+
1067
+ /** @internal */
1068
+ export const PackageTokenSecret$inboundSchema: z.ZodType<
1069
+ PackageTokenSecret,
1070
+ unknown
1071
+ > = z.object({
1072
+ key: z.string(),
1073
+ name: z.string(),
1074
+ prefix: z.string(),
1075
+ randomLength: z.int(),
1076
+ });
1077
+
1078
+ export function packageTokenSecretFromJSON(
1079
+ jsonString: string,
1080
+ ): SafeParseResult<PackageTokenSecret, SDKValidationError> {
1081
+ return safeParse(
1082
+ jsonString,
1083
+ (x) => PackageTokenSecret$inboundSchema.parse(JSON.parse(x)),
1084
+ `Failed to parse 'PackageTokenSecret' from JSON`,
1085
+ );
1086
+ }
1087
+
1088
+ /** @internal */
1089
+ export const PackageWorkloadReadAccessRule$inboundSchema: z.ZodType<
1090
+ PackageWorkloadReadAccessRule,
1091
+ unknown
1092
+ > = z.object({
1093
+ apiGroup: z.string(),
1094
+ resources: z.array(z.string()),
1095
+ });
1096
+
1097
+ export function packageWorkloadReadAccessRuleFromJSON(
1098
+ jsonString: string,
1099
+ ): SafeParseResult<PackageWorkloadReadAccessRule, SDKValidationError> {
1100
+ return safeParse(
1101
+ jsonString,
1102
+ (x) => PackageWorkloadReadAccessRule$inboundSchema.parse(JSON.parse(x)),
1103
+ `Failed to parse 'PackageWorkloadReadAccessRule' from JSON`,
1104
+ );
1105
+ }
1106
+
1107
+ /** @internal */
1108
+ export const PackageWorkloadReadAccess$inboundSchema: z.ZodType<
1109
+ PackageWorkloadReadAccess,
1110
+ unknown
1111
+ > = z.object({
1112
+ rules: z.array(z.lazy(() => PackageWorkloadReadAccessRule$inboundSchema)),
1113
+ serviceAccountProfile: z.string(),
1114
+ });
1115
+
1116
+ export function packageWorkloadReadAccessFromJSON(
1117
+ jsonString: string,
1118
+ ): SafeParseResult<PackageWorkloadReadAccess, SDKValidationError> {
1119
+ return safeParse(
1120
+ jsonString,
1121
+ (x) => PackageWorkloadReadAccess$inboundSchema.parse(JSON.parse(x)),
1122
+ `Failed to parse 'PackageWorkloadReadAccess' from JSON`,
1123
+ );
1124
+ }
1125
+
1126
+ /** @internal */
1127
+ export const PackageSetupResources$inboundSchema: z.ZodType<
1128
+ PackageSetupResources,
1129
+ unknown
1130
+ > = z.object({
1131
+ tokenSecret: z.lazy(() => PackageTokenSecret$inboundSchema),
1132
+ workloadReadAccess: z.lazy(() => PackageWorkloadReadAccess$inboundSchema),
1133
+ });
1134
+
1135
+ export function packageSetupResourcesFromJSON(
1136
+ jsonString: string,
1137
+ ): SafeParseResult<PackageSetupResources, SDKValidationError> {
1138
+ return safeParse(
1139
+ jsonString,
1140
+ (x) => PackageSetupResources$inboundSchema.parse(JSON.parse(x)),
1141
+ `Failed to parse 'PackageSetupResources' from JSON`,
1142
+ );
1143
+ }
1144
+
888
1145
  /** @internal */
889
1146
  export const ConfigHelm$inboundSchema: z.ZodType<ConfigHelm, unknown> = z
890
1147
  .object({
891
1148
  chartName: z.string(),
892
1149
  description: z.string(),
1150
+ logCollector: z.lazy(() => PackageLogCollector$inboundSchema).optional(),
1151
+ managerUrl: z.string().optional(),
893
1152
  operationPermissions: z.nullable(
894
1153
  z.array(z.lazy(() => OperationPermission$inboundSchema)),
895
1154
  ).optional(),
1155
+ runtimePersistence: z.lazy(() => PackageRuntimePersistence$inboundSchema)
1156
+ .optional(),
1157
+ setupResources: z.lazy(() => PackageSetupResources$inboundSchema)
1158
+ .optional(),
896
1159
  type: z.literal("helm"),
897
1160
  });
898
1161
 
@@ -1160,6 +1423,7 @@ export const OutputsTypeHelm$inboundSchema: z.ZodEnum<typeof OutputsTypeHelm> =
1160
1423
  export const OutputsHelm$inboundSchema: z.ZodType<OutputsHelm, unknown> = z
1161
1424
  .object({
1162
1425
  chart: z.string(),
1426
+ managerUrl: z.string().optional(),
1163
1427
  version: z.string(),
1164
1428
  type: OutputsTypeHelm$inboundSchema,
1165
1429
  });
@@ -1355,3 +1619,8 @@ export function packageFromJSON(
1355
1619
  `Failed to parse 'Package' from JSON`,
1356
1620
  );
1357
1621
  }
1622
+
1623
+ // Preserve published model imports across generator naming changes.
1624
+ export type PackageRule = PermissionsRule;
1625
+ export const PackageRule$inboundSchema = PermissionsRule$inboundSchema;
1626
+ export const packageRuleFromJSON = permissionsRuleFromJSON;
@@ -178,6 +178,67 @@ export type ProjectOperatorImage = {
178
178
  enabled: boolean;
179
179
  };
180
180
 
181
+ /**
182
+ * Kubernetes log collection mechanism.
183
+ */
184
+ export const ProjectMode = {
185
+ PodApi: "podApi",
186
+ NodeAgent: "nodeAgent",
187
+ } as const;
188
+ /**
189
+ * Kubernetes log collection mechanism.
190
+ */
191
+ export type ProjectMode = ClosedEnum<typeof ProjectMode>;
192
+
193
+ /**
194
+ * Default log collection mode in a generated Helm chart.
195
+ */
196
+ export type ProjectLogCollector = {
197
+ /**
198
+ * Whether logs are collected by default; installers can override this value.
199
+ */
200
+ enabled: boolean;
201
+ /**
202
+ * Kubernetes log collection mechanism.
203
+ */
204
+ mode: ProjectMode;
205
+ };
206
+
207
+ export type ProjectTokenSecret = {
208
+ key: string;
209
+ name: string;
210
+ prefix: string;
211
+ randomLength: number;
212
+ };
213
+
214
+ export type ProjectRule = {
215
+ /**
216
+ * Kubernetes API group: empty for core resources, apps, or networking.k8s.io.
217
+ */
218
+ apiGroup: string;
219
+ resources: Array<string>;
220
+ };
221
+
222
+ export type ProjectWorkloadReadAccess = {
223
+ rules: Array<ProjectRule>;
224
+ serviceAccountProfile: string;
225
+ };
226
+
227
+ export type ProjectSetupResources = {
228
+ tokenSecret: ProjectTokenSecret;
229
+ workloadReadAccess: ProjectWorkloadReadAccess;
230
+ };
231
+
232
+ export type ProjectRuntimePersistence = {
233
+ /**
234
+ * Persist operator identity across restarts.
235
+ */
236
+ enabled: boolean;
237
+ existingClaim: string;
238
+ size: string;
239
+ storageClassName: string;
240
+ };
241
+
181
242
  /**
182
243
  * Helm chart package configuration. If null, Helm packages will not be generated.
183
244
  */
@@ -190,10 +251,16 @@ export type ProjectHelm = {
190
251
  * Human-friendly description of the chart
191
252
  */
192
253
  description: string;
254
+ /**
255
+ * Default log collection mode in a generated Helm chart.
256
+ */
257
+ logCollector?: ProjectLogCollector | undefined;
193
258
  /**
194
259
  * Whether Helm chart package generation is enabled
195
260
  */
196
261
  enabled: boolean;
262
+ setupResources?: ProjectSetupResources | undefined;
263
+ runtimePersistence?: ProjectRuntimePersistence | undefined;
197
264
  };
198
265
 
199
266
  /**
@@ -526,12 +593,138 @@ export function projectOperatorImageFromJSON(
526
593
  );
527
594
  }
528
595
 
596
+ /** @internal */
597
+ export const ProjectMode$inboundSchema: z.ZodEnum<typeof ProjectMode> = z.enum(
598
+ ProjectMode,
599
+ );
600
+
601
+ /** @internal */
602
+ export const ProjectLogCollector$inboundSchema: z.ZodType<
603
+ ProjectLogCollector,
604
+ unknown
605
+ > = z.object({
606
+ enabled: z.boolean(),
607
+ mode: ProjectMode$inboundSchema,
608
+ });
609
+
610
+ export function projectLogCollectorFromJSON(
611
+ jsonString: string,
612
+ ): SafeParseResult<ProjectLogCollector, SDKValidationError> {
613
+ return safeParse(
614
+ jsonString,
615
+ (x) => ProjectLogCollector$inboundSchema.parse(JSON.parse(x)),
616
+ `Failed to parse 'ProjectLogCollector' from JSON`,
617
+ );
618
+ }
619
+
620
+ /** @internal */
621
+ export const ProjectTokenSecret$inboundSchema: z.ZodType<
622
+ ProjectTokenSecret,
623
+ unknown
624
+ > = z.object({
625
+ key: z.string(),
626
+ name: z.string(),
627
+ prefix: z.string(),
628
+ randomLength: z.int(),
629
+ });
630
+
631
+ export function projectTokenSecretFromJSON(
632
+ jsonString: string,
633
+ ): SafeParseResult<ProjectTokenSecret, SDKValidationError> {
634
+ return safeParse(
635
+ jsonString,
636
+ (x) => ProjectTokenSecret$inboundSchema.parse(JSON.parse(x)),
637
+ `Failed to parse 'ProjectTokenSecret' from JSON`,
638
+ );
639
+ }
640
+
641
+ /** @internal */
642
+ export const ProjectRule$inboundSchema: z.ZodType<ProjectRule, unknown> = z
643
+ .object({
644
+ apiGroup: z.string(),
645
+ resources: z.array(z.string()),
646
+ });
647
+
648
+ export function projectRuleFromJSON(
649
+ jsonString: string,
650
+ ): SafeParseResult<ProjectRule, SDKValidationError> {
651
+ return safeParse(
652
+ jsonString,
653
+ (x) => ProjectRule$inboundSchema.parse(JSON.parse(x)),
654
+ `Failed to parse 'ProjectRule' from JSON`,
655
+ );
656
+ }
657
+
658
+ /** @internal */
659
+ export const ProjectWorkloadReadAccess$inboundSchema: z.ZodType<
660
+ ProjectWorkloadReadAccess,
661
+ unknown
662
+ > = z.object({
663
+ rules: z.array(z.lazy(() => ProjectRule$inboundSchema)),
664
+ serviceAccountProfile: z.string(),
665
+ });
666
+
667
+ export function projectWorkloadReadAccessFromJSON(
668
+ jsonString: string,
669
+ ): SafeParseResult<ProjectWorkloadReadAccess, SDKValidationError> {
670
+ return safeParse(
671
+ jsonString,
672
+ (x) => ProjectWorkloadReadAccess$inboundSchema.parse(JSON.parse(x)),
673
+ `Failed to parse 'ProjectWorkloadReadAccess' from JSON`,
674
+ );
675
+ }
676
+
677
+ /** @internal */
678
+ export const ProjectSetupResources$inboundSchema: z.ZodType<
679
+ ProjectSetupResources,
680
+ unknown
681
+ > = z.object({
682
+ tokenSecret: z.lazy(() => ProjectTokenSecret$inboundSchema),
683
+ workloadReadAccess: z.lazy(() => ProjectWorkloadReadAccess$inboundSchema),
684
+ });
685
+
686
+ export function projectSetupResourcesFromJSON(
687
+ jsonString: string,
688
+ ): SafeParseResult<ProjectSetupResources, SDKValidationError> {
689
+ return safeParse(
690
+ jsonString,
691
+ (x) => ProjectSetupResources$inboundSchema.parse(JSON.parse(x)),
692
+ `Failed to parse 'ProjectSetupResources' from JSON`,
693
+ );
694
+ }
695
+
696
+ /** @internal */
697
+ export const ProjectRuntimePersistence$inboundSchema: z.ZodType<
698
+ ProjectRuntimePersistence,
699
+ unknown
700
+ > = z.object({
701
+ enabled: z.boolean(),
702
+ existingClaim: z.string(),
703
+ size: z.string(),
704
+ storageClassName: z.string(),
705
+ });
706
+
707
+ export function projectRuntimePersistenceFromJSON(
708
+ jsonString: string,
709
+ ): SafeParseResult<ProjectRuntimePersistence, SDKValidationError> {
710
+ return safeParse(
711
+ jsonString,
712
+ (x) => ProjectRuntimePersistence$inboundSchema.parse(JSON.parse(x)),
713
+ `Failed to parse 'ProjectRuntimePersistence' from JSON`,
714
+ );
715
+ }
716
+
529
717
  /** @internal */
530
718
  export const ProjectHelm$inboundSchema: z.ZodType<ProjectHelm, unknown> = z
531
719
  .object({
532
720
  chartName: z.string(),
533
721
  description: z.string(),
722
+ logCollector: z.lazy(() => ProjectLogCollector$inboundSchema).optional(),
534
723
  enabled: z.boolean(),
724
+ setupResources: z.lazy(() => ProjectSetupResources$inboundSchema)
725
+ .optional(),
726
+ runtimePersistence: z.lazy(() => ProjectRuntimePersistence$inboundSchema)
727
+ .optional(),
535
728
  });
536
729
 
537
730
  export function projectHelmFromJSON(