UNPKG

the-moby-effect

Version:
30 lines 1.3 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as Platform from "./Platform.generated.js"; export class Descriptor extends /*#__PURE__*/Schema.Class("Descriptor")({ mediaType: Schema.String, /** https://github.com/opencontainers/go-digest/blob/22b78e47854adc56477927aba5f4c930b56af8c9/digest.go#L65 */ digest: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.pattern(/^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$/)), size: MobySchemas.Int64, urls: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), annotations: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: Schema.String }), { nullable: true }), data: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(MobySchemas.UInt8), { nullable: true }), platform: /*#__PURE__*/Schema.optionalWith(Platform.Platform, { nullable: true }), artifactType: /*#__PURE__*/Schema.optional(Schema.String) }, { identifier: "Descriptor", title: "v1.Descriptor", documentation: "https://github.com/opencontainers/image-spec/blob/39ab2d54cfa8fe1bee1ff20001264986d92ab85a/specs-go/v1/descriptor.go#L19-L50" }) {} //# sourceMappingURL=Descriptor.generated.js.map