@atproto/pds 0.4.185 → 0.4.187
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 +17 -0
- package/dist/account-manager/account-manager.d.ts +1 -1
- package/dist/account-manager/account-manager.d.ts.map +1 -1
- package/dist/account-manager/account-manager.js +1 -0
- package/dist/account-manager/account-manager.js.map +1 -1
- package/dist/account-manager/helpers/email-token.js +1 -1
- package/dist/account-manager/helpers/email-token.js.map +1 -1
- package/dist/account-manager/oauth-store.d.ts +2 -2
- package/dist/account-manager/oauth-store.d.ts.map +1 -1
- package/dist/account-manager/oauth-store.js +9 -3
- package/dist/account-manager/oauth-store.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +2 -2
- package/dist/lexicon/lexicons.js +1 -1
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.js +9 -7
- package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/status.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/status.js +9 -7
- package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/like.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/like.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/like.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/repost.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/repost.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/repost.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/block.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/block.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/block.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/follow.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/follow.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/follow.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/list.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/list.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/list.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listblock.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/listblock.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listblock.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listitem.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/listitem.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listitem.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/starterpack.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/verification.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/verification.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/verification.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/verification.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.js +9 -7
- package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/declaration.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/notification/declaration.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/declaration.js +9 -7
- package/dist/lexicon/types/app/bsky/notification/declaration.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +4 -3
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +9 -7
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts +4 -3
- package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/lexicon/schema.js +9 -7
- package/dist/lexicon/types/com/atproto/lexicon/schema.js.map +1 -1
- package/package.json +8 -8
- package/src/account-manager/account-manager.ts +2 -0
- package/src/account-manager/helpers/email-token.ts +1 -1
- package/src/account-manager/oauth-store.ts +15 -5
- package/src/lexicon/lexicons.ts +1 -1
- package/src/lexicon/types/app/bsky/actor/profile.ts +12 -6
- package/src/lexicon/types/app/bsky/actor/status.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/generator.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/like.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/post.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/postgate.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/repost.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/block.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/follow.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/list.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/listblock.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/listitem.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/starterpack.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/verification.ts +12 -6
- package/src/lexicon/types/app/bsky/labeler/service.ts +12 -6
- package/src/lexicon/types/app/bsky/notification/declaration.ts +12 -6
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +12 -6
- package/src/lexicon/types/com/atproto/lexicon/schema.ts +12 -6
|
@@ -5,7 +5,7 @@ import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
6
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
7
7
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
8
|
-
export interface
|
|
8
|
+
export interface Main {
|
|
9
9
|
$type: 'app.bsky.actor.profile';
|
|
10
10
|
displayName?: string;
|
|
11
11
|
/** Free-form profile description text. */
|
|
@@ -25,6 +25,7 @@ export interface Record {
|
|
|
25
25
|
createdAt?: string;
|
|
26
26
|
[k: string]: unknown;
|
|
27
27
|
}
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
28
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.actor.profile", "main">;
|
|
29
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
30
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
30
31
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,wBAAwB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qFAAqF;IACrF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACnD,UAAU,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
const lexicons_1 = require("../../../../lexicons");
|
|
6
8
|
const util_1 = require("../../../../util");
|
|
7
9
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
8
10
|
const id = 'app.bsky.actor.profile';
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return is$typed(v, id,
|
|
11
|
+
const hashMain = 'main';
|
|
12
|
+
function isMain(v) {
|
|
13
|
+
return is$typed(v, id, hashMain);
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return validate(v, id,
|
|
15
|
+
function validateMain(v) {
|
|
16
|
+
return validate(v, id, hashMain, true);
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/profile.ts"],"names":[],"mappings":";;AAuCA,
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/profile.ts"],"names":[],"mappings":";;AAuCA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA7ChC,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAqBnC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.actor.profile'\n\nexport interface Main {\n $type: 'app.bsky.actor.profile'\n displayName?: string\n /** Free-form profile description text. */\n description?: string\n /** Free-form pronouns text. */\n pronouns?: string\n website?: string\n /** Small image to be displayed next to posts from account. AKA, 'profile picture' */\n avatar?: BlobRef\n /** Larger horizontal image to display behind profile view. */\n banner?: BlobRef\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main\n pinnedPost?: ComAtprotoRepoStrongRef.Main\n createdAt?: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
6
|
import type * as AppBskyEmbedExternal from '../embed/external.js';
|
|
7
|
-
export interface
|
|
7
|
+
export interface Main {
|
|
8
8
|
$type: 'app.bsky.actor.status';
|
|
9
9
|
/** The status for the account. */
|
|
10
10
|
status: 'app.bsky.actor.status#live' | (string & {});
|
|
@@ -16,8 +16,9 @@ export interface Record {
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.actor.status", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
21
22
|
/** Advertises an account as currently offering live content. */
|
|
22
23
|
export declare const LIVE = "app.bsky.actor.status#live";
|
|
23
24
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAMjE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAMjE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,uBAAuB,CAAA;IAC9B,kCAAkC;IAClC,MAAM,EAAE,4BAA4B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7D,2GAA2G;IAC3G,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,IAAI,+BAAe,CAAA"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LIVE = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
4
|
+
exports.isMain = isMain;
|
|
5
|
+
exports.isRecord = isMain;
|
|
6
|
+
exports.validateMain = validateMain;
|
|
7
|
+
exports.validateRecord = validateMain;
|
|
6
8
|
const lexicons_1 = require("../../../../lexicons");
|
|
7
9
|
const util_1 = require("../../../../util");
|
|
8
10
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
9
11
|
const id = 'app.bsky.actor.status';
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return is$typed(v, id,
|
|
12
|
+
const hashMain = 'main';
|
|
13
|
+
function isMain(v) {
|
|
14
|
+
return is$typed(v, id, hashMain);
|
|
13
15
|
}
|
|
14
|
-
function
|
|
15
|
-
return validate(v, id,
|
|
16
|
+
function validateMain(v) {
|
|
17
|
+
return validate(v, id, hashMain, true);
|
|
16
18
|
}
|
|
17
19
|
/** Advertises an account as currently offering live content. */
|
|
18
20
|
exports.LIVE = `${id}#live`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":";;;AA8BA,
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":";;;AA8BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AApChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uBAAuB,CAAA;AAalC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAQD,gEAAgE;AACnD,QAAA,IAAI,GAAG,GAAG,EAAE,OAAO,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.actor.status'\n\nexport interface Main {\n $type: 'app.bsky.actor.status'\n /** The status for the account. */\n status: 'app.bsky.actor.status#live' | (string & {})\n embed?: $Typed<AppBskyEmbedExternal.Main> | { $type: string }\n /** The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. */\n durationMinutes?: number\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\n/** Advertises an account as currently offering live content. */\nexport const LIVE = `${id}#live`\n"]}
|
|
@@ -5,7 +5,7 @@ import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
6
|
import type * as AppBskyRichtextFacet from '../richtext/facet.js';
|
|
7
7
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
8
|
-
export interface
|
|
8
|
+
export interface Main {
|
|
9
9
|
$type: 'app.bsky.feed.generator';
|
|
10
10
|
did: string;
|
|
11
11
|
displayName: string;
|
|
@@ -21,6 +21,7 @@ export interface Record {
|
|
|
21
21
|
createdAt: string;
|
|
22
22
|
[k: string]: unknown;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
24
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.generator", "main">;
|
|
25
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
26
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
26
27
|
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,yBAAyB,CAAA;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAA;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iHAAiH;IACjH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,WAAW,CAAC,EACR,2CAA2C,GAC3C,qCAAqC,GACrC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
const lexicons_1 = require("../../../../lexicons");
|
|
6
8
|
const util_1 = require("../../../../util");
|
|
7
9
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
8
10
|
const id = 'app.bsky.feed.generator';
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return is$typed(v, id,
|
|
11
|
+
const hashMain = 'main';
|
|
12
|
+
function isMain(v) {
|
|
13
|
+
return is$typed(v, id, hashMain);
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return validate(v, id,
|
|
15
|
+
function validateMain(v) {
|
|
16
|
+
return validate(v, id, hashMain, true);
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":";;AAsCA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":";;AAsCA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA5ChC,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAoBpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.generator'\n\nexport interface Main {\n $type: 'app.bsky.feed.generator'\n did: string\n displayName: string\n description?: string\n descriptionFacets?: AppBskyRichtextFacet.Main[]\n avatar?: BlobRef\n /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */\n acceptsInteractions?: boolean\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n contentMode?:\n | 'app.bsky.feed.defs#contentModeUnspecified'\n | 'app.bsky.feed.defs#contentModeVideo'\n | (string & {})\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface Main {
|
|
7
7
|
$type: 'app.bsky.feed.like';
|
|
8
8
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
9
9
|
createdAt: string;
|
|
10
10
|
via?: ComAtprotoRepoStrongRef.Main;
|
|
11
11
|
[k: string]: unknown;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
13
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.like", "main">;
|
|
14
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
15
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
15
16
|
//# sourceMappingURL=like.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,oBAAoB,CAAA;IAC3B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
const lexicons_1 = require("../../../../lexicons");
|
|
6
8
|
const util_1 = require("../../../../util");
|
|
7
9
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
8
10
|
const id = 'app.bsky.feed.like';
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return is$typed(v, id,
|
|
11
|
+
const hashMain = 'main';
|
|
12
|
+
function isMain(v) {
|
|
13
|
+
return is$typed(v, id, hashMain);
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return validate(v, id,
|
|
15
|
+
function validateMain(v) {
|
|
16
|
+
return validate(v, id, hashMain, true);
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=like.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"like.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":";;AA2BA,
|
|
1
|
+
{"version":3,"file":"like.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":";;AA2BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAjChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AAU/B,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.like'\n\nexport interface Main {\n $type: 'app.bsky.feed.like'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
|
|
@@ -11,7 +11,7 @@ import type * as AppBskyEmbedRecord from '../embed/record.js';
|
|
|
11
11
|
import type * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia.js';
|
|
12
12
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
13
13
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
14
|
-
export interface
|
|
14
|
+
export interface Main {
|
|
15
15
|
$type: 'app.bsky.feed.post';
|
|
16
16
|
/** The primary post content. May be an empty string, if there are embeds. */
|
|
17
17
|
text: string;
|
|
@@ -34,8 +34,9 @@ export interface Record {
|
|
|
34
34
|
createdAt: string;
|
|
35
35
|
[k: string]: unknown;
|
|
36
36
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
37
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.post", "main">;
|
|
38
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
39
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
39
40
|
export interface ReplyRef {
|
|
40
41
|
$type?: 'app.bsky.feed.post#replyRef';
|
|
41
42
|
root: ComAtprotoRepoStrongRef.Main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,kBAAkB,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,KAAK,iBAAiB,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,kBAAkB,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,KAAK,2BAA2B,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
exports.isReplyRef = isReplyRef;
|
|
6
8
|
exports.validateReplyRef = validateReplyRef;
|
|
7
9
|
exports.isEntity = isEntity;
|
|
@@ -12,12 +14,12 @@ const lexicons_1 = require("../../../../lexicons");
|
|
|
12
14
|
const util_1 = require("../../../../util");
|
|
13
15
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
14
16
|
const id = 'app.bsky.feed.post';
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return is$typed(v, id,
|
|
17
|
+
const hashMain = 'main';
|
|
18
|
+
function isMain(v) {
|
|
19
|
+
return is$typed(v, id, hashMain);
|
|
18
20
|
}
|
|
19
|
-
function
|
|
20
|
-
return validate(v, id,
|
|
21
|
+
function validateMain(v) {
|
|
22
|
+
return validate(v, id, hashMain, true);
|
|
21
23
|
}
|
|
22
24
|
const hashReplyRef = 'replyRef';
|
|
23
25
|
function isReplyRef(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":";;AAoDA,
|
|
1
|
+
{"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":";;AAoDA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAWhC,gCAEC;AAED,4CAEC;AAaD,4BAEC;AAED,wCAEC;AAWD,kCAEC;AAED,8CAEC;AA/GD,mDAA4D;AAC5D,2CAIyB;AAUzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AA4B/B,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAcD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAWD,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as AppBskyEmbedImages from '../embed/images.js'\nimport type * as AppBskyEmbedVideo from '../embed/video.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyEmbedRecord from '../embed/record.js'\nimport type * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.post'\n\nexport interface Main {\n $type: 'app.bsky.feed.post'\n /** The primary post content. May be an empty string, if there are embeds. */\n text: string\n /** DEPRECATED: replaced by app.bsky.richtext.facet. */\n entities?: Entity[]\n /** Annotations of text (mentions, URLs, hashtags, etc) */\n facets?: AppBskyRichtextFacet.Main[]\n reply?: ReplyRef\n embed?:\n | $Typed<AppBskyEmbedImages.Main>\n | $Typed<AppBskyEmbedVideo.Main>\n | $Typed<AppBskyEmbedExternal.Main>\n | $Typed<AppBskyEmbedRecord.Main>\n | $Typed<AppBskyEmbedRecordWithMedia.Main>\n | { $type: string }\n /** Indicates human language of post primary text content. */\n langs?: string[]\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n /** Additional hashtags, in addition to any included in post text and facets. */\n tags?: string[]\n /** Client-declared timestamp when this post was originally created. */\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\nexport interface ReplyRef {\n $type?: 'app.bsky.feed.post#replyRef'\n root: ComAtprotoRepoStrongRef.Main\n parent: ComAtprotoRepoStrongRef.Main\n}\n\nconst hashReplyRef = 'replyRef'\n\nexport function isReplyRef<V>(v: V) {\n return is$typed(v, id, hashReplyRef)\n}\n\nexport function validateReplyRef<V>(v: V) {\n return validate<ReplyRef & V>(v, id, hashReplyRef)\n}\n\n/** Deprecated: use facets instead. */\nexport interface Entity {\n $type?: 'app.bsky.feed.post#entity'\n index: TextSlice\n /** Expected values are 'mention' and 'link'. */\n type: string\n value: string\n}\n\nconst hashEntity = 'entity'\n\nexport function isEntity<V>(v: V) {\n return is$typed(v, id, hashEntity)\n}\n\nexport function validateEntity<V>(v: V) {\n return validate<Entity & V>(v, id, hashEntity)\n}\n\n/** Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. */\nexport interface TextSlice {\n $type?: 'app.bsky.feed.post#textSlice'\n start: number\n end: number\n}\n\nconst hashTextSlice = 'textSlice'\n\nexport function isTextSlice<V>(v: V) {\n return is$typed(v, id, hashTextSlice)\n}\n\nexport function validateTextSlice<V>(v: V) {\n return validate<TextSlice & V>(v, id, hashTextSlice)\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
|
-
export interface
|
|
6
|
+
export interface Main {
|
|
7
7
|
$type: 'app.bsky.feed.postgate';
|
|
8
8
|
createdAt: string;
|
|
9
9
|
/** Reference (AT-URI) to the post record. */
|
|
@@ -16,8 +16,9 @@ export interface Record {
|
|
|
16
16
|
})[];
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.postgate", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
21
22
|
/** Disables embedding of this post. */
|
|
22
23
|
export interface DisableRule {
|
|
23
24
|
$type?: 'app.bsky.feed.postgate#disableRule';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.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,WAAW,
|
|
1
|
+
{"version":3,"file":"postgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.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,WAAW,IAAI;IACnB,KAAK,EAAE,wBAAwB,CAAA;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;IAChC,kJAAkJ;IAClJ,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IAC5D,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,uCAAuC;AACvC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;CAC7C;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
exports.isDisableRule = isDisableRule;
|
|
6
8
|
exports.validateDisableRule = validateDisableRule;
|
|
7
9
|
const lexicons_1 = require("../../../../lexicons");
|
|
8
10
|
const util_1 = require("../../../../util");
|
|
9
11
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
10
12
|
const id = 'app.bsky.feed.postgate';
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return is$typed(v, id,
|
|
13
|
+
const hashMain = 'main';
|
|
14
|
+
function isMain(v) {
|
|
15
|
+
return is$typed(v, id, hashMain);
|
|
14
16
|
}
|
|
15
|
-
function
|
|
16
|
-
return validate(v, id,
|
|
17
|
+
function validateMain(v) {
|
|
18
|
+
return validate(v, id, hashMain, true);
|
|
17
19
|
}
|
|
18
20
|
const hashDisableRule = 'disableRule';
|
|
19
21
|
function isDisableRule(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.ts"],"names":[],"mappings":";;AA8BA,
|
|
1
|
+
{"version":3,"file":"postgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.ts"],"names":[],"mappings":";;AA8BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAUhC,sCAEC;AAED,kDAEC;AApDD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAcnC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAaD,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","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.postgate'\n\nexport interface Main {\n $type: 'app.bsky.feed.postgate'\n createdAt: string\n /** Reference (AT-URI) to the post record. */\n post: string\n /** List of AT-URIs embedding this post that the author has detached from. */\n detachedEmbeddingUris?: string[]\n /** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */\n embeddingRules?: ($Typed<DisableRule> | { $type: string })[]\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\n/** Disables embedding of this post. */\nexport interface DisableRule {\n $type?: 'app.bsky.feed.postgate#disableRule'\n}\n\nconst hashDisableRule = 'disableRule'\n\nexport function isDisableRule<V>(v: V) {\n return is$typed(v, id, hashDisableRule)\n}\n\nexport function validateDisableRule<V>(v: V) {\n return validate<DisableRule & V>(v, id, hashDisableRule)\n}\n"]}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface Main {
|
|
7
7
|
$type: 'app.bsky.feed.repost';
|
|
8
8
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
9
9
|
createdAt: string;
|
|
10
10
|
via?: ComAtprotoRepoStrongRef.Main;
|
|
11
11
|
[k: string]: unknown;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
13
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.repost", "main">;
|
|
14
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
15
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
15
16
|
//# sourceMappingURL=repost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repost.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"repost.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
const lexicons_1 = require("../../../../lexicons");
|
|
6
8
|
const util_1 = require("../../../../util");
|
|
7
9
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
8
10
|
const id = 'app.bsky.feed.repost';
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return is$typed(v, id,
|
|
11
|
+
const hashMain = 'main';
|
|
12
|
+
function isMain(v) {
|
|
13
|
+
return is$typed(v, id, hashMain);
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return validate(v, id,
|
|
15
|
+
function validateMain(v) {
|
|
16
|
+
return validate(v, id, hashMain, true);
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=repost.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repost.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":";;AA2BA,
|
|
1
|
+
{"version":3,"file":"repost.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":";;AA2BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAjChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAUjC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.repost'\n\nexport interface Main {\n $type: 'app.bsky.feed.repost'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
|
-
export interface
|
|
6
|
+
export interface Main {
|
|
7
7
|
$type: 'app.bsky.feed.threadgate';
|
|
8
8
|
/** Reference (AT-URI) to the post record. */
|
|
9
9
|
post: string;
|
|
@@ -16,8 +16,9 @@ export interface Record {
|
|
|
16
16
|
hiddenReplies?: string[];
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.threadgate", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
21
22
|
/** Allow replies from actors mentioned in your post. */
|
|
22
23
|
export interface MentionRule {
|
|
23
24
|
$type?: 'app.bsky.feed.threadgate#mentionRule';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threadgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/threadgate.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,WAAW,
|
|
1
|
+
{"version":3,"file":"threadgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/threadgate.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,WAAW,IAAI;IACnB,KAAK,EAAE,0BAA0B,CAAA;IACjC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,gJAAgJ;IAChJ,KAAK,CAAC,EAAE,CACJ,MAAM,CAAC,WAAW,CAAC,GACnB,MAAM,CAAC,YAAY,CAAC,GACpB,MAAM,CAAC,aAAa,CAAC,GACrB,MAAM,CAAC,QAAQ,CAAC,GAChB;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CACpB,EAAE,CAAA;IACH,SAAS,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,sCAAsC,CAAA;CAC/C;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,uCAAuC,CAAA;CAChD;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,wCAAwC,CAAA;CACjD;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C;AAED,2CAA2C;AAC3C,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;CACb;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isMain = isMain;
|
|
4
|
+
exports.isRecord = isMain;
|
|
5
|
+
exports.validateMain = validateMain;
|
|
6
|
+
exports.validateRecord = validateMain;
|
|
5
7
|
exports.isMentionRule = isMentionRule;
|
|
6
8
|
exports.validateMentionRule = validateMentionRule;
|
|
7
9
|
exports.isFollowerRule = isFollowerRule;
|
|
@@ -14,12 +16,12 @@ const lexicons_1 = require("../../../../lexicons");
|
|
|
14
16
|
const util_1 = require("../../../../util");
|
|
15
17
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
16
18
|
const id = 'app.bsky.feed.threadgate';
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
return is$typed(v, id,
|
|
19
|
+
const hashMain = 'main';
|
|
20
|
+
function isMain(v) {
|
|
21
|
+
return is$typed(v, id, hashMain);
|
|
20
22
|
}
|
|
21
|
-
function
|
|
22
|
-
return validate(v, id,
|
|
23
|
+
function validateMain(v) {
|
|
24
|
+
return validate(v, id, hashMain, true);
|
|
23
25
|
}
|
|
24
26
|
const hashMentionRule = 'mentionRule';
|
|
25
27
|
function isMentionRule(v) {
|