@atproto/pds 0.4.145 → 0.4.146
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 +9 -0
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +418 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +225 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.js +36 -0
- package/dist/lexicon/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts +52 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
- package/package.json +5 -5
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +227 -0
- package/src/lexicon/types/app/bsky/notification/defs.ts +76 -0
- package/src/lexicon/types/app/bsky/notification/getPreferences.ts +52 -0
- package/src/lexicon/types/app/bsky/notification/putPreferencesV2.ts +69 -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/lexicon/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/lexicon/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/lexicon/types/app/bsky/notification/defs.ts"],"names":[],"mappings":";;AAsBA,0CAEC;AAED,sDAEC;
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/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,35 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import type * as AppBskyNotificationDefs from './defs.js';
|
7
|
+
export interface QueryParams {
|
8
|
+
}
|
9
|
+
export type InputSchema = undefined;
|
10
|
+
export interface OutputSchema {
|
11
|
+
preferences: AppBskyNotificationDefs.Preferences;
|
12
|
+
}
|
13
|
+
export type HandlerInput = undefined;
|
14
|
+
export interface HandlerSuccess {
|
15
|
+
encoding: 'application/json';
|
16
|
+
body: OutputSchema;
|
17
|
+
headers?: {
|
18
|
+
[key: string]: string;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
export interface HandlerError {
|
22
|
+
status: number;
|
23
|
+
message?: string;
|
24
|
+
}
|
25
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
26
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
27
|
+
auth: HA;
|
28
|
+
params: QueryParams;
|
29
|
+
input: HandlerInput;
|
30
|
+
req: express.Request;
|
31
|
+
res: express.Response;
|
32
|
+
resetRouteRateLimits: () => Promise<void>;
|
33
|
+
};
|
34
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
35
|
+
//# sourceMappingURL=getPreferences.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/getPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAS7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,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,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,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.getPreferences';
|
7
|
+
//# sourceMappingURL=getPreferences.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/getPreferences.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import type * as AppBskyNotificationDefs from './defs.js';
|
7
|
+
export interface QueryParams {
|
8
|
+
}
|
9
|
+
export interface InputSchema {
|
10
|
+
chat?: AppBskyNotificationDefs.ChatPreference;
|
11
|
+
follow?: AppBskyNotificationDefs.FilterablePreference;
|
12
|
+
like?: AppBskyNotificationDefs.FilterablePreference;
|
13
|
+
likeViaRepost?: AppBskyNotificationDefs.FilterablePreference;
|
14
|
+
mention?: AppBskyNotificationDefs.FilterablePreference;
|
15
|
+
quote?: AppBskyNotificationDefs.FilterablePreference;
|
16
|
+
reply?: AppBskyNotificationDefs.FilterablePreference;
|
17
|
+
repost?: AppBskyNotificationDefs.FilterablePreference;
|
18
|
+
repostViaRepost?: AppBskyNotificationDefs.FilterablePreference;
|
19
|
+
starterpackJoined?: AppBskyNotificationDefs.Preference;
|
20
|
+
subscribedPost?: AppBskyNotificationDefs.Preference;
|
21
|
+
unverified?: AppBskyNotificationDefs.Preference;
|
22
|
+
verified?: AppBskyNotificationDefs.Preference;
|
23
|
+
}
|
24
|
+
export interface OutputSchema {
|
25
|
+
preferences: AppBskyNotificationDefs.Preferences;
|
26
|
+
}
|
27
|
+
export interface HandlerInput {
|
28
|
+
encoding: 'application/json';
|
29
|
+
body: InputSchema;
|
30
|
+
}
|
31
|
+
export interface HandlerSuccess {
|
32
|
+
encoding: 'application/json';
|
33
|
+
body: OutputSchema;
|
34
|
+
headers?: {
|
35
|
+
[key: string]: string;
|
36
|
+
};
|
37
|
+
}
|
38
|
+
export interface HandlerError {
|
39
|
+
status: number;
|
40
|
+
message?: string;
|
41
|
+
}
|
42
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
43
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
44
|
+
auth: HA;
|
45
|
+
params: QueryParams;
|
46
|
+
input: HandlerInput;
|
47
|
+
req: express.Request;
|
48
|
+
res: express.Response;
|
49
|
+
resetRouteRateLimits: () => Promise<void>;
|
50
|
+
};
|
51
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
52
|
+
//# sourceMappingURL=putPreferencesV2.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"putPreferencesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/putPreferencesV2.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAS7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,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,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,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.putPreferencesV2';
|
7
|
+
//# sourceMappingURL=putPreferencesV2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"putPreferencesV2.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/putPreferencesV2.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wCAAwC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.146",
|
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.15",
|
52
|
-
"@atproto/api": "^0.15.
|
52
|
+
"@atproto/api": "^0.15.14",
|
53
53
|
"@atproto/aws": "^0.2.21",
|
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.14",
|
81
|
+
"@atproto/bsky": "^0.0.157",
|
82
|
+
"@atproto/dev-env": "^0.3.140",
|
83
83
|
"@atproto/lex-cli": "^0.8.2",
|
84
84
|
"@atproto/oauth-client-browser-example": "0.0.4"
|
85
85
|
},
|
package/src/lexicon/index.ts
CHANGED
@@ -138,9 +138,11 @@ import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor.js'
|
|
138
138
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList.js'
|
139
139
|
import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread.js'
|
140
140
|
import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
|
141
|
+
import * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
|
141
142
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
|
142
143
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
|
143
144
|
import * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
|
145
|
+
import * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
|
144
146
|
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
|
145
147
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
146
148
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
@@ -1903,6 +1905,17 @@ export class AppBskyNotificationNS {
|
|
1903
1905
|
this._server = server
|
1904
1906
|
}
|
1905
1907
|
|
1908
|
+
getPreferences<AV extends AuthVerifier>(
|
1909
|
+
cfg: ConfigOf<
|
1910
|
+
AV,
|
1911
|
+
AppBskyNotificationGetPreferences.Handler<ExtractAuth<AV>>,
|
1912
|
+
AppBskyNotificationGetPreferences.HandlerReqCtx<ExtractAuth<AV>>
|
1913
|
+
>,
|
1914
|
+
) {
|
1915
|
+
const nsid = 'app.bsky.notification.getPreferences' // @ts-ignore
|
1916
|
+
return this._server.xrpc.method(nsid, cfg)
|
1917
|
+
}
|
1918
|
+
|
1906
1919
|
getUnreadCount<AV extends AuthVerifier>(
|
1907
1920
|
cfg: ConfigOf<
|
1908
1921
|
AV,
|
@@ -1936,6 +1949,17 @@ export class AppBskyNotificationNS {
|
|
1936
1949
|
return this._server.xrpc.method(nsid, cfg)
|
1937
1950
|
}
|
1938
1951
|
|
1952
|
+
putPreferencesV2<AV extends AuthVerifier>(
|
1953
|
+
cfg: ConfigOf<
|
1954
|
+
AV,
|
1955
|
+
AppBskyNotificationPutPreferencesV2.Handler<ExtractAuth<AV>>,
|
1956
|
+
AppBskyNotificationPutPreferencesV2.HandlerReqCtx<ExtractAuth<AV>>
|
1957
|
+
>,
|
1958
|
+
) {
|
1959
|
+
const nsid = 'app.bsky.notification.putPreferencesV2' // @ts-ignore
|
1960
|
+
return this._server.xrpc.method(nsid, cfg)
|
1961
|
+
}
|
1962
|
+
|
1939
1963
|
registerPush<AV extends AuthVerifier>(
|
1940
1964
|
cfg: ConfigOf<
|
1941
1965
|
AV,
|
package/src/lexicon/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
|
+
}
|