@atproto/api 0.15.13 → 0.15.14
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 +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +12 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +418 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +225 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/notification/defs.d.ts +40 -0
- package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/defs.js +36 -0
- package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/client/types/app/bsky/notification/getPreferences.d.ts +22 -0
- package/dist/client/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/client/types/app/bsky/notification/getPreferences.js +11 -0
- package/dist/client/types/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/client/types/app/bsky/notification/putPreferencesV2.d.ts +38 -0
- package/dist/client/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
- package/dist/client/types/app/bsky/notification/putPreferencesV2.js +11 -0
- package/dist/client/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +28 -0
- package/src/client/lexicons.ts +227 -0
- package/src/client/types/app/bsky/notification/defs.ts +76 -0
- package/src/client/types/app/bsky/notification/getPreferences.ts +40 -0
- package/src/client/types/app/bsky/notification/putPreferencesV2.ts +56 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -7,4 +7,44 @@ export interface RecordDeleted {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function isRecordDeleted<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.defs", "recordDeleted">;
|
|
9
9
|
export declare function validateRecordDeleted<V>(v: V): ValidationResult<RecordDeleted & V>;
|
|
10
|
+
export interface ChatPreference {
|
|
11
|
+
$type?: 'app.bsky.notification.defs#chatPreference';
|
|
12
|
+
filter: 'all' | 'accepted' | (string & {});
|
|
13
|
+
push: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function isChatPreference<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.defs", "chatPreference">;
|
|
16
|
+
export declare function validateChatPreference<V>(v: V): ValidationResult<ChatPreference & V>;
|
|
17
|
+
export interface FilterablePreference {
|
|
18
|
+
$type?: 'app.bsky.notification.defs#filterablePreference';
|
|
19
|
+
filter: 'all' | 'follows' | (string & {});
|
|
20
|
+
list: boolean;
|
|
21
|
+
push: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function isFilterablePreference<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.defs", "filterablePreference">;
|
|
24
|
+
export declare function validateFilterablePreference<V>(v: V): ValidationResult<FilterablePreference & V>;
|
|
25
|
+
export interface Preference {
|
|
26
|
+
$type?: 'app.bsky.notification.defs#preference';
|
|
27
|
+
list: boolean;
|
|
28
|
+
push: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function isPreference<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.defs", "preference">;
|
|
31
|
+
export declare function validatePreference<V>(v: V): ValidationResult<Preference & V>;
|
|
32
|
+
export interface Preferences {
|
|
33
|
+
$type?: 'app.bsky.notification.defs#preferences';
|
|
34
|
+
chat: ChatPreference;
|
|
35
|
+
follow: FilterablePreference;
|
|
36
|
+
like: FilterablePreference;
|
|
37
|
+
likeViaRepost: FilterablePreference;
|
|
38
|
+
mention: FilterablePreference;
|
|
39
|
+
quote: FilterablePreference;
|
|
40
|
+
reply: FilterablePreference;
|
|
41
|
+
repost: FilterablePreference;
|
|
42
|
+
repostViaRepost: FilterablePreference;
|
|
43
|
+
starterpackJoined: Preference;
|
|
44
|
+
subscribedPost: Preference;
|
|
45
|
+
unverified: Preference;
|
|
46
|
+
verified: Preference;
|
|
47
|
+
}
|
|
48
|
+
export declare function isPreferences<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.defs", "preferences">;
|
|
49
|
+
export declare function validatePreferences<V>(v: V): ValidationResult<Preferences & V>;
|
|
10
50
|
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,0CAA0C,CAAA;CACnD;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kGAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C"}
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,0CAA0C,CAAA;CACnD;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kGAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,MAAM,EAAE,KAAK,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC1C,IAAI,EAAE,OAAO,CAAA;CACd;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,iDAAiD,CAAA;IACzD,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACzC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;CACd;AAID,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yGAE7C;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8CAEnD;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;CACd;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,aAAa,EAAE,oBAAoB,CAAA;IACnC,OAAO,EAAE,oBAAoB,CAAA;IAC7B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,MAAM,EAAE,oBAAoB,CAAA;IAC5B,eAAe,EAAE,oBAAoB,CAAA;IACrC,iBAAiB,EAAE,UAAU,CAAA;IAC7B,cAAc,EAAE,UAAU,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,UAAU,CAAA;CACrB;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isRecordDeleted = isRecordDeleted;
|
|
4
4
|
exports.validateRecordDeleted = validateRecordDeleted;
|
|
5
|
+
exports.isChatPreference = isChatPreference;
|
|
6
|
+
exports.validateChatPreference = validateChatPreference;
|
|
7
|
+
exports.isFilterablePreference = isFilterablePreference;
|
|
8
|
+
exports.validateFilterablePreference = validateFilterablePreference;
|
|
9
|
+
exports.isPreference = isPreference;
|
|
10
|
+
exports.validatePreference = validatePreference;
|
|
11
|
+
exports.isPreferences = isPreferences;
|
|
12
|
+
exports.validatePreferences = validatePreferences;
|
|
5
13
|
const lexicons_1 = require("../../../../lexicons");
|
|
6
14
|
const util_1 = require("../../../../util");
|
|
7
15
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
@@ -13,4 +21,32 @@ function isRecordDeleted(v) {
|
|
|
13
21
|
function validateRecordDeleted(v) {
|
|
14
22
|
return validate(v, id, hashRecordDeleted);
|
|
15
23
|
}
|
|
24
|
+
const hashChatPreference = 'chatPreference';
|
|
25
|
+
function isChatPreference(v) {
|
|
26
|
+
return is$typed(v, id, hashChatPreference);
|
|
27
|
+
}
|
|
28
|
+
function validateChatPreference(v) {
|
|
29
|
+
return validate(v, id, hashChatPreference);
|
|
30
|
+
}
|
|
31
|
+
const hashFilterablePreference = 'filterablePreference';
|
|
32
|
+
function isFilterablePreference(v) {
|
|
33
|
+
return is$typed(v, id, hashFilterablePreference);
|
|
34
|
+
}
|
|
35
|
+
function validateFilterablePreference(v) {
|
|
36
|
+
return validate(v, id, hashFilterablePreference);
|
|
37
|
+
}
|
|
38
|
+
const hashPreference = 'preference';
|
|
39
|
+
function isPreference(v) {
|
|
40
|
+
return is$typed(v, id, hashPreference);
|
|
41
|
+
}
|
|
42
|
+
function validatePreference(v) {
|
|
43
|
+
return validate(v, id, hashPreference);
|
|
44
|
+
}
|
|
45
|
+
const hashPreferences = 'preferences';
|
|
46
|
+
function isPreferences(v) {
|
|
47
|
+
return is$typed(v, id, hashPreferences);
|
|
48
|
+
}
|
|
49
|
+
function validatePreferences(v) {
|
|
50
|
+
return validate(v, id, hashPreferences);
|
|
51
|
+
}
|
|
16
52
|
//# sourceMappingURL=defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/defs.ts"],"names":[],"mappings":";;AAsBA,0CAEC;AAED,sDAEC;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/defs.ts"],"names":[],"mappings":";;AAsBA,0CAEC;AAED,sDAEC;AAUD,4CAEC;AAED,wDAEC;AAWD,wDAEC;AAED,oEAEC;AAUD,oCAEC;AAED,gDAEC;AAqBD,sCAEC;AAED,kDAEC;AAnGD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,CAAA;AAMvC,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC;AAQD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC;AASD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,SAAgB,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC;AAQD,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;AAmBD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyNotificationDefs from './defs.js';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
preferences: AppBskyNotificationDefs.Preferences;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
headers?: HeadersMap;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: HeadersMap;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
22
|
+
//# sourceMappingURL=getPreferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/getPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,uBAAuB,MAAM,WAAW,CAAA;AAMzD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,uBAAuB,CAAC,WAAW,CAAA;CACjD;AAED,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.notification.getPreferences';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getPreferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/getPreferences.ts"],"names":[],"mappings":";;AAqCA,gCAEC;AAjCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAqBjD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyNotificationDefs from './defs.js';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
chat?: AppBskyNotificationDefs.ChatPreference;
|
|
10
|
+
follow?: AppBskyNotificationDefs.FilterablePreference;
|
|
11
|
+
like?: AppBskyNotificationDefs.FilterablePreference;
|
|
12
|
+
likeViaRepost?: AppBskyNotificationDefs.FilterablePreference;
|
|
13
|
+
mention?: AppBskyNotificationDefs.FilterablePreference;
|
|
14
|
+
quote?: AppBskyNotificationDefs.FilterablePreference;
|
|
15
|
+
reply?: AppBskyNotificationDefs.FilterablePreference;
|
|
16
|
+
repost?: AppBskyNotificationDefs.FilterablePreference;
|
|
17
|
+
repostViaRepost?: AppBskyNotificationDefs.FilterablePreference;
|
|
18
|
+
starterpackJoined?: AppBskyNotificationDefs.Preference;
|
|
19
|
+
subscribedPost?: AppBskyNotificationDefs.Preference;
|
|
20
|
+
unverified?: AppBskyNotificationDefs.Preference;
|
|
21
|
+
verified?: AppBskyNotificationDefs.Preference;
|
|
22
|
+
}
|
|
23
|
+
export interface OutputSchema {
|
|
24
|
+
preferences: AppBskyNotificationDefs.Preferences;
|
|
25
|
+
}
|
|
26
|
+
export interface CallOptions {
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
headers?: HeadersMap;
|
|
29
|
+
qp?: QueryParams;
|
|
30
|
+
encoding?: 'application/json';
|
|
31
|
+
}
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean;
|
|
34
|
+
headers: HeadersMap;
|
|
35
|
+
data: OutputSchema;
|
|
36
|
+
}
|
|
37
|
+
export declare function toKnownErr(e: any): any;
|
|
38
|
+
//# sourceMappingURL=putPreferencesV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putPreferencesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/putPreferencesV2.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,uBAAuB,MAAM,WAAW,CAAA;AAMzD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAA;IAC7C,MAAM,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACrD,IAAI,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACnD,aAAa,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IAC5D,OAAO,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACtD,KAAK,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACpD,KAAK,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACpD,MAAM,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IACrD,eAAe,CAAC,EAAE,uBAAuB,CAAC,oBAAoB,CAAA;IAC9D,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAA;IACtD,cAAc,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAA;IACnD,UAAU,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAA;IAC/C,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAA;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,uBAAuB,CAAC,WAAW,CAAA;CACjD;AAED,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.notification.putPreferencesV2';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=putPreferencesV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putPreferencesV2.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/putPreferencesV2.ts"],"names":[],"mappings":";;AAqDA,gCAEC;AAjDD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wCAAwC,CAAA;AAqCnD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -174,9 +174,11 @@ import * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
|
|
|
174
174
|
import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
|
|
175
175
|
import * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
|
|
176
176
|
import * as AppBskyNotificationDefs from './types/app/bsky/notification/defs.js'
|
|
177
|
+
import * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
|
|
177
178
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
|
|
178
179
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
|
|
179
180
|
import * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
|
|
181
|
+
import * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
|
|
180
182
|
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
|
|
181
183
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
182
184
|
import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
@@ -437,9 +439,11 @@ export * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
|
|
|
437
439
|
export * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
|
|
438
440
|
export * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
|
|
439
441
|
export * as AppBskyNotificationDefs from './types/app/bsky/notification/defs.js'
|
|
442
|
+
export * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
|
|
440
443
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
|
|
441
444
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
|
|
442
445
|
export * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
|
|
446
|
+
export * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
|
|
443
447
|
export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
|
|
444
448
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
445
449
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
@@ -3343,6 +3347,18 @@ export class AppBskyNotificationNS {
|
|
|
3343
3347
|
this._client = client
|
|
3344
3348
|
}
|
|
3345
3349
|
|
|
3350
|
+
getPreferences(
|
|
3351
|
+
params?: AppBskyNotificationGetPreferences.QueryParams,
|
|
3352
|
+
opts?: AppBskyNotificationGetPreferences.CallOptions,
|
|
3353
|
+
): Promise<AppBskyNotificationGetPreferences.Response> {
|
|
3354
|
+
return this._client.call(
|
|
3355
|
+
'app.bsky.notification.getPreferences',
|
|
3356
|
+
params,
|
|
3357
|
+
undefined,
|
|
3358
|
+
opts,
|
|
3359
|
+
)
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3346
3362
|
getUnreadCount(
|
|
3347
3363
|
params?: AppBskyNotificationGetUnreadCount.QueryParams,
|
|
3348
3364
|
opts?: AppBskyNotificationGetUnreadCount.CallOptions,
|
|
@@ -3379,6 +3395,18 @@ export class AppBskyNotificationNS {
|
|
|
3379
3395
|
)
|
|
3380
3396
|
}
|
|
3381
3397
|
|
|
3398
|
+
putPreferencesV2(
|
|
3399
|
+
data?: AppBskyNotificationPutPreferencesV2.InputSchema,
|
|
3400
|
+
opts?: AppBskyNotificationPutPreferencesV2.CallOptions,
|
|
3401
|
+
): Promise<AppBskyNotificationPutPreferencesV2.Response> {
|
|
3402
|
+
return this._client.call(
|
|
3403
|
+
'app.bsky.notification.putPreferencesV2',
|
|
3404
|
+
opts?.qp,
|
|
3405
|
+
data,
|
|
3406
|
+
opts,
|
|
3407
|
+
)
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3382
3410
|
registerPush(
|
|
3383
3411
|
data?: AppBskyNotificationRegisterPush.InputSchema,
|
|
3384
3412
|
opts?: AppBskyNotificationRegisterPush.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -9732,6 +9732,147 @@ export const schemaDict = {
|
|
|
9732
9732
|
type: 'object',
|
|
9733
9733
|
properties: {},
|
|
9734
9734
|
},
|
|
9735
|
+
chatPreference: {
|
|
9736
|
+
type: 'object',
|
|
9737
|
+
required: ['filter', 'push'],
|
|
9738
|
+
properties: {
|
|
9739
|
+
filter: {
|
|
9740
|
+
type: 'string',
|
|
9741
|
+
knownValues: ['all', 'accepted'],
|
|
9742
|
+
},
|
|
9743
|
+
push: {
|
|
9744
|
+
type: 'boolean',
|
|
9745
|
+
},
|
|
9746
|
+
},
|
|
9747
|
+
},
|
|
9748
|
+
filterablePreference: {
|
|
9749
|
+
type: 'object',
|
|
9750
|
+
required: ['filter', 'list', 'push'],
|
|
9751
|
+
properties: {
|
|
9752
|
+
filter: {
|
|
9753
|
+
type: 'string',
|
|
9754
|
+
knownValues: ['all', 'follows'],
|
|
9755
|
+
},
|
|
9756
|
+
list: {
|
|
9757
|
+
type: 'boolean',
|
|
9758
|
+
},
|
|
9759
|
+
push: {
|
|
9760
|
+
type: 'boolean',
|
|
9761
|
+
},
|
|
9762
|
+
},
|
|
9763
|
+
},
|
|
9764
|
+
preference: {
|
|
9765
|
+
type: 'object',
|
|
9766
|
+
required: ['list', 'push'],
|
|
9767
|
+
properties: {
|
|
9768
|
+
list: {
|
|
9769
|
+
type: 'boolean',
|
|
9770
|
+
},
|
|
9771
|
+
push: {
|
|
9772
|
+
type: 'boolean',
|
|
9773
|
+
},
|
|
9774
|
+
},
|
|
9775
|
+
},
|
|
9776
|
+
preferences: {
|
|
9777
|
+
type: 'object',
|
|
9778
|
+
required: [
|
|
9779
|
+
'chat',
|
|
9780
|
+
'follow',
|
|
9781
|
+
'like',
|
|
9782
|
+
'likeViaRepost',
|
|
9783
|
+
'mention',
|
|
9784
|
+
'quote',
|
|
9785
|
+
'reply',
|
|
9786
|
+
'repost',
|
|
9787
|
+
'repostViaRepost',
|
|
9788
|
+
'starterpackJoined',
|
|
9789
|
+
'subscribedPost',
|
|
9790
|
+
'unverified',
|
|
9791
|
+
'verified',
|
|
9792
|
+
],
|
|
9793
|
+
properties: {
|
|
9794
|
+
chat: {
|
|
9795
|
+
type: 'ref',
|
|
9796
|
+
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
9797
|
+
},
|
|
9798
|
+
follow: {
|
|
9799
|
+
type: 'ref',
|
|
9800
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9801
|
+
},
|
|
9802
|
+
like: {
|
|
9803
|
+
type: 'ref',
|
|
9804
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9805
|
+
},
|
|
9806
|
+
likeViaRepost: {
|
|
9807
|
+
type: 'ref',
|
|
9808
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9809
|
+
},
|
|
9810
|
+
mention: {
|
|
9811
|
+
type: 'ref',
|
|
9812
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9813
|
+
},
|
|
9814
|
+
quote: {
|
|
9815
|
+
type: 'ref',
|
|
9816
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9817
|
+
},
|
|
9818
|
+
reply: {
|
|
9819
|
+
type: 'ref',
|
|
9820
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9821
|
+
},
|
|
9822
|
+
repost: {
|
|
9823
|
+
type: 'ref',
|
|
9824
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9825
|
+
},
|
|
9826
|
+
repostViaRepost: {
|
|
9827
|
+
type: 'ref',
|
|
9828
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
9829
|
+
},
|
|
9830
|
+
starterpackJoined: {
|
|
9831
|
+
type: 'ref',
|
|
9832
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
9833
|
+
},
|
|
9834
|
+
subscribedPost: {
|
|
9835
|
+
type: 'ref',
|
|
9836
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
9837
|
+
},
|
|
9838
|
+
unverified: {
|
|
9839
|
+
type: 'ref',
|
|
9840
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
9841
|
+
},
|
|
9842
|
+
verified: {
|
|
9843
|
+
type: 'ref',
|
|
9844
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
9845
|
+
},
|
|
9846
|
+
},
|
|
9847
|
+
},
|
|
9848
|
+
},
|
|
9849
|
+
},
|
|
9850
|
+
AppBskyNotificationGetPreferences: {
|
|
9851
|
+
lexicon: 1,
|
|
9852
|
+
id: 'app.bsky.notification.getPreferences',
|
|
9853
|
+
defs: {
|
|
9854
|
+
main: {
|
|
9855
|
+
type: 'query',
|
|
9856
|
+
description:
|
|
9857
|
+
'Get notification-related preferences for an account. Requires auth.',
|
|
9858
|
+
parameters: {
|
|
9859
|
+
type: 'params',
|
|
9860
|
+
properties: {},
|
|
9861
|
+
},
|
|
9862
|
+
output: {
|
|
9863
|
+
encoding: 'application/json',
|
|
9864
|
+
schema: {
|
|
9865
|
+
type: 'object',
|
|
9866
|
+
required: ['preferences'],
|
|
9867
|
+
properties: {
|
|
9868
|
+
preferences: {
|
|
9869
|
+
type: 'ref',
|
|
9870
|
+
ref: 'lex:app.bsky.notification.defs#preferences',
|
|
9871
|
+
},
|
|
9872
|
+
},
|
|
9873
|
+
},
|
|
9874
|
+
},
|
|
9875
|
+
},
|
|
9735
9876
|
},
|
|
9736
9877
|
},
|
|
9737
9878
|
AppBskyNotificationGetUnreadCount: {
|
|
@@ -9924,6 +10065,90 @@ export const schemaDict = {
|
|
|
9924
10065
|
},
|
|
9925
10066
|
},
|
|
9926
10067
|
},
|
|
10068
|
+
AppBskyNotificationPutPreferencesV2: {
|
|
10069
|
+
lexicon: 1,
|
|
10070
|
+
id: 'app.bsky.notification.putPreferencesV2',
|
|
10071
|
+
defs: {
|
|
10072
|
+
main: {
|
|
10073
|
+
type: 'procedure',
|
|
10074
|
+
description:
|
|
10075
|
+
'Set notification-related preferences for an account. Requires auth.',
|
|
10076
|
+
input: {
|
|
10077
|
+
encoding: 'application/json',
|
|
10078
|
+
schema: {
|
|
10079
|
+
type: 'object',
|
|
10080
|
+
properties: {
|
|
10081
|
+
chat: {
|
|
10082
|
+
type: 'ref',
|
|
10083
|
+
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
10084
|
+
},
|
|
10085
|
+
follow: {
|
|
10086
|
+
type: 'ref',
|
|
10087
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10088
|
+
},
|
|
10089
|
+
like: {
|
|
10090
|
+
type: 'ref',
|
|
10091
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10092
|
+
},
|
|
10093
|
+
likeViaRepost: {
|
|
10094
|
+
type: 'ref',
|
|
10095
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10096
|
+
},
|
|
10097
|
+
mention: {
|
|
10098
|
+
type: 'ref',
|
|
10099
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10100
|
+
},
|
|
10101
|
+
quote: {
|
|
10102
|
+
type: 'ref',
|
|
10103
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10104
|
+
},
|
|
10105
|
+
reply: {
|
|
10106
|
+
type: 'ref',
|
|
10107
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10108
|
+
},
|
|
10109
|
+
repost: {
|
|
10110
|
+
type: 'ref',
|
|
10111
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10112
|
+
},
|
|
10113
|
+
repostViaRepost: {
|
|
10114
|
+
type: 'ref',
|
|
10115
|
+
ref: 'lex:app.bsky.notification.defs#filterablePreference',
|
|
10116
|
+
},
|
|
10117
|
+
starterpackJoined: {
|
|
10118
|
+
type: 'ref',
|
|
10119
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
10120
|
+
},
|
|
10121
|
+
subscribedPost: {
|
|
10122
|
+
type: 'ref',
|
|
10123
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
10124
|
+
},
|
|
10125
|
+
unverified: {
|
|
10126
|
+
type: 'ref',
|
|
10127
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
10128
|
+
},
|
|
10129
|
+
verified: {
|
|
10130
|
+
type: 'ref',
|
|
10131
|
+
ref: 'lex:app.bsky.notification.defs#preference',
|
|
10132
|
+
},
|
|
10133
|
+
},
|
|
10134
|
+
},
|
|
10135
|
+
},
|
|
10136
|
+
output: {
|
|
10137
|
+
encoding: 'application/json',
|
|
10138
|
+
schema: {
|
|
10139
|
+
type: 'object',
|
|
10140
|
+
required: ['preferences'],
|
|
10141
|
+
properties: {
|
|
10142
|
+
preferences: {
|
|
10143
|
+
type: 'ref',
|
|
10144
|
+
ref: 'lex:app.bsky.notification.defs#preferences',
|
|
10145
|
+
},
|
|
10146
|
+
},
|
|
10147
|
+
},
|
|
10148
|
+
},
|
|
10149
|
+
},
|
|
10150
|
+
},
|
|
10151
|
+
},
|
|
9927
10152
|
AppBskyNotificationRegisterPush: {
|
|
9928
10153
|
lexicon: 1,
|
|
9929
10154
|
id: 'app.bsky.notification.registerPush',
|
|
@@ -16557,10 +16782,12 @@ export const ids = {
|
|
|
16557
16782
|
AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
|
|
16558
16783
|
AppBskyLabelerService: 'app.bsky.labeler.service',
|
|
16559
16784
|
AppBskyNotificationDefs: 'app.bsky.notification.defs',
|
|
16785
|
+
AppBskyNotificationGetPreferences: 'app.bsky.notification.getPreferences',
|
|
16560
16786
|
AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
|
|
16561
16787
|
AppBskyNotificationListNotifications:
|
|
16562
16788
|
'app.bsky.notification.listNotifications',
|
|
16563
16789
|
AppBskyNotificationPutPreferences: 'app.bsky.notification.putPreferences',
|
|
16790
|
+
AppBskyNotificationPutPreferencesV2: 'app.bsky.notification.putPreferencesV2',
|
|
16564
16791
|
AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush',
|
|
16565
16792
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
16566
16793
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
@@ -27,3 +27,79 @@ export function isRecordDeleted<V>(v: V) {
|
|
|
27
27
|
export function validateRecordDeleted<V>(v: V) {
|
|
28
28
|
return validate<RecordDeleted & V>(v, id, hashRecordDeleted)
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
export interface ChatPreference {
|
|
32
|
+
$type?: 'app.bsky.notification.defs#chatPreference'
|
|
33
|
+
filter: 'all' | 'accepted' | (string & {})
|
|
34
|
+
push: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const hashChatPreference = 'chatPreference'
|
|
38
|
+
|
|
39
|
+
export function isChatPreference<V>(v: V) {
|
|
40
|
+
return is$typed(v, id, hashChatPreference)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function validateChatPreference<V>(v: V) {
|
|
44
|
+
return validate<ChatPreference & V>(v, id, hashChatPreference)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface FilterablePreference {
|
|
48
|
+
$type?: 'app.bsky.notification.defs#filterablePreference'
|
|
49
|
+
filter: 'all' | 'follows' | (string & {})
|
|
50
|
+
list: boolean
|
|
51
|
+
push: boolean
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const hashFilterablePreference = 'filterablePreference'
|
|
55
|
+
|
|
56
|
+
export function isFilterablePreference<V>(v: V) {
|
|
57
|
+
return is$typed(v, id, hashFilterablePreference)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function validateFilterablePreference<V>(v: V) {
|
|
61
|
+
return validate<FilterablePreference & V>(v, id, hashFilterablePreference)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface Preference {
|
|
65
|
+
$type?: 'app.bsky.notification.defs#preference'
|
|
66
|
+
list: boolean
|
|
67
|
+
push: boolean
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const hashPreference = 'preference'
|
|
71
|
+
|
|
72
|
+
export function isPreference<V>(v: V) {
|
|
73
|
+
return is$typed(v, id, hashPreference)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function validatePreference<V>(v: V) {
|
|
77
|
+
return validate<Preference & V>(v, id, hashPreference)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface Preferences {
|
|
81
|
+
$type?: 'app.bsky.notification.defs#preferences'
|
|
82
|
+
chat: ChatPreference
|
|
83
|
+
follow: FilterablePreference
|
|
84
|
+
like: FilterablePreference
|
|
85
|
+
likeViaRepost: FilterablePreference
|
|
86
|
+
mention: FilterablePreference
|
|
87
|
+
quote: FilterablePreference
|
|
88
|
+
reply: FilterablePreference
|
|
89
|
+
repost: FilterablePreference
|
|
90
|
+
repostViaRepost: FilterablePreference
|
|
91
|
+
starterpackJoined: Preference
|
|
92
|
+
subscribedPost: Preference
|
|
93
|
+
unverified: Preference
|
|
94
|
+
verified: Preference
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const hashPreferences = 'preferences'
|
|
98
|
+
|
|
99
|
+
export function isPreferences<V>(v: V) {
|
|
100
|
+
return is$typed(v, id, hashPreferences)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function validatePreferences<V>(v: V) {
|
|
104
|
+
return validate<Preferences & V>(v, id, hashPreferences)
|
|
105
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyNotificationDefs from './defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.notification.getPreferences'
|
|
18
|
+
|
|
19
|
+
export interface QueryParams {}
|
|
20
|
+
|
|
21
|
+
export type InputSchema = undefined
|
|
22
|
+
|
|
23
|
+
export interface OutputSchema {
|
|
24
|
+
preferences: AppBskyNotificationDefs.Preferences
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CallOptions {
|
|
28
|
+
signal?: AbortSignal
|
|
29
|
+
headers?: HeadersMap
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean
|
|
34
|
+
headers: HeadersMap
|
|
35
|
+
data: OutputSchema
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function toKnownErr(e: any) {
|
|
39
|
+
return e
|
|
40
|
+
}
|