diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-27 14:24:47 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-27 14:24:47 -0500 |
commit | ef4b9cf8d979a502b31b5387560511eddbc5ab7a (patch) | |
tree | 0cadc095c919893cc1d43144b48f28474c1667ff /src/third-party/api/index.js | |
parent | c89ec94b17eb0ea568faf9349fc74a671a710650 (diff) | |
download | voidsky-ef4b9cf8d979a502b31b5387560511eddbc5ab7a.tar.zst |
Add account creation
Diffstat (limited to 'src/third-party/api/index.js')
-rw-r--r-- | src/third-party/api/index.js | 60 |
1 files changed, 52 insertions, 8 deletions
diff --git a/src/third-party/api/index.js b/src/third-party/api/index.js index f49340634..c3880f025 100644 --- a/src/third-party/api/index.js +++ b/src/third-party/api/index.js @@ -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" } } } @@ -10361,14 +10376,35 @@ var methodSchemas = [ }, { 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); } |