| 39 | const Prompt = Schema.Union([TextPrompt, SelectPrompt]) |
| 40 | |
| 41 | export class Method extends Schema.Class<Method>("ProviderAuthMethod")({ |
| 42 | type: Schema.Literals(["oauth", "api"]), |
| 43 | label: Schema.String, |
| 44 | prompts: optional(Schema.Array(Prompt)), |
| 45 | }) {} |
| 46 | |
| 47 | export const Methods = Schema.Record(Schema.String, Schema.Array(Method)) |
| 48 | export type Methods = typeof Methods.Type |
nothing calls this directly
no test coverage detected