@atproto/api 0.10.0 → 0.10.1
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 +3 -0
- package/dist/client/lexicons.d.ts +27 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/updateAccountPassword.d.ts +18 -0
- package/dist/index.js +358 -313
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +31 -0
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/com/atproto/admin/updateAccountPassword.ts +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2215](https://github.com/bluesky-social/atproto/pull/2215) [`514aab92d`](https://github.com/bluesky-social/atproto/commit/514aab92d26acd43859285f46318e386846522b1) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Add missing `getPreferences` union return types
|
|
8
|
+
|
|
3
9
|
## 0.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/client/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
20
20
|
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
21
21
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
22
22
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
23
|
+
import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword';
|
|
23
24
|
import * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate';
|
|
24
25
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
|
|
25
26
|
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials';
|
|
@@ -157,6 +158,7 @@ export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
157
158
|
export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
|
|
158
159
|
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
|
|
159
160
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
|
|
161
|
+
export * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword';
|
|
160
162
|
export * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate';
|
|
161
163
|
export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
|
|
162
164
|
export * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials';
|
|
@@ -359,6 +361,7 @@ export declare class ComAtprotoAdminNS {
|
|
|
359
361
|
sendEmail(data?: ComAtprotoAdminSendEmail.InputSchema, opts?: ComAtprotoAdminSendEmail.CallOptions): Promise<ComAtprotoAdminSendEmail.Response>;
|
|
360
362
|
updateAccountEmail(data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions): Promise<ComAtprotoAdminUpdateAccountEmail.Response>;
|
|
361
363
|
updateAccountHandle(data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions): Promise<ComAtprotoAdminUpdateAccountHandle.Response>;
|
|
364
|
+
updateAccountPassword(data?: ComAtprotoAdminUpdateAccountPassword.InputSchema, opts?: ComAtprotoAdminUpdateAccountPassword.CallOptions): Promise<ComAtprotoAdminUpdateAccountPassword.Response>;
|
|
362
365
|
updateCommunicationTemplate(data?: ComAtprotoAdminUpdateCommunicationTemplate.InputSchema, opts?: ComAtprotoAdminUpdateCommunicationTemplate.CallOptions): Promise<ComAtprotoAdminUpdateCommunicationTemplate.Response>;
|
|
363
366
|
updateSubjectStatus(data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema, opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions): Promise<ComAtprotoAdminUpdateSubjectStatus.Response>;
|
|
364
367
|
}
|
|
@@ -1695,6 +1695,32 @@ export declare const schemaDict: {
|
|
|
1695
1695
|
};
|
|
1696
1696
|
};
|
|
1697
1697
|
};
|
|
1698
|
+
ComAtprotoAdminUpdateAccountPassword: {
|
|
1699
|
+
lexicon: number;
|
|
1700
|
+
id: string;
|
|
1701
|
+
defs: {
|
|
1702
|
+
main: {
|
|
1703
|
+
type: string;
|
|
1704
|
+
description: string;
|
|
1705
|
+
input: {
|
|
1706
|
+
encoding: string;
|
|
1707
|
+
schema: {
|
|
1708
|
+
type: string;
|
|
1709
|
+
required: string[];
|
|
1710
|
+
properties: {
|
|
1711
|
+
did: {
|
|
1712
|
+
type: string;
|
|
1713
|
+
format: string;
|
|
1714
|
+
};
|
|
1715
|
+
password: {
|
|
1716
|
+
type: string;
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
};
|
|
1698
1724
|
ComAtprotoAdminUpdateCommunicationTemplate: {
|
|
1699
1725
|
lexicon: number;
|
|
1700
1726
|
id: string;
|
|
@@ -8205,6 +8231,7 @@ export declare const ids: {
|
|
|
8205
8231
|
ComAtprotoAdminSendEmail: string;
|
|
8206
8232
|
ComAtprotoAdminUpdateAccountEmail: string;
|
|
8207
8233
|
ComAtprotoAdminUpdateAccountHandle: string;
|
|
8234
|
+
ComAtprotoAdminUpdateAccountPassword: string;
|
|
8208
8235
|
ComAtprotoAdminUpdateCommunicationTemplate: string;
|
|
8209
8236
|
ComAtprotoAdminUpdateSubjectStatus: string;
|
|
8210
8237
|
ComAtprotoIdentityGetRecommendedDidCredentials: string;
|
|
@@ -54,7 +54,7 @@ export interface ViewerState {
|
|
|
54
54
|
}
|
|
55
55
|
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
56
56
|
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
57
|
-
export type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | PersonalDetailsPref | FeedViewPref | ThreadViewPref | InterestsPref | {
|
|
57
|
+
export type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | PersonalDetailsPref | FeedViewPref | ThreadViewPref | InterestsPref | MutedWordsPref | HiddenPostsPref | {
|
|
58
58
|
$type: string;
|
|
59
59
|
[k: string]: unknown;
|
|
60
60
|
})[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
did: string;
|
|
6
|
+
password: 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 function toKnownErr(e: any): any;
|