@atproto/api 0.3.9 → 0.3.10
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 +37 -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 +346 -261
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +47 -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>;
|
|
@@ -784,6 +784,10 @@ export declare const schemaDict: {
|
|
|
784
784
|
cursor: {
|
|
785
785
|
type: string;
|
|
786
786
|
};
|
|
787
|
+
reverse: {
|
|
788
|
+
type: string;
|
|
789
|
+
description: string;
|
|
790
|
+
};
|
|
787
791
|
};
|
|
788
792
|
};
|
|
789
793
|
output: {
|
|
@@ -872,6 +876,38 @@ export declare const schemaDict: {
|
|
|
872
876
|
};
|
|
873
877
|
};
|
|
874
878
|
};
|
|
879
|
+
ComAtprotoAdminRebaseRepo: {
|
|
880
|
+
lexicon: number;
|
|
881
|
+
id: string;
|
|
882
|
+
defs: {
|
|
883
|
+
main: {
|
|
884
|
+
type: string;
|
|
885
|
+
description: string;
|
|
886
|
+
input: {
|
|
887
|
+
encoding: string;
|
|
888
|
+
schema: {
|
|
889
|
+
type: string;
|
|
890
|
+
required: string[];
|
|
891
|
+
properties: {
|
|
892
|
+
repo: {
|
|
893
|
+
type: string;
|
|
894
|
+
format: string;
|
|
895
|
+
description: string;
|
|
896
|
+
};
|
|
897
|
+
swapCommit: {
|
|
898
|
+
type: string;
|
|
899
|
+
format: string;
|
|
900
|
+
description: string;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
errors: {
|
|
906
|
+
name: string;
|
|
907
|
+
}[];
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
875
911
|
ComAtprotoAdminResolveModerationReports: {
|
|
876
912
|
lexicon: number;
|
|
877
913
|
id: string;
|
|
@@ -5896,6 +5932,7 @@ export declare const ids: {
|
|
|
5896
5932
|
ComAtprotoAdminGetModerationReports: string;
|
|
5897
5933
|
ComAtprotoAdminGetRecord: string;
|
|
5898
5934
|
ComAtprotoAdminGetRepo: string;
|
|
5935
|
+
ComAtprotoAdminRebaseRepo: string;
|
|
5899
5936
|
ComAtprotoAdminResolveModerationReports: string;
|
|
5900
5937
|
ComAtprotoAdminReverseModerationAction: string;
|
|
5901
5938
|
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;
|