@atproto/api 0.29.3 → 0.29.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/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +120 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +61 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/report/closeReports.d.ts +3 -1
- package/dist/client/types/tools/ozone/report/closeReports.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/closeReports.js.map +1 -1
- package/dist/client/types/tools/ozone/team/listOnlineMembers.d.ts +30 -0
- package/dist/client/types/tools/ozone/team/listOnlineMembers.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/team/listOnlineMembers.js +21 -0
- package/dist/client/types/tools/ozone/team/listOnlineMembers.js.map +1 -0
- package/package.json +2 -2
|
@@ -8,8 +8,10 @@ export interface InputSchema {
|
|
|
8
8
|
subject: string;
|
|
9
9
|
/** If true, also close reports on all subjects owned by the account, including records, messages, and conversations. Only valid when subject is an account DID. */
|
|
10
10
|
includeAllOwned?: boolean;
|
|
11
|
-
/** If
|
|
11
|
+
/** If nonempty, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted or empty, all non-closed reports in the requested subject scope are targeted, except excludedReportTypes. */
|
|
12
12
|
reportTypes?: string[];
|
|
13
|
+
/** Reports of these types (fully qualified reason NSIDs) are excluded from closure and left unchanged. When omitted or empty, no report types are excluded. */
|
|
14
|
+
excludedReportTypes?: string[];
|
|
13
15
|
/** Optional moderator-only note recorded on each close activity. Not visible to reporters. */
|
|
14
16
|
internalNote?: string;
|
|
15
17
|
/** Set true when this action is triggered by an automated process. Defaults to false. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closeReports.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/closeReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,2GAA2G;IAC3G,OAAO,EAAE,MAAM,CAAA;IACf,mKAAmK;IACnK,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,
|
|
1
|
+
{"version":3,"file":"closeReports.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/closeReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,2GAA2G;IAC3G,OAAO,EAAE,MAAM,CAAA;IACf,mKAAmK;IACnK,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,4NAA4N;IAC5N,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,+JAA+J;IAC/J,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,8FAA8F;IAC9F,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yFAAyF;IACzF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kHAAkH;IAClH,IAAI,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAA;IACnB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;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":"closeReports.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/closeReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"closeReports.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/closeReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA;AAyC5C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.closeReports'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed. */\n subject: string\n /** If true, also close reports on all subjects owned by the account, including records, messages, and conversations. Only valid when subject is an account DID. */\n includeAllOwned?: boolean\n /** If nonempty, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted or empty, all non-closed reports in the requested subject scope are targeted, except excludedReportTypes. */\n reportTypes?: string[]\n /** Reports of these types (fully qualified reason NSIDs) are excluded from closure and left unchanged. When omitted or empty, no report types are excluded. */\n excludedReportTypes?: string[]\n /** Optional moderator-only note recorded on each close activity. Not visible to reporters. */\n internalNote?: string\n /** Set true when this action is triggered by an automated process. Defaults to false. */\n isAutomated?: boolean\n /** Optional metadata for the report activities. Lifecycle and resolution fields are controlled by the service. */\n meta?: { [_ in string]: unknown }\n}\n\nexport interface OutputSchema {\n /** Number of reports that were transitioned to closed. */\n closedCount: number\n /** IDs of the reports that were closed. */\n reportIds: number[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\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"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
limit?: number;
|
|
8
|
+
};
|
|
9
|
+
export type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
members: OnlineMember[];
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
headers?: HeadersMap;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: HeadersMap;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
23
|
+
export interface OnlineMember {
|
|
24
|
+
$type?: 'tools.ozone.team.listOnlineMembers#onlineMember';
|
|
25
|
+
did: string;
|
|
26
|
+
lastActive: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function isOnlineMember<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.team.listOnlineMembers", "onlineMember">;
|
|
29
|
+
export declare function validateOnlineMember<V>(v: V): ValidationResult<OnlineMember & V>;
|
|
30
|
+
//# sourceMappingURL=listOnlineMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOnlineMembers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/team/listOnlineMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;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;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,iDAAiD,CAAA;IACzD,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4GAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.team.listOnlineMembers';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashOnlineMember = 'onlineMember';
|
|
15
|
+
export function isOnlineMember(v) {
|
|
16
|
+
return is$typed(v, id, hashOnlineMember);
|
|
17
|
+
}
|
|
18
|
+
export function validateOnlineMember(v) {
|
|
19
|
+
return validate(v, id, hashOnlineMember);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listOnlineMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOnlineMembers.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/team/listOnlineMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AAsB/C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAQD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.team.listOnlineMembers'\n\nexport type QueryParams = {\n limit?: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n members: OnlineMember[]\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\nexport interface OnlineMember {\n $type?: 'tools.ozone.team.listOnlineMembers#onlineMember'\n did: string\n lastActive: string\n}\n\nconst hashOnlineMember = 'onlineMember'\n\nexport function isOnlineMember<V>(v: V) {\n return is$typed(v, id, hashOnlineMember)\n}\n\nexport function validateOnlineMember<V>(v: V) {\n return validate<OnlineMember & V>(v, id, hashOnlineMember)\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jest": "^30.5.2",
|
|
47
47
|
"prettier": "^3.9.6",
|
|
48
48
|
"@atproto/lex-cli": "^0.10.16",
|
|
49
|
-
"@atproto/lex-installer": "^0.2.
|
|
49
|
+
"@atproto/lex-installer": "^0.2.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"lex:gen": "if [ ! -f ./src/client/index.ts ] || [ -n \"$(find -L ./lexicons -type f -newer ./src/client/index.ts -print -quit)\" ]; then lex gen-api --yes ./src/client ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* ./lexicons/chat/bsky/*/* ./lexicons/tools/ozone/*/* ./lexicons/com/germnetwork/*; fi",
|