@atproto/api 0.3.9 → 0.3.11
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 +40 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +24 -0
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +3 -0
- package/dist/index.js +366 -276
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +53 -0
- package/src/client/types/com/atproto/admin/defs.ts +1 -0
- package/src/client/types/com/atproto/admin/getModerationReports.ts +2 -0
- package/src/client/types/com/atproto/admin/rebaseRepo.ts +49 -0
- package/src/client/types/com/atproto/repo/rebaseRepo.ts +7 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
|
|
|
9
9
|
import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
|
|
10
10
|
import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
|
|
11
11
|
import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
|
|
12
|
+
import * as ComAtprotoAdminRebaseRepo from './types/com/atproto/admin/rebaseRepo';
|
|
12
13
|
import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
|
|
13
14
|
import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
14
15
|
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
@@ -110,6 +111,7 @@ export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
|
|
|
110
111
|
export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
|
|
111
112
|
export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
|
|
112
113
|
export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
|
|
114
|
+
export * as ComAtprotoAdminRebaseRepo from './types/com/atproto/admin/rebaseRepo';
|
|
113
115
|
export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
|
|
114
116
|
export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
|
|
115
117
|
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
|
|
@@ -273,6 +275,7 @@ export declare class AdminNS {
|
|
|
273
275
|
getModerationReports(params?: ComAtprotoAdminGetModerationReports.QueryParams, opts?: ComAtprotoAdminGetModerationReports.CallOptions): Promise<ComAtprotoAdminGetModerationReports.Response>;
|
|
274
276
|
getRecord(params?: ComAtprotoAdminGetRecord.QueryParams, opts?: ComAtprotoAdminGetRecord.CallOptions): Promise<ComAtprotoAdminGetRecord.Response>;
|
|
275
277
|
getRepo(params?: ComAtprotoAdminGetRepo.QueryParams, opts?: ComAtprotoAdminGetRepo.CallOptions): Promise<ComAtprotoAdminGetRepo.Response>;
|
|
278
|
+
rebaseRepo(data?: ComAtprotoAdminRebaseRepo.InputSchema, opts?: ComAtprotoAdminRebaseRepo.CallOptions): Promise<ComAtprotoAdminRebaseRepo.Response>;
|
|
276
279
|
resolveModerationReports(data?: ComAtprotoAdminResolveModerationReports.InputSchema, opts?: ComAtprotoAdminResolveModerationReports.CallOptions): Promise<ComAtprotoAdminResolveModerationReports.Response>;
|
|
277
280
|
reverseModerationAction(data?: ComAtprotoAdminReverseModerationAction.InputSchema, opts?: ComAtprotoAdminReverseModerationAction.CallOptions): Promise<ComAtprotoAdminReverseModerationAction.Response>;
|
|
278
281
|
searchRepos(params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions): Promise<ComAtprotoAdminSearchRepos.Response>;
|
|
@@ -182,6 +182,9 @@ export declare const schemaDict: {
|
|
|
182
182
|
reason: {
|
|
183
183
|
type: string;
|
|
184
184
|
};
|
|
185
|
+
subjectRepoHandle: {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
185
188
|
subject: {
|
|
186
189
|
type: string;
|
|
187
190
|
refs: string[];
|
|
@@ -784,6 +787,10 @@ export declare const schemaDict: {
|
|
|
784
787
|
cursor: {
|
|
785
788
|
type: string;
|
|
786
789
|
};
|
|
790
|
+
reverse: {
|
|
791
|
+
type: string;
|
|
792
|
+
description: string;
|
|
793
|
+
};
|
|
787
794
|
};
|
|
788
795
|
};
|
|
789
796
|
output: {
|
|
@@ -872,6 +879,38 @@ export declare const schemaDict: {
|
|
|
872
879
|
};
|
|
873
880
|
};
|
|
874
881
|
};
|
|
882
|
+
ComAtprotoAdminRebaseRepo: {
|
|
883
|
+
lexicon: number;
|
|
884
|
+
id: string;
|
|
885
|
+
defs: {
|
|
886
|
+
main: {
|
|
887
|
+
type: string;
|
|
888
|
+
description: string;
|
|
889
|
+
input: {
|
|
890
|
+
encoding: string;
|
|
891
|
+
schema: {
|
|
892
|
+
type: string;
|
|
893
|
+
required: string[];
|
|
894
|
+
properties: {
|
|
895
|
+
repo: {
|
|
896
|
+
type: string;
|
|
897
|
+
format: string;
|
|
898
|
+
description: string;
|
|
899
|
+
};
|
|
900
|
+
swapCommit: {
|
|
901
|
+
type: string;
|
|
902
|
+
format: string;
|
|
903
|
+
description: string;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
errors: {
|
|
909
|
+
name: string;
|
|
910
|
+
}[];
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
};
|
|
875
914
|
ComAtprotoAdminResolveModerationReports: {
|
|
876
915
|
lexicon: number;
|
|
877
916
|
id: string;
|
|
@@ -5896,6 +5935,7 @@ export declare const ids: {
|
|
|
5896
5935
|
ComAtprotoAdminGetModerationReports: string;
|
|
5897
5936
|
ComAtprotoAdminGetRecord: string;
|
|
5898
5937
|
ComAtprotoAdminGetRepo: string;
|
|
5938
|
+
ComAtprotoAdminRebaseRepo: string;
|
|
5899
5939
|
ComAtprotoAdminResolveModerationReports: string;
|
|
5900
5940
|
ComAtprotoAdminReverseModerationAction: string;
|
|
5901
5941
|
ComAtprotoAdminSearchRepos: string;
|
|
@@ -7,6 +7,7 @@ export interface QueryParams {
|
|
|
7
7
|
actionType?: 'com.atproto.admin.defs#takedown' | 'com.atproto.admin.defs#flag' | 'com.atproto.admin.defs#acknowledge' | 'com.atproto.admin.defs#escalate' | (string & {});
|
|
8
8
|
limit?: number;
|
|
9
9
|
cursor?: string;
|
|
10
|
+
reverse?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare type InputSchema = undefined;
|
|
12
13
|
export interface OutputSchema {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
repo: string;
|
|
6
|
+
swapCommit?: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare class InvalidSwapError extends XRPCError {
|
|
19
|
+
constructor(src: XRPCError);
|
|
20
|
+
}
|
|
21
|
+
export declare class ConcurrentWritesError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -18,4 +18,7 @@ export interface Response {
|
|
|
18
18
|
export declare class InvalidSwapError extends XRPCError {
|
|
19
19
|
constructor(src: XRPCError);
|
|
20
20
|
}
|
|
21
|
+
export declare class ConcurrentWritesError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
21
24
|
export declare function toKnownErr(e: any): any;
|