add lexicon codegen: vendored lexicons, lex cli and generation scripts
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "com.atproto.server.activateAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"id": "com.atproto.server.checkAccountStatus",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"activated",
|
||||
"validDid",
|
||||
"repoCommit",
|
||||
"repoRev",
|
||||
"repoBlocks",
|
||||
"indexedRecords",
|
||||
"privateStateValues",
|
||||
"expectedBlobs",
|
||||
"importedBlobs"
|
||||
],
|
||||
"properties": {
|
||||
"repoRev": {
|
||||
"type": "string"
|
||||
},
|
||||
"validDid": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"activated": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"repoBlocks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"repoCommit": {
|
||||
"type": "string",
|
||||
"format": "cid"
|
||||
},
|
||||
"expectedBlobs": {
|
||||
"type": "integer"
|
||||
},
|
||||
"importedBlobs": {
|
||||
"type": "integer"
|
||||
},
|
||||
"indexedRecords": {
|
||||
"type": "integer"
|
||||
},
|
||||
"privateStateValues": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "com.atproto.server.confirmEmail",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
"token"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "AccountNotFound"
|
||||
},
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
},
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
},
|
||||
{
|
||||
"name": "InvalidEmail"
|
||||
}
|
||||
],
|
||||
"description": "Confirm an email using a token from com.atproto.server.requestEmailConfirmation."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"id": "com.atproto.server.createAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"handle"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "Pre-existing atproto DID, being imported to a new account."
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"plcOp": {
|
||||
"type": "unknown",
|
||||
"description": "A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented."
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle",
|
||||
"description": "Requested handle for the account."
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"description": "Initial account password. May need to meet instance-specific password strength requirements."
|
||||
},
|
||||
"inviteCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"recoveryKey": {
|
||||
"type": "string",
|
||||
"description": "DID PLC rotation key (aka, recovery key) to be included in PLC creation operation."
|
||||
},
|
||||
"verificationCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"verificationPhone": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "InvalidHandle"
|
||||
},
|
||||
{
|
||||
"name": "InvalidPassword"
|
||||
},
|
||||
{
|
||||
"name": "InvalidInviteCode"
|
||||
},
|
||||
{
|
||||
"name": "HandleNotAvailable"
|
||||
},
|
||||
{
|
||||
"name": "UnsupportedDomain"
|
||||
},
|
||||
{
|
||||
"name": "UnresolvableDid"
|
||||
},
|
||||
{
|
||||
"name": "IncompatibleDidDoc"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"accessJwt",
|
||||
"refreshJwt",
|
||||
"handle",
|
||||
"did"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "The DID of the new account."
|
||||
},
|
||||
"didDoc": {
|
||||
"type": "unknown",
|
||||
"description": "Complete DID document."
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle"
|
||||
},
|
||||
"accessJwt": {
|
||||
"type": "string"
|
||||
},
|
||||
"refreshJwt": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"description": "Account login session returned on successful account creation."
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Create an account. Implemented by PDS."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"id": "com.atproto.server.createAppPassword",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "A short name for the App Password, to help distinguish them."
|
||||
},
|
||||
"privileged": {
|
||||
"type": "boolean",
|
||||
"description": "If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "AccountTakedown"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"ref": "#appPassword",
|
||||
"type": "ref"
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Create an App Password."
|
||||
},
|
||||
"appPassword": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"password",
|
||||
"createdAt"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"privileged": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "com.atproto.server.createInviteCode",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"useCount"
|
||||
],
|
||||
"properties": {
|
||||
"useCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"forAccount": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"code"
|
||||
],
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Create an invite code."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"id": "com.atproto.server.createInviteCodes",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"codeCount",
|
||||
"useCount"
|
||||
],
|
||||
"properties": {
|
||||
"useCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"codeCount": {
|
||||
"type": "integer",
|
||||
"default": 1
|
||||
},
|
||||
"forAccounts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"codes"
|
||||
],
|
||||
"properties": {
|
||||
"codes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"ref": "#accountCodes",
|
||||
"type": "ref"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Create invite codes."
|
||||
},
|
||||
"accountCodes": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"account",
|
||||
"codes"
|
||||
],
|
||||
"properties": {
|
||||
"codes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"account": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"id": "com.atproto.server.createSession",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"identifier",
|
||||
"password"
|
||||
],
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"identifier": {
|
||||
"type": "string",
|
||||
"description": "Handle or other identifier supported by the server for the authenticating user."
|
||||
},
|
||||
"allowTakendown": {
|
||||
"type": "boolean",
|
||||
"description": "When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned"
|
||||
},
|
||||
"authFactorToken": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "AccountTakedown"
|
||||
},
|
||||
{
|
||||
"name": "AuthFactorTokenRequired"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"accessJwt",
|
||||
"refreshJwt",
|
||||
"handle",
|
||||
"did"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"didDoc": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
|
||||
"knownValues": [
|
||||
"takendown",
|
||||
"suspended",
|
||||
"deactivated"
|
||||
]
|
||||
},
|
||||
"accessJwt": {
|
||||
"type": "string"
|
||||
},
|
||||
"refreshJwt": {
|
||||
"type": "string"
|
||||
},
|
||||
"emailConfirmed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"emailAuthFactor": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Create an authentication session."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": "com.atproto.server.deactivateAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deleteAfter": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"id": "com.atproto.server.defs",
|
||||
"defs": {
|
||||
"inviteCode": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"code",
|
||||
"available",
|
||||
"disabled",
|
||||
"forAccount",
|
||||
"createdBy",
|
||||
"createdAt",
|
||||
"uses"
|
||||
],
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"uses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"ref": "#inviteCodeUse",
|
||||
"type": "ref"
|
||||
}
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"available": {
|
||||
"type": "integer"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "string"
|
||||
},
|
||||
"forAccount": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"inviteCodeUse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"usedBy",
|
||||
"usedAt"
|
||||
],
|
||||
"properties": {
|
||||
"usedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"usedBy": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"id": "com.atproto.server.deleteAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"did",
|
||||
"password",
|
||||
"token"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
},
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
}
|
||||
],
|
||||
"description": "Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"id": "com.atproto.server.deleteSession",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"errors": [
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
},
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
}
|
||||
],
|
||||
"description": "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt')."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"id": "com.atproto.server.describeServer",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"did",
|
||||
"availableUserDomains"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"links": {
|
||||
"ref": "#links",
|
||||
"type": "ref",
|
||||
"description": "URLs of service policy documents."
|
||||
},
|
||||
"contact": {
|
||||
"ref": "#contact",
|
||||
"type": "ref",
|
||||
"description": "Contact information"
|
||||
},
|
||||
"inviteCodeRequired": {
|
||||
"type": "boolean",
|
||||
"description": "If true, an invite code must be supplied to create an account on this instance."
|
||||
},
|
||||
"availableUserDomains": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "List of domain suffixes that can be used in account handles."
|
||||
},
|
||||
"phoneVerificationRequired": {
|
||||
"type": "boolean",
|
||||
"description": "If true, a phone verification token must be supplied to create an account on this instance."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Describes the server's account creation requirements and capabilities. Implemented by PDS."
|
||||
},
|
||||
"links": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"privacyPolicy": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"termsOfService": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contact": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "com.atproto.server.getAccountInviteCodes",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"errors": [
|
||||
{
|
||||
"name": "DuplicateCreate"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"codes"
|
||||
],
|
||||
"properties": {
|
||||
"codes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"ref": "com.atproto.server.defs#inviteCode",
|
||||
"type": "ref"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"includeUsed": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"createAvailable": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Controls whether any new 'earned' but not 'created' invites should be created."
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Get all invite codes for the current account. Requires auth."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "com.atproto.server.getServiceAuth",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"errors": [
|
||||
{
|
||||
"name": "BadExpiration",
|
||||
"description": "Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes."
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"token"
|
||||
],
|
||||
"properties": {
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": [
|
||||
"aud"
|
||||
],
|
||||
"properties": {
|
||||
"aud": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "The DID of the service that the token will be used to authenticate with"
|
||||
},
|
||||
"exp": {
|
||||
"type": "integer",
|
||||
"description": "The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope."
|
||||
},
|
||||
"lxm": {
|
||||
"type": "string",
|
||||
"format": "nsid",
|
||||
"description": "Lexicon (XRPC) method to bind the requested token to"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Get a signed token on behalf of the requesting DID for the requested service."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"id": "com.atproto.server.getSession",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"handle",
|
||||
"did"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"didDoc": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
|
||||
"knownValues": [
|
||||
"takendown",
|
||||
"suspended",
|
||||
"deactivated"
|
||||
]
|
||||
},
|
||||
"emailConfirmed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"emailAuthFactor": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Get information about the current auth session. Requires auth."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "com.atproto.server.listAppPasswords",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"errors": [
|
||||
{
|
||||
"name": "AccountTakedown"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"passwords"
|
||||
],
|
||||
"properties": {
|
||||
"passwords": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"ref": "#appPassword",
|
||||
"type": "ref"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "List all App Passwords."
|
||||
},
|
||||
"appPassword": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"createdAt"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"privileged": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"id": "com.atproto.server.refreshSession",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"errors": [
|
||||
{
|
||||
"name": "AccountTakedown"
|
||||
},
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
},
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
}
|
||||
],
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"accessJwt",
|
||||
"refreshJwt",
|
||||
"handle",
|
||||
"did"
|
||||
],
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"didDoc": {
|
||||
"type": "unknown"
|
||||
},
|
||||
"handle": {
|
||||
"type": "string",
|
||||
"format": "handle"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "Hosting status of the account. If not specified, then assume 'active'.",
|
||||
"knownValues": [
|
||||
"takendown",
|
||||
"suspended",
|
||||
"deactivated"
|
||||
]
|
||||
},
|
||||
"accessJwt": {
|
||||
"type": "string"
|
||||
},
|
||||
"refreshJwt": {
|
||||
"type": "string"
|
||||
},
|
||||
"emailConfirmed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"emailAuthFactor": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt')."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "com.atproto.server.requestAccountDelete",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Initiate a user account deletion via email."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "com.atproto.server.requestEmailConfirmation",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Request an email with a code to confirm ownership of email."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"id": "com.atproto.server.requestEmailUpdate",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"tokenRequired"
|
||||
],
|
||||
"properties": {
|
||||
"tokenRequired": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Request a token in order to update email."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"id": "com.atproto.server.requestPasswordReset",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Initiate a user account password reset via email."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"id": "com.atproto.server.reserveSigningKey",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "The DID to reserve a key for."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"output": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"signingKey"
|
||||
],
|
||||
"properties": {
|
||||
"signingKey": {
|
||||
"type": "string",
|
||||
"description": "The public key for the reserved signing key, in did:key serialization."
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"id": "com.atproto.server.resetPassword",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"token",
|
||||
"password"
|
||||
],
|
||||
"properties": {
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
},
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
}
|
||||
],
|
||||
"description": "Reset a user account password using a token."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"id": "com.atproto.server.revokeAppPassword",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"description": "Revoke an App Password by name."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "com.atproto.server.updateEmail",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email"
|
||||
],
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
|
||||
},
|
||||
"emailAuthFactor": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"encoding": "application/json"
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "ExpiredToken"
|
||||
},
|
||||
{
|
||||
"name": "InvalidToken"
|
||||
},
|
||||
{
|
||||
"name": "TokenRequired"
|
||||
}
|
||||
],
|
||||
"description": "Update an account's email."
|
||||
}
|
||||
},
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"lexicon": 1
|
||||
}
|
||||
Reference in New Issue
Block a user