@atproto/api 0.12.3 → 0.12.4

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +12 -3
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +61 -0
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +64 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +27 -0
  11. package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -0
  12. package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.js +14 -0
  13. package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.js.map +1 -0
  14. package/dist/client/types/com/atproto/server/createSession.d.ts +5 -0
  15. package/dist/client/types/com/atproto/server/createSession.d.ts.map +1 -1
  16. package/dist/client/types/com/atproto/server/createSession.js +9 -1
  17. package/dist/client/types/com/atproto/server/createSession.js.map +1 -1
  18. package/dist/client/types/com/atproto/server/getSession.d.ts +1 -0
  19. package/dist/client/types/com/atproto/server/getSession.d.ts.map +1 -1
  20. package/dist/client/types/com/atproto/server/getSession.js.map +1 -1
  21. package/dist/client/types/com/atproto/server/updateEmail.d.ts +1 -0
  22. package/dist/client/types/com/atproto/server/updateEmail.d.ts.map +1 -1
  23. package/dist/client/types/com/atproto/server/updateEmail.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/client/index.ts +18 -0
  26. package/src/client/lexicons.ts +67 -0
  27. package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +40 -0
  28. package/src/client/types/com/atproto/server/createSession.ts +10 -0
  29. package/src/client/types/com/atproto/server/getSession.ts +1 -0
  30. package/src/client/types/com/atproto/server/updateEmail.ts +1 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers } from '@atproto/xrpc';
5
+ import * as AppBskyUnspeccedDefs from './defs';
6
+ export interface QueryParams {
7
+ /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
8
+ viewer?: string;
9
+ limit?: number;
10
+ cursor?: string;
11
+ }
12
+ export type InputSchema = undefined;
13
+ export interface OutputSchema {
14
+ cursor?: string;
15
+ actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
16
+ [k: string]: unknown;
17
+ }
18
+ export interface CallOptions {
19
+ headers?: Headers;
20
+ }
21
+ export interface Response {
22
+ success: boolean;
23
+ headers: Headers;
24
+ data: OutputSchema;
25
+ }
26
+ export declare function toKnownErr(e: any): any;
27
+ //# sourceMappingURL=getSuggestionsSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSuggestionsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,EAAE,CAAA;IAClD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = void 0;
4
+ /**
5
+ * GENERATED CODE - DO NOT MODIFY
6
+ */
7
+ const xrpc_1 = require("@atproto/xrpc");
8
+ function toKnownErr(e) {
9
+ if (e instanceof xrpc_1.XRPCError) {
10
+ }
11
+ return e;
12
+ }
13
+ exports.toKnownErr = toKnownErr;
14
+ //# sourceMappingURL=getSuggestionsSkeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSuggestionsSkeleton.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AAgClD,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC"}
@@ -8,6 +8,7 @@ export interface InputSchema {
8
8
  /** Handle or other identifier supported by the server for the authenticating user. */
9
9
  identifier: string;
10
10
  password: string;
11
+ authFactorToken?: string;
11
12
  [k: string]: unknown;
12
13
  }
