Add account creation
This commit is contained in:
parent
c89ec94b17
commit
ef4b9cf8d9
17 changed files with 727 additions and 272 deletions
60
src/third-party/api/index.js
vendored
60
src/third-party/api/index.js
vendored
|
|
@ -10253,12 +10253,15 @@ var methodSchemas = [
|
|||
encoding: "application/json",
|
||||
schema: {
|
||||
type: "object",
|
||||
required: ["username", "did", "password"],
|
||||
required: ["email", "username", "password"],
|
||||
properties: {
|
||||
email: {
|
||||
type: "string"
|
||||
},
|
||||
username: {
|
||||
type: "string"
|
||||
},
|
||||
did: {
|
||||
inviteCode: {
|
||||
type: "string"
|
||||
},
|
||||
password: {
|
||||
|
|
@ -10271,10 +10274,16 @@ var methodSchemas = [
|
|||
encoding: "application/json",
|
||||
schema: {
|
||||
type: "object",
|
||||
required: ["jwt"],
|
||||
required: ["jwt", "name", "did"],
|
||||
properties: {
|
||||
jwt: {
|
||||
type: "string"
|
||||
},
|
||||
name: {
|
||||
type: "string"
|
||||
},
|
||||
did: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10305,10 +10314,16 @@ var methodSchemas = [
|
|||
encoding: "application/json",
|
||||
schema: {
|
||||
type: "object",
|
||||
required: ["jwt"],
|
||||
required: ["jwt", "name", "did"],
|
||||
properties: {
|
||||
jwt: {
|
||||
type: "string"
|
||||
},
|
||||
name: {
|
||||
type: "string"
|
||||
},
|
||||
did: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10359,16 +10374,37 @@ var methodSchemas = [
|
|||
schema: {}
|
||||
}
|
||||
},
|
||||
{
|
||||
lexicon: 1,
|
||||
id: "todo.adx.getAccountsConfig",
|
||||
type: "query",
|
||||
description: "Get a document describing the service's accounts configuration.",
|
||||
parameters: {},
|
||||
output: {
|
||||
encoding: "application/json",
|
||||
schema: {
|
||||
type: "object",
|
||||
required: ["availableUserDomains"],
|
||||
properties: {
|
||||
inviteCodeRequired: {
|
||||
type: "boolean"
|
||||
},
|
||||
availableUserDomains: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
lexicon: 1,
|
||||
id: "todo.adx.getSession",
|
||||
type: "query",
|
||||
description: "Get information about the current session.",
|
||||
parameters: {},
|
||||
input: {
|
||||
encoding: "",
|
||||
schema: {}
|
||||
},
|
||||
output: {
|
||||
encoding: "application/json",
|
||||
schema: {
|
||||
|
|
@ -11603,6 +11639,14 @@ var AdxNS = class {
|
|||
getAccount(params, data, opts) {
|
||||
return this._service.xrpc.call("todo.adx.getAccount", params, data, opts);
|
||||
}
|
||||
getAccountsConfig(params, data, opts) {
|
||||
return this._service.xrpc.call(
|
||||
"todo.adx.getAccountsConfig",
|
||||
params,
|
||||
data,
|
||||
opts
|
||||
);
|
||||
}
|
||||
getSession(params, data, opts) {
|
||||
return this._service.xrpc.call("todo.adx.getSession", params, data, opts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue