@atproto/api 0.9.4 → 0.9.5
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/agent.d.ts +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +29 -0
- package/dist/client/types/com/atproto/temp/checkSignupQueue.d.ts +19 -0
- package/dist/index.js +200 -155
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/agent.ts +2 -2
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +29 -0
- package/src/client/types/com/atproto/temp/checkSignupQueue.ts +35 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2090](https://github.com/bluesky-social/atproto/pull/2090) [`8994d363`](https://github.com/bluesky-social/atproto/commit/8994d3633adad1c02569d6d44ae896e18195e8e2) Thanks [@dholms](https://github.com/dholms)! - add checkSignupQueue method and expose refreshSession on agent
|
|
8
|
+
|
|
3
9
|
## 0.9.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/agent.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class AtpAgent {
|
|
|
19
19
|
resumeSession(session: AtpSessionData): Promise<ComAtprotoServerGetSession.Response>;
|
|
20
20
|
private _addAuthHeader;
|
|
21
21
|
private _fetch;
|
|
22
|
-
|
|
22
|
+
refreshSession(): Promise<void>;
|
|
23
23
|
private _refreshSessionInner;
|
|
24
24
|
uploadBlob: typeof this.api.com.atproto.repo.uploadBlob;
|
|
25
25
|
resolveHandle: typeof this.api.com.atproto.identity.resolveHandle;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs';
|
|
|
66
66
|
import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
|
|
67
67
|
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
68
68
|
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
69
|
+
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue';
|
|
69
70
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
|
|
70
71
|
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
|
|
71
72
|
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
|
|
@@ -202,6 +203,7 @@ export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
|
|
|
202
203
|
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
203
204
|
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
204
205
|
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
|
|
206
|
+
export * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue';
|
|
205
207
|
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
|
|
206
208
|
export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
|
|
207
209
|
export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
|
|
@@ -419,6 +421,7 @@ export declare class ComAtprotoSyncNS {
|
|
|
419
421
|
export declare class ComAtprotoTempNS {
|
|
420
422
|
_service: AtpServiceClient;
|
|
421
423
|
constructor(service: AtpServiceClient);
|
|
424
|
+
checkSignupQueue(params?: ComAtprotoTempCheckSignupQueue.QueryParams, opts?: ComAtprotoTempCheckSignupQueue.CallOptions): Promise<ComAtprotoTempCheckSignupQueue.Response>;
|
|
422
425
|
fetchLabels(params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions): Promise<ComAtprotoTempFetchLabels.Response>;
|
|
423
426
|
importRepo(data?: ComAtprotoTempImportRepo.InputSchema, opts?: ComAtprotoTempImportRepo.CallOptions): Promise<ComAtprotoTempImportRepo.Response>;
|
|
424
427
|
pushBlob(data?: ComAtprotoTempPushBlob.InputSchema, opts?: ComAtprotoTempPushBlob.CallOptions): Promise<ComAtprotoTempPushBlob.Response>;
|
|
@@ -3906,6 +3906,34 @@ export declare const schemaDict: {
|
|
|
3906
3906
|
};
|
|
3907
3907
|
};
|
|
3908
3908
|
};
|
|
3909
|
+
ComAtprotoTempCheckSignupQueue: {
|
|
3910
|
+
lexicon: number;
|
|
3911
|
+
id: string;
|
|
3912
|
+
defs: {
|
|
3913
|
+
main: {
|
|
3914
|
+
type: string;
|
|
3915
|
+
description: string;
|
|
3916
|
+
output: {
|
|
3917
|
+
encoding: string;
|
|
3918
|
+
schema: {
|
|
3919
|
+
type: string;
|
|
3920
|
+
required: string[];
|
|
3921
|
+
properties: {
|
|
3922
|
+
activated: {
|
|
3923
|
+
type: string;
|
|
3924
|
+
};
|
|
3925
|
+
placeInQueue: {
|
|
3926
|
+
type: string;
|
|
3927
|
+
};
|
|
3928
|
+
estimatedTimeMs: {
|
|
3929
|
+
type: string;
|
|
3930
|
+
};
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3936
|
+
};
|
|
3909
3937
|
ComAtprotoTempFetchLabels: {
|
|
3910
3938
|
lexicon: number;
|
|
3911
3939
|
id: string;
|
|
@@ -7814,6 +7842,7 @@ export declare const ids: {
|
|
|
7814
7842
|
ComAtprotoSyncNotifyOfUpdate: string;
|
|
7815
7843
|
ComAtprotoSyncRequestCrawl: string;
|
|
7816
7844
|
ComAtprotoSyncSubscribeRepos: string;
|
|
7845
|
+
ComAtprotoTempCheckSignupQueue: string;
|
|
7817
7846
|
ComAtprotoTempFetchLabels: string;
|
|
7818
7847
|
ComAtprotoTempImportRepo: string;
|
|
7819
7848
|
ComAtprotoTempPushBlob: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
activated: boolean;
|
|
7
|
+
placeInQueue?: number;
|
|
8
|
+
estimatedTimeMs?: number;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|