13
14
  export interface OutputSchema {
@@ -18,6 +19,7 @@ export interface OutputSchema {
18
19
  didDoc?: {};
19
20
  email?: string;
20
21
  emailConfirmed?: boolean;
22
+ emailAuthFactor?: boolean;
21
23
  [k: string]: unknown;
22
24
  }
23
25
  export interface CallOptions {
@@ -33,5 +35,8 @@ export interface Response {
33
35
  export declare class AccountTakedownError extends XRPCError {
34
36
  constructor(src: XRPCError);
35
37
  }
38
+ export declare class AuthFactorTokenRequiredError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
36
41
  export declare function toKnownErr(e: any): any;
37
42
  //# sourceMappingURL=createSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/createSession.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,EAAE,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,oBAAqB,SAAQ,SAAS;gBACrC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAKhC"}
1
+ {"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/createSession.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,EAAE,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,oBAAqB,SAAQ,SAAS;gBACrC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,4BAA6B,SAAQ,SAAS;gBAC7C,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toKnownErr = exports.AccountTakedownError = void 0;
3
+ exports.toKnownErr = exports.AuthFactorTokenRequiredError = exports.AccountTakedownError = void 0;
4
4
  /**
5
5
  * GENERATED CODE - DO NOT MODIFY
6
6
  */
@@ -11,10 +11,18 @@ class AccountTakedownError extends xrpc_1.XRPCError {
11
11
  }
12
12
  }
13
13
  exports.AccountTakedownError = AccountTakedownError;
14
+ class AuthFactorTokenRequiredError extends xrpc_1.XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers);
17
+ }
18
+ }
19
+ exports.AuthFactorTokenRequiredError = AuthFactorTokenRequiredError;
14
20
  function toKnownErr(e) {
15
21
  if (e instanceof xrpc_1.XRPCError) {
16
22
  if (e.error === 'AccountTakedown')
17
23
  return new AccountTakedownError(e);
24
+ if (e.error === 'AuthFactorTokenRequired')
25
+ return new AuthFactorTokenRequiredError(e);
18
26
  }
19
27
  return e;
20
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createSession.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/createSession.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AAsClD,MAAa,oBAAqB,SAAQ,gBAAS;IACjD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,oDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;IACvE,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AALD,gCAKC"}
1
+ {"version":3,"file":"createSession.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/createSession.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AAwClD,MAAa,oBAAqB,SAAQ,gBAAS;IACjD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,oDAIC;AAED,MAAa,4BAA6B,SAAQ,gBAAS;IACzD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,oEAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,CAAC,KAAK,KAAK,yBAAyB;YACvC,OAAO,IAAI,4BAA4B,CAAC,CAAC,CAAC,CAAA;IAC9C,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAPD,gCAOC"}
@@ -10,6 +10,7 @@ export interface OutputSchema {
10
10
  did: string;
11
11
  email?: string;
12
12
  emailConfirmed?: boolean;
13
+ emailAuthFactor?: boolean;
13
14
  didDoc?: {};
14
15
  [k: string]: unknown;
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getSession.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getSession.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,EAAE,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
1
+ {"version":3,"file":"getSession.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getSession.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,EAAE,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSession.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getSession.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA6BlD,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC"}
1
+ {"version":3,"file":"getSession.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getSession.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA8BlD,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC"}
@@ -6,6 +6,7 @@ export interface QueryParams {
6
6
  }
7
7
  export interface InputSchema {
8
8
  email: string;
9
+ emailAuthFactor?: boolean;
9
10
  /** Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. */
10
11
  token?: string;
11
12
  [k: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"updateEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/updateEmail.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,4GAA4G;IAC5G,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
1
+ {"version":3,"file":"updateEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/updateEmail.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAMlD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateEmail.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/updateEmail.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA0BlD,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,8CAIC;AAED,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,8CAIC;AAED,MAAa,kBAAmB,SAAQ,gBAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,gDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAPD,gCAOC"}
1
+ {"version":3,"file":"updateEmail.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/updateEmail.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA2BlD,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,8CAIC;AAED,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,8CAIC;AAED,MAAa,kBAAmB,SAAQ,gBAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;CACF;AAJD,gDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAPD,gCAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -150,6 +150,7 @@ import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
150
150
  import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
151
151
  import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
152
152
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
153
+ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton'
153
154
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
154
155
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
155
156
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
@@ -310,6 +311,7 @@ export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
310
311
  export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
311
312
  export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
312
313
  export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
314
+ export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton'
313
315
  export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
314
316
  export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
315
317
  export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
@@ -2635,6 +2637,22 @@ export class AppBskyUnspeccedNS {
2635
2637
  })
2636
2638
  }
2637
2639
 
2640
+ getSuggestionsSkeleton(
2641
+ params?: AppBskyUnspeccedGetSuggestionsSkeleton.QueryParams,
2642
+ opts?: AppBskyUnspeccedGetSuggestionsSkeleton.CallOptions,
2643
+ ): Promise<AppBskyUnspeccedGetSuggestionsSkeleton.Response> {
2644
+ return this._service.xrpc
2645
+ .call(
2646
+ 'app.bsky.unspecced.getSuggestionsSkeleton',
2647
+ params,
2648
+ undefined,
2649
+ opts,
2650
+ )
2651
+ .catch((e) => {
2652
+ throw AppBskyUnspeccedGetSuggestionsSkeleton.toKnownErr(e)
2653
+ })
2654
+ }
2655
+
2638
2656
  getTaggedSuggestions(
2639
2657
  params?: AppBskyUnspeccedGetTaggedSuggestions.QueryParams,
2640
2658
  opts?: AppBskyUnspeccedGetTaggedSuggestions.CallOptions,
@@ -2209,6 +2209,9 @@ export const schemaDict = {
2209
2209
  password: {
2210
2210
  type: 'string',
2211
2211
  },
2212
+ authFactorToken: {
2213
+ type: 'string',
2214
+ },
2212
2215
  },
2213
2216
  },
2214
2217
  },
@@ -2241,6 +2244,9 @@ export const schemaDict = {
2241
2244
  emailConfirmed: {
2242
2245
  type: 'boolean',
2243
2246
  },
2247
+ emailAuthFactor: {
2248
+ type: 'boolean',
2249
+ },
2244
2250
  },
2245
2251
  },
2246
2252
  },
