@atproto/pds 0.4.160 → 0.4.162
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 +18 -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 +348 -82
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +187 -42
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/unregisterPush.d.ts +17 -0
- package/dist/lexicon/types/app/bsky/notification/unregisterPush.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/unregisterPush.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/unregisterPush.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts +58 -0
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js +34 -0
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +3 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/lexicon/index.ts +37 -11
- package/src/lexicon/lexicons.ts +199 -43
- package/src/lexicon/types/app/bsky/notification/unregisterPush.ts +36 -0
- package/src/lexicon/types/app/bsky/unspecced/checkHandleAvailability.ts +99 -0
- package/src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts +1 -0
- package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
@@ -0,0 +1,17 @@
|
|
1
|
+
export type QueryParams = {};
|
2
|
+
export interface InputSchema {
|
3
|
+
serviceDid: string;
|
4
|
+
token: string;
|
5
|
+
platform: 'ios' | 'android' | 'web' | (string & {});
|
6
|
+
appId: string;
|
7
|
+
}
|
8
|
+
export interface HandlerInput {
|
9
|
+
encoding: 'application/json';
|
10
|
+
body: InputSchema;
|
11
|
+
}
|
12
|
+
export interface HandlerError {
|
13
|
+
status: number;
|
14
|
+
message?: string;
|
15
|
+
}
|
16
|
+
export type HandlerOutput = HandlerError | void;
|
17
|
+
//# sourceMappingURL=unregisterPush.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unregisterPush.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/unregisterPush.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACnD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,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.notification.unregisterPush';
|
7
|
+
//# sourceMappingURL=unregisterPush.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unregisterPush.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/unregisterPush.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
5
|
+
import { type $Typed } from '../../../../util';
|
6
|
+
export type QueryParams = {
|
7
|
+
/** Tentative handle. Will be checked for availability or used to build handle suggestions. */
|
8
|
+
handle: string;
|
9
|
+
/** User-provided email. Might be used to build handle suggestions. */
|
10
|
+
email?: string;
|
11
|
+
/** User-provided birth date. Might be used to build handle suggestions. */
|
12
|
+
birthDate?: string;
|
13
|
+
};
|
14
|
+
export type InputSchema = undefined;
|
15
|
+
export interface OutputSchema {
|
16
|
+
/** Echo of the input handle. */
|
17
|
+
handle: string;
|
18
|
+
result: $Typed<ResultAvailable> | $Typed<ResultUnavailable> | {
|
19
|
+
$type: string;
|
20
|
+
};
|
21
|
+
}
|
22
|
+
export type HandlerInput = void;
|
23
|
+
export interface HandlerSuccess {
|
24
|
+
encoding: 'application/json';
|
25
|
+
body: OutputSchema;
|
26
|
+
headers?: {
|
27
|
+
[key: string]: string;
|
28
|
+
};
|
29
|
+
}
|
30
|
+
export interface HandlerError {
|
31
|
+
status: number;
|
32
|
+
message?: string;
|
33
|
+
error?: 'InvalidEmail';
|
34
|
+
}
|
35
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
36
|
+
/** Indicates the provided handle is available. */
|
37
|
+
export interface ResultAvailable {
|
38
|
+
$type?: 'app.bsky.unspecced.checkHandleAvailability#resultAvailable';
|
39
|
+
}
|
40
|
+
export declare function isResultAvailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.checkHandleAvailability", "resultAvailable">;
|
41
|
+
export declare function validateResultAvailable<V>(v: V): ValidationResult<ResultAvailable & V>;
|
42
|
+
/** Indicates the provided handle is unavailable and gives suggestions of available handles. */
|
43
|
+
export interface ResultUnavailable {
|
44
|
+
$type?: 'app.bsky.unspecced.checkHandleAvailability#resultUnavailable';
|
45
|
+
/** List of suggested handles based on the provided inputs. */
|
46
|
+
suggestions: Suggestion[];
|
47
|
+
}
|
48
|
+
export declare function isResultUnavailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.checkHandleAvailability", "resultUnavailable">;
|
49
|
+
export declare function validateResultUnavailable<V>(v: V): ValidationResult<ResultUnavailable & V>;
|
50
|
+
export interface Suggestion {
|
51
|
+
$type?: 'app.bsky.unspecced.checkHandleAvailability#suggestion';
|
52
|
+
handle: string;
|
53
|
+
/** Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. */
|
54
|
+
method: string;
|
55
|
+
}
|
56
|
+
export declare function isSuggestion<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.checkHandleAvailability", "suggestion">;
|
57
|
+
export declare function validateSuggestion<V>(v: V): ValidationResult<Suggestion & V>;
|
58
|
+
//# sourceMappingURL=checkHandleAvailability.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"checkHandleAvailability.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/checkHandleAvailability.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,MAAM,MAAM,WAAW,GAAG;IACxB,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAA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AAC,2CAEhD;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,uDAAuD,CAAA;IAC/D,MAAM,EAAE,MAAM,CAAA;IACd,6GAA6G;IAC7G,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+GAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isResultAvailable = isResultAvailable;
|
4
|
+
exports.validateResultAvailable = validateResultAvailable;
|
5
|
+
exports.isResultUnavailable = isResultUnavailable;
|
6
|
+
exports.validateResultUnavailable = validateResultUnavailable;
|
7
|
+
exports.isSuggestion = isSuggestion;
|
8
|
+
exports.validateSuggestion = validateSuggestion;
|
9
|
+
const lexicons_1 = require("../../../../lexicons");
|
10
|
+
const util_1 = require("../../../../util");
|
11
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
12
|
+
const id = 'app.bsky.unspecced.checkHandleAvailability';
|
13
|
+
const hashResultAvailable = 'resultAvailable';
|
14
|
+
function isResultAvailable(v) {
|
15
|
+
return is$typed(v, id, hashResultAvailable);
|
16
|
+
}
|
17
|
+
function validateResultAvailable(v) {
|
18
|
+
return validate(v, id, hashResultAvailable);
|
19
|
+
}
|
20
|
+
const hashResultUnavailable = 'resultUnavailable';
|
21
|
+
function isResultUnavailable(v) {
|
22
|
+
return is$typed(v, id, hashResultUnavailable);
|
23
|
+
}
|
24
|
+
function validateResultUnavailable(v) {
|
25
|
+
return validate(v, id, hashResultUnavailable);
|
26
|
+
}
|
27
|
+
const hashSuggestion = 'suggestion';
|
28
|
+
function isSuggestion(v) {
|
29
|
+
return is$typed(v, id, hashSuggestion);
|
30
|
+
}
|
31
|
+
function validateSuggestion(v) {
|
32
|
+
return validate(v, id, hashSuggestion);
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=checkHandleAvailability.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"checkHandleAvailability.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/checkHandleAvailability.ts"],"names":[],"mappings":";;AA0DA,8CAEC;AAED,0DAEC;AAWD,kDAEC;AAED,8DAEC;AAWD,oCAEC;AAED,gDAEC;AA7FD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4CAA4C,CAAA;AA0CvD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,SAAgB,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AASD,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;AASD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC"}
|
@@ -23,6 +23,7 @@ export interface HandlerSuccess {
|
|
23
23
|
export interface HandlerError {
|
24
24
|
status: number;
|
25
25
|
message?: string;
|
26
|
+
error?: 'InvalidEmail' | 'DidTooLong' | 'InvalidInitiation';
|
26
27
|
}
|
27
28
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
28
29
|
//# sourceMappingURL=initAgeAssurance.d.ts.map
|
@@ -1 +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;
|
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;IAChB,KAAK,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,mBAAmB,CAAA;CAC5D;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
@@ -13,6 +13,8 @@ export interface InputSchema {
|
|
13
13
|
subjectBlobCids?: string[];
|
14
14
|
createdBy: string;
|
15
15
|
modTool?: ToolsOzoneModerationDefs.ModTool;
|
16
|
+
/** An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. */
|
17
|
+
externalId?: string;
|
16
18
|
}
|
17
19
|
export type OutputSchema = ToolsOzoneModerationDefs.ModEventView;
|
18
20
|
export interface HandlerInput {
|
@@ -29,7 +31,7 @@ export interface HandlerSuccess {
|
|
29
31
|
export interface HandlerError {
|
30
32
|
status: number;
|
31
33
|
message?: string;
|
32
|
-
error?: 'SubjectHasAction';
|
34
|
+
error?: 'SubjectHasAction' | 'DuplicateExternalId';
|
33
35
|
}
|
34
36
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
35
37
|
//# sourceMappingURL=emitEvent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"emitEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,wBAAwB,MAAM,WAAW,CAAA;AAC1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EACD,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,GACjD,MAAM,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,GACpD,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,GACjD,MAAM,CAAC,wBAAwB,CAAC,eAAe,CAAC,GAChD,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAC9C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,YAAY,CAAC,GAC7C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,GACrD,MAAM,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,GACvD,MAAM,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,GACxD,MAAM,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,GACtD,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAC9C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,GAC5C,MAAM,CAAC,wBAAwB,CAAC,YAAY,CAAC,GAC7C,MAAM,CAAC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c;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,kBAAkB,GAAG,qBAAqB,CAAA;CACnD;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.162",
|
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.27",
|
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.27",
|
81
|
+
"@atproto/bsky": "^0.0.174",
|
82
|
+
"@atproto/dev-env": "^0.3.157",
|
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 AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
113
112
|
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
113
|
+
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.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'
|
@@ -147,7 +147,9 @@ import * as AppBskyNotificationPutActivitySubscription from './types/app/bsky/no
|
|
147
147
|
import * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
|
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
|
+
import * as AppBskyNotificationUnregisterPush from './types/app/bsky/notification/unregisterPush.js'
|
150
151
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
152
|
+
import * as AppBskyUnspeccedCheckHandleAvailability from './types/app/bsky/unspecced/checkHandleAvailability.js'
|
151
153
|
import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
152
154
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
153
155
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
@@ -1654,27 +1656,27 @@ export class AppBskyFeedNS {
|
|
1654
1656
|
return this._server.xrpc.method(nsid, cfg)
|
1655
1657
|
}
|
1656
1658
|
|
1657
|
-
|
1659
|
+
getPosts<A extends Auth = void>(
|
1658
1660
|
cfg: MethodConfigOrHandler<
|
1659
1661
|
A,
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1662
|
+
AppBskyFeedGetPosts.QueryParams,
|
1663
|
+
AppBskyFeedGetPosts.HandlerInput,
|
1664
|
+
AppBskyFeedGetPosts.HandlerOutput
|
1663
1665
|
>,
|
1664
1666
|
) {
|
1665
|
-
const nsid = 'app.bsky.feed.
|
1667
|
+
const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
|
1666
1668
|
return this._server.xrpc.method(nsid, cfg)
|
1667
1669
|
}
|
1668
1670
|
|
1669
|
-
|
1671
|
+
getPostThread<A extends Auth = void>(
|
1670
1672
|
cfg: MethodConfigOrHandler<
|
1671
1673
|
A,
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1674
|
+
AppBskyFeedGetPostThread.QueryParams,
|
1675
|
+
AppBskyFeedGetPostThread.HandlerInput,
|
1676
|
+
AppBskyFeedGetPostThread.HandlerOutput
|
1675
1677
|
>,
|
1676
1678
|
) {
|
1677
|
-
const nsid = 'app.bsky.feed.
|
1679
|
+
const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
|
1678
1680
|
return this._server.xrpc.method(nsid, cfg)
|
1679
1681
|
}
|
1680
1682
|
|
@@ -2134,6 +2136,18 @@ export class AppBskyNotificationNS {
|
|
2134
2136
|
return this._server.xrpc.method(nsid, cfg)
|
2135
2137
|
}
|
2136
2138
|
|
2139
|
+
unregisterPush<A extends Auth = void>(
|
2140
|
+
cfg: MethodConfigOrHandler<
|
2141
|
+
A,
|
2142
|
+
AppBskyNotificationUnregisterPush.QueryParams,
|
2143
|
+
AppBskyNotificationUnregisterPush.HandlerInput,
|
2144
|
+
AppBskyNotificationUnregisterPush.HandlerOutput
|
2145
|
+
>,
|
2146
|
+
) {
|
2147
|
+
const nsid = 'app.bsky.notification.unregisterPush' // @ts-ignore
|
2148
|
+
return this._server.xrpc.method(nsid, cfg)
|
2149
|
+
}
|
2150
|
+
|
2137
2151
|
updateSeen<A extends Auth = void>(
|
2138
2152
|
cfg: MethodConfigOrHandler<
|
2139
2153
|
A,
|
@@ -2162,6 +2176,18 @@ export class AppBskyUnspeccedNS {
|
|
2162
2176
|
this._server = server
|
2163
2177
|
}
|
2164
2178
|
|
2179
|
+
checkHandleAvailability<A extends Auth = void>(
|
2180
|
+
cfg: MethodConfigOrHandler<
|
2181
|
+
A,
|
2182
|
+
AppBskyUnspeccedCheckHandleAvailability.QueryParams,
|
2183
|
+
AppBskyUnspeccedCheckHandleAvailability.HandlerInput,
|
2184
|
+
AppBskyUnspeccedCheckHandleAvailability.HandlerOutput
|
2185
|
+
>,
|
2186
|
+
) {
|
2187
|
+
const nsid = 'app.bsky.unspecced.checkHandleAvailability' // @ts-ignore
|
2188
|
+
return this._server.xrpc.method(nsid, cfg)
|
2189
|
+
}
|
2190
|
+
|
2165
2191
|
getAgeAssuranceState<A extends Auth = void>(
|
2166
2192
|
cfg: MethodConfigOrHandler<
|
2167
2193
|
A,
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -7282,6 +7282,48 @@ 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
|
+
},
|
7285
7327
|
AppBskyFeedGetPostThread: {
|
7286
7328
|
lexicon: 1,
|
7287
7329
|
id: 'app.bsky.feed.getPostThread',
|
@@ -7346,48 +7388,6 @@ export const schemaDict = {
|
|
7346
7388
|
},
|
7347
7389
|
},
|
7348
7390
|
},
|
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',
|
@@ -10372,6 +10372,40 @@ export const schemaDict = {
|
|
10372
10372
|
},
|
10373
10373
|
},
|
10374
10374
|
},
|
10375
|
+
AppBskyNotificationUnregisterPush: {
|
10376
|
+
lexicon: 1,
|
10377
|
+
id: 'app.bsky.notification.unregisterPush',
|
10378
|
+
defs: {
|
10379
|
+
main: {
|
10380
|
+
type: 'procedure',
|
10381
|
+
description:
|
10382
|
+
'The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.',
|
10383
|
+
input: {
|
10384
|
+
encoding: 'application/json',
|
10385
|
+
schema: {
|
10386
|
+
type: 'object',
|
10387
|
+
required: ['serviceDid', 'token', 'platform', 'appId'],
|
10388
|
+
properties: {
|
10389
|
+
serviceDid: {
|
10390
|
+
type: 'string',
|
10391
|
+
format: 'did',
|
10392
|
+
},
|
10393
|
+
token: {
|
10394
|
+
type: 'string',
|
10395
|
+
},
|
10396
|
+
platform: {
|
10397
|
+
type: 'string',
|
10398
|
+
knownValues: ['ios', 'android', 'web'],
|
10399
|
+
},
|
10400
|
+
appId: {
|
10401
|
+
type: 'string',
|
10402
|
+
},
|
10403
|
+
},
|
10404
|
+
},
|
10405
|
+
},
|
10406
|
+
},
|
10407
|
+
},
|
10408
|
+
},
|
10375
10409
|
AppBskyNotificationUpdateSeen: {
|
10376
10410
|
lexicon: 1,
|
10377
10411
|
id: 'app.bsky.notification.updateSeen',
|
@@ -10477,6 +10511,104 @@ export const schemaDict = {
|
|
10477
10511
|
},
|
10478
10512
|
},
|
10479
10513
|
},
|
10514
|
+
AppBskyUnspeccedCheckHandleAvailability: {
|
10515
|
+
lexicon: 1,
|
10516
|
+
id: 'app.bsky.unspecced.checkHandleAvailability',
|
10517
|
+
defs: {
|
10518
|
+
main: {
|
10519
|
+
type: 'query',
|
10520
|
+
description:
|
10521
|
+
'Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.',
|
10522
|
+
parameters: {
|
10523
|
+
type: 'params',
|
10524
|
+
required: ['handle'],
|
10525
|
+
properties: {
|
10526
|
+
handle: {
|
10527
|
+
type: 'string',
|
10528
|
+
format: 'handle',
|
10529
|
+
description:
|
10530
|
+
'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
10531
|
+
},
|
10532
|
+
email: {
|
10533
|
+
type: 'string',
|
10534
|
+
description:
|
10535
|
+
'User-provided email. Might be used to build handle suggestions.',
|
10536
|
+
},
|
10537
|
+
birthDate: {
|
10538
|
+
type: 'string',
|
10539
|
+
format: 'datetime',
|
10540
|
+
description:
|
10541
|
+
'User-provided birth date. Might be used to build handle suggestions.',
|
10542
|
+
},
|
10543
|
+
},
|
10544
|
+
},
|
10545
|
+
output: {
|
10546
|
+
encoding: 'application/json',
|
10547
|
+
schema: {
|
10548
|
+
type: 'object',
|
10549
|
+
required: ['handle', 'result'],
|
10550
|
+
properties: {
|
10551
|
+
handle: {
|
10552
|
+
type: 'string',
|
10553
|
+
format: 'handle',
|
10554
|
+
description: 'Echo of the input handle.',
|
10555
|
+
},
|
10556
|
+
result: {
|
10557
|
+
type: 'union',
|
10558
|
+
refs: [
|
10559
|
+
'lex:app.bsky.unspecced.checkHandleAvailability#resultAvailable',
|
10560
|
+
'lex:app.bsky.unspecced.checkHandleAvailability#resultUnavailable',
|
10561
|
+
],
|
10562
|
+
},
|
10563
|
+
},
|
10564
|
+
},
|
10565
|
+
},
|
10566
|
+
errors: [
|
10567
|
+
{
|
10568
|
+
name: 'InvalidEmail',
|
10569
|
+
description: 'An invalid email was provided.',
|
10570
|
+
},
|
10571
|
+
],
|
10572
|
+
},
|
10573
|
+
resultAvailable: {
|
10574
|
+
type: 'object',
|
10575
|
+
description: 'Indicates the provided handle is available.',
|
10576
|
+
properties: {},
|
10577
|
+
},
|
10578
|
+
resultUnavailable: {
|
10579
|
+
type: 'object',
|
10580
|
+
description:
|
10581
|
+
'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
10582
|
+
required: ['suggestions'],
|
10583
|
+
properties: {
|
10584
|
+
suggestions: {
|
10585
|
+
type: 'array',
|
10586
|
+
description:
|
10587
|
+
'List of suggested handles based on the provided inputs.',
|
10588
|
+
items: {
|
10589
|
+
type: 'ref',
|
10590
|
+
ref: 'lex:app.bsky.unspecced.checkHandleAvailability#suggestion',
|
10591
|
+
},
|
10592
|
+
},
|
10593
|
+
},
|
10594
|
+
},
|
10595
|
+
suggestion: {
|
10596
|
+
type: 'object',
|
10597
|
+
required: ['handle', 'method'],
|
10598
|
+
properties: {
|
10599
|
+
handle: {
|
10600
|
+
type: 'string',
|
10601
|
+
format: 'handle',
|
10602
|
+
},
|
10603
|
+
method: {
|
10604
|
+
type: 'string',
|
10605
|
+
description:
|
10606
|
+
'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
10607
|
+
},
|
10608
|
+
},
|
10609
|
+
},
|
10610
|
+
},
|
10611
|
+
},
|
10480
10612
|
AppBskyUnspeccedDefs: {
|
10481
10613
|
lexicon: 1,
|
10482
10614
|
id: 'app.bsky.unspecced.defs',
|
@@ -11555,6 +11687,17 @@ export const schemaDict = {
|
|
11555
11687
|
ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
|
11556
11688
|
},
|
11557
11689
|
},
|
11690
|
+
errors: [
|
11691
|
+
{
|
11692
|
+
name: 'InvalidEmail',
|
11693
|
+
},
|
11694
|
+
{
|
11695
|
+
name: 'DidTooLong',
|
11696
|
+
},
|
11697
|
+
{
|
11698
|
+
name: 'InvalidInitiation',
|
11699
|
+
},
|
11700
|
+
],
|
11558
11701
|
},
|
11559
11702
|
},
|
11560
11703
|
},
|
@@ -14926,6 +15069,11 @@ export const schemaDict = {
|
|
14926
15069
|
type: 'ref',
|
14927
15070
|
ref: 'lex:tools.ozone.moderation.defs#modTool',
|
14928
15071
|
},
|
15072
|
+
externalId: {
|
15073
|
+
type: 'string',
|
15074
|
+
description:
|
15075
|
+
'An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject.',
|
15076
|
+
},
|
14929
15077
|
},
|
14930
15078
|
},
|
14931
15079
|
},
|
@@ -14940,6 +15088,11 @@ export const schemaDict = {
|
|
14940
15088
|
{
|
14941
15089
|
name: 'SubjectHasAction',
|
14942
15090
|
},
|
15091
|
+
{
|
15092
|
+
name: 'DuplicateExternalId',
|
15093
|
+
description:
|
15094
|
+
'An event with the same external ID already exists for the subject.',
|
15095
|
+
},
|
14943
15096
|
],
|
14944
15097
|
},
|
14945
15098
|
},
|
@@ -17624,8 +17777,8 @@ export const ids = {
|
|
17624
17777
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
17625
17778
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
17626
17779
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
17627
|
-
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
17628
17780
|
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
17781
|
+
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
17629
17782
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
17630
17783
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
17631
17784
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
@@ -17683,8 +17836,11 @@ export const ids = {
|
|
17683
17836
|
AppBskyNotificationPutPreferences: 'app.bsky.notification.putPreferences',
|
17684
17837
|
AppBskyNotificationPutPreferencesV2: 'app.bsky.notification.putPreferencesV2',
|
17685
17838
|
AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush',
|
17839
|
+
AppBskyNotificationUnregisterPush: 'app.bsky.notification.unregisterPush',
|
17686
17840
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
17687
17841
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
17842
|
+
AppBskyUnspeccedCheckHandleAvailability:
|
17843
|
+
'app.bsky.unspecced.checkHandleAvailability',
|
17688
17844
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
17689
17845
|
AppBskyUnspeccedGetAgeAssuranceState:
|
17690
17846
|
'app.bsky.unspecced.getAgeAssuranceState',
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
13
|
+
const is$typed = _is$typed,
|
14
|
+
validate = _validate
|
15
|
+
const id = 'app.bsky.notification.unregisterPush'
|
16
|
+
|
17
|
+
export type QueryParams = {}
|
18
|
+
|
19
|
+
export interface InputSchema {
|
20
|
+
serviceDid: string
|
21
|
+
token: string
|
22
|
+
platform: 'ios' | 'android' | 'web' | (string & {})
|
23
|
+
appId: string
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface HandlerInput {
|
27
|
+
encoding: 'application/json'
|
28
|
+
body: InputSchema
|
29
|
+
}
|
30
|
+
|
31
|
+
export interface HandlerError {
|
32
|
+
status: number
|
33
|
+
message?: string
|
34
|
+
}
|
35
|
+
|
36
|
+
export type HandlerOutput = HandlerError | void
|