Metakit / @doeixd/metakit/artifact

PortableBundleV1

const · packages/metakit/src/bundle.ts:134

const PortableBundleV1: Schema.Union<readonly [Schema.TaggedStruct<"Expr", { readonly node: Schema.Int; readonly codecVersion: Schema.Literal<1>; readonly profile: Schema.String; readonly fingerprint: Schema.String; readonly slots: Schema.$Array<Schema.Struct<{ readonly path: Schema.$Array<Schema.String>; readonly kind: Schema.Literals<readonly ["int", "bool", "text"]>; readonly nullable: Schema.Boolean; readonly literals: Schema.optionalKey<Schema.$Array<Schema.String>>; }>>; readonly nodes: Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"Lit", { readonly value: Schema.Codec<PortableLiteral, PortableLiteral, never, never>; }>, Schema.TaggedStruct<"Path", { readonly segments: Schema.$Array<Schema.String>; readonly read: Schema.Codec<PortableLiteral, PortableLiteral, never, never>; }>, Schema.TaggedStruct<"Call", { readonly op: Schema.String; readonly args: Schema.$Array<Schema.Int>; }>, Schema.TaggedStruct<"If", { readonly cond: Schema.Int; readonly then: Schema.Int; readonly otherwise: Schema.Int; }>, Schema.TaggedStruct<"Match", { readonly on: Schema.Int; readonly cases: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Int]>>; readonly otherwise: Schema.optionalKey<Schema.Int>; }>]>>; }>, Schema.TaggedStruct<"Transition", { readonly when: Schema.Int; readonly writes: Schema.$Array<Schema.Struct<{ readonly target: Schema.$Array<Schema.String>; readonly kind: Schema.Literals<readonly ["int", "bool", "text"]>; readonly nullable: Schema.Boolean; readonly way: Schema.Literals<readon …;

Its type

type PortableBundleV1 = typeof PortableBundleV1.Type

A bundle of either kind, as decodeBundle reads it.