@wix/auto_sdk_identity_authentication 1.0.3 → 1.0.6

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.
Files changed (130) hide show
  1. package/build/{internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +203 -251
  2. package/build/{cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +203 -251
  3. package/build/index.d.mts +71 -0
  4. package/build/index.d.ts +71 -0
  5. package/build/index.js +859 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +816 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/iam-authentication-v1-authentication-authentication.universal.d.ts → internal/iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts} +203 -251
  10. package/build/internal/{es/src/iam-authentication-v1-authentication-authentication.universal.d.ts → iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts} +203 -251
  11. package/build/internal/index.d.mts +71 -0
  12. package/build/internal/index.d.ts +71 -0
  13. package/build/internal/index.js +859 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +816 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → internal/meta.d.mts} +107 -281
  18. package/build/internal/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.ts} +107 -281
  19. package/build/internal/meta.js +518 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +485 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.mts} +107 -281
  24. package/build/{internal/es/src/iam-authentication-v1-authentication-authentication.types.d.ts → meta.d.ts} +107 -281
  25. package/build/meta.js +518 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +485 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  40. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -26
  41. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  42. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  43. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -334
  44. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  45. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  46. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  47. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  48. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  49. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -61
  50. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  51. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -115
  52. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  53. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -450
  54. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  66. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  67. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  68. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  69. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -324
  70. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  71. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  72. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  73. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  74. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  75. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  76. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  77. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -112
  78. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  79. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -417
  80. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  91. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -26
  92. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  93. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  94. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -334
  95. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  96. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  97. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  98. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  99. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  100. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -61
  101. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  102. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -115
  103. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  104. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -450
  105. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  116. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  117. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  118. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  119. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -324
  120. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  121. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  122. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  123. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  124. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  125. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  126. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  127. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -112
  128. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  129. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -417
  130. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
