@wix/auto_sdk_identity_authentication 1.0.23 → 1.0.25
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 +7 -7
- package/build/cjs/index.js +4 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +21 -6
- package/build/cjs/index.typings.js +4 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +4 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +4 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +21 -6
- package/build/es/index.typings.mjs +4 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +4 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.js +4 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -6
- package/build/internal/cjs/index.typings.js +4 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +4 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.mjs +4 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +21 -6
- package/build/internal/es/index.typings.mjs +4 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +4 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/iam-authentication-v1-authentication-authentication.http.ts","../../src/iam-authentication-v1-authentication-authentication.meta.ts"],"sourcesContent":["export * from './src/iam-authentication-v1-authentication-authentication.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIamAuthenticationV1AuthenticationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/iam/wix/google',\n destPath: '/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69',\n },\n {\n srcPath: '/authentication',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n {\n srcPath: '/iam/authentication',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/authentication',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/iam/authentication/v2/sign-on',\n destPath: '/v2/sign-on',\n },\n {\n srcPath: '/iam/authentication/v1/logout',\n destPath: '/v1/logout',\n },\n {\n srcPath: '/iam/authentication/v2/change-password',\n destPath: '/v2/change-password',\n },\n {\n srcPath: '/iam/authentication/v2/verify',\n destPath: '/v2/verify',\n },\n {\n srcPath: '/iam/authentication/v2/login',\n destPath: '/v2/login',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_authentication';\n\n/**\n * Registers a new member.\n *\n * Typically, after a successful registration, you generate and use member tokens for the\n * registered member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n *\n * If the email used to register the member already exists as a contact email, the registering\n * member need to verify the email address using a code that is sent to the address.\n */\nexport function registerV2(payload: object): RequestOptionsFactory<any> {\n function __registerV2({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.RegisterV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/register',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __registerV2;\n}\n\n/**\n * Logs in an existing member.\n *\n * Typically, after a successful login, you generate and use member tokens for the\n * logged-in member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n */\nexport function loginV2(payload: object): RequestOptionsFactory<any> {\n function __loginV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/login',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __loginV2;\n}\n\n/** Changes the password of a logged in user. */\nexport function changePassword(payload: object): RequestOptionsFactory<any> {\n function __changePassword({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn:\n 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/change-password',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changePassword;\n}\n\nexport function signOn(payload: object): RequestOptionsFactory<any> {\n function __signOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.SignOn',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/sign-on',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __signOn;\n}\n\n/** Logs out a member. */\nexport function logout(payload: object): RequestOptionsFactory<any> {\n function __logout({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'GET' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v1/logout',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __logout;\n}\n\nexport function verify(payload: object): RequestOptionsFactory<any> {\n function __verify({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Verify',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/{factorType}/verify',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __verify;\n}\n","import * as ambassadorWixIamAuthenticationV1Authentication from './iam-authentication-v1-authentication-authentication.http.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationTypes from './iam-authentication-v1-authentication-authentication.types.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes from './iam-authentication-v1-authentication-authentication.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function registerV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.registerV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/register',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function loginV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.loginV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/login',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function changePassword(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.changePassword(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/change-password',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function signOn(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.signOn(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/sign-on',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function logout(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.logout(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/logout',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function verify(): __PublicMethodMetaInfo<\n 'POST',\n { factorType: string },\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = { factorType: ':factorType' } as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.verify(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/{factorType}/verify',\n pathParams: { factorType: 'factorType' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,eAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,cAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,MACrB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SA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B;AAAA,EAC1B;AACF;AAEO,SAASC,UAOd;AACA,QAAM,UAAU,EAAE,YAAY,cAAc;AAE5C,QAAM,oBAC2C,OAAO,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["changePassword","loginV2","logout","registerV2","signOn","verify","import_float","import_timestamp","import_rest_modules","payload","registerV2","loginV2","changePassword","signOn","logout","verify"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/iam-authentication-v1-authentication-authentication.http.ts","../../src/iam-authentication-v1-authentication-authentication.meta.ts"],"sourcesContent":["export * from './src/iam-authentication-v1-authentication-authentication.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIamAuthenticationV1AuthenticationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/iam/wix/google',\n destPath: '/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69',\n },\n {\n srcPath: '/authentication',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n {\n srcPath: '/iam/authentication',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/authentication',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/iam/authentication/v2/sign-on',\n destPath: '/v2/sign-on',\n },\n {\n srcPath: '/iam/authentication/v1/logout',\n destPath: '/v1/logout',\n },\n {\n srcPath: '/iam/authentication/v2/change-password',\n destPath: '/v2/change-password',\n },\n {\n srcPath: '/iam/authentication/v2/verify',\n destPath: '/v2/verify',\n },\n {\n srcPath: '/iam/authentication/v2/login',\n destPath: '/v2/login',\n },\n {\n srcPath: '/iam/authentication/v2/register',\n destPath: '/v2/register',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_authentication';\n\n/**\n * Registers a new member.\n *\n * Typically, after a successful registration, you generate and use member tokens for the\n * registered member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n *\n * If the email used to register the member already exists as a contact email, the registering\n * member need to verify the email address using a code that is sent to the address.\n */\nexport function registerV2(payload: object): RequestOptionsFactory<any> {\n function __registerV2({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.RegisterV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/register',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __registerV2;\n}\n\n/**\n * Logs in an existing member.\n *\n * Typically, after a successful login, you generate and use member tokens for the\n * logged-in member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n */\nexport function loginV2(payload: object): RequestOptionsFactory<any> {\n function __loginV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/login',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __loginV2;\n}\n\n/** Changes the password of a logged in user. */\nexport function changePassword(payload: object): RequestOptionsFactory<any> {\n function __changePassword({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn:\n 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/change-password',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changePassword;\n}\n\nexport function signOn(payload: object): RequestOptionsFactory<any> {\n function __signOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.SignOn',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/sign-on',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __signOn;\n}\n\n/** Logs out a member. */\nexport function logout(payload: object): RequestOptionsFactory<any> {\n function __logout({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'GET' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v1/logout',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __logout;\n}\n\nexport function verify(payload: object): RequestOptionsFactory<any> {\n function __verify({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Verify',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/{factorType}/verify',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __verify;\n}\n","import * as ambassadorWixIamAuthenticationV1Authentication from './iam-authentication-v1-authentication-authentication.http.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationTypes from './iam-authentication-v1-authentication-authentication.types.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes from './iam-authentication-v1-authentication-authentication.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function registerV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.registerV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/register',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function loginV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.loginV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/login',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function changePassword(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.changePassword(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/change-password',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function signOn(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.signOn(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/sign-on',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function logout(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.logout(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/logout',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function verify(): __PublicMethodMetaInfo<\n 'POST',\n { factorType: string },\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = { factorType: ':factorType' } as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.verify(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/{factorType}/verify',\n pathParams: { factorType: 'factorType' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,eAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,cAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,MACrB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;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AA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,UAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2C,OAAO,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,UAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2C,OAAO,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,UAOd;AACA,QAAM,UAAU,EAAE,YAAY,cAAc;AAE5C,QAAM,oBAC2C,OAAO,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["changePassword","loginV2","logout","registerV2","signOn","verify","import_float","import_timestamp","import_rest_modules","payload","registerV2","loginV2","changePassword","signOn","logout","verify"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { LoginId, RegisterV2Options, StateMachineResponse, RegisterV2ApplicationErrors, RegisterV2ValidationErrors, LoginV2Options, LoginV2ApplicationErrors, LoginV2ValidationErrors, SignOnOptions, SignOnResponse, LogoutOptions, RawHttpResponse, FactorTypeWithLiterals, VerifyOptions } from './index.typings.mjs';
|
|
3
|
-
export { Address, AddressTag, AddressWrapper, Authentication, AuthenticationExtensionInputs, AuthenticationExtensionInputsLargeBlobOperationOneOf, AuthenticatorConnection, CallVerifyData, CaptchaToken, CaptchaTokenTokenOneOf, ChangePasswordRequest, ChangePasswordResponse, Connection, ConnectionTypeOneOf, CustomField, CustomValue, CustomValueValueOneOf, Email, EmailTag, ExternalEmailVerifyData, Factor, FactorStatus, FactorType, HeadersEntry, Identity, IdentityProfile, IdpConnection, ListValue, LoginCallbackRequest, LoginIdTypeOneOf, LoginV2Request, LoginWithIdpConnectionRequest, LoginWithIdpConnectionTokenParamsRequest, LogoutRequest, MapValue, Metadata, MfaChallengeData, MfaReason, PathParametersEntry, Phone, PhoneTag, PrivacyStatus, PublicKeyCredentialDescriptor, PushChallengeData, PushVerifyData, QueryParametersEntry, RawHttpRequest, Reason, RegisterV2Request, RequireMfaData, SecondaryEmail, SignOnRequest, SmsVerifyData, StateMachineResponseStateDataOneOf, StateType, Status, StatusName, StatusV2, TenantType, TotpVerifyData, UserVerificationRequirement, V1CustomValue, V1CustomValueValueOneOf, V1Factor, V1ListValue, V1MapValue, VerificationChallenge, VerificationChallengeFactorChallengeDataOneOf, VerifyOptionsFactorDataOneOf, VerifyRequest, VerifyRequestFactorDataOneOf, WebAuthnChallengeData, WebAuthnVerifyData } from './index.typings.mjs';
|
|
3
|
+
export { Address, AddressTag, AddressTagWithLiterals, AddressWrapper, Authentication, AuthenticationExtensionInputs, AuthenticationExtensionInputsLargeBlobOperationOneOf, AuthenticatorConnection, CallVerifyData, CaptchaToken, CaptchaTokenTokenOneOf, ChangePasswordRequest, ChangePasswordResponse, Connection, ConnectionTypeOneOf, CustomField, CustomValue, CustomValueValueOneOf, Email, EmailTag, EmailTagWithLiterals, ExternalEmailVerifyData, Factor, FactorStatus, FactorStatusWithLiterals, FactorType, GetWebauthnChallengeRequest, GetWebauthnChallengeResponse, HeadersEntry, Identity, IdentityProfile, IdpConnection, ListValue, LoginCallbackRequest, LoginIdTypeOneOf, LoginV2Request, LoginWithIdpConnectionRequest, LoginWithIdpConnectionTokenParamsRequest, LogoutRequest, MapValue, Metadata, MfaChallengeData, MfaReason, MfaReasonWithLiterals, PathParametersEntry, Phone, PhoneTag, PhoneTagWithLiterals, PrivacyStatus, PrivacyStatusWithLiterals, PublicKeyCredentialDescriptor, PushChallengeData, PushVerifyData, QueryParametersEntry, RawHttpRequest, Reason, ReasonWithLiterals, RegisterV2Request, RequireMfaData, SecondaryEmail, SignOnRequest, SmsVerifyData, StateMachineResponseStateDataOneOf, StateType, StateTypeWithLiterals, Status, StatusName, StatusNameWithLiterals, StatusV2, StatusWithLiterals, TenantType, TenantTypeWithLiterals, TotpVerifyData, UserVerificationRequirement, UserVerificationRequirementWithLiterals, V1CustomValue, V1CustomValueValueOneOf, V1Factor, V1ListValue, V1MapValue, VerificationChallenge, VerificationChallengeFactorChallengeDataOneOf, VerifyOptionsFactorDataOneOf, VerifyRequest, VerifyRequestFactorDataOneOf, WebAuthnChallengeData, WebAuthnVerifyData } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function registerV2$1(httpClient: HttpClient): RegisterV2Signature;
|
|
6
6
|
interface RegisterV2Signature {
|
|
@@ -15,7 +15,7 @@ interface RegisterV2Signature {
|
|
|
15
15
|
* member need to verify the email address using a code that is sent to the address.
|
|
16
16
|
* @param - Identifier of the registering member.
|
|
17
17
|
*/
|
|
18
|
-
(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status
|
|
18
|
+
(loginId: LoginId, options?: RegisterV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`, 7> & {
|
|
19
19
|
__applicationErrorsType?: RegisterV2ApplicationErrors;
|
|
20
20
|
__validationErrorsType?: RegisterV2ValidationErrors;
|
|
21
21
|
}>;
|
|
@@ -30,7 +30,7 @@ interface LoginV2Signature {
|
|
|
30
30
|
* Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).
|
|
31
31
|
* @param - Identifier of identity logging in.
|
|
32
32
|
*/
|
|
33
|
-
(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status
|
|
33
|
+
(loginId: LoginId, options?: LoginV2Options): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`, 7> & {
|
|
34
34
|
__applicationErrorsType?: LoginV2ApplicationErrors;
|
|
35
35
|
__validationErrorsType?: LoginV2ValidationErrors;
|
|
36
36
|
}>;
|
|
@@ -46,19 +46,19 @@ interface ChangePasswordSignature {
|
|
|
46
46
|
declare function signOn$1(httpClient: HttpClient): SignOnSignature;
|
|
47
47
|
interface SignOnSignature {
|
|
48
48
|
/** @param - the identifier of the identity */
|
|
49
|
-
(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status
|
|
49
|
+
(loginId: LoginId, options?: SignOnOptions): Promise<NonNullablePaths<SignOnResponse, `sessionToken` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`, 7>>;
|
|
50
50
|
}
|
|
51
51
|
declare function logout$1(httpClient: HttpClient): LogoutSignature;
|
|
52
52
|
interface LogoutSignature {
|
|
53
53
|
/**
|
|
54
54
|
* Logs out a member.
|
|
55
55
|
*/
|
|
56
|
-
(options?: LogoutOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value
|
|
56
|
+
(options?: LogoutOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
57
57
|
}
|
|
58
58
|
declare function verify$1(httpClient: HttpClient): VerifySignature;
|
|
59
59
|
interface VerifySignature {
|
|
60
60
|
/** */
|
|
61
|
-
(factorType: FactorTypeWithLiterals, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status
|
|
61
|
+
(factorType: FactorTypeWithLiterals, options?: VerifyOptions): Promise<NonNullablePaths<StateMachineResponse, `state` | `identity.connections` | `identity.connections.${number}.idpConnection.idpConnectionId` | `identity.connections.${number}.idpConnection.idpUserId` | `identity.connections.${number}.authenticatorConnection.authenticatorConnectionId` | `identity.connections.${number}.authenticatorConnection.reEnrollmentRequired` | `identity.identityProfile.emails` | `identity.identityProfile.phones` | `identity.identityProfile.labels` | `identity.identityProfile.privacyStatus` | `identity.identityProfile.customFields` | `identity.identityProfile.customFields.${number}.name` | `identity.identityProfile.customFields.${number}.value.strValue` | `identity.identityProfile.customFields.${number}.value.numValue` | `identity.identityProfile.secondaryEmails` | `identity.identityProfile.secondaryEmails.${number}.email` | `identity.identityProfile.secondaryEmails.${number}.tag` | `identity.identityProfile.phonesV2` | `identity.identityProfile.phonesV2.${number}.phone` | `identity.identityProfile.phonesV2.${number}.tag` | `identity.identityProfile.addresses` | `identity.identityProfile.addresses.${number}.tag` | `identity.email.address` | `identity.email.isVerified` | `identity.status.name` | `identity.status.reasons` | `identity.factors` | `identity.factors.${number}.factorId` | `identity.factors.${number}.type` | `identity.factors.${number}.status`, 7>>;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare const registerV2: MaybeContext<BuildRESTFunction<typeof registerV2$1> & typeof registerV2$1>;
|
|
@@ -68,4 +68,4 @@ declare const signOn: MaybeContext<BuildRESTFunction<typeof signOn$1> & typeof s
|
|
|
68
68
|
declare const logout: MaybeContext<BuildRESTFunction<typeof logout$1> & typeof logout$1>;
|
|
69
69
|
declare const verify: MaybeContext<BuildRESTFunction<typeof verify$1> & typeof verify$1>;
|
|
70
70
|
|
|
71
|
-
export { LoginId, LoginV2Options, LogoutOptions, RawHttpResponse, RegisterV2Options, SignOnOptions, SignOnResponse, StateMachineResponse, VerifyOptions, changePassword, loginV2, logout, registerV2, signOn, verify };
|
|
71
|
+
export { FactorTypeWithLiterals, LoginId, LoginV2ApplicationErrors, LoginV2Options, LoginV2ValidationErrors, LogoutOptions, RawHttpResponse, RegisterV2ApplicationErrors, RegisterV2Options, RegisterV2ValidationErrors, SignOnOptions, SignOnResponse, StateMachineResponse, VerifyOptions, changePassword, loginV2, logout, registerV2, signOn, verify };
|
package/build/es/index.mjs
CHANGED
|
@@ -98,6 +98,10 @@ function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
|
98
98
|
{
|
|
99
99
|
srcPath: "/iam/authentication/v2/login",
|
|
100
100
|
destPath: "/v2/login"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/iam/authentication/v2/register",
|
|
104
|
+
destPath: "/v2/register"
|
|
101
105
|
}
|
|
102
106
|
]
|
|
103
107
|
};
|