@platforma-sdk/package-builder-lib 1.2.1 → 1.4.0
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/core/core.cjs +35 -0
- package/dist/core/core.cjs.map +1 -1
- package/dist/core/core.d.ts +32 -6
- package/dist/core/core.d.ts.map +1 -1
- package/dist/core/core.js +35 -0
- package/dist/core/core.js.map +1 -1
- package/dist/core/docker-coverage.cjs +56 -0
- package/dist/core/docker-coverage.cjs.map +1 -0
- package/dist/core/docker-coverage.d.ts +35 -0
- package/dist/core/docker-coverage.d.ts.map +1 -0
- package/dist/core/docker-coverage.js +53 -0
- package/dist/core/docker-coverage.js.map +1 -0
- package/dist/core/envs.d.ts +27 -27
- package/dist/core/envs.d.ts.map +1 -1
- package/dist/core/package-info.cjs +6 -1
- package/dist/core/package-info.cjs.map +1 -1
- package/dist/core/package-info.d.ts +6 -6
- package/dist/core/package-info.d.ts.map +1 -1
- package/dist/core/package-info.js +6 -1
- package/dist/core/package-info.js.map +1 -1
- package/dist/core/push-guard.cjs +17 -0
- package/dist/core/push-guard.cjs.map +1 -0
- package/dist/core/push-guard.d.ts +15 -0
- package/dist/core/push-guard.d.ts.map +1 -0
- package/dist/core/push-guard.js +17 -0
- package/dist/core/push-guard.js.map +1 -0
- package/dist/core/schemas/artifacts.d.ts +236 -71
- package/dist/core/schemas/artifacts.d.ts.map +1 -1
- package/dist/core/schemas/entrypoints.d.ts +357 -10
- package/dist/core/schemas/entrypoints.d.ts.map +1 -1
- package/dist/core/sw-json-render.cjs +18 -0
- package/dist/core/sw-json-render.cjs.map +1 -1
- package/dist/core/sw-json-render.js +18 -0
- package/dist/core/sw-json-render.js.map +1 -1
- package/dist/core/util.d.ts +42 -44
- package/dist/core/util.d.ts.map +1 -1
- package/dist/defaults.d.ts +22 -22
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/core/__tests__/docker-coverage.test.ts +319 -0
- package/src/core/__tests__/publish-docker-images.test.ts +63 -0
- package/src/core/__tests__/push-guard.test.ts +62 -0
- package/src/core/core.ts +51 -0
- package/src/core/docker-coverage.ts +112 -0
- package/src/core/package-info.ts +11 -0
- package/src/core/push-guard.ts +42 -0
- package/src/core/sw-json-render.ts +25 -0
- package/src/index.ts +9 -0
|
@@ -1,47 +1,85 @@
|
|
|
1
|
+
import { ArchType, util_d_exports } from "../util.js";
|
|
1
2
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare namespace artifacts_d_exports {
|
|
4
|
+
export { anyArtifactSchema, anyArtifactType, archiveArtifactTypes, archiveRules, artifactIDSchema, artifactIDString, artifactIndexSchema, artifactIndexType, artifactType, artifactTypes, assetSchema, assetType, binarySchema, binaryType, condaSchema, condaType, crossplatformTypes, dockerArchitectures, dockerAutogenTypes, dockerSchema, dockerType, environmentSchema, environmentType, isBuildable, isCrossPlatform, javaSchema, javaType, pythonSchema, pythonToolsetName, pythonToolsetSchema, pythonToolsets, pythonType, rSchema, rType, registry, registryOrRef, registrySchema, runEnvironmentType, runEnvironmentTypes, withId, withType };
|
|
5
|
+
}
|
|
6
|
+
export declare const artifactTypes: readonly ["asset", "environment", "binary", "java", "python", "R", "docker", "conda"];
|
|
7
|
+
export type artifactType = (typeof artifactTypes)[number];
|
|
8
|
+
export declare const archiveArtifactTypes: artifactType[];
|
|
9
|
+
export declare const crossplatformTypes: artifactType[];
|
|
10
|
+
export declare const dockerAutogenTypes: artifactType[];
|
|
11
|
+
export declare const dockerArchitectures: ArchType[];
|
|
12
|
+
export declare function isBuildable(aType: artifactType): boolean;
|
|
13
|
+
export declare function isCrossPlatform(aType: artifactType): boolean;
|
|
14
|
+
export declare const runEnvironmentTypes: readonly ["java", "python", "R"];
|
|
15
|
+
export type runEnvironmentType = (typeof runEnvironmentTypes)[number];
|
|
16
|
+
export declare const pythonToolsets: readonly ["pip"];
|
|
17
|
+
export type pythonToolsetName = (typeof pythonToolsets)[number];
|
|
18
|
+
export declare const registrySchema: z.ZodObject<{
|
|
7
19
|
name: z.ZodString;
|
|
8
20
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
9
21
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
10
22
|
}, z.core.$strict>;
|
|
11
|
-
type registry = z.infer<typeof registrySchema>;
|
|
12
|
-
declare const
|
|
13
|
-
|
|
23
|
+
export type registry = z.infer<typeof registrySchema>;
|
|
24
|
+
export declare const registryOrRef: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
27
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>]>;
|
|
29
|
+
declare const archiveRulesSchema: z.ZodObject<{
|
|
30
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
33
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>]>>;
|
|
14
35
|
name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
version: z.ZodOptional<z.ZodString>;
|
|
37
|
+
root: z.ZodString;
|
|
38
|
+
roots: z.ZodRecord<z.ZodEnum<{
|
|
39
|
+
"linux-aarch64": "linux-aarch64";
|
|
40
|
+
"linux-x64": "linux-x64";
|
|
41
|
+
"macosx-aarch64": "macosx-aarch64";
|
|
42
|
+
"macosx-x64": "macosx-x64";
|
|
43
|
+
"windows-aarch64": "windows-aarch64";
|
|
44
|
+
"windows-x64": "windows-x64";
|
|
45
|
+
}> & z.core.$partial, z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type archiveRules = z.infer<typeof archiveRulesSchema>;
|
|
48
|
+
export declare const artifactIDSchema: z.ZodString;
|
|
49
|
+
export type artifactIDString = z.infer<typeof artifactIDSchema>;
|
|
50
|
+
export declare const assetSchema: z.ZodObject<{
|
|
15
51
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
16
52
|
name: z.ZodString;
|
|
17
53
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
18
54
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
19
55
|
}, z.core.$strict>]>>;
|
|
56
|
+
name: z.ZodOptional<z.ZodString>;
|
|
57
|
+
version: z.ZodOptional<z.ZodString>;
|
|
20
58
|
root: z.ZodString;
|
|
21
59
|
type: z.ZodLiteral<"asset">;
|
|
22
60
|
}, z.core.$strict>;
|
|
23
|
-
type assetType = z.infer<typeof assetSchema>;
|
|
24
|
-
declare const environmentSchema: z.ZodObject<{
|
|
25
|
-
version: z.ZodOptional<z.ZodString>;
|
|
26
|
-
name: z.ZodOptional<z.ZodString>;
|
|
61
|
+
export type assetType = z.infer<typeof assetSchema>;
|
|
62
|
+
export declare const environmentSchema: z.ZodObject<{
|
|
27
63
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
28
64
|
name: z.ZodString;
|
|
29
65
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
30
66
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
31
67
|
}, z.core.$strict>]>>;
|
|
68
|
+
name: z.ZodOptional<z.ZodString>;
|
|
69
|
+
version: z.ZodOptional<z.ZodString>;
|
|
32
70
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
33
|
-
"linux-x64": "linux-x64";
|
|
34
71
|
"linux-aarch64": "linux-aarch64";
|
|
35
|
-
"
|
|
72
|
+
"linux-x64": "linux-x64";
|
|
36
73
|
"macosx-aarch64": "macosx-aarch64";
|
|
37
|
-
"
|
|
74
|
+
"macosx-x64": "macosx-x64";
|
|
38
75
|
"windows-aarch64": "windows-aarch64";
|
|
76
|
+
"windows-x64": "windows-x64";
|
|
39
77
|
}> & z.core.$partial, z.ZodString>;
|
|
40
78
|
type: z.ZodLiteral<"environment">;
|
|
41
79
|
runtime: z.ZodEnum<{
|
|
80
|
+
R: "R";
|
|
42
81
|
java: "java";
|
|
43
82
|
python: "python";
|
|
44
|
-
R: "R";
|
|
45
83
|
}>;
|
|
46
84
|
"r-version": z.ZodOptional<z.ZodString>;
|
|
47
85
|
"python-version": z.ZodOptional<z.ZodString>;
|
|
@@ -49,47 +87,51 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
49
87
|
envVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
88
|
binDir: z.ZodString;
|
|
51
89
|
}, z.core.$strip>;
|
|
52
|
-
type environmentType = z.infer<typeof environmentSchema>;
|
|
53
|
-
declare const binarySchema: z.ZodObject<{
|
|
54
|
-
version: z.ZodOptional<z.ZodString>;
|
|
55
|
-
name: z.ZodOptional<z.ZodString>;
|
|
90
|
+
export type environmentType = z.infer<typeof environmentSchema>;
|
|
91
|
+
export declare const binarySchema: z.ZodObject<{
|
|
56
92
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
57
93
|
name: z.ZodString;
|
|
58
94
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
59
95
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
60
96
|
}, z.core.$strict>]>>;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
version: z.ZodOptional<z.ZodString>;
|
|
61
99
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
62
|
-
"linux-x64": "linux-x64";
|
|
63
100
|
"linux-aarch64": "linux-aarch64";
|
|
64
|
-
"
|
|
101
|
+
"linux-x64": "linux-x64";
|
|
65
102
|
"macosx-aarch64": "macosx-aarch64";
|
|
66
|
-
"
|
|
103
|
+
"macosx-x64": "macosx-x64";
|
|
67
104
|
"windows-aarch64": "windows-aarch64";
|
|
105
|
+
"windows-x64": "windows-x64";
|
|
68
106
|
}> & z.core.$partial, z.ZodString>;
|
|
69
107
|
type: z.ZodLiteral<"binary">;
|
|
70
108
|
}, z.core.$strip>;
|
|
71
|
-
type binaryType = z.infer<typeof binarySchema>;
|
|
72
|
-
declare const javaSchema: z.ZodObject<{
|
|
73
|
-
version: z.ZodOptional<z.ZodString>;
|
|
74
|
-
name: z.ZodOptional<z.ZodString>;
|
|
109
|
+
export type binaryType = z.infer<typeof binarySchema>;
|
|
110
|
+
export declare const javaSchema: z.ZodObject<{
|
|
75
111
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
76
112
|
name: z.ZodString;
|
|
77
113
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
78
114
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
79
115
|
}, z.core.$strict>]>>;
|
|
116
|
+
name: z.ZodOptional<z.ZodString>;
|
|
117
|
+
version: z.ZodOptional<z.ZodString>;
|
|
80
118
|
root: z.ZodString;
|
|
81
119
|
type: z.ZodLiteral<"java">;
|
|
82
120
|
environment: z.ZodString;
|
|
83
121
|
}, z.core.$strip>;
|
|
84
|
-
type javaType = z.infer<typeof javaSchema>;
|
|
85
|
-
declare const
|
|
86
|
-
|
|
87
|
-
|
|
122
|
+
export type javaType = z.infer<typeof javaSchema>;
|
|
123
|
+
export declare const pythonToolsetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
+
toolset: z.ZodLiteral<"pip">;
|
|
125
|
+
requirements: z.ZodString;
|
|
126
|
+
}, z.core.$strict>]>;
|
|
127
|
+
export declare const pythonSchema: z.ZodObject<{
|
|
88
128
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
89
129
|
name: z.ZodString;
|
|
90
130
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
91
131
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
92
132
|
}, z.core.$strict>]>>;
|
|
133
|
+
name: z.ZodOptional<z.ZodString>;
|
|
134
|
+
version: z.ZodOptional<z.ZodString>;
|
|
93
135
|
root: z.ZodString;
|
|
94
136
|
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
95
137
|
pkg: z.ZodDefault<z.ZodString>;
|
|
@@ -100,35 +142,35 @@ declare const pythonSchema: z.ZodObject<{
|
|
|
100
142
|
requirements: z.ZodString;
|
|
101
143
|
}, z.core.$strict>]>>;
|
|
102
144
|
}, z.core.$strip>;
|
|
103
|
-
type pythonType = z.infer<typeof pythonSchema>;
|
|
104
|
-
declare const rSchema: z.ZodObject<{
|
|
105
|
-
version: z.ZodOptional<z.ZodString>;
|
|
106
|
-
name: z.ZodOptional<z.ZodString>;
|
|
145
|
+
export type pythonType = z.infer<typeof pythonSchema>;
|
|
146
|
+
export declare const rSchema: z.ZodObject<{
|
|
107
147
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
108
148
|
name: z.ZodString;
|
|
109
149
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
110
150
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
111
151
|
}, z.core.$strict>]>>;
|
|
152
|
+
name: z.ZodOptional<z.ZodString>;
|
|
153
|
+
version: z.ZodOptional<z.ZodString>;
|
|
112
154
|
root: z.ZodString;
|
|
113
155
|
type: z.ZodLiteral<"R">;
|
|
114
156
|
environment: z.ZodString;
|
|
115
157
|
}, z.core.$strip>;
|
|
116
|
-
type rType = z.infer<typeof rSchema>;
|
|
117
|
-
declare const condaSchema: z.ZodObject<{
|
|
118
|
-
version: z.ZodOptional<z.ZodString>;
|
|
119
|
-
name: z.ZodOptional<z.ZodString>;
|
|
158
|
+
export type rType = z.infer<typeof rSchema>;
|
|
159
|
+
export declare const condaSchema: z.ZodObject<{
|
|
120
160
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
121
161
|
name: z.ZodString;
|
|
122
162
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
123
163
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
124
164
|
}, z.core.$strict>]>>;
|
|
165
|
+
name: z.ZodOptional<z.ZodString>;
|
|
166
|
+
version: z.ZodOptional<z.ZodString>;
|
|
125
167
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
126
|
-
"linux-x64": "linux-x64";
|
|
127
168
|
"linux-aarch64": "linux-aarch64";
|
|
128
|
-
"
|
|
169
|
+
"linux-x64": "linux-x64";
|
|
129
170
|
"macosx-aarch64": "macosx-aarch64";
|
|
130
|
-
"
|
|
171
|
+
"macosx-x64": "macosx-x64";
|
|
131
172
|
"windows-aarch64": "windows-aarch64";
|
|
173
|
+
"windows-x64": "windows-x64";
|
|
132
174
|
}> & z.core.$partial, z.ZodString>;
|
|
133
175
|
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
134
176
|
pkg: z.ZodDefault<z.ZodString>;
|
|
@@ -137,46 +179,46 @@ declare const condaSchema: z.ZodObject<{
|
|
|
137
179
|
"conda-root-dir": z.ZodDefault<z.ZodString>;
|
|
138
180
|
spec: z.ZodDefault<z.ZodString>;
|
|
139
181
|
}, z.core.$strip>;
|
|
140
|
-
type condaType = z.infer<typeof condaSchema>;
|
|
141
|
-
declare const dockerSchema: z.ZodObject<{
|
|
182
|
+
export type condaType = z.infer<typeof condaSchema>;
|
|
183
|
+
export declare const dockerSchema: z.ZodObject<{
|
|
142
184
|
type: z.ZodLiteral<"docker">;
|
|
143
185
|
registry: z.ZodDefault<z.ZodString>;
|
|
144
186
|
context: z.ZodString;
|
|
145
187
|
dockerfile: z.ZodDefault<z.ZodString>;
|
|
146
188
|
pkg: z.ZodDefault<z.ZodString>;
|
|
147
189
|
}, z.core.$strip>;
|
|
148
|
-
type dockerType = z.infer<typeof dockerSchema>;
|
|
149
|
-
declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
-
version: z.ZodOptional<z.ZodString>;
|
|
151
|
-
name: z.ZodOptional<z.ZodString>;
|
|
190
|
+
export type dockerType = z.infer<typeof dockerSchema>;
|
|
191
|
+
export declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
192
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
153
193
|
name: z.ZodString;
|
|
154
194
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
155
195
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
156
196
|
}, z.core.$strict>]>>;
|
|
197
|
+
name: z.ZodOptional<z.ZodString>;
|
|
198
|
+
version: z.ZodOptional<z.ZodString>;
|
|
157
199
|
root: z.ZodString;
|
|
158
200
|
type: z.ZodLiteral<"asset">;
|
|
159
201
|
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
-
version: z.ZodOptional<z.ZodString>;
|
|
161
|
-
name: z.ZodOptional<z.ZodString>;
|
|
162
202
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
163
203
|
name: z.ZodString;
|
|
164
204
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
165
205
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
166
206
|
}, z.core.$strict>]>>;
|
|
207
|
+
name: z.ZodOptional<z.ZodString>;
|
|
208
|
+
version: z.ZodOptional<z.ZodString>;
|
|
167
209
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
168
|
-
"linux-x64": "linux-x64";
|
|
169
210
|
"linux-aarch64": "linux-aarch64";
|
|
170
|
-
"
|
|
211
|
+
"linux-x64": "linux-x64";
|
|
171
212
|
"macosx-aarch64": "macosx-aarch64";
|
|
172
|
-
"
|
|
213
|
+
"macosx-x64": "macosx-x64";
|
|
173
214
|
"windows-aarch64": "windows-aarch64";
|
|
215
|
+
"windows-x64": "windows-x64";
|
|
174
216
|
}> & z.core.$partial, z.ZodString>;
|
|
175
217
|
type: z.ZodLiteral<"environment">;
|
|
176
218
|
runtime: z.ZodEnum<{
|
|
219
|
+
R: "R";
|
|
177
220
|
java: "java";
|
|
178
221
|
python: "python";
|
|
179
|
-
R: "R";
|
|
180
222
|
}>;
|
|
181
223
|
"r-version": z.ZodOptional<z.ZodString>;
|
|
182
224
|
"python-version": z.ZodOptional<z.ZodString>;
|
|
@@ -184,41 +226,41 @@ declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
184
226
|
envVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
227
|
binDir: z.ZodString;
|
|
186
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
-
version: z.ZodOptional<z.ZodString>;
|
|
188
|
-
name: z.ZodOptional<z.ZodString>;
|
|
189
229
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
190
230
|
name: z.ZodString;
|
|
191
231
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
192
232
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
193
233
|
}, z.core.$strict>]>>;
|
|
234
|
+
name: z.ZodOptional<z.ZodString>;
|
|
235
|
+
version: z.ZodOptional<z.ZodString>;
|
|
194
236
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
195
|
-
"linux-x64": "linux-x64";
|
|
196
237
|
"linux-aarch64": "linux-aarch64";
|
|
197
|
-
"
|
|
238
|
+
"linux-x64": "linux-x64";
|
|
198
239
|
"macosx-aarch64": "macosx-aarch64";
|
|
199
|
-
"
|
|
240
|
+
"macosx-x64": "macosx-x64";
|
|
200
241
|
"windows-aarch64": "windows-aarch64";
|
|
242
|
+
"windows-x64": "windows-x64";
|
|
201
243
|
}> & z.core.$partial, z.ZodString>;
|
|
202
244
|
type: z.ZodLiteral<"binary">;
|
|
203
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
-
version: z.ZodOptional<z.ZodString>;
|
|
205
|
-
name: z.ZodOptional<z.ZodString>;
|
|
206
246
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
207
247
|
name: z.ZodString;
|
|
208
248
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
209
249
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
210
250
|
}, z.core.$strict>]>>;
|
|
251
|
+
name: z.ZodOptional<z.ZodString>;
|
|
252
|
+
version: z.ZodOptional<z.ZodString>;
|
|
211
253
|
root: z.ZodString;
|
|
212
254
|
type: z.ZodLiteral<"java">;
|
|
213
255
|
environment: z.ZodString;
|
|
214
256
|
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
-
version: z.ZodOptional<z.ZodString>;
|
|
216
|
-
name: z.ZodOptional<z.ZodString>;
|
|
217
257
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
218
258
|
name: z.ZodString;
|
|
219
259
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
220
260
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
221
261
|
}, z.core.$strict>]>>;
|
|
262
|
+
name: z.ZodOptional<z.ZodString>;
|
|
263
|
+
version: z.ZodOptional<z.ZodString>;
|
|
222
264
|
root: z.ZodString;
|
|
223
265
|
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
224
266
|
pkg: z.ZodDefault<z.ZodString>;
|
|
@@ -229,31 +271,154 @@ declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
229
271
|
requirements: z.ZodString;
|
|
230
272
|
}, z.core.$strict>]>>;
|
|
231
273
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
-
version: z.ZodOptional<z.ZodString>;
|
|
233
|
-
name: z.ZodOptional<z.ZodString>;
|
|
234
274
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
235
275
|
name: z.ZodString;
|
|
236
276
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
237
277
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
238
278
|
}, z.core.$strict>]>>;
|
|
279
|
+
name: z.ZodOptional<z.ZodString>;
|
|
280
|
+
version: z.ZodOptional<z.ZodString>;
|
|
239
281
|
root: z.ZodString;
|
|
240
282
|
type: z.ZodLiteral<"R">;
|
|
241
283
|
environment: z.ZodString;
|
|
242
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
286
|
+
name: z.ZodString;
|
|
287
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
288
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>]>>;
|
|
290
|
+
name: z.ZodOptional<z.ZodString>;
|
|
243
291
|
version: z.ZodOptional<z.ZodString>;
|
|
292
|
+
roots: z.ZodRecord<z.ZodEnum<{
|
|
293
|
+
"linux-aarch64": "linux-aarch64";
|
|
294
|
+
"linux-x64": "linux-x64";
|
|
295
|
+
"macosx-aarch64": "macosx-aarch64";
|
|
296
|
+
"macosx-x64": "macosx-x64";
|
|
297
|
+
"windows-aarch64": "windows-aarch64";
|
|
298
|
+
"windows-x64": "windows-x64";
|
|
299
|
+
}> & z.core.$partial, z.ZodString>;
|
|
300
|
+
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
301
|
+
pkg: z.ZodDefault<z.ZodString>;
|
|
302
|
+
type: z.ZodLiteral<"conda">;
|
|
303
|
+
"micromamba-version": z.ZodDefault<z.ZodString>;
|
|
304
|
+
"conda-root-dir": z.ZodDefault<z.ZodString>;
|
|
305
|
+
spec: z.ZodDefault<z.ZodString>;
|
|
306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
307
|
+
type: z.ZodLiteral<"docker">;
|
|
308
|
+
registry: z.ZodDefault<z.ZodString>;
|
|
309
|
+
context: z.ZodString;
|
|
310
|
+
dockerfile: z.ZodDefault<z.ZodString>;
|
|
311
|
+
pkg: z.ZodDefault<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>]>;
|
|
313
|
+
export type anyArtifactType = z.infer<typeof anyArtifactSchema>;
|
|
314
|
+
export declare const artifactIndexSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
318
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.core.$strict>]>>;
|
|
244
320
|
name: z.ZodOptional<z.ZodString>;
|
|
321
|
+
version: z.ZodOptional<z.ZodString>;
|
|
322
|
+
root: z.ZodString;
|
|
323
|
+
type: z.ZodLiteral<"asset">;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
325
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
246
326
|
name: z.ZodString;
|
|
247
327
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
248
328
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
249
329
|
}, z.core.$strict>]>>;
|
|
330
|
+
name: z.ZodOptional<z.ZodString>;
|
|
331
|
+
version: z.ZodOptional<z.ZodString>;
|
|
250
332
|
roots: z.ZodRecord<z.ZodEnum<{
|
|
251
|
-
"linux-x64": "linux-x64";
|
|
252
333
|
"linux-aarch64": "linux-aarch64";
|
|
334
|
+
"linux-x64": "linux-x64";
|
|
335
|
+
"macosx-aarch64": "macosx-aarch64";
|
|
253
336
|
"macosx-x64": "macosx-x64";
|
|
337
|
+
"windows-aarch64": "windows-aarch64";
|
|
338
|
+
"windows-x64": "windows-x64";
|
|
339
|
+
}> & z.core.$partial, z.ZodString>;
|
|
340
|
+
type: z.ZodLiteral<"environment">;
|
|
341
|
+
runtime: z.ZodEnum<{
|
|
342
|
+
R: "R";
|
|
343
|
+
java: "java";
|
|
344
|
+
python: "python";
|
|
345
|
+
}>;
|
|
346
|
+
"r-version": z.ZodOptional<z.ZodString>;
|
|
347
|
+
"python-version": z.ZodOptional<z.ZodString>;
|
|
348
|
+
"java-version": z.ZodOptional<z.ZodString>;
|
|
349
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
350
|
+
binDir: z.ZodString;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
355
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strict>]>>;
|
|
357
|
+
name: z.ZodOptional<z.ZodString>;
|
|
358
|
+
version: z.ZodOptional<z.ZodString>;
|
|
359
|
+
roots: z.ZodRecord<z.ZodEnum<{
|
|
360
|
+
"linux-aarch64": "linux-aarch64";
|
|
361
|
+
"linux-x64": "linux-x64";
|
|
254
362
|
"macosx-aarch64": "macosx-aarch64";
|
|
363
|
+
"macosx-x64": "macosx-x64";
|
|
364
|
+
"windows-aarch64": "windows-aarch64";
|
|
255
365
|
"windows-x64": "windows-x64";
|
|
366
|
+
}> & z.core.$partial, z.ZodString>;
|
|
367
|
+
type: z.ZodLiteral<"binary">;
|
|
368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
369
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
372
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strict>]>>;
|
|
374
|
+
name: z.ZodOptional<z.ZodString>;
|
|
375
|
+
version: z.ZodOptional<z.ZodString>;
|
|
376
|
+
root: z.ZodString;
|
|
377
|
+
type: z.ZodLiteral<"java">;
|
|
378
|
+
environment: z.ZodString;
|
|
379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
380
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
381
|
+
name: z.ZodString;
|
|
382
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
383
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strict>]>>;
|
|
385
|
+
name: z.ZodOptional<z.ZodString>;
|
|
386
|
+
version: z.ZodOptional<z.ZodString>;
|
|
387
|
+
root: z.ZodString;
|
|
388
|
+
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
389
|
+
pkg: z.ZodDefault<z.ZodString>;
|
|
390
|
+
type: z.ZodLiteral<"python">;
|
|
391
|
+
environment: z.ZodString;
|
|
392
|
+
dependencies: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
393
|
+
toolset: z.ZodLiteral<"pip">;
|
|
394
|
+
requirements: z.ZodString;
|
|
395
|
+
}, z.core.$strict>]>>;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
400
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strict>]>>;
|
|
402
|
+
name: z.ZodOptional<z.ZodString>;
|
|
403
|
+
version: z.ZodOptional<z.ZodString>;
|
|
404
|
+
root: z.ZodString;
|
|
405
|
+
type: z.ZodLiteral<"R">;
|
|
406
|
+
environment: z.ZodString;
|
|
407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
+
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
409
|
+
name: z.ZodString;
|
|
410
|
+
downloadURL: z.ZodOptional<z.ZodString>;
|
|
411
|
+
storageURL: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$strict>]>>;
|
|
413
|
+
name: z.ZodOptional<z.ZodString>;
|
|
414
|
+
version: z.ZodOptional<z.ZodString>;
|
|
415
|
+
roots: z.ZodRecord<z.ZodEnum<{
|
|
416
|
+
"linux-aarch64": "linux-aarch64";
|
|
417
|
+
"linux-x64": "linux-x64";
|
|
418
|
+
"macosx-aarch64": "macosx-aarch64";
|
|
419
|
+
"macosx-x64": "macosx-x64";
|
|
256
420
|
"windows-aarch64": "windows-aarch64";
|
|
421
|
+
"windows-x64": "windows-x64";
|
|
257
422
|
}> & z.core.$partial, z.ZodString>;
|
|
258
423
|
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
259
424
|
pkg: z.ZodDefault<z.ZodString>;
|
|
@@ -267,14 +432,14 @@ declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
267
432
|
context: z.ZodString;
|
|
268
433
|
dockerfile: z.ZodDefault<z.ZodString>;
|
|
269
434
|
pkg: z.ZodDefault<z.ZodString>;
|
|
270
|
-
}, z.core.$strip>]
|
|
271
|
-
type
|
|
272
|
-
type withType<Typ, Orig> = Orig & {
|
|
435
|
+
}, z.core.$strip>]>>;
|
|
436
|
+
export type artifactIndexType = z.infer<typeof artifactIndexSchema>;
|
|
437
|
+
export type withType<Typ, Orig> = Orig & {
|
|
273
438
|
type: Typ;
|
|
274
439
|
};
|
|
275
|
-
type withId<T> = T & {
|
|
440
|
+
export type withId<T> = T & {
|
|
276
441
|
id: string;
|
|
277
442
|
};
|
|
278
443
|
//#endregion
|
|
279
|
-
export {
|
|
444
|
+
export { artifacts_d_exports };
|
|
280
445
|
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","names":[],"sources":["../../../src/core/schemas/artifacts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","names":[],"sources":["../../../src/core/schemas/artifacts.ts"],"mappings":";;;;;qBAKa;YAUD,uBAAuB;qBAGtB,sBAAsB;qBAStB,oBAAoB;qBACpB,oBAAoB;qBACpB,qBAAqB;wBAElB,YAAY,OAAO;wBAKnB,gBAAgB,OAAO;qBAI1B;YACD,6BAA6B;qBAE5B;YACD,4BAA4B;qBAE3B,gBAAc,EAAA;;;;;YAKf,WAAW,EAAE,aAAa;qBAEzB,eAAa,EAAA,mBAAA,EAAA,WAAA,EAAA;;;;;cAIpB,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;YA0CZ,eAAe,EAAE,aAAa;qBAmB7B,kBAAgB,EAAA;YAQjB,mBAAmB,EAAE,aAAa;qBAEjC,aAAW,EAAA;;;;;;;;;;;YAIZ,YAAY,EAAE,aAAa;qBAE1B,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA6BlB,kBAAkB,EAAE,aAAa;qBAEhC,cAAY,EAAA;;;;;;;;;;;;;;;;;;YAGb,aAAa,EAAE,aAAa;qBAE3B,YAAU,EAAA;;;;;;;;;;;;YAIX,WAAW,EAAE,aAAa;qBAOzB,qBAAmB,EAAA,uBAAA,EAAA;;;;qBAEnB,cAAY,EAAA;;;;;;;;;;;;;;;;;;YASb,aAAa,EAAE,aAAa;qBAE3B,SAAO,EAAA;;;;;;;;;;;;YAIR,QAAQ,EAAE,aAAa;qBAEtB,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;YAoBZ,YAAY,EAAE,aAAa;qBAE1B,cAAY,EAAA;;;;;;;YAqCb,aAAa,EAAE,aAAa;qBAE3B,mBAAiB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAWlB,kBAAkB,EAAE,aAAa;qBAEhC,qBAAmB,EAAA,UAAA,EAAA,WAAA,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACpB,oBAAoB,EAAE,aAAa;YAEnC,SAAS,KAAK,QAAQ;EAAS,MAAM;;YACrC,OAAO,KAAK;EAAM"}
|