@alienplatform/platform-api 3.3.25 → 3.3.26
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/esm/funcs/projectsUpdate.js +1 -1
- package/esm/funcs/projectsUpdate.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/deploymentinfo.d.ts +8 -0
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +2 -0
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/operations/configureprojectsource.d.ts +80 -0
- package/esm/models/operations/configureprojectsource.d.ts.map +1 -1
- package/esm/models/operations/configureprojectsource.js +65 -0
- package/esm/models/operations/configureprojectsource.js.map +1 -1
- package/esm/models/operations/createproject.d.ts +197 -0
- package/esm/models/operations/createproject.d.ts.map +1 -1
- package/esm/models/operations/createproject.js +130 -0
- package/esm/models/operations/createproject.js.map +1 -1
- package/esm/models/operations/createprojectfromtemplate.d.ts +197 -0
- package/esm/models/operations/createprojectfromtemplate.d.ts.map +1 -1
- package/esm/models/operations/createprojectfromtemplate.js +131 -0
- package/esm/models/operations/createprojectfromtemplate.js.map +1 -1
- package/esm/models/package.d.ts +152 -4
- package/esm/models/package.d.ts.map +1 -1
- package/esm/models/package.js +74 -5
- package/esm/models/package.js.map +1 -1
- package/esm/models/project.d.ts +80 -0
- package/esm/models/project.d.ts.map +1 -1
- package/esm/models/project.js +67 -0
- package/esm/models/project.js.map +1 -1
- package/esm/models/projectlistitemresponse.d.ts +80 -0
- package/esm/models/projectlistitemresponse.d.ts.map +1 -1
- package/esm/models/projectlistitemresponse.js +65 -0
- package/esm/models/projectlistitemresponse.js.map +1 -1
- package/esm/models/updateproject.d.ts +470 -34
- package/esm/models/updateproject.d.ts.map +1 -1
- package/esm/models/updateproject.js +245 -23
- package/esm/models/updateproject.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/projectsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/deploymentinfo.ts +10 -0
- package/src/models/operations/configureprojectsource.ts +216 -0
- package/src/models/operations/createproject.ts +462 -0
- package/src/models/operations/createprojectfromtemplate.ts +502 -0
- package/src/models/package.ts +284 -15
- package/src/models/project.ts +193 -0
- package/src/models/projectlistitemresponse.ts +217 -0
- package/src/models/updateproject.ts +929 -68
|
@@ -255,6 +255,69 @@ export type ConfigureProjectSourceOperatorImage = {
|
|
|
255
255
|
enabled: boolean;
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Kubernetes log collection mechanism.
|
|
260
|
+
*/
|
|
261
|
+
export const ConfigureProjectSourceModeResponse = {
|
|
262
|
+
PodApi: "podApi",
|
|
263
|
+
NodeAgent: "nodeAgent",
|
|
264
|
+
} as const;
|
|
265
|
+
/**
|
|
266
|
+
* Kubernetes log collection mechanism.
|
|
267
|
+
*/
|
|
268
|
+
export type ConfigureProjectSourceModeResponse = ClosedEnum<
|
|
269
|
+
typeof ConfigureProjectSourceModeResponse
|
|
270
|
+
>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Default log collection mode in a generated Helm chart.
|
|
274
|
+
*/
|
|
275
|
+
export type ConfigureProjectSourceLogCollector = {
|
|
276
|
+
/**
|
|
277
|
+
* Whether logs are collected by default; installers can override this value.
|
|
278
|
+
*/
|
|
279
|
+
enabled: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Kubernetes log collection mechanism.
|
|
282
|
+
*/
|
|
283
|
+
mode: ConfigureProjectSourceModeResponse;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export type ConfigureProjectSourceTokenSecret = {
|
|
287
|
+
key: string;
|
|
288
|
+
name: string;
|
|
289
|
+
prefix: string;
|
|
290
|
+
randomLength: number;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export type ConfigureProjectSourceRule = {
|
|
294
|
+
/**
|
|
295
|
+
* Kubernetes API group: empty for core resources, apps, or networking.k8s.io.
|
|
296
|
+
*/
|
|
297
|
+
apiGroup: string;
|
|
298
|
+
resources: Array<string>;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export type ConfigureProjectSourceWorkloadReadAccess = {
|
|
302
|
+
rules: Array<ConfigureProjectSourceRule>;
|
|
303
|
+
serviceAccountProfile: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export type ConfigureProjectSourceSetupResources = {
|
|
307
|
+
tokenSecret: ConfigureProjectSourceTokenSecret;
|
|
308
|
+
workloadReadAccess: ConfigureProjectSourceWorkloadReadAccess;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export type ConfigureProjectSourceRuntimePersistence = {
|
|
312
|
+
/**
|
|
313
|
+
* Persist operator identity across restarts.
|
|
314
|
+
*/
|
|
315
|
+
enabled: boolean;
|
|
316
|
+
existingClaim: string;
|
|
317
|
+
size: string;
|
|
318
|
+
storageClassName: string;
|
|
319
|
+
};
|
|
320
|
+
|
|
258
321
|
/**
|
|
259
322
|
* Helm chart package configuration. If null, Helm packages will not be generated.
|
|
260
323
|
*/
|
|
@@ -267,10 +330,16 @@ export type ConfigureProjectSourceHelm = {
|
|
|
267
330
|
* Human-friendly description of the chart
|
|
268
331
|
*/
|
|
269
332
|
description: string;
|
|
333
|
+
/**
|
|
334
|
+
* Default log collection mode in a generated Helm chart.
|
|
335
|
+
*/
|
|
336
|
+
logCollector?: ConfigureProjectSourceLogCollector | undefined;
|
|
270
337
|
/**
|
|
271
338
|
* Whether Helm chart package generation is enabled
|
|
272
339
|
*/
|
|
273
340
|
enabled: boolean;
|
|
341
|
+
setupResources?: ConfigureProjectSourceSetupResources | undefined;
|
|
342
|
+
runtimePersistence?: ConfigureProjectSourceRuntimePersistence | undefined;
|
|
274
343
|
};
|
|
275
344
|
|
|
276
345
|
/**
|
|
@@ -843,6 +912,145 @@ export function configureProjectSourceOperatorImageFromJSON(
|
|
|
843
912
|
);
|
|
844
913
|
}
|
|
845
914
|
|
|
915
|
+
/** @internal */
|
|
916
|
+
export const ConfigureProjectSourceModeResponse$inboundSchema: z.ZodEnum<
|
|
917
|
+
typeof ConfigureProjectSourceModeResponse
|
|
918
|
+
> = z.enum(ConfigureProjectSourceModeResponse);
|
|
919
|
+
|
|
920
|
+
/** @internal */
|
|
921
|
+
export const ConfigureProjectSourceLogCollector$inboundSchema: z.ZodType<
|
|
922
|
+
ConfigureProjectSourceLogCollector,
|
|
923
|
+
unknown
|
|
924
|
+
> = z.object({
|
|
925
|
+
enabled: z.boolean(),
|
|
926
|
+
mode: ConfigureProjectSourceModeResponse$inboundSchema,
|
|
927
|
+
});
|
|
928
|
+
|
|
929
|
+
export function configureProjectSourceLogCollectorFromJSON(
|
|
930
|
+
jsonString: string,
|
|
931
|
+
): SafeParseResult<ConfigureProjectSourceLogCollector, SDKValidationError> {
|
|
932
|
+
return safeParse(
|
|
933
|
+
jsonString,
|
|
934
|
+
(x) =>
|
|
935
|
+
ConfigureProjectSourceLogCollector$inboundSchema.parse(JSON.parse(x)),
|
|
936
|
+
`Failed to parse 'ConfigureProjectSourceLogCollector' from JSON`,
|
|
937
|
+
);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/** @internal */
|
|
941
|
+
export const ConfigureProjectSourceTokenSecret$inboundSchema: z.ZodType<
|
|
942
|
+
ConfigureProjectSourceTokenSecret,
|
|
943
|
+
unknown
|
|
944
|
+
> = z.object({
|
|
945
|
+
key: z.string(),
|
|
946
|
+
name: z.string(),
|
|
947
|
+
prefix: z.string(),
|
|
948
|
+
randomLength: z.int(),
|
|
949
|
+
});
|
|
950
|
+
|
|
951
|
+
export function configureProjectSourceTokenSecretFromJSON(
|
|
952
|
+
jsonString: string,
|
|
953
|
+
): SafeParseResult<ConfigureProjectSourceTokenSecret, SDKValidationError> {
|
|
954
|
+
return safeParse(
|
|
955
|
+
jsonString,
|
|
956
|
+
(x) => ConfigureProjectSourceTokenSecret$inboundSchema.parse(JSON.parse(x)),
|
|
957
|
+
`Failed to parse 'ConfigureProjectSourceTokenSecret' from JSON`,
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/** @internal */
|
|
962
|
+
export const ConfigureProjectSourceRule$inboundSchema: z.ZodType<
|
|
963
|
+
ConfigureProjectSourceRule,
|
|
964
|
+
unknown
|
|
965
|
+
> = z.object({
|
|
966
|
+
apiGroup: z.string(),
|
|
967
|
+
resources: z.array(z.string()),
|
|
968
|
+
});
|
|
969
|
+
|
|
970
|
+
export function configureProjectSourceRuleFromJSON(
|
|
971
|
+
jsonString: string,
|
|
972
|
+
): SafeParseResult<ConfigureProjectSourceRule, SDKValidationError> {
|
|
973
|
+
return safeParse(
|
|
974
|
+
jsonString,
|
|
975
|
+
(x) => ConfigureProjectSourceRule$inboundSchema.parse(JSON.parse(x)),
|
|
976
|
+
`Failed to parse 'ConfigureProjectSourceRule' from JSON`,
|
|
977
|
+
);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/** @internal */
|
|
981
|
+
export const ConfigureProjectSourceWorkloadReadAccess$inboundSchema: z.ZodType<
|
|
982
|
+
ConfigureProjectSourceWorkloadReadAccess,
|
|
983
|
+
unknown
|
|
984
|
+
> = z.object({
|
|
985
|
+
rules: z.array(z.lazy(() => ConfigureProjectSourceRule$inboundSchema)),
|
|
986
|
+
serviceAccountProfile: z.string(),
|
|
987
|
+
});
|
|
988
|
+
|
|
989
|
+
export function configureProjectSourceWorkloadReadAccessFromJSON(
|
|
990
|
+
jsonString: string,
|
|
991
|
+
): SafeParseResult<
|
|
992
|
+
ConfigureProjectSourceWorkloadReadAccess,
|
|
993
|
+
SDKValidationError
|
|
994
|
+
> {
|
|
995
|
+
return safeParse(
|
|
996
|
+
jsonString,
|
|
997
|
+
(x) =>
|
|
998
|
+
ConfigureProjectSourceWorkloadReadAccess$inboundSchema.parse(
|
|
999
|
+
JSON.parse(x),
|
|
1000
|
+
),
|
|
1001
|
+
`Failed to parse 'ConfigureProjectSourceWorkloadReadAccess' from JSON`,
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/** @internal */
|
|
1006
|
+
export const ConfigureProjectSourceSetupResources$inboundSchema: z.ZodType<
|
|
1007
|
+
ConfigureProjectSourceSetupResources,
|
|
1008
|
+
unknown
|
|
1009
|
+
> = z.object({
|
|
1010
|
+
tokenSecret: z.lazy(() => ConfigureProjectSourceTokenSecret$inboundSchema),
|
|
1011
|
+
workloadReadAccess: z.lazy(() =>
|
|
1012
|
+
ConfigureProjectSourceWorkloadReadAccess$inboundSchema
|
|
1013
|
+
),
|
|
1014
|
+
});
|
|
1015
|
+
|
|
1016
|
+
export function configureProjectSourceSetupResourcesFromJSON(
|
|
1017
|
+
jsonString: string,
|
|
1018
|
+
): SafeParseResult<ConfigureProjectSourceSetupResources, SDKValidationError> {
|
|
1019
|
+
return safeParse(
|
|
1020
|
+
jsonString,
|
|
1021
|
+
(x) =>
|
|
1022
|
+
ConfigureProjectSourceSetupResources$inboundSchema.parse(JSON.parse(x)),
|
|
1023
|
+
`Failed to parse 'ConfigureProjectSourceSetupResources' from JSON`,
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/** @internal */
|
|
1028
|
+
export const ConfigureProjectSourceRuntimePersistence$inboundSchema: z.ZodType<
|
|
1029
|
+
ConfigureProjectSourceRuntimePersistence,
|
|
1030
|
+
unknown
|
|
1031
|
+
> = z.object({
|
|
1032
|
+
enabled: z.boolean(),
|
|
1033
|
+
existingClaim: z.string(),
|
|
1034
|
+
size: z.string(),
|
|
1035
|
+
storageClassName: z.string(),
|
|
1036
|
+
});
|
|
1037
|
+
|
|
1038
|
+
export function configureProjectSourceRuntimePersistenceFromJSON(
|
|
1039
|
+
jsonString: string,
|
|
1040
|
+
): SafeParseResult<
|
|
1041
|
+
ConfigureProjectSourceRuntimePersistence,
|
|
1042
|
+
SDKValidationError
|
|
1043
|
+
> {
|
|
1044
|
+
return safeParse(
|
|
1045
|
+
jsonString,
|
|
1046
|
+
(x) =>
|
|
1047
|
+
ConfigureProjectSourceRuntimePersistence$inboundSchema.parse(
|
|
1048
|
+
JSON.parse(x),
|
|
1049
|
+
),
|
|
1050
|
+
`Failed to parse 'ConfigureProjectSourceRuntimePersistence' from JSON`,
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
846
1054
|
/** @internal */
|
|
847
1055
|
export const ConfigureProjectSourceHelm$inboundSchema: z.ZodType<
|
|
848
1056
|
ConfigureProjectSourceHelm,
|
|
@@ -850,7 +1058,15 @@ export const ConfigureProjectSourceHelm$inboundSchema: z.ZodType<
|
|
|
850
1058
|
> = z.object({
|
|
851
1059
|
chartName: z.string(),
|
|
852
1060
|
description: z.string(),
|
|
1061
|
+
logCollector: z.lazy(() => ConfigureProjectSourceLogCollector$inboundSchema)
|
|
1062
|
+
.optional(),
|
|
853
1063
|
enabled: z.boolean(),
|
|
1064
|
+
setupResources: z.lazy(() =>
|
|
1065
|
+
ConfigureProjectSourceSetupResources$inboundSchema
|
|
1066
|
+
).optional(),
|
|
1067
|
+
runtimePersistence: z.lazy(() =>
|
|
1068
|
+
ConfigureProjectSourceRuntimePersistence$inboundSchema
|
|
1069
|
+
).optional(),
|
|
854
1070
|
});
|
|
855
1071
|
|
|
856
1072
|
export function configureProjectSourceHelmFromJSON(
|