@atproto/pds 0.4.22 → 0.4.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -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/lexicons.d.ts +9 -4
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +13 -7
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +4 -4
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.js +7 -7
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +1 -1
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +1 -1
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +2 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
- 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 +4 -4
- 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/lexicons.ts +14 -7
- package/src/lexicon/types/chat/bsky/convo/defs.ts +6 -6
- package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +1 -1
- package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +1 -1
- package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +2 -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
@@ -7,13 +7,13 @@ import * as AppBskyEmbedRecord from '../../../app/bsky/embed/record';
|
|
7
7
|
import * as ChatBskyActorDefs from '../actor/defs';
|
8
8
|
export interface MessageRef {
|
9
9
|
did: string;
|
10
|
+
convoId: string;
|
10
11
|
messageId: string;
|
11
12
|
[k: string]: unknown;
|
12
13
|
}
|
13
14
|
export declare function isMessageRef(v: unknown): v is MessageRef;
|
14
15
|
export declare function validateMessageRef(v: unknown): ValidationResult;
|
15
|
-
export interface
|
16
|
-
id?: string;
|
16
|
+
export interface MessageInput {
|
17
17
|
text: string;
|
18
18
|
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
19
19
|
facets?: AppBskyRichtextFacet.Main[];
|
@@ -23,8 +23,8 @@ export interface Message {
|
|
23
23
|
};
|
24
24
|
[k: string]: unknown;
|
25
25
|
}
|
26
|
-
export declare function
|
27
|
-
export declare function
|
26
|
+
export declare function isMessageInput(v: unknown): v is MessageInput;
|
27
|
+
export declare function validateMessageInput(v: unknown): ValidationResult;
|
28
28
|
export interface MessageView {
|
29
29
|
id: string;
|
30
30
|
rev: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,oBAAoB,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAA;AAElD,MAAM,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E,MAAM,CAAA;IACf,OAAO,EACH,WAAW,GACX,kBAAkB,GAClB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,gBAAgB,CAMpE;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAErE;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EACH,WAAW,GACX,kBAAkB,GAClB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,gBAAgB,CAMpE;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAErE"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateLogDeleteMessage = exports.isLogDeleteMessage = exports.validateLogCreateMessage = exports.isLogCreateMessage = exports.validateLogLeaveConvo = exports.isLogLeaveConvo = exports.validateLogBeginConvo = exports.isLogBeginConvo = exports.validateConvoView = exports.isConvoView = exports.validateMessageViewSender = exports.isMessageViewSender = exports.validateDeletedMessageView = exports.isDeletedMessageView = exports.validateMessageView = exports.isMessageView = exports.
|
3
|
+
exports.validateLogDeleteMessage = exports.isLogDeleteMessage = exports.validateLogCreateMessage = exports.isLogCreateMessage = exports.validateLogLeaveConvo = exports.isLogLeaveConvo = exports.validateLogBeginConvo = exports.isLogBeginConvo = exports.validateConvoView = exports.isConvoView = exports.validateMessageViewSender = exports.isMessageViewSender = exports.validateDeletedMessageView = exports.isDeletedMessageView = exports.validateMessageView = exports.isMessageView = exports.validateMessageInput = exports.isMessageInput = exports.validateMessageRef = exports.isMessageRef = void 0;
|
4
4
|
const lexicons_1 = require("../../../../lexicons");
|
5
5
|
const util_1 = require("../../../../util");
|
6
6
|
function isMessageRef(v) {
|
@@ -13,16 +13,16 @@ function validateMessageRef(v) {
|
|
13
13
|
return lexicons_1.lexicons.validate('chat.bsky.convo.defs#messageRef', v);
|
14
14
|
}
|
15
15
|
exports.validateMessageRef = validateMessageRef;
|
16
|
-
function
|
16
|
+
function isMessageInput(v) {
|
17
17
|
return ((0, util_1.isObj)(v) &&
|
18
18
|
(0, util_1.hasProp)(v, '$type') &&
|
19
|
-
v.$type === 'chat.bsky.convo.defs#
|
19
|
+
v.$type === 'chat.bsky.convo.defs#messageInput');
|
20
20
|
}
|
21
|
-
exports.
|
22
|
-
function
|
23
|
-
return lexicons_1.lexicons.validate('chat.bsky.convo.defs#
|
21
|
+
exports.isMessageInput = isMessageInput;
|
22
|
+
function validateMessageInput(v) {
|
23
|
+
return lexicons_1.lexicons.validate('chat.bsky.convo.defs#messageInput', v);
|
24
24
|
}
|
25
|
-
exports.
|
25
|
+
exports.validateMessageInput = validateMessageInput;
|
26
26
|
function isMessageView(v) {
|
27
27
|
return ((0, util_1.isObj)(v) &&
|
28
28
|
(0, util_1.hasProp)(v, '$type') &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAajD,SAAgB,YAAY,CAA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E,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -41,7 +41,7 @@ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
41
41
|
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
42
42
|
export interface BatchItem {
|
43
43
|
convoId: string;
|
44
|
-
message: ChatBskyConvoDefs.
|
44
|
+
message: ChatBskyConvoDefs.MessageInput;
|
45
45
|
[k: string]: unknown;
|
46
46
|
}
|
47
47
|
export declare function isBatchItem(v: unknown): v is BatchItem;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendMessageBatch.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,iBAAiB,MAAM,QAAQ,CAAA;AAE3C,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE,CAAA;IACtC,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,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B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gB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE9D"}
|
@@ -5,6 +5,8 @@ import express from 'express';
|
|
5
5
|
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
6
|
import * as ChatBskyConvoDefs from '../convo/defs';
|
7
7
|
export interface QueryParams {
|
8
|
+
/** Conversation that the message is from. NOTE: this field will eventually be required. */
|
9
|
+
convoId?: string;
|
8
10
|
messageId: string;
|
9
11
|
before: number;
|
10
12
|
after: number;
|
@@ -1 +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,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"}
|
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"}
|
@@ -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.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,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;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAA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,CAAA;IACb,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;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
|
+
{"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,cAA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CAAC,EAAE,UAAU,CAAA;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,QAAQ,CAMpD;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE7D;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,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;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,CAA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C,QAAQ,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC;AAeD,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,sCAAsC,CACnD,CAAA;AACH,CAAC;AAND,gCAMC;AAED,SAAgB,gBAAgB,CAAC,CAAU;IACzC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC;AAQD,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;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,7 +43,7 @@
|
|
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
48
|
"@atproto/common": "^0.4.0",
|
49
49
|
"@atproto/crypto": "^0.4.0",
|
@@ -70,8 +70,8 @@
|
|
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/bsky": "^0.0.
|
73
|
+
"@atproto/api": "^0.12.11",
|
74
|
+
"@atproto/bsky": "^0.0.53",
|
75
75
|
"@atproto/lex-cli": "^0.4.0"
|
76
76
|
},
|
77
77
|
"scripts": {
|
@@ -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
package/src/lexicon/lexicons.ts
CHANGED
@@ -8306,24 +8306,24 @@ export const schemaDict = {
|
|
8306
8306
|
defs: {
|
8307
8307
|
messageRef: {
|
8308
8308
|
type: 'object',
|
8309
|
-
required: ['did', 'messageId'],
|
8309
|
+
required: ['did', 'messageId', 'convoId'],
|
8310
8310
|
properties: {
|
8311
8311
|
did: {
|
8312
8312
|
type: 'string',
|
8313
8313
|
format: 'did',
|
8314
8314
|
},
|
8315
|
+
convoId: {
|
8316
|
+
type: 'string',
|
8317
|
+
},
|
8315
8318
|
messageId: {
|
8316
8319
|
type: 'string',
|
8317
8320
|
},
|
8318
8321
|
},
|
8319
8322
|
},
|
8320
|
-
|
8323
|
+
messageInput: {
|
8321
8324
|
type: 'object',
|
8322
8325
|
required: ['text'],
|
8323
8326
|
properties: {
|
8324
|
-
id: {
|
8325
|
-
type: 'string',
|
8326
|
-
},
|
8327
8327
|
text: {
|
8328
8328
|
type: 'string',
|
8329
8329
|
maxLength: 10000,
|
@@ -8825,7 +8825,7 @@ export const schemaDict = {
|
|
8825
8825
|
},
|
8826
8826
|
message: {
|
8827
8827
|
type: 'ref',
|
8828
|
-
ref: 'lex:chat.bsky.convo.defs#
|
8828
|
+
ref: 'lex:chat.bsky.convo.defs#messageInput',
|
8829
8829
|
},
|
8830
8830
|
},
|
8831
8831
|
},
|
@@ -8854,6 +8854,7 @@ export const schemaDict = {
|
|
8854
8854
|
properties: {
|
8855
8855
|
items: {
|
8856
8856
|
type: 'array',
|
8857
|
+
maxLength: 100,
|
8857
8858
|
items: {
|
8858
8859
|
type: 'ref',
|
8859
8860
|
ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
|
@@ -8888,7 +8889,7 @@ export const schemaDict = {
|
|
8888
8889
|
},
|
8889
8890
|
message: {
|
8890
8891
|
type: 'ref',
|
8891
|
-
ref: 'lex:chat.bsky.convo.defs#
|
8892
|
+
ref: 'lex:chat.bsky.convo.defs#messageInput',
|
8892
8893
|
},
|
8893
8894
|
},
|
8894
8895
|
},
|
@@ -9038,6 +9039,11 @@ export const schemaDict = {
|
|
9038
9039
|
type: 'params',
|
9039
9040
|
required: ['messageId'],
|
9040
9041
|
properties: {
|
9042
|
+
convoId: {
|
9043
|
+
type: 'string',
|
9044
|
+
description:
|
9045
|
+
'Conversation that the message is from. NOTE: this field will eventually be required.',
|
9046
|
+
},
|
9041
9047
|
messageId: {
|
9042
9048
|
type: 'string',
|
9043
9049
|
},
|
@@ -9340,6 +9346,7 @@ export const schemaDict = {
|
|
9340
9346
|
refs: [
|
9341
9347
|
'lex:com.atproto.admin.defs#repoRef',
|
9342
9348
|
'lex:com.atproto.repo.strongRef',
|
9349
|
+
'lex:chat.bsky.convo.defs#messageRef',
|
9343
9350
|
],
|
9344
9351
|
},
|
9345
9352
|
subjectBlobCids: {
|
@@ -11,6 +11,7 @@ import * as ChatBskyActorDefs from '../actor/defs'
|
|
11
11
|
|
12
12
|
export interface MessageRef {
|
13
13
|
did: string
|
14
|
+
convoId: string
|
14
15
|
messageId: string
|
15
16
|
[k: string]: unknown
|
16
17
|
}
|
@@ -27,8 +28,7 @@ export function validateMessageRef(v: unknown): ValidationResult {
|
|
27
28
|
return lexicons.validate('chat.bsky.convo.defs#messageRef', v)
|
28
29
|
}
|
29
30
|
|
30
|
-
export interface
|
31
|
-
id?: string
|
31
|
+
export interface MessageInput {
|
32
32
|
text: string
|
33
33
|
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
34
34
|
facets?: AppBskyRichtextFacet.Main[]
|
@@ -36,16 +36,16 @@ export interface Message {
|
|
36
36
|
[k: string]: unknown
|
37
37
|
}
|
38
38
|
|
39
|
-
export function
|
39
|
+
export function isMessageInput(v: unknown): v is MessageInput {
|
40
40
|
return (
|
41
41
|
isObj(v) &&
|
42
42
|
hasProp(v, '$type') &&
|
43
|
-
v.$type === 'chat.bsky.convo.defs#
|
43
|
+
v.$type === 'chat.bsky.convo.defs#messageInput'
|
44
44
|
)
|
45
45
|
}
|
46
46
|
|
47
|
-
export function
|
48
|
-
return lexicons.validate('chat.bsky.convo.defs#
|
47
|
+
export function validateMessageInput(v: unknown): ValidationResult {
|
48
|
+
return lexicons.validate('chat.bsky.convo.defs#messageInput', v)
|
49
49
|
}
|
50
50
|
|
51
51
|
export interface MessageView {
|
@@ -10,6 +10,8 @@ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as ChatBskyConvoDefs from '../convo/defs'
|
11
11
|
|
12
12
|
export interface QueryParams {
|
13
|
+
/** Conversation that the message is from. NOTE: this field will eventually be required. */
|
14
|
+
convoId?: string
|
13
15
|
messageId: string
|
14
16
|
before: number
|
15
17
|
after: number
|
@@ -7,6 +7,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
8
8
|
import * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs'
|
9
9
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
10
|
+
import * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs'
|
10
11
|
import * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs'
|
11
12
|
import * as ComAtprotoServerDefs from '../../../com/atproto/server/defs'
|
12
13
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
@@ -32,6 +33,7 @@ export interface ModEventView {
|
|
32
33
|
subject:
|
33
34
|
| ComAtprotoAdminDefs.RepoRef
|
34
35
|
| ComAtprotoRepoStrongRef.Main
|
36
|
+
| ChatBskyConvoDefs.MessageRef
|
35
37
|
| { $type: string; [k: string]: unknown }
|
36
38
|
subjectBlobCids: string[]
|
37
39
|
createdBy: string
|
package/tests/crud.test.ts
CHANGED
@@ -517,6 +517,36 @@ describe('crud operations', () => {
|
|
517
517
|
description: 'Dog lover',
|
518
518
|
})
|
519
519
|
})
|
520
|
+
|
521
|
+
// @TODO remove after migrating legacy blobs
|
522
|
+
it('updates a legacy blob ref when updating profile', async () => {
|
523
|
+
const { repo } = bobAgent.api.com.atproto
|
524
|
+
const file = await fs.readFile(
|
525
|
+
'../dev-env/src/seed/img/key-portrait-small.jpg',
|
526
|
+
)
|
527
|
+
const uploadedRes = await repo.uploadBlob(file, {
|
528
|
+
encoding: 'image/jpeg',
|
529
|
+
})
|
530
|
+
|
531
|
+
await repo.putRecord({
|
532
|
+
...profilePath,
|
533
|
+
repo: bob.did,
|
534
|
+
record: {
|
535
|
+
displayName: 'Robert',
|
536
|
+
avatar: BlobRef.fromJsonRef({
|
537
|
+
mimeType: uploadedRes.data.blob.mimeType,
|
538
|
+
cid: uploadedRes.data.blob.ref.toString(),
|
539
|
+
}),
|
540
|
+
},
|
541
|
+
})
|
542
|
+
|
543
|
+
const got = await repo.getRecord({
|
544
|
+
...profilePath,
|
545
|
+
repo: bob.did,
|
546
|
+
})
|
547
|
+
const gotAvatar = got.data.value['avatar'] as BlobRef
|
548
|
+
expect(gotAvatar.original).toEqual(uploadedRes.data.blob.original)
|
549
|
+
})
|
520
550
|
})
|
521
551
|
|
522
552
|
// Validation
|
package/tests/server.test.ts
CHANGED