@atproto/pds 0.4.159 → 0.4.160
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.
- package/CHANGELOG.md +7 -0
- package/dist/lexicon/index.d.ts +6 -2
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +12 -4
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +308 -82
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +157 -42
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +32 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/defs.js +18 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.d.ts +18 -0
- package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts +28 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.js.map +1 -0
- package/package.json +5 -5
- package/src/lexicon/index.ts +37 -11
- package/src/lexicon/lexicons.ts +166 -43
- package/src/lexicon/types/app/bsky/unspecced/defs.ts +50 -0
- package/src/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.ts +34 -0
- package/src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts +47 -0
- package/tsconfig.build.tsbuildinfo +1 -1
@@ -89,4 +89,36 @@ export interface ThreadItemBlocked {
|
|
89
89
|
}
|
90
90
|
export declare function isThreadItemBlocked<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.defs", "threadItemBlocked">;
|
91
91
|
export declare function validateThreadItemBlocked<V>(v: V): ValidationResult<ThreadItemBlocked & V>;
|
92
|
+
/** The computed state of the age assurance process, returned to the user in question on certain authenticated requests. */
|
93
|
+
export interface AgeAssuranceState {
|
94
|
+
$type?: 'app.bsky.unspecced.defs#ageAssuranceState';
|
95
|
+
/** The timestamp when this state was last updated. */
|
96
|
+
lastInitiatedAt?: string;
|
97
|
+
/** The status of the age assurance process. */
|
98
|
+
status: 'unknown' | 'pending' | 'assured' | 'blocked' | (string & {});
|
99
|
+
}
|
100
|
+
export declare function isAgeAssuranceState<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.defs", "ageAssuranceState">;
|
101
|
+
export declare function validateAgeAssuranceState<V>(v: V): ValidationResult<AgeAssuranceState & V>;
|
102
|
+
/** Object used to store age assurance data in stash. */
|
103
|
+
export interface AgeAssuranceEvent {
|
104
|
+
$type?: 'app.bsky.unspecced.defs#ageAssuranceEvent';
|
105
|
+
/** The date and time of this write operation. */
|
106
|
+
createdAt: string;
|
107
|
+
/** The status of the age assurance process. */
|
108
|
+
status: 'unknown' | 'pending' | 'assured' | (string & {});
|
109
|
+
/** The unique identifier for this instance of the age assurance flow, in UUID format. */
|
110
|
+
attemptId: string;
|
111
|
+
/** The email used for AA. */
|
112
|
+
email?: string;
|
113
|
+
/** The IP address used when initiating the AA flow. */
|
114
|
+
initIp?: string;
|
115
|
+
/** The user agent used when initiating the AA flow. */
|
116
|
+
initUa?: string;
|
117
|
+
/** The IP address used when completing the AA flow. */
|
118
|
+
completeIp?: string;
|
119
|
+
/** The user agent used when completing the AA flow. */
|
120
|
+
completeUa?: string;
|
121
|
+
}
|
122
|
+
export declare function isAgeAssuranceEvent<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.defs", "ageAssuranceEvent">;
|
123
|
+
export declare function validateAgeAssuranceEvent<V>(v: V): ValidationResult<AgeAssuranceEvent & V>;
|
92
124
|
//# sourceMappingURL=defs.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,eAAe,MAAM,iBAAiB,CAAA;AAMvD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,4CAA4C,CAAA;IACpD,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oGAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,6CAA6C,CAAA;IACrD,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qGAE5C;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6CAElD;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,mDAAmD,CAAA;IAC3D,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2GAElD;AAED,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mDAMxD;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW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wD;AACxD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAA;IACjB,+CAA+C;IAC/C,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACzD,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAA;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAID,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAE1C;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2CAEhD"}
|
@@ -20,6 +20,10 @@ exports.isThreadItemNotFound = isThreadItemNotFound;
|
|
20
20
|
exports.validateThreadItemNotFound = validateThreadItemNotFound;
|
21
21
|
exports.isThreadItemBlocked = isThreadItemBlocked;
|
22
22
|
exports.validateThreadItemBlocked = validateThreadItemBlocked;
|
23
|
+
exports.isAgeAssuranceState = isAgeAssuranceState;
|
24
|
+
exports.validateAgeAssuranceState = validateAgeAssuranceState;
|
25
|
+
exports.isAgeAssuranceEvent = isAgeAssuranceEvent;
|
26
|
+
exports.validateAgeAssuranceEvent = validateAgeAssuranceEvent;
|
23
27
|
const lexicons_1 = require("../../../../lexicons");
|
24
28
|
const util_1 = require("../../../../util");
|
25
29
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
@@ -94,4 +98,18 @@ function isThreadItemBlocked(v) {
|
|
94
98
|
function validateThreadItemBlocked(v) {
|
95
99
|
return validate(v, id, hashThreadItemBlocked);
|
96
100
|
}
|
101
|
+
const hashAgeAssuranceState = 'ageAssuranceState';
|
102
|
+
function isAgeAssuranceState(v) {
|
103
|
+
return is$typed(v, id, hashAgeAssuranceState);
|
104
|
+
}
|
105
|
+
function validateAgeAssuranceState(v) {
|
106
|
+
return validate(v, id, hashAgeAssuranceState);
|
107
|
+
}
|
108
|
+
const hashAgeAssuranceEvent = 'ageAssuranceEvent';
|
109
|
+
function isAgeAssuranceEvent(v) {
|
110
|
+
return is$typed(v, id, hashAgeAssuranceEvent);
|
111
|
+
}
|
112
|
+
function validateAgeAssuranceEvent(v) {
|
113
|
+
return validate(v, id, hashAgeAssuranceEvent);
|
114
|
+
}
|
97
115
|
//# sourceMappingURL=defs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":";;AAyBA,oDAEC;AAED,gEAEC;AASD,sDAEC;AAED,kEAEC;AASD,kEAEC;AAED,8EAMC;AAYD,0CAEC;AAED,sDAEC;AAgBD,0CAEC;AAED,sDAEC;AAgBD,kCAEC;AAED,8CAEC;AAmBD,4CAEC;AAED,wDAEC;AAQD,sEAEC;AAED,kFAMC;AAQD,oDAEC;AAED,gEAEC;AASD,kDAEC;AAED,8DAEC;
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":";;AAyBA,oDAEC;AAED,gEAEC;AASD,sDAEC;AAED,kEAEC;AASD,kEAEC;AAED,8EAMC;AAYD,0CAEC;AAED,sDAEC;AAgBD,0CAEC;AAED,sDAEC;AAgBD,kCAEC;AAED,8CAEC;AAmBD,4CAEC;AAED,wDAEC;AAQD,sEAEC;AAED,kFAMC;AAQD,oDAEC;AAED,gEAEC;AASD,kDAEC;AAED,8DAEC;AAaD,kDAEC;AAED,8DAEC;AAyBD,kDAEC;AAED,8DAEC;AApPD,mDAA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0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAOD,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,SAAgB,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC;AAWD,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,SAAgB,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC;AAuBD,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,SAAgB,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type * as AppBskyUnspeccedDefs from './defs.js';
|
2
|
+
export type QueryParams = {};
|
3
|
+
export type InputSchema = undefined;
|
4
|
+
export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState;
|
5
|
+
export type HandlerInput = void;
|
6
|
+
export interface HandlerSuccess {
|
7
|
+
encoding: 'application/json';
|
8
|
+
body: OutputSchema;
|
9
|
+
headers?: {
|
10
|
+
[key: string]: string;
|
11
|
+
};
|
12
|
+
}
|
13
|
+
export interface HandlerError {
|
14
|
+
status: number;
|
15
|
+
message?: string;
|
16
|
+
}
|
17
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
18
|
+
//# sourceMappingURL=getAgeAssuranceState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getAgeAssuranceState.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAA;AACjE,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"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
4
|
+
const util_1 = require("../../../../util");
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
6
|
+
const id = 'app.bsky.unspecced.getAgeAssuranceState';
|
7
|
+
//# sourceMappingURL=getAgeAssuranceState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getAgeAssuranceState.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type * as AppBskyUnspeccedDefs from './defs.js';
|
2
|
+
export type QueryParams = {};
|
3
|
+
export interface InputSchema {
|
4
|
+
/** The user's email address to receive assurance instructions. */
|
5
|
+
email: string;
|
6
|
+
/** The user's preferred language for communication during the assurance process. */
|
7
|
+
language: string;
|
8
|
+
/** An ISO 3166-1 alpha-2 code of the user's location. */
|
9
|
+
countryCode: string;
|
10
|
+
}
|
11
|
+
export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState;
|
12
|
+
export interface HandlerInput {
|
13
|
+
encoding: 'application/json';
|
14
|
+
body: InputSchema;
|
15
|
+
}
|
16
|
+
export interface HandlerSuccess {
|
17
|
+
encoding: 'application/json';
|
18
|
+
body: OutputSchema;
|
19
|
+
headers?: {
|
20
|
+
[key: string]: string;
|
21
|
+
};
|
22
|
+
}
|
23
|
+
export interface HandlerError {
|
24
|
+
status: number;
|
25
|
+
message?: string;
|
26
|
+
}
|
27
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
28
|
+
//# sourceMappingURL=initAgeAssurance.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initAgeAssurance.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAA;IAChB,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAA;AAEjE,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
4
|
+
const util_1 = require("../../../../util");
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
6
|
+
const id = 'app.bsky.unspecced.initAgeAssurance';
|
7
|
+
//# sourceMappingURL=initAgeAssurance.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initAgeAssurance.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.160",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"zod": "^3.23.8",
|
50
50
|
"@atproto-labs/fetch-node": "0.1.9",
|
51
51
|
"@atproto-labs/xrpc-utils": "0.0.17",
|
52
|
-
"@atproto/api": "^0.15.
|
52
|
+
"@atproto/api": "^0.15.25",
|
53
53
|
"@atproto/aws": "^0.2.25",
|
54
54
|
"@atproto/common": "^0.4.11",
|
55
55
|
"@atproto/crypto": "^0.4.4",
|
@@ -77,9 +77,9 @@
|
|
77
77
|
"ts-node": "^10.8.2",
|
78
78
|
"typescript": "^5.6.3",
|
79
79
|
"ws": "^8.12.0",
|
80
|
-
"@atproto/api": "^0.15.
|
81
|
-
"@atproto/bsky": "^0.0.
|
82
|
-
"@atproto/dev-env": "^0.3.
|
80
|
+
"@atproto/api": "^0.15.25",
|
81
|
+
"@atproto/bsky": "^0.0.171",
|
82
|
+
"@atproto/dev-env": "^0.3.154",
|
83
83
|
"@atproto/lex-cli": "^0.9.0",
|
84
84
|
"@atproto/oauth-client-browser-example": "0.0.5"
|
85
85
|
},
|
package/src/lexicon/index.ts
CHANGED
@@ -109,8 +109,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
|
|
109
109
|
import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
|
110
110
|
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
|
111
111
|
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
|
112
|
-
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
113
112
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
113
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
114
114
|
import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
|
115
115
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
|
116
116
|
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
|
@@ -148,6 +148,7 @@ import * as AppBskyNotificationPutPreferences from './types/app/bsky/notificatio
|
|
148
148
|
import * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
|
149
149
|
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
|
150
150
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
151
|
+
import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
151
152
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
152
153
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
153
154
|
import * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'
|
@@ -163,6 +164,7 @@ import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecce
|
|
163
164
|
import * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
164
165
|
import * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'
|
165
166
|
import * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'
|
167
|
+
import * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js'
|
166
168
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'
|
167
169
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'
|
168
170
|
import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js'
|
@@ -1652,27 +1654,27 @@ export class AppBskyFeedNS {
|
|
1652
1654
|
return this._server.xrpc.method(nsid, cfg)
|
1653
1655
|
}
|
1654
1656
|
|
1655
|
-
|
1657
|
+
getPostThread<A extends Auth = void>(
|
1656
1658
|
cfg: MethodConfigOrHandler<
|
1657
1659
|
A,
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1660
|
+
AppBskyFeedGetPostThread.QueryParams,
|
1661
|
+
AppBskyFeedGetPostThread.HandlerInput,
|
1662
|
+
AppBskyFeedGetPostThread.HandlerOutput
|
1661
1663
|
>,
|
1662
1664
|
) {
|
1663
|
-
const nsid = 'app.bsky.feed.
|
1665
|
+
const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
|
1664
1666
|
return this._server.xrpc.method(nsid, cfg)
|
1665
1667
|
}
|
1666
1668
|
|
1667
|
-
|
1669
|
+
getPosts<A extends Auth = void>(
|
1668
1670
|
cfg: MethodConfigOrHandler<
|
1669
1671
|
A,
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1672
|
+
AppBskyFeedGetPosts.QueryParams,
|
1673
|
+
AppBskyFeedGetPosts.HandlerInput,
|
1674
|
+
AppBskyFeedGetPosts.HandlerOutput
|
1673
1675
|
>,
|
1674
1676
|
) {
|
1675
|
-
const nsid = 'app.bsky.feed.
|
1677
|
+
const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
|
1676
1678
|
return this._server.xrpc.method(nsid, cfg)
|
1677
1679
|
}
|
1678
1680
|
|
@@ -2160,6 +2162,18 @@ export class AppBskyUnspeccedNS {
|
|
2160
2162
|
this._server = server
|
2161
2163
|
}
|
2162
2164
|
|
2165
|
+
getAgeAssuranceState<A extends Auth = void>(
|
2166
|
+
cfg: MethodConfigOrHandler<
|
2167
|
+
A,
|
2168
|
+
AppBskyUnspeccedGetAgeAssuranceState.QueryParams,
|
2169
|
+
AppBskyUnspeccedGetAgeAssuranceState.HandlerInput,
|
2170
|
+
AppBskyUnspeccedGetAgeAssuranceState.HandlerOutput
|
2171
|
+
>,
|
2172
|
+
) {
|
2173
|
+
const nsid = 'app.bsky.unspecced.getAgeAssuranceState' // @ts-ignore
|
2174
|
+
return this._server.xrpc.method(nsid, cfg)
|
2175
|
+
}
|
2176
|
+
|
2163
2177
|
getConfig<A extends Auth = void>(
|
2164
2178
|
cfg: MethodConfigOrHandler<
|
2165
2179
|
A,
|
@@ -2340,6 +2354,18 @@ export class AppBskyUnspeccedNS {
|
|
2340
2354
|
return this._server.xrpc.method(nsid, cfg)
|
2341
2355
|
}
|
2342
2356
|
|
2357
|
+
initAgeAssurance<A extends Auth = void>(
|
2358
|
+
cfg: MethodConfigOrHandler<
|
2359
|
+
A,
|
2360
|
+
AppBskyUnspeccedInitAgeAssurance.QueryParams,
|
2361
|
+
AppBskyUnspeccedInitAgeAssurance.HandlerInput,
|
2362
|
+
AppBskyUnspeccedInitAgeAssurance.HandlerOutput
|
2363
|
+
>,
|
2364
|
+
) {
|
2365
|
+
const nsid = 'app.bsky.unspecced.initAgeAssurance' // @ts-ignore
|
2366
|
+
return this._server.xrpc.method(nsid, cfg)
|
2367
|
+
}
|
2368
|
+
|
2343
2369
|
searchActorsSkeleton<A extends Auth = void>(
|
2344
2370
|
cfg: MethodConfigOrHandler<
|
2345
2371
|
A,
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -7282,48 +7282,6 @@ export const schemaDict = {
|
|
7282
7282
|
},
|
7283
7283
|
},
|
7284
7284
|
},
|
7285
|
-
AppBskyFeedGetPosts: {
|
7286
|
-
lexicon: 1,
|
7287
|
-
id: 'app.bsky.feed.getPosts',
|
7288
|
-
defs: {
|
7289
|
-
main: {
|
7290
|
-
type: 'query',
|
7291
|
-
description:
|
7292
|
-
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
7293
|
-
parameters: {
|
7294
|
-
type: 'params',
|
7295
|
-
required: ['uris'],
|
7296
|
-
properties: {
|
7297
|
-
uris: {
|
7298
|
-
type: 'array',
|
7299
|
-
description: 'List of post AT-URIs to return hydrated views for.',
|
7300
|
-
items: {
|
7301
|
-
type: 'string',
|
7302
|
-
format: 'at-uri',
|
7303
|
-
},
|
7304
|
-
maxLength: 25,
|
7305
|
-
},
|
7306
|
-
},
|
7307
|
-
},
|
7308
|
-
output: {
|
7309
|
-
encoding: 'application/json',
|
7310
|
-
schema: {
|
7311
|
-
type: 'object',
|
7312
|
-
required: ['posts'],
|
7313
|
-
properties: {
|
7314
|
-
posts: {
|
7315
|
-
type: 'array',
|
7316
|
-
items: {
|
7317
|
-
type: 'ref',
|
7318
|
-
ref: 'lex:app.bsky.feed.defs#postView',
|
7319
|
-
},
|
7320
|
-
},
|
7321
|
-
},
|
7322
|
-
},
|
7323
|
-
},
|
7324
|
-
},
|
7325
|
-
},
|
7326
|
-
},
|
7327
7285
|
AppBskyFeedGetPostThread: {
|
7328
7286
|
lexicon: 1,
|
7329
7287
|
id: 'app.bsky.feed.getPostThread',
|
@@ -7388,6 +7346,48 @@ export const schemaDict = {
|
|
7388
7346
|
},
|
7389
7347
|
},
|
7390
7348
|
},
|
7349
|
+
AppBskyFeedGetPosts: {
|
7350
|
+
lexicon: 1,
|
7351
|
+
id: 'app.bsky.feed.getPosts',
|
7352
|
+
defs: {
|
7353
|
+
main: {
|
7354
|
+
type: 'query',
|
7355
|
+
description:
|
7356
|
+
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
7357
|
+
parameters: {
|
7358
|
+
type: 'params',
|
7359
|
+
required: ['uris'],
|
7360
|
+
properties: {
|
7361
|
+
uris: {
|
7362
|
+
type: 'array',
|
7363
|
+
description: 'List of post AT-URIs to return hydrated views for.',
|
7364
|
+
items: {
|
7365
|
+
type: 'string',
|
7366
|
+
format: 'at-uri',
|
7367
|
+
},
|
7368
|
+
maxLength: 25,
|
7369
|
+
},
|
7370
|
+
},
|
7371
|
+
},
|
7372
|
+
output: {
|
7373
|
+
encoding: 'application/json',
|
7374
|
+
schema: {
|
7375
|
+
type: 'object',
|
7376
|
+
required: ['posts'],
|
7377
|
+
properties: {
|
7378
|
+
posts: {
|
7379
|
+
type: 'array',
|
7380
|
+
items: {
|
7381
|
+
type: 'ref',
|
7382
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
7383
|
+
},
|
7384
|
+
},
|
7385
|
+
},
|
7386
|
+
},
|
7387
|
+
},
|
7388
|
+
},
|
7389
|
+
},
|
7390
|
+
},
|
7391
7391
|
AppBskyFeedGetQuotes: {
|
7392
7392
|
lexicon: 1,
|
7393
7393
|
id: 'app.bsky.feed.getQuotes',
|
@@ -10675,6 +10675,84 @@ export const schemaDict = {
|
|
10675
10675
|
},
|
10676
10676
|
},
|
10677
10677
|
},
|
10678
|
+
ageAssuranceState: {
|
10679
|
+
type: 'object',
|
10680
|
+
description:
|
10681
|
+
'The computed state of the age assurance process, returned to the user in question on certain authenticated requests.',
|
10682
|
+
required: ['status'],
|
10683
|
+
properties: {
|
10684
|
+
lastInitiatedAt: {
|
10685
|
+
type: 'string',
|
10686
|
+
format: 'datetime',
|
10687
|
+
description: 'The timestamp when this state was last updated.',
|
10688
|
+
},
|
10689
|
+
status: {
|
10690
|
+
type: 'string',
|
10691
|
+
description: 'The status of the age assurance process.',
|
10692
|
+
knownValues: ['unknown', 'pending', 'assured', 'blocked'],
|
10693
|
+
},
|
10694
|
+
},
|
10695
|
+
},
|
10696
|
+
ageAssuranceEvent: {
|
10697
|
+
type: 'object',
|
10698
|
+
description: 'Object used to store age assurance data in stash.',
|
10699
|
+
required: ['createdAt', 'status', 'attemptId'],
|
10700
|
+
properties: {
|
10701
|
+
createdAt: {
|
10702
|
+
type: 'string',
|
10703
|
+
format: 'datetime',
|
10704
|
+
description: 'The date and time of this write operation.',
|
10705
|
+
},
|
10706
|
+
status: {
|
10707
|
+
type: 'string',
|
10708
|
+
description: 'The status of the age assurance process.',
|
10709
|
+
knownValues: ['unknown', 'pending', 'assured'],
|
10710
|
+
},
|
10711
|
+
attemptId: {
|
10712
|
+
type: 'string',
|
10713
|
+
description:
|
10714
|
+
'The unique identifier for this instance of the age assurance flow, in UUID format.',
|
10715
|
+
},
|
10716
|
+
email: {
|
10717
|
+
type: 'string',
|
10718
|
+
description: 'The email used for AA.',
|
10719
|
+
},
|
10720
|
+
initIp: {
|
10721
|
+
type: 'string',
|
10722
|
+
description: 'The IP address used when initiating the AA flow.',
|
10723
|
+
},
|
10724
|
+
initUa: {
|
10725
|
+
type: 'string',
|
10726
|
+
description: 'The user agent used when initiating the AA flow.',
|
10727
|
+
},
|
10728
|
+
completeIp: {
|
10729
|
+
type: 'string',
|
10730
|
+
description: 'The IP address used when completing the AA flow.',
|
10731
|
+
},
|
10732
|
+
completeUa: {
|
10733
|
+
type: 'string',
|
10734
|
+
description: 'The user agent used when completing the AA flow.',
|
10735
|
+
},
|
10736
|
+
},
|
10737
|
+
},
|
10738
|
+
},
|
10739
|
+
},
|
10740
|
+
AppBskyUnspeccedGetAgeAssuranceState: {
|
10741
|
+
lexicon: 1,
|
10742
|
+
id: 'app.bsky.unspecced.getAgeAssuranceState',
|
10743
|
+
defs: {
|
10744
|
+
main: {
|
10745
|
+
type: 'query',
|
10746
|
+
description:
|
10747
|
+
'Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.',
|
10748
|
+
output: {
|
10749
|
+
encoding: 'application/json',
|
10750
|
+
schema: {
|
10751
|
+
type: 'ref',
|
10752
|
+
ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
|
10753
|
+
},
|
10754
|
+
},
|
10755
|
+
},
|
10678
10756
|
},
|
10679
10757
|
},
|
10680
10758
|
AppBskyUnspeccedGetConfig: {
|
@@ -11438,6 +11516,48 @@ export const schemaDict = {
|
|
11438
11516
|
},
|
11439
11517
|
},
|
11440
11518
|
},
|
11519
|
+
AppBskyUnspeccedInitAgeAssurance: {
|
11520
|
+
lexicon: 1,
|
11521
|
+
id: 'app.bsky.unspecced.initAgeAssurance',
|
11522
|
+
defs: {
|
11523
|
+
main: {
|
11524
|
+
type: 'procedure',
|
11525
|
+
description:
|
11526
|
+
"Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.",
|
11527
|
+
input: {
|
11528
|
+
encoding: 'application/json',
|
11529
|
+
schema: {
|
11530
|
+
type: 'object',
|
11531
|
+
required: ['email', 'language', 'countryCode'],
|
11532
|
+
properties: {
|
11533
|
+
email: {
|
11534
|
+
type: 'string',
|
11535
|
+
description:
|
11536
|
+
"The user's email address to receive assurance instructions.",
|
11537
|
+
},
|
11538
|
+
language: {
|
11539
|
+
type: 'string',
|
11540
|
+
description:
|
11541
|
+
"The user's preferred language for communication during the assurance process.",
|
11542
|
+
},
|
11543
|
+
countryCode: {
|
11544
|
+
type: 'string',
|
11545
|
+
description:
|
11546
|
+
"An ISO 3166-1 alpha-2 code of the user's location.",
|
11547
|
+
},
|
11548
|
+
},
|
11549
|
+
},
|
11550
|
+
},
|
11551
|
+
output: {
|
11552
|
+
encoding: 'application/json',
|
11553
|
+
schema: {
|
11554
|
+
type: 'ref',
|
11555
|
+
ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
|
11556
|
+
},
|
11557
|
+
},
|
11558
|
+
},
|
11559
|
+
},
|
11560
|
+
},
|
11441
11561
|
AppBskyUnspeccedSearchActorsSkeleton: {
|
11442
11562
|
lexicon: 1,
|
11443
11563
|
id: 'app.bsky.unspecced.searchActorsSkeleton',
|
@@ -17504,8 +17624,8 @@ export const ids = {
|
|
17504
17624
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
17505
17625
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
17506
17626
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
17507
|
-
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
17508
17627
|
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
17628
|
+
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
17509
17629
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
17510
17630
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
17511
17631
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
@@ -17566,6 +17686,8 @@ export const ids = {
|
|
17566
17686
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
17567
17687
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
17568
17688
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
17689
|
+
AppBskyUnspeccedGetAgeAssuranceState:
|
17690
|
+
'app.bsky.unspecced.getAgeAssuranceState',
|
17569
17691
|
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|
17570
17692
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
17571
17693
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
@@ -17589,6 +17711,7 @@ export const ids = {
|
|
17589
17711
|
AppBskyUnspeccedGetTrendingTopics: 'app.bsky.unspecced.getTrendingTopics',
|
17590
17712
|
AppBskyUnspeccedGetTrends: 'app.bsky.unspecced.getTrends',
|
17591
17713
|
AppBskyUnspeccedGetTrendsSkeleton: 'app.bsky.unspecced.getTrendsSkeleton',
|
17714
|
+
AppBskyUnspeccedInitAgeAssurance: 'app.bsky.unspecced.initAgeAssurance',
|
17592
17715
|
AppBskyUnspeccedSearchActorsSkeleton:
|
17593
17716
|
'app.bsky.unspecced.searchActorsSkeleton',
|
17594
17717
|
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
@@ -198,3 +198,53 @@ export function isThreadItemBlocked<V>(v: V) {
|
|
198
198
|
export function validateThreadItemBlocked<V>(v: V) {
|
199
199
|
return validate<ThreadItemBlocked & V>(v, id, hashThreadItemBlocked)
|
200
200
|
}
|
201
|
+
|
202
|
+
/** The computed state of the age assurance process, returned to the user in question on certain authenticated requests. */
|
203
|
+
export interface AgeAssuranceState {
|
204
|
+
$type?: 'app.bsky.unspecced.defs#ageAssuranceState'
|
205
|
+
/** The timestamp when this state was last updated. */
|
206
|
+
lastInitiatedAt?: string
|
207
|
+
/** The status of the age assurance process. */
|
208
|
+
status: 'unknown' | 'pending' | 'assured' | 'blocked' | (string & {})
|
209
|
+
}
|
210
|
+
|
211
|
+
const hashAgeAssuranceState = 'ageAssuranceState'
|
212
|
+
|
213
|
+
export function isAgeAssuranceState<V>(v: V) {
|
214
|
+
return is$typed(v, id, hashAgeAssuranceState)
|
215
|
+
}
|
216
|
+
|
217
|
+
export function validateAgeAssuranceState<V>(v: V) {
|
218
|
+
return validate<AgeAssuranceState & V>(v, id, hashAgeAssuranceState)
|
219
|
+
}
|
220
|
+
|
221
|
+
/** Object used to store age assurance data in stash. */
|
222
|
+
export interface AgeAssuranceEvent {
|
223
|
+
$type?: 'app.bsky.unspecced.defs#ageAssuranceEvent'
|
224
|
+
/** The date and time of this write operation. */
|
225
|
+
createdAt: string
|
226
|
+
/** The status of the age assurance process. */
|
227
|
+
status: 'unknown' | 'pending' | 'assured' | (string & {})
|
228
|
+
/** The unique identifier for this instance of the age assurance flow, in UUID format. */
|
229
|
+
attemptId: string
|
230
|
+
/** The email used for AA. */
|
231
|
+
email?: string
|
232
|
+
/** The IP address used when initiating the AA flow. */
|
233
|
+
initIp?: string
|
234
|
+
/** The user agent used when initiating the AA flow. */
|
235
|
+
initUa?: string
|
236
|
+
/** The IP address used when completing the AA flow. */
|
237
|
+
completeIp?: string
|
238
|
+
/** The user agent used when completing the AA flow. */
|
239
|
+
completeUa?: string
|
240
|
+
}
|
241
|
+
|
242
|
+
const hashAgeAssuranceEvent = 'ageAssuranceEvent'
|
243
|
+
|
244
|
+
export function isAgeAssuranceEvent<V>(v: V) {
|
245
|
+
return is$typed(v, id, hashAgeAssuranceEvent)
|
246
|
+
}
|
247
|
+
|
248
|
+
export function validateAgeAssuranceEvent<V>(v: V) {
|
249
|
+
return validate<AgeAssuranceEvent & V>(v, id, hashAgeAssuranceEvent)
|
250
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as AppBskyUnspeccedDefs from './defs.js'
|
13
|
+
|
14
|
+
const is$typed = _is$typed,
|
15
|
+
validate = _validate
|
16
|
+
const id = 'app.bsky.unspecced.getAgeAssuranceState'
|
17
|
+
|
18
|
+
export type QueryParams = {}
|
19
|
+
export type InputSchema = undefined
|
20
|
+
export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState
|
21
|
+
export type HandlerInput = void
|
22
|
+
|
23
|
+
export interface HandlerSuccess {
|
24
|
+
encoding: 'application/json'
|
25
|
+
body: OutputSchema
|
26
|
+
headers?: { [key: string]: string }
|
27
|
+
}
|
28
|
+
|
29
|
+
export interface HandlerError {
|
30
|
+
status: number
|
31
|
+
message?: string
|
32
|
+
}
|
33
|
+
|
34
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|