@wix/auto_sdk_identity_oauth 1.0.56 → 1.0.57
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/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -37
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -33
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -37
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +0 -33
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.typings.d.ts +24 -8
- package/build/internal/cjs/meta.d.ts +20 -4
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.typings.d.mts +24 -8
- package/build/internal/es/meta.d.mts +20 -4
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ interface TokenSignature {
|
|
|
21
21
|
* about the error in `body`. Error details follow the
|
|
22
22
|
* [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
|
|
23
23
|
*/
|
|
24
|
-
(options?: TokenOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,
|
|
24
|
+
(options?: TokenOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
25
25
|
}
|
|
26
26
|
declare function jwks$1(httpClient: HttpClient): JwksSignature;
|
|
27
27
|
interface JwksSignature {
|
|
@@ -30,14 +30,14 @@ interface JwksSignature {
|
|
|
30
30
|
* tokens (e.g. OIDC id_token). Required by external OIDC relying parties.
|
|
31
31
|
* Serves a non-secret public key.
|
|
32
32
|
*/
|
|
33
|
-
(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,
|
|
33
|
+
(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
34
34
|
}
|
|
35
35
|
declare function tokenInfo$1(httpClient: HttpClient): TokenInfoSignature;
|
|
36
36
|
interface TokenInfoSignature {
|
|
37
37
|
/**
|
|
38
38
|
* Token Introspection Endpoint.
|
|
39
39
|
*/
|
|
40
|
-
(options?: TokenInfoOptions): Promise<NonNullablePaths<TokenInfoResponse, `active` | `subjectType` | `subjectId` | `clientId`,
|
|
40
|
+
(options?: TokenInfoOptions): Promise<NonNullablePaths<TokenInfoResponse, `active` | `subjectType` | `subjectId` | `clientId`, 0>>;
|
|
41
41
|
}
|
|
42
42
|
declare function userInfo$1(httpClient: HttpClient): UserInfoSignature;
|
|
43
43
|
interface UserInfoSignature {
|
|
@@ -46,7 +46,7 @@ interface UserInfoSignature {
|
|
|
46
46
|
* Should be called with user access token obtained in OIDC flow as Authorization header
|
|
47
47
|
* @returns UserInfo endpoint response for OpenID Connect
|
|
48
48
|
*/
|
|
49
|
-
(): Promise<NonNullablePaths<UserInfoResponse, `sub`,
|
|
49
|
+
(): Promise<NonNullablePaths<UserInfoResponse, `sub`, 0>>;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
declare const token: MaybeContext<BuildRESTFunction<typeof token$1> & typeof token$1>;
|
|
@@ -84,16 +84,24 @@ interface AuthorizeRequest {
|
|
|
84
84
|
/**
|
|
85
85
|
* DEPRECATED: no longer read. The sign-in URL is resolved from the client's OAuthClientConfiguration
|
|
86
86
|
* component (sign_in_url), falling back to the default Wix sign-in page.
|
|
87
|
+
* @internal
|
|
87
88
|
* @format SECURE_WEB_URL
|
|
88
89
|
* @deprecated
|
|
89
90
|
*/
|
|
90
91
|
signInUrl?: string | null;
|
|
91
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Indicates whether the user has consented to the requested scopes
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
92
96
|
userConsented?: boolean | null;
|
|
93
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Indicates whether login is optional. If true, will not redirect to the sign_in_url if user is not logged in.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
94
101
|
optionalLogin?: boolean | null;
|
|
95
102
|
/**
|
|
96
103
|
* The site id the authorization is requested for.
|
|
104
|
+
* @internal
|
|
97
105
|
* @format GUID
|
|
98
106
|
*/
|
|
99
107
|
metaSiteId?: string | null;
|
|
@@ -101,6 +109,7 @@ interface AuthorizeRequest {
|
|
|
101
109
|
* ID of the IAM IdP connection to authenticate with when no member session exists.
|
|
102
110
|
* When set, the sign-in redirect initiates an OIDC login against this IdP connection
|
|
103
111
|
* (IAM's `/sso/login` endpoint) instead of the default Wix login page.
|
|
112
|
+
* @internal
|
|
104
113
|
* @format GUID
|
|
105
114
|
*/
|
|
106
115
|
idp?: string | null;
|
|
@@ -109,9 +118,15 @@ interface AuthorizeRequest {
|
|
|
109
118
|
* @maxLength 512
|
|
110
119
|
*/
|
|
111
120
|
nonce?: string | null;
|
|
112
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* RFC 9470 / OIDC acr_values: space-separated required ACRs (OR, in preference order) for step-up.
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
113
125
|
acrValues?: string | null;
|
|
114
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* RFC 9470 / OIDC max_age: max seconds since last auth (0 forces re-auth).
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
115
130
|
maxAge?: string | null;
|
|
116
131
|
/** OIDC prompt. Only "none" is honored: request silent authorization with no user interaction. */
|
|
117
132
|
prompt?: string | null;
|
|
@@ -119,6 +134,7 @@ interface AuthorizeRequest {
|
|
|
119
134
|
* Standard OAuth error code the step-up surface returns on the browser redirect back to authorize
|
|
120
135
|
* (e.g. access_denied, unmet_authentication_requirements). Browser-supplied like acr_values/prompt, so
|
|
121
136
|
* untrusted: allowlisted and forwarded to the client as the OAuth error.
|
|
137
|
+
* @internal
|
|
122
138
|
*/
|
|
123
139
|
stepUpError?: string | null;
|
|
124
140
|
}
|
|
@@ -423,7 +439,7 @@ interface UserInfoResponse {
|
|
|
423
439
|
* @public
|
|
424
440
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.Token
|
|
425
441
|
*/
|
|
426
|
-
declare function token(options?: TokenOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,
|
|
442
|
+
declare function token(options?: TokenOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
427
443
|
interface TokenOptions {
|
|
428
444
|
body?: Uint8Array;
|
|
429
445
|
pathParams?: PathParametersEntry[];
|
|
@@ -441,13 +457,13 @@ interface TokenOptions {
|
|
|
441
457
|
* @documentationMaturity preview
|
|
442
458
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.Jwks
|
|
443
459
|
*/
|
|
444
|
-
declare function jwks(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,
|
|
460
|
+
declare function jwks(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
445
461
|
/**
|
|
446
462
|
* Token Introspection Endpoint.
|
|
447
463
|
* @public
|
|
448
464
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.TokenInfo
|
|
449
465
|
*/
|
|
450
|
-
declare function tokenInfo(options?: TokenInfoOptions): Promise<NonNullablePaths<TokenInfoResponse, `active` | `subjectType` | `subjectId` | `clientId`,
|
|
466
|
+
declare function tokenInfo(options?: TokenInfoOptions): Promise<NonNullablePaths<TokenInfoResponse, `active` | `subjectType` | `subjectId` | `clientId`, 0>>;
|
|
451
467
|
interface TokenInfoOptions {
|
|
452
468
|
body?: Uint8Array;
|
|
453
469
|
pathParams?: PathParametersEntry[];
|
|
@@ -465,6 +481,6 @@ interface TokenInfoOptions {
|
|
|
465
481
|
* @returns UserInfo endpoint response for OpenID Connect
|
|
466
482
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.UserInfo
|
|
467
483
|
*/
|
|
468
|
-
declare function userInfo(): Promise<NonNullablePaths<UserInfoResponse, `sub`,
|
|
484
|
+
declare function userInfo(): Promise<NonNullablePaths<UserInfoResponse, `sub`, 0>>;
|
|
469
485
|
|
|
470
486
|
export { type ActionEvent, type AuthorizeRequest, type DeviceAuthorizationInfoRequest, type DeviceAuthorizationInfoResponse, type DeviceAuthorizeRequest, type DeviceAuthorizeResponse, type DeviceCodeRequest, type DeviceCodeResponse, type DeviceVerifyRequest, type DeviceVerifyResponse, type DeviceVerifyV2Request, type DeviceVerifyV2Response, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type HeadersEntry, type InvalidateUserCodeRequest, type InvalidateUserCodeResponse, type JwksRequest, type PathParametersEntry, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type RefreshToken, type RestoreInfo, type RevokeRefreshTokenRequest, type RevokeRefreshTokenResponse, SubjectType, type SubjectTypeWithLiterals, type TokenInfoOptions, type TokenInfoResponse, type TokenOptions, type UserBlockedEvent, type UserDeletedEvent, type UserInfoRequest, type UserInfoResponse, jwks, token, tokenInfo, userInfo };
|
|
@@ -85,16 +85,24 @@ interface AuthorizeRequest {
|
|
|
85
85
|
/**
|
|
86
86
|
* DEPRECATED: no longer read. The sign-in URL is resolved from the client's OAuthClientConfiguration
|
|
87
87
|
* component (sign_in_url), falling back to the default Wix sign-in page.
|
|
88
|
+
* @internal
|
|
88
89
|
* @format SECURE_WEB_URL
|
|
89
90
|
* @deprecated
|
|
90
91
|
*/
|
|
91
92
|
signInUrl?: string | null;
|
|
92
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Indicates whether the user has consented to the requested scopes
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
93
97
|
userConsented?: boolean | null;
|
|
94
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Indicates whether login is optional. If true, will not redirect to the sign_in_url if user is not logged in.
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
95
102
|
optionalLogin?: boolean | null;
|
|
96
103
|
/**
|
|
97
104
|
* The site id the authorization is requested for.
|
|
105
|
+
* @internal
|
|
98
106
|
* @format GUID
|
|
99
107
|
*/
|
|
100
108
|
metaSiteId?: string | null;
|
|
@@ -102,6 +110,7 @@ interface AuthorizeRequest {
|
|
|
102
110
|
* ID of the IAM IdP connection to authenticate with when no member session exists.
|
|
103
111
|
* When set, the sign-in redirect initiates an OIDC login against this IdP connection
|
|
104
112
|
* (IAM's `/sso/login` endpoint) instead of the default Wix login page.
|
|
113
|
+
* @internal
|
|
105
114
|
* @format GUID
|
|
106
115
|
*/
|
|
107
116
|
idp?: string | null;
|
|
@@ -110,9 +119,15 @@ interface AuthorizeRequest {
|
|
|
110
119
|
* @maxLength 512
|
|
111
120
|
*/
|
|
112
121
|
nonce?: string | null;
|
|
113
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* RFC 9470 / OIDC acr_values: space-separated required ACRs (OR, in preference order) for step-up.
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
114
126
|
acrValues?: string | null;
|
|
115
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* RFC 9470 / OIDC max_age: max seconds since last auth (0 forces re-auth).
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
116
131
|
maxAge?: string | null;
|
|
117
132
|
/** OIDC prompt. Only "none" is honored: request silent authorization with no user interaction. */
|
|
118
133
|
prompt?: string | null;
|
|
@@ -120,6 +135,7 @@ interface AuthorizeRequest {
|
|
|
120
135
|
* Standard OAuth error code the step-up surface returns on the browser redirect back to authorize
|
|
121
136
|
* (e.g. access_denied, unmet_authentication_requirements). Browser-supplied like acr_values/prompt, so
|
|
122
137
|
* untrusted: allowlisted and forwarded to the client as the OAuth error.
|
|
138
|
+
* @internal
|
|
123
139
|
*/
|
|
124
140
|
stepUpError?: string | null;
|
|
125
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_identity_oauth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.identity.oauth.v1.refresh_token"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "0a4c779e92a79b85f94a6177f9869d930d9cb9c803e3a5b3d98fe4bc"
|
|
54
54
|
}
|