@wix/auto_sdk_identity_authentication 1.0.12 → 1.0.13

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 (121) hide show
  1. package/build/cjs/{src/iam-authentication-v1-authentication-authentication.types.d.ts → iam-authentication-v1-authentication-authentication.universal-D-41C26U.d.ts} +170 -94
  2. package/build/cjs/index.d.ts +71 -1
  3. package/build/cjs/index.js +856 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +635 -1
  6. package/build/cjs/meta.js +515 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{internal/cjs/src/iam-authentication-v1-authentication-authentication.types.d.ts → es/iam-authentication-v1-authentication-authentication.universal-D-41C26U.d.mts} +170 -94
  9. package/build/es/index.d.mts +71 -0
  10. package/build/es/index.mjs +816 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/meta.d.mts +635 -0
  13. package/build/es/meta.mjs +485 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → cjs/iam-authentication-v1-authentication-authentication.universal-D-41C26U.d.ts} +170 -94
  16. package/build/internal/cjs/index.d.ts +71 -1
  17. package/build/internal/cjs/index.js +856 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +635 -1
  20. package/build/internal/cjs/meta.js +515 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/{es/src/iam-authentication-v1-authentication-authentication.types.d.ts → internal/es/iam-authentication-v1-authentication-authentication.universal-D-41C26U.d.mts} +170 -94
  23. package/build/internal/es/index.d.mts +71 -0
  24. package/build/internal/es/index.mjs +816 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/es/meta.d.mts +635 -0
  27. package/build/internal/es/meta.mjs +485 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  34. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  35. package/build/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  36. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  37. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  38. package/build/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  39. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  40. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  41. package/build/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  42. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  43. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  44. package/build/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  45. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  46. package/build/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  47. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -948
  48. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -468
  49. package/build/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  60. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  61. package/build/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  62. package/build/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  63. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  64. package/build/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  65. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  66. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  67. package/build/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  68. package/build/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  69. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  70. package/build/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  71. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  72. package/build/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  73. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -948
  74. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -435
  75. package/build/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  80. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js +0 -27
  81. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  82. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  83. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js +0 -376
  84. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  85. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  86. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js +0 -161
  87. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  88. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  89. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js +0 -62
  90. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  91. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js +0 -131
  92. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  93. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -948
  94. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js +0 -468
  95. package/build/internal/cjs/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.d.ts +0 -11
  106. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js +0 -11
  107. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.context.js.map +0 -1
  108. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.d.ts +0 -27
  109. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js +0 -366
  110. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.http.js.map +0 -1
  111. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.d.ts +0 -21
  112. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js +0 -128
  113. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.meta.js.map +0 -1
  114. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.d.ts +0 -63
  115. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js +0 -39
  116. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.public.js.map +0 -1
  117. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js +0 -128
  118. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.types.js.map +0 -1
  119. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.d.ts +0 -948
  120. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js +0 -435
  121. package/build/internal/es/src/iam-authentication-v1-authentication-authentication.universal.js.map +0 -1