@@ -2248,6 +2254,9 @@ export const schemaDict = {
2248
2254
  {
2249
2255
  name: 'AccountTakedown',
2250
2256
  },
2257
+ {
2258
+ name: 'AuthFactorTokenRequired',
2259
+ },
2251
2260
  ],
2252
2261
  },
2253
2262
  },
@@ -2568,6 +2577,9 @@ export const schemaDict = {
2568
2577
  emailConfirmed: {
2569
2578
  type: 'boolean',
2570
2579
  },
2580
+ emailAuthFactor: {
2581
+ type: 'boolean',
2582
+ },
2571
2583
  didDoc: {
2572
2584
  type: 'unknown',
2573
2585
  },
@@ -2837,6 +2849,9 @@ export const schemaDict = {
2837
2849
  email: {
2838
2850
  type: 'string',
2839
2851
  },
2852
+ emailAuthFactor: {
2853
+ type: 'boolean',
2854
+ },
2840
2855
  token: {
2841
2856
  type: 'string',
2842
2857
  description:
@@ -7843,6 +7858,56 @@ export const schemaDict = {
7843
7858
  },
7844
7859
  },
7845
7860
  },
7861
+ AppBskyUnspeccedGetSuggestionsSkeleton: {
7862
+ lexicon: 1,
7863
+ id: 'app.bsky.unspecced.getSuggestionsSkeleton',
7864
+ defs: {
7865
+ main: {
7866
+ type: 'query',
7867
+ description:
7868
+ 'Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions',
7869
+ parameters: {
7870
+ type: 'params',
7871
+ properties: {
7872
+ viewer: {
7873
+ type: 'string',
7874
+ format: 'did',
7875
+ description:
7876
+ 'DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.',
7877
+ },
7878
+ limit: {
7879
+ type: 'integer',
7880
+ minimum: 1,
7881
+ maximum: 100,
7882
+ default: 50,
7883
+ },
7884
+ cursor: {
7885
+ type: 'string',
7886
+ },
7887
+ },
7888
+ },
7889
+ output: {
7890
+ encoding: 'application/json',
7891
+ schema: {
7892
+ type: 'object',
7893
+ required: ['actors'],
7894
+ properties: {
7895
+ cursor: {
7896
+ type: 'string',
7897
+ },
7898
+ actors: {
7899
+ type: 'array',
7900
+ items: {
7901
+ type: 'ref',
7902
+ ref: 'lex:app.bsky.unspecced.defs#skeletonSearchActor',
7903
+ },
7904
+ },
7905
+ },
7906
+ },
7907
+ },
7908
+ },
7909
+ },
7910
+ },
7846
7911
  AppBskyUnspeccedGetTaggedSuggestions: {
7847
7912
  lexicon: 1,
7848
7913
  id: 'app.bsky.unspecced.getTaggedSuggestions',
@@ -9621,6 +9686,8 @@ export const ids = {
9621
9686
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
9622
9687
  AppBskyUnspeccedGetPopularFeedGenerators:
9623
9688
  'app.bsky.unspecced.getPopularFeedGenerators',
9689
+ AppBskyUnspeccedGetSuggestionsSkeleton:
9690
+ 'app.bsky.unspecced.getSuggestionsSkeleton',
9624
9691
  AppBskyUnspeccedGetTaggedSuggestions:
9625
9692
  'app.bsky.unspecced.getTaggedSuggestions',
9626
9693
  AppBskyUnspeccedSearchActorsSkeleton:
@@ -0,0 +1,40 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as AppBskyUnspeccedDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
13
+ viewer?: string
14
+ limit?: number
15
+ cursor?: string
16
+ }
17
+
18
+ export type InputSchema = undefined
19
+
20
+ export interface OutputSchema {
21
+ cursor?: string
22
+ actors: AppBskyUnspeccedDefs.SkeletonSearchActor[]
23
+ [k: string]: unknown
24
+ }
25
+
26
+ export interface CallOptions {
27
+ headers?: Headers
28
+ }
29
+
30
+ export interface Response {
31
+ success: boolean
32
+ headers: Headers
33
+ data: OutputSchema
34
+ }
35
+
36
+ export function toKnownErr(e: any) {
37
+ if (e instanceof XRPCError) {
38
+ }
39
+ return e
40
+ }
@@ -13,6 +13,7 @@ export interface InputSchema {
13
13
  /** Handle or other identifier supported by the server for the authenticating user. */
14
14
  identifier: string
15
15
  password: string
16
+ authFactorToken?: string
16
17
  [k: string]: unknown
17
18
  }
18
19
 
@@ -24,6 +25,7 @@ export interface OutputSchema {
24
25
  didDoc?: {}
25
26
  email?: string
26
27
  emailConfirmed?: boolean
28
+ emailAuthFactor?: boolean
27
29
  [k: string]: unknown
28
30
  }
29
31
 
@@ -45,9 +47,17 @@ export class AccountTakedownError extends XRPCError {
45
47
  }
46
48
  }
47
49
 
50
+ export class AuthFactorTokenRequiredError extends XRPCError {
51
+ constructor(src: XRPCError) {
52
+ super(src.status, src.error, src.message, src.headers)
53
+ }
54
+ }
55
+
48
56
  export function toKnownErr(e: any) {
49
57
  if (e instanceof XRPCError) {
50
58
  if (e.error === 'AccountTakedown') return new AccountTakedownError(e)
59
+ if (e.error === 'AuthFactorTokenRequired')
60
+ return new AuthFactorTokenRequiredError(e)
51
61
  }
52
62
  return e
53
63
  }
@@ -16,6 +16,7 @@ export interface OutputSchema {
16
16
  did: string
17
17
  email?: string
18
18
  emailConfirmed?: boolean
19
+ emailAuthFactor?: boolean
19
20
  didDoc?: {}
20
21
  [k: string]: unknown
21
22
  }
@@ -11,6 +11,7 @@ export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
13
  email: string
14
+ emailAuthFactor?: boolean
14
15
  /** Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. */
15
16
  token?: string
16
17
  [k: string]: unknown