@atproto/lex-password-session 0.1.0 → 0.1.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 +10 -0
- package/dist/error.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/createAccount.d.ts +0 -1
- package/dist/lexicons/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/createAccount.defs.d.ts +16 -13
- package/dist/lexicons/com/atproto/server/createAccount.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/createAccount.defs.js +8 -10
- package/dist/lexicons/com/atproto/server/createAccount.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/server/createAccount.js +0 -1
- package/dist/lexicons/com/atproto/server/createAccount.js.map +1 -1
- package/dist/lexicons/com/atproto/server/createSession.d.ts +0 -1
- package/dist/lexicons/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/createSession.defs.d.ts +16 -13
- package/dist/lexicons/com/atproto/server/createSession.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/createSession.defs.js +11 -10
- package/dist/lexicons/com/atproto/server/createSession.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/server/createSession.js +0 -1
- package/dist/lexicons/com/atproto/server/createSession.js.map +1 -1
- package/dist/lexicons/com/atproto/server/deleteSession.d.ts +0 -1
- package/dist/lexicons/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/deleteSession.defs.d.ts +9 -6
- package/dist/lexicons/com/atproto/server/deleteSession.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/deleteSession.defs.js +8 -7
- package/dist/lexicons/com/atproto/server/deleteSession.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/server/deleteSession.js +0 -1
- package/dist/lexicons/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/lexicons/com/atproto/server/getSession.d.ts +0 -1
- package/dist/lexicons/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/getSession.defs.d.ts +11 -9
- package/dist/lexicons/com/atproto/server/getSession.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/getSession.defs.js +6 -8
- package/dist/lexicons/com/atproto/server/getSession.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/server/getSession.js +0 -1
- package/dist/lexicons/com/atproto/server/getSession.js.map +1 -1
- package/dist/lexicons/com/atproto/server/refreshSession.d.ts +0 -1
- package/dist/lexicons/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/refreshSession.defs.d.ts +14 -11
- package/dist/lexicons/com/atproto/server/refreshSession.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/server/refreshSession.defs.js +11 -9
- package/dist/lexicons/com/atproto/server/refreshSession.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/server/refreshSession.js +0 -1
- package/dist/lexicons/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/password-session.d.ts.map +1 -1
- package/dist/password-session.js.map +1 -1
- package/package.json +6 -6
- package/src/lexicons/com/atproto/server/createAccount.defs.ts +43 -48
- package/src/lexicons/com/atproto/server/createAccount.ts +0 -1
- package/src/lexicons/com/atproto/server/createSession.defs.ts +42 -44
- package/src/lexicons/com/atproto/server/createSession.ts +0 -1
- package/src/lexicons/com/atproto/server/deleteSession.defs.ts +22 -24
- package/src/lexicons/com/atproto/server/deleteSession.ts +0 -1
- package/src/lexicons/com/atproto/server/getSession.defs.ts +27 -29
- package/src/lexicons/com/atproto/server/getSession.ts +0 -1
- package/src/lexicons/com/atproto/server/refreshSession.defs.ts +38 -39
- package/src/lexicons/com/atproto/server/refreshSession.ts +0 -1
- package/tsconfig.build.json +2 -2
- package/tsconfig.json +2 -2
- package/tsconfig.tests.json +1 -2
|
@@ -8,36 +8,34 @@ const $nsid = 'com.atproto.server.getSession'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
),
|
|
30
|
-
}),
|
|
31
|
-
)
|
|
32
|
-
export { main }
|
|
11
|
+
export const $params = /*#__PURE__*/ l.params()
|
|
12
|
+
|
|
13
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
14
|
+
|
|
15
|
+
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
16
|
+
handle: /*#__PURE__*/ l.string({ format: 'handle' }),
|
|
17
|
+
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
18
|
+
didDoc: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
|
|
19
|
+
email: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
20
|
+
emailConfirmed: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
21
|
+
emailAuthFactor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
22
|
+
active: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
23
|
+
status: /*#__PURE__*/ l.optional(
|
|
24
|
+
/*#__PURE__*/ l.string<{
|
|
25
|
+
knownValues: ['takendown', 'suspended', 'deactivated']
|
|
26
|
+
}>(),
|
|
27
|
+
),
|
|
28
|
+
})
|
|
33
29
|
|
|
34
|
-
export type $
|
|
35
|
-
export type $
|
|
36
|
-
|
|
37
|
-
typeof main,
|
|
30
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
31
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
32
|
+
typeof $output,
|
|
38
33
|
B
|
|
39
34
|
>
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
/** Get information about the current auth session. Requires auth. */
|
|
37
|
+
const main = /*#__PURE__*/ l.query($nsid, $params, $output)
|
|
38
|
+
|
|
39
|
+
export { main }
|
|
40
|
+
|
|
41
|
+
export const $lxm = $nsid
|
|
@@ -8,46 +8,45 @@ const $nsid = 'com.atproto.server.refreshSession'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
const main =
|
|
13
|
-
/*#__PURE__*/
|
|
14
|
-
l.procedure(
|
|
15
|
-
$nsid,
|
|
16
|
-
/*#__PURE__*/ l.params(),
|
|
17
|
-
/*#__PURE__*/ l.payload(),
|
|
18
|
-
/*#__PURE__*/ l.jsonPayload({
|
|
19
|
-
accessJwt: /*#__PURE__*/ l.string(),
|
|
20
|
-
refreshJwt: /*#__PURE__*/ l.string(),
|
|
21
|
-
handle: /*#__PURE__*/ l.string({ format: 'handle' }),
|
|
22
|
-
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
23
|
-
didDoc: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
|
|
24
|
-
email: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
25
|
-
emailConfirmed: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
26
|
-
emailAuthFactor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
27
|
-
active: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
28
|
-
status: /*#__PURE__*/ l.optional(
|
|
29
|
-
/*#__PURE__*/ l.string<{
|
|
30
|
-
knownValues: ['takendown', 'suspended', 'deactivated']
|
|
31
|
-
}>(),
|
|
32
|
-
),
|
|
33
|
-
}),
|
|
34
|
-
['AccountTakedown', 'InvalidToken', 'ExpiredToken'],
|
|
35
|
-
)
|
|
36
|
-
export { main }
|
|
11
|
+
export const $params = /*#__PURE__*/ l.params()
|
|
37
12
|
|
|
38
|
-
export type $Params = l.
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
>
|
|
44
|
-
|
|
45
|
-
export
|
|
46
|
-
|
|
13
|
+
export type $Params = l.InferOutput<typeof $params>
|
|
14
|
+
|
|
15
|
+
export const $input = /*#__PURE__*/ l.payload()
|
|
16
|
+
|
|
17
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>
|
|
18
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>
|
|
19
|
+
|
|
20
|
+
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
21
|
+
accessJwt: /*#__PURE__*/ l.string(),
|
|
22
|
+
refreshJwt: /*#__PURE__*/ l.string(),
|
|
23
|
+
handle: /*#__PURE__*/ l.string({ format: 'handle' }),
|
|
24
|
+
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
25
|
+
didDoc: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),
|
|
26
|
+
email: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
27
|
+
emailConfirmed: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
28
|
+
emailAuthFactor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
29
|
+
active: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
30
|
+
status: /*#__PURE__*/ l.optional(
|
|
31
|
+
/*#__PURE__*/ l.string<{
|
|
32
|
+
knownValues: ['takendown', 'suspended', 'deactivated']
|
|
33
|
+
}>(),
|
|
34
|
+
),
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>
|
|
38
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<
|
|
39
|
+
typeof $output,
|
|
47
40
|
B
|
|
48
41
|
>
|
|
49
42
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
/** Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). */
|
|
44
|
+
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
45
|
+
'AccountTakedown',
|
|
46
|
+
'InvalidToken',
|
|
47
|
+
'ExpiredToken',
|
|
48
|
+
])
|
|
49
|
+
|
|
50
|
+
export { main }
|
|
51
|
+
|
|
52
|
+
export const $lxm = $nsid
|
package/tsconfig.build.json
CHANGED
package/tsconfig.json
CHANGED