@atproto/api 0.2.0 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "codegen": "lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -1883,6 +1883,9 @@ export const schemaDict = {
1883
1883
  type: 'string',
1884
1884
  format: 'did',
1885
1885
  },
1886
+ email: {
1887
+ type: 'string',
1888
+ },
1886
1889
  },
1887
1890
  },
1888
1891
  },
@@ -14,6 +14,7 @@ export type InputSchema = undefined
14
14
  export interface OutputSchema {
15
15
  handle: string
16
16
  did: string
17
+ email?: string
17
18
  [k: string]: unknown
18
19
  }
19
20
 
@@ -54,6 +54,7 @@ describe('agent', () => {
54
54
  expect(sessionInfo).toEqual({
55
55
  did: res.data.did,
56
56
  handle: res.data.handle,
57
+ email: 'user1@test.com',
57
58
  })
58
59
 
59
60
  expect(events.length).toEqual(1)
@@ -72,9 +73,10 @@ describe('agent', () => {
72
73
 
73
74
  const agent1 = new AtpAgent({ service: server.url, persistSession })
74
75
 
76
+ const email = 'user2@test.com'
75
77
  await agent1.createAccount({
76
78
  handle: 'user2.test',
77
- email: 'user2@test.com',
79
+ email,
78
80
  password: 'password',
79
81
  })
80
82
 
@@ -95,6 +97,7 @@ describe('agent', () => {
95
97
  expect(sessionInfo).toEqual({
96
98
  did: res1.data.did,
97
99
  handle: res1.data.handle,
100
+ email,
98
101
  })
99
102
 
100
103
  expect(events.length).toEqual(2)
@@ -136,6 +139,7 @@ describe('agent', () => {
136
139
  expect(sessionInfo).toEqual({
137
140
  did: res1.data.did,
138
141
  handle: res1.data.handle,
142
+ email: res1.data.email,
139
143
  })
140
144
 
141
145
  expect(events.length).toEqual(2)