22 lines
320 B
TypeScript
22 lines
320 B
TypeScript
export type HoppRESTAuthNone = {
|
|
authType: "none"
|
|
}
|
|
|
|
export type HoppRESTAuthBasic = {
|
|
authType: "basic"
|
|
|
|
username: string
|
|
password: string
|
|
}
|
|
|
|
export type HoppRESTAuthBearer = {
|
|
authType: "bearer"
|
|
|
|
token: string
|
|
}
|
|
|
|
export type HoppRESTAuth =
|
|
| HoppRESTAuthNone
|
|
| HoppRESTAuthBasic
|
|
| HoppRESTAuthBearer
|