@atproto/pds 0.4.131 → 0.4.133

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.
@@ -13,7 +13,7 @@ export interface ProfileViewBasic {
13
13
  associated?: AppBskyActorDefs.ProfileAssociated;
14
14
  viewer?: AppBskyActorDefs.ViewerState;
15
15
  labels?: ComAtprotoLabelDefs.Label[];
16
- /** Set to true when the actor cannot actively participate in converations */
16
+ /** Set to true when the actor cannot actively participate in conversations */
17
17
  chatDisabled?: boolean;
18
18
  verification?: AppBskyActorDefs.VerificationState;
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;IAC/C,MAAM,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;CAClD;AAID,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEzC;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0CAE/C"}
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;IAC/C,MAAM,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;CAClD;AAID,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEzC;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0CAE/C"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util';
7
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
8
+ export interface QueryParams {
9
+ did: string;
10
+ events?: 'accountCreated' | 'emailUpdated' | 'emailConfirmed' | 'passwordUpdated' | 'handleUpdated' | (string & {})[];
11
+ cursor?: string;
12
+ limit: number;
13
+ }
14
+ export type InputSchema = undefined;
15
+ export interface OutputSchema {
16
+ cursor?: string;
17
+ events: Event[];
18
+ }
19
+ export type HandlerInput = undefined;
20
+ export interface HandlerSuccess {
21
+ encoding: 'application/json';
22
+ body: OutputSchema;
23
+ headers?: {
24
+ [key: string]: string;
25
+ };
26
+ }
27
+ export interface HandlerError {
28
+ status: number;
29
+ message?: string;
30
+ }
31
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
32
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
33
+ auth: HA;
34
+ params: QueryParams;
35
+ input: HandlerInput;
36
+ req: express.Request;
37
+ res: express.Response;
38
+ resetRouteRateLimits: () => Promise<void>;
39
+ };
40
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
41
+ export interface Event {
42
+ $type?: 'tools.ozone.hosting.getAccountHistory#event';
43
+ details: $Typed<AccountCreated> | $Typed<EmailUpdated> | $Typed<EmailConfirmed> | $Typed<PasswordUpdated> | $Typed<HandleUpdated> | {
44
+ $type: string;
45
+ };
46
+ createdBy: string;
47
+ createdAt: string;
48
+ }
49
+ export declare function isEvent<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "event">;
50
+ export declare function validateEvent<V>(v: V): ValidationResult<Event & V>;
51
+ export interface AccountCreated {
52
+ $type?: 'tools.ozone.hosting.getAccountHistory#accountCreated';
53
+ email?: string;
54
+ handle?: string;
55
+ }
56
+ export declare function isAccountCreated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "accountCreated">;
57
+ export declare function validateAccountCreated<V>(v: V): ValidationResult<AccountCreated & V>;
58
+ export interface EmailUpdated {
59
+ $type?: 'tools.ozone.hosting.getAccountHistory#emailUpdated';
60
+ email: string;
61
+ }
62
+ export declare function isEmailUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "emailUpdated">;
63
+ export declare function validateEmailUpdated<V>(v: V): ValidationResult<EmailUpdated & V>;
64
+ export interface EmailConfirmed {
65
+ $type?: 'tools.ozone.hosting.getAccountHistory#emailConfirmed';
66
+ email: string;
67
+ }
68
+ export declare function isEmailConfirmed<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "emailConfirmed">;
69
+ export declare function validateEmailConfirmed<V>(v: V): ValidationResult<EmailConfirmed & V>;
70
+ export interface PasswordUpdated {
71
+ $type?: 'tools.ozone.hosting.getAccountHistory#passwordUpdated';
72
+ }
73
+ export declare function isPasswordUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "passwordUpdated">;
74
+ export declare function validatePasswordUpdated<V>(v: V): ValidationResult<PasswordUpdated & V>;
75
+ export interface HandleUpdated {
76
+ $type?: 'tools.ozone.hosting.getAccountHistory#handleUpdated';
77
+ handle: string;
78
+ }
79
+ export declare function isHandleUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "handleUpdated">;
80
+ export declare function validateHandleUpdated<V>(v: V): ValidationResult<HandleUpdated & V>;
81
+ //# sourceMappingURL=getAccountHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountHistory.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/hosting/getAccountHistory.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EACH,gBAAgB,GAChB,cAAc,GACd,g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E,CAAC,+GAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,qDAAqD,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6GAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isEvent = isEvent;
4
+ exports.validateEvent = validateEvent;
5
+ exports.isAccountCreated = isAccountCreated;
6
+ exports.validateAccountCreated = validateAccountCreated;
7
+ exports.isEmailUpdated = isEmailUpdated;
8
+ exports.validateEmailUpdated = validateEmailUpdated;
9
+ exports.isEmailConfirmed = isEmailConfirmed;
10
+ exports.validateEmailConfirmed = validateEmailConfirmed;
11
+ exports.isPasswordUpdated = isPasswordUpdated;
12
+ exports.validatePasswordUpdated = validatePasswordUpdated;
13
+ exports.isHandleUpdated = isHandleUpdated;
14
+ exports.validateHandleUpdated = validateHandleUpdated;
15
+ const lexicons_1 = require("../../../../lexicons");
16
+ const util_1 = require("../../../../util");
17
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
18
+ const id = 'tools.ozone.hosting.getAccountHistory';
19
+ const hashEvent = 'event';
20
+ function isEvent(v) {
21
+ return is$typed(v, id, hashEvent);
22
+ }
23
+ function validateEvent(v) {
24
+ return validate(v, id, hashEvent);
25
+ }
26
+ const hashAccountCreated = 'accountCreated';
27
+ function isAccountCreated(v) {
28
+ return is$typed(v, id, hashAccountCreated);
29
+ }
30
+ function validateAccountCreated(v) {
31
+ return validate(v, id, hashAccountCreated);
32
+ }
33
+ const hashEmailUpdated = 'emailUpdated';
34
+ function isEmailUpdated(v) {
35
+ return is$typed(v, id, hashEmailUpdated);
36
+ }
37
+ function validateEmailUpdated(v) {
38
+ return validate(v, id, hashEmailUpdated);
39
+ }
40
+ const hashEmailConfirmed = 'emailConfirmed';
41
+ function isEmailConfirmed(v) {
42
+ return is$typed(v, id, hashEmailConfirmed);
43
+ }
44
+ function validateEmailConfirmed(v) {
45
+ return validate(v, id, hashEmailConfirmed);
46
+ }
47
+ const hashPasswordUpdated = 'passwordUpdated';
48
+ function isPasswordUpdated(v) {
49
+ return is$typed(v, id, hashPasswordUpdated);
50
+ }
51
+ function validatePasswordUpdated(v) {
52
+ return validate(v, id, hashPasswordUpdated);
53
+ }
54
+ const hashHandleUpdated = 'handleUpdated';
55
+ function isHandleUpdated(v) {
56
+ return is$typed(v, id, hashHandleUpdated);
57
+ }
58
+ function validateHandleUpdated(v) {
59
+ return validate(v, id, hashHandleUpdated);
60
+ }
61
+ //# sourceMappingURL=getAccountHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountHistory.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/hosting/getAccountHistory.ts"],"names":[],"mappings":";;AA+EA,0BAEC;AAED,sCAEC;AAUD,4CAEC;AAED,wDAEC;AASD,wCAEC;AAED,oDAEC;AASD,4CAEC;AAED,wDAEC;AAQD,8CAEC;AAED,0DAEC;AASD,0CAEC;AAED,sDAEC;AA1JD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uCAAuC,CAAA;AA6DlD,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,SAAgB,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AAQD,MAAM,kBAAkB,GAAG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SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.131",
3
+ "version": "0.4.133",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -48,18 +48,18 @@
48
48
  "undici": "^6.19.8",
