@atproto/bsky 0.0.182 → 0.0.183
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/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +90 -16
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +92 -7
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +8 -8
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/moderation/defs.js +7 -7
- package/dist/lexicon/types/com/atproto/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.d.ts +24 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.js +7 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.js.map +1 -0
- package/package.json +13 -13
- package/src/lexicon/index.ts +13 -0
- package/src/lexicon/lexicons.ts +98 -7
- package/src/lexicon/types/com/atproto/moderation/defs.ts +52 -7
- package/src/lexicon/types/com/atproto/temp/dereferenceScope.ts +42 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | 'com.atproto.moderation.defs#reasonAppeal' | (string & {});
|
|
2
|
-
/** Spam: frequent unwanted promotion, replies, mentions */
|
|
1
|
+
export type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | 'com.atproto.moderation.defs#reasonAppeal' | 'tools.ozone.report.defs#reasonAppeal' | 'tools.ozone.report.defs#reasonViolenceAnimalWelfare' | 'tools.ozone.report.defs#reasonViolenceThreats' | 'tools.ozone.report.defs#reasonViolenceGraphicContent' | 'tools.ozone.report.defs#reasonViolenceSelfHarm' | 'tools.ozone.report.defs#reasonViolenceGlorification' | 'tools.ozone.report.defs#reasonViolenceExtremistContent' | 'tools.ozone.report.defs#reasonViolenceTrafficking' | 'tools.ozone.report.defs#reasonViolenceOther' | 'tools.ozone.report.defs#reasonSexualAbuseContent' | 'tools.ozone.report.defs#reasonSexualNCII' | 'tools.ozone.report.defs#reasonSexualSextortion' | 'tools.ozone.report.defs#reasonSexualDeepfake' | 'tools.ozone.report.defs#reasonSexualAnimal' | 'tools.ozone.report.defs#reasonSexualUnlabeled' | 'tools.ozone.report.defs#reasonSexualOther' | 'tools.ozone.report.defs#reasonChildSafetyCSAM' | 'tools.ozone.report.defs#reasonChildSafetyGroom' | 'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy' | 'tools.ozone.report.defs#reasonChildSafetyEndangerment' | 'tools.ozone.report.defs#reasonChildSafetyHarassment' | 'tools.ozone.report.defs#reasonChildSafetyPromotion' | 'tools.ozone.report.defs#reasonChildSafetyOther' | 'tools.ozone.report.defs#reasonHarassmentTroll' | 'tools.ozone.report.defs#reasonHarassmentTargeted' | 'tools.ozone.report.defs#reasonHarassmentHateSpeech' | 'tools.ozone.report.defs#reasonHarassmentDoxxing' | 'tools.ozone.report.defs#reasonHarassmentOther' | 'tools.ozone.report.defs#reasonMisleadingBot' | 'tools.ozone.report.defs#reasonMisleadingImpersonation' | 'tools.ozone.report.defs#reasonMisleadingSpam' | 'tools.ozone.report.defs#reasonMisleadingScam' | 'tools.ozone.report.defs#reasonMisleadingSyntheticContent' | 'tools.ozone.report.defs#reasonMisleadingMisinformation' | 'tools.ozone.report.defs#reasonMisleadingOther' | 'tools.ozone.report.defs#reasonRuleSiteSecurity' | 'tools.ozone.report.defs#reasonRuleStolenContent' | 'tools.ozone.report.defs#reasonRuleProhibitedSales' | 'tools.ozone.report.defs#reasonRuleBanEvasion' | 'tools.ozone.report.defs#reasonRuleOther' | 'tools.ozone.report.defs#reasonCivicElectoralProcess' | 'tools.ozone.report.defs#reasonCivicDisclosure' | 'tools.ozone.report.defs#reasonCivicInterference' | 'tools.ozone.report.defs#reasonCivicMisinformation' | 'tools.ozone.report.defs#reasonCivicImpersonation' | (string & {});
|
|
2
|
+
/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
|
|
3
3
|
export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
|
|
4
|
-
/** Direct violation of server rules, laws, terms of service */
|
|
4
|
+
/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
5
5
|
export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
|
|
6
|
-
/** Misleading identity, affiliation, or content */
|
|
6
|
+
/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
|
|
7
7
|
export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
|
|
8
|
-
/** Unwanted or mislabeled sexual content */
|
|
8
|
+
/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
|
|
9
9
|
export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
|
|
10
|
-
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
|
|
10
|
+
/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
|
|
11
11
|
export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
|
|
12
|
-
/**
|
|
12
|
+
/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
13
13
|
export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
|
|
14
|
-
/** Appeal
|
|
14
|
+
/** Appeal a previously taken moderation action */
|
|
15
15
|
export declare const REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
|
|
16
16
|
/** Tag describing a type of subject that might be reported. */
|
|
17
17
|
export type SubjectType = 'account' | 'record' | 'chat' | (string & {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,UAAU,GAClB,wCAAwC,GACxC,6CAA6C,GAC7C,8CAA8C,GAC9C,0CAA0C,GAC1C,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjB,
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,UAAU,GAClB,wCAAwC,GACxC,6CAA6C,GAC7C,8CAA8C,GAC9C,0CAA0C,GAC1C,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,sCAAsC,GACtC,qDAAqD,GACrD,+CAA+C,GAC/C,sDAAsD,GACtD,gDAAgD,GAChD,qDAAqD,GACrD,wDAAwD,GACxD,mDAAmD,GACnD,6CAA6C,GAC7C,kDAAkD,GAClD,0CAA0C,GAC1C,gDAAgD,GAChD,8CAA8C,GAC9C,4CAA4C,GAC5C,+CAA+C,GAC/C,2CAA2C,GAC3C,+CAA+C,GAC/C,gDAAgD,GAChD,uDAAuD,GACvD,uDAAuD,GACvD,qDAAqD,GACrD,oDAAoD,GACpD,gDAAgD,GAChD,+CAA+C,GAC/C,kDAAkD,GAClD,oDAAoD,GACpD,iDAAiD,GACjD,+CAA+C,GAC/C,6CAA6C,GAC7C,uDAAuD,GACvD,8CAA8C,GAC9C,8CAA8C,GAC9C,0DAA0D,GAC1D,wDAAwD,GACxD,+CAA+C,GAC/C,gDAAgD,GAChD,iDAAiD,GACjD,mDAAmD,GACnD,8CAA8C,GAC9C,yCAAyC,GACzC,qDAAqD,GACrD,+CAA+C,GAC/C,iDAAiD,GACjD,mDAAmD,GACnD,kDAAkD,GAClD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjB,0IAA0I;AAC1I,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,yIAAyI;AACzI,eAAO,MAAM,eAAe,gDAA0B,CAAA;AACtD,mIAAmI;AACnI,eAAO,MAAM,gBAAgB,iDAA2B,CAAA;AACxD,4HAA4H;AAC5H,eAAO,MAAM,YAAY,6CAAuB,CAAA;AAChD,mJAAmJ;AACnJ,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,kIAAkI;AAClI,eAAO,MAAM,WAAW,4CAAsB,CAAA;AAC9C,kDAAkD;AAClD,eAAO,MAAM,YAAY,6CAAuB,CAAA;AAEhD,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA"}
|
|
@@ -5,18 +5,18 @@ const lexicons_1 = require("../../../../lexicons");
|
|
|
5
5
|
const util_1 = require("../../../../util");
|
|
6
6
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
7
|
const id = 'com.atproto.moderation.defs';
|
|
8
|
-
/** Spam: frequent unwanted promotion, replies, mentions */
|
|
8
|
+
/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
|
|
9
9
|
exports.REASONSPAM = `${id}#reasonSpam`;
|
|
10
|
-
/** Direct violation of server rules, laws, terms of service */
|
|
10
|
+
/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
11
11
|
exports.REASONVIOLATION = `${id}#reasonViolation`;
|
|
12
|
-
/** Misleading identity, affiliation, or content */
|
|
12
|
+
/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
|
|
13
13
|
exports.REASONMISLEADING = `${id}#reasonMisleading`;
|
|
14
|
-
/** Unwanted or mislabeled sexual content */
|
|
14
|
+
/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
|
|
15
15
|
exports.REASONSEXUAL = `${id}#reasonSexual`;
|
|
16
|
-
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
|
|
16
|
+
/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
|
|
17
17
|
exports.REASONRUDE = `${id}#reasonRude`;
|
|
18
|
-
/**
|
|
18
|
+
/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
19
19
|
exports.REASONOTHER = `${id}#reasonOther`;
|
|
20
|
-
/** Appeal
|
|
20
|
+
/** Appeal a previously taken moderation action */
|
|
21
21
|
exports.REASONAPPEAL = `${id}#reasonAppeal`;
|
|
22
22
|
//# sourceMappingURL=defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":";;;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":";;;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AAyDxC,0IAA0I;AAC7H,QAAA,UAAU,GAAG,GAAG,EAAE,aAAa,CAAA;AAC5C,yIAAyI;AAC5H,QAAA,eAAe,GAAG,GAAG,EAAE,kBAAkB,CAAA;AACtD,mIAAmI;AACtH,QAAA,gBAAgB,GAAG,GAAG,EAAE,mBAAmB,CAAA;AACxD,4HAA4H;AAC/G,QAAA,YAAY,GAAG,GAAG,EAAE,eAAe,CAAA;AAChD,mJAAmJ;AACtI,QAAA,UAAU,GAAG,GAAG,EAAE,aAAa,CAAA;AAC5C,kIAAkI;AACrH,QAAA,WAAW,GAAG,GAAG,EAAE,cAAc,CAAA;AAC9C,kDAAkD;AACrC,QAAA,YAAY,GAAG,GAAG,EAAE,eAAe,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type QueryParams = {
|
|
2
|
+
/** The scope reference (starts with 'ref:') */
|
|
3
|
+
scope: string;
|
|
4
|
+
};
|
|
5
|
+
export type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
/** The full oauth permission scope */
|
|
8
|
+
scope: string;
|
|
9
|
+
}
|
|
10
|
+
export type HandlerInput = void;
|
|
11
|
+
export interface HandlerSuccess {
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
body: OutputSchema;
|
|
14
|
+
headers?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface HandlerError {
|
|
19
|
+
status: number;
|
|
20
|
+
message?: string;
|
|
21
|
+
error?: 'InvalidScopeReference';
|
|
22
|
+
}
|
|
23
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
//# sourceMappingURL=dereferenceScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dereferenceScope.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/temp/dereferenceScope.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,uBAAuB,CAAA;CAChC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'com.atproto.temp.dereferenceScope';
|
|
7
|
+
//# sourceMappingURL=dereferenceScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dereferenceScope.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/temp/dereferenceScope.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.183",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"undici": "^6.19.8",
|
|
53
53
|
"zod": "3.23.8",
|
|
54
54
|
"@atproto-labs/fetch-node": "0.1.10",
|
|
55
|
-
"@atproto-labs/xrpc-utils": "0.0.
|
|
56
|
-
"@atproto/api": "^0.16.
|
|
57
|
-
"@atproto/common": "^0.4.
|
|
55
|
+
"@atproto-labs/xrpc-utils": "0.0.22",
|
|
56
|
+
"@atproto/api": "^0.16.8",
|
|
57
|
+
"@atproto/common": "^0.4.12",
|
|
58
58
|
"@atproto/crypto": "^0.4.4",
|
|
59
59
|
"@atproto/did": "^0.2.0",
|
|
60
|
-
"@atproto/
|
|
61
|
-
"@atproto/
|
|
62
|
-
"@atproto/
|
|
63
|
-
"@atproto/sync": "^0.1.33",
|
|
60
|
+
"@atproto/lexicon": "^0.5.1",
|
|
61
|
+
"@atproto/repo": "^0.8.9",
|
|
62
|
+
"@atproto/sync": "^0.1.34",
|
|
64
63
|
"@atproto/syntax": "^0.4.1",
|
|
65
|
-
"@atproto/xrpc-server": "^0.9.
|
|
64
|
+
"@atproto/xrpc-server": "^0.9.5",
|
|
65
|
+
"@atproto/identity": "^0.4.9"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@bufbuild/buf": "^1.28.1",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"jest": "^28.1.2",
|
|
78
78
|
"ts-node": "^10.8.2",
|
|
79
79
|
"typescript": "^5.6.3",
|
|
80
|
-
"@atproto/api": "^0.16.
|
|
81
|
-
"@atproto/lex-cli": "^0.9.
|
|
82
|
-
"@atproto/pds": "^0.4.
|
|
83
|
-
"@atproto/xrpc": "^0.7.
|
|
80
|
+
"@atproto/api": "^0.16.8",
|
|
81
|
+
"@atproto/lex-cli": "^0.9.5",
|
|
82
|
+
"@atproto/pds": "^0.4.177",
|
|
83
|
+
"@atproto/xrpc": "^0.7.5"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/*",
|
package/src/lexicon/index.ts
CHANGED
|
@@ -198,6 +198,7 @@ import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscrib
|
|
|
198
198
|
import * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle.js'
|
|
199
199
|
import * as ComAtprotoTempCheckHandleAvailability from './types/com/atproto/temp/checkHandleAvailability.js'
|
|
200
200
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue.js'
|
|
201
|
+
import * as ComAtprotoTempDereferenceScope from './types/com/atproto/temp/dereferenceScope.js'
|
|
201
202
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels.js'
|
|
202
203
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification.js'
|
|
203
204
|
import * as ComAtprotoTempRevokeAccountCredentials from './types/com/atproto/temp/revokeAccountCredentials.js'
|
|
@@ -2781,6 +2782,18 @@ export class ComAtprotoTempNS {
|
|
|
2781
2782
|
return this._server.xrpc.method(nsid, cfg)
|
|
2782
2783
|
}
|
|
2783
2784
|
|
|
2785
|
+
dereferenceScope<A extends Auth = void>(
|
|
2786
|
+
cfg: MethodConfigOrHandler<
|
|
2787
|
+
A,
|
|
2788
|
+
ComAtprotoTempDereferenceScope.QueryParams,
|
|
2789
|
+
ComAtprotoTempDereferenceScope.HandlerInput,
|
|
2790
|
+
ComAtprotoTempDereferenceScope.HandlerOutput
|
|
2791
|
+
>,
|
|
2792
|
+
) {
|
|
2793
|
+
const nsid = 'com.atproto.temp.dereferenceScope' // @ts-ignore
|
|
2794
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2784
2797
|
fetchLabels<A extends Auth = void>(
|
|
2785
2798
|
cfg: MethodConfigOrHandler<
|
|
2786
2799
|
A,
|
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -10547,36 +10547,86 @@ export const schemaDict = {
|
|
|
10547
10547
|
'com.atproto.moderation.defs#reasonRude',
|
|
10548
10548
|
'com.atproto.moderation.defs#reasonOther',
|
|
10549
10549
|
'com.atproto.moderation.defs#reasonAppeal',
|
|
10550
|
+
'tools.ozone.report.defs#reasonAppeal',
|
|
10551
|
+
'tools.ozone.report.defs#reasonViolenceAnimalWelfare',
|
|
10552
|
+
'tools.ozone.report.defs#reasonViolenceThreats',
|
|
10553
|
+
'tools.ozone.report.defs#reasonViolenceGraphicContent',
|
|
10554
|
+
'tools.ozone.report.defs#reasonViolenceSelfHarm',
|
|
10555
|
+
'tools.ozone.report.defs#reasonViolenceGlorification',
|
|
10556
|
+
'tools.ozone.report.defs#reasonViolenceExtremistContent',
|
|
10557
|
+
'tools.ozone.report.defs#reasonViolenceTrafficking',
|
|
10558
|
+
'tools.ozone.report.defs#reasonViolenceOther',
|
|
10559
|
+
'tools.ozone.report.defs#reasonSexualAbuseContent',
|
|
10560
|
+
'tools.ozone.report.defs#reasonSexualNCII',
|
|
10561
|
+
'tools.ozone.report.defs#reasonSexualSextortion',
|
|
10562
|
+
'tools.ozone.report.defs#reasonSexualDeepfake',
|
|
10563
|
+
'tools.ozone.report.defs#reasonSexualAnimal',
|
|
10564
|
+
'tools.ozone.report.defs#reasonSexualUnlabeled',
|
|
10565
|
+
'tools.ozone.report.defs#reasonSexualOther',
|
|
10566
|
+
'tools.ozone.report.defs#reasonChildSafetyCSAM',
|
|
10567
|
+
'tools.ozone.report.defs#reasonChildSafetyGroom',
|
|
10568
|
+
'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy',
|
|
10569
|
+
'tools.ozone.report.defs#reasonChildSafetyEndangerment',
|
|
10570
|
+
'tools.ozone.report.defs#reasonChildSafetyHarassment',
|
|
10571
|
+
'tools.ozone.report.defs#reasonChildSafetyPromotion',
|
|
10572
|
+
'tools.ozone.report.defs#reasonChildSafetyOther',
|
|
10573
|
+
'tools.ozone.report.defs#reasonHarassmentTroll',
|
|
10574
|
+
'tools.ozone.report.defs#reasonHarassmentTargeted',
|
|
10575
|
+
'tools.ozone.report.defs#reasonHarassmentHateSpeech',
|
|
10576
|
+
'tools.ozone.report.defs#reasonHarassmentDoxxing',
|
|
10577
|
+
'tools.ozone.report.defs#reasonHarassmentOther',
|
|
10578
|
+
'tools.ozone.report.defs#reasonMisleadingBot',
|
|
10579
|
+
'tools.ozone.report.defs#reasonMisleadingImpersonation',
|
|
10580
|
+
'tools.ozone.report.defs#reasonMisleadingSpam',
|
|
10581
|
+
'tools.ozone.report.defs#reasonMisleadingScam',
|
|
10582
|
+
'tools.ozone.report.defs#reasonMisleadingSyntheticContent',
|
|
10583
|
+
'tools.ozone.report.defs#reasonMisleadingMisinformation',
|
|
10584
|
+
'tools.ozone.report.defs#reasonMisleadingOther',
|
|
10585
|
+
'tools.ozone.report.defs#reasonRuleSiteSecurity',
|
|
10586
|
+
'tools.ozone.report.defs#reasonRuleStolenContent',
|
|
10587
|
+
'tools.ozone.report.defs#reasonRuleProhibitedSales',
|
|
10588
|
+
'tools.ozone.report.defs#reasonRuleBanEvasion',
|
|
10589
|
+
'tools.ozone.report.defs#reasonRuleOther',
|
|
10590
|
+
'tools.ozone.report.defs#reasonCivicElectoralProcess',
|
|
10591
|
+
'tools.ozone.report.defs#reasonCivicDisclosure',
|
|
10592
|
+
'tools.ozone.report.defs#reasonCivicInterference',
|
|
10593
|
+
'tools.ozone.report.defs#reasonCivicMisinformation',
|
|
10594
|
+
'tools.ozone.report.defs#reasonCivicImpersonation',
|
|
10550
10595
|
],
|
|
10551
10596
|
},
|
|
10552
10597
|
reasonSpam: {
|
|
10553
10598
|
type: 'token',
|
|
10554
|
-
description:
|
|
10599
|
+
description:
|
|
10600
|
+
'Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`.',
|
|
10555
10601
|
},
|
|
10556
10602
|
reasonViolation: {
|
|
10557
10603
|
type: 'token',
|
|
10558
|
-
description:
|
|
10604
|
+
description:
|
|
10605
|
+
'Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
|
10559
10606
|
},
|
|
10560
10607
|
reasonMisleading: {
|
|
10561
10608
|
type: 'token',
|
|
10562
|
-
description:
|
|
10609
|
+
description:
|
|
10610
|
+
'Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`.',
|
|
10563
10611
|
},
|
|
10564
10612
|
reasonSexual: {
|
|
10565
10613
|
type: 'token',
|
|
10566
|
-
description:
|
|
10614
|
+
description:
|
|
10615
|
+
'Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`.',
|
|
10567
10616
|
},
|
|
10568
10617
|
reasonRude: {
|
|
10569
10618
|
type: 'token',
|
|
10570
10619
|
description:
|
|
10571
|
-
'Rude, harassing, explicit, or otherwise unwelcoming behavior',
|
|
10620
|
+
'Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`.',
|
|
10572
10621
|
},
|
|
10573
10622
|
reasonOther: {
|
|
10574
10623
|
type: 'token',
|
|
10575
|
-
description:
|
|
10624
|
+
description:
|
|
10625
|
+
'Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
|
10576
10626
|
},
|
|
10577
10627
|
reasonAppeal: {
|
|
10578
10628
|
type: 'token',
|
|
10579
|
-
description: 'Appeal
|
|
10629
|
+
description: 'Appeal a previously taken moderation action',
|
|
10580
10630
|
},
|
|
10581
10631
|
subjectType: {
|
|
10582
10632
|
type: 'string',
|
|
@@ -13650,6 +13700,46 @@ export const schemaDict = {
|
|
|
13650
13700
|
},
|
|
13651
13701
|
},
|
|
13652
13702
|
},
|
|
13703
|
+
ComAtprotoTempDereferenceScope: {
|
|
13704
|
+
lexicon: 1,
|
|
13705
|
+
id: 'com.atproto.temp.dereferenceScope',
|
|
13706
|
+
defs: {
|
|
13707
|
+
main: {
|
|
13708
|
+
type: 'query',
|
|
13709
|
+
description:
|
|
13710
|
+
'Allows finding the oauth permission scope from a reference',
|
|
13711
|
+
parameters: {
|
|
13712
|
+
type: 'params',
|
|
13713
|
+
required: ['scope'],
|
|
13714
|
+
properties: {
|
|
13715
|
+
scope: {
|
|
13716
|
+
type: 'string',
|
|
13717
|
+
description: "The scope reference (starts with 'ref:')",
|
|
13718
|
+
},
|
|
13719
|
+
},
|
|
13720
|
+
},
|
|
13721
|
+
output: {
|
|
13722
|
+
encoding: 'application/json',
|
|
13723
|
+
schema: {
|
|
13724
|
+
type: 'object',
|
|
13725
|
+
required: ['scope'],
|
|
13726
|
+
properties: {
|
|
13727
|
+
scope: {
|
|
13728
|
+
type: 'string',
|
|
13729
|
+
description: 'The full oauth permission scope',
|
|
13730
|
+
},
|
|
13731
|
+
},
|
|
13732
|
+
},
|
|
13733
|
+
},
|
|
13734
|
+
errors: [
|
|
13735
|
+
{
|
|
13736
|
+
name: 'InvalidScopeReference',
|
|
13737
|
+
description: 'An invalid scope reference was provided.',
|
|
13738
|
+
},
|
|
13739
|
+
],
|
|
13740
|
+
},
|
|
13741
|
+
},
|
|
13742
|
+
},
|
|
13653
13743
|
ComAtprotoTempFetchLabels: {
|
|
13654
13744
|
lexicon: 1,
|
|
13655
13745
|
id: 'com.atproto.temp.fetchLabels',
|
|
@@ -14030,6 +14120,7 @@ export const ids = {
|
|
|
14030
14120
|
ComAtprotoTempCheckHandleAvailability:
|
|
14031
14121
|
'com.atproto.temp.checkHandleAvailability',
|
|
14032
14122
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
14123
|
+
ComAtprotoTempDereferenceScope: 'com.atproto.temp.dereferenceScope',
|
|
14033
14124
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
14034
14125
|
ComAtprotoTempRequestPhoneVerification:
|
|
14035
14126
|
'com.atproto.temp.requestPhoneVerification',
|
|
@@ -22,21 +22,66 @@ export type ReasonType =
|
|
|
22
22
|
| 'com.atproto.moderation.defs#reasonRude'
|
|
23
23
|
| 'com.atproto.moderation.defs#reasonOther'
|
|
24
24
|
| 'com.atproto.moderation.defs#reasonAppeal'
|
|
25
|
+
| 'tools.ozone.report.defs#reasonAppeal'
|
|
26
|
+
| 'tools.ozone.report.defs#reasonViolenceAnimalWelfare'
|
|
27
|
+
| 'tools.ozone.report.defs#reasonViolenceThreats'
|
|
28
|
+
| 'tools.ozone.report.defs#reasonViolenceGraphicContent'
|
|
29
|
+
| 'tools.ozone.report.defs#reasonViolenceSelfHarm'
|
|
30
|
+
| 'tools.ozone.report.defs#reasonViolenceGlorification'
|
|
31
|
+
| 'tools.ozone.report.defs#reasonViolenceExtremistContent'
|
|
32
|
+
| 'tools.ozone.report.defs#reasonViolenceTrafficking'
|
|
33
|
+
| 'tools.ozone.report.defs#reasonViolenceOther'
|
|
34
|
+
| 'tools.ozone.report.defs#reasonSexualAbuseContent'
|
|
35
|
+
| 'tools.ozone.report.defs#reasonSexualNCII'
|
|
36
|
+
| 'tools.ozone.report.defs#reasonSexualSextortion'
|
|
37
|
+
| 'tools.ozone.report.defs#reasonSexualDeepfake'
|
|
38
|
+
| 'tools.ozone.report.defs#reasonSexualAnimal'
|
|
39
|
+
| 'tools.ozone.report.defs#reasonSexualUnlabeled'
|
|
40
|
+
| 'tools.ozone.report.defs#reasonSexualOther'
|
|
41
|
+
| 'tools.ozone.report.defs#reasonChildSafetyCSAM'
|
|
42
|
+
| 'tools.ozone.report.defs#reasonChildSafetyGroom'
|
|
43
|
+
| 'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy'
|
|
44
|
+
| 'tools.ozone.report.defs#reasonChildSafetyEndangerment'
|
|
45
|
+
| 'tools.ozone.report.defs#reasonChildSafetyHarassment'
|
|
46
|
+
| 'tools.ozone.report.defs#reasonChildSafetyPromotion'
|
|
47
|
+
| 'tools.ozone.report.defs#reasonChildSafetyOther'
|
|
48
|
+
| 'tools.ozone.report.defs#reasonHarassmentTroll'
|
|
49
|
+
| 'tools.ozone.report.defs#reasonHarassmentTargeted'
|
|
50
|
+
| 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
|
|
51
|
+
| 'tools.ozone.report.defs#reasonHarassmentDoxxing'
|
|
52
|
+
| 'tools.ozone.report.defs#reasonHarassmentOther'
|
|
53
|
+
| 'tools.ozone.report.defs#reasonMisleadingBot'
|
|
54
|
+
| 'tools.ozone.report.defs#reasonMisleadingImpersonation'
|
|
55
|
+
| 'tools.ozone.report.defs#reasonMisleadingSpam'
|
|
56
|
+
| 'tools.ozone.report.defs#reasonMisleadingScam'
|
|
57
|
+
| 'tools.ozone.report.defs#reasonMisleadingSyntheticContent'
|
|
58
|
+
| 'tools.ozone.report.defs#reasonMisleadingMisinformation'
|
|
59
|
+
| 'tools.ozone.report.defs#reasonMisleadingOther'
|
|
60
|
+
| 'tools.ozone.report.defs#reasonRuleSiteSecurity'
|
|
61
|
+
| 'tools.ozone.report.defs#reasonRuleStolenContent'
|
|
62
|
+
| 'tools.ozone.report.defs#reasonRuleProhibitedSales'
|
|
63
|
+
| 'tools.ozone.report.defs#reasonRuleBanEvasion'
|
|
64
|
+
| 'tools.ozone.report.defs#reasonRuleOther'
|
|
65
|
+
| 'tools.ozone.report.defs#reasonCivicElectoralProcess'
|
|
66
|
+
| 'tools.ozone.report.defs#reasonCivicDisclosure'
|
|
67
|
+
| 'tools.ozone.report.defs#reasonCivicInterference'
|
|
68
|
+
| 'tools.ozone.report.defs#reasonCivicMisinformation'
|
|
69
|
+
| 'tools.ozone.report.defs#reasonCivicImpersonation'
|
|
25
70
|
| (string & {})
|
|
26
71
|
|
|
27
|
-
/** Spam: frequent unwanted promotion, replies, mentions */
|
|
72
|
+
/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
|
|
28
73
|
export const REASONSPAM = `${id}#reasonSpam`
|
|
29
|
-
/** Direct violation of server rules, laws, terms of service */
|
|
74
|
+
/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
30
75
|
export const REASONVIOLATION = `${id}#reasonViolation`
|
|
31
|
-
/** Misleading identity, affiliation, or content */
|
|
76
|
+
/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
|
|
32
77
|
export const REASONMISLEADING = `${id}#reasonMisleading`
|
|
33
|
-
/** Unwanted or mislabeled sexual content */
|
|
78
|
+
/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
|
|
34
79
|
export const REASONSEXUAL = `${id}#reasonSexual`
|
|
35
|
-
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
|
|
80
|
+
/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
|
|
36
81
|
export const REASONRUDE = `${id}#reasonRude`
|
|
37
|
-
/**
|
|
82
|
+
/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
38
83
|
export const REASONOTHER = `${id}#reasonOther`
|
|
39
|
-
/** Appeal
|
|
84
|
+
/** Appeal a previously taken moderation action */
|
|
40
85
|
export const REASONAPPEAL = `${id}#reasonAppeal`
|
|
41
86
|
|
|
42
87
|
/** Tag describing a type of subject that might be reported. */
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { CID } from 'multiformats/cid'
|
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
7
|
+
import {
|
|
8
|
+
type $Typed,
|
|
9
|
+
is$typed as _is$typed,
|
|
10
|
+
type OmitKey,
|
|
11
|
+
} from '../../../../util'
|
|
12
|
+
|
|
13
|
+
const is$typed = _is$typed,
|
|
14
|
+
validate = _validate
|
|
15
|
+
const id = 'com.atproto.temp.dereferenceScope'
|
|
16
|
+
|
|
17
|
+
export type QueryParams = {
|
|
18
|
+
/** The scope reference (starts with 'ref:') */
|
|
19
|
+
scope: string
|
|
20
|
+
}
|
|
21
|
+
export type InputSchema = undefined
|
|
22
|
+
|
|
23
|
+
export interface OutputSchema {
|
|
24
|
+
/** The full oauth permission scope */
|
|
25
|
+
scope: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type HandlerInput = void
|
|
29
|
+
|
|
30
|
+
export interface HandlerSuccess {
|
|
31
|
+
encoding: 'application/json'
|
|
32
|
+
body: OutputSchema
|
|
33
|
+
headers?: { [key: string]: string }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HandlerError {
|
|
37
|
+
status: number
|
|
38
|
+
message?: string
|
|
39
|
+
error?: 'InvalidScopeReference'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|