@atproto/api 0.9.0 → 0.9.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2062](https://github.com/bluesky-social/atproto/pull/2062) [`c6fc73ae`](https://github.com/bluesky-social/atproto/commit/c6fc73aee6c245d12f876abd11889b8dbd0ce2ed) Thanks [@dholms](https://github.com/dholms)! - Directly pass create account params in api agent
8
+
3
9
  ## 0.9.0
4
10
 
5
11
  ### Minor Changes
package/dist/agent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AtpServiceClient, ComAtprotoServerCreateAccount, ComAtprotoServerCreateSession, ComAtprotoServerGetSession } from './client';
2
- import { AtpSessionData, AtpAgentCreateAccountOpts, AtpAgentLoginOpts, AtpAgentFetchHandler, AtpAgentGlobalOpts, AtpPersistSessionHandler, AtpAgentOpts } from './types';
2
+ import { AtpSessionData, AtpAgentLoginOpts, AtpAgentFetchHandler, AtpAgentGlobalOpts, AtpPersistSessionHandler, AtpAgentOpts } from './types';
3
3
  export declare class AtpAgent {
4
4
  service: URL;
5
5
  api: AtpServiceClient;
@@ -14,7 +14,7 @@ export declare class AtpAgent {
14
14
  constructor(opts: AtpAgentOpts);
15
15
  get hasSession(): boolean;
16
16
  setPersistSessionHandler(handler?: AtpPersistSessionHandler): void;
17
- createAccount(opts: AtpAgentCreateAccountOpts): Promise<ComAtprotoServerCreateAccount.Response>;
17
+ createAccount(opts: ComAtprotoServerCreateAccount.InputSchema): Promise<ComAtprotoServerCreateAccount.Response>;
18
18
  login(opts: AtpAgentLoginOpts): Promise<ComAtprotoServerCreateSession.Response>;
19
19
  resumeSession(session: AtpSessionData): Promise<ComAtprotoServerGetSession.Response>;
20
20
  private _addAuthHeader;
package/dist/index.js CHANGED
@@ -27350,12 +27350,7 @@ var _AtpAgent = class {
27350
27350
  }
27351
27351
  async createAccount(opts) {
27352
27352
  try {
27353
- const res = await this.api.com.atproto.server.createAccount({
27354
- handle: opts.handle,
27355
- password: opts.password,
27356
- email: opts.email,
27357
- inviteCode: opts.inviteCode
27358
- });
27353
+ const res = await this.api.com.atproto.server.createAccount(opts);
27359
27354
  this.session = {
27360
27355
  accessJwt: res.data.accessJwt,
27361
27356
  refreshJwt: res.data.refreshJwt,