@atproto/bsky 0.0.203 → 0.0.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ export type HandlerInput = void;
4
4
  export interface HandlerError {
5
5
  status: number;
6
6
  message?: string;
7
+ error?: 'InvalidToken' | 'ExpiredToken';
7
8
  }
8
9
  export type HandlerOutput = HandlerError | void;
9
10
  //# sourceMappingURL=deleteSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/deleteSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA"}
1
+ {"version":3,"file":"deleteSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/deleteSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,cAAc,GAAG,cAAc,CAAA;CACxC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"deleteSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/deleteSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.deleteSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\nexport type HandlerInput = void\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | void\n"]}
1
+ {"version":3,"file":"deleteSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/deleteSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.deleteSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\nexport type HandlerInput = void\n\nexport interface HandlerError {\n status: number\n message?: string\n error?: 'InvalidToken' | 'ExpiredToken'\n}\n\nexport type HandlerOutput = HandlerError | void\n"]}
@@ -3,12 +3,12 @@ export type InputSchema = undefined;
3
3
  export interface OutputSchema {
4
4
  handle: string;
5
5
  did: string;
6
- email?: string;
7
- emailConfirmed?: boolean;
8
- emailAuthFactor?: boolean;
9
6
  didDoc?: {
10
7
  [_ in string]: unknown;
11
8
  };
9
+ email?: string;
10
+ emailConfirmed?: boolean;
11
+ emailAuthFactor?: boolean;
12
12
  active?: boolean;
13
13
  /** 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. */
14
14
  status?: 'takendown' | 'suspended' | 'deactivated' | (string & {});
@@ -1 +1 @@
1
- {"version":3,"file":"getSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/getSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oOAAoO;IACpO,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACnE;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"getSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/getSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oOAAoO;IACpO,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACnE;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/getSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.getSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n handle: string\n did: string\n email?: string\n emailConfirmed?: boolean\n emailAuthFactor?: boolean\n didDoc?: { [_ in string]: unknown }\n active?: boolean\n /** 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. */\n status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"getSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/getSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.getSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n handle: string\n did: string\n didDoc?: { [_ in string]: unknown }\n email?: string\n emailConfirmed?: boolean\n emailAuthFactor?: boolean\n active?: boolean\n /** 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. */\n status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
@@ -8,6 +8,9 @@ export interface OutputSchema {
8
8
  didDoc?: {
9
9
  [_ in string]: unknown;
10
10
  };
11
+ email?: string;
12
+ emailConfirmed?: boolean;
13
+ emailAuthFactor?: boolean;
11
14
  active?: boolean;
12
15
  /** Hosting status of the account. If not specified, then assume 'active'. */
13
16
  status?: 'takendown' | 'suspended' | 'deactivated' | (string & {});
@@ -23,7 +26,7 @@ export interface HandlerSuccess {
23
26
  export interface HandlerError {
24
27
  status: number;
25
28
  message?: string;
26
- error?: 'AccountTakedown';
29
+ error?: 'AccountTakedown' | 'InvalidToken' | 'ExpiredToken';
27
30
  }
28
31
  export type HandlerOutput = HandlerError | HandlerSuccess;
29
32
  //# sourceMappingURL=refreshSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/refreshSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACnE;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,iBAAiB,CAAA;CAC1B;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"refreshSession.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/refreshSession.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACnE;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,iBAAiB,GAAG,cAAc,GAAG,cAAc,CAAA;CAC5D;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"refreshSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/refreshSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.refreshSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n accessJwt: string\n refreshJwt: string\n handle: string\n did: string\n didDoc?: { [_ in string]: unknown }\n active?: boolean\n /** Hosting status of the account. If not specified, then assume 'active'. */\n status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n error?: 'AccountTakedown'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"refreshSession.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/server/refreshSession.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.refreshSession'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n accessJwt: string\n refreshJwt: string\n handle: string\n did: string\n didDoc?: { [_ in string]: unknown }\n email?: string\n emailConfirmed?: boolean\n emailAuthFactor?: boolean\n active?: boolean\n /** Hosting status of the account. If not specified, then assume 'active'. */\n status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n error?: 'AccountTakedown' | 'InvalidToken' | 'ExpiredToken'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsky",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -52,17 +52,17 @@
52
52
  "undici": "^6.19.8",
53
53
  "zod": "3.23.8",
54
54
  "@atproto-labs/fetch-node": "0.2.0",
55
- "@atproto/common": "^0.5.3",
56
55
  "@atproto-labs/xrpc-utils": "0.0.24",
57
- "@atproto/api": "^0.18.8",
56
+ "@atproto/api": "^0.18.9",
57
+ "@atproto/common": "^0.5.4",
58
58
  "@atproto/crypto": "^0.4.5",
59
59
  "@atproto/did": "^0.2.3",
60
60
  "@atproto/identity": "^0.4.10",
61
61
  "@atproto/lexicon": "^0.6.0",
62
62
  "@atproto/repo": "^0.8.12",
63
- "@atproto/syntax": "^0.4.2",
64
63
  "@atproto/sync": "^0.1.39",
65
- "@atproto/xrpc-server": "^0.10.4"
64
+ "@atproto/syntax": "^0.4.2",
65
+ "@atproto/xrpc-server": "^0.10.5"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@bufbuild/buf": "^1.28.1",
@@ -78,10 +78,10 @@
78
78
  "jest": "^28.1.2",
79
79
  "ts-node": "^10.8.2",
80
80
  "typescript": "^5.6.3",
81
- "@atproto/api": "^0.18.8",
81
+ "@atproto/api": "^0.18.9",
82
82
  "@atproto/lex-cli": "^0.9.8",
83
- "@atproto/xrpc": "^0.7.7",
84
- "@atproto/pds": "^0.4.199"
83
+ "@atproto/pds": "^0.4.200",
84
+ "@atproto/xrpc": "^0.7.7"
85
85
  },
86
86
  "scripts": {
87
87
  "codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/*",
package/proto/bsky.proto CHANGED
@@ -466,6 +466,7 @@ message GetActorsRequest {
466
466
  }
467
467
 
468
468
  message ActorInfo {
469
+ reserved 20; // DO NOT REMOVE — see dataplane repo
469
470
  bool exists = 1;
470
471
  string handle = 2;
471
472
  Record profile = 3;
@@ -138,6 +138,26 @@ export const AGE_ASSURANCE_CONFIG: AppBskyAgeassuranceDefs.Config = {
138
138
  },
139
139
  ],
140
140
  },
141
+ {
142
+ countryCode: 'US',
143
+ regionCode: 'VA',
144
+ rules: [
145
+ {
146
+ $type: ids.IfAssuredOverAge,
147
+ age: 16,
148
+ access: 'full',
149
+ },
150
+ {
151
+ $type: ids.IfDeclaredOverAge,
152
+ age: 16,
153
+ access: 'full',
154
+ },
155
+ {
156
+ $type: ids.Default,
157
+ access: 'none',
158
+ },
159
+ ],
160
+ },
141
161
  {
142
162
  countryCode: 'US',
143
163
  regionCode: 'TN',
@@ -13019,7 +13019,16 @@ export const schemaDict = {
13019
13019
  defs: {
13020
13020
  main: {
13021
13021
  type: 'procedure',
13022
- description: 'Delete the current session. Requires auth.',
13022
+ description:
13023
+ "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
13024
+ errors: [
13025
+ {
13026
+ name: 'InvalidToken',
13027
+ },
13028
+ {
13029
+ name: 'ExpiredToken',
13030
+ },
13031
+ ],
13023
13032
  },
13024
13033
  },
13025
13034
  },
@@ -13218,6 +13227,9 @@ export const schemaDict = {
13218
13227
  type: 'string',
13219
13228
  format: 'did',
13220
13229
  },
13230
+ didDoc: {
13231
+ type: 'unknown',
13232
+ },
13221
13233
  email: {
13222
13234
  type: 'string',
13223
13235
  },
@@ -13227,9 +13239,6 @@ export const schemaDict = {
13227
13239
  emailAuthFactor: {
13228
13240
  type: 'boolean',
13229
13241
  },
13230
- didDoc: {
13231
- type: 'unknown',
13232
- },
13233
13242
  active: {
13234
13243
  type: 'boolean',
13235
13244
  },
@@ -13323,6 +13332,15 @@ export const schemaDict = {
13323
13332
  didDoc: {
13324
13333
  type: 'unknown',
13325
13334
  },
13335
+ email: {
13336
+ type: 'string',
13337
+ },
13338
+ emailConfirmed: {
13339
+ type: 'boolean',
13340
+ },
13341
+ emailAuthFactor: {
13342
+ type: 'boolean',
13343
+ },
13326
13344
  active: {
13327
13345
  type: 'boolean',
13328
13346
  },
@@ -13339,6 +13357,12 @@ export const schemaDict = {
13339
13357
  {
13340
13358
  name: 'AccountTakedown',
13341
13359
  },
13360
+ {
13361
+ name: 'InvalidToken',
13362
+ },
13363
+ {
13364
+ name: 'ExpiredToken',
13365
+ },
13342
13366
  ],
13343
13367
  },
13344
13368
  },
@@ -21,6 +21,7 @@ export type HandlerInput = void
21
21
  export interface HandlerError {
22
22
  status: number
23
23
  message?: string
24
+ error?: 'InvalidToken' | 'ExpiredToken'
24
25
  }
25
26
 
26
27
  export type HandlerOutput = HandlerError | void
@@ -20,10 +20,10 @@ export type InputSchema = undefined
20
20
  export interface OutputSchema {
21
21
  handle: string
22
22
  did: string
23
+ didDoc?: { [_ in string]: unknown }
23
24
  email?: string
24
25
  emailConfirmed?: boolean
25
26
  emailAuthFactor?: boolean
26
- didDoc?: { [_ in string]: unknown }
27
27
  active?: boolean
28
28
  /** 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. */
29
29
  status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})
@@ -23,6 +23,9 @@ export interface OutputSchema {
23
23
  handle: string
24
24
  did: string
25
25
  didDoc?: { [_ in string]: unknown }
26
+ email?: string
27
+ emailConfirmed?: boolean
28
+ emailAuthFactor?: boolean
26
29
  active?: boolean
27
30
  /** Hosting status of the account. If not specified, then assume 'active'. */
28
31
  status?: 'takendown' | 'suspended' | 'deactivated' | (string & {})
@@ -39,7 +42,7 @@ export interface HandlerSuccess {
39
42
  export interface HandlerError {
40
43
  status: number
41
44
  message?: string
42
- error?: 'AccountTakedown'
45
+ error?: 'AccountTakedown' | 'InvalidToken' | 'ExpiredToken'
43
46
  }
44
47
 
45
48
  export type HandlerOutput = HandlerError | HandlerSuccess