@wix/auto_sdk_identity_authentication 1.0.7 → 1.0.9

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 (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  11. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +27 -0
  12. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  13. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  14. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +376 -0
  15. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  16. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  17. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
  18. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  19. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  20. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +62 -0
  21. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  22. package/build/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts → cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  23. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +131 -0
  24. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  25. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  26. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +468 -0
  27. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  38. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
  39. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  40. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  41. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +366 -0
  42. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  43. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  44. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
  45. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  46. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  47. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
  48. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  49. package/build/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts → es/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  50. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +128 -0
  51. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  52. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  53. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +435 -0
  54. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  65. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +27 -0
  66. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  67. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  68. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +376 -0
  69. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  70. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  71. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +161 -0
  72. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  73. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  74. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +62 -0
  75. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  76. package/build/internal/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.mts → cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  77. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +131 -0
  78. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  79. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  80. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +468 -0
  81. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +11 -0
  92. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +11 -0
  93. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +1 -0
  94. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +27 -0
  95. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +366 -0
  96. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +1 -0
  97. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +21 -0
  98. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +128 -0
  99. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +1 -0
  100. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +63 -0
  101. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +39 -0
  102. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +1 -0
  103. package/build/internal/{iam-authentication-v1-authentication-authentication.universal-ByfoI5Md.d.ts → es/src/iam-authentication-v1-authentication-authentication.types.d.ts} +81 -150
  104. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +128 -0
  105. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +1 -0
  106. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +922 -0
  107. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +435 -0
  108. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -71
  111. package/build/index.d.ts +0 -71
  112. package/build/index.js +0 -859
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -816
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -71
  117. package/build/internal/index.d.ts +0 -71
  118. package/build/internal/index.js +0 -859
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -816
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -600
  123. package/build/internal/meta.d.ts +0 -600
  124. package/build/internal/meta.js +0 -518
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -485
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -600
  129. package/build/meta.d.ts +0 -600
  130. package/build/meta.js +0 -518
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -485
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,376 @@
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: bytes_1.transformRESTBytesToSDKBytes,
116
+ paths: [
117
+ {
118
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',
119
+ },
120
+ {
121
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',
122
+ },
123
+ {
124
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',
125
+ },
126
+ ],
127
+ },
128
+ {
129
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
130
+ paths: [
131
+ { path: 'identity.createdDate' },
132
+ { path: 'identity.updatedDate' },
133
+ { path: 'identity.identityProfile.customFields.value.dateValue' },
134
+ { path: 'additionalData.*.dateValue' },
135
+ ],
136
+ },
137
+ {
138
+ transformFn: float_2.transformRESTFloatToSDKFloat,
139
+ paths: [
140
+ { path: 'identity.identityProfile.customFields.value.numValue' },
141
+ { path: 'additionalData.*.numValue' },
142
+ ],
143
+ },
144
+ ]),
145
+ };
146
+ return metadata;
147
+ }
148
+ return __registerV2;
149
+ }
150
+ exports.registerV2 = registerV2;
151
+ /**
152
+ * Logs in an existing member.
153
+ *
154
+ * Typically, after a successful login, you generate and use member tokens for the
155
+ * logged-in member so that subsequent API calls are called as part of a member session.
156
+ * 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).
157
+ */
158
+ function loginV2(payload) {
159
+ function __loginV2({ host }) {
160
+ const metadata = {
161
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
162
+ method: 'POST',
163
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',
164
+ packageName: PACKAGE_NAME,
165
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
166
+ protoPath: '/v2/login',
167
+ data: payload,
168
+ host,
169
+ }),
170
+ data: payload,
171
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
172
+ {
173
+ transformFn: bytes_1.transformRESTBytesToSDKBytes,
174
+ paths: [
175
+ {
176
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',
177
+ },
178
+ {
179
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',
180
+ },
181
+ {
182
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',
183
+ },
184
+ ],
185
+ },
186
+ {
187
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
188
+ paths: [
189
+ { path: 'identity.createdDate' },
190
+ { path: 'identity.updatedDate' },
191
+ { path: 'identity.identityProfile.customFields.value.dateValue' },
192
+ { path: 'additionalData.*.dateValue' },
193
+ ],
194
+ },
195
+ {
196
+ transformFn: float_2.transformRESTFloatToSDKFloat,
197
+ paths: [
198
+ { path: 'identity.identityProfile.customFields.value.numValue' },
199
+ { path: 'additionalData.*.numValue' },
200
+ ],
201
+ },
202
+ ]),
203
+ };
204
+ return metadata;
205
+ }
206
+ return __loginV2;
207
+ }
208
+ exports.loginV2 = loginV2;
209
+ /** Changes the password of a logged in user. */
210
+ function changePassword(payload) {
211
+ function __changePassword({ host }) {
212
+ const metadata = {
213
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
214
+ method: 'POST',
215
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',
216
+ packageName: PACKAGE_NAME,
217
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
218
+ protoPath: '/v2/change-password',
219
+ data: payload,
220
+ host,
221
+ }),
222
+ data: payload,
223
+ };
224
+ return metadata;
225
+ }
226
+ return __changePassword;
227
+ }
228
+ exports.changePassword = changePassword;
229
+ function loginCallback(payload) {
230
+ function __loginCallback({ host }) {
231
+ const metadata = {
232
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
233
+ method: 'GET',
234
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginCallback',
235
+ packageName: PACKAGE_NAME,
236
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
237
+ protoPath: '/v1/callback',
238
+ data: payload,
239
+ host,
240
+ }),
241
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
242
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
243
+ {
244
+ transformFn: bytes_1.transformRESTBytesToSDKBytes,
245
+ paths: [{ path: 'body' }],
246
+ },
247
+ ]),
248
+ };
249
+ return metadata;
250
+ }
251
+ return __loginCallback;
252
+ }
253
+ exports.loginCallback = loginCallback;
254
+ function signOn(payload) {
255
+ function __signOn({ host }) {
256
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
257
+ {
258
+ transformFn: float_1.transformSDKFloatToRESTFloat,
259
+ paths: [{ path: 'profile.customFields.value.numValue' }],
260
+ },
261
+ {
262
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
263
+ paths: [{ path: 'profile.customFields.value.dateValue' }],
264
+ },
265
+ ]);
266
+ const metadata = {
267
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
268
+ method: 'POST',
269
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.SignOn',
270
+ packageName: PACKAGE_NAME,
271
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
272
+ protoPath: '/v2/sign-on',
273
+ data: serializedData,
274
+ host,
275
+ }),
276
+ data: serializedData,
277
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
278
+ {
279
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
280
+ paths: [
281
+ { path: 'identity.createdDate' },
282
+ { path: 'identity.updatedDate' },
283
+ { path: 'identity.identityProfile.customFields.value.dateValue' },
284
+ ],
285
+ },
286
+ {
287
+ transformFn: float_2.transformRESTFloatToSDKFloat,
288
+ paths: [
289
+ { path: 'identity.identityProfile.customFields.value.numValue' },
290
+ ],
291
+ },
292
+ ]),
293
+ };
294
+ return metadata;
295
+ }
296
+ return __signOn;
297
+ }
298
+ exports.signOn = signOn;
299
+ /** Logs out a member. */
300
+ function logout(payload) {
301
+ function __logout({ host }) {
302
+ const metadata = {
303
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
304
+ method: 'GET',
305
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',
306
+ packageName: PACKAGE_NAME,
307
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
308
+ protoPath: '/v1/logout',
309
+ data: payload,
310
+ host,
311
+ }),
312
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
313
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
314
+ {
315
+ transformFn: bytes_1.transformRESTBytesToSDKBytes,
316
+ paths: [{ path: 'body' }],
317
+ },
318
+ ]),
319
+ };
320
+ return metadata;
321
+ }
322
+ return __logout;
323
+ }
324
+ exports.logout = logout;
325
+ function verify(payload) {
326
+ function __verify({ host }) {
327
+ const metadata = {
328
+ entityFqdn: 'wix.iam.authentication.v1.authentication',
329
+ method: 'POST',
330
+ methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Verify',
331
+ packageName: PACKAGE_NAME,
332
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
333
+ protoPath: '/v2/{factorType}/verify',
334
+ data: payload,
335
+ host,
336
+ }),
337
+ data: payload,
338
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
339
+ {
340
+ transformFn: bytes_1.transformRESTBytesToSDKBytes,
341
+ paths: [
342
+ {
343
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',
344
+ },
345
+ {
346
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',
347
+ },
348
+ {
349
+ path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',
350
+ },
351
+ ],
352
+ },
353
+ {
354
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
355
+ paths: [
356
+ { path: 'identity.createdDate' },
357
+ { path: 'identity.updatedDate' },
358
+ { path: 'identity.identityProfile.customFields.value.dateValue' },
359
+ { path: 'additionalData.*.dateValue' },
360
+ ],
361
+ },
362
+ {
363
+ transformFn: float_2.transformRESTFloatToSDKFloat,
364
+ paths: [
365
+ { path: 'identity.identityProfile.customFields.value.numValue' },
366
+ { path: 'additionalData.*.numValue' },
367
+ ],
368
+ },
369
+ ]),
370
+ };
371
+ return metadata;
372
+ }
373
+ return __verify;
374
+ }
375
+ exports.verify = verify;
376
+ //# sourceMappingURL=iam-authentication-v1-authentication-authentication.http.js.map
@@ -0,0 +1 @@
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;gB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AAQ,CAAC;AAClB,CAAC;AApDD,wBAoDC"}
@@ -0,0 +1,21 @@
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, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse>;
14
+ export declare function loginV2(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginV2Request, ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginV2Request, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse>;
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, ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse>;
17
+ export declare function signOn(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponse, ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponse>;
18
+ export declare function logout(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LogoutRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.LogoutRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse, ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse>;
19
+ export declare function verify(): __PublicMethodMetaInfo<'POST', {
20
+ factorType: string;
21
+ }, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.VerifyRequest, ambassadorWixIamAuthenticationV1AuthenticationTypes.VerifyRequest, ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse, ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse>;
@@ -0,0 +1,161 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-authentication-v1-authentication-authentication.meta.js","sourceRoot":"","sources":["../../../../src/iam-authentication-v1-authentication-authentication.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8IAAgI;AAsBhI,SAAgB,UAAU;IAQxB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8CAA8C,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAErE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,gCA4BC;AAED,SAAgB,OAAO;IAQrB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8CAA8C,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAElE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;Q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AAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE;QACxC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,wBA4BC"}
@@ -0,0 +1,63 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { FactorType, LoginCallbackOptions, LoginId, LoginV2Options, LogoutOptions, RawHttpResponse, RegisterV2Options, SignOnOptions, SignOnResponse, StateMachineResponse, VerifyOptions } from './iam-authentication-v1-authentication-authentication.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function registerV2(httpClient: HttpClient): RegisterV2Signature;
7
+ interface RegisterV2Signature {
8
+ /**
9
+ * Registers a new member.
10
+ *
11
+ * Typically, after a successful registration, you generate and use member tokens for the
12
+ * registered member so that subsequent API calls are called as part of a member session.
13
+ * 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).
14
+ *
15
+ * If the email used to register the member already exists as a contact email, the registering
16
+ * member need to verify the email address using a code that is sent to the address.
17
+ * @param - Identifier of the registering member.
18
+ */
19
+ (loginId: LoginId, options?: RegisterV2Options | undefined): Promise<StateMachineResponse>;
20
+ }
21
+ export declare function loginV2(httpClient: HttpClient): LoginV2Signature;
22
+ interface LoginV2Signature {
23
+ /**
24
+ * Logs in an existing member.
25
+ *
26
+ * Typically, after a successful login, you generate and use member tokens for the
27
+ * logged-in member so that subsequent API calls are called as part of a member session.
28
+ * 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).
29
+ * @param - Identifier of identity logging in.
30
+ */
31
+ (loginId: LoginId, options?: LoginV2Options | undefined): Promise<StateMachineResponse>;
32
+ }
33
+ export declare function changePassword(httpClient: HttpClient): ChangePasswordSignature;
34
+ interface ChangePasswordSignature {
35
+ /**
36
+ * Changes the password of a logged in user.
37
+ * @param - The new password to set for the logged in user
38
+ */
39
+ (newPassword: string): Promise<void>;
40
+ }
41
+ export declare function loginCallback(httpClient: HttpClient): LoginCallbackSignature;
42
+ interface LoginCallbackSignature {
43
+ /** */
44
+ (options?: LoginCallbackOptions | undefined): Promise<RawHttpResponse>;
45
+ }
46
+ export declare function signOn(httpClient: HttpClient): SignOnSignature;
47
+ interface SignOnSignature {
48
+ /** @param - the identifier of the identity */
49
+ (loginId: LoginId, options?: SignOnOptions | undefined): Promise<SignOnResponse>;
50
+ }
51
+ export declare function logout(httpClient: HttpClient): LogoutSignature;
52
+ interface LogoutSignature {
53
+ /**
54
+ * Logs out a member.
55
+ */
56
+ (options?: LogoutOptions | undefined): Promise<RawHttpResponse>;
57
+ }
58
+ export declare function verify(httpClient: HttpClient): VerifySignature;
59
+ interface VerifySignature {
60
+ /** */
61
+ (factorType: FactorType, options?: VerifyOptions | undefined): Promise<StateMachineResponse>;
62
+ }
63
+ 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, LoginCallbackOptions, LoginCallbackRequest, LoginId, LoginIdTypeOneOf, LoginV2Options, LoginV2Request, LoginWithIdpConnectionRequest, LoginWithIdpConnectionTokenParamsRequest, LogoutOptions, LogoutRequest, MapValue, Metadata, MfaChallengeData, MfaReason, PathParametersEntry, Phone, PhoneTag, PrivacyStatus, PublicKeyCredentialDescriptor, PushChallengeData, PushVerifyData, QueryParametersEntry, RawHttpRequest, RawHttpResponse, Reason, RegisterV2Options, RegisterV2Request, RequireMfaData, SecondaryEmail, SignOnOptions, SignOnRequest, SignOnResponse, SmsVerifyData, StateMachineResponse, StateMachineResponseStateDataOneOf, StateType, Status, StatusName, StatusV2, TenantType, TotpVerifyData, UserVerificationRequirement, V1CustomValue, V1CustomValueValueOneOf, V1Factor, V1ListValue, V1MapValue, VerificationChallenge, VerificationChallengeFactorChallengeDataOneOf, VerifyOptions, VerifyOptionsFactorDataOneOf, VerifyRequest, VerifyRequestFactorDataOneOf, WebAuthnChallengeData, WebAuthnVerifyData, } from './iam-authentication-v1-authentication-authentication.universal.js';