49
49
  "zod": "^3.23.8",
50
50
  "@atproto-labs/fetch-node": "0.1.8",
51
- "@atproto-labs/xrpc-utils": "0.0.11",
52
- "@atproto/api": "^0.15.3",
51
+ "@atproto-labs/xrpc-utils": "0.0.12",
52
+ "@atproto/api": "^0.15.4",
53
53
  "@atproto/aws": "^0.2.20",
54
54
  "@atproto/common": "^0.4.10",
55
55
  "@atproto/crypto": "^0.4.4",
56
56
  "@atproto/identity": "^0.4.7",
57
57
  "@atproto/lexicon": "^0.4.10",
58
- "@atproto/oauth-provider": "^0.7.4",
58
+ "@atproto/oauth-provider": "^0.7.5",
59
59
  "@atproto/repo": "^0.8.0",
60
60
  "@atproto/syntax": "^0.4.0",
61
61
  "@atproto/xrpc": "^0.6.12",
62
- "@atproto/xrpc-server": "^0.7.15"
62
+ "@atproto/xrpc-server": "^0.7.16"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
@@ -77,9 +77,9 @@
77
77
  "ts-node": "^10.8.2",
78
78
  "typescript": "^5.6.3",
79
79
  "ws": "^8.12.0",
80
- "@atproto/api": "^0.15.3",
81
- "@atproto/bsky": "^0.0.144",
82
- "@atproto/dev-env": "^0.3.124",
80
+ "@atproto/api": "^0.15.4",
81
+ "@atproto/bsky": "^0.0.146",
82
+ "@atproto/dev-env": "^0.3.127",
83
83
  "@atproto/lex-cli": "^0.8.0",
