@atproto/pds 0.4.104 → 0.4.106
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 +34 -0
- package/dist/account-manager/{index.d.ts → account-manager.d.ts} +26 -35
- package/dist/account-manager/account-manager.d.ts.map +1 -0
- package/dist/account-manager/{index.js → account-manager.js} +52 -207
- package/dist/account-manager/account-manager.js.map +1 -0
- package/dist/account-manager/helpers/account.d.ts +3 -3
- package/dist/account-manager/helpers/device-account.d.ts +15 -15
- package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.js +2 -1
- package/dist/account-manager/helpers/device-account.js.map +1 -1
- package/dist/account-manager/helpers/token.d.ts +98 -98
- package/dist/account-manager/oauth-store.d.ts +58 -0
- package/dist/account-manager/oauth-store.d.ts.map +1 -0
- package/dist/account-manager/oauth-store.js +417 -0
- package/dist/account-manager/oauth-store.js.map +1 -0
- package/dist/actor-store/record/reader.d.ts +3 -3
- package/dist/actor-store/repo/reader.d.ts +2 -0
- package/dist/actor-store/repo/reader.d.ts.map +1 -1
- package/dist/actor-store/repo/reader.js +9 -0
- package/dist/actor-store/repo/reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.d.ts +1 -1
- package/dist/actor-store/repo/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/transactor.js +13 -4
- package/dist/actor-store/repo/transactor.js.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js +2 -3
- package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js +2 -6
- package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +2 -36
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js +1 -7
- package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.js +2 -18
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +7 -7
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +1 -1
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js +2 -3
- package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +1 -1
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +1 -1
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.js +1 -1
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js +2 -10
- package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/app-view.d.ts +14 -0
- package/dist/app-view.d.ts.map +1 -0
- package/dist/app-view.js +36 -0
- package/dist/app-view.js.map +1 -0
- package/dist/auth-routes.d.ts +1 -1
- package/dist/auth-routes.d.ts.map +1 -1
- package/dist/auth-routes.js +9 -3
- package/dist/auth-routes.js.map +1 -1
- package/dist/auth-verifier.d.ts +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/config/config.d.ts +3 -2
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +17 -7
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +4 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +5 -0
- package/dist/config/env.js.map +1 -1
- package/dist/context.d.ts +4 -4
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +24 -18
- package/dist/context.js.map +1 -1
- package/dist/handle/index.d.ts +0 -7
- package/dist/handle/index.d.ts.map +1 -1
- package/dist/handle/index.js +4 -58
- package/dist/handle/index.js.map +1 -1
- package/dist/image/image-url.d.ts +8 -0
- package/dist/image/image-url.d.ts.map +1 -0
- package/dist/image/image-url.js +26 -0
- package/dist/image/image-url.js.map +1 -0
- package/dist/lexicon/index.d.ts +6 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +12 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +310 -130
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +171 -67
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts +17 -0
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js +16 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts +40 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +1 -30
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +0 -27
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts +1 -0
- package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts.map +1 -1
- package/dist/mailer/index.d.ts +5 -5
- package/dist/mailer/index.d.ts.map +1 -1
- package/dist/mailer/index.js +6 -5
- package/dist/mailer/index.js.map +1 -1
- package/dist/read-after-write/viewer.d.ts +1 -1
- package/dist/read-after-write/viewer.d.ts.map +1 -1
- package/dist/repo/types.d.ts +6 -2
- package/dist/repo/types.d.ts.map +1 -1
- package/dist/repo/types.js.map +1 -1
- package/dist/scripts/rebuild-repo.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.js +2 -1
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/sequencer/db/schema.d.ts +1 -1
- package/dist/sequencer/db/schema.d.ts.map +1 -1
- package/dist/sequencer/events.d.ts +27 -38
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/events.js +40 -58
- package/dist/sequencer/events.js.map +1 -1
- package/dist/sequencer/sequencer.d.ts +2 -3
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/sequencer/sequencer.js +5 -17
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +15 -15
- package/src/account-manager/{index.ts → account-manager.ts} +107 -307
- package/src/account-manager/helpers/device-account.ts +1 -0
- package/src/account-manager/oauth-store.ts +494 -0
- package/src/actor-store/repo/reader.ts +11 -0
- package/src/actor-store/repo/transactor.ts +15 -4
- package/src/api/com/atproto/admin/deleteAccount.ts +2 -3
- package/src/api/com/atproto/admin/updateAccountHandle.ts +7 -8
- package/src/api/com/atproto/identity/resolveHandle.ts +2 -11
- package/src/api/com/atproto/identity/updateHandle.ts +4 -7
- package/src/api/com/atproto/server/activateAccount.ts +4 -18
- package/src/api/com/atproto/server/createAccount.ts +15 -11
- package/src/api/com/atproto/server/createSession.ts +1 -1
- package/src/api/com/atproto/server/deleteAccount.ts +2 -3
- package/src/api/com/atproto/server/getSession.ts +1 -1
- package/src/api/com/atproto/server/refreshSession.ts +1 -1
- package/src/api/com/atproto/sync/getRecord.ts +0 -1
- package/src/api/com/atproto/sync/getRepoStatus.ts +1 -1
- package/src/api/com/atproto/sync/listRepos.ts +1 -1
- package/src/api/com/atproto/sync/subscribeRepos.ts +2 -9
- package/src/app-view.ts +24 -0
- package/src/auth-routes.ts +9 -3
- package/src/auth-verifier.ts +1 -1
- package/src/config/config.ts +25 -13
- package/src/config/env.ts +12 -0
- package/src/context.ts +44 -24
- package/src/handle/index.ts +6 -52
- package/src/image/image-url.ts +16 -0
- package/src/lexicon/index.ts +36 -0
- package/src/lexicon/lexicons.ts +186 -67
- package/src/lexicon/types/app/bsky/embed/video.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/defs.ts +30 -0
- package/src/lexicon/types/com/atproto/identity/refreshIdentity.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveDid.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/resolveIdentity.ts +48 -0
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +0 -59
- package/src/lexicon/types/tools/ozone/team/listMembers.ts +1 -0
- package/src/mailer/index.ts +7 -5
- package/src/read-after-write/viewer.ts +1 -1
- package/src/repo/types.ts +7 -2
- package/src/scripts/rebuild-repo.ts +4 -1
- package/src/sequencer/db/schema.ts +1 -8
- package/src/sequencer/events.ts +47 -75
- package/src/sequencer/sequencer.ts +9 -23
- package/tests/account-deletion.test.ts +3 -5
- package/tests/oauth.test.ts +286 -71
- package/tests/sequencer.test.ts +20 -29
- package/tests/sync/subscribe-repos.test.ts +89 -45
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/account-manager/index.d.ts.map +0 -1
- package/dist/account-manager/index.js.map +0 -1
- package/dist/actor-store/repo/util.d.ts +0 -5
- package/dist/actor-store/repo/util.d.ts.map +0 -1
- package/dist/actor-store/repo/util.js +0 -25
- package/dist/actor-store/repo/util.js.map +0 -1
- package/dist/oauth/provider.d.ts +0 -10
- package/dist/oauth/provider.d.ts.map +0 -1
- package/dist/oauth/provider.js +0 -38
- package/dist/oauth/provider.js.map +0 -1
- package/src/actor-store/repo/util.ts +0 -22
- package/src/oauth/provider.ts +0 -59
@@ -5,6 +5,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
5
|
import type * as AppBskyEmbedDefs from './defs.js';
|
6
6
|
export interface Main {
|
7
7
|
$type?: 'app.bsky.embed.video';
|
8
|
+
/** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
|
8
9
|
video: BlobRef;
|
9
10
|
captions?: Caption[];
|
10
11
|
/** Alt text description of the video, for accessibility. */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/embed/video.ts"],"names":[],"mappings":"AAAA;;GAE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/video.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"video.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/embed/video.ts"],"names":[],"mappings":";;AAyBA,wBAEC;AAED,oCAEC;AAUD,8BAEC;AAED,0CAEC;AAaD,wBAEC;AAED,oCAEC;AA7DD,mDAA4D;AAC5D,2CAAyE;AAGzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAYjC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAQD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,SAAgB,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,CAAC;AAWD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
5
|
+
export interface IdentityInfo {
|
6
|
+
$type?: 'com.atproto.identity.defs#identityInfo';
|
7
|
+
did: string;
|
8
|
+
/** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
|
9
|
+
handle: string;
|
10
|
+
/** The complete DID document for the identity. */
|
11
|
+
didDoc: {
|
12
|
+
[_ in string]: unknown;
|
13
|
+
};
|
14
|
+
}
|
15
|
+
export declare function isIdentityInfo<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.identity.defs", "identityInfo">;
|
16
|
+
export declare function validateIdentityInfo<V>(v: V): ValidationResult<IdentityInfo & V>;
|
17
|
+
//# sourceMappingURL=defs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAS5D,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,8HAA8H;IAC9H,MAAM,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CACnC;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isIdentityInfo = isIdentityInfo;
|
4
|
+
exports.validateIdentityInfo = validateIdentityInfo;
|
5
|
+
const lexicons_1 = require("../../../../lexicons");
|
6
|
+
const util_1 = require("../../../../util");
|
7
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
8
|
+
const id = 'com.atproto.identity.defs';
|
9
|
+
const hashIdentityInfo = 'identityInfo';
|
10
|
+
function isIdentityInfo(v) {
|
11
|
+
return is$typed(v, id, hashIdentityInfo);
|
12
|
+
}
|
13
|
+
function validateIdentityInfo(v) {
|
14
|
+
return validate(v, id, hashIdentityInfo);
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=defs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/defs.ts"],"names":[],"mappings":";;AAuBA,wCAEC;AAED,oDAEC;AAxBD,mDAA4D;AAC5D,2CAAyE;AAEzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2BAA2B,CAAA;AAWtC,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import type * as ComAtprotoIdentityDefs from './defs.js';
|
7
|
+
export interface QueryParams {
|
8
|
+
}
|
9
|
+
export interface InputSchema {
|
10
|
+
identifier: string;
|
11
|
+
}
|
12
|
+
export type OutputSchema = ComAtprotoIdentityDefs.IdentityInfo;
|
13
|
+
export interface HandlerInput {
|
14
|
+
encoding: 'application/json';
|
15
|
+
body: InputSchema;
|
16
|
+
}
|
17
|
+
export interface HandlerSuccess {
|
18
|
+
encoding: 'application/json';
|
19
|
+
body: OutputSchema;
|
20
|
+
headers?: {
|
21
|
+
[key: string]: string;
|
22
|
+
};
|
23
|
+
}
|
24
|
+
export interface HandlerError {
|
25
|
+
status: number;
|
26
|
+
message?: string;
|
27
|
+
error?: 'HandleNotFound' | 'DidNotFound' | 'DidDeactivated';
|
28
|
+
}
|
29
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
30
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
31
|
+
auth: HA;
|
32
|
+
params: QueryParams;
|
33
|
+
input: HandlerInput;
|
34
|
+
req: express.Request;
|
35
|
+
res: express.Response;
|
36
|
+
resetRouteRateLimits: () => Promise<void>;
|
37
|
+
};
|
38
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
39
|
+
//# sourceMappingURL=refreshIdentity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"refreshIdentity.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/refreshIdentity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,KAAK,sBAAsB,MAAM,WAAW,CAAA;AAMxD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,YAAY,CAAA;AAE9D,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,gBAAgB,GAAG,aAAa,GAAG,gBAAgB,CAAA;CAC5D;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;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,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,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.identity.refreshIdentity';
|
7
|
+
//# sourceMappingURL=refreshIdentity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"refreshIdentity.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/refreshIdentity.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAAyE;AAIzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
export interface QueryParams {
|
7
|
+
/** DID to resolve. */
|
8
|
+
did: string;
|
9
|
+
}
|
10
|
+
export type InputSchema = undefined;
|
11
|
+
export interface OutputSchema {
|
12
|
+
/** The complete DID document for the identity. */
|
13
|
+
didDoc: {
|
14
|
+
[_ in string]: unknown;
|
15
|
+
};
|
16
|
+
}
|
17
|
+
export type HandlerInput = undefined;
|
18
|
+
export interface HandlerSuccess {
|
19
|
+
encoding: 'application/json';
|
20
|
+
body: OutputSchema;
|
21
|
+
headers?: {
|
22
|
+
[key: string]: string;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
export interface HandlerError {
|
26
|
+
status: number;
|
27
|
+
message?: string;
|
28
|
+
error?: 'DidNotFound' | 'DidDeactivated';
|
29
|
+
}
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
31
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
32
|
+
auth: HA;
|
33
|
+
params: QueryParams;
|
34
|
+
input: HandlerInput;
|
35
|
+
req: express.Request;
|
36
|
+
res: express.Response;
|
37
|
+
resetRouteRateLimits: () => Promise<void>;
|
38
|
+
};
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
40
|
+
//# sourceMappingURL=resolveDid.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveDid.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveDid.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,O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-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.identity.resolveDid';
|
7
|
+
//# sourceMappingURL=resolveDid.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveDid.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveDid.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAAyE;AAGzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA"}
|
@@ -22,6 +22,7 @@ export interface HandlerSuccess {
|
|
22
22
|
export interface HandlerError {
|
23
23
|
status: number;
|
24
24
|
message?: string;
|
25
|
+
error?: 'HandleNotFound';
|
25
26
|
}
|
26
27
|
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
27
28
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resolveHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveHandle.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;CACZ;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;
|
1
|
+
{"version":3,"file":"resolveHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveHandle.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;CACZ;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;IAChB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;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;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,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,36 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import type * as ComAtprotoIdentityDefs from './defs.js';
|
7
|
+
export interface QueryParams {
|
8
|
+
/** Handle or DID to resolve. */
|
9
|
+
identifier: string;
|
10
|
+
}
|
11
|
+
export type InputSchema = undefined;
|
12
|
+
export type OutputSchema = ComAtprotoIdentityDefs.IdentityInfo;
|
13
|
+
export type HandlerInput = undefined;
|
14
|
+
export interface HandlerSuccess {
|
15
|
+
encoding: 'application/json';
|
16
|
+
body: OutputSchema;
|
17
|
+
headers?: {
|
18
|
+
[key: string]: string;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
export interface HandlerError {
|
22
|
+
status: number;
|
23
|
+
message?: string;
|
24
|
+
error?: 'HandleNotFound' | 'DidNotFound' | 'DidDeactivated';
|
25
|
+
}
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
27
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
28
|
+
auth: HA;
|
29
|
+
params: QueryParams;
|
30
|
+
input: HandlerInput;
|
31
|
+
req: express.Request;
|
32
|
+
res: express.Response;
|
33
|
+
resetRouteRateLimits: () => Promise<void>;
|
34
|
+
};
|
35
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
36
|
+
//# sourceMappingURL=resolveIdentity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveIdentity.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveIdentity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,KAAK,sBAAsB,MAAM,WAAW,CAAA;AAMxD,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,YAAY,CAAA;AAC9D,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;IAChB,KAAK,CAAC,EAAE,gBAAgB,GAAG,aAAa,GAAG,gBAAgB,CAAA;CAC5D;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;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,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,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.identity.resolveIdentity';
|
7
|
+
//# sourceMappingURL=resolveIdentity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveIdentity.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/identity/resolveIdentity.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAAyE;AAIzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA"}
|
@@ -10,7 +10,7 @@ export interface QueryParams {
|
|
10
10
|
/** The last known event seq number to backfill from. */
|
11
11
|
cursor?: number;
|
12
12
|
}
|
13
|
-
export type OutputSchema = $Typed<Commit> | $Typed<Sync> | $Typed<Identity> | $Typed<Account> | $Typed<
|
13
|
+
export type OutputSchema = $Typed<Commit> | $Typed<Sync> | $Typed<Identity> | $Typed<Account> | $Typed<Info> | {
|
14
14
|
$type: string;
|
15
15
|
};
|
16
16
|
export type HandlerError = ErrorFrame<'FutureCursor' | 'ConsumerTooSlow'>;
|
@@ -90,35 +90,6 @@ export interface Account {
|
|
90
90
|
}
|
91
91
|
export declare function isAccount<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.sync.subscribeRepos", "account">;
|
92
92
|
export declare function validateAccount<V>(v: V): ValidationResult<Account & V>;
|
93
|
-
/** DEPRECATED -- Use #identity event instead */
|
94
|
-
export interface Handle {
|
95
|
-
$type?: 'com.atproto.sync.subscribeRepos#handle';
|
96
|
-
seq: number;
|
97
|
-
did: string;
|
98
|
-
handle: string;
|
99
|
-
time: string;
|
100
|
-
}
|
101
|
-
export declare function isHandle<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.sync.subscribeRepos", "handle">;
|
102
|
-
export declare function validateHandle<V>(v: V): ValidationResult<Handle & V>;
|
103
|
-
/** DEPRECATED -- Use #account event instead */
|
104
|
-
export interface Migrate {
|
105
|
-
$type?: 'com.atproto.sync.subscribeRepos#migrate';
|
106
|
-
seq: number;
|
107
|
-
did: string;
|
108
|
-
migrateTo: string | null;
|
109
|
-
time: string;
|
110
|
-
}
|
111
|
-
export declare function isMigrate<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.sync.subscribeRepos", "migrate">;
|
112
|
-
export declare function validateMigrate<V>(v: V): ValidationResult<Migrate & V>;
|
113
|
-
/** DEPRECATED -- Use #account event instead */
|
114
|
-
export interface Tombstone {
|
115
|
-
$type?: 'com.atproto.sync.subscribeRepos#tombstone';
|
116
|
-
seq: number;
|
117
|
-
did: string;
|
118
|
-
time: string;
|
119
|
-
}
|
120
|
-
export declare function isTombstone<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.sync.subscribeRepos", "tombstone">;
|
121
|
-
export declare function validateTombstone<V>(v: V): ValidationResult<Tombstone & V>;
|
122
93
|
export interface Info {
|
123
94
|
$type?: 'com.atproto.sync.subscribeRepos#info';
|
124
95
|
name: 'OutdatedCursor' | (string & {});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscribeRepos.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/subscribeRepos.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB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AAsC,CAAA;IAC9C,IAAI,EAAE,gBAAgB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,0DAA0D;AAC1D,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACtD,IAAI,EAAE,MAAM,CAAA;IACZ,wEAAwE;IACxE,GAAG,EAAE,GAAG,GAAG,IAAI,CAAA;IACf,sIAAsI;IACtI,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
|
@@ -8,12 +8,6 @@ exports.isIdentity = isIdentity;
|
|
8
8
|
exports.validateIdentity = validateIdentity;
|
9
9
|
exports.isAccount = isAccount;
|
10
10
|
exports.validateAccount = validateAccount;
|
11
|
-
exports.isHandle = isHandle;
|
12
|
-
exports.validateHandle = validateHandle;
|
13
|
-
exports.isMigrate = isMigrate;
|
14
|
-
exports.validateMigrate = validateMigrate;
|
15
|
-
exports.isTombstone = isTombstone;
|
16
|
-
exports.validateTombstone = validateTombstone;
|
17
11
|
exports.isInfo = isInfo;
|
18
12
|
exports.validateInfo = validateInfo;
|
19
13
|
exports.isRepoOp = isRepoOp;
|
@@ -50,27 +44,6 @@ function isAccount(v) {
|
|
50
44
|
function validateAccount(v) {
|
51
45
|
return validate(v, id, hashAccount);
|
52
46
|
}
|
53
|
-
const hashHandle = 'handle';
|
54
|
-
function isHandle(v) {
|
55
|
-
return is$typed(v, id, hashHandle);
|
56
|
-
}
|
57
|
-
function validateHandle(v) {
|
58
|
-
return validate(v, id, hashHandle);
|
59
|
-
}
|
60
|
-
const hashMigrate = 'migrate';
|
61
|
-
function isMigrate(v) {
|
62
|
-
return is$typed(v, id, hashMigrate);
|
63
|
-
}
|
64
|
-
function validateMigrate(v) {
|
65
|
-
return validate(v, id, hashMigrate);
|
66
|
-
}
|
67
|
-
const hashTombstone = 'tombstone';
|
68
|
-
function isTombstone(v) {
|
69
|
-
return is$typed(v, id, hashTombstone);
|
70
|
-
}
|
71
|
-
function validateTombstone(v) {
|
72
|
-
return validate(v, id, hashTombstone);
|
73
|
-
}
|
74
47
|
const hashInfo = 'info';
|
75
48
|
function isInfo(v) {
|
76
49
|
return is$typed(v, id, hashInfo);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscribeRepos.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/subscribeRepos.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"subscribeRepos.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/subscribeRepos.ts"],"names":[],"mappings":";;AAmEA,4BAEC;AAED,wCAEC;AAmBD,wBAEC;AAED,oCAEC;AAcD,gCAEC;AAED,4CAEC;AAuBD,8BAEC;AAED,0CAEC;AAUD,wBAEC;AAED,oCAEC;AAeD,4BAEC;AAED,wCAEC;AAnLD,mDAA4D;AAC5D,2CAAyE;AAIzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA;AAqD5C,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,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;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;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,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"}
|
package/dist/mailer/index.d.ts
CHANGED
@@ -10,19 +10,19 @@ export declare class ServerMailer {
|
|
10
10
|
sendResetPassword(params: {
|
11
11
|
handle: string;
|
12
12
|
token: string;
|
13
|
-
}, mailOpts: Mail.Options): Promise<
|
13
|
+
}, mailOpts: Mail.Options): Promise<void>;
|
14
14
|
sendAccountDelete(params: {
|
15
15
|
token: string;
|
16
|
-
}, mailOpts: Mail.Options): Promise<
|
16
|
+
}, mailOpts: Mail.Options): Promise<void>;
|
17
17
|
sendConfirmEmail(params: {
|
18
18
|
token: string;
|
19
|
-
}, mailOpts: Mail.Options): Promise<
|
19
|
+
}, mailOpts: Mail.Options): Promise<void>;
|
20
20
|
sendUpdateEmail(params: {
|
21
21
|
token: string;
|
22
|
-
}, mailOpts: Mail.Options): Promise<
|
22
|
+
}, mailOpts: Mail.Options): Promise<void>;
|
23
23
|
sendPlcOperation(params: {
|
24
24
|
token: string;
|
25
|
-
}, mailOpts: Mail.Options): Promise<
|
25
|
+
}, mailOpts: Mail.Options): Promise<void>;
|
26
26
|
private sendTemplate;
|
27
27
|
}
|
28
28
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mailer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,IAAI,MAAM,uBAAuB,CAAA;AACxC,OAAO,aAAa,MAAM,+BAA+B,CAAA;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mailer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,IAAI,MAAM,uBAAuB,CAAA;AACxC,OAAO,aAAa,MAAM,+BAA+B,CAAA;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC,qBAAa,YAAY;aAEL,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADP,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,EACtD,MAAM,EAAE,YAAY;IAMvC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY;IAIrC,iBAAiB,CACrB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EACzC,QAAQ,EAAE,IAAI,CAAC,OAAO;IAQlB,iBAAiB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO;IAOnE,gBAAgB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO;IAOlE,eAAe,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO;IAOjE,gBAAgB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO;YAO1D,YAAY;CAsB3B"}
|
package/dist/mailer/index.js
CHANGED
@@ -27,6 +27,7 @@ exports.ServerMailer = void 0;
|
|
27
27
|
const nodemailer_html_to_text_1 = require("nodemailer-html-to-text");
|
28
28
|
const logger_1 = require("../logger");
|
29
29
|
const templates = __importStar(require("./templates"));
|
30
|
+
// @TODO Add support for i18n
|
30
31
|
class ServerMailer {
|
31
32
|
constructor(transporter, config) {
|
32
33
|
Object.defineProperty(this, "transporter", {
|
@@ -48,31 +49,31 @@ class ServerMailer {
|
|
48
49
|
return {};
|
49
50
|
}
|
50
51
|
async sendResetPassword(params, mailOpts) {
|
51
|
-
|
52
|
+
await this.sendTemplate('resetPassword', params, {
|
52
53
|
subject: 'Password Reset Requested',
|
53
54
|
...mailOpts,
|
54
55
|
});
|
55
56
|
}
|
56
57
|
async sendAccountDelete(params, mailOpts) {
|
57
|
-
|
58
|
+
await this.sendTemplate('deleteAccount', params, {
|
58
59
|
subject: 'Account Deletion Requested',
|
59
60
|
...mailOpts,
|
60
61
|
});
|
61
62
|
}
|
62
63
|
async sendConfirmEmail(params, mailOpts) {
|
63
|
-
|
64
|
+
await this.sendTemplate('confirmEmail', params, {
|
64
65
|
subject: 'Email Confirmation',
|
65
66
|
...mailOpts,
|
66
67
|
});
|
67
68
|
}
|
68
69
|
async sendUpdateEmail(params, mailOpts) {
|
69
|
-
|
70
|
+
await this.sendTemplate('updateEmail', params, {
|
70
71
|
subject: 'Email Update Requested',
|
71
72
|
...mailOpts,
|
72
73
|
});
|
73
74
|
}
|
74
75
|
async sendPlcOperation(params, mailOpts) {
|
75
|
-
|
76
|
+
await this.sendTemplate('plcOperation', params, {
|
76
77
|
subject: 'PLC Update Operation Requested',
|
77
78
|
...mailOpts,
|
78
79
|
});
|
package/dist/mailer/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mailer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qEAAoD;AAEpD,sCAAwC;AACxC,uDAAwC;AAExC,MAAa,YAAY;IACvB,YACkB,WAAuD,EACtD,MAAoB;QADrC;;;;mBAAgB,WAAW;WAA4C;QACvE;;;;mBAAiB,MAAM;WAAc;QAErC,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,IAAA,oCAAU,GAAE,CAAC,CAAA;IAC1C,CAAC;IAED,0DAA0D;IAC1D,MAAM,CAAC,cAAc,CAAC,OAAqB;QACzC,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,MAAyC,EACzC,QAAsB;QAEtB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mailer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qEAAoD;AAEpD,sCAAwC;AACxC,uDAAwC;AAExC,6BAA6B;AAE7B,MAAa,YAAY;IACvB,YACkB,WAAuD,EACtD,MAAoB;QADrC;;;;mBAAgB,WAAW;WAA4C;QACvE;;;;mBAAiB,MAAM;WAAc;QAErC,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,IAAA,oCAAU,GAAE,CAAC,CAAA;IAC1C,CAAC;IAED,0DAA0D;IAC1D,MAAM,CAAC,cAAc,CAAC,OAAqB;QACzC,OAAO,EAAE,CAAA;IACX,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,MAAyC,EACzC,QAAsB;QAEtB,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE;YAC/C,OAAO,EAAE,0BAA0B;YACnC,GAAG,QAAQ;SACZ,CAAC,CAAA;IACJ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E,OAAO,EAAE,CAAC;YAChC,qBAAY,CAAC,KAAK,CAChB,4DAA4D;gBAC1D,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAC/B,CAAA;QACH,CAAC;QACD,OAAO,GAAG,CAAA;IACZ,CAAC;CACF;AAzED,oCAyEC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AccountManager } from '../account-manager';
|
1
|
+
import { AccountManager } from '../account-manager/account-manager';
|
2
2
|
import { ActorStoreReader } from '../actor-store/actor-store-reader';
|
3
3
|
import { BskyAppView } from '../bsky-app-view';
|
4
4
|
import { ImageUrlBuilder } from '../image/image-url-builder';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../src/read-after-write/viewer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../src/read-after-write/viewer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,EACL,IAAI,IAAI,aAAa,EACrB,IAAI,IAAI,iBAAiB,EAE1B,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,IAAI,IAAI,WAAW,EACnB,IAAI,IAAI,eAAe,EAExB,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,IAAI,IAAI,WAAW,EACnB,IAAI,IAAI,eAAe,EAGxB,M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AClC,OAAO,CAAC,YAAY,EAAE,CAAC;IAsBpB,OAAO,CACX,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAqBrB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;;;;;IAc7C,iBAAiB,CACrB,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,GACjD,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IA+BzD,iBAAiB,CACrB,KAAK,EAAE,WAAW,GACjB,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAcrB,yBAAyB;IAmDjC,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB;;;;;IAazE,sBAAsB,CACpB,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,GAAG,WAAW,EAC9D,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,aAAa,GAAG,CAAC;IAUpC,iBAAiB,CACf,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,GAAG,WAAW,EAC9D,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,aAAa,GAAG,CAAC;IAOpC,qBAAqB,CAAC,CAAC,SAAS,mBAAmB,EACjD,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,aAAa,GACpB,CAAC;CAQL"}
|
package/dist/repo/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
2
2
|
import { RepoRecord } from '@atproto/lexicon';
|
3
|
-
import {
|
3
|
+
import { BlockMap, CommitData, WriteOpAction } from '@atproto/repo';
|
4
4
|
import { AtUri } from '@atproto/syntax';
|
5
5
|
export type ValidationStatus = 'valid' | 'unknown' | undefined;
|
6
6
|
export type BlobConstraint = {
|
@@ -43,10 +43,14 @@ export type CommitOp = {
|
|
43
43
|
};
|
44
44
|
export type CommitDataWithOps = CommitData & {
|
45
45
|
ops: CommitOp[];
|
46
|
-
blobs: CidSet;
|
47
46
|
prevData: CID | null;
|
48
47
|
};
|
49
48
|
export type PreparedWrite = PreparedCreate | PreparedUpdate | PreparedDelete;
|
49
|
+
export type SyncEvtData = {
|
50
|
+
cid: CID;
|
51
|
+
rev: string;
|
52
|
+
blocks: BlockMap;
|
53
|
+
};
|
50
54
|
export declare class InvalidRecordError extends Error {
|
51
55
|
}
|
52
56
|
export declare class BadCommitSwapError extends Error {
|
package/dist/repo/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,cAAc,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc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,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,qBAAa,kBAAmB,SAAQ,KAAK;IACxB,GAAG,EAAE,GAAG;gBAAR,GAAG,EAAE,GAAG;CAG5B;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IACxB,GAAG,EAAE,GAAG,GAAG,IAAI;gBAAf,GAAG,EAAE,GAAG,GAAG,IAAI;CAGnC"}
|
package/dist/repo/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/repo/types.ts"],"names":[],"mappings":";;;AAgEA,MAAa,kBAAmB,SAAQ,KAAK;CAAG;AAAhD,gDAAgD;AAEhD,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAmB,GAAQ;QACzB,KAAK,CAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;QAD9B;;;;mBAAO,GAAG;WAAK;IAE3B,CAAC;CACF;AAJD,gDAIC;AAED,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAmB,GAAe;QAChC,KAAK,CAAC,iBAAiB,GAAG,EAAE,QAAQ,EAAE,IAAI,MAAM,EAAE,CAAC,CAAA;QADzC;;;;mBAAO,GAAG;WAAY;IAElC,CAAC;CACF;AAJD,gDAIC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rebuild-repo.d.ts","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,QAAe,UAAU,QAAQ,MAAM,EAAE,
|
1
|
+
{"version":3,"file":"rebuild-repo.d.ts","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,eAAO,MAAM,WAAW,QAAe,UAAU,QAAQ,MAAM,EAAE,kBAwEhE,CAAA"}
|
@@ -68,7 +68,8 @@ const rebuildRepo = async (ctx, args) => {
|
|
68
68
|
};
|
69
69
|
});
|
70
70
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, rev);
|
71
|
-
await ctx.
|
71
|
+
const syncData = await ctx.actorStore.read(did, (store) => store.repo.getSyncEventData());
|
72
|
+
await ctx.sequencer.sequenceSyncEvt(did, syncData);
|
72
73
|
};
|
73
74
|
exports.rebuildRepo = rebuildRepo;
|
74
75
|
const promptContinue = async () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rebuild-repo.js","sourceRoot":"","sources":["../../src/scripts/rebuild-repo.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,4CAAqC;AACrC,wCAMsB;AAGf,MAAM,WAAW,GAAG,KAAK,EAAE,GAAe,EAAE,IAAc,EAAE,EAAE;IACnE,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAC7C,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,uBAAgB,EAAE,CAAA;IAC1C,MAAM,GAAG,GAAG,YAAG,CAAC,OAAO,EAAE,CAAA;IACzB,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAChE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,KAAK,CAAC,MAAM,CAAC,kBAAkB,EAAE;SAClC,CAAC,CAAA;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|
2
|
+
export type RepoSeqEventType = 'append' | 'sync' | 'identity' | 'account';
|
3
3
|
export interface RepoSeq {
|
4
4
|
seq: GeneratedAlways<number>;
|
5
5
|
did: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sequencer/db/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAE3E,MAAM,MAAM,gBAAgB,
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sequencer/db/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAE3E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAA;AAEzE,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,gBAAgB,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAA;IACjB,WAAW,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;AAC/C,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|