(feat): add tauth
(fix): formatted
This commit is contained in:
parent
d02bc29be0
commit
fb742bd068
15 changed files with 141 additions and 74 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import { z } from "zod";
|
||||
|
||||
import { legalDocsSchema } from "./features/legal/schema";
|
||||
import { settingsStorageDefaults, type SettingsStorageDefaults } from "./settings";
|
||||
import {
|
||||
settingsStorageDefaults,
|
||||
type SettingsStorageDefaults,
|
||||
} from "./settings";
|
||||
|
||||
const fileFromMessage = z.object({
|
||||
name: z.string(),
|
||||
|
|
@ -155,6 +158,14 @@ export const ttp = {
|
|||
}),
|
||||
},
|
||||
|
||||
load_txt_record: {
|
||||
request: z.object({
|
||||
path: z.string(),
|
||||
}),
|
||||
response: z.object({
|
||||
content: z.string(),
|
||||
}),
|
||||
},
|
||||
authenticate_app: {
|
||||
request: z.object({
|
||||
app_identifier: z.string(),
|
||||
|
|
@ -163,13 +174,12 @@ export const ttp = {
|
|||
challenge: z.base64(),
|
||||
}),
|
||||
},
|
||||
get_app: {
|
||||
create_app: {
|
||||
request: z.object({
|
||||
app_public_key: z.base64(),
|
||||
app_identifier: z.string(),
|
||||
}),
|
||||
response: z.object({
|
||||
app_public_key: z.base64(),
|
||||
}),
|
||||
response: z.object({}),
|
||||
},
|
||||
|
||||
// Calls
|
||||
|
|
|
|||
Loading…
Reference in a new issue