84
84
  "@atproto/oauth-client-browser-example": "0.0.2"
85
85
  },
@@ -188,6 +188,7 @@ import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/comm
188
188
  import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
189
189
  import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
190
190
  import * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
191
+ import * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
191
192
  import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
192
193
  import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
193
194
  import * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord.js'
@@ -2487,6 +2488,7 @@ export class ToolsNS {
2487
2488
  export class ToolsOzoneNS {
2488
2489
  _server: Server
2489
2490
  communication: ToolsOzoneCommunicationNS
2491
+ hosting: ToolsOzoneHostingNS
2490
2492
  moderation: ToolsOzoneModerationNS
2491
2493
  server: ToolsOzoneServerNS
2492
2494
  set: ToolsOzoneSetNS
@@ -2497,6 +2499,7 @@ export class ToolsOzoneNS {
2497
2499
  constructor(server: Server) {
2498
2500
  this._server = server
2499
2501
  this.communication = new ToolsOzoneCommunicationNS(server)
2502
+ this.hosting = new ToolsOzoneHostingNS(server)
2500
2503
  this.moderation = new ToolsOzoneModerationNS(server)
2501
2504
  this.server = new ToolsOzoneServerNS(server)
2502
2505
  this.set = new ToolsOzoneSetNS(server)
@@ -2558,6 +2561,25 @@ export class ToolsOzoneCommunicationNS {
2558
2561
  }
2559
2562
  }
2560
2563
 
2564
+ export class ToolsOzoneHostingNS {
2565
+ _server: Server
2566
+
2567
+ constructor(server: Server) {
2568
+ this._server = server
2569
+ }
2570
+
2571
+ getAccountHistory<AV extends AuthVerifier>(
2572
+ cfg: ConfigOf<
2573
+ AV,
2574
+ ToolsOzoneHostingGetAccountHistory.Handler<ExtractAuth<AV>>,
2575
+ ToolsOzoneHostingGetAccountHistory.HandlerReqCtx<ExtractAuth<AV>>
2576
+ >,
2577
+ ) {
2578
+ const nsid = 'tools.ozone.hosting.getAccountHistory' // @ts-ignore
2579
+ return this._server.xrpc.method(nsid, cfg)
2580
+ }
2581
+ }
2582
+
2561
2583
  export class ToolsOzoneModerationNS {
2562
2584
  _server: Server
2563
2585
 
@@ -11104,7 +11104,7 @@ export const schemaDict = {
11104
11104
  chatDisabled: {
11105
11105
  type: 'boolean',
11106
11106
  description:
11107
- 'Set to true when the actor cannot actively participate in converations',
11107
+ 'Set to true when the actor cannot actively participate in conversations',
11108
11108
  },
11109
11109
  verification: {
11110
11110
  type: 'ref',
@@ -12575,6 +12575,137 @@ export const schemaDict = {
12575
12575
  },
12576
12576
  },
12577
12577
  },
12578
+ ToolsOzoneHostingGetAccountHistory: {
12579
+ lexicon: 1,
12580
+ id: 'tools.ozone.hosting.getAccountHistory',
12581
+ defs: {
12582
+ main: {
12583
+ type: 'query',
12584
+ description:
12585
+ 'Get account history, e.g. log of updated email addresses or other identity information.',
12586
+ parameters: {
12587
+ type: 'params',
12588
+ required: ['did'],
12589
+ properties: {
12590
+ did: {
12591
+ type: 'string',
12592
+ format: 'did',
12593
+ },
12594
+ events: {
12595
+ type: 'array',
12596
+ items: {
12597
+ type: 'string',
12598
+ knownValues: [
12599
+ 'accountCreated',
12600
+ 'emailUpdated',
12601
+ 'emailConfirmed',
12602
+ 'passwordUpdated',
12603
+ 'handleUpdated',
12604
+ ],
12605
+ },
12606
+ },
12607
+ cursor: {
12608
+ type: 'string',
12609
+ },
12610
+ limit: {
12611
+ type: 'integer',
12612
+ minimum: 1,
12613
+ maximum: 100,
12614
+ default: 50,
12615
+ },
12616
+ },
12617
+ },
12618
+ output: {
12619
+ encoding: 'application/json',
12620
+ schema: {
12621
+ type: 'object',
12622
+ required: ['events'],
12623
+ properties: {
12624
+ cursor: {
12625
+ type: 'string',
12626
+ },
12627
+ events: {
12628
+ type: 'array',
12629
+ items: {
12630
+ type: 'ref',
12631
+ ref: 'lex:tools.ozone.hosting.getAccountHistory#event',
12632
+ },
12633
+ },
12634
+ },
12635
+ },
12636
+ },
12637
+ },
12638
+ event: {
12639
+ type: 'object',
12640
+ required: ['details', 'createdBy', 'createdAt'],
12641
+ properties: {
12642
+ details: {
12643
+ type: 'union',
12644
+ refs: [
12645
+ 'lex:tools.ozone.hosting.getAccountHistory#accountCreated',
12646
+ 'lex:tools.ozone.hosting.getAccountHistory#emailUpdated',
12647
+ 'lex:tools.ozone.hosting.getAccountHistory#emailConfirmed',
12648
+ 'lex:tools.ozone.hosting.getAccountHistory#passwordUpdated',
12649
+ 'lex:tools.ozone.hosting.getAccountHistory#handleUpdated',
12650
+ ],
12651
+ },
12652
+ createdBy: {
12653
+ type: 'string',
12654
+ },
12655
+ createdAt: {
12656
+ type: 'string',
12657
+ format: 'datetime',
12658
+ },
12659
+ },
12660
+ },
12661
+ accountCreated: {
12662
+ type: 'object',
12663
+ required: [],
12664
+ properties: {
12665
+ email: {
12666
+ type: 'string',
12667
+ },
12668
+ handle: {
12669
+ type: 'string',
12670
+ format: 'handle',
12671
+ },
12672
+ },
12673
+ },
12674
+ emailUpdated: {
12675
+ type: 'object',
12676
+ required: ['email'],
12677
+ properties: {
12678
+ email: {
12679
+ type: 'string',
12680
+ },
12681
+ },
12682
+ },
12683
+ emailConfirmed: {
12684
+ type: 'object',
12685
+ required: ['email'],
12686
+ properties: {
12687
+ email: {
12688
+ type: 'string',
12689
+ },
12690
+ },
12691
+ },
12692
+ passwordUpdated: {
12693
+ type: 'object',
12694
+ required: [],
12695
+ properties: {},
12696
+ },
12697
+ handleUpdated: {
12698
+ type: 'object',
12699
+ required: ['handle'],
12700
+ properties: {
12701
+ handle: {
12702
+ type: 'string',
12703
+ format: 'handle',
12704
+ },
12705
+ },
12706
+ },
12707
+ },
12708
+ },
12578
12709
  ToolsOzoneModerationDefs: {
12579
12710
  lexicon: 1,
12580
12711
  id: 'tools.ozone.moderation.defs',
@@ -15753,6 +15884,7 @@ export const ids = {
15753
15884
  'tools.ozone.communication.listTemplates',
15754
15885
  ToolsOzoneCommunicationUpdateTemplate:
15755
15886
  'tools.ozone.communication.updateTemplate',
15887
+ ToolsOzoneHostingGetAccountHistory: 'tools.ozone.hosting.getAccountHistory',
15756
15888
  ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs',
15757
15889
  ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
15758
15890
  ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
@@ -25,7 +25,7 @@ export interface ProfileViewBasic {
25
25
  associated?: AppBskyActorDefs.ProfileAssociated
26
26
  viewer?: AppBskyActorDefs.ViewerState
27
27
  labels?: ComAtprotoLabelDefs.Label[]
28
- /** Set to true when the actor cannot actively participate in converations */
28
+ /** Set to true when the actor cannot actively participate in conversations */
29
29
  chatDisabled?: boolean
30
30
  verification?: AppBskyActorDefs.VerificationState
31
31
  }
@@ -0,0 +1,161 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'tools.ozone.hosting.getAccountHistory'
18
+
19
+ export interface QueryParams {
20
+ did: string
21
+ events?:
22
+ | 'accountCreated'
23
+ | 'emailUpdated'
24
+ | 'emailConfirmed'
25
+ | 'passwordUpdated'
26
+ | 'handleUpdated'
27
+ | (string & {})[]
28
+ cursor?: string
29
+ limit: number
30
+ }
31
+
32
+ export type InputSchema = undefined
33
+
34
+ export interface OutputSchema {
35
+ cursor?: string
36
+ events: Event[]
37
+ }
38
+
39
+ export type HandlerInput = undefined
40
+
41
+ export interface HandlerSuccess {
42
+ encoding: 'application/json'
43
+ body: OutputSchema
44
+ headers?: { [key: string]: string }
45
+ }
46
+
47
+ export interface HandlerError {
48
+ status: number
49
+ message?: string
50
+ }
51
+
52
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
53
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
54
+ auth: HA
55
+ params: QueryParams
56
+ input: HandlerInput
57
+ req: express.Request
58
+ res: express.Response
59
+ resetRouteRateLimits: () => Promise<void>
60
+ }
61
+ export type Handler<HA extends HandlerAuth = never> = (
62
+ ctx: HandlerReqCtx<HA>,
63
+ ) => Promise<HandlerOutput> | HandlerOutput
64
+
65
+ export interface Event {
66
+ $type?: 'tools.ozone.hosting.getAccountHistory#event'
67
+ details:
68
+ | $Typed<AccountCreated>
69
+ | $Typed<EmailUpdated>
70
+ | $Typed<EmailConfirmed>
71
+ | $Typed<PasswordUpdated>
72
+ | $Typed<HandleUpdated>
73
+ | { $type: string }
74
+ createdBy: string
75
+ createdAt: string
76
+ }
77
+
78
+ const hashEvent = 'event'
79
+
80
+ export function isEvent<V>(v: V) {
81
+ return is$typed(v, id, hashEvent)
82
+ }
83
+
84
+ export function validateEvent<V>(v: V) {
85
+ return validate<Event & V>(v, id, hashEvent)
86
+ }
87
+
88
+ export interface AccountCreated {
89
+ $type?: 'tools.ozone.hosting.getAccountHistory#accountCreated'
90
+ email?: string
91
+ handle?: string
92
+ }
93
+
94
+ const hashAccountCreated = 'accountCreated'
95
+
96
+ export function isAccountCreated<V>(v: V) {
97
+ return is$typed(v, id, hashAccountCreated)
98
+ }
99
+
100
+ export function validateAccountCreated<V>(v: V) {
101
+ return validate<AccountCreated & V>(v, id, hashAccountCreated)
102
+ }
103
+
104
+ export interface EmailUpdated {
105
+ $type?: 'tools.ozone.hosting.getAccountHistory#emailUpdated'
106
+ email: string
107
+ }
108
+
109
+ const hashEmailUpdated = 'emailUpdated'
110
+
111
+ export function isEmailUpdated<V>(v: V) {
112
+ return is$typed(v, id, hashEmailUpdated)
113
+ }
114
+
115
+ export function validateEmailUpdated<V>(v: V) {
116
+ return validate<EmailUpdated & V>(v, id, hashEmailUpdated)
117
+ }
118
+
119
+ export interface EmailConfirmed {
120
+ $type?: 'tools.ozone.hosting.getAccountHistory#emailConfirmed'
121
+ email: string
122
+ }
123
+
124
+ const hashEmailConfirmed = 'emailConfirmed'
125
+
126
+ export function isEmailConfirmed<V>(v: V) {
127
+ return is$typed(v, id, hashEmailConfirmed)
128
+ }
129
+
130
+ export function validateEmailConfirmed<V>(v: V) {
131
+ return validate<EmailConfirmed & V>(v, id, hashEmailConfirmed)
132
+ }
133
+
134
+ export interface PasswordUpdated {
135
+ $type?: 'tools.ozone.hosting.getAccountHistory#passwordUpdated'
136
+ }
137
+
138
+ const hashPasswordUpdated = 'passwordUpdated'
139
+
140
+ export function isPasswordUpdated<V>(v: V) {
141
+ return is$typed(v, id, hashPasswordUpdated)
142
+ }
143
+
144
+ export function validatePasswordUpdated<V>(v: V) {
145
+ return validate<PasswordUpdated & V>(v, id, hashPasswordUpdated)
146
+ }
147
+
148
+ export interface HandleUpdated {
149
+ $type?: 'tools.ozone.hosting.getAccountHistory#handleUpdated'
150
+ handle: string
151
+ }
152
+
153
+ const hashHandleUpdated = 'handleUpdated'
154
+
155
+ export function isHandleUpdated<V>(v: V) {
156
+ return is$typed(v, id, hashHandleUpdated)
157
+ }
158
+
159
+ export function validateHandleUpdated<V>(v: V) {
160
+ return validate<HandleUpdated & V>(v, id, hashHandleUpdated)
161
+ }