@atproto/pds 0.4.21 → 0.4.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/actor-store/blob/reader.d.ts +4 -0
- package/dist/actor-store/blob/reader.d.ts.map +1 -1
- package/dist/actor-store/blob/reader.js +9 -3
- package/dist/actor-store/blob/reader.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +19 -1
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lexicon/index.d.ts +59 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +164 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +912 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +938 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +43 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/package.json +9 -9
- package/src/actor-store/blob/reader.ts +13 -4
- package/src/api/com/atproto/repo/putRecord.ts +34 -1
- package/src/index.ts +1 -1
- package/src/lexicon/index.ts +254 -0
- package/src/lexicon/lexicons.ts +940 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
- package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
- package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
- package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
- package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
- package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
- package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
- package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +54 -0
- package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
- package/tests/crud.test.ts +30 -0
- package/tests/server.test.ts +1 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.validateMetadata = exports.isMetadata = void 0;
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
5
|
+
const util_1 = require("../../../../util");
|
6
|
+
function isMetadata(v) {
|
7
|
+
return ((0, util_1.isObj)(v) &&
|
8
|
+
(0, util_1.hasProp)(v, '$type') &&
|
9
|
+
v.$type === 'chat.bsky.moderation.getActorMetadata#metadata');
|
10
|
+
}
|
11
|
+
exports.isMetadata = isMetadata;
|
12
|
+
function validateMetadata(v) {
|
13
|
+
return lexicons_1.lexicons.validate('chat.bsky.moderation.getActorMetadata#metadata', v);
|
14
|
+
}
|
15
|
+
exports.validateMetadata = validateMetadata;
|
16
|
+
//# sourceMappingURL=getActorMetadata.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getActorMetadata.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts"],"names":[],"mappings":";;;AAKA,mDAA+C;AAC/C,2CAAiD;AAkDjD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,gDAAgD,CAC7D,CAAA;AACH,CAAC;AAND,gCAMC;AAED,SAAgB,gBAAgB,CAAC,CAAU;IACzC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,gDAAgD,EAAE,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,4CAEC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import * as ChatBskyConvoDefs from '../convo/defs';
|
7
|
+
export interface QueryParams {
|
8
|
+
/** Conversation that the message is from. NOTE: this field will eventually be required. */
|
9
|
+
convoId?: string;
|
10
|
+
messageId: string;
|
11
|
+
before: number;
|
12
|
+
after: number;
|
13
|
+
}
|
14
|
+
export type InputSchema = undefined;
|
15
|
+
export interface OutputSchema {
|
16
|
+
messages: (ChatBskyConvoDefs.MessageView | ChatBskyConvoDefs.DeletedMessageView | {
|
17
|
+
$type: string;
|
18
|
+
[k: string]: unknown;
|
19
|
+
})[];
|
20
|
+
[k: string]: unknown;
|
21
|
+
}
|
22
|
+
export type HandlerInput = undefined;
|
23
|
+
export interface HandlerSuccess {
|
24
|
+
encoding: 'application/json';
|
25
|
+
body: OutputSchema;
|
26
|
+
headers?: {
|
27
|
+
[key: string]: string;
|
28
|
+
};
|
29
|
+
}
|
30
|
+
export interface HandlerError {
|
31
|
+
status: number;
|
32
|
+
message?: string;
|
33
|
+
}
|
34
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
35
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
36
|
+
auth: HA;
|
37
|
+
params: QueryParams;
|
38
|
+
input: HandlerInput;
|
39
|
+
req: express.Request;
|
40
|
+
res: express.Response;
|
41
|
+
};
|
42
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
43
|
+
//# sourceMappingURL=getMessageContext.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMessageContext.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/moderation/getMessageContext.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAA;AAElD,MAAM,WAAW,WAAW;IAC1B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,CACN,iBAAiB,CAAC,WAAW,GAC7B,iBAAiB,CAAC,kBAAkB,GACpC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAC1C,EAAE,CAAA;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,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;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMessageContext.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/moderation/getMessageContext.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
6
|
+
export interface QueryParams {
|
7
|
+
}
|
8
|
+
export interface InputSchema {
|
9
|
+
actor: string;
|
10
|
+
allowAccess: boolean;
|
11
|
+
ref?: string;
|
12
|
+
[k: string]: unknown;
|
13
|
+
}
|
14
|
+
export interface HandlerInput {
|
15
|
+
encoding: 'application/json';
|
16
|
+
body: InputSchema;
|
17
|
+
}
|
18
|
+
export interface HandlerError {
|
19
|
+
status: number;
|
20
|
+
message?: string;
|
21
|
+
}
|
22
|
+
export type HandlerOutput = HandlerError | void;
|
23
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
24
|
+
auth: HA;
|
25
|
+
params: QueryParams;
|
26
|
+
input: HandlerInput;
|
27
|
+
req: express.Request;
|
28
|
+
res: express.Response;
|
29
|
+
};
|
30
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
31
|
+
//# sourceMappingURL=updateActorAccess.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateActorAccess.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateActorAccess.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts"],"names":[],"mappings":""}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
import { ValidationResult } from '@atproto/lexicon';
|
5
5
|
import * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs';
|
6
6
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
7
|
+
import * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs';
|
7
8
|
import * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs';
|
8
9
|
import * as ComAtprotoServerDefs from '../../../com/atproto/server/defs';
|
9
10
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
@@ -13,7 +14,7 @@ export interface ModEventView {
|
|
13
14
|
$type: string;
|
14
15
|
[k: string]: unknown;
|
15
16
|
};
|
16
|
-
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
|
17
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ChatBskyConvoDefs.MessageRef | {
|
17
18
|
$type: string;
|
18
19
|
[k: string]: unknown;
|
19
20
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/defs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EAAE,OAAO,GAAG,CAAC,IAAI,YAAY,CAM5D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEjE"}
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,uBAAuB,MAAM,qCAAqC,CAAA;AAC9E,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,wBAAwB,MAAM,sCAAsC,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AAEtE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EACD,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,gBAAgB,GAChB,YAAY,GACZ,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,aAAa,GACb,qBAAqB,GACrB,cAAc,GACd;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B,iBAAiB,CAAC,UAAU,GAC5B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB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M5D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEjE;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,YAAY,CAM5D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEjE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/defs.ts"],"names":[],"mappings":";;;;AAIA,mDAA+C;AAC/C,2CAAiD;
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/defs.ts"],"names":[],"mappings":";;;;AAIA,mDAA+C;AAC/C,2CAAiD;AAwCjD,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,0CAA0C,CACvD,CAAA;AACH,CAAC;AAND,wCAMC;AAED,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC;AAgCD,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,gDAAgD,CAC7D,CAAA;AACH,CAAC;AAND,oDAMC;AAED,SAAgB,0BAA0B,CAAC,CAAU;I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,CAAU;IACvC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,0CAA0C,CACvD,CAAA;AACH,CAAC;AAND,wCAMC;AAED,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC;AASD,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,0CAA0C,CACvD,CAAA;AACH,CAAC;AAND,wCAMC;AAED,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.23",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -43,16 +43,16 @@
|
|
43
43
|
"typed-emitter": "^2.1.0",
|
44
44
|
"uint8arrays": "3.0.0",
|
45
45
|
"zod": "^3.21.4",
|
46
|
-
"@atproto/api": "^0.12.
|
46
|
+
"@atproto/api": "^0.12.11",
|
47
47
|
"@atproto/aws": "^0.2.0",
|
48
|
+
"@atproto/common": "^0.4.0",
|
49
|
+
"@atproto/crypto": "^0.4.0",
|
48
50
|
"@atproto/identity": "^0.4.0",
|
49
51
|
"@atproto/lexicon": "^0.4.0",
|
50
52
|
"@atproto/repo": "^0.4.0",
|
51
53
|
"@atproto/syntax": "^0.3.0",
|
52
54
|
"@atproto/xrpc": "^0.5.0",
|
53
|
-
"@atproto/xrpc-server": "^0.5.1"
|
54
|
-
"@atproto/common": "^0.4.0",
|
55
|
-
"@atproto/crypto": "^0.4.0"
|
55
|
+
"@atproto/xrpc-server": "^0.5.1"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
58
58
|
"@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
|
@@ -70,12 +70,12 @@
|
|
70
70
|
"jest": "^28.1.2",
|
71
71
|
"ts-node": "^10.8.2",
|
72
72
|
"ws": "^8.12.0",
|
73
|
-
"@atproto/api": "^0.12.
|
74
|
-
"@atproto/
|
75
|
-
"@atproto/
|
73
|
+
"@atproto/api": "^0.12.11",
|
74
|
+
"@atproto/bsky": "^0.0.53",
|
75
|
+
"@atproto/lex-cli": "^0.4.0"
|
76
76
|
},
|
77
77
|
"scripts": {
|
78
|
-
"codegen": "lex gen-server ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
78
|
+
"codegen": "lex gen-server ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
79
79
|
"build": "tsc --build tsconfig.build.json",
|
80
80
|
"postbuild": "node ./build.templates.js",
|
81
81
|
"dev": "node ./build.templates.js --watch",
|
@@ -12,9 +12,9 @@ export class BlobReader {
|
|
12
12
|
public blobstore: BlobStore,
|
13
13
|
) {}
|
14
14
|
|
15
|
-
async
|
15
|
+
async getBlobMetadata(
|
16
16
|
cid: CID,
|
17
|
-
): Promise<{ size: number; mimeType?: string
|
17
|
+
): Promise<{ size: number; mimeType?: string }> {
|
18
18
|
const { ref } = this.db.db.dynamic
|
19
19
|
const found = await this.db.db
|
20
20
|
.selectFrom('blob')
|
@@ -25,6 +25,16 @@ export class BlobReader {
|
|
25
25
|
if (!found) {
|
26
26
|
throw new InvalidRequestError('Blob not found')
|
27
27
|
}
|
28
|
+
return {
|
29
|
+
size: found.size,
|
30
|
+
mimeType: found.mimeType,
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
async getBlob(
|
35
|
+
cid: CID,
|
36
|
+
): Promise<{ size: number; mimeType?: string; stream: stream.Readable }> {
|
37
|
+
const metadata = await this.getBlobMetadata(cid)
|
28
38
|
let blobStream
|
29
39
|
try {
|
30
40
|
blobStream = await this.blobstore.getStream(cid)
|
@@ -35,8 +45,7 @@ export class BlobReader {
|
|
35
45
|
throw err
|
36
46
|
}
|
37
47
|
return {
|
38
|
-
|
39
|
-
mimeType: found.mimeType,
|
48
|
+
...metadata,
|
40
49
|
stream: blobStream,
|
41
50
|
}
|
42
51
|
}
|
@@ -2,6 +2,7 @@ import { CID } from 'multiformats/cid'
|
|
2
2
|
import { AtUri } from '@atproto/syntax'
|
3
3
|
import { AuthRequiredError, InvalidRequestError } from '@atproto/xrpc-server'
|
4
4
|
import { CommitData } from '@atproto/repo'
|
5
|
+
import { BlobRef } from '@atproto/lexicon'
|
5
6
|
import { Server } from '../../../../lexicon'
|
6
7
|
import { prepareUpdate, prepareCreate } from '../../../../repo'
|
7
8
|
import AppContext from '../../../../context'
|
@@ -12,6 +13,9 @@ import {
|
|
12
13
|
PreparedCreate,
|
13
14
|
PreparedUpdate,
|
14
15
|
} from '../../../../repo'
|
16
|
+
import { ids } from '../../../../lexicon/lexicons'
|
17
|
+
import { Record as ProfileRecord } from '../../../../lexicon/types/app/bsky/actor/profile'
|
18
|
+
import { ActorStoreTransactor } from '../../../../actor-store'
|
15
19
|
|
16
20
|
export default function (server: Server, ctx: AppContext) {
|
17
21
|
server.com.atproto.repo.putRecord({
|
@@ -61,6 +65,12 @@ export default function (server: Server, ctx: AppContext) {
|
|
61
65
|
did,
|
62
66
|
async (actorTxn) => {
|
63
67
|
const current = await actorTxn.record.getRecord(uri, null, true)
|
68
|
+
const isUpdate = current !== null
|
69
|
+
|
70
|
+
// @TODO temporaray hack for legacy blob refs in profiles - remove after migrating legacy blobs
|
71
|
+
if (isUpdate && collection === ids.AppBskyActorProfile) {
|
72
|
+
await updateProfileLegacyBlobRef(actorTxn, record)
|
73
|
+
}
|
64
74
|
const writeInfo = {
|
65
75
|
did,
|
66
76
|
collection,
|
@@ -72,7 +82,7 @@ export default function (server: Server, ctx: AppContext) {
|
|
72
82
|
|
73
83
|
let write: PreparedCreate | PreparedUpdate
|
74
84
|
try {
|
75
|
-
write =
|
85
|
+
write = isUpdate
|
76
86
|
? await prepareUpdate(writeInfo)
|
77
87
|
: await prepareCreate(writeInfo)
|
78
88
|
} catch (err) {
|
@@ -122,3 +132,26 @@ export default function (server: Server, ctx: AppContext) {
|
|
122
132
|
},
|
123
133
|
})
|
124
134
|
}
|
135
|
+
|
136
|
+
// WARNING: mutates object
|
137
|
+
const updateProfileLegacyBlobRef = async (
|
138
|
+
actorStore: ActorStoreTransactor,
|
139
|
+
record: ProfileRecord,
|
140
|
+
) => {
|
141
|
+
if (record.avatar && !record.avatar.original['$type']) {
|
142
|
+
const blob = await actorStore.repo.blob.getBlobMetadata(record.avatar.ref)
|
143
|
+
record.avatar = new BlobRef(
|
144
|
+
record.avatar.ref,
|
145
|
+
record.avatar.mimeType,
|
146
|
+
blob.size,
|
147
|
+
)
|
148
|
+
}
|
149
|
+
if (record.banner && !record.banner.original['$type']) {
|
150
|
+
const blob = await actorStore.repo.blob.getBlobMetadata(record.banner.ref)
|
151
|
+
record.banner = new BlobRef(
|
152
|
+
record.banner.ref,
|
153
|
+
record.banner.mimeType,
|
154
|
+
blob.size,
|
155
|
+
)
|
156
|
+
}
|
157
|
+
}
|
package/src/index.ts
CHANGED