package/build/cjs/meta.js CHANGED
@@ -1,18 +1,518 @@
1
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);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/iam-authentication-v1-authentication-authentication.meta.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ changePassword: () => changePassword2,
24
+ loginCallback: () => loginCallback2,
25
+ loginV2: () => loginV22,
26
+ logout: () => logout2,
27
+ registerV2: () => registerV22,
28
+ signOn: () => signOn2,
29
+ verify: () => verify2
30
+ });
31
+ module.exports = __toCommonJS(meta_exports);
32
+
33
+ // src/iam-authentication-v1-authentication-authentication.http.ts
34
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
35
+ var import_float = require("@wix/sdk-runtime/transformations/float");
36
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
37
+ var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
38
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
39
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
40
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
41
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
42
+ function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
43
+ const domainToMappings = {
44
+ _: [
45
+ {
46
+ srcPath: "/_api/iam/authentication",
47
+ destPath: ""
48
+ }
49
+ ],
50
+ "users._base_domain_": [
51
+ {
52
+ srcPath: "/iam/wix/google",
53
+ destPath: "/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69"
54
+ },
55
+ {
56
+ srcPath: "/authentication",
57
+ destPath: ""
58
+ }
59
+ ],
60
+ "www.wixapis.com": [
61
+ {
62
+ srcPath: "/_api/iam/authentication",
63
+ destPath: ""
64
+ },
65
+ {
66
+ srcPath: "/iam/authentication",
67
+ destPath: ""
68
+ }
69
+ ],
70
+ "bo._base_domain_": [
71
+ {
72
+ srcPath: "/_api/iam/authentication",
73
+ destPath: ""
74
+ }
75
+ ],
76
+ "wixbo.ai": [
77
+ {
78
+ srcPath: "/_api/iam/authentication",
79
+ destPath: ""
80
+ }
81
+ ],
82
+ "wix-bo.com": [
83
+ {
84
+ srcPath: "/_api/iam/authentication",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "dev._base_domain_": [
89
+ {
90
+ srcPath: "/_api/iam/authentication",
91
+ destPath: ""
92
+ }
93
+ ],
94
+ "manage._base_domain_": [
95
+ {
96
+ srcPath: "/_api/authentication",
97
+ destPath: ""
98
+ }
99
+ ],
100
+ "www._base_domain_": [
101
+ {
102
+ srcPath: "/_api/iam/authentication",
103
+ destPath: ""
104
+ }
105
+ ]
106
+ };
107
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
108
+ }
109
+ var PACKAGE_NAME = "@wix/auto_sdk_identity_authentication";
110
+ function registerV2(payload) {
111
+ function __registerV2({ host }) {
112
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
113
+ {
114
+ transformFn: import_float.transformSDKFloatToRESTFloat,
115
+ paths: [{ path: "profile.customFields.value.numValue" }]
116
+ },
117
+ {
118
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
119
+ paths: [{ path: "profile.customFields.value.dateValue" }]
120
+ }
121
+ ]);
122
+ const metadata = {
123
+ entityFqdn: "wix.iam.authentication.v1.authentication",
124
+ method: "POST",
125
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.RegisterV2",
126
+ packageName: PACKAGE_NAME,
127
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
128
+ protoPath: "/v2/register",
129
+ data: serializedData,
130
+ host
131
+ }),
132
+ data: serializedData,
133
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
134
+ {
135
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
136
+ paths: [
137
+ {
138
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
139
+ },
140
+ {
141
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
142
+ },
143
+ {
144
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
150
+ paths: [
151
+ { path: "identity.createdDate" },
152
+ { path: "identity.updatedDate" },
153
+ { path: "identity.identityProfile.customFields.value.dateValue" },
154
+ { path: "additionalData.*.dateValue" }
155
+ ]
156
+ },
157
+ {
158
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
159
+ paths: [
160
+ { path: "identity.identityProfile.customFields.value.numValue" },
161
+ { path: "additionalData.*.numValue" }
162
+ ]
163
+ }
164
+ ])
165
+ };
166
+ return metadata;
167
+ }
168
+ return __registerV2;
169
+ }
170
+ function loginV2(payload) {
171
+ function __loginV2({ host }) {
172
+ const metadata = {
173
+ entityFqdn: "wix.iam.authentication.v1.authentication",
174
+ method: "POST",
175
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.LoginV2",
176
+ packageName: PACKAGE_NAME,
177
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
178
+ protoPath: "/v2/login",
179
+ data: payload,
180
+ host
181
+ }),
182
+ data: payload,
183
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
184
+ {
185
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
186
+ paths: [
187
+ {
188
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
189
+ },
190
+ {
191
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
192
+ },
193
+ {
194
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
200
+ paths: [
201
+ { path: "identity.createdDate" },
202
+ { path: "identity.updatedDate" },
203
+ { path: "identity.identityProfile.customFields.value.dateValue" },
204
+ { path: "additionalData.*.dateValue" }
205
+ ]
206
+ },
207
+ {
208
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
209
+ paths: [
210
+ { path: "identity.identityProfile.customFields.value.numValue" },
211
+ { path: "additionalData.*.numValue" }
212
+ ]
213
+ }
214
+ ])
215
+ };
216
+ return metadata;
217
+ }
218
+ return __loginV2;
219
+ }
220
+ function changePassword(payload) {
221
+ function __changePassword({ host }) {
222
+ const metadata = {
223
+ entityFqdn: "wix.iam.authentication.v1.authentication",
224
+ method: "POST",
225
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.ChangePassword",
226
+ packageName: PACKAGE_NAME,
227
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
228
+ protoPath: "/v2/change-password",
229
+ data: payload,
230
+ host
231
+ }),
232
+ data: payload
233
+ };
234
+ return metadata;
235
+ }
236
+ return __changePassword;
237
+ }
238
+ function loginCallback(payload) {
239
+ function __loginCallback({ host }) {
240
+ const metadata = {
241
+ entityFqdn: "wix.iam.authentication.v1.authentication",
242
+ method: "GET",
243
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.LoginCallback",
244
+ packageName: PACKAGE_NAME,
245
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
246
+ protoPath: "/v1/callback",
247
+ data: payload,
248
+ host
249
+ }),
250
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
251
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
252
+ {
253
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
254
+ paths: [{ path: "body" }]
255
+ }
256
+ ])
257
+ };
258
+ return metadata;
259
+ }
260
+ return __loginCallback;
261
+ }
262
+ function signOn(payload) {
263
+ function __signOn({ host }) {
264
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
265
+ {
266
+ transformFn: import_float.transformSDKFloatToRESTFloat,
267
+ paths: [{ path: "profile.customFields.value.numValue" }]
268
+ },
269
+ {
270
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
271
+ paths: [{ path: "profile.customFields.value.dateValue" }]
272
+ }
273
+ ]);
274
+ const metadata = {
275
+ entityFqdn: "wix.iam.authentication.v1.authentication",
276
+ method: "POST",
277
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.SignOn",
278
+ packageName: PACKAGE_NAME,
279
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
280
+ protoPath: "/v2/sign-on",
281
+ data: serializedData,
282
+ host
283
+ }),
284
+ data: serializedData,
285
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
286
+ {
287
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
288
+ paths: [
289
+ { path: "identity.createdDate" },
290
+ { path: "identity.updatedDate" },
291
+ { path: "identity.identityProfile.customFields.value.dateValue" }
292
+ ]
293
+ },
294
+ {
295
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
296
+ paths: [
297
+ { path: "identity.identityProfile.customFields.value.numValue" }
298
+ ]
299
+ }
300
+ ])
301
+ };
302
+ return metadata;
303
+ }
304
+ return __signOn;
305
+ }
306
+ function logout(payload) {
307
+ function __logout({ host }) {
308
+ const metadata = {
309
+ entityFqdn: "wix.iam.authentication.v1.authentication",
310
+ method: "GET",
311
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.Logout",
312
+ packageName: PACKAGE_NAME,
313
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
314
+ protoPath: "/v1/logout",
315
+ data: payload,
316
+ host
317
+ }),
318
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
319
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
320
+ {
321
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
322
+ paths: [{ path: "body" }]
323
+ }
324
+ ])
325
+ };
326
+ return metadata;
327
+ }
328
+ return __logout;
329
+ }
330
+ function verify(payload) {
331
+ function __verify({ host }) {
332
+ const metadata = {
333
+ entityFqdn: "wix.iam.authentication.v1.authentication",
334
+ method: "POST",
335
+ methodFqn: "wix.iam.authentication.v1.AuthenticationService.Verify",
336
+ packageName: PACKAGE_NAME,
337
+ url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
338
+ protoPath: "/v2/{factorType}/verify",
339
+ data: payload,
340
+ host
341
+ }),
342
+ data: payload,
343
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
344
+ {
345
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
346
+ paths: [
347
+ {
348
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.challenge"
349
+ },
350
+ {
351
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id"
352
+ },
353
+ {
354
+ path: "mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite"
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
360
+ paths: [
361
+ { path: "identity.createdDate" },
362
+ { path: "identity.updatedDate" },
363
+ { path: "identity.identityProfile.customFields.value.dateValue" },
364
+ { path: "additionalData.*.dateValue" }
365
+ ]
366
+ },
367
+ {
368
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
369
+ paths: [
370
+ { path: "identity.identityProfile.customFields.value.numValue" },
371
+ { path: "additionalData.*.numValue" }
372
+ ]
373
+ }
374
+ ])
375
+ };
376
+ return metadata;
377
+ }
378
+ return __verify;
379
+ }
380
+
381
+ // src/iam-authentication-v1-authentication-authentication.meta.ts
382
+ function registerV22() {
383
+ const payload = {};
384
+ const getRequestOptions = registerV2(payload);
385
+ const getUrl = (context) => {
386
+ const { url } = getRequestOptions(context);
387
+ return url;
388
+ };
389
+ return {
390
+ getUrl,
391
+ httpMethod: "POST",
392
+ path: "/v2/register",
393
+ pathParams: {},
394
+ __requestType: null,
395
+ __originalRequestType: null,
396
+ __responseType: null,
397
+ __originalResponseType: null
398
+ };
399
+ }
400
+ function loginV22() {
401
+ const payload = {};
402
+ const getRequestOptions = loginV2(payload);
403
+ const getUrl = (context) => {
404
+ const { url } = getRequestOptions(context);
405
+ return url;
406
+ };
407
+ return {
408
+ getUrl,
409
+ httpMethod: "POST",
410
+ path: "/v2/login",
411
+ pathParams: {},
412
+ __requestType: null,
413
+ __originalRequestType: null,
414
+ __responseType: null,
415
+ __originalResponseType: null
416
+ };
417
+ }
418
+ function changePassword2() {
419
+ const payload = {};
420
+ const getRequestOptions = changePassword(payload);
421
+ const getUrl = (context) => {
422
+ const { url } = getRequestOptions(context);
423
+ return url;
424
+ };
425
+ return {
426
+ getUrl,
427
+ httpMethod: "POST",
428
+ path: "/v2/change-password",
429
+ pathParams: {},
430
+ __requestType: null,
431
+ __originalRequestType: null,
432
+ __responseType: null,
433
+ __originalResponseType: null
434
+ };
435
+ }
436
+ function loginCallback2() {
437
+ const payload = {};
438
+ const getRequestOptions = loginCallback(payload);
439
+ const getUrl = (context) => {
440
+ const { url } = getRequestOptions(context);
441
+ return url;
442
+ };
443
+ return {
444
+ getUrl,
445
+ httpMethod: "GET",
446
+ path: "/v1/callback",
447
+ pathParams: {},
448
+ __requestType: null,
449
+ __originalRequestType: null,
450
+ __responseType: null,
451
+ __originalResponseType: null
452
+ };
453
+ }
454
+ function signOn2() {
455
+ const payload = {};
456
+ const getRequestOptions = signOn(payload);
457
+ const getUrl = (context) => {
458
+ const { url } = getRequestOptions(context);
459
+ return url;
460
+ };
461
+ return {
462
+ getUrl,
463
+ httpMethod: "POST",
464
+ path: "/v2/sign-on",
465
+ pathParams: {},
466
+ __requestType: null,
467
+ __originalRequestType: null,
468
+ __responseType: null,
469
+ __originalResponseType: null
470
+ };
471
+ }
472
+ function logout2() {
473
+ const payload = {};
474
+ const getRequestOptions = logout(payload);
475
+ const getUrl = (context) => {
476
+ const { url } = getRequestOptions(context);
477
+ return url;
478
+ };
479
+ return {
480
+ getUrl,
481
+ httpMethod: "GET",
482
+ path: "/v1/logout",
483
+ pathParams: {},
484
+ __requestType: null,
485
+ __originalRequestType: null,
486
+ __responseType: null,
487
+ __originalResponseType: null
488
+ };
489
+ }
490
+ function verify2() {
491
+ const payload = { factorType: ":factorType" };
492
+ const getRequestOptions = verify(payload);
493
+ const getUrl = (context) => {
494
+ const { url } = getRequestOptions(context);
495
+ return url;
496
+ };
497
+ return {
498
+ getUrl,
499
+ httpMethod: "POST",
500
+ path: "/v2/{factorType}/verify",
501
+ pathParams: { factorType: "factorType" },
502
+ __requestType: null,
503
+ __originalRequestType: null,
504
+ __responseType: null,
505
+ __originalResponseType: null
506
+ };
507
+ }
508
+ // Annotate the CommonJS export names for ESM import in node:
509
+ 0 && (module.exports = {
510
+ changePassword,
511
+ loginCallback,
512
+ loginV2,
513
+ logout,
514
+ registerV2,
515
+ signOn,
516
+ verify
517
+ });
18
518
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oGAAkF"}
1
+ {"version":3,"sources":["../../meta.ts","../../src/iam-authentication-v1-authentication-authentication.http.ts","../../src/iam-authentication-v1-authentication-authentication.meta.ts"],"sourcesContent":["export * from './src/iam-authentication-v1-authentication-authentication.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIamAuthenticationV1AuthenticationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/iam/wix/google',\n destPath: '/v1/sso/callback/root/0e6a50f5-b523-4e29-990d-f37fa2ffdd69',\n },\n {\n srcPath: '/authentication',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n {\n srcPath: '/iam/authentication',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/authentication',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/iam/authentication',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_authentication';\n\n/**\n * Registers a new member.\n *\n * Typically, after a successful registration, you generate and use member tokens for the\n * registered member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n *\n * If the email used to register the member already exists as a contact email, the registering\n * member need to verify the email address using a code that is sent to the address.\n */\nexport function registerV2(payload: object): RequestOptionsFactory<any> {\n function __registerV2({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.RegisterV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/register',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __registerV2;\n}\n\n/**\n * Logs in an existing member.\n *\n * Typically, after a successful login, you generate and use member tokens for the\n * logged-in member so that subsequent API calls are called as part of a member session.\n * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens).\n */\nexport function loginV2(payload: object): RequestOptionsFactory<any> {\n function __loginV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/login',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __loginV2;\n}\n\n/** Changes the password of a logged in user. */\nexport function changePassword(payload: object): RequestOptionsFactory<any> {\n function __changePassword({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn:\n 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/change-password',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changePassword;\n}\n\nexport function loginCallback(payload: object): RequestOptionsFactory<any> {\n function __loginCallback({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'GET' as any,\n methodFqn:\n 'wix.iam.authentication.v1.AuthenticationService.LoginCallback',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v1/callback',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __loginCallback;\n}\n\nexport function signOn(payload: object): RequestOptionsFactory<any> {\n function __signOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'profile.customFields.value.numValue' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'profile.customFields.value.dateValue' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.SignOn',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/sign-on',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __signOn;\n}\n\n/** Logs out a member. */\nexport function logout(payload: object): RequestOptionsFactory<any> {\n function __logout({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'GET' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v1/logout',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __logout;\n}\n\nexport function verify(payload: object): RequestOptionsFactory<any> {\n function __verify({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.iam.authentication.v1.authentication',\n method: 'POST' as any,\n methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Verify',\n packageName: PACKAGE_NAME,\n url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({\n protoPath: '/v2/{factorType}/verify',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.challenge',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.allowCredentials.id',\n },\n {\n path: 'mfaChallengeData.verificationChallengeData.webauthnData.extensions.largeBlobWrite',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'identity.createdDate' },\n { path: 'identity.updatedDate' },\n { path: 'identity.identityProfile.customFields.value.dateValue' },\n { path: 'additionalData.*.dateValue' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'identity.identityProfile.customFields.value.numValue' },\n { path: 'additionalData.*.numValue' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __verify;\n}\n","import * as ambassadorWixIamAuthenticationV1Authentication from './iam-authentication-v1-authentication-authentication.http.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationTypes from './iam-authentication-v1-authentication-authentication.types.js';\nimport * as ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes from './iam-authentication-v1-authentication-authentication.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function registerV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RegisterV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.registerV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/register',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function loginV2(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginV2Request,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.loginV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/login',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function changePassword(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.ChangePasswordResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.ChangePasswordResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.changePassword(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/change-password',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function loginCallback(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LoginCallbackRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LoginCallbackRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.loginCallback(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/callback',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function signOn(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.SignOnResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.SignOnResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.signOn(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/sign-on',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function logout(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.LogoutRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.RawHttpResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.logout(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/logout',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function verify(): __PublicMethodMetaInfo<\n 'POST',\n { factorType: string },\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.VerifyRequest,\n ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes.StateMachineResponse,\n ambassadorWixIamAuthenticationV1AuthenticationTypes.StateMachineResponse\n> {\n const payload = { factorType: ':factorType' } as any;\n\n const getRequestOptions =\n ambassadorWixIamAuthenticationV1Authentication.verify(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/{factorType}/verify',\n pathParams: { factorType: 'factorType' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,cAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,mBAA6C;AAC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2","logout","registerV2","signOn","verify","import_float","import_timestamp","import_rest_modules","payload","registerV2","loginV2","changePassword","loginCallback","signOn","logout","verify"]}