the-moby-effect
Version:
Moby/Docker API client built using effect-ts
19 lines • 860 B
JavaScript
import * as Function from "effect/Function";
import * as Option from "effect/Option";
import * as Schema from "effect/Schema";
import * as String from "effect/String";
export class RegistryAuthenticateOKBody extends /*#__PURE__*/Schema.Class("RegistryAuthenticateOKBody")({
IdentityToken: /*#__PURE__*/Schema.requiredToOptional(Schema.String, Schema.String, {
decode: s => String.isEmpty(s) ? Option.none() : Option.some(s),
encode: /*#__PURE__*/Option.match({
onNone: () => "",
onSome: Function.identity
})
}),
Status: Schema.String
}, {
identifier: "RegistryAuthenticateOKBody",
title: "registry.AuthenticateOKBody",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/registry/authenticate.go#L10-L21"
}) {}
//# sourceMappingURL=RegistryAuthenticateOKBody.generated.js.map