@atproto/api 0.4.1 → 0.4.2
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/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +42 -0
- package/dist/client/types/com/atproto/admin/sendEmail.d.ts +24 -0
- package/dist/index.js +295 -237
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +42 -0
- package/src/client/types/com/atproto/admin/sendEmail.ts +40 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as ComAtprotoAdminRebaseRepo from './types/com/atproto/admin/rebaseRepo
|
|
|
13
13
|
import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
|
|
14
14
|
import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
15
15
|
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
16
|
+
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
16
17
|
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
17
18
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
18
19
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
@@ -116,6 +117,7 @@ export * as ComAtprotoAdminRebaseRepo from './types/com/atproto/admin/rebaseRepo
|
|
|
116
117
|
export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
|
|
117
118
|
export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
118
119
|
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
120
|
+
export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
119
121
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
|
|
120
122
|
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
121
123
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
@@ -281,6 +283,7 @@ export declare class AdminNS {
|
|
|
281
283
|
resolveModerationReports(data?: ComAtprotoAdminResolveModerationReports.InputSchema, opts?: ComAtprotoAdminResolveModerationReports.CallOptions): Promise<ComAtprotoAdminResolveModerationReports.Response>;
|
|
282
284
|
reverseModerationAction(data?: ComAtprotoAdminReverseModerationAction.InputSchema, opts?: ComAtprotoAdminReverseModerationAction.CallOptions): Promise<ComAtprotoAdminReverseModerationAction.Response>;
|
|
283
285
|
searchRepos(params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions): Promise<ComAtprotoAdminSearchRepos.Response>;
|
|
286
|
+
sendEmail(data?: ComAtprotoAdminSendEmail.InputSchema, opts?: ComAtprotoAdminSendEmail.CallOptions): Promise<ComAtprotoAdminSendEmail.Response>;
|
|
284
287
|
takeModerationAction(data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions): Promise<ComAtprotoAdminTakeModerationAction.Response>;
|
|
285
288
|
updateAccountEmail(data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions): Promise<ComAtprotoAdminUpdateAccountEmail.Response>;
|
|
286
289
|
updateAccountHandle(data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions): Promise<ComAtprotoAdminUpdateAccountHandle.Response>;
|
|
@@ -1047,6 +1047,47 @@ export declare const schemaDict: {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
|
+
ComAtprotoAdminSendEmail: {
|
|
1051
|
+
lexicon: number;
|
|
1052
|
+
id: string;
|
|
1053
|
+
defs: {
|
|
1054
|
+
main: {
|
|
1055
|
+
type: string;
|
|
1056
|
+
description: string;
|
|
1057
|
+
input: {
|
|
1058
|
+
encoding: string;
|
|
1059
|
+
schema: {
|
|
1060
|
+
type: string;
|
|
1061
|
+
required: string[];
|
|
1062
|
+
properties: {
|
|
1063
|
+
recipientDid: {
|
|
1064
|
+
type: string;
|
|
1065
|
+
format: string;
|
|
1066
|
+
};
|
|
1067
|
+
content: {
|
|
1068
|
+
type: string;
|
|
1069
|
+
};
|
|
1070
|
+
subject: {
|
|
1071
|
+
type: string;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
output: {
|
|
1077
|
+
encoding: string;
|
|
1078
|
+
schema: {
|
|
1079
|
+
type: string;
|
|
1080
|
+
required: string[];
|
|
1081
|
+
properties: {
|
|
1082
|
+
sent: {
|
|
1083
|
+
type: string;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1050
1091
|
ComAtprotoAdminTakeModerationAction: {
|
|
1051
1092
|
lexicon: number;
|
|
1052
1093
|
id: string;
|
|
@@ -6039,6 +6080,7 @@ export declare const ids: {
|
|
|
6039
6080
|
ComAtprotoAdminResolveModerationReports: string;
|
|
6040
6081
|
ComAtprotoAdminReverseModerationAction: string;
|
|
6041
6082
|
ComAtprotoAdminSearchRepos: string;
|
|
6083
|
+
ComAtprotoAdminSendEmail: string;
|
|
6042
6084
|
ComAtprotoAdminTakeModerationAction: string;
|
|
6043
6085
|
ComAtprotoAdminUpdateAccountEmail: string;
|
|
6044
6086
|
ComAtprotoAdminUpdateAccountHandle: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
recipientDid: string;
|
|
6
|
+
content: string;
|
|
7
|
+
subject?: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
sent: boolean;
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
qp?: QueryParams;
|
|
17
|
+
encoding: 'application/json';
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
data: OutputSchema;
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|