import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { TokenOptions, RawHttpResponse, ProtectedResourceMetadataOptions, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, UserInfoResponse } from './index.typings.mjs'; 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'; declare function token$1(httpClient: HttpClient): TokenSignature; interface TokenSignature { /** * Creates an access token. * * * The endpoint accepts raw HTTP requests. You must pass the request's body * parameters formatted as bytes in the raw HTTP request's `body` field, * following this template: * `{"grantType": "client_credentials", "client_id": "", "client_secret": "", "instance_id": ""}`. * * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access * token in the `body` field of the raw HTTP response. * * In case the call fails, Wix returns the relevant `4XX` error code in the raw * HTTP response's `statusCode` field and details * about the error in `body`. Error details follow the * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7). */ (options?: TokenOptions): Promise>; } declare function jwks$1(httpClient: HttpClient): JwksSignature; interface JwksSignature { /** * Returns the JWKS (JSON Web Key Set) with the RSA public key used to verify asymmetrically-signed * tokens (e.g. OIDC id_token). Required by external OIDC relying parties. * Serves a non-secret public key. */ (): Promise>; } /** @internal */ declare function authorizationServerMetadata$1(httpClient: HttpClient): AuthorizationServerMetadataSignature; interface AuthorizationServerMetadataSignature { /** * Returns the site's OAuth authorization server metadata (RFC 8414) for personal agents. * Served on live sites at /.well-known/oauth-authorization-server/_api/oauth2. */ (): Promise>; } /** @internal */ declare function protectedResourceMetadata$1(httpClient: HttpClient): ProtectedResourceMetadataSignature; interface ProtectedResourceMetadataSignature { /** * Returns the site's OAuth protected resource metadata (RFC 9728) for personal agents. * Served on live sites at /.well-known/oauth-protected-resource, and for a site resource such as the MCP server at * /.well-known/oauth-protected-resource/. */ (options?: ProtectedResourceMetadataOptions): Promise>; } /** @internal */ declare function revokeToken$1(httpClient: HttpClient): RevokeTokenSignature; interface RevokeTokenSignature { /** * RFC 7009 revocation endpoint for Personal Agents, served on live sites as `https:///_api/oauth2/revoke-token`. * * The agent posts a form body: `token`, an optional `token_type_hint`, and its `client_assertion` (private_key_jwt). * The refresh token is revoked; an unknown token, or one issued to another client, still returns 200. */ (options?: RevokeTokenOptions): Promise>; } declare function tokenInfo$1(httpClient: HttpClient): TokenInfoSignature; interface TokenInfoSignature { /** * Token Introspection Endpoint. */ (options?: TokenInfoOptions): Promise>; } declare function userInfo$1(httpClient: HttpClient): UserInfoSignature; interface UserInfoSignature { /** * OpenID Connect UserInfo endpoint * Should be called with user access token obtained in OIDC flow as Authorization header * @returns UserInfo endpoint response for OpenID Connect */ (): Promise>; } declare const token: MaybeContext & typeof token$1>; declare const jwks: MaybeContext & typeof jwks$1>; /** @internal */ declare const authorizationServerMetadata: MaybeContext & typeof authorizationServerMetadata$1>; /** @internal */ declare const protectedResourceMetadata: MaybeContext & typeof protectedResourceMetadata$1>; /** @internal */ declare const revokeToken: MaybeContext & typeof revokeToken$1>; declare const tokenInfo: MaybeContext & typeof tokenInfo$1>; declare const userInfo: MaybeContext & typeof userInfo$1>; export { ProtectedResourceMetadataOptions, RawHttpResponse, RevokeTokenOptions, TokenInfoOptions, TokenInfoResponse, TokenOptions, UserInfoResponse, authorizationServerMetadata, jwks, protectedResourceMetadata, revokeToken, token, tokenInfo, userInfo };