@wix/auto_sdk_identity_authentication 1.0.31 → 1.0.32

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 (37) hide show
  1. package/build/cjs/index.d.ts +33 -13
  2. package/build/cjs/index.js +2 -153
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +208 -180
  5. package/build/cjs/index.typings.js +2 -144
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +151 -145
  8. package/build/cjs/meta.js +2 -112
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +33 -13
  11. package/build/es/index.mjs +1 -150
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +208 -180
  14. package/build/es/index.typings.mjs +1 -141
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +151 -145
  17. package/build/es/meta.mjs +1 -109
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +33 -13
  20. package/build/internal/cjs/index.js +2 -153
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +208 -180
  23. package/build/internal/cjs/index.typings.js +2 -144
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +151 -145
  26. package/build/internal/cjs/meta.js +2 -112
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +33 -13
  29. package/build/internal/es/index.mjs +1 -150
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +208 -180
  32. package/build/internal/es/index.typings.mjs +1 -141
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +151 -145
  35. package/build/internal/es/meta.mjs +1 -109
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -139,20 +139,6 @@ function registerV2(payload) {
139
139
  }),
140
140
  data: serializedData,
141
141
  transformResponse: (payload2) => transformPaths(payload2, [
142
- {
143
- transformFn: transformRESTBytesToSDKBytes,
144
- paths: [
145
- {
146
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
147
- },
148
- {
149
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
150
- },
151
- {
152
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
153
- }
154
- ]
155
- },
156
142
  {
157
143
  transformFn: transformRESTTimestampToSDKTimestamp,
158
144
  paths: [
@@ -192,20 +178,6 @@ function loginV2(payload) {
192
178
  }),
193
179
  data: payload,
194
180
  transformResponse: (payload2) => transformPaths(payload2, [
195
- {
196
- transformFn: transformRESTBytesToSDKBytes,
197
- paths: [
198
- {
199
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
200
- },
201
- {
202
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
203
- },
204
- {
205
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
206
- }
207
- ]
208
- },
209
181
  {
210
182
  transformFn: transformRESTTimestampToSDKTimestamp,
211
183
  paths: [
@@ -323,59 +295,6 @@ function logout(payload) {
323
295
  }
324
296
  return __logout;
325
297
  }
326
- function verify(payload) {
327
- function __verify({ host }) {
328
- const metadata = {
329
- entityFqdn: "wix.iam.authentication.v1.authentication",
330
- method: "POST",
331
- methodFqn: "wix.iam.authentication.v1.AuthenticationService.Verify",
332
- packageName: PACKAGE_NAME,
333
- migrationOptions: {
334
- optInTransformResponse: true
335
- },
336
- url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
337
- protoPath: "/v2/{factorType}/verify",
338
- data: payload,
339
- host
340
- }),
341
- data: payload,
342
- transformResponse: (payload2) => transformPaths(payload2, [
343
- {
344
- transformFn: transformRESTBytesToSDKBytes,
345
- paths: [
346
- {
347
- path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
348
- },
349
- {
350
- path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
351
- },
352
- {
353
- path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
354
- }
355
- ]
356
- },
357
- {
358
- transformFn: transformRESTTimestampToSDKTimestamp,
359
- paths: [
360
- { path: "identity.createdDate" },
361
- { path: "identity.updatedDate" },
362
- { path: "identity.identityProfile.customFields.value.dateValue" },
363
- { path: "additionalData.*.dateValue" }
364
- ]
365
- },
366
- {
367
- transformFn: transformRESTFloatToSDKFloat,
368
- paths: [
369
- { path: "identity.identityProfile.customFields.value.numValue" },
370
- { path: "additionalData.*.numValue" }
371
- ]
372
- }
373
- ])
374
- };
375
- return metadata;
376
- }
377
- return __verify;
378
- }
379
298
 
380
299
  // src/iam-authentication-v1-authentication-authentication.universal.ts
381
300
  import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
@@ -467,13 +386,6 @@ var MfaReason = /* @__PURE__ */ ((MfaReason2) => {
467
386
  MfaReason2["HIGH_RISK_LOGIN"] = "HIGH_RISK_LOGIN";
468
387
  return MfaReason2;
469
388
  })(MfaReason || {});
470
- var UserVerificationRequirement = /* @__PURE__ */ ((UserVerificationRequirement2) => {
471
- UserVerificationRequirement2["USER_VERIFICATION_UNSPECIFIED"] = "USER_VERIFICATION_UNSPECIFIED";
472
- UserVerificationRequirement2["USER_VERIFICATION_REQUIRED"] = "USER_VERIFICATION_REQUIRED";
473
- UserVerificationRequirement2["USER_VERIFICATION_PREFERRED"] = "USER_VERIFICATION_PREFERRED";
474
- UserVerificationRequirement2["USER_VERIFICATION_DISCOURAGED"] = "USER_VERIFICATION_DISCOURAGED";
475
- return UserVerificationRequirement2;
476
- })(UserVerificationRequirement || {});
477
389
  var TenantType = /* @__PURE__ */ ((TenantType2) => {
478
390
  TenantType2["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
479
391
  TenantType2["ACCOUNT"] = "ACCOUNT";
@@ -671,56 +583,6 @@ async function logout2(options) {
671
583
  throw transformedError;
672
584
  }
673
585
  }
674
- async function verify2(factorType, options) {
675
- const { httpClient, sideEffects } = arguments[2];
676
- const payload = renameKeysFromSDKRequestToRESTRequest({
677
- factorType,
678
- stateToken: options?.stateToken,
679
- rememberThisDevice: options?.rememberThisDevice,
680
- smsData: options?.smsData,
681
- callData: options?.callData,
682
- emailData: options?.emailData,
683
- totpData: options?.totpData,
684
- pushData: options?.pushData,
685
- webauthnData: options?.webauthnData
686
- });
687
- const reqOpts = verify(payload);
688
- sideEffects?.onSiteCall?.();
689
- try {
690
- const result = await httpClient.request(reqOpts);
691
- sideEffects?.onSuccess?.(result);
692
- return renameKeysFromRESTResponseToSDKResponse(
693
- transformPaths2(result.data, [
694
- {
695
- transformFn: transformRESTAddressToSDKAddress,
696
- paths: [{ path: "identity.identityProfile.addresses.address" }]
697
- }
698
- ])
699
- );
700
- } catch (err) {
701
- const transformedError = sdkTransformError(
702
- err,
703
- {
704
- spreadPathsToArguments: {},
705
- explicitPathsToArguments: {
706
- factorType: "$[0]",
707
- stateToken: "$[1].stateToken",
708
- rememberThisDevice: "$[1].rememberThisDevice",
709
- smsData: "$[1].smsData",
710
- callData: "$[1].callData",
711
- emailData: "$[1].emailData",
712
- totpData: "$[1].totpData",
713
- pushData: "$[1].pushData",
714
- webauthnData: "$[1].webauthnData"
715
- },
716
- singleArgumentUnchanged: false
717
- },
718
- ["factorType", "options"]
719
- );
720
- sideEffects?.onError?.(err);
721
- throw transformedError;
722
- }
723
- }
724
586
 
725
587
  // src/iam-authentication-v1-authentication-authentication.public.ts
726
588
  function registerV23(httpClient) {
@@ -761,14 +623,6 @@ function logout3(httpClient) {
761
623
  { httpClient }
762
624
  );
763
625
  }
764
- function verify3(httpClient) {
765
- return (factorType, options) => verify2(
766
- factorType,
767
- options,
768
- // @ts-ignore
769
- { httpClient }
770
- );
771
- }
772
626
 
773
627
  // src/iam-authentication-v1-authentication-authentication.context.ts
774
628
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
@@ -777,7 +631,6 @@ var loginV24 = /* @__PURE__ */ createRESTModule(loginV23);
777
631
  var changePassword4 = /* @__PURE__ */ createRESTModule(changePassword3);
778
632
  var signOn4 = /* @__PURE__ */ createRESTModule(signOn3);
779
633
  var logout4 = /* @__PURE__ */ createRESTModule(logout3);
780
- var verify4 = /* @__PURE__ */ createRESTModule(verify3);
781
634
  export {
782
635
  AddressTag,
783
636
  EmailTag,
@@ -791,12 +644,10 @@ export {
791
644
  Status,
792
645
  StatusName,
793
646
  TenantType,
794
- UserVerificationRequirement,
795
647
  changePassword4 as changePassword,
796
648
  loginV24 as loginV2,
797
649
  logout4 as logout,
798
650
  registerV24 as registerV2,
799
- signOn4 as signOn,
800
- verify4 as verify
651
+ signOn4 as signOn
801
652
  };
802
653
  //# sourceMappingURL=index.mjs.map