@wix/auto_sdk_identity_authentication 1.0.16 → 1.0.18
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 +2 -8
- package/build/cjs/index.js +10 -63
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -12
- package/build/cjs/index.typings.js +10 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -9
- package/build/cjs/meta.js +10 -44
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -8
- package/build/es/index.mjs +10 -62
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -12
- package/build/es/index.typings.mjs +10 -54
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -9
- package/build/es/meta.mjs +10 -43
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -8
- package/build/internal/cjs/index.js +10 -63
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -12
- package/build/internal/cjs/index.typings.js +10 -55
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -9
- package/build/internal/cjs/meta.js +10 -44
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -8
- package/build/internal/es/index.mjs +10 -62
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1 -12
- package/build/internal/es/index.typings.mjs +10 -54
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -9
- package/build/internal/es/meta.mjs +10 -43
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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 };\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 loginCallback(payload: object): RequestOptionsFactory<any> {\n function __loginCallback({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'GET' as any,\n methodFqn:\n 'wix.iam.authentication.v1.AuthenticationService.LoginCallback',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v1/callback',\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 __loginCallback;\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 loginCallback(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginCallbackRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginCallbackRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.loginCallback(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/callback',\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,qBAAAC;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;AAAA,QACT,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ChB,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","loginCallback","loginV2","logout","registerV2","signOn","verify","import_float","import_timestamp","import_rest_modules","payload","registerV2","loginV2","changePassword","loginCallback","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 };\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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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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { LoginId, RegisterV2Options, StateMachineResponse, RegisterV2ApplicationErrors, RegisterV2ValidationErrors, LoginV2Options, LoginV2ApplicationErrors, LoginV2ValidationErrors,
|
|
2
|
+
import { LoginId, RegisterV2Options, StateMachineResponse, RegisterV2ApplicationErrors, RegisterV2ValidationErrors, LoginV2Options, LoginV2ApplicationErrors, LoginV2ValidationErrors, SignOnOptions, SignOnResponse, LogoutOptions, RawHttpResponse, FactorTypeWithLiterals, VerifyOptions } from './index.typings.mjs';
|
|
3
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';
|
|
4
4
|
|
|
5
5
|
declare function registerV2$1(httpClient: HttpClient): RegisterV2Signature;
|
|
@@ -43,11 +43,6 @@ interface ChangePasswordSignature {
|
|
|
43
43
|
*/
|
|
44
44
|
(newPassword: string): Promise<void>;
|
|
45
45
|
}
|
|
46
|
-
declare function loginCallback$1(httpClient: HttpClient): LoginCallbackSignature;
|
|
47
|
-
interface LoginCallbackSignature {
|
|
48
|
-
/** */
|
|
49
|
-
(options?: LoginCallbackOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
|
|
50
|
-
}
|
|
51
46
|
declare function signOn$1(httpClient: HttpClient): SignOnSignature;
|
|
52
47
|
interface SignOnSignature {
|
|
53
48
|
/** @param - the identifier of the identity */
|
|
@@ -69,9 +64,8 @@ interface VerifySignature {
|
|
|
69
64
|
declare const registerV2: MaybeContext<BuildRESTFunction<typeof registerV2$1> & typeof registerV2$1>;
|
|
70
65
|
declare const loginV2: MaybeContext<BuildRESTFunction<typeof loginV2$1> & typeof loginV2$1>;
|
|
71
66
|
declare const changePassword: MaybeContext<BuildRESTFunction<typeof changePassword$1> & typeof changePassword$1>;
|
|
72
|
-
declare const loginCallback: MaybeContext<BuildRESTFunction<typeof loginCallback$1> & typeof loginCallback$1>;
|
|
73
67
|
declare const signOn: MaybeContext<BuildRESTFunction<typeof signOn$1> & typeof signOn$1>;
|
|
74
68
|
declare const logout: MaybeContext<BuildRESTFunction<typeof logout$1> & typeof logout$1>;
|
|
75
69
|
declare const verify: MaybeContext<BuildRESTFunction<typeof verify$1> & typeof verify$1>;
|
|
76
70
|
|
|
77
|
-
export {
|
|
71
|
+
export { LoginId, LoginV2Options, LogoutOptions, RawHttpResponse, RegisterV2Options, SignOnOptions, SignOnResponse, StateMachineResponse, VerifyOptions, changePassword, loginV2, logout, registerV2, signOn, verify };
|
|
@@ -77,6 +77,16 @@ function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
|
77
77
|
srcPath: "/_api/iam/authentication",
|
|
78
78
|
destPath: ""
|
|
79
79
|
}
|
|
80
|
+
],
|
|
81
|
+
"*.dev.wix-code.com": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/iam/authentication/v2/sign-on",
|
|
84
|
+
destPath: "/v2/sign-on"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/iam/authentication/v1/logout",
|
|
88
|
+
destPath: "/v1/logout"
|
|
89
|
+
}
|
|
80
90
|
]
|
|
81
91
|
};
|
|
82
92
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -210,30 +220,6 @@ function changePassword(payload) {
|
|
|
210
220
|
}
|
|
211
221
|
return __changePassword;
|
|
212
222
|
}
|
|
213
|
-
function loginCallback(payload) {
|
|
214
|
-
function __loginCallback({ host }) {
|
|
215
|
-
const metadata = {
|
|
216
|
-
entityFqdn: "wix.iam.authentication.v1.authentication",
|
|
217
|
-
method: "GET",
|
|
218
|
-
methodFqn: "wix.iam.authentication.v1.AuthenticationService.LoginCallback",
|
|
219
|
-
packageName: PACKAGE_NAME,
|
|
220
|
-
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
221
|
-
protoPath: "/v1/callback",
|
|
222
|
-
data: payload,
|
|
223
|
-
host
|
|
224
|
-
}),
|
|
225
|
-
params: toURLSearchParams(payload),
|
|
226
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
227
|
-
{
|
|
228
|
-
transformFn: transformRESTBytesToSDKBytes,
|
|
229
|
-
paths: [{ path: "body" }]
|
|
230
|
-
}
|
|
231
|
-
])
|
|
232
|
-
};
|
|
233
|
-
return metadata;
|
|
234
|
-
}
|
|
235
|
-
return __loginCallback;
|
|
236
|
-
}
|
|
237
223
|
function signOn(payload) {
|
|
238
224
|
function __signOn({ host }) {
|
|
239
225
|
const serializedData = transformPaths(payload, [
|
|
@@ -570,35 +556,6 @@ async function changePassword2(newPassword) {
|
|
|
570
556
|
throw transformedError;
|
|
571
557
|
}
|
|
572
558
|
}
|
|
573
|
-
async function loginCallback2(options) {
|
|
574
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
575
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
576
|
-
state: options?.state,
|
|
577
|
-
sessionToken: options?.sessionToken
|
|
578
|
-
});
|
|
579
|
-
const reqOpts = loginCallback(payload);
|
|
580
|
-
sideEffects?.onSiteCall?.();
|
|
581
|
-
try {
|
|
582
|
-
const result = await httpClient.request(reqOpts);
|
|
583
|
-
sideEffects?.onSuccess?.(result);
|
|
584
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
585
|
-
} catch (err) {
|
|
586
|
-
const transformedError = sdkTransformError(
|
|
587
|
-
err,
|
|
588
|
-
{
|
|
589
|
-
spreadPathsToArguments: {},
|
|
590
|
-
explicitPathsToArguments: {
|
|
591
|
-
state: "$[0].state",
|
|
592
|
-
sessionToken: "$[0].sessionToken"
|
|
593
|
-
},
|
|
594
|
-
singleArgumentUnchanged: false
|
|
595
|
-
},
|
|
596
|
-
["options"]
|
|
597
|
-
);
|
|
598
|
-
sideEffects?.onError?.(err);
|
|
599
|
-
throw transformedError;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
559
|
async function signOn2(loginId, options) {
|
|
603
560
|
const { httpClient, sideEffects } = arguments[2];
|
|
604
561
|
const payload = transformPaths2(
|
|
@@ -751,13 +708,6 @@ function changePassword3(httpClient) {
|
|
|
751
708
|
{ httpClient }
|
|
752
709
|
);
|
|
753
710
|
}
|
|
754
|
-
function loginCallback3(httpClient) {
|
|
755
|
-
return (options) => loginCallback2(
|
|
756
|
-
options,
|
|
757
|
-
// @ts-ignore
|
|
758
|
-
{ httpClient }
|
|
759
|
-
);
|
|
760
|
-
}
|
|
761
711
|
function signOn3(httpClient) {
|
|
762
712
|
return (loginId, options) => signOn2(
|
|
763
713
|
loginId,
|
|
@@ -787,7 +737,6 @@ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
|
787
737
|
var registerV24 = /* @__PURE__ */ createRESTModule(registerV23);
|
|
788
738
|
var loginV24 = /* @__PURE__ */ createRESTModule(loginV23);
|
|
789
739
|
var changePassword4 = /* @__PURE__ */ createRESTModule(changePassword3);
|
|
790
|
-
var loginCallback4 = /* @__PURE__ */ createRESTModule(loginCallback3);
|
|
791
740
|
var signOn4 = /* @__PURE__ */ createRESTModule(signOn3);
|
|
792
741
|
var logout4 = /* @__PURE__ */ createRESTModule(logout3);
|
|
793
742
|
var verify4 = /* @__PURE__ */ createRESTModule(verify3);
|
|
@@ -806,7 +755,6 @@ export {
|
|
|
806
755
|
TenantType,
|
|
807
756
|
UserVerificationRequirement,
|
|
808
757
|
changePassword4 as changePassword,
|
|
809
|
-
loginCallback4 as loginCallback,
|
|
810
758
|
loginV24 as loginV2,
|
|
811
759
|
logout4 as logout,
|
|
812
760
|
registerV24 as registerV2,
|