@wix/auto_sdk_identity_oauth 1.0.68 → 1.0.69
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 +1 -1
- package/build/cjs/index.js +21 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -1
- package/build/cjs/index.typings.js +19 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -0
- package/build/cjs/meta.js +12 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +21 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -1
- package/build/es/index.typings.mjs +19 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -0
- package/build/es/meta.mjs +12 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -4
- package/build/internal/cjs/index.typings.d.ts +16 -3
- package/build/internal/cjs/meta.d.ts +5 -0
- package/build/internal/es/index.d.mts +5 -4
- package/build/internal/es/index.typings.d.mts +16 -3
- package/build/internal/es/meta.d.mts +5 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { TokenOptions, RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, UserInfoResponse } from './index.typings.js';
|
|
2
|
+
import { TokenOptions, RawHttpResponse, ProtectedResourceMetadataOptions, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, UserInfoResponse } from './index.typings.js';
|
|
3
3
|
export { ActionEvent, AuthorizationServerMetadataRequest, AuthorizeRequest, ConsentRequest, DeviceAuthorizationInfoRequest, DeviceAuthorizationInfoResponse, DeviceAuthorizeRequest, DeviceAuthorizeResponse, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, HeadersEntry, InternalTokenResponse, InternalTokenResponseResultOneOf, InvalidateUserCodeRequest, InvalidateUserCodeResponse, JwksRequest, PathParametersEntry, ProtectedResourceMetadataRequest, QueryParametersEntry, RawHttpRequest, RefreshToken, RestoreInfo, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, SubjectType, SubjectTypeWithLiterals, TokenErrorResponse, TokenInfoRequest, TokenRequest, TokenRequestTenantOneOf, TokenResponse, UserBlockedEvent, UserDeletedEvent, UserInfoRequest } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function token$1(httpClient: HttpClient): TokenSignature;
|
|
@@ -46,9 +46,10 @@ declare function protectedResourceMetadata$1(httpClient: HttpClient): ProtectedR
|
|
|
46
46
|
interface ProtectedResourceMetadataSignature {
|
|
47
47
|
/**
|
|
48
48
|
* Returns the site's OAuth protected resource metadata (RFC 9728) for personal agents.
|
|
49
|
-
* Served on live sites at /.well-known/oauth-protected-resource
|
|
49
|
+
* Served on live sites at /.well-known/oauth-protected-resource, and for a site resource such as the MCP server at
|
|
50
|
+
* /.well-known/oauth-protected-resource/<resource path>.
|
|
50
51
|
*/
|
|
51
|
-
(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
52
|
+
(options?: ProtectedResourceMetadataOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
52
53
|
}
|
|
53
54
|
/** @internal */
|
|
54
55
|
declare function revokeToken$1(httpClient: HttpClient): RevokeTokenSignature;
|
|
@@ -89,4 +90,4 @@ declare const revokeToken: MaybeContext<BuildRESTFunction<typeof revokeToken$1>
|
|
|
89
90
|
declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof tokenInfo$1> & typeof tokenInfo$1>;
|
|
90
91
|
declare const userInfo: MaybeContext<BuildRESTFunction<typeof userInfo$1> & typeof userInfo$1>;
|
|
91
92
|
|
|
92
|
-
export { RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, TokenOptions, UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
93
|
+
export { ProtectedResourceMetadataOptions, RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, TokenOptions, UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
@@ -362,6 +362,11 @@ interface AuthorizationServerMetadataRequest {
|
|
|
362
362
|
}
|
|
363
363
|
/** Request for the ProtectedResourceMetadata endpoint. Takes no parameters. */
|
|
364
364
|
interface ProtectedResourceMetadataRequest {
|
|
365
|
+
/**
|
|
366
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
367
|
+
* @maxLength 100
|
|
368
|
+
*/
|
|
369
|
+
resourcePath?: string;
|
|
365
370
|
}
|
|
366
371
|
interface DeviceCodeRequest {
|
|
367
372
|
/** The ID of the application that asks for authorization. */
|
|
@@ -626,12 +631,20 @@ declare function jwks(): Promise<NonNullablePaths<RawHttpResponse, `body` | `hea
|
|
|
626
631
|
declare function authorizationServerMetadata(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
627
632
|
/**
|
|
628
633
|
* Returns the site's OAuth protected resource metadata (RFC 9728) for personal agents.
|
|
629
|
-
* Served on live sites at /.well-known/oauth-protected-resource
|
|
634
|
+
* Served on live sites at /.well-known/oauth-protected-resource, and for a site resource such as the MCP server at
|
|
635
|
+
* /.well-known/oauth-protected-resource/<resource path>.
|
|
630
636
|
* @internal
|
|
631
637
|
* @documentationMaturity preview
|
|
632
638
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.ProtectedResourceMetadata
|
|
633
639
|
*/
|
|
634
|
-
declare function protectedResourceMetadata(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
640
|
+
declare function protectedResourceMetadata(options?: ProtectedResourceMetadataOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
641
|
+
interface ProtectedResourceMetadataOptions {
|
|
642
|
+
/**
|
|
643
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
644
|
+
* @maxLength 100
|
|
645
|
+
*/
|
|
646
|
+
resourcePath?: string;
|
|
647
|
+
}
|
|
635
648
|
/**
|
|
636
649
|
* RFC 7009 revocation endpoint for Personal Agents, served on live sites as `https://<site>/_api/oauth2/revoke-token`.
|
|
637
650
|
*
|
|
@@ -676,4 +689,4 @@ interface TokenInfoOptions {
|
|
|
676
689
|
*/
|
|
677
690
|
declare function userInfo(): Promise<NonNullablePaths<UserInfoResponse, `sub`, 0>>;
|
|
678
691
|
|
|
679
|
-
export { type ActionEvent, type AuthorizationServerMetadataRequest, type AuthorizeRequest, type ConsentRequest, 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 InternalTokenResponse, type InternalTokenResponseResultOneOf, type InvalidateUserCodeRequest, type InvalidateUserCodeResponse, type JwksRequest, type PathParametersEntry, type ProtectedResourceMetadataRequest, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type RefreshToken, type RestoreInfo, type RevokeRefreshTokenRequest, type RevokeRefreshTokenResponse, type RevokeTokenOptions, SubjectType, type SubjectTypeWithLiterals, type TokenErrorResponse, type TokenInfoOptions, type TokenInfoRequest, type TokenInfoResponse, type TokenOptions, type TokenRequest, type TokenRequestTenantOneOf, type TokenResponse, type UserBlockedEvent, type UserDeletedEvent, type UserInfoRequest, type UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
692
|
+
export { type ActionEvent, type AuthorizationServerMetadataRequest, type AuthorizeRequest, type ConsentRequest, 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 InternalTokenResponse, type InternalTokenResponseResultOneOf, type InvalidateUserCodeRequest, type InvalidateUserCodeResponse, type JwksRequest, type PathParametersEntry, type ProtectedResourceMetadataOptions, type ProtectedResourceMetadataRequest, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type RefreshToken, type RestoreInfo, type RevokeRefreshTokenRequest, type RevokeRefreshTokenResponse, type RevokeTokenOptions, SubjectType, type SubjectTypeWithLiterals, type TokenErrorResponse, type TokenInfoOptions, type TokenInfoRequest, type TokenInfoResponse, type TokenOptions, type TokenRequest, type TokenRequestTenantOneOf, type TokenResponse, type UserBlockedEvent, type UserDeletedEvent, type UserInfoRequest, type UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
@@ -363,6 +363,11 @@ interface AuthorizationServerMetadataRequest {
|
|
|
363
363
|
}
|
|
364
364
|
/** Request for the ProtectedResourceMetadata endpoint. Takes no parameters. */
|
|
365
365
|
interface ProtectedResourceMetadataRequest {
|
|
366
|
+
/**
|
|
367
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
368
|
+
* @maxLength 100
|
|
369
|
+
*/
|
|
370
|
+
resourcePath?: string;
|
|
366
371
|
}
|
|
367
372
|
interface DeviceCodeRequest {
|
|
368
373
|
/** The ID of the application that asks for authorization. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { TokenOptions, RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, UserInfoResponse } from './index.typings.mjs';
|
|
2
|
+
import { TokenOptions, RawHttpResponse, ProtectedResourceMetadataOptions, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, UserInfoResponse } from './index.typings.mjs';
|
|
3
3
|
export { ActionEvent, AuthorizationServerMetadataRequest, AuthorizeRequest, ConsentRequest, DeviceAuthorizationInfoRequest, DeviceAuthorizationInfoResponse, DeviceAuthorizeRequest, DeviceAuthorizeResponse, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, HeadersEntry, InternalTokenResponse, InternalTokenResponseResultOneOf, InvalidateUserCodeRequest, InvalidateUserCodeResponse, JwksRequest, PathParametersEntry, ProtectedResourceMetadataRequest, QueryParametersEntry, RawHttpRequest, RefreshToken, RestoreInfo, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, SubjectType, SubjectTypeWithLiterals, TokenErrorResponse, TokenInfoRequest, TokenRequest, TokenRequestTenantOneOf, TokenResponse, UserBlockedEvent, UserDeletedEvent, UserInfoRequest } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function token$1(httpClient: HttpClient): TokenSignature;
|
|
@@ -46,9 +46,10 @@ declare function protectedResourceMetadata$1(httpClient: HttpClient): ProtectedR
|
|
|
46
46
|
interface ProtectedResourceMetadataSignature {
|
|
47
47
|
/**
|
|
48
48
|
* Returns the site's OAuth protected resource metadata (RFC 9728) for personal agents.
|
|
49
|
-
* Served on live sites at /.well-known/oauth-protected-resource
|
|
49
|
+
* Served on live sites at /.well-known/oauth-protected-resource, and for a site resource such as the MCP server at
|
|
50
|
+
* /.well-known/oauth-protected-resource/<resource path>.
|
|
50
51
|
*/
|
|
51
|
-
(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
52
|
+
(options?: ProtectedResourceMetadataOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
52
53
|
}
|
|
53
54
|
/** @internal */
|
|
54
55
|
declare function revokeToken$1(httpClient: HttpClient): RevokeTokenSignature;
|
|
@@ -89,4 +90,4 @@ declare const revokeToken: MaybeContext<BuildRESTFunction<typeof revokeToken$1>
|
|
|
89
90
|
declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof tokenInfo$1> & typeof tokenInfo$1>;
|
|
90
91
|
declare const userInfo: MaybeContext<BuildRESTFunction<typeof userInfo$1> & typeof userInfo$1>;
|
|
91
92
|
|
|
92
|
-
export { RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, TokenOptions, UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
93
|
+
export { ProtectedResourceMetadataOptions, RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, TokenOptions, UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
@@ -362,6 +362,11 @@ interface AuthorizationServerMetadataRequest {
|
|
|
362
362
|
}
|
|
363
363
|
/** Request for the ProtectedResourceMetadata endpoint. Takes no parameters. */
|
|
364
364
|
interface ProtectedResourceMetadataRequest {
|
|
365
|
+
/**
|
|
366
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
367
|
+
* @maxLength 100
|
|
368
|
+
*/
|
|
369
|
+
resourcePath?: string;
|
|
365
370
|
}
|
|
366
371
|
interface DeviceCodeRequest {
|
|
367
372
|
/** The ID of the application that asks for authorization. */
|
|
@@ -626,12 +631,20 @@ declare function jwks(): Promise<NonNullablePaths<RawHttpResponse, `body` | `hea
|
|
|
626
631
|
declare function authorizationServerMetadata(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
627
632
|
/**
|
|
628
633
|
* Returns the site's OAuth protected resource metadata (RFC 9728) for personal agents.
|
|
629
|
-
* Served on live sites at /.well-known/oauth-protected-resource
|
|
634
|
+
* Served on live sites at /.well-known/oauth-protected-resource, and for a site resource such as the MCP server at
|
|
635
|
+
* /.well-known/oauth-protected-resource/<resource path>.
|
|
630
636
|
* @internal
|
|
631
637
|
* @documentationMaturity preview
|
|
632
638
|
* @fqn wix.identity.oauth2.v1.Oauth2Ng.ProtectedResourceMetadata
|
|
633
639
|
*/
|
|
634
|
-
declare function protectedResourceMetadata(): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
640
|
+
declare function protectedResourceMetadata(options?: ProtectedResourceMetadataOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
641
|
+
interface ProtectedResourceMetadataOptions {
|
|
642
|
+
/**
|
|
643
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
644
|
+
* @maxLength 100
|
|
645
|
+
*/
|
|
646
|
+
resourcePath?: string;
|
|
647
|
+
}
|
|
635
648
|
/**
|
|
636
649
|
* RFC 7009 revocation endpoint for Personal Agents, served on live sites as `https://<site>/_api/oauth2/revoke-token`.
|
|
637
650
|
*
|
|
@@ -676,4 +689,4 @@ interface TokenInfoOptions {
|
|
|
676
689
|
*/
|
|
677
690
|
declare function userInfo(): Promise<NonNullablePaths<UserInfoResponse, `sub`, 0>>;
|
|
678
691
|
|
|
679
|
-
export { type ActionEvent, type AuthorizationServerMetadataRequest, type AuthorizeRequest, type ConsentRequest, 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 InternalTokenResponse, type InternalTokenResponseResultOneOf, type InvalidateUserCodeRequest, type InvalidateUserCodeResponse, type JwksRequest, type PathParametersEntry, type ProtectedResourceMetadataRequest, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type RefreshToken, type RestoreInfo, type RevokeRefreshTokenRequest, type RevokeRefreshTokenResponse, type RevokeTokenOptions, SubjectType, type SubjectTypeWithLiterals, type TokenErrorResponse, type TokenInfoOptions, type TokenInfoRequest, type TokenInfoResponse, type TokenOptions, type TokenRequest, type TokenRequestTenantOneOf, type TokenResponse, type UserBlockedEvent, type UserDeletedEvent, type UserInfoRequest, type UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
692
|
+
export { type ActionEvent, type AuthorizationServerMetadataRequest, type AuthorizeRequest, type ConsentRequest, 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 InternalTokenResponse, type InternalTokenResponseResultOneOf, type InvalidateUserCodeRequest, type InvalidateUserCodeResponse, type JwksRequest, type PathParametersEntry, type ProtectedResourceMetadataOptions, type ProtectedResourceMetadataRequest, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type RefreshToken, type RestoreInfo, type RevokeRefreshTokenRequest, type RevokeRefreshTokenResponse, type RevokeTokenOptions, SubjectType, type SubjectTypeWithLiterals, type TokenErrorResponse, type TokenInfoOptions, type TokenInfoRequest, type TokenInfoResponse, type TokenOptions, type TokenRequest, type TokenRequestTenantOneOf, type TokenResponse, type UserBlockedEvent, type UserDeletedEvent, type UserInfoRequest, type UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };
|
|
@@ -363,6 +363,11 @@ interface AuthorizationServerMetadataRequest {
|
|
|
363
363
|
}
|
|
364
364
|
/** Request for the ProtectedResourceMetadata endpoint. Takes no parameters. */
|
|
365
365
|
interface ProtectedResourceMetadataRequest {
|
|
366
|
+
/**
|
|
367
|
+
* Path of the site resource, such as `_api/mcp`. Empty for the site itself.
|
|
368
|
+
* @maxLength 100
|
|
369
|
+
*/
|
|
370
|
+
resourcePath?: string;
|
|
366
371
|
}
|
|
367
372
|
interface DeviceCodeRequest {
|
|
368
373
|
/** The ID of the application that asks for authorization. */
|
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.69",
|
|
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": "758ac227b937d39fa7bc3a6249b2d01086c19ebb9132d0e5f47abb0e"
|
|
54
54
|
}
|