@atproto/bsky 0.0.190 → 0.0.191
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 +8 -0
- package/dist/data-plane/server/routes/suggestions.js +1 -1
- package/dist/data-plane/server/routes/suggestions.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 +6 -6
- package/src/data-plane/server/routes/suggestions.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
|
@@ -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.labeler.service';
|
|
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=service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":";;AAmCA,
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":";;AAmCA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAzChC,mDAA4D;AAC5D,2CAIyB;AAKzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0BAA0B,CAAA;AAgBrC,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 AppBskyLabelerDefs from './defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.labeler.service'\n\nexport interface Main {\n $type: 'app.bsky.labeler.service'\n policies: AppBskyLabelerDefs.LabelerPolicies\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n createdAt: string\n /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */\n reasonTypes?: ComAtprotoModerationDefs.ReasonType[]\n /** The set of subject types (account, record, etc) this service accepts reports on. */\n subjectTypes?: ComAtprotoModerationDefs.SubjectType[]\n /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */\n subjectCollections?: 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"]}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
export interface
|
|
5
|
+
export interface Main {
|
|
6
6
|
$type: 'app.bsky.notification.declaration';
|
|
7
7
|
/** A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. */
|
|
8
8
|
allowSubscriptions: 'followers' | 'mutuals' | 'none' | (string & {});
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.notification.declaration", "main">;
|
|
12
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
13
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
13
14
|
//# sourceMappingURL=declaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,mCAAmC,CAAA;IAC1C,4IAA4I;IAC5I,kBAAkB,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACpE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAE7B;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.notification.declaration';
|
|
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=declaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/declaration.ts"],"names":[],"mappings":";;AAyBA,
|
|
1
|
+
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/notification/declaration.ts"],"names":[],"mappings":";;AAyBA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA/BhC,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AAS9C,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.declaration'\n\nexport interface Main {\n $type: 'app.bsky.notification.declaration'\n /** A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. */\n allowSubscriptions: 'followers' | 'mutuals' | 'none' | (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"]}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
export interface
|
|
5
|
+
export interface Main {
|
|
6
6
|
$type: 'chat.bsky.actor.declaration';
|
|
7
7
|
allowIncoming: 'all' | 'none' | 'following' | (string & {});
|
|
8
8
|
[k: string]: unknown;
|
|
9
9
|
}
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
10
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.actor.declaration", "main">;
|
|
11
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
12
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
12
13
|
//# sourceMappingURL=declaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6BAA6B,CAAA;IACpC,aAAa,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC3D,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAE7B;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 = 'chat.bsky.actor.declaration';
|
|
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=declaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":";;AAwBA,
|
|
1
|
+
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":";;AAwBA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA9BhC,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AAQxC,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.actor.declaration'\n\nexport interface Main {\n $type: 'chat.bsky.actor.declaration'\n allowIncoming: 'all' | 'none' | 'following' | (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"]}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
export interface
|
|
5
|
+
export interface Main {
|
|
6
6
|
$type: 'com.atproto.lexicon.schema';
|
|
7
7
|
/** Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. */
|
|
8
8
|
lexicon: number;
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.lexicon.schema", "main">;
|
|
12
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
13
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
13
14
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/lexicon/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/lexicon/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,4BAA4B,CAAA;IACnC,kHAAkH;IAClH,OAAO,EAAE,MAAM,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;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 = 'com.atproto.lexicon.schema';
|
|
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=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/lexicon/schema.ts"],"names":[],"mappings":";;AAyBA,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/lexicon/schema.ts"],"names":[],"mappings":";;AAyBA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA/BhC,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,CAAA;AASvC,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.lexicon.schema'\n\nexport interface Main {\n $type: 'com.atproto.lexicon.schema'\n /** Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. */\n lexicon: number\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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.191",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"uint8arrays": "3.0.0",
|
|
52
52
|
"undici": "^6.19.8",
|
|
53
53
|
"zod": "3.23.8",
|
|
54
|
-
"@atproto-labs/fetch-node": "0.
|
|
54
|
+
"@atproto-labs/fetch-node": "0.2.0",
|
|
55
|
+
"@atproto/api": "^0.17.4",
|
|
55
56
|
"@atproto-labs/xrpc-utils": "0.0.22",
|
|
56
|
-
"@atproto/api": "^0.17.3",
|
|
57
57
|
"@atproto/common": "^0.4.12",
|
|
58
58
|
"@atproto/crypto": "^0.4.4",
|
|
59
59
|
"@atproto/did": "^0.2.1",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"jest": "^28.1.2",
|
|
78
78
|
"ts-node": "^10.8.2",
|
|
79
79
|
"typescript": "^5.6.3",
|
|
80
|
-
"@atproto/api": "^0.17.
|
|
81
|
-
"@atproto/lex-cli": "^0.9.
|
|
82
|
-
"@atproto/pds": "^0.4.
|
|
80
|
+
"@atproto/api": "^0.17.4",
|
|
81
|
+
"@atproto/lex-cli": "^0.9.6",
|
|
82
|
+
"@atproto/pds": "^0.4.187",
|
|
83
83
|
"@atproto/xrpc": "^0.7.5"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
@@ -55,7 +55,7 @@ const getFollowSuggestionsGlobal = async (
|
|
|
55
55
|
const rest = suggestions.filter((row) => row.order !== 1 && row.order !== 2)
|
|
56
56
|
const limited = firstTwo.concat(shuffle(rest)).slice(0, input.limit)
|
|
57
57
|
|
|
58
|
-
// if the result set ends up getting larger, consider using a seed included in the cursor for
|
|
58
|
+
// if the result set ends up getting larger, consider using a seed included in the cursor for the randomized shuffle
|
|
59
59
|
const cursor =
|
|
60
60
|
limited.length > 0
|
|
61
61
|
? limited
|
|
@@ -16,7 +16,7 @@ const is$typed = _is$typed,
|
|
|
16
16
|
validate = _validate
|
|
17
17
|
const id = 'app.bsky.actor.profile'
|
|
18
18
|
|
|
19
|
-
export interface
|
|
19
|
+
export interface Main {
|
|
20
20
|
$type: 'app.bsky.actor.profile'
|
|
21
21
|
displayName?: string
|
|
22
22
|
/** Free-form profile description text. */
|
|
@@ -35,12 +35,18 @@ export interface Record {
|
|
|
35
35
|
[k: string]: unknown
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const
|
|
38
|
+
const hashMain = 'main'
|
|
39
39
|
|
|
40
|
-
export function
|
|
41
|
-
return is$typed(v, id,
|
|
40
|
+
export function isMain<V>(v: V) {
|
|
41
|
+
return is$typed(v, id, hashMain)
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export function
|
|
45
|
-
return validate<
|
|
44
|
+
export function validateMain<V>(v: V) {
|
|
45
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
type Main as Record,
|
|
50
|
+
isMain as isRecord,
|
|
51
|
+
validateMain as validateRecord,
|
|
46
52
|
}
|
|
@@ -15,7 +15,7 @@ const is$typed = _is$typed,
|
|
|
15
15
|
validate = _validate
|
|
16
16
|
const id = 'app.bsky.actor.status'
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface Main {
|
|
19
19
|
$type: 'app.bsky.actor.status'
|
|
20
20
|
/** The status for the account. */
|
|
21
21
|
status: 'app.bsky.actor.status#live' | (string & {})
|
|
@@ -26,14 +26,20 @@ export interface Record {
|
|
|
26
26
|
[k: string]: unknown
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const hashMain = 'main'
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return is$typed(v, id,
|
|
31
|
+
export function isMain<V>(v: V) {
|
|
32
|
+
return is$typed(v, id, hashMain)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export function
|
|
36
|
-
return validate<
|
|
35
|
+
export function validateMain<V>(v: V) {
|
|
36
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
type Main as Record,
|
|
41
|
+
isMain as isRecord,
|
|
42
|
+
validateMain as validateRecord,
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
/** Advertises an account as currently offering live content. */
|
|
@@ -16,7 +16,7 @@ const is$typed = _is$typed,
|
|
|
16
16
|
validate = _validate
|
|
17
17
|
const id = 'app.bsky.feed.generator'
|
|
18
18
|
|
|
19
|
-
export interface
|
|
19
|
+
export interface Main {
|
|
20
20
|
$type: 'app.bsky.feed.generator'
|
|
21
21
|
did: string
|
|
22
22
|
displayName: string
|
|
@@ -34,12 +34,18 @@ export interface Record {
|
|
|
34
34
|
[k: string]: unknown
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const
|
|
37
|
+
const hashMain = 'main'
|
|
38
38
|
|
|
39
|
-
export function
|
|
40
|
-
return is$typed(v, id,
|
|
39
|
+
export function isMain<V>(v: V) {
|
|
40
|
+
return is$typed(v, id, hashMain)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export function
|
|
44
|
-
return validate<
|
|
43
|
+
export function validateMain<V>(v: V) {
|
|
44
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
type Main as Record,
|
|
49
|
+
isMain as isRecord,
|
|
50
|
+
validateMain as validateRecord,
|
|
45
51
|
}
|
|
@@ -15,7 +15,7 @@ const is$typed = _is$typed,
|
|
|
15
15
|
validate = _validate
|
|
16
16
|
const id = 'app.bsky.feed.like'
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface Main {
|
|
19
19
|
$type: 'app.bsky.feed.like'
|
|
20
20
|
subject: ComAtprotoRepoStrongRef.Main
|
|
21
21
|
createdAt: string
|
|
@@ -23,12 +23,18 @@ export interface Record {
|
|
|
23
23
|
[k: string]: unknown
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const hashMain = 'main'
|
|
27
27
|
|
|
28
|
-
export function
|
|
29
|
-
return is$typed(v, id,
|
|
28
|
+
export function isMain<V>(v: V) {
|
|
29
|
+
return is$typed(v, id, hashMain)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export function
|
|
33
|
-
return validate<
|
|
32
|
+
export function validateMain<V>(v: V) {
|
|
33
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
type Main as Record,
|
|
38
|
+
isMain as isRecord,
|
|
39
|
+
validateMain as validateRecord,
|
|
34
40
|
}
|
|
@@ -22,7 +22,7 @@ const is$typed = _is$typed,
|
|
|
22
22
|
validate = _validate
|
|
23
23
|
const id = 'app.bsky.feed.post'
|
|
24
24
|
|
|
25
|
-
export interface
|
|
25
|
+
export interface Main {
|
|
26
26
|
$type: 'app.bsky.feed.post'
|
|
27
27
|
/** The primary post content. May be an empty string, if there are embeds. */
|
|
28
28
|
text: string
|
|
@@ -48,14 +48,20 @@ export interface Record {
|
|
|
48
48
|
[k: string]: unknown
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const hashMain = 'main'
|
|
52
52
|
|
|
53
|
-
export function
|
|
54
|
-
return is$typed(v, id,
|
|
53
|
+
export function isMain<V>(v: V) {
|
|
54
|
+
return is$typed(v, id, hashMain)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export function
|
|
58
|
-
return validate<
|
|
57
|
+
export function validateMain<V>(v: V) {
|
|
58
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
type Main as Record,
|
|
63
|
+
isMain as isRecord,
|
|
64
|
+
validateMain as validateRecord,
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
export interface ReplyRef {
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.feed.postgate'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.feed.postgate'
|
|
19
19
|
createdAt: string
|
|
20
20
|
/** Reference (AT-URI) to the post record. */
|
|
@@ -26,14 +26,20 @@ export interface Record {
|
|
|
26
26
|
[k: string]: unknown
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const hashMain = 'main'
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return is$typed(v, id,
|
|
31
|
+
export function isMain<V>(v: V) {
|
|
32
|
+
return is$typed(v, id, hashMain)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export function
|
|
36
|
-
return validate<
|
|
35
|
+
export function validateMain<V>(v: V) {
|
|
36
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
type Main as Record,
|
|
41
|
+
isMain as isRecord,
|
|
42
|
+
validateMain as validateRecord,
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
/** Disables embedding of this post. */
|
|
@@ -15,7 +15,7 @@ const is$typed = _is$typed,
|
|
|
15
15
|
validate = _validate
|
|
16
16
|
const id = 'app.bsky.feed.repost'
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface Main {
|
|
19
19
|
$type: 'app.bsky.feed.repost'
|
|
20
20
|
subject: ComAtprotoRepoStrongRef.Main
|
|
21
21
|
createdAt: string
|
|
@@ -23,12 +23,18 @@ export interface Record {
|
|
|
23
23
|
[k: string]: unknown
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const hashMain = 'main'
|
|
27
27
|
|
|
28
|
-
export function
|
|
29
|
-
return is$typed(v, id,
|
|
28
|
+
export function isMain<V>(v: V) {
|
|
29
|
+
return is$typed(v, id, hashMain)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export function
|
|
33
|
-
return validate<
|
|
32
|
+
export function validateMain<V>(v: V) {
|
|
33
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
type Main as Record,
|
|
38
|
+
isMain as isRecord,
|
|
39
|
+
validateMain as validateRecord,
|
|
34
40
|
}
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.feed.threadgate'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.feed.threadgate'
|
|
19
19
|
/** Reference (AT-URI) to the post record. */
|
|
20
20
|
post: string
|
|
@@ -32,14 +32,20 @@ export interface Record {
|
|
|
32
32
|
[k: string]: unknown
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const hashMain = 'main'
|
|
36
36
|
|
|
37
|
-
export function
|
|
38
|
-
return is$typed(v, id,
|
|
37
|
+
export function isMain<V>(v: V) {
|
|
38
|
+
return is$typed(v, id, hashMain)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export function
|
|
42
|
-
return validate<
|
|
41
|
+
export function validateMain<V>(v: V) {
|
|
42
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
type Main as Record,
|
|
47
|
+
isMain as isRecord,
|
|
48
|
+
validateMain as validateRecord,
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
/** Allow replies from actors mentioned in your post. */
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.block'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.block'
|
|
19
19
|
/** DID of the account to be blocked. */
|
|
20
20
|
subject: string
|
|
@@ -22,12 +22,18 @@ export interface Record {
|
|
|
22
22
|
[k: string]: unknown
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const hashMain = 'main'
|
|
26
26
|
|
|
27
|
-
export function
|
|
28
|
-
return is$typed(v, id,
|
|
27
|
+
export function isMain<V>(v: V) {
|
|
28
|
+
return is$typed(v, id, hashMain)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return validate<
|
|
31
|
+
export function validateMain<V>(v: V) {
|
|
32
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
type Main as Record,
|
|
37
|
+
isMain as isRecord,
|
|
38
|
+
validateMain as validateRecord,
|
|
33
39
|
}
|
|
@@ -14,19 +14,25 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.follow'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.follow'
|
|
19
19
|
subject: string
|
|
20
20
|
createdAt: string
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const hashMain = 'main'
|
|
25
25
|
|
|
26
|
-
export function
|
|
27
|
-
return is$typed(v, id,
|
|
26
|
+
export function isMain<V>(v: V) {
|
|
27
|
+
return is$typed(v, id, hashMain)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
31
|
-
return validate<
|
|
30
|
+
export function validateMain<V>(v: V) {
|
|
31
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
type Main as Record,
|
|
36
|
+
isMain as isRecord,
|
|
37
|
+
validateMain as validateRecord,
|
|
32
38
|
}
|