package/build/cjs/meta.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/iam-authentication-v1-authentication-authentication.meta.js"), exports);
18
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oGAAkF"}
@@ -1,11 +0,0 @@
1
- import { registerV2 as publicRegisterV2, loginV2 as publicLoginV2, changePassword as publicChangePassword, loginCallback as publicLoginCallback, signOn as publicSignOn, logout as publicLogout, verify as publicVerify } from './iam-authentication-v1-authentication-authentication.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const registerV2: MaybeContext<BuildRESTFunction<typeof publicRegisterV2> & typeof publicRegisterV2>;
4
- export declare const loginV2: MaybeContext<BuildRESTFunction<typeof publicLoginV2> & typeof publicLoginV2>;
5
- export declare const changePassword: MaybeContext<BuildRESTFunction<typeof publicChangePassword> & typeof publicChangePassword>;
6
- export declare const loginCallback: MaybeContext<BuildRESTFunction<typeof publicLoginCallback> & typeof publicLoginCallback>;
7
- export declare const signOn: MaybeContext<BuildRESTFunction<typeof publicSignOn> & typeof publicSignOn>;
8
- export declare const logout: MaybeContext<BuildRESTFunction<typeof publicLogout> & typeof publicLogout>;
9
- export declare const verify: MaybeContext<BuildRESTFunction<typeof publicVerify> & typeof publicVerify>;
10
- export { PrivacyStatus, EmailTag, PhoneTag, AddressTag, StateType, StatusName, Reason, FactorType, Status, FactorStatus, MfaReason, TenantType, } from './iam-authentication-v1-authentication-authentication.universal.js';
11
- export { Authentication, RegisterV2Request, LoginId, LoginIdTypeOneOf, IdentityProfile, CustomField, V1CustomValue, V1CustomValueValueOneOf, V1ListValue, V1MapValue, SecondaryEmail, Phone, AddressWrapper, Address, CaptchaToken, CaptchaTokenTokenOneOf, StateMachineResponse, StateMachineResponseStateDataOneOf, Identity, Connection, ConnectionTypeOneOf, IdpConnection, AuthenticatorConnection, Metadata, Email, StatusV2, Factor, CustomValue, CustomValueValueOneOf, ListValue, MapValue, RequireMfaData, V1Factor, MfaChallengeData, VerificationChallenge, VerificationChallengeFactorChallengeDataOneOf, PushChallengeData, LoginV2Request, ChangePasswordRequest, ChangePasswordResponse, LoginWithIdpConnectionRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, LoginCallbackRequest, LoginWithIdpConnectionTokenParamsRequest, SignOnRequest, SignOnResponse, LogoutRequest, VerifyRequest, VerifyRequestFactorDataOneOf, SmsVerifyData, CallVerifyData, ExternalEmailVerifyData, TotpVerifyData, PushVerifyData, StateMachineResponseNonNullableFields, RawHttpResponseNonNullableFields, SignOnResponseNonNullableFields, RegisterV2Options, LoginV2Options, LoginCallbackOptions, SignOnOptions, LogoutOptions, VerifyOptions, VerifyOptionsFactorDataOneOf, } from './iam-authentication-v1-authentication-authentication.universal.js';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TenantType = exports.MfaReason = exports.FactorStatus = exports.Status = exports.FactorType = exports.Reason = exports.StatusName = exports.StateType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.PrivacyStatus = exports.verify = exports.logout = exports.signOn = exports.loginCallback = exports.changePassword = exports.loginV2 = exports.registerV2 = void 0;
4
- const iam_authentication_v1_authentication_authentication_public_js_1 = require("./iam-authentication-v1-authentication-authentication.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.registerV2 = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.registerV2);
7
- exports.loginV2 = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.loginV2);
8
- exports.changePassword = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.changePassword);
9
- exports.loginCallback = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.loginCallback);
10
- exports.signOn = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.signOn);
11
- exports.logout = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.logout);
12
- exports.verify = (0, rest_modules_1.createRESTModule)(iam_authentication_v1_authentication_authentication_public_js_1.verify);
13
- var iam_authentication_v1_authentication_authentication_universal_js_1 = require("./iam-authentication-v1-authentication-authentication.universal.js");
14
- Object.defineProperty(exports, "PrivacyStatus", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.PrivacyStatus; } });
15
- Object.defineProperty(exports, "EmailTag", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.EmailTag; } });
16
- Object.defineProperty(exports, "PhoneTag", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.PhoneTag; } });
17
- Object.defineProperty(exports, "AddressTag", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.AddressTag; } });
18
- Object.defineProperty(exports, "StateType", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.StateType; } });
19
- Object.defineProperty(exports, "StatusName", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.StatusName; } });
20
- Object.defineProperty(exports, "Reason", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.Reason; } });
21
- Object.defineProperty(exports, "FactorType", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.FactorType; } });
22
- Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.Status; } });
23
- Object.defineProperty(exports, "FactorStatus", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.FactorStatus; } });
24
- Object.defineProperty(exports, "MfaReason", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.MfaReason; } });
25
- Object.defineProperty(exports, "TenantType", { enumerable: true, get: function () { return iam_authentication_v1_authentication_authentication_universal_js_1.TenantType; } });
26
- //# sourceMappingURL=iam-authentication-v1-authentication-authentication.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iam-authentication-v1-authentication-authentication.context.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.context.ts"],"names":[],"mappings":";;;AAAA,mJAQyE;AACzE,gEAAiE;AAGpD,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,0EAAgB,CAAC,CAAC;AACxC,QAAA,OAAO,GAEF,IAAA,+BAAgB,EAAC,uEAAa,CAAC,CAAC;AACrC,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,8EAAoB,CAAC,CAAC;AAC5C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,6EAAmB,CAAC,CAAC;AAC3C,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,sEAAY,CAAC,CAAC;AACpC,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,sEAAY,CAAC,CAAC;AACpC,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,sEAAY,CAAC,CAAC;AAEjD,uJAa4E;AAZ1E,iKAAA,aAAa,OAAA;AACb,4JAAA,QAAQ,OAAA;AACR,4JAAA,QAAQ,OAAA;AACR,8JAAA,UAAU,OAAA;AACV,6JAAA,SAAS,OAAA;AACT,8JAAA,UAAU,OAAA;AACV,0JAAA,MAAM,OAAA;AACN,8JAAA,UAAU,OAAA;AACV,0JAAA,MAAM,OAAA;AACN,gKAAA,YAAY,OAAA;AACZ,6JAAA,SAAS,OAAA;AACT,8JAAA,UAAU,OAAA"}
@@ -1,27 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Registers a new member.
4
- *
5
- * Typically, after a successful registration, you generate and use member tokens for the
6
- * registered member so that subsequent API calls are called as part of a member session.
7
- * 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).
8
- *
9
- * If the email used to register the member already exists as a contact email, the registering
10
- * member need to verify the email address using a code that is sent to the address.
11
- */
12
- export declare function registerV2(payload: object): RequestOptionsFactory<any>;
13
- /**
14
- * Logs in an existing member.
15
- *
16
- * Typically, after a successful login, you generate and use member tokens for the
17
- * logged-in member so that subsequent API calls are called as part of a member session.
18
- * 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).
19
- */
20
- export declare function loginV2(payload: object): RequestOptionsFactory<any>;
21
- /** Changes the password of a logged in user. */
22
- export declare function changePassword(payload: object): RequestOptionsFactory<any>;
23
- export declare function loginCallback(payload: object): RequestOptionsFactory<any>;
24
- export declare function signOn(payload: object): RequestOptionsFactory<any>;
25
- /** Logs out a member. */
26
- export declare function logout(payload: object): RequestOptionsFactory<any>;
27
- export declare function verify(payload: object): RequestOptionsFactory<any>;
@@ -1,334 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.verify = exports.logout = exports.signOn = exports.loginCallback = exports.changePassword = exports.loginV2 = exports.registerV2 = void 0;
4
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
- const float_1 = require("@wix/sdk-runtime/transformations/float");
6
- const float_2 = require("@wix/sdk-runtime/transformations/float");
7
- const bytes_1 = require("@wix/sdk-runtime/transformations/bytes");
8
- const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
9
- const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
10
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
11
- const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
12
- function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
13
- const domainToMappings = {
14
- _: [
15
- {
16
- srcPath: '/_api/iam/authentication',
17
- destPath: '',
18
- },
19
- ],
20
- 'users._base_domain_': [
21
- {
22
- srcPath: '/iam/wix/google',
23
- destPath: '/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69',
24
- },
25
- {
26
- srcPath: '/authentication',
27
- destPath: '',
28
- },
29
- ],
30
- 'www.wixapis.com': [
31
- {
32
- srcPath: '/_api/iam/authentication',
33
- destPath: '',
34
- },
35
- {
36
- srcPath: '/iam/authentication',
37
- destPath: '',
38
- },
39
- ],
40
- 'bo._base_domain_': [
41
- {
42
- srcPath: '/_api/iam/authentication',
43
- destPath: '',
44
- },
45
- ],
46
- 'wixbo.ai': [
47
- {
48
- srcPath: '/_api/iam/authentication',
49
- destPath: '',
50
- },
51
- ],
52
- 'wix-bo.com': [
53
- {
54
- srcPath: '/_api/iam/authentication',
55
- destPath: '',
56
- },
57
- ],
58
- 'dev._base_domain_': [
59
- {
60
- srcPath: '/_api/iam/authentication',
61
- destPath: '',
62
- },
63
- ],
64
- 'manage._base_domain_': [
65
- {
66
- srcPath: '/_api/authentication',
67
- destPath: '',
68
- },
69
- ],
70
- 'www._base_domain_': [
71
- {
72
- srcPath: '/_api/iam/authentication',
73
- destPath: '',
74
- },
75
- ],
76
- };
77
- return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
78
- }
79
- const PACKAGE_NAME = '@wix/auto_sdk_identity_authentication';
80
- /**
81
- * Registers a new member.
82
- *
83
- * Typically, after a successful registration, you generate and use member tokens for the
84
- * registered member so that subsequent API calls are called as part of a member session.
85
- * 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).
86
- *
87
- * If the email used to register the member already exists as a contact email, the registering
88
- * member need to verify the email address using a code that is sent to the address.
89
- */
90
- function registerV2(payload) {
91
- function __registerV2({ host }) {
92
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
93
- {
94
- transformFn: float_1.transformSDKFloatToRESTFloat,
95
- paths: [{ path: 'profile.customFields.value.numValue' }],
96
- },
97
- {
98
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
99
- paths: [{ path: 'profile.customFields.value.dateValue' }],
100
- },
101
- ]);
102
- const metadata = {
103
- entityFqdn: 'wix.iam.authentication.v1.authentication',
104
- method: 'POST',
105
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.RegisterV2',
106
- packageName: PACKAGE_NAME,
107
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
108
- protoPath: '/v2/register',
109
- data: serializedData,
110
- host,
111
- }),
112
- data: serializedData,
113
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
114
- {
115
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
116
- paths: [
117
- { path: 'identity.createdDate' },
118
- { path: 'identity.updatedDate' },
119
- { path: 'identity.identityProfile.customFields.value.dateValue' },
120
- { path: 'additionalData.*.dateValue' },
121
- ],
122
- },
123
- {
124
- transformFn: float_2.transformRESTFloatToSDKFloat,
125
- paths: [
126
- { path: 'identity.identityProfile.customFields.value.numValue' },
127
- { path: 'additionalData.*.numValue' },
128
- ],
129
- },
130
- ]),
131
- };
132
- return metadata;
133
- }
134
- return __registerV2;
135
- }
136
- exports.registerV2 = registerV2;
137
- /**
138
- * Logs in an existing member.
139
- *
140
- * Typically, after a successful login, you generate and use member tokens for the
141
- * logged-in member so that subsequent API calls are called as part of a member session.
142
- * 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).
143
- */
144
- function loginV2(payload) {
145
- function __loginV2({ host }) {
146
- const metadata = {
147
- entityFqdn: 'wix.iam.authentication.v1.authentication',
148
- method: 'POST',
149
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',
150
- packageName: PACKAGE_NAME,
151
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
152
- protoPath: '/v2/login',
153
- data: payload,
154
- host,
155
- }),
156
- data: payload,
157
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
158
- {
159
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
160
- paths: [
161
- { path: 'identity.createdDate' },
162
- { path: 'identity.updatedDate' },
163
- { path: 'identity.identityProfile.customFields.value.dateValue' },
164
- { path: 'additionalData.*.dateValue' },
165
- ],
166
- },
167
- {
168
- transformFn: float_2.transformRESTFloatToSDKFloat,
169
- paths: [
170
- { path: 'identity.identityProfile.customFields.value.numValue' },
171
- { path: 'additionalData.*.numValue' },
172
- ],
173
- },
174
- ]),
175
- };
176
- return metadata;
177
- }
178
- return __loginV2;
179
- }
180
- exports.loginV2 = loginV2;
181
- /** Changes the password of a logged in user. */
182
- function changePassword(payload) {
183
- function __changePassword({ host }) {
184
- const metadata = {
185
- entityFqdn: 'wix.iam.authentication.v1.authentication',
186
- method: 'POST',
187
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',
188
- packageName: PACKAGE_NAME,
189
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
190
- protoPath: '/v2/change-password',
191
- data: payload,
192
- host,
193
- }),
194
- data: payload,
195
- };
196
- return metadata;
197
- }
198
- return __changePassword;
199
- }
200
- exports.changePassword = changePassword;
201
- function loginCallback(payload) {
202
- function __loginCallback({ host }) {
203
- const metadata = {
204
- entityFqdn: 'wix.iam.authentication.v1.authentication',
205
- method: 'GET',
206
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginCallback',
207
- packageName: PACKAGE_NAME,
208
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
209
- protoPath: '/v1/callback',
210
- data: payload,
211
- host,
212
- }),
213
- params: (0, rest_modules_1.toURLSearchParams)(payload),
214
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
215
- {
216
- transformFn: bytes_1.transformRESTBytesToSDKBytes,
217
- paths: [{ path: 'body' }],
218
- },
219
- ]),
220
- };
221
- return metadata;
222
- }
223
- return __loginCallback;
224
- }
225
- exports.loginCallback = loginCallback;
226
- function signOn(payload) {
227
- function __signOn({ host }) {
228
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
229
- {
230
- transformFn: float_1.transformSDKFloatToRESTFloat,
231
- paths: [{ path: 'profile.customFields.value.numValue' }],
232
- },
233
- {
234
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
235
- paths: [{ path: 'profile.customFields.value.dateValue' }],
236
- },
237
- ]);
238
- const metadata = {
239
- entityFqdn: 'wix.iam.authentication.v1.authentication',
240
- method: 'POST',
241
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.SignOn',
242
- packageName: PACKAGE_NAME,
243
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
244
- protoPath: '/v2/sign-on',
245
- data: serializedData,
246
- host,
247
- }),
248
- data: serializedData,
249
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
250
- {
251
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
252
- paths: [
253
- { path: 'identity.createdDate' },
254
- { path: 'identity.updatedDate' },
255
- { path: 'identity.identityProfile.customFields.value.dateValue' },
256
- ],
257
- },
258
- {
259
- transformFn: float_2.transformRESTFloatToSDKFloat,
260
- paths: [
261
- { path: 'identity.identityProfile.customFields.value.numValue' },
262
- ],
263
- },
264
- ]),
265
- };
266
- return metadata;
267
- }
268
- return __signOn;
269
- }
270
- exports.signOn = signOn;
271
- /** Logs out a member. */
272
- function logout(payload) {
273
- function __logout({ host }) {
274
- const metadata = {
275
- entityFqdn: 'wix.iam.authentication.v1.authentication',
276
- method: 'GET',
277
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',
278
- packageName: PACKAGE_NAME,
279
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
280
- protoPath: '/v1/logout',
281
- data: payload,
282
- host,
283
- }),
284
- params: (0, rest_modules_1.toURLSearchParams)(payload),
285
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
286
- {
287
- transformFn: bytes_1.transformRESTBytesToSDKBytes,
288
- paths: [{ path: 'body' }],
289
- },
290
- ]),
291
- };
292
- return metadata;
293
- }
294
- return __logout;
295
- }
296
- exports.logout = logout;
297
- function verify(payload) {
298
- function __verify({ host }) {
299
- const metadata = {
300
- entityFqdn: 'wix.iam.authentication.v1.authentication',
301
- method: 'POST',
302
- methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Verify',
303
- packageName: PACKAGE_NAME,
304
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
305
- protoPath: '/v2/{factorType}/verify',
306
- data: payload,
307
- host,
308
- }),
309
- data: payload,
310
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
311
- {
312
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
313
- paths: [
314
- { path: 'identity.createdDate' },
315
- { path: 'identity.updatedDate' },
316
- { path: 'identity.identityProfile.customFields.value.dateValue' },
317
- { path: 'additionalData.*.dateValue' },
318
- ],
319
- },
320
- {
321
- transformFn: float_2.transformRESTFloatToSDKFloat,
322
- paths: [
323
- { path: 'identity.identityProfile.customFields.value.numValue' },
324
- { path: 'additionalData.*.numValue' },
325
- ],
326
- },
327
- ]),
328
- };
329
- return metadata;
330
- }
331
- return __verify;
332
- }
333
- exports.verify = verify;
334
- //# sourceMappingURL=iam-authentication-v1-authentication-authentication.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iam-authentication-v1-authentication-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication-authentication.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,qDAAqD,CAC5D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,qBAAqB,EAAE;YACrB;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,4DAA4D;aACv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,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,sBAAsB,EAAE;wBAChC,EAAE,IAAI,EAAE,sBAAsB,EAAE;wBAChC,EAAE,IAAI,EAAE,uDAAuD,EAAE;wBACjE,EAAE,IAAI,EAAE,4BAA4B,EAAE;qBACvC;iBACF;gBACD;oBACE,WAAW,EAAE,oCAA4B;oBACzC,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,sDAAsD,EAAE;wBAChE,EAAE,IAAI,EAAE,2BAA2B,EAAE;qBACtC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAtCD,wBAsCC"}
@@ -1,21 +0,0 @@
1
- import * as ambassadorWixIamAuthenticationV1AuthenticationTypes from './iam-authentication-v1-authentication-authentication.types.js';
2
- import * as ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes from './iam-authentication-v1-authentication-authentication.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function registerV2(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RegisterV2Request, ambassadorWixIamAuthenticationV1AuthenticationTypes.RegisterV2Request, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponseNonNullableFields>;
14
- export declare function loginV2(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginV2Request, ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginV2Request, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponseNonNullableFields>;
15
- export declare function changePassword(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordResponse, ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordResponse>;
16
- export declare function loginCallback(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginCallbackRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginCallbackRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponseNonNullableFields>;
17
- export declare function signOn(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponseNonNullableFields>;
18
- export declare function logout(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LogoutRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.LogoutRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponseNonNullableFields>;
19
- export declare function verify(): __PublicMethodMetaInfo<'POST', {
20
- factorType: string;
21
- }, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.VerifyRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.VerifyRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponseNonNullableFields, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse & ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponseNonNullableFields>;
@@ -1,161 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.verify = exports.logout = exports.signOn = exports.loginCallback = exports.changePassword = exports.loginV2 = exports.registerV2 = void 0;
27
- const ambassadorWixIamAuthenticationV1Authentication = __importStar(require("./iam-authentication-v1-authentication-authentication.http.js"));
28
- function registerV2() {
29
- const payload = {};
30
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.registerV2(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/v2/register',
39
- pathParams: {},
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.registerV2 = registerV2;
47
- function loginV2() {
48
- const payload = {};
49
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.loginV2(payload);
50
- const getUrl = (context) => {
51
- const { url } = getRequestOptions(context);
52
- return url;
53
- };
54
- return {
55
- getUrl,
56
- httpMethod: 'POST',
57
- path: '/v2/login',
58
- pathParams: {},
59
- __requestType: null,
60
- __originalRequestType: null,
61
- __responseType: null,
62
- __originalResponseType: null,
63
- };
64
- }
65
- exports.loginV2 = loginV2;
66
- function changePassword() {
67
- const payload = {};
68
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.changePassword(payload);
69
- const getUrl = (context) => {
70
- const { url } = getRequestOptions(context);
71
- return url;
72
- };
73
- return {
74
- getUrl,
75
- httpMethod: 'POST',
76
- path: '/v2/change-password',
77
- pathParams: {},
78
- __requestType: null,
79
- __originalRequestType: null,
80
- __responseType: null,
81
- __originalResponseType: null,
82
- };
83
- }
84
- exports.changePassword = changePassword;
85
- function loginCallback() {
86
- const payload = {};
87
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.loginCallback(payload);
88
- const getUrl = (context) => {
89
- const { url } = getRequestOptions(context);
90
- return url;
91
- };
92
- return {
93
- getUrl,
94
- httpMethod: 'GET',
95
- path: '/v1/callback',
96
- pathParams: {},
97
- __requestType: null,
98
- __originalRequestType: null,
99
- __responseType: null,
100
- __originalResponseType: null,
101
- };
102
- }
103
- exports.loginCallback = loginCallback;
104
- function signOn() {
105
- const payload = {};
106
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.signOn(payload);
107
- const getUrl = (context) => {
108
- const { url } = getRequestOptions(context);
109
- return url;
110
- };
111
- return {
112
- getUrl,
113
- httpMethod: 'POST',
114
- path: '/v2/sign-on',
115
- pathParams: {},
116
- __requestType: null,
117
- __originalRequestType: null,
118
- __responseType: null,
119
- __originalResponseType: null,
120
- };
121
- }
122
- exports.signOn = signOn;
123
- function logout() {
124
- const payload = {};
125
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.logout(payload);
126
- const getUrl = (context) => {
127
- const { url } = getRequestOptions(context);
128
- return url;
129
- };
130
- return {
131
- getUrl,
132
- httpMethod: 'GET',
133
- path: '/v1/logout',
134
- pathParams: {},
135
- __requestType: null,
136
- __originalRequestType: null,
137
- __responseType: null,
138
- __originalResponseType: null,
139
- };
140
- }
141
- exports.logout = logout;
142
- function verify() {
143
- const payload = { factorType: ':factorType' };
144
- const getRequestOptions = ambassadorWixIamAuthenticationV1Authentication.verify(payload);
145
- const getUrl = (context) => {
146
- const { url } = getRequestOptions(context);
147
- return url;
148
- };
149
- return {
150
- getUrl,
151
- httpMethod: 'POST',
152
- path: '/v2/{factorType}/verify',
153
- pathParams: { factorType: 'factorType' },
154
- __requestType: null,
155
- __originalRequestType: null,
156
- __responseType: null,
157
- __originalResponseType: null,
158
- };
159
- }
160
- exports.verify = verify;
161
- //# sourceMappingURL=iam-authentication-v1-authentication-authentication.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iam-authentication-v1-authentication-authentication.meta.js","sourceRoot":"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