@atproto/api 0.15.3 → 0.15.4
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 +6 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +26 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +238 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +132 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.d.ts +68 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.js +65 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +24 -0
- package/src/client/lexicons.ts +133 -1
- package/src/client/types/chat/bsky/actor/defs.ts +1 -1
- package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +149 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -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
|
|
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/client/types/chat/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAA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B,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,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import { type $Typed } from '../../../../util';
|
|
7
|
+
export interface QueryParams {
|
|
8
|
+
did: string;
|
|
9
|
+
events?: 'accountCreated' | 'emailUpdated' | 'emailConfirmed' | 'passwordUpdated' | 'handleUpdated' | (string & {})[];
|
|
10
|
+
cursor?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
}
|
|
13
|
+
export type InputSchema = undefined;
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
events: Event[];
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
export interface Event {
|
|
29
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#event';
|
|
30
|
+
details: $Typed<AccountCreated> | $Typed<EmailUpdated> | $Typed<EmailConfirmed> | $Typed<PasswordUpdated> | $Typed<HandleUpdated> | {
|
|
31
|
+
$type: string;
|
|
32
|
+
};
|
|
33
|
+
createdBy: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function isEvent<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "event">;
|
|
37
|
+
export declare function validateEvent<V>(v: V): ValidationResult<Event & V>;
|
|
38
|
+
export interface AccountCreated {
|
|
39
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#accountCreated';
|
|
40
|
+
email?: string;
|
|
41
|
+
handle?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function isAccountCreated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "accountCreated">;
|
|
44
|
+
export declare function validateAccountCreated<V>(v: V): ValidationResult<AccountCreated & V>;
|
|
45
|
+
export interface EmailUpdated {
|
|
46
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#emailUpdated';
|
|
47
|
+
email: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function isEmailUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "emailUpdated">;
|
|
50
|
+
export declare function validateEmailUpdated<V>(v: V): ValidationResult<EmailUpdated & V>;
|
|
51
|
+
export interface EmailConfirmed {
|
|
52
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#emailConfirmed';
|
|
53
|
+
email: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function isEmailConfirmed<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "emailConfirmed">;
|
|
56
|
+
export declare function validateEmailConfirmed<V>(v: V): ValidationResult<EmailConfirmed & V>;
|
|
57
|
+
export interface PasswordUpdated {
|
|
58
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#passwordUpdated';
|
|
59
|
+
}
|
|
60
|
+
export declare function isPasswordUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "passwordUpdated">;
|
|
61
|
+
export declare function validatePasswordUpdated<V>(v: V): ValidationResult<PasswordUpdated & V>;
|
|
62
|
+
export interface HandleUpdated {
|
|
63
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#handleUpdated';
|
|
64
|
+
handle: string;
|
|
65
|
+
}
|
|
66
|
+
export declare function isHandleUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.hosting.getAccountHistory", "handleUpdated">;
|
|
67
|
+
export declare function validateHandleUpdated<V>(v: V): ValidationResult<HandleUpdated & V>;
|
|
68
|
+
//# sourceMappingURL=getAccountHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccountHistory.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/hosting/getAccountHistory.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EACH,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,iBAAiB,GACjB,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,KAAK;IACpB,KAAK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AID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,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,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
exports.isEvent = isEvent;
|
|
5
|
+
exports.validateEvent = validateEvent;
|
|
6
|
+
exports.isAccountCreated = isAccountCreated;
|
|
7
|
+
exports.validateAccountCreated = validateAccountCreated;
|
|
8
|
+
exports.isEmailUpdated = isEmailUpdated;
|
|
9
|
+
exports.validateEmailUpdated = validateEmailUpdated;
|
|
10
|
+
exports.isEmailConfirmed = isEmailConfirmed;
|
|
11
|
+
exports.validateEmailConfirmed = validateEmailConfirmed;
|
|
12
|
+
exports.isPasswordUpdated = isPasswordUpdated;
|
|
13
|
+
exports.validatePasswordUpdated = validatePasswordUpdated;
|
|
14
|
+
exports.isHandleUpdated = isHandleUpdated;
|
|
15
|
+
exports.validateHandleUpdated = validateHandleUpdated;
|
|
16
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
17
|
+
const util_1 = require("../../../../util");
|
|
18
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
19
|
+
const id = 'tools.ozone.hosting.getAccountHistory';
|
|
20
|
+
function toKnownErr(e) {
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const hashEvent = 'event';
|
|
24
|
+
function isEvent(v) {
|
|
25
|
+
return is$typed(v, id, hashEvent);
|
|
26
|
+
}
|
|
27
|
+
function validateEvent(v) {
|
|
28
|
+
return validate(v, id, hashEvent);
|
|
29
|
+
}
|
|
30
|
+
const hashAccountCreated = 'accountCreated';
|
|
31
|
+
function isAccountCreated(v) {
|
|
32
|
+
return is$typed(v, id, hashAccountCreated);
|
|
33
|
+
}
|
|
34
|
+
function validateAccountCreated(v) {
|
|
35
|
+
return validate(v, id, hashAccountCreated);
|
|
36
|
+
}
|
|
37
|
+
const hashEmailUpdated = 'emailUpdated';
|
|
38
|
+
function isEmailUpdated(v) {
|
|
39
|
+
return is$typed(v, id, hashEmailUpdated);
|
|
40
|
+
}
|
|
41
|
+
function validateEmailUpdated(v) {
|
|
42
|
+
return validate(v, id, hashEmailUpdated);
|
|
43
|
+
}
|
|
44
|
+
const hashEmailConfirmed = 'emailConfirmed';
|
|
45
|
+
function isEmailConfirmed(v) {
|
|
46
|
+
return is$typed(v, id, hashEmailConfirmed);
|
|
47
|
+
}
|
|
48
|
+
function validateEmailConfirmed(v) {
|
|
49
|
+
return validate(v, id, hashEmailConfirmed);
|
|
50
|
+
}
|
|
51
|
+
const hashPasswordUpdated = 'passwordUpdated';
|
|
52
|
+
function isPasswordUpdated(v) {
|
|
53
|
+
return is$typed(v, id, hashPasswordUpdated);
|
|
54
|
+
}
|
|
55
|
+
function validatePasswordUpdated(v) {
|
|
56
|
+
return validate(v, id, hashPasswordUpdated);
|
|
57
|
+
}
|
|
58
|
+
const hashHandleUpdated = 'handleUpdated';
|
|
59
|
+
function isHandleUpdated(v) {
|
|
60
|
+
return is$typed(v, id, hashHandleUpdated);
|
|
61
|
+
}
|
|
62
|
+
function validateHandleUpdated(v) {
|
|
63
|
+
return validate(v, id, hashHandleUpdated);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=getAccountHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccountHistory.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/hosting/getA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gB,CAAA;AAE3C,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC;AAMD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,SAAgB,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAOD,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -230,6 +230,7 @@ import * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/
|
|
|
230
230
|
import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
|
|
231
231
|
import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
|
|
232
232
|
import * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
|
|
233
|
+
import * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
|
|
233
234
|
import * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js'
|
|
234
235
|
import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
|
|
235
236
|
import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
|
|
@@ -485,6 +486,7 @@ export * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/
|
|
|
485
486
|
export * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
|
|
486
487
|
export * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
|
|
487
488
|
export * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
|
|
489
|
+
export * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
|
|
488
490
|
export * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js'
|
|
489
491
|
export * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
|
|
490
492
|
export * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
|
|
@@ -3940,6 +3942,7 @@ export class ToolsNS {
|
|
|
3940
3942
|
export class ToolsOzoneNS {
|
|
3941
3943
|
_client: XrpcClient
|
|
3942
3944
|
communication: ToolsOzoneCommunicationNS
|
|
3945
|
+
hosting: ToolsOzoneHostingNS
|
|
3943
3946
|
moderation: ToolsOzoneModerationNS
|
|
3944
3947
|
server: ToolsOzoneServerNS
|
|
3945
3948
|
set: ToolsOzoneSetNS
|
|
@@ -3950,6 +3953,7 @@ export class ToolsOzoneNS {
|
|
|
3950
3953
|
constructor(client: XrpcClient) {
|
|
3951
3954
|
this._client = client
|
|
3952
3955
|
this.communication = new ToolsOzoneCommunicationNS(client)
|
|
3956
|
+
this.hosting = new ToolsOzoneHostingNS(client)
|
|
3953
3957
|
this.moderation = new ToolsOzoneModerationNS(client)
|
|
3954
3958
|
this.server = new ToolsOzoneServerNS(client)
|
|
3955
3959
|
this.set = new ToolsOzoneSetNS(client)
|
|
@@ -4013,6 +4017,26 @@ export class ToolsOzoneCommunicationNS {
|
|
|
4013
4017
|
}
|
|
4014
4018
|
}
|
|
4015
4019
|
|
|
4020
|
+
export class ToolsOzoneHostingNS {
|
|
4021
|
+
_client: XrpcClient
|
|
4022
|
+
|
|
4023
|
+
constructor(client: XrpcClient) {
|
|
4024
|
+
this._client = client
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
getAccountHistory(
|
|
4028
|
+
params?: ToolsOzoneHostingGetAccountHistory.QueryParams,
|
|
4029
|
+
opts?: ToolsOzoneHostingGetAccountHistory.CallOptions,
|
|
4030
|
+
): Promise<ToolsOzoneHostingGetAccountHistory.Response> {
|
|
4031
|
+
return this._client.call(
|
|
4032
|
+
'tools.ozone.hosting.getAccountHistory',
|
|
4033
|
+
params,
|
|
4034
|
+
undefined,
|
|
4035
|
+
opts,
|
|
4036
|
+
)
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4016
4040
|
export class ToolsOzoneModerationNS {
|
|
4017
4041
|
_client: XrpcClient
|
|
4018
4042
|
|
package/src/client/lexicons.ts
CHANGED
|
@@ -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
|
|
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
|
|
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,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
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
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'tools.ozone.hosting.getAccountHistory'
|
|
17
|
+
|
|
18
|
+
export interface QueryParams {
|
|
19
|
+
did: string
|
|
20
|
+
events?:
|
|
21
|
+
| 'accountCreated'
|
|
22
|
+
| 'emailUpdated'
|
|
23
|
+
| 'emailConfirmed'
|
|
24
|
+
| 'passwordUpdated'
|
|
25
|
+
| 'handleUpdated'
|
|
26
|
+
| (string & {})[]
|
|
27
|
+
cursor?: string
|
|
28
|
+
limit?: number
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type InputSchema = undefined
|
|
32
|
+
|
|
33
|
+
export interface OutputSchema {
|
|
34
|
+
cursor?: string
|
|
35
|
+
events: Event[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CallOptions {
|
|
39
|
+
signal?: AbortSignal
|
|
40
|
+
headers?: HeadersMap
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface Response {
|
|
44
|
+
success: boolean
|
|
45
|
+
headers: HeadersMap
|
|
46
|
+
data: OutputSchema
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function toKnownErr(e: any) {
|
|
50
|
+
return e
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface Event {
|
|
54
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#event'
|
|
55
|
+
details:
|
|
56
|
+
| $Typed<AccountCreated>
|
|
57
|
+
| $Typed<EmailUpdated>
|
|
58
|
+
| $Typed<EmailConfirmed>
|
|
59
|
+
| $Typed<PasswordUpdated>
|
|
60
|
+
| $Typed<HandleUpdated>
|
|
61
|
+
| { $type: string }
|
|
62
|
+
createdBy: string
|
|
63
|
+
createdAt: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const hashEvent = 'event'
|
|
67
|
+
|
|
68
|
+
export function isEvent<V>(v: V) {
|
|
69
|
+
return is$typed(v, id, hashEvent)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function validateEvent<V>(v: V) {
|
|
73
|
+
return validate<Event & V>(v, id, hashEvent)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface AccountCreated {
|
|
77
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#accountCreated'
|
|
78
|
+
email?: string
|
|
79
|
+
handle?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const hashAccountCreated = 'accountCreated'
|
|
83
|
+
|
|
84
|
+
export function isAccountCreated<V>(v: V) {
|
|
85
|
+
return is$typed(v, id, hashAccountCreated)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function validateAccountCreated<V>(v: V) {
|
|
89
|
+
return validate<AccountCreated & V>(v, id, hashAccountCreated)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface EmailUpdated {
|
|
93
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#emailUpdated'
|
|
94
|
+
email: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const hashEmailUpdated = 'emailUpdated'
|
|
98
|
+
|
|
99
|
+
export function isEmailUpdated<V>(v: V) {
|
|
100
|
+
return is$typed(v, id, hashEmailUpdated)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function validateEmailUpdated<V>(v: V) {
|
|
104
|
+
return validate<EmailUpdated & V>(v, id, hashEmailUpdated)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface EmailConfirmed {
|
|
108
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#emailConfirmed'
|
|
109
|
+
email: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const hashEmailConfirmed = 'emailConfirmed'
|
|
113
|
+
|
|
114
|
+
export function isEmailConfirmed<V>(v: V) {
|
|
115
|
+
return is$typed(v, id, hashEmailConfirmed)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function validateEmailConfirmed<V>(v: V) {
|
|
119
|
+
return validate<EmailConfirmed & V>(v, id, hashEmailConfirmed)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface PasswordUpdated {
|
|
123
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#passwordUpdated'
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const hashPasswordUpdated = 'passwordUpdated'
|
|
127
|
+
|
|
128
|
+
export function isPasswordUpdated<V>(v: V) {
|
|
129
|
+
return is$typed(v, id, hashPasswordUpdated)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function validatePasswordUpdated<V>(v: V) {
|
|
133
|
+
return validate<PasswordUpdated & V>(v, id, hashPasswordUpdated)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface HandleUpdated {
|
|
137
|
+
$type?: 'tools.ozone.hosting.getAccountHistory#handleUpdated'
|
|
138
|
+
handle: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const hashHandleUpdated = 'handleUpdated'
|
|
142
|
+
|
|
143
|
+
export function isHandleUpdated<V>(v: V) {
|
|
144
|
+
return is$typed(v, id, hashHandleUpdated)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function validateHandleUpdated<V>(v: V) {
|
|
148
|
+
return validate<HandleUpdated & V>(v, id, hashHandleUpdated)
|
|
149
|
+
}
|