@atproto/api 0.17.3 → 0.17.5
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 +12 -0
- package/dist/client/lexicons.d.ts +176 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +88 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.d.ts +4 -3
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js +9 -7
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/actor/status.d.ts +4 -3
- package/dist/client/types/app/bsky/actor/status.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/status.js +9 -7
- package/dist/client/types/app/bsky/actor/status.js.map +1 -1
- package/dist/client/types/app/bsky/feed/generator.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/generator.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/generator.js +9 -7
- package/dist/client/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/client/types/app/bsky/feed/like.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/like.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/like.js +9 -7
- package/dist/client/types/app/bsky/feed/like.js.map +1 -1
- package/dist/client/types/app/bsky/feed/post.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/post.js +9 -7
- package/dist/client/types/app/bsky/feed/post.js.map +1 -1
- package/dist/client/types/app/bsky/feed/postgate.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/postgate.js +9 -7
- package/dist/client/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/client/types/app/bsky/feed/repost.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/repost.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/repost.js +9 -7
- package/dist/client/types/app/bsky/feed/repost.js.map +1 -1
- package/dist/client/types/app/bsky/feed/threadgate.d.ts +4 -3
- package/dist/client/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/threadgate.js +9 -7
- package/dist/client/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/client/types/app/bsky/graph/block.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/block.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/block.js +9 -7
- package/dist/client/types/app/bsky/graph/block.js.map +1 -1
- package/dist/client/types/app/bsky/graph/follow.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/follow.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/follow.js +9 -7
- package/dist/client/types/app/bsky/graph/follow.js.map +1 -1
- package/dist/client/types/app/bsky/graph/list.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/list.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/list.js +9 -7
- package/dist/client/types/app/bsky/graph/list.js.map +1 -1
- package/dist/client/types/app/bsky/graph/listblock.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/listblock.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/listblock.js +9 -7
- package/dist/client/types/app/bsky/graph/listblock.js.map +1 -1
- package/dist/client/types/app/bsky/graph/listitem.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/listitem.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/listitem.js +9 -7
- package/dist/client/types/app/bsky/graph/listitem.js.map +1 -1
- package/dist/client/types/app/bsky/graph/starterpack.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/starterpack.js +9 -7
- package/dist/client/types/app/bsky/graph/starterpack.js.map +1 -1
- package/dist/client/types/app/bsky/graph/verification.d.ts +4 -3
- package/dist/client/types/app/bsky/graph/verification.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/verification.js +9 -7
- package/dist/client/types/app/bsky/graph/verification.js.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.d.ts +4 -3
- package/dist/client/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.js +9 -7
- package/dist/client/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/client/types/app/bsky/notification/declaration.d.ts +4 -3
- package/dist/client/types/app/bsky/notification/declaration.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/declaration.js +9 -7
- package/dist/client/types/app/bsky/notification/declaration.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.d.ts +4 -3
- package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.js +9 -7
- package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/client/types/com/atproto/lexicon/schema.d.ts +4 -3
- package/dist/client/types/com/atproto/lexicon/schema.d.ts.map +1 -1
- package/dist/client/types/com/atproto/lexicon/schema.js +9 -7
- package/dist/client/types/com/atproto/lexicon/schema.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +35 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js +9 -0
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryEvents.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
- package/dist/predicate.d.ts +1 -1
- package/dist/predicate.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/client/lexicons.ts +103 -0
- package/src/client/types/app/bsky/actor/profile.ts +12 -6
- package/src/client/types/app/bsky/actor/status.ts +12 -6
- package/src/client/types/app/bsky/feed/generator.ts +12 -6
- package/src/client/types/app/bsky/feed/like.ts +12 -6
- package/src/client/types/app/bsky/feed/post.ts +12 -6
- package/src/client/types/app/bsky/feed/postgate.ts +12 -6
- package/src/client/types/app/bsky/feed/repost.ts +12 -6
- package/src/client/types/app/bsky/feed/threadgate.ts +12 -6
- package/src/client/types/app/bsky/graph/block.ts +12 -6
- package/src/client/types/app/bsky/graph/follow.ts +12 -6
- package/src/client/types/app/bsky/graph/list.ts +12 -6
- package/src/client/types/app/bsky/graph/listblock.ts +12 -6
- package/src/client/types/app/bsky/graph/listitem.ts +12 -6
- package/src/client/types/app/bsky/graph/starterpack.ts +12 -6
- package/src/client/types/app/bsky/graph/verification.ts +12 -6
- package/src/client/types/app/bsky/labeler/service.ts +12 -6
- package/src/client/types/app/bsky/notification/declaration.ts +12 -6
- package/src/client/types/chat/bsky/actor/declaration.ts +12 -6
- package/src/client/types/com/atproto/lexicon/schema.ts +12 -6
- package/src/client/types/tools/ozone/moderation/defs.ts +44 -0
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +2 -0
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +2 -0
|
@@ -41,6 +41,8 @@ export type QueryParams = {
|
|
|
41
41
|
batchId?: string;
|
|
42
42
|
/** If specified, only events where the age assurance state matches the given value are returned */
|
|
43
43
|
ageAssuranceState?: 'pending' | 'assured' | 'unknown' | 'reset' | 'blocked' | (string & {});
|
|
44
|
+
/** If specified, only events where strikeCount value is set are returned. */
|
|
45
|
+
withStrike?: boolean;
|
|
44
46
|
cursor?: string;
|
|
45
47
|
};
|
|
46
48
|
export type InputSchema = undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryEvents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU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,SAAS,GACT,OAAO,GACP,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,wBAAwB,CAAC,YAAY,EAAE,CAAA;CAChD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
1
|
+
{"version":3,"file":"queryEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryEvents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,wBAAwB,MAAM,WAAW,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG;IACxB,wKAAwK;IACxK,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC9B,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iKAAiK;IACjK,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,4PAA4P;IAC5P,WAAW,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAA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CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryEvents.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryEvents.ts"],"names":[],"mappings":";;AAoFA,gCAEC;AAhFD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AAoE/C,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\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 ToolsOzoneModerationDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.moderation.queryEvents'\n\nexport type QueryParams = {\n /** The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. */\n types?: string[]\n createdBy?: string\n /** Sort direction for the events. Defaults to descending order of created at timestamp. */\n sortDirection?: 'asc' | 'desc'\n /** Retrieve events created after a given timestamp */\n createdAfter?: string\n /** Retrieve events created before a given timestamp */\n createdBefore?: string\n subject?: string\n /** If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */\n collections?: string[]\n /** If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. */\n subjectType?: 'account' | 'record' | (string & {})\n /** If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. */\n includeAllUserRecords?: boolean\n limit?: number\n /** If true, only events with comments are returned */\n hasComment?: boolean\n /** If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. */\n comment?: string\n /** If specified, only events where all of these labels were added are returned */\n addedLabels?: string[]\n /** If specified, only events where all of these labels were removed are returned */\n removedLabels?: string[]\n /** If specified, only events where all of these tags were added are returned */\n addedTags?: string[]\n /** If specified, only events where all of these tags were removed are returned */\n removedTags?: string[]\n reportTypes?: string[]\n policies?: string[]\n /** If specified, only events where the modTool name matches any of the given values are returned */\n modTool?: string[]\n /** If specified, only events where the batchId matches the given value are returned */\n batchId?: string\n /** If specified, only events where the age assurance state matches the given value are returned */\n ageAssuranceState?:\n | 'pending'\n | 'assured'\n | 'unknown'\n | 'reset'\n | 'blocked'\n | (string & {})\n /** If specified, only events where strikeCount value is set are returned. */\n withStrike?: boolean\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n events: ToolsOzoneModerationDefs.ModEventView[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -65,6 +65,8 @@ export type QueryParams = {
|
|
|
65
65
|
minTakendownRecordsCount?: number;
|
|
66
66
|
/** If specified, only subjects that have priority score value above the given value will be returned. */
|
|
67
67
|
minPriorityScore?: number;
|
|
68
|
+
/** If specified, only subjects that belong to an account that has at least this many active strikes will be returned. */
|
|
69
|
+
minStrikeCount?: number;
|
|
68
70
|
/** If specified, only subjects with the given age assurance state will be returned. */
|
|
69
71
|
ageAssuranceState?: 'pending' | 'assured' | 'unknown' | 'reset' | 'blocked' | (string & {});
|
|
70
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryStatuses.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryStatuses.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,wBAAwB,MAAM,WAAW,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG;IACxB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4IAA4I;IAC5I,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8FAA8F;IAC9F,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,8FAA8F;IAC9F,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oGAAoG;IACpG,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;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,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
1
|
+
{"version":3,"file":"queryStatuses.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryStatuses.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,wBAAwB,MAAM,WAAW,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG;IACxB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4IAA4I;IAC5I,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8FAA8F;IAC9F,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,8FAA8F;IAC9F,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oGAAoG;IACpG,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EnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,wBAAwB,CAAC,iBAAiB,EAAE,CAAA;CAC9D;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryStatuses.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryStatuses.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"queryStatuses.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/queryStatuses.ts"],"names":[],"mappings":";;AAkHA,gCAEC;AA9GD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAkGjD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\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 ToolsOzoneModerationDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.moderation.queryStatuses'\n\nexport type QueryParams = {\n /** Number of queues being used by moderators. Subjects will be split among all queues. */\n queueCount?: number\n /** Index of the queue to fetch subjects from. Works only when queueCount value is specified. */\n queueIndex?: number\n /** A seeder to shuffle/balance the queue items. */\n queueSeed?: string\n /** All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. */\n includeAllUserRecords?: boolean\n /** The subject to get the status for. */\n subject?: string\n /** Search subjects by keyword from comments */\n comment?: string\n /** Search subjects reported after a given timestamp */\n reportedAfter?: string\n /** Search subjects reported before a given timestamp */\n reportedBefore?: string\n /** Search subjects reviewed after a given timestamp */\n reviewedAfter?: string\n /** Search subjects where the associated record/account was deleted after a given timestamp */\n hostingDeletedAfter?: string\n /** Search subjects where the associated record/account was deleted before a given timestamp */\n hostingDeletedBefore?: string\n /** Search subjects where the associated record/account was updated after a given timestamp */\n hostingUpdatedAfter?: string\n /** Search subjects where the associated record/account was updated before a given timestamp */\n hostingUpdatedBefore?: string\n /** Search subjects by the status of the associated record/account */\n hostingStatuses?: string[]\n /** Search subjects reviewed before a given timestamp */\n reviewedBefore?: string\n /** By default, we don't include muted subjects in the results. Set this to true to include them. */\n includeMuted?: boolean\n /** When set to true, only muted subjects and reporters will be returned. */\n onlyMuted?: boolean\n /** Specify when fetching subjects in a certain state */\n reviewState?: string\n ignoreSubjects?: string[]\n /** Get all subject statuses that were reviewed by a specific moderator */\n lastReviewedBy?: string\n sortField?:\n | 'lastReviewedAt'\n | 'lastReportedAt'\n | 'reportedRecordsCount'\n | 'takendownRecordsCount'\n | 'priorityScore'\n sortDirection?: 'asc' | 'desc'\n /** Get subjects that were taken down */\n takendown?: boolean\n /** Get subjects in unresolved appealed status */\n appealed?: boolean\n limit?: number\n tags?: string[]\n excludeTags?: string[]\n cursor?: string\n /** If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */\n collections?: string[]\n /** If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. */\n subjectType?: 'account' | 'record' | (string & {})\n /** If specified, only subjects that belong to an account that has at least this many suspensions will be returned. */\n minAccountSuspendCount?: number\n /** If specified, only subjects that belong to an account that has at least this many reported records will be returned. */\n minReportedRecordsCount?: number\n /** If specified, only subjects that belong to an account that has at least this many taken down records will be returned. */\n minTakendownRecordsCount?: number\n /** If specified, only subjects that have priority score value above the given value will be returned. */\n minPriorityScore?: number\n /** If specified, only subjects that belong to an account that has at least this many active strikes will be returned. */\n minStrikeCount?: number\n /** If specified, only subjects with the given age assurance state will be returned. */\n ageAssuranceState?:\n | 'pending'\n | 'assured'\n | 'unknown'\n | 'reset'\n | 'blocked'\n | (string & {})\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n subjectStatuses: ToolsOzoneModerationDefs.SubjectStatusView[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
|
package/dist/predicate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppBskyActorDefs, AppBskyActorProfile } from './client/index';
|
|
2
|
-
export declare const isValidProfile: <T>(v: T) => v is T & AppBskyActorProfile.
|
|
2
|
+
export declare const isValidProfile: <T>(v: T) => v is T & AppBskyActorProfile.Main;
|
|
3
3
|
export declare const isValidAdultContentPref: <T>(v: T) => v is T & AppBskyActorDefs.AdultContentPref;
|
|
4
4
|
export declare const isValidBskyAppStatePref: <T>(v: T) => v is T & AppBskyActorDefs.BskyAppStatePref;
|
|
5
5
|
export declare const isValidContentLabelPref: <T>(v: T) => v is T & AppBskyActorDefs.ContentLabelPref;
|
package/dist/predicate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../src/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGtE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../src/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGtE,eAAO,MAAM,cAAc,gDAAkD,CAAA;AAC7E,eAAO,MAAM,uBAAuB,yDAEnC,CAAA;AACD,eAAO,MAAM,uBAAuB,yDAEnC,CAAA;AACD,eAAO,MAAM,uBAAuB,yDAEnC,CAAA;AACD,eAAO,MAAM,mBAAmB,qDAE/B,CAAA;AACD,eAAO,MAAM,sBAAsB,wDAElC,CAAA;AACD,eAAO,MAAM,oBAAoB,sDAEhC,CAAA;AACD,eAAO,MAAM,mBAAmB,qDAE/B,CAAA;AACD,eAAO,MAAM,qBAAqB,uDAEjC,CAAA;AACD,eAAO,MAAM,0BAA0B,4DAEtC,CAAA;AACD,eAAO,MAAM,kCAAkC,oEAE9C,CAAA;AACD,eAAO,MAAM,qBAAqB,uDAEjC,CAAA;AACD,eAAO,MAAM,uBAAuB,yDAEnC,CAAA;AACD,eAAO,MAAM,qBAAqB,uDAEjC,CAAA;AACD,eAAO,MAAM,wBAAwB,0DAEpC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"jest": "^28.1.2",
|
|
31
31
|
"prettier": "^3.2.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@atproto/lex-cli": "^0.9.
|
|
33
|
+
"@atproto/lex-cli": "^0.9.6"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"codegen": "node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/client/lexicons.ts
CHANGED
|
@@ -14630,6 +14630,12 @@ export const schemaDict = {
|
|
|
14630
14630
|
type: 'ref',
|
|
14631
14631
|
ref: 'lex:tools.ozone.moderation.defs#recordsStats',
|
|
14632
14632
|
},
|
|
14633
|
+
accountStrike: {
|
|
14634
|
+
description:
|
|
14635
|
+
'Strike information for the account (account-level only)',
|
|
14636
|
+
type: 'ref',
|
|
14637
|
+
ref: 'lex:tools.ozone.moderation.defs#accountStrike',
|
|
14638
|
+
},
|
|
14633
14639
|
ageAssuranceState: {
|
|
14634
14640
|
type: 'string',
|
|
14635
14641
|
description: 'Current age assurance state of the subject.',
|
|
@@ -14742,6 +14748,32 @@ export const schemaDict = {
|
|
|
14742
14748
|
},
|
|
14743
14749
|
},
|
|
14744
14750
|
},
|
|
14751
|
+
accountStrike: {
|
|
14752
|
+
description: 'Strike information for an account',
|
|
14753
|
+
type: 'object',
|
|
14754
|
+
properties: {
|
|
14755
|
+
activeStrikeCount: {
|
|
14756
|
+
description:
|
|
14757
|
+
'Current number of active strikes (excluding expired strikes)',
|
|
14758
|
+
type: 'integer',
|
|
14759
|
+
},
|
|
14760
|
+
totalStrikeCount: {
|
|
14761
|
+
description:
|
|
14762
|
+
'Total number of strikes ever received (including expired strikes)',
|
|
14763
|
+
type: 'integer',
|
|
14764
|
+
},
|
|
14765
|
+
firstStrikeAt: {
|
|
14766
|
+
description: 'Timestamp of the first strike received',
|
|
14767
|
+
type: 'string',
|
|
14768
|
+
format: 'datetime',
|
|
14769
|
+
},
|
|
14770
|
+
lastStrikeAt: {
|
|
14771
|
+
description: 'Timestamp of the most recent strike received',
|
|
14772
|
+
type: 'string',
|
|
14773
|
+
format: 'datetime',
|
|
14774
|
+
},
|
|
14775
|
+
},
|
|
14776
|
+
},
|
|
14745
14777
|
subjectReviewState: {
|
|
14746
14778
|
type: 'string',
|
|
14747
14779
|
knownValues: [
|
|
@@ -14797,6 +14829,22 @@ export const schemaDict = {
|
|
|
14797
14829
|
description:
|
|
14798
14830
|
'Names/Keywords of the policies that drove the decision.',
|
|
14799
14831
|
},
|
|
14832
|
+
severityLevel: {
|
|
14833
|
+
type: 'string',
|
|
14834
|
+
description:
|
|
14835
|
+
"Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).",
|
|
14836
|
+
},
|
|
14837
|
+
strikeCount: {
|
|
14838
|
+
type: 'integer',
|
|
14839
|
+
description:
|
|
14840
|
+
'Number of strikes to assign to the user for this violation.',
|
|
14841
|
+
},
|
|
14842
|
+
strikeExpiresAt: {
|
|
14843
|
+
type: 'string',
|
|
14844
|
+
format: 'datetime',
|
|
14845
|
+
description:
|
|
14846
|
+
'When the strike should expire. If not provided, the strike never expires.',
|
|
14847
|
+
},
|
|
14800
14848
|
},
|
|
14801
14849
|
},
|
|
14802
14850
|
modEventReverseTakedown: {
|
|
@@ -14807,6 +14855,25 @@ export const schemaDict = {
|
|
|
14807
14855
|
type: 'string',
|
|
14808
14856
|
description: 'Describe reasoning behind the reversal.',
|
|
14809
14857
|
},
|
|
14858
|
+
policies: {
|
|
14859
|
+
type: 'array',
|
|
14860
|
+
maxLength: 5,
|
|
14861
|
+
items: {
|
|
14862
|
+
type: 'string',
|
|
14863
|
+
},
|
|
14864
|
+
description:
|
|
14865
|
+
'Names/Keywords of the policy infraction for which takedown is being reversed.',
|
|
14866
|
+
},
|
|
14867
|
+
severityLevel: {
|
|
14868
|
+
type: 'string',
|
|
14869
|
+
description:
|
|
14870
|
+
"Severity level of the violation. Usually set from the last policy infraction's severity.",
|
|
14871
|
+
},
|
|
14872
|
+
strikeCount: {
|
|
14873
|
+
type: 'integer',
|
|
14874
|
+
description:
|
|
14875
|
+
"Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.",
|
|
14876
|
+
},
|
|
14810
14877
|
},
|
|
14811
14878
|
},
|
|
14812
14879
|
modEventResolveAppeal: {
|
|
@@ -15050,6 +15117,31 @@ export const schemaDict = {
|
|
|
15050
15117
|
type: 'string',
|
|
15051
15118
|
description: 'Additional comment about the outgoing comm.',
|
|
15052
15119
|
},
|
|
15120
|
+
policies: {
|
|
15121
|
+
type: 'array',
|
|
15122
|
+
maxLength: 5,
|
|
15123
|
+
items: {
|
|
15124
|
+
type: 'string',
|
|
15125
|
+
},
|
|
15126
|
+
description:
|
|
15127
|
+
'Names/Keywords of the policies that necessitated the email.',
|
|
15128
|
+
},
|
|
15129
|
+
severityLevel: {
|
|
15130
|
+
type: 'string',
|
|
15131
|
+
description:
|
|
15132
|
+
"Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense",
|
|
15133
|
+
},
|
|
15134
|
+
strikeCount: {
|
|
15135
|
+
type: 'integer',
|
|
15136
|
+
description:
|
|
15137
|
+
'Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.',
|
|
15138
|
+
},
|
|
15139
|
+
strikeExpiresAt: {
|
|
15140
|
+
type: 'string',
|
|
15141
|
+
format: 'datetime',
|
|
15142
|
+
description:
|
|
15143
|
+
'When the strike should expire. If not provided, the strike never expires.',
|
|
15144
|
+
},
|
|
15053
15145
|
},
|
|
15054
15146
|
},
|
|
15055
15147
|
modEventDivert: {
|
|
@@ -16448,6 +16540,11 @@ export const schemaDict = {
|
|
|
16448
16540
|
'blocked',
|
|
16449
16541
|
],
|
|
16450
16542
|
},
|
|
16543
|
+
withStrike: {
|
|
16544
|
+
type: 'boolean',
|
|
16545
|
+
description:
|
|
16546
|
+
'If specified, only events where strikeCount value is set are returned.',
|
|
16547
|
+
},
|
|
16451
16548
|
cursor: {
|
|
16452
16549
|
type: 'string',
|
|
16453
16550
|
},
|
|
@@ -16678,6 +16775,12 @@ export const schemaDict = {
|
|
|
16678
16775
|
description:
|
|
16679
16776
|
'If specified, only subjects that have priority score value above the given value will be returned.',
|
|
16680
16777
|
},
|
|
16778
|
+
minStrikeCount: {
|
|
16779
|
+
type: 'integer',
|
|
16780
|
+
minimum: 1,
|
|
16781
|
+
description:
|
|
16782
|
+
'If specified, only subjects that belong to an account that has at least this many active strikes will be returned.',
|
|
16783
|
+
},
|
|
16681
16784
|
ageAssuranceState: {
|
|
16682
16785
|
type: 'string',
|
|
16683
16786
|
description:
|
|
@@ -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
|
}
|
|
@@ -17,7 +17,7 @@ const is$typed = _is$typed,
|
|
|
17
17
|
validate = _validate
|
|
18
18
|
const id = 'app.bsky.graph.list'
|
|
19
19
|
|
|
20
|
-
export interface
|
|
20
|
+
export interface Main {
|
|
21
21
|
$type: 'app.bsky.graph.list'
|
|
22
22
|
purpose: AppBskyGraphDefs.ListPurpose
|
|
23
23
|
/** Display name for list; can not be empty. */
|
|
@@ -30,12 +30,18 @@ export interface Record {
|
|
|
30
30
|
[k: string]: unknown
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const hashMain = 'main'
|
|
34
34
|
|
|
35
|
-
export function
|
|
36
|
-
return is$typed(v, id,
|
|
35
|
+
export function isMain<V>(v: V) {
|
|
36
|
+
return is$typed(v, id, hashMain)
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export function
|
|
40
|
-
return validate<
|
|
39
|
+
export function validateMain<V>(v: V) {
|
|
40
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
type Main as Record,
|
|
45
|
+
isMain as isRecord,
|
|
46
|
+
validateMain as validateRecord,
|
|
41
47
|
}
|