@atproto/pds 0.4.15 → 0.4.17
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +11 -1
- package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/config/config.d.ts +1 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +1 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +1 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +1 -0
- package/dist/config/env.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -0
- package/dist/context.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +32 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +33 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +16 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +21 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/package.json +4 -4
- package/src/api/com/atproto/repo/uploadBlob.ts +17 -5
- package/src/config/config.ts +2 -0
- package/src/config/env.ts +2 -0
- package/src/context.ts +1 -0
- package/src/lexicon/lexicons.ts +33 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +38 -0
- package/tests/proxied/__snapshots__/admin.test.ts.snap +2 -2
@@ -69,7 +69,7 @@ export interface ViewerState {
|
|
69
69
|
}
|
70
70
|
export declare function isViewerState(v: unknown): v is ViewerState;
|
71
71
|
export declare function validateViewerState(v: unknown): ValidationResult;
|
72
|
-
export type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | PersonalDetailsPref | FeedViewPref | ThreadViewPref | InterestsPref | MutedWordsPref | HiddenPostsPref | {
|
72
|
+
export type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | SavedFeedsPrefV2 | PersonalDetailsPref | FeedViewPref | ThreadViewPref | InterestsPref | MutedWordsPref | HiddenPostsPref | {
|
73
73
|
$type: string;
|
74
74
|
[k: string]: unknown;
|
75
75
|
})[];
|
@@ -88,6 +88,21 @@ export interface ContentLabelPref {
|
|
88
88
|
}
|
89
89
|
export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
|
90
90
|
export declare function validateContentLabelPref(v: unknown): ValidationResult;
|
91
|
+
export interface SavedFeed {
|
92
|
+
id: string;
|
93
|
+
type: 'feed' | 'list' | 'timeline' | (string & {});
|
94
|
+
value: string;
|
95
|
+
pinned: boolean;
|
96
|
+
[k: string]: unknown;
|
97
|
+
}
|
98
|
+
export declare function isSavedFeed(v: unknown): v is SavedFeed;
|
99
|
+
export declare function validateSavedFeed(v: unknown): ValidationResult;
|
100
|
+
export interface SavedFeedsPrefV2 {
|
101
|
+
items: SavedFeed[];
|
102
|
+
[k: string]: unknown;
|
103
|
+
}
|
104
|
+
export declare function isSavedFeedsPrefV2(v: unknown): v is SavedFeedsPrefV2;
|
105
|
+
export declare function validateSavedFeedsPrefV2(v: unknown): ValidationResult;
|
91
106
|
export interface SavedFeedsPref {
|
92
107
|
pinned: string[];
|
93
108
|
saved: string[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UA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E;AAED,MAAM,WAAW,eAAe;IAC9B,4DAA4D;IAC5D,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,eAAe,CAMlE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEpE;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,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,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,eAAe,CAMlE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEpE"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateLabelerPrefItem = exports.isLabelerPrefItem = exports.validateLabelersPref = exports.isLabelersPref = exports.validateHiddenPostsPref = exports.isHiddenPostsPref = exports.validateMutedWordsPref = exports.isMutedWordsPref = exports.validateMutedWord = exports.isMutedWord = exports.validateInterestsPref = exports.isInterestsPref = exports.validateThreadViewPref = exports.isThreadViewPref = exports.validateFeedViewPref = exports.isFeedViewPref = exports.validatePersonalDetailsPref = exports.isPersonalDetailsPref = exports.validateSavedFeedsPref = exports.isSavedFeedsPref = exports.validateContentLabelPref = exports.isContentLabelPref = exports.validateAdultContentPref = exports.isAdultContentPref = exports.validateViewerState = exports.isViewerState = exports.validateProfileAssociated = exports.isProfileAssociated = exports.validateProfileViewDetailed = exports.isProfileViewDetailed = exports.validateProfileView = exports.isProfileView = exports.validateProfileViewBasic = exports.isProfileViewBasic = void 0;
|
3
|
+
exports.validateLabelerPrefItem = exports.isLabelerPrefItem = exports.validateLabelersPref = exports.isLabelersPref = exports.validateHiddenPostsPref = exports.isHiddenPostsPref = exports.validateMutedWordsPref = exports.isMutedWordsPref = exports.validateMutedWord = exports.isMutedWord = exports.validateInterestsPref = exports.isInterestsPref = exports.validateThreadViewPref = exports.isThreadViewPref = exports.validateFeedViewPref = exports.isFeedViewPref = exports.validatePersonalDetailsPref = exports.isPersonalDetailsPref = exports.validateSavedFeedsPref = exports.isSavedFeedsPref = exports.validateSavedFeedsPrefV2 = exports.isSavedFeedsPrefV2 = exports.validateSavedFeed = exports.isSavedFeed = exports.validateContentLabelPref = exports.isContentLabelPref = exports.validateAdultContentPref = exports.isAdultContentPref = exports.validateViewerState = exports.isViewerState = exports.validateProfileAssociated = exports.isProfileAssociated = exports.validateProfileViewDetailed = exports.isProfileViewDetailed = exports.validateProfileView = exports.isProfileView = exports.validateProfileViewBasic = exports.isProfileViewBasic = void 0;
|
4
4
|
const lexicons_1 = require("../../../../lexicons");
|
5
5
|
const util_1 = require("../../../../util");
|
6
6
|
function isProfileViewBasic(v) {
|
@@ -73,6 +73,26 @@ function validateContentLabelPref(v) {
|
|
73
73
|
return lexicons_1.lexicons.validate('app.bsky.actor.defs#contentLabelPref', v);
|
74
74
|
}
|
75
75
|
exports.validateContentLabelPref = validateContentLabelPref;
|
76
|
+
function isSavedFeed(v) {
|
77
|
+
return ((0, util_1.isObj)(v) &&
|
78
|
+
(0, util_1.hasProp)(v, '$type') &&
|
79
|
+
v.$type === 'app.bsky.actor.defs#savedFeed');
|
80
|
+
}
|
81
|
+
exports.isSavedFeed = isSavedFeed;
|
82
|
+
function validateSavedFeed(v) {
|
83
|
+
return lexicons_1.lexicons.validate('app.bsky.actor.defs#savedFeed', v);
|
84
|
+
}
|
85
|
+
exports.validateSavedFeed = validateSavedFeed;
|
86
|
+
function isSavedFeedsPrefV2(v) {
|
87
|
+
return ((0, util_1.isObj)(v) &&
|
88
|
+
(0, util_1.hasProp)(v, '$type') &&
|
89
|
+
v.$type === 'app.bsky.actor.defs#savedFeedsPrefV2');
|
90
|
+
}
|
91
|
+
exports.isSavedFeedsPrefV2 = isSavedFeedsPrefV2;
|
92
|
+
function validateSavedFeedsPrefV2(v) {
|
93
|
+
return lexicons_1.lexicons.validate('app.bsky.actor.defs#savedFeedsPrefV2', v);
|
94
|
+
}
|
95
|
+
exports.validateSavedFeedsPrefV2 = validateSavedFeedsPrefV2;
|
76
96
|
function isSavedFeedsPref(v) {
|
77
97
|
return ((0, util_1.isObj)(v) &&
|
78
98
|
(0, util_1.hasProp)(v, '$type') &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAgBjD,SAAgB,kBAAkB,CAAC,CAAU;IAC3C,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,gDAMC;AAED,SAAgB,wBAAwB,CAAC,CAAU;IACjD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4DAEC;AAeD,SAAgB,aAAa,CAAC,CAAU;IACtC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,iCAAiC,CAC9C,CAAA;AACH,CAAC;AAND,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,qCAAqC,CAClD,CAAA;AACH,CAAC;AAND,8CAMC;AAED,SAAgB,uBAAuB,CAAC,CAAU;IAChD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0DAEC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.17",
|
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.6",
|
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.6",
|
74
|
+
"@atproto/bsky": "^0.0.48",
|
75
75
|
"@atproto/lex-cli": "^0.4.0"
|
76
76
|
},
|
77
77
|
"scripts": {
|
@@ -1,6 +1,8 @@
|
|
1
|
+
import { DAY } from '@atproto/common'
|
2
|
+
import { UpstreamTimeoutError } from '@atproto/xrpc-server'
|
1
3
|
import { Server } from '../../../../lexicon'
|
2
4
|
import AppContext from '../../../../context'
|
3
|
-
import {
|
5
|
+
import { BlobMetadata } from '../../../../actor-store/blob/transactor'
|
4
6
|
|
5
7
|
export default function (server: Server, ctx: AppContext) {
|
6
8
|
server.com.atproto.repo.uploadBlob({
|
@@ -15,10 +17,20 @@ export default function (server: Server, ctx: AppContext) {
|
|
15
17
|
const blob = await ctx.actorStore.writeNoTransaction(
|
16
18
|
requester,
|
17
19
|
async (store) => {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
let metadata: BlobMetadata
|
21
|
+
try {
|
22
|
+
metadata = await store.repo.blob.uploadBlobAndGetMetadata(
|
23
|
+
input.encoding,
|
24
|
+
input.body,
|
25
|
+
)
|
26
|
+
} catch (err) {
|
27
|
+
if (err?.['name'] === 'AbortError') {
|
28
|
+
throw new UpstreamTimeoutError(
|
29
|
+
'Upload timed out, please try again.',
|
30
|
+
)
|
31
|
+
}
|
32
|
+
throw err
|
33
|
+
}
|
22
34
|
|
23
35
|
return store.transact(async (actorTxn) => {
|
24
36
|
const blobRef =
|
package/src/config/config.ts
CHANGED
@@ -55,6 +55,7 @@ export const envToCfg = (env: ServerEnvironment): ServerConfig => {
|
|
55
55
|
blobstoreCfg = {
|
56
56
|
provider: 's3',
|
57
57
|
bucket: env.blobstoreS3Bucket,
|
58
|
+
uploadTimeoutMs: env.blobstoreS3UploadTimeoutMs || 20000,
|
58
59
|
region: env.blobstoreS3Region,
|
59
60
|
endpoint: env.blobstoreS3Endpoint,
|
60
61
|
forcePathStyle: env.blobstoreS3ForcePathStyle,
|
@@ -305,6 +306,7 @@ export type S3BlobstoreConfig = {
|
|
305
306
|
region?: string
|
306
307
|
endpoint?: string
|
307
308
|
forcePathStyle?: boolean
|
309
|
+
uploadTimeoutMs?: number
|
308
310
|
credentials?: {
|
309
311
|
accessKeyId: string
|
310
312
|
secretAccessKey: string
|
package/src/config/env.ts
CHANGED
@@ -33,6 +33,7 @@ export const readEnv = (): ServerEnvironment => {
|
|
33
33
|
blobstoreS3ForcePathStyle: envBool('PDS_BLOBSTORE_S3_FORCE_PATH_STYLE'),
|
34
34
|
blobstoreS3AccessKeyId: envStr('PDS_BLOBSTORE_S3_ACCESS_KEY_ID'),
|
35
35
|
blobstoreS3SecretAccessKey: envStr('PDS_BLOBSTORE_S3_SECRET_ACCESS_KEY'),
|
36
|
+
blobstoreS3UploadTimeoutMs: envInt('PDS_BLOBSTORE_S3_UPLOAD_TIMEOUT_MS'),
|
36
37
|
// disk
|
37
38
|
blobstoreDiskLocation: envStr('PDS_BLOBSTORE_DISK_LOCATION'),
|
38
39
|
blobstoreDiskTmpLocation: envStr('PDS_BLOBSTORE_DISK_TMP_LOCATION'),
|
@@ -143,6 +144,7 @@ export type ServerEnvironment = {
|
|
143
144
|
blobstoreS3ForcePathStyle?: boolean
|
144
145
|
blobstoreS3AccessKeyId?: string
|
145
146
|
blobstoreS3SecretAccessKey?: string
|
147
|
+
blobstoreS3UploadTimeoutMs?: number
|
146
148
|
|
147
149
|
// identity
|
148
150
|
didPlcUrl?: string
|
package/src/context.ts
CHANGED
@@ -107,6 +107,7 @@ export class AppContext {
|
|
107
107
|
endpoint: cfg.blobstore.endpoint,
|
108
108
|
forcePathStyle: cfg.blobstore.forcePathStyle,
|
109
109
|
credentials: cfg.blobstore.credentials,
|
110
|
+
uploadTimeoutMs: cfg.blobstore.uploadTimeoutMs,
|
110
111
|
})
|
111
112
|
: DiskBlobStore.creator(
|
112
113
|
cfg.blobstore.location,
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -3822,6 +3822,7 @@ export const schemaDict = {
|
|
3822
3822
|
'lex:app.bsky.actor.defs#adultContentPref',
|
3823
3823
|
'lex:app.bsky.actor.defs#contentLabelPref',
|
3824
3824
|
'lex:app.bsky.actor.defs#savedFeedsPref',
|
3825
|
+
'lex:app.bsky.actor.defs#savedFeedsPrefV2',
|
3825
3826
|
'lex:app.bsky.actor.defs#personalDetailsPref',
|
3826
3827
|
'lex:app.bsky.actor.defs#feedViewPref',
|
3827
3828
|
'lex:app.bsky.actor.defs#threadViewPref',
|
@@ -3860,6 +3861,38 @@ export const schemaDict = {
|
|
3860
3861
|
},
|
3861
3862
|
},
|
3862
3863
|
},
|
3864
|
+
savedFeed: {
|
3865
|
+
type: 'object',
|
3866
|
+
required: ['id', 'type', 'value', 'pinned'],
|
3867
|
+
properties: {
|
3868
|
+
id: {
|
3869
|
+
type: 'string',
|
3870
|
+
},
|
3871
|
+
type: {
|
3872
|
+
type: 'string',
|
3873
|
+
knownValues: ['feed', 'list', 'timeline'],
|
3874
|
+
},
|
3875
|
+
value: {
|
3876
|
+
type: 'string',
|
3877
|
+
},
|
3878
|
+
pinned: {
|
3879
|
+
type: 'boolean',
|
3880
|
+
},
|
3881
|
+
},
|
3882
|
+
},
|
3883
|
+
savedFeedsPrefV2: {
|
3884
|
+
type: 'object',
|
3885
|
+
required: ['items'],
|
3886
|
+
properties: {
|
3887
|
+
items: {
|
3888
|
+
type: 'array',
|
3889
|
+
items: {
|
3890
|
+
type: 'ref',
|
3891
|
+
ref: 'lex:app.bsky.actor.defs#savedFeed',
|
3892
|
+
},
|
3893
|
+
},
|
3894
|
+
},
|
3895
|
+
},
|
3863
3896
|
savedFeedsPref: {
|
3864
3897
|
type: 'object',
|
3865
3898
|
required: ['pinned', 'saved'],
|
@@ -132,6 +132,7 @@ export type Preferences = (
|
|
132
132
|
| AdultContentPref
|
133
133
|
| ContentLabelPref
|
134
134
|
| SavedFeedsPref
|
135
|
+
| SavedFeedsPrefV2
|
135
136
|
| PersonalDetailsPref
|
136
137
|
| FeedViewPref
|
137
138
|
| ThreadViewPref
|
@@ -178,6 +179,43 @@ export function validateContentLabelPref(v: unknown): ValidationResult {
|
|
178
179
|
return lexicons.validate('app.bsky.actor.defs#contentLabelPref', v)
|
179
180
|
}
|
180
181
|
|
182
|
+
export interface SavedFeed {
|
183
|
+
id: string
|
184
|
+
type: 'feed' | 'list' | 'timeline' | (string & {})
|
185
|
+
value: string
|
186
|
+
pinned: boolean
|
187
|
+
[k: string]: unknown
|
188
|
+
}
|
189
|
+
|
190
|
+
export function isSavedFeed(v: unknown): v is SavedFeed {
|
191
|
+
return (
|
192
|
+
isObj(v) &&
|
193
|
+
hasProp(v, '$type') &&
|
194
|
+
v.$type === 'app.bsky.actor.defs#savedFeed'
|
195
|
+
)
|
196
|
+
}
|
197
|
+
|
198
|
+
export function validateSavedFeed(v: unknown): ValidationResult {
|
199
|
+
return lexicons.validate('app.bsky.actor.defs#savedFeed', v)
|
200
|
+
}
|
201
|
+
|
202
|
+
export interface SavedFeedsPrefV2 {
|
203
|
+
items: SavedFeed[]
|
204
|
+
[k: string]: unknown
|
205
|
+
}
|
206
|
+
|
207
|
+
export function isSavedFeedsPrefV2(v: unknown): v is SavedFeedsPrefV2 {
|
208
|
+
return (
|
209
|
+
isObj(v) &&
|
210
|
+
hasProp(v, '$type') &&
|
211
|
+
v.$type === 'app.bsky.actor.defs#savedFeedsPrefV2'
|
212
|
+
)
|
213
|
+
}
|
214
|
+
|
215
|
+
export function validateSavedFeedsPrefV2(v: unknown): ValidationResult {
|
216
|
+
return lexicons.validate('app.bsky.actor.defs#savedFeedsPrefV2', v)
|
217
|
+
}
|
218
|
+
|
181
219
|
export interface SavedFeedsPref {
|
182
220
|
pinned: string[]
|
183
221
|
saved: string[]
|
@@ -167,7 +167,7 @@ Array [
|
|
167
167
|
"event": Object {
|
168
168
|
"$type": "tools.ozone.moderation.defs#modEventTag",
|
169
169
|
"add": Array [
|
170
|
-
"lang:
|
170
|
+
"lang:en",
|
171
171
|
],
|
172
172
|
"remove": Array [],
|
173
173
|
},
|
@@ -221,7 +221,7 @@ Object {
|
|
221
221
|
"subjectBlobCids": Array [],
|
222
222
|
"subjectRepoHandle": "bob.test",
|
223
223
|
"tags": Array [
|
224
|
-
"lang:
|
224
|
+
"lang:en",
|
225
225
|
],
|
226
226
|
"takendown": false,
|
227
227
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|