@platforma-sdk/block-tools 2.13.0 → 2.14.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/cli.js +12 -12
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +727 -648
- package/dist/cli.mjs.map +1 -1
- package/dist/cmd/build-kind-manifest.d.ts +7 -0
- package/dist/config-CtXMWNgm.js +3 -0
- package/dist/config-CtXMWNgm.js.map +1 -0
- package/dist/{config-CiC347sB.mjs → config-Dx45aFJ_.mjs} +792 -456
- package/dist/config-Dx45aFJ_.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +15 -15
- package/dist/structure/engine/api.d.ts +1 -1
- package/dist/structure/rules/kind-package-json.d.ts +3 -0
- package/dist/structure/rules/kind.d.ts +1 -0
- package/dist/v2/build_kind_dist.d.ts +25 -0
- package/dist/v2/index.d.ts +4 -0
- package/dist/v2/kind/resolve-refs.d.ts +63 -0
- package/dist/v2/kind/version-match.d.ts +23 -0
- package/dist/v2/model/block_description.d.ts +8 -1
- package/dist/v2/publish-block.d.ts +23 -0
- package/dist/v2/registry/index.d.ts +2 -0
- package/dist/v2/registry/kind_resolver.d.ts +121 -0
- package/dist/v2/registry/registry.d.ts +23 -0
- package/dist/v2/registry/registry_reader.d.ts +34 -1
- package/dist/v2/registry/schema_kinds.d.ts +632 -0
- package/dist/v2/registry/schema_public.d.ts +72 -0
- package/package.json +10 -10
- package/src/cli.test.ts +2 -1
- package/src/cli.ts +2 -0
- package/src/cmd/build-kind-manifest.ts +41 -0
- package/src/cmd/publish.ts +10 -1
- package/src/structure/__tests__/model-package-json.snapshot.test.ts +1 -0
- package/src/structure/engine/api.ts +1 -1
- package/src/structure/engine/ctx.ts +1 -0
- package/src/structure/engine/discovery.ts +16 -2
- package/src/structure/rules/block-package-json.ts +18 -0
- package/src/structure/rules/kind-package-json.ts +117 -0
- package/src/structure/rules/kind.ts +29 -0
- package/src/structure/rules/model-package-json.ts +8 -0
- package/src/structure/rules/model.ts +15 -13
- package/src/structure/rules/shared/pascal-case.ts +1 -1
- package/src/structure/structure-definition.ts +2 -0
- package/src/structure/templates/static/kind/.oxfmtrc.json +4 -0
- package/src/structure/templates/static/kind/.oxlintrc.json +3 -0
- package/src/structure/templates/static/kind/src/index.ts +49 -0
- package/src/structure/templates/static/kind/tsconfig.json +10 -0
- package/src/structure/templates/text/model/src/index.tpl.ts +18 -0
- package/src/v2/build_dist.ts +35 -0
- package/src/v2/build_kind_dist.ts +104 -0
- package/src/v2/from_pack_v2.test.ts +2 -2
- package/src/v2/index.ts +4 -0
- package/src/v2/kind/resolve-refs.ts +150 -0
- package/src/v2/kind/version-match.test.ts +60 -0
- package/src/v2/kind/version-match.ts +55 -0
- package/src/v2/model/block_description.ts +15 -4
- package/src/v2/publish-block.ts +60 -0
- package/src/v2/registry/index.ts +2 -0
- package/src/v2/registry/kind_resolver.test.ts +123 -0
- package/src/v2/registry/kind_resolver.ts +190 -0
- package/src/v2/registry/registry.test.ts +247 -1
- package/src/v2/registry/registry.ts +227 -4
- package/src/v2/registry/registry_reader.ts +68 -0
- package/src/v2/registry/schema_kinds.test.ts +65 -0
- package/src/v2/registry/schema_kinds.ts +169 -0
- package/dist/config-BmJWc8sR.js +0 -3
- package/dist/config-BmJWc8sR.js.map +0 -1
- package/dist/config-CiC347sB.mjs.map +0 -1
- package/src/structure/templates/static/model/src/index.ts +0 -13
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Registry tree for block *kinds*, a sibling of {@link MainPrefix} (`v2/`).
|
|
4
|
+
*
|
|
5
|
+
* Layout mirrors the package tree one level down:
|
|
6
|
+
* kinds/{org}/{name}/{version}/manifest.json — immutable kind content (publishKind)
|
|
7
|
+
* kinds/{org}/{name}/{version}/kind.d.ts — kind artifacts
|
|
8
|
+
* kinds/{org}/{name}/overview.json — projection over implementing blocks (reconciler)
|
|
9
|
+
*/
|
|
10
|
+
export declare const KindsPrefix = "kinds/";
|
|
11
|
+
export declare const KindOverviewFileName = "overview.json";
|
|
12
|
+
export declare const KindManifestFileName = "manifest.json";
|
|
13
|
+
/** Location of a kind inside the `kinds/` tree, split into path segments. */
|
|
14
|
+
export interface KindPathLocation {
|
|
15
|
+
org: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* `kinds/{org}/{name}/{version}` — the immutable per-version content folder,
|
|
20
|
+
* counterpart of {@link packageContentPrefix}.
|
|
21
|
+
*
|
|
22
|
+
* The `{org, name}` segments are DERIVED from the kind's full npm package name
|
|
23
|
+
* via {@link npmNameToKindPath} — the SAME helper {@link kindOverviewPath} and
|
|
24
|
+
* the reconciler use. This is what guarantees a kind's per-version content and
|
|
25
|
+
* its `overview.json` projection land under one identical `{org}/{name}` folder.
|
|
26
|
+
*/
|
|
27
|
+
export declare function kindContentPrefix(npmName: string, version: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* `kinds/{org}/{name}/overview.json` — the reconciler-maintained projection of
|
|
30
|
+
* every block that implements this kind, bucketed by kind version.
|
|
31
|
+
*/
|
|
32
|
+
export declare function kindOverviewPath(loc: KindPathLocation): string;
|
|
33
|
+
/**
|
|
34
|
+
* Matches a `kinds/`-relative overview path (`{org}/{name}/overview.json`).
|
|
35
|
+
* Used by the force-mode orphan seed to enumerate every existing overview.
|
|
36
|
+
*/
|
|
37
|
+
export declare const KindOverviewPathPattern: RegExp;
|
|
38
|
+
/**
|
|
39
|
+
* Kind npm package name → `{org, name}` path segments.
|
|
40
|
+
*
|
|
41
|
+
* DELEGATES to {@link parsePackageName} — the canonical block npm-name parser
|
|
42
|
+
* (`source_package.ts`) — so kind registry paths (`kinds/{org}/{name}/…`) mirror
|
|
43
|
+
* block paths (`v2/{org}/{name}/…`) byte-for-byte and cannot drift. That parser
|
|
44
|
+
* drops the npm scope (`@platforma-open/`), takes the 1st dotted segment as the
|
|
45
|
+
* organization and the 2nd as the name, and ignores any trailing segment (the
|
|
46
|
+
* kind's `.kind` marker simply is not matched):
|
|
47
|
+
* - `@platforma-open/milaboratories.mixcr-clonotyping.kind` → `{ org: "milaboratories", name: "mixcr-clonotyping" }`
|
|
48
|
+
* - `milaboratories.mixcr-clonotyping.kind` → `{ org: "milaboratories", name: "mixcr-clonotyping" }`
|
|
49
|
+
*
|
|
50
|
+
* This helper is DISTINCT from `parseKindRef` (the `{name}@{version}` reference
|
|
51
|
+
* codec in `block_kind_ref.ts`): `parseKindRef` splits a reference into
|
|
52
|
+
* name/version; `npmNameToKindPath` splits the *name* half into path segments.
|
|
53
|
+
*/
|
|
54
|
+
export declare function npmNameToKindPath(npmName: string): KindPathLocation;
|
|
55
|
+
/**
|
|
56
|
+
* On-wire kind identity, mirroring the `kind` block written by the build side
|
|
57
|
+
* (`build_kind_dist.ts` `KindManifestIdentity`).
|
|
58
|
+
*
|
|
59
|
+
* `name` is the FULL npm package name of the kind (e.g.
|
|
60
|
+
* `@platforma-open/milaboratories.mixcr-clonotyping.kind`). There is no separate
|
|
61
|
+
* `organization` field — the S3 `{org, name}` path is always derived from this
|
|
62
|
+
* npm name via {@link npmNameToKindPath}, so the content publisher and the
|
|
63
|
+
* overview reconciler resolve to the same folder.
|
|
64
|
+
*/
|
|
65
|
+
export declare const KindManifestIdentity: z.ZodObject<{
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
version: z.ZodString;
|
|
68
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
version: z.ZodString;
|
|
71
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
version: z.ZodString;
|
|
74
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
75
|
+
export type KindManifestIdentity = z.infer<typeof KindManifestIdentity>;
|
|
76
|
+
export declare const KindManifestFileInfo: z.ZodObject<{
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
size: z.ZodNumber;
|
|
79
|
+
sha256: z.ZodString;
|
|
80
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
size: z.ZodNumber;
|
|
83
|
+
sha256: z.ZodString;
|
|
84
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
size: z.ZodNumber;
|
|
87
|
+
sha256: z.ZodString;
|
|
88
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
89
|
+
export type KindManifestFileInfo = z.infer<typeof KindManifestFileInfo>;
|
|
90
|
+
/**
|
|
91
|
+
* Kind content manifest, as produced by `build_kind_dist.ts` and stored (LAST,
|
|
92
|
+
* as the commit marker) at `kinds/{org}/{name}/{version}/manifest.json`.
|
|
93
|
+
*
|
|
94
|
+
* `sourceHash` is the sorted-`src/`-tree digest computed at build time (NOT the
|
|
95
|
+
* per-file `calculateSha256`); it is the comparand for the publish-time
|
|
96
|
+
* source-hash immutability guard. `firstUploadTimestamp` is stamped by
|
|
97
|
+
* `publishKind` when the manifest is first written to the registry.
|
|
98
|
+
*/
|
|
99
|
+
export declare const KindManifest: z.ZodObject<{
|
|
100
|
+
schema: z.ZodLiteral<"v1">;
|
|
101
|
+
kind: z.ZodObject<{
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
version: z.ZodString;
|
|
104
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
version: z.ZodString;
|
|
107
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
version: z.ZodString;
|
|
110
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
111
|
+
sourceHash: z.ZodString;
|
|
112
|
+
files: z.ZodArray<z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
size: z.ZodNumber;
|
|
115
|
+
sha256: z.ZodString;
|
|
116
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
size: z.ZodNumber;
|
|
119
|
+
sha256: z.ZodString;
|
|
120
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
size: z.ZodNumber;
|
|
123
|
+
sha256: z.ZodString;
|
|
124
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
125
|
+
/** Build-time timestamp carried from `build_kind_dist.ts`. */
|
|
126
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
/** Stamped by `publishKind` on first upload to the registry. */
|
|
128
|
+
firstUploadTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
130
|
+
schema: z.ZodLiteral<"v1">;
|
|
131
|
+
kind: z.ZodObject<{
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
version: z.ZodString;
|
|
134
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
version: z.ZodString;
|
|
137
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
version: z.ZodString;
|
|
140
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
141
|
+
sourceHash: z.ZodString;
|
|
142
|
+
files: z.ZodArray<z.ZodObject<{
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
size: z.ZodNumber;
|
|
145
|
+
sha256: z.ZodString;
|
|
146
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
size: z.ZodNumber;
|
|
149
|
+
sha256: z.ZodString;
|
|
150
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
size: z.ZodNumber;
|
|
153
|
+
sha256: z.ZodString;
|
|
154
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
155
|
+
/** Build-time timestamp carried from `build_kind_dist.ts`. */
|
|
156
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
/** Stamped by `publishKind` on first upload to the registry. */
|
|
158
|
+
firstUploadTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
160
|
+
schema: z.ZodLiteral<"v1">;
|
|
161
|
+
kind: z.ZodObject<{
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
version: z.ZodString;
|
|
164
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
version: z.ZodString;
|
|
167
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
version: z.ZodString;
|
|
170
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
171
|
+
sourceHash: z.ZodString;
|
|
172
|
+
files: z.ZodArray<z.ZodObject<{
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
size: z.ZodNumber;
|
|
175
|
+
sha256: z.ZodString;
|
|
176
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
177
|
+
name: z.ZodString;
|
|
178
|
+
size: z.ZodNumber;
|
|
179
|
+
sha256: z.ZodString;
|
|
180
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
size: z.ZodNumber;
|
|
183
|
+
sha256: z.ZodString;
|
|
184
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
185
|
+
/** Build-time timestamp carried from `build_kind_dist.ts`. */
|
|
186
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
/** Stamped by `publishKind` on first upload to the registry. */
|
|
188
|
+
firstUploadTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
190
|
+
export type KindManifest = z.infer<typeof KindManifest>;
|
|
191
|
+
/**
|
|
192
|
+
* One implementing block version for some kind version. Flat and
|
|
193
|
+
* RMW-friendly: the reconciler filters this list by `(id)` to drop stale
|
|
194
|
+
* entries before re-adding fresh ones.
|
|
195
|
+
*/
|
|
196
|
+
export declare const KindImplementer: z.ZodObject<{
|
|
197
|
+
/** Full id of the implementing block, incl. its version. */
|
|
198
|
+
id: z.ZodObject<{
|
|
199
|
+
organization: z.ZodString;
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
version: z.ZodString;
|
|
202
|
+
}, "strict", z.ZodTypeAny, {
|
|
203
|
+
organization: string;
|
|
204
|
+
name: string;
|
|
205
|
+
version: string;
|
|
206
|
+
}, {
|
|
207
|
+
organization: string;
|
|
208
|
+
name: string;
|
|
209
|
+
version: string;
|
|
210
|
+
}>;
|
|
211
|
+
/** Kind version this block implements. */
|
|
212
|
+
kindVersion: z.ZodString;
|
|
213
|
+
/** Channels the block version is published to. */
|
|
214
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
215
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
216
|
+
/** Full id of the implementing block, incl. its version. */
|
|
217
|
+
id: z.ZodObject<{
|
|
218
|
+
organization: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
version: z.ZodString;
|
|
221
|
+
}, "strict", z.ZodTypeAny, {
|
|
222
|
+
organization: string;
|
|
223
|
+
name: string;
|
|
224
|
+
version: string;
|
|
225
|
+
}, {
|
|
226
|
+
organization: string;
|
|
227
|
+
name: string;
|
|
228
|
+
version: string;
|
|
229
|
+
}>;
|
|
230
|
+
/** Kind version this block implements. */
|
|
231
|
+
kindVersion: z.ZodString;
|
|
232
|
+
/** Channels the block version is published to. */
|
|
233
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
234
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
235
|
+
/** Full id of the implementing block, incl. its version. */
|
|
236
|
+
id: z.ZodObject<{
|
|
237
|
+
organization: z.ZodString;
|
|
238
|
+
name: z.ZodString;
|
|
239
|
+
version: z.ZodString;
|
|
240
|
+
}, "strict", z.ZodTypeAny, {
|
|
241
|
+
organization: string;
|
|
242
|
+
name: string;
|
|
243
|
+
version: string;
|
|
244
|
+
}, {
|
|
245
|
+
organization: string;
|
|
246
|
+
name: string;
|
|
247
|
+
version: string;
|
|
248
|
+
}>;
|
|
249
|
+
/** Kind version this block implements. */
|
|
250
|
+
kindVersion: z.ZodString;
|
|
251
|
+
/** Channels the block version is published to. */
|
|
252
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
254
|
+
export type KindImplementer = z.infer<typeof KindImplementer>;
|
|
255
|
+
/**
|
|
256
|
+
* Per-kind-version projection: the newest implementing block per channel,
|
|
257
|
+
* including the derived `any` channel. Mirrors the package overview's
|
|
258
|
+
* `latestByChannel` + `AnyChannel` computation.
|
|
259
|
+
*/
|
|
260
|
+
export declare const KindVersionOverview: z.ZodObject<{
|
|
261
|
+
kindVersion: z.ZodString;
|
|
262
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
263
|
+
organization: z.ZodString;
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
version: z.ZodString;
|
|
266
|
+
}, "strict", z.ZodTypeAny, {
|
|
267
|
+
organization: string;
|
|
268
|
+
name: string;
|
|
269
|
+
version: string;
|
|
270
|
+
}, {
|
|
271
|
+
organization: string;
|
|
272
|
+
name: string;
|
|
273
|
+
version: string;
|
|
274
|
+
}>>;
|
|
275
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
276
|
+
kindVersion: z.ZodString;
|
|
277
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
278
|
+
organization: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
version: z.ZodString;
|
|
281
|
+
}, "strict", z.ZodTypeAny, {
|
|
282
|
+
organization: string;
|
|
283
|
+
name: string;
|
|
284
|
+
version: string;
|
|
285
|
+
}, {
|
|
286
|
+
organization: string;
|
|
287
|
+
name: string;
|
|
288
|
+
version: string;
|
|
289
|
+
}>>;
|
|
290
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
291
|
+
kindVersion: z.ZodString;
|
|
292
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
293
|
+
organization: z.ZodString;
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
version: z.ZodString;
|
|
296
|
+
}, "strict", z.ZodTypeAny, {
|
|
297
|
+
organization: string;
|
|
298
|
+
name: string;
|
|
299
|
+
version: string;
|
|
300
|
+
}, {
|
|
301
|
+
organization: string;
|
|
302
|
+
name: string;
|
|
303
|
+
version: string;
|
|
304
|
+
}>>;
|
|
305
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
306
|
+
export type KindVersionOverview = z.infer<typeof KindVersionOverview>;
|
|
307
|
+
/**
|
|
308
|
+
* Reconciler-maintained projection at `kinds/{org}/{name}/overview.json`.
|
|
309
|
+
*
|
|
310
|
+
* `implementers` is the flat, RMW source of truth; `kindVersions` is the
|
|
311
|
+
* derived, reader-facing view (kind versions × newest implementer per channel).
|
|
312
|
+
*/
|
|
313
|
+
export declare const KindOverview: z.ZodObject<{
|
|
314
|
+
schema: z.ZodLiteral<"v1">;
|
|
315
|
+
implementers: z.ZodArray<z.ZodObject<{
|
|
316
|
+
/** Full id of the implementing block, incl. its version. */
|
|
317
|
+
id: z.ZodObject<{
|
|
318
|
+
organization: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
version: z.ZodString;
|
|
321
|
+
}, "strict", z.ZodTypeAny, {
|
|
322
|
+
organization: string;
|
|
323
|
+
name: string;
|
|
324
|
+
version: string;
|
|
325
|
+
}, {
|
|
326
|
+
organization: string;
|
|
327
|
+
name: string;
|
|
328
|
+
version: string;
|
|
329
|
+
}>;
|
|
330
|
+
/** Kind version this block implements. */
|
|
331
|
+
kindVersion: z.ZodString;
|
|
332
|
+
/** Channels the block version is published to. */
|
|
333
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
334
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
335
|
+
/** Full id of the implementing block, incl. its version. */
|
|
336
|
+
id: z.ZodObject<{
|
|
337
|
+
organization: z.ZodString;
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
version: z.ZodString;
|
|
340
|
+
}, "strict", z.ZodTypeAny, {
|
|
341
|
+
organization: string;
|
|
342
|
+
name: string;
|
|
343
|
+
version: string;
|
|
344
|
+
}, {
|
|
345
|
+
organization: string;
|
|
346
|
+
name: string;
|
|
347
|
+
version: string;
|
|
348
|
+
}>;
|
|
349
|
+
/** Kind version this block implements. */
|
|
350
|
+
kindVersion: z.ZodString;
|
|
351
|
+
/** Channels the block version is published to. */
|
|
352
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
353
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
354
|
+
/** Full id of the implementing block, incl. its version. */
|
|
355
|
+
id: z.ZodObject<{
|
|
356
|
+
organization: z.ZodString;
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
version: z.ZodString;
|
|
359
|
+
}, "strict", z.ZodTypeAny, {
|
|
360
|
+
organization: string;
|
|
361
|
+
name: string;
|
|
362
|
+
version: string;
|
|
363
|
+
}, {
|
|
364
|
+
organization: string;
|
|
365
|
+
name: string;
|
|
366
|
+
version: string;
|
|
367
|
+
}>;
|
|
368
|
+
/** Kind version this block implements. */
|
|
369
|
+
kindVersion: z.ZodString;
|
|
370
|
+
/** Channels the block version is published to. */
|
|
371
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
372
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
373
|
+
kindVersions: z.ZodArray<z.ZodObject<{
|
|
374
|
+
kindVersion: z.ZodString;
|
|
375
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
376
|
+
organization: z.ZodString;
|
|
377
|
+
name: z.ZodString;
|
|
378
|
+
version: z.ZodString;
|
|
379
|
+
}, "strict", z.ZodTypeAny, {
|
|
380
|
+
organization: string;
|
|
381
|
+
name: string;
|
|
382
|
+
version: string;
|
|
383
|
+
}, {
|
|
384
|
+
organization: string;
|
|
385
|
+
name: string;
|
|
386
|
+
version: string;
|
|
387
|
+
}>>;
|
|
388
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
389
|
+
kindVersion: z.ZodString;
|
|
390
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
391
|
+
organization: z.ZodString;
|
|
392
|
+
name: z.ZodString;
|
|
393
|
+
version: z.ZodString;
|
|
394
|
+
}, "strict", z.ZodTypeAny, {
|
|
395
|
+
organization: string;
|
|
396
|
+
name: string;
|
|
397
|
+
version: string;
|
|
398
|
+
}, {
|
|
399
|
+
organization: string;
|
|
400
|
+
name: string;
|
|
401
|
+
version: string;
|
|
402
|
+
}>>;
|
|
403
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
404
|
+
kindVersion: z.ZodString;
|
|
405
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
406
|
+
organization: z.ZodString;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
version: z.ZodString;
|
|
409
|
+
}, "strict", z.ZodTypeAny, {
|
|
410
|
+
organization: string;
|
|
411
|
+
name: string;
|
|
412
|
+
version: string;
|
|
413
|
+
}, {
|
|
414
|
+
organization: string;
|
|
415
|
+
name: string;
|
|
416
|
+
version: string;
|
|
417
|
+
}>>;
|
|
418
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
419
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
420
|
+
schema: z.ZodLiteral<"v1">;
|
|
421
|
+
implementers: z.ZodArray<z.ZodObject<{
|
|
422
|
+
/** Full id of the implementing block, incl. its version. */
|
|
423
|
+
id: z.ZodObject<{
|
|
424
|
+
organization: z.ZodString;
|
|
425
|
+
name: z.ZodString;
|
|
426
|
+
version: z.ZodString;
|
|
427
|
+
}, "strict", z.ZodTypeAny, {
|
|
428
|
+
organization: string;
|
|
429
|
+
name: string;
|
|
430
|
+
version: string;
|
|
431
|
+
}, {
|
|
432
|
+
organization: string;
|
|
433
|
+
name: string;
|
|
434
|
+
version: string;
|
|
435
|
+
}>;
|
|
436
|
+
/** Kind version this block implements. */
|
|
437
|
+
kindVersion: z.ZodString;
|
|
438
|
+
/** Channels the block version is published to. */
|
|
439
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
440
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
441
|
+
/** Full id of the implementing block, incl. its version. */
|
|
442
|
+
id: z.ZodObject<{
|
|
443
|
+
organization: z.ZodString;
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
version: z.ZodString;
|
|
446
|
+
}, "strict", z.ZodTypeAny, {
|
|
447
|
+
organization: string;
|
|
448
|
+
name: string;
|
|
449
|
+
version: string;
|
|
450
|
+
}, {
|
|
451
|
+
organization: string;
|
|
452
|
+
name: string;
|
|
453
|
+
version: string;
|
|
454
|
+
}>;
|
|
455
|
+
/** Kind version this block implements. */
|
|
456
|
+
kindVersion: z.ZodString;
|
|
457
|
+
/** Channels the block version is published to. */
|
|
458
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
459
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
460
|
+
/** Full id of the implementing block, incl. its version. */
|
|
461
|
+
id: z.ZodObject<{
|
|
462
|
+
organization: z.ZodString;
|
|
463
|
+
name: z.ZodString;
|
|
464
|
+
version: z.ZodString;
|
|
465
|
+
}, "strict", z.ZodTypeAny, {
|
|
466
|
+
organization: string;
|
|
467
|
+
name: string;
|
|
468
|
+
version: string;
|
|
469
|
+
}, {
|
|
470
|
+
organization: string;
|
|
471
|
+
name: string;
|
|
472
|
+
version: string;
|
|
473
|
+
}>;
|
|
474
|
+
/** Kind version this block implements. */
|
|
475
|
+
kindVersion: z.ZodString;
|
|
476
|
+
/** Channels the block version is published to. */
|
|
477
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
478
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
479
|
+
kindVersions: z.ZodArray<z.ZodObject<{
|
|
480
|
+
kindVersion: z.ZodString;
|
|
481
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
|
+
organization: z.ZodString;
|
|
483
|
+
name: z.ZodString;
|
|
484
|
+
version: z.ZodString;
|
|
485
|
+
}, "strict", z.ZodTypeAny, {
|
|
486
|
+
organization: string;
|
|
487
|
+
name: string;
|
|
488
|
+
version: string;
|
|
489
|
+
}, {
|
|
490
|
+
organization: string;
|
|
491
|
+
name: string;
|
|
492
|
+
version: string;
|
|
493
|
+
}>>;
|
|
494
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
495
|
+
kindVersion: z.ZodString;
|
|
496
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
497
|
+
organization: z.ZodString;
|
|
498
|
+
name: z.ZodString;
|
|
499
|
+
version: z.ZodString;
|
|
500
|
+
}, "strict", z.ZodTypeAny, {
|
|
501
|
+
organization: string;
|
|
502
|
+
name: string;
|
|
503
|
+
version: string;
|
|
504
|
+
}, {
|
|
505
|
+
organization: string;
|
|
506
|
+
name: string;
|
|
507
|
+
version: string;
|
|
508
|
+
}>>;
|
|
509
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
510
|
+
kindVersion: z.ZodString;
|
|
511
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
512
|
+
organization: z.ZodString;
|
|
513
|
+
name: z.ZodString;
|
|
514
|
+
version: z.ZodString;
|
|
515
|
+
}, "strict", z.ZodTypeAny, {
|
|
516
|
+
organization: string;
|
|
517
|
+
name: string;
|
|
518
|
+
version: string;
|
|
519
|
+
}, {
|
|
520
|
+
organization: string;
|
|
521
|
+
name: string;
|
|
522
|
+
version: string;
|
|
523
|
+
}>>;
|
|
524
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
525
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
526
|
+
schema: z.ZodLiteral<"v1">;
|
|
527
|
+
implementers: z.ZodArray<z.ZodObject<{
|
|
528
|
+
/** Full id of the implementing block, incl. its version. */
|
|
529
|
+
id: z.ZodObject<{
|
|
530
|
+
organization: z.ZodString;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
version: z.ZodString;
|
|
533
|
+
}, "strict", z.ZodTypeAny, {
|
|
534
|
+
organization: string;
|
|
535
|
+
name: string;
|
|
536
|
+
version: string;
|
|
537
|
+
}, {
|
|
538
|
+
organization: string;
|
|
539
|
+
name: string;
|
|
540
|
+
version: string;
|
|
541
|
+
}>;
|
|
542
|
+
/** Kind version this block implements. */
|
|
543
|
+
kindVersion: z.ZodString;
|
|
544
|
+
/** Channels the block version is published to. */
|
|
545
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
546
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
547
|
+
/** Full id of the implementing block, incl. its version. */
|
|
548
|
+
id: z.ZodObject<{
|
|
549
|
+
organization: z.ZodString;
|
|
550
|
+
name: z.ZodString;
|
|
551
|
+
version: z.ZodString;
|
|
552
|
+
}, "strict", z.ZodTypeAny, {
|
|
553
|
+
organization: string;
|
|
554
|
+
name: string;
|
|
555
|
+
version: string;
|
|
556
|
+
}, {
|
|
557
|
+
organization: string;
|
|
558
|
+
name: string;
|
|
559
|
+
version: string;
|
|
560
|
+
}>;
|
|
561
|
+
/** Kind version this block implements. */
|
|
562
|
+
kindVersion: z.ZodString;
|
|
563
|
+
/** Channels the block version is published to. */
|
|
564
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
565
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
566
|
+
/** Full id of the implementing block, incl. its version. */
|
|
567
|
+
id: z.ZodObject<{
|
|
568
|
+
organization: z.ZodString;
|
|
569
|
+
name: z.ZodString;
|
|
570
|
+
version: z.ZodString;
|
|
571
|
+
}, "strict", z.ZodTypeAny, {
|
|
572
|
+
organization: string;
|
|
573
|
+
name: string;
|
|
574
|
+
version: string;
|
|
575
|
+
}, {
|
|
576
|
+
organization: string;
|
|
577
|
+
name: string;
|
|
578
|
+
version: string;
|
|
579
|
+
}>;
|
|
580
|
+
/** Kind version this block implements. */
|
|
581
|
+
kindVersion: z.ZodString;
|
|
582
|
+
/** Channels the block version is published to. */
|
|
583
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
584
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
585
|
+
kindVersions: z.ZodArray<z.ZodObject<{
|
|
586
|
+
kindVersion: z.ZodString;
|
|
587
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
588
|
+
organization: z.ZodString;
|
|
589
|
+
name: z.ZodString;
|
|
590
|
+
version: z.ZodString;
|
|
591
|
+
}, "strict", z.ZodTypeAny, {
|
|
592
|
+
organization: string;
|
|
593
|
+
name: string;
|
|
594
|
+
version: string;
|
|
595
|
+
}, {
|
|
596
|
+
organization: string;
|
|
597
|
+
name: string;
|
|
598
|
+
version: string;
|
|
599
|
+
}>>;
|
|
600
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
601
|
+
kindVersion: z.ZodString;
|
|
602
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
603
|
+
organization: z.ZodString;
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
version: z.ZodString;
|
|
606
|
+
}, "strict", z.ZodTypeAny, {
|
|
607
|
+
organization: string;
|
|
608
|
+
name: string;
|
|
609
|
+
version: string;
|
|
610
|
+
}, {
|
|
611
|
+
organization: string;
|
|
612
|
+
name: string;
|
|
613
|
+
version: string;
|
|
614
|
+
}>>;
|
|
615
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
616
|
+
kindVersion: z.ZodString;
|
|
617
|
+
latestByChannel: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
618
|
+
organization: z.ZodString;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
version: z.ZodString;
|
|
621
|
+
}, "strict", z.ZodTypeAny, {
|
|
622
|
+
organization: string;
|
|
623
|
+
name: string;
|
|
624
|
+
version: string;
|
|
625
|
+
}, {
|
|
626
|
+
organization: string;
|
|
627
|
+
name: string;
|
|
628
|
+
version: string;
|
|
629
|
+
}>>;
|
|
630
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
631
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
632
|
+
export type KindOverview = z.infer<typeof KindOverview>;
|