@aura-stack/auth 0.1.0-rc.7 → 0.1.0-rc.9
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/dist/@types/index.cjs +15 -15
- package/dist/@types/index.d.ts +31 -7
- package/dist/@types/index.js +1 -1
- package/dist/@types/router.d.cjs +1 -1
- package/dist/@types/router.d.d.ts +7 -7
- package/dist/@types/utility.cjs +15 -15
- package/dist/@types/utility.d.ts +6 -6
- package/dist/@types/utility.js +1 -1
- package/dist/actions/callback/access-token.cjs +143 -143
- package/dist/actions/callback/access-token.d.ts +20 -15
- package/dist/actions/callback/access-token.js +4 -8
- package/dist/actions/callback/callback.cjs +455 -437
- package/dist/actions/callback/callback.d.ts +12 -10
- package/dist/actions/callback/callback.js +12 -16
- package/dist/actions/callback/userinfo.cjs +134 -131
- package/dist/actions/callback/userinfo.d.ts +9 -9
- package/dist/actions/callback/userinfo.js +6 -10
- package/dist/actions/csrfToken/csrfToken.cjs +171 -162
- package/dist/actions/csrfToken/csrfToken.d.ts +3 -3
- package/dist/actions/csrfToken/csrfToken.js +8 -12
- package/dist/actions/index.cjs +773 -746
- package/dist/actions/index.d.ts +13 -13
- package/dist/actions/index.js +18 -34
- package/dist/actions/session/session.cjs +155 -149
- package/dist/actions/session/session.d.ts +3 -3
- package/dist/actions/session/session.js +7 -11
- package/dist/actions/signIn/authorization.cjs +249 -231
- package/dist/actions/signIn/authorization.d.ts +18 -12
- package/dist/actions/signIn/authorization.js +6 -16
- package/dist/actions/signIn/signIn.cjs +423 -396
- package/dist/actions/signIn/signIn.d.ts +10 -10
- package/dist/actions/signIn/signIn.js +10 -14
- package/dist/actions/signOut/signOut.cjs +440 -417
- package/dist/actions/signOut/signOut.d.ts +3 -3
- package/dist/actions/signOut/signOut.js +11 -15
- package/dist/assert.cjs +36 -35
- package/dist/assert.d.ts +4 -4
- package/dist/assert.js +2 -10
- package/dist/chunk-256KIVJL.js +96 -85
- package/dist/chunk-42XB3YCW.js +17 -19
- package/dist/chunk-6SM22VVJ.js +10 -13
- package/dist/chunk-CAKJT3KS.js +69 -84
- package/dist/chunk-E3OXBRYF.js +17 -19
- package/dist/chunk-EBPE35JT.js +26 -28
- package/dist/chunk-FIPU4MLT.js +16 -18
- package/dist/chunk-FJUDBLCP.js +43 -50
- package/dist/chunk-FKRDCWBF.js +17 -19
- package/dist/chunk-GZU3RBTB.js +40 -51
- package/dist/chunk-HGJ4TXY4.js +100 -132
- package/dist/chunk-HMRKN75I.js +63 -63
- package/dist/chunk-IKHPGFCW.js +9 -11
- package/dist/chunk-JAPMIE6S.js +5 -7
- package/dist/chunk-KRNOMBXQ.js +17 -19
- package/dist/chunk-LLR722CL.js +70 -91
- package/dist/chunk-RLT4RFKV.js +30 -39
- package/dist/chunk-SJPDVKUS.js +88 -107
- package/dist/chunk-SMQO5WD7.js +16 -26
- package/dist/chunk-STHEPPUZ.js +6 -8
- package/dist/chunk-UJJ7R56J.js +37 -47
- package/dist/chunk-UTDLUEEG.js +25 -0
- package/dist/chunk-VFTYH33W.js +37 -54
- package/dist/chunk-XXJKNKGQ.js +23 -33
- package/dist/chunk-ZV4BH47P.js +134 -132
- package/dist/cookie.cjs +175 -169
- package/dist/cookie.d.ts +51 -23
- package/dist/cookie.js +34 -34
- package/dist/error.cjs +75 -75
- package/dist/error.d.ts +30 -30
- package/dist/error.js +8 -15
- package/dist/headers.cjs +28 -28
- package/dist/headers.d.ts +2 -2
- package/dist/headers.js +2 -6
- package/dist/index-DpfbvTZ_.d.ts +298 -249
- package/dist/index.cjs +969 -933
- package/dist/index.d.ts +31 -10
- package/dist/index.js +50 -70
- package/dist/jose.cjs +67 -52
- package/dist/jose.d.ts +8 -8
- package/dist/jose.js +5 -9
- package/dist/oauth/bitbucket.cjs +38 -38
- package/dist/oauth/bitbucket.d.ts +7 -7
- package/dist/oauth/bitbucket.js +2 -6
- package/dist/oauth/discord.cjs +48 -48
- package/dist/oauth/discord.d.ts +7 -7
- package/dist/oauth/discord.js +2 -6
- package/dist/oauth/figma.cjs +39 -39
- package/dist/oauth/figma.d.ts +7 -7
- package/dist/oauth/figma.js +2 -6
- package/dist/oauth/github.cjs +31 -31
- package/dist/oauth/github.d.ts +7 -7
- package/dist/oauth/github.js +2 -6
- package/dist/oauth/gitlab.cjs +39 -39
- package/dist/oauth/gitlab.d.ts +7 -7
- package/dist/oauth/gitlab.js +2 -6
- package/dist/oauth/index.cjs +180 -180
- package/dist/oauth/index.d.ts +26 -7
- package/dist/oauth/index.js +9 -36
- package/dist/oauth/spotify.cjs +39 -39
- package/dist/oauth/spotify.d.ts +7 -7
- package/dist/oauth/spotify.js +2 -6
- package/dist/oauth/x.cjs +39 -39
- package/dist/oauth/x.d.ts +7 -7
- package/dist/oauth/x.js +2 -6
- package/dist/response.cjs +27 -27
- package/dist/response.d.ts +2 -2
- package/dist/response.js +2 -6
- package/dist/schemas.cjs +91 -91
- package/dist/schemas.d.ts +126 -93
- package/dist/schemas.js +18 -18
- package/dist/secure.cjs +98 -95
- package/dist/secure.d.ts +17 -17
- package/dist/secure.js +4 -18
- package/dist/utils.cjs +132 -119
- package/dist/utils.d.ts +26 -11
- package/dist/utils.js +21 -21
- package/package.json +1 -1
- package/dist/chunk-X7M4CQTN.js +0 -25
package/dist/oauth/x.cjs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
var __defProp = Object.defineProperty
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
1
|
+
"use strict"
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
6
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
10
|
+
if ((from && typeof from === "object") || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
|
|
14
|
+
}
|
|
15
|
+
return to
|
|
16
|
+
}
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
19
18
|
|
|
20
19
|
// src/oauth/x.ts
|
|
21
|
-
var x_exports = {}
|
|
20
|
+
var x_exports = {}
|
|
22
21
|
__export(x_exports, {
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
module.exports = __toCommonJS(x_exports)
|
|
22
|
+
x: () => x,
|
|
23
|
+
})
|
|
24
|
+
module.exports = __toCommonJS(x_exports)
|
|
26
25
|
var x = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
26
|
+
id: "x",
|
|
27
|
+
name: "X",
|
|
28
|
+
authorizeURL: "https://x.com/i/oauth2/authorize",
|
|
29
|
+
accessToken: "https://api.x.com/2/oauth2/token",
|
|
30
|
+
userInfo: "https://api.x.com/2/users/me?user.fields=profile_image_url",
|
|
31
|
+
scope: "users.read users.email tweet.read offline.access",
|
|
32
|
+
responseType: "code",
|
|
33
|
+
profile({ data }) {
|
|
34
|
+
return {
|
|
35
|
+
sub: data.id,
|
|
36
|
+
name: data.name,
|
|
37
|
+
image: data.profile_image_url,
|
|
38
|
+
email: "",
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
}
|
|
43
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 &&
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
0 &&
|
|
44
|
+
(module.exports = {
|
|
45
|
+
x,
|
|
46
|
+
})
|
package/dist/oauth/x.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { X as XProfile, x } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
export { X as XProfile, x } from "../index-DpfbvTZ_.js"
|
|
2
|
+
import "zod/v4"
|
|
3
|
+
import "@aura-stack/jose/jose"
|
|
4
|
+
import "../schemas.js"
|
|
5
|
+
import "zod/v4/core"
|
|
6
|
+
import "cookie"
|
|
7
|
+
import "../@types/utility.js"
|
package/dist/oauth/x.js
CHANGED
package/dist/response.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
var __defProp = Object.defineProperty
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
1
|
+
"use strict"
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
6
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
10
|
+
if ((from && typeof from === "object") || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
|
|
14
|
+
}
|
|
15
|
+
return to
|
|
16
|
+
}
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
19
18
|
|
|
20
19
|
// src/response.ts
|
|
21
|
-
var response_exports = {}
|
|
20
|
+
var response_exports = {}
|
|
22
21
|
__export(response_exports, {
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
module.exports = __toCommonJS(response_exports)
|
|
22
|
+
AuraResponse: () => AuraResponse,
|
|
23
|
+
})
|
|
24
|
+
module.exports = __toCommonJS(response_exports)
|
|
26
25
|
var AuraResponse = class extends Response {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
26
|
+
static json(body, init) {
|
|
27
|
+
return Response.json(body, init)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
31
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 &&
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
0 &&
|
|
32
|
+
(module.exports = {
|
|
33
|
+
AuraResponse,
|
|
34
|
+
})
|
package/dist/response.d.ts
CHANGED
package/dist/response.js
CHANGED
package/dist/schemas.cjs
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
var __defProp = Object.defineProperty
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
1
|
+
"use strict"
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
6
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
10
|
+
if ((from && typeof from === "object") || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
|
|
14
|
+
}
|
|
15
|
+
return to
|
|
16
|
+
}
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
19
18
|
|
|
20
19
|
// src/schemas.ts
|
|
21
|
-
var schemas_exports = {}
|
|
20
|
+
var schemas_exports = {}
|
|
22
21
|
__export(schemas_exports, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
32
|
-
module.exports = __toCommonJS(schemas_exports)
|
|
33
|
-
var import_v4 = require("zod/v4")
|
|
22
|
+
OAuthAccessToken: () => OAuthAccessToken,
|
|
23
|
+
OAuthAccessTokenErrorResponse: () => OAuthAccessTokenErrorResponse,
|
|
24
|
+
OAuthAccessTokenResponse: () => OAuthAccessTokenResponse,
|
|
25
|
+
OAuthAuthorization: () => OAuthAuthorization,
|
|
26
|
+
OAuthAuthorizationErrorResponse: () => OAuthAuthorizationErrorResponse,
|
|
27
|
+
OAuthAuthorizationResponse: () => OAuthAuthorizationResponse,
|
|
28
|
+
OAuthErrorResponse: () => OAuthErrorResponse,
|
|
29
|
+
OAuthProviderConfigSchema: () => OAuthProviderConfigSchema,
|
|
30
|
+
})
|
|
31
|
+
module.exports = __toCommonJS(schemas_exports)
|
|
32
|
+
var import_v4 = require("zod/v4")
|
|
34
33
|
var OAuthProviderConfigSchema = (0, import_v4.object)({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})
|
|
34
|
+
authorizeURL: (0, import_v4.url)(),
|
|
35
|
+
accessToken: (0, import_v4.url)(),
|
|
36
|
+
scope: (0, import_v4.string)().optional(),
|
|
37
|
+
userInfo: (0, import_v4.url)(),
|
|
38
|
+
responseType: (0, import_v4.enum)(["code", "token", "id_token"]),
|
|
39
|
+
clientId: (0, import_v4.string)(),
|
|
40
|
+
clientSecret: (0, import_v4.string)(),
|
|
41
|
+
})
|
|
43
42
|
var OAuthAuthorization = OAuthProviderConfigSchema.extend({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
43
|
+
redirectURI: (0, import_v4.string)(),
|
|
44
|
+
state: (0, import_v4.string)(),
|
|
45
|
+
codeChallenge: (0, import_v4.string)(),
|
|
46
|
+
codeChallengeMethod: (0, import_v4.enum)(["plain", "S256"]),
|
|
47
|
+
})
|
|
49
48
|
var OAuthAuthorizationResponse = (0, import_v4.object)({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
})
|
|
49
|
+
state: (0, import_v4.string)(),
|
|
50
|
+
code: (0, import_v4.string)(),
|
|
51
|
+
})
|
|
53
52
|
var OAuthAuthorizationErrorResponse = (0, import_v4.object)({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})
|
|
53
|
+
error: (0, import_v4.enum)([
|
|
54
|
+
"invalid_request",
|
|
55
|
+
"unauthorized_client",
|
|
56
|
+
"access_denied",
|
|
57
|
+
"unsupported_response_type",
|
|
58
|
+
"invalid_scope",
|
|
59
|
+
"server_error",
|
|
60
|
+
"temporarily_unavailable",
|
|
61
|
+
]),
|
|
62
|
+
error_description: (0, import_v4.string)().optional(),
|
|
63
|
+
error_uri: (0, import_v4.string)().optional(),
|
|
64
|
+
state: (0, import_v4.string)(),
|
|
65
|
+
})
|
|
67
66
|
var OAuthAccessToken = OAuthProviderConfigSchema.extend({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
})
|
|
67
|
+
redirectURI: (0, import_v4.string)(),
|
|
68
|
+
code: (0, import_v4.string)(),
|
|
69
|
+
codeVerifier: (0, import_v4.string)().min(43).max(128),
|
|
70
|
+
})
|
|
72
71
|
var OAuthAccessTokenResponse = (0, import_v4.object)({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})
|
|
72
|
+
access_token: (0, import_v4.string)(),
|
|
73
|
+
token_type: (0, import_v4.string)(),
|
|
74
|
+
expires_in: (0, import_v4.number)().optional(),
|
|
75
|
+
refresh_token: (0, import_v4.string)().optional(),
|
|
76
|
+
scope: (0, import_v4.string)().optional(),
|
|
77
|
+
})
|
|
79
78
|
var OAuthAccessTokenErrorResponse = (0, import_v4.object)({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
})
|
|
79
|
+
error: (0, import_v4.enum)([
|
|
80
|
+
"invalid_request",
|
|
81
|
+
"invalid_client",
|
|
82
|
+
"invalid_grant",
|
|
83
|
+
"unauthorized_client",
|
|
84
|
+
"unsupported_grant_type",
|
|
85
|
+
"invalid_scope",
|
|
86
|
+
]),
|
|
87
|
+
error_description: (0, import_v4.string)().optional(),
|
|
88
|
+
error_uri: (0, import_v4.string)().optional(),
|
|
89
|
+
})
|
|
91
90
|
var OAuthErrorResponse = (0, import_v4.object)({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
})
|
|
91
|
+
error: (0, import_v4.string)(),
|
|
92
|
+
error_description: (0, import_v4.string)().optional(),
|
|
93
|
+
})
|
|
95
94
|
// Annotate the CommonJS export names for ESM import in node:
|
|
96
|
-
0 &&
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
0 &&
|
|
96
|
+
(module.exports = {
|
|
97
|
+
OAuthAccessToken,
|
|
98
|
+
OAuthAccessTokenErrorResponse,
|
|
99
|
+
OAuthAccessTokenResponse,
|
|
100
|
+
OAuthAuthorization,
|
|
101
|
+
OAuthAuthorizationErrorResponse,
|
|
102
|
+
OAuthAuthorizationResponse,
|
|
103
|
+
OAuthErrorResponse,
|
|
104
|
+
OAuthProviderConfigSchema,
|
|
105
|
+
})
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,130 +1,163 @@
|
|
|
1
|
-
import * as zod_v4_core from
|
|
2
|
-
import * as zod_v4 from
|
|
1
|
+
import * as zod_v4_core from "zod/v4/core"
|
|
2
|
+
import * as zod_v4 from "zod/v4"
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Schema for OAuth Provider Configuration
|
|
6
6
|
*/
|
|
7
|
-
declare const OAuthProviderConfigSchema: zod_v4.ZodObject<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
declare const OAuthProviderConfigSchema: zod_v4.ZodObject<
|
|
8
|
+
{
|
|
9
|
+
authorizeURL: zod_v4.ZodURL
|
|
10
|
+
accessToken: zod_v4.ZodURL
|
|
11
|
+
scope: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
12
|
+
userInfo: zod_v4.ZodURL
|
|
13
|
+
responseType: zod_v4.ZodEnum<{
|
|
14
|
+
token: "token"
|
|
15
|
+
code: "code"
|
|
16
|
+
id_token: "id_token"
|
|
17
|
+
}>
|
|
18
|
+
clientId: zod_v4.ZodString
|
|
19
|
+
clientSecret: zod_v4.ZodString
|
|
20
|
+
},
|
|
21
|
+
zod_v4_core.$strip
|
|
22
|
+
>
|
|
20
23
|
/**
|
|
21
24
|
* Schema used to create the authorization URL for the OAuth flow and verify the
|
|
22
25
|
* OAuth configuration.
|
|
23
26
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
|
|
24
27
|
*/
|
|
25
|
-
declare const OAuthAuthorization: zod_v4.ZodObject<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
28
|
+
declare const OAuthAuthorization: zod_v4.ZodObject<
|
|
29
|
+
{
|
|
30
|
+
authorizeURL: zod_v4.ZodURL
|
|
31
|
+
accessToken: zod_v4.ZodURL
|
|
32
|
+
scope: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
33
|
+
userInfo: zod_v4.ZodURL
|
|
34
|
+
responseType: zod_v4.ZodEnum<{
|
|
35
|
+
token: "token"
|
|
36
|
+
code: "code"
|
|
37
|
+
id_token: "id_token"
|
|
38
|
+
}>
|
|
39
|
+
clientId: zod_v4.ZodString
|
|
40
|
+
clientSecret: zod_v4.ZodString
|
|
41
|
+
redirectURI: zod_v4.ZodString
|
|
42
|
+
state: zod_v4.ZodString
|
|
43
|
+
codeChallenge: zod_v4.ZodString
|
|
44
|
+
codeChallengeMethod: zod_v4.ZodEnum<{
|
|
45
|
+
S256: "S256"
|
|
46
|
+
plain: "plain"
|
|
47
|
+
}>
|
|
48
|
+
},
|
|
49
|
+
zod_v4_core.$strip
|
|
50
|
+
>
|
|
45
51
|
/**
|
|
46
52
|
* Schema used in the callback action to validate the authorization response when the resource owner
|
|
47
53
|
* has granted.
|
|
48
54
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2
|
|
49
55
|
*/
|
|
50
|
-
declare const OAuthAuthorizationResponse: zod_v4.ZodObject<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
declare const OAuthAuthorizationResponse: zod_v4.ZodObject<
|
|
57
|
+
{
|
|
58
|
+
state: zod_v4.ZodString
|
|
59
|
+
code: zod_v4.ZodString
|
|
60
|
+
},
|
|
61
|
+
zod_v4_core.$strip
|
|
62
|
+
>
|
|
54
63
|
/**
|
|
55
64
|
* Schema used in the callback action to validate the authorization error response when the resource owner
|
|
56
65
|
* has denied the authorization request.
|
|
57
66
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1
|
|
58
67
|
*/
|
|
59
|
-
declare const OAuthAuthorizationErrorResponse: zod_v4.ZodObject<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
declare const OAuthAuthorizationErrorResponse: zod_v4.ZodObject<
|
|
69
|
+
{
|
|
70
|
+
error: zod_v4.ZodEnum<{
|
|
71
|
+
invalid_request: "invalid_request"
|
|
72
|
+
unauthorized_client: "unauthorized_client"
|
|
73
|
+
access_denied: "access_denied"
|
|
74
|
+
unsupported_response_type: "unsupported_response_type"
|
|
75
|
+
invalid_scope: "invalid_scope"
|
|
76
|
+
server_error: "server_error"
|
|
77
|
+
temporarily_unavailable: "temporarily_unavailable"
|
|
78
|
+
}>
|
|
79
|
+
error_description: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
80
|
+
error_uri: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
81
|
+
state: zod_v4.ZodString
|
|
82
|
+
},
|
|
83
|
+
zod_v4_core.$strip
|
|
84
|
+
>
|
|
73
85
|
/**
|
|
74
86
|
* Schema for OAuth Access Token Request and OAuth Configuration
|
|
75
87
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3
|
|
76
88
|
*/
|
|
77
|
-
declare const OAuthAccessToken: zod_v4.ZodObject<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
declare const OAuthAccessToken: zod_v4.ZodObject<
|
|
90
|
+
{
|
|
91
|
+
authorizeURL: zod_v4.ZodURL
|
|
92
|
+
accessToken: zod_v4.ZodURL
|
|
93
|
+
scope: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
94
|
+
userInfo: zod_v4.ZodURL
|
|
95
|
+
responseType: zod_v4.ZodEnum<{
|
|
96
|
+
token: "token"
|
|
97
|
+
code: "code"
|
|
98
|
+
id_token: "id_token"
|
|
99
|
+
}>
|
|
100
|
+
clientId: zod_v4.ZodString
|
|
101
|
+
clientSecret: zod_v4.ZodString
|
|
102
|
+
redirectURI: zod_v4.ZodString
|
|
103
|
+
code: zod_v4.ZodString
|
|
104
|
+
codeVerifier: zod_v4.ZodString
|
|
105
|
+
},
|
|
106
|
+
zod_v4_core.$strip
|
|
107
|
+
>
|
|
93
108
|
/**
|
|
94
109
|
* Schema for OAuth Access Token Response
|
|
95
110
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
|
|
96
111
|
* @see https://datatracker.ietf.org/doc/html/rfc7636#section-4
|
|
97
112
|
*/
|
|
98
|
-
declare const OAuthAccessTokenResponse: zod_v4.ZodObject<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
declare const OAuthAccessTokenResponse: zod_v4.ZodObject<
|
|
114
|
+
{
|
|
115
|
+
access_token: zod_v4.ZodString
|
|
116
|
+
token_type: zod_v4.ZodString
|
|
117
|
+
expires_in: zod_v4.ZodOptional<zod_v4.ZodNumber>
|
|
118
|
+
refresh_token: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
119
|
+
scope: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
120
|
+
},
|
|
121
|
+
zod_v4_core.$strip
|
|
122
|
+
>
|
|
105
123
|
/**
|
|
106
124
|
* Schema for OAuth Access Token Error Response
|
|
107
125
|
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
108
126
|
*/
|
|
109
|
-
declare const OAuthAccessTokenErrorResponse: zod_v4.ZodObject<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
declare const OAuthAccessTokenErrorResponse: zod_v4.ZodObject<
|
|
128
|
+
{
|
|
129
|
+
error: zod_v4.ZodEnum<{
|
|
130
|
+
invalid_request: "invalid_request"
|
|
131
|
+
unauthorized_client: "unauthorized_client"
|
|
132
|
+
invalid_scope: "invalid_scope"
|
|
133
|
+
invalid_client: "invalid_client"
|
|
134
|
+
invalid_grant: "invalid_grant"
|
|
135
|
+
unsupported_grant_type: "unsupported_grant_type"
|
|
136
|
+
}>
|
|
137
|
+
error_description: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
138
|
+
error_uri: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
139
|
+
},
|
|
140
|
+
zod_v4_core.$strip
|
|
141
|
+
>
|
|
121
142
|
/**
|
|
122
143
|
* @todo: verify if this schema is still needed
|
|
123
144
|
* @deprecated
|
|
124
145
|
*/
|
|
125
|
-
declare const OAuthErrorResponse: zod_v4.ZodObject<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
declare const OAuthErrorResponse: zod_v4.ZodObject<
|
|
147
|
+
{
|
|
148
|
+
error: zod_v4.ZodString
|
|
149
|
+
error_description: zod_v4.ZodOptional<zod_v4.ZodString>
|
|
150
|
+
},
|
|
151
|
+
zod_v4_core.$strip
|
|
152
|
+
>
|
|
129
153
|
|
|
130
|
-
export {
|
|
154
|
+
export {
|
|
155
|
+
OAuthAccessToken,
|
|
156
|
+
OAuthAccessTokenErrorResponse,
|
|
157
|
+
OAuthAccessTokenResponse,
|
|
158
|
+
OAuthAuthorization,
|
|
159
|
+
OAuthAuthorizationErrorResponse,
|
|
160
|
+
OAuthAuthorizationResponse,
|
|
161
|
+
OAuthErrorResponse,
|
|
162
|
+
OAuthProviderConfigSchema,
|
|
163
|
+
}
|