@atproto/api 0.15.24 → 0.15.25
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 +6 -0
- package/dist/client/index.d.ts +9 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +17 -9
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +308 -82
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +157 -42
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/defs.d.ts +32 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/defs.js +18 -0
- package/dist/client/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAgeAssuranceState.d.ts +19 -0
- package/dist/client/types/app/bsky/unspecced/getAgeAssuranceState.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAgeAssuranceState.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getAgeAssuranceState.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/initAgeAssurance.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/initAgeAssurance.js +11 -0
- package/dist/client/types/app/bsky/unspecced/initAgeAssurance.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +37 -9
- package/src/client/lexicons.ts +166 -43
- package/src/client/types/app/bsky/unspecced/defs.ts +50 -0
- package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +36 -0
- package/src/client/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/client/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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;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/client/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/client/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,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C,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,SAAgB,0BAA0B,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,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyUnspeccedDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export type InputSchema = undefined;
|
|
8
|
+
export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState;
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
headers?: HeadersMap;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: HeadersMap;
|
|
16
|
+
data: OutputSchema;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|
|
19
|
+
//# sourceMappingURL=getAgeAssuranceState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAgeAssuranceState.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,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;AAEjE,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getAgeAssuranceState';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getAgeAssuranceState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAgeAssuranceState.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts"],"names":[],"mappings":";;AAiCA,gCAEC;AA7BD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAiBpD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyUnspeccedDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
/** The user's email address to receive assurance instructions. */
|
|
9
|
+
email: string;
|
|
10
|
+
/** The user's preferred language for communication during the assurance process. */
|
|
11
|
+
language: string;
|
|
12
|
+
/** An ISO 3166-1 alpha-2 code of the user's location. */
|
|
13
|
+
countryCode: string;
|
|
14
|
+
}
|
|
15
|
+
export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState;
|
|
16
|
+
export interface CallOptions {
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
headers?: HeadersMap;
|
|
19
|
+
qp?: QueryParams;
|
|
20
|
+
encoding?: 'application/json';
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
//# sourceMappingURL=initAgeAssurance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initAgeAssurance.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/initAgeAssurance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,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,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.initAgeAssurance';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=initAgeAssurance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initAgeAssurance.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/initAgeAssurance.ts"],"names":[],"mappings":";;AA4CA,gCAEC;AAxCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AA4BhD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -128,8 +128,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
|
|
|
128
128
|
import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
|
|
129
129
|
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
|
|
130
130
|
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
|
|
131
|
-
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
132
131
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
|
132
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
133
133
|
import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
|
|
134
134
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
|
|
135
135
|
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
|
|
@@ -186,6 +186,7 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
186
186
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
187
187
|
import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
188
188
|
import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
189
|
+
import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
|
189
190
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
190
191
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
|
191
192
|
import * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'
|
|
@@ -201,6 +202,7 @@ import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecce
|
|
|
201
202
|
import * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
|
202
203
|
import * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'
|
|
203
204
|
import * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'
|
|
205
|
+
import * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js'
|
|
204
206
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'
|
|
205
207
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'
|
|
206
208
|
import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js'
|
|
@@ -402,8 +404,8 @@ export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
|
|
|
402
404
|
export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
|
|
403
405
|
export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
|
|
404
406
|
export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
|
|
405
|
-
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
406
407
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
|
408
|
+
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
407
409
|
export * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
|
|
408
410
|
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
|
|
409
411
|
export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
|
|
@@ -460,6 +462,7 @@ export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
460
462
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
461
463
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
462
464
|
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
465
|
+
export * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
|
463
466
|
export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
464
467
|
export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
|
465
468
|
export * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'
|
|
@@ -475,6 +478,7 @@ export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecce
|
|
|
475
478
|
export * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
|
476
479
|
export * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'
|
|
477
480
|
export * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'
|
|
481
|
+
export * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js'
|
|
478
482
|
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'
|
|
479
483
|
export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'
|
|
480
484
|
export * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js'
|
|
@@ -2183,13 +2187,6 @@ export class AppBskyFeedNS {
|
|
|
2183
2187
|
})
|
|
2184
2188
|
}
|
|
2185
2189
|
|
|
2186
|
-
getPosts(
|
|
2187
|
-
params?: AppBskyFeedGetPosts.QueryParams,
|
|
2188
|
-
opts?: AppBskyFeedGetPosts.CallOptions,
|
|
2189
|
-
): Promise<AppBskyFeedGetPosts.Response> {
|
|
2190
|
-
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
2190
|
getPostThread(
|
|
2194
2191
|
params?: AppBskyFeedGetPostThread.QueryParams,
|
|
2195
2192
|
opts?: AppBskyFeedGetPostThread.CallOptions,
|
|
@@ -2201,6 +2198,13 @@ export class AppBskyFeedNS {
|
|
|
2201
2198
|
})
|
|
2202
2199
|
}
|
|
2203
2200
|
|
|
2201
|
+
getPosts(
|
|
2202
|
+
params?: AppBskyFeedGetPosts.QueryParams,
|
|
2203
|
+
opts?: AppBskyFeedGetPosts.CallOptions,
|
|
2204
|
+
): Promise<AppBskyFeedGetPosts.Response> {
|
|
2205
|
+
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2204
2208
|
getQuotes(
|
|
2205
2209
|
params?: AppBskyFeedGetQuotes.QueryParams,
|
|
2206
2210
|
opts?: AppBskyFeedGetQuotes.CallOptions,
|
|
@@ -3885,6 +3889,18 @@ export class AppBskyUnspeccedNS {
|
|
|
3885
3889
|
this._client = client
|
|
3886
3890
|
}
|
|
3887
3891
|
|
|
3892
|
+
getAgeAssuranceState(
|
|
3893
|
+
params?: AppBskyUnspeccedGetAgeAssuranceState.QueryParams,
|
|
3894
|
+
opts?: AppBskyUnspeccedGetAgeAssuranceState.CallOptions,
|
|
3895
|
+
): Promise<AppBskyUnspeccedGetAgeAssuranceState.Response> {
|
|
3896
|
+
return this._client.call(
|
|
3897
|
+
'app.bsky.unspecced.getAgeAssuranceState',
|
|
3898
|
+
params,
|
|
3899
|
+
undefined,
|
|
3900
|
+
opts,
|
|
3901
|
+
)
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3888
3904
|
getConfig(
|
|
3889
3905
|
params?: AppBskyUnspeccedGetConfig.QueryParams,
|
|
3890
3906
|
opts?: AppBskyUnspeccedGetConfig.CallOptions,
|
|
@@ -4065,6 +4081,18 @@ export class AppBskyUnspeccedNS {
|
|
|
4065
4081
|
)
|
|
4066
4082
|
}
|
|
4067
4083
|
|
|
4084
|
+
initAgeAssurance(
|
|
4085
|
+
data?: AppBskyUnspeccedInitAgeAssurance.InputSchema,
|
|
4086
|
+
opts?: AppBskyUnspeccedInitAgeAssurance.CallOptions,
|
|
4087
|
+
): Promise<AppBskyUnspeccedInitAgeAssurance.Response> {
|
|
4088
|
+
return this._client.call(
|
|
4089
|
+
'app.bsky.unspecced.initAgeAssurance',
|
|
4090
|
+
opts?.qp,
|
|
4091
|
+
data,
|
|
4092
|
+
opts,
|
|
4093
|
+
)
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4068
4096
|
searchActorsSkeleton(
|
|
4069
4097
|
params?: AppBskyUnspeccedSearchActorsSkeleton.QueryParams,
|
|
4070
4098
|
opts?: AppBskyUnspeccedSearchActorsSkeleton.CallOptions,
|
package/src/client/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
|
+
}
|