@wix/identity 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +184 -178
- package/build/cjs/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.meta.d.ts +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js +5 -1
- package/build/cjs/src/iam-authentication-v1-authentication.meta.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.public.d.ts +8 -8
- package/build/cjs/src/iam-authentication-v1-authentication.types.js +9 -9
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +14 -10
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +27 -64
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.meta.d.ts +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js +5 -1
- package/build/cjs/src/iam-recovery-v1-recovery.meta.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +3 -3
- package/build/cjs/src/iam-recovery-v1-recovery.types.js +8 -8
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +13 -9
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.js +45 -73
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.meta.d.ts +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.meta.js +5 -1
- package/build/cjs/src/iam-verification-v1-start-response.meta.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.types.js +8 -8
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +13 -9
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +26 -43
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.d.ts +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js +5 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.meta.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +5 -5
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +5 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.http.js +184 -178
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.meta.d.ts +1 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +8 -8
- package/build/es/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.http.js +27 -64
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.meta.d.ts +1 -1
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +3 -3
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.http.js +45 -73
- package/build/es/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.meta.d.ts +1 -1
- package/build/es/src/iam-verification-v1-start-response.public.d.ts +1 -1
- package/build/es/src/iam-verification-v1-start-response.universal.js.map +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.http.js +26 -43
- package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.meta.d.ts +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +5 -5
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/package.json +7 -3
|
@@ -1,49 +1,11 @@
|
|
|
1
1
|
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
|
|
3
|
+
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
4
|
+
import { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';
|
|
5
|
+
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
6
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
7
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
3
8
|
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
-
const _changePasswordRequest = {};
|
|
5
|
-
const _changePasswordResponse = {};
|
|
6
|
-
const _commonCustomValue = {
|
|
7
|
-
numValue: 'DOUBLE',
|
|
8
|
-
dateValue: 'google.protobuf.Timestamp',
|
|
9
|
-
listValue: '_commonListValue',
|
|
10
|
-
mapValue: '_commonMapValue',
|
|
11
|
-
};
|
|
12
|
-
const _commonListValue = { value: '_commonCustomValue' };
|
|
13
|
-
const _commonMapValue = { value: 'Map#_commonCustomValue' };
|
|
14
|
-
const _customField = { value: '_customValue' };
|
|
15
|
-
const _customValue = {
|
|
16
|
-
numValue: 'DOUBLE',
|
|
17
|
-
dateValue: 'google.protobuf.Timestamp',
|
|
18
|
-
listValue: '_listValue',
|
|
19
|
-
mapValue: '_mapValue',
|
|
20
|
-
};
|
|
21
|
-
const _identity = {
|
|
22
|
-
createdDate: 'google.protobuf.Timestamp',
|
|
23
|
-
updatedDate: 'google.protobuf.Timestamp',
|
|
24
|
-
identityProfile: '_identityProfile',
|
|
25
|
-
};
|
|
26
|
-
const _identityProfile = { customFields: '_customField' };
|
|
27
|
-
const _listValue = { value: '_customValue' };
|
|
28
|
-
const _loginRequest = {};
|
|
29
|
-
const _loginResponse = {
|
|
30
|
-
identity: '_identity',
|
|
31
|
-
additionalData: 'Map#_customValue',
|
|
32
|
-
};
|
|
33
|
-
const _loginV2Request = {};
|
|
34
|
-
const _loginWithIdpConnectionTokenParamsRequest = {};
|
|
35
|
-
const _logoutRequest = {};
|
|
36
|
-
const _mapValue = { value: 'Map#_customValue' };
|
|
37
|
-
const _proceedToNextStateRequest = {};
|
|
38
|
-
const _rawHttpResponse = { body: 'BYTES' };
|
|
39
|
-
const _registerRequest = { identity: '_identity' };
|
|
40
|
-
const _registerV2Request = { profile: '_identityProfile' };
|
|
41
|
-
const _signOnRequest = { profile: '_identityProfile' };
|
|
42
|
-
const _signOnResponse = { identity: '_identity' };
|
|
43
|
-
const _stateMachineResponse = {
|
|
44
|
-
identity: '_identity',
|
|
45
|
-
additionalData: 'Map#_commonCustomValue',
|
|
46
|
-
};
|
|
47
9
|
function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
48
10
|
const domainToMappings = {
|
|
49
11
|
_: [
|
|
@@ -96,24 +58,23 @@ function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
|
96
58
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
97
59
|
}
|
|
98
60
|
export function register(payload) {
|
|
99
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_registerRequest, {
|
|
100
|
-
_customField,
|
|
101
|
-
_customValue,
|
|
102
|
-
_identity,
|
|
103
|
-
_identityProfile,
|
|
104
|
-
_listValue,
|
|
105
|
-
_mapValue,
|
|
106
|
-
});
|
|
107
|
-
const { fromJSON: fromRes } = serializer(_loginResponse, {
|
|
108
|
-
_customField,
|
|
109
|
-
_customValue,
|
|
110
|
-
_identity,
|
|
111
|
-
_identityProfile,
|
|
112
|
-
_listValue,
|
|
113
|
-
_mapValue,
|
|
114
|
-
});
|
|
115
61
|
function __register({ host }) {
|
|
116
|
-
const serializedData =
|
|
62
|
+
const serializedData = transformPaths(payload, [
|
|
63
|
+
{
|
|
64
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
65
|
+
paths: [
|
|
66
|
+
{ path: 'identity.createdDate' },
|
|
67
|
+
{ path: 'identity.updatedDate' },
|
|
68
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
73
|
+
paths: [
|
|
74
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
]);
|
|
117
78
|
const metadata = {
|
|
118
79
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
119
80
|
method: 'POST',
|
|
@@ -124,40 +85,62 @@ export function register(payload) {
|
|
|
124
85
|
host,
|
|
125
86
|
}),
|
|
126
87
|
data: serializedData,
|
|
127
|
-
transformResponse:
|
|
88
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
89
|
+
{
|
|
90
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
91
|
+
paths: [
|
|
92
|
+
{ path: 'identity.createdDate' },
|
|
93
|
+
{ path: 'identity.updatedDate' },
|
|
94
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
95
|
+
{ path: 'additionalData.dateValue' },
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
100
|
+
paths: [
|
|
101
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
102
|
+
{ path: 'additionalData.numValue' },
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
]),
|
|
128
106
|
};
|
|
129
107
|
return metadata;
|
|
130
108
|
}
|
|
131
|
-
__register.fromReq = fromReq;
|
|
132
109
|
return __register;
|
|
133
110
|
}
|
|
134
111
|
export function login(payload) {
|
|
135
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_loginRequest, {});
|
|
136
|
-
const { fromJSON: fromRes } = serializer(_loginResponse, {
|
|
137
|
-
_customField,
|
|
138
|
-
_customValue,
|
|
139
|
-
_identity,
|
|
140
|
-
_identityProfile,
|
|
141
|
-
_listValue,
|
|
142
|
-
_mapValue,
|
|
143
|
-
});
|
|
144
112
|
function __login({ host }) {
|
|
145
|
-
const serializedData = toReq(payload);
|
|
146
113
|
const metadata = {
|
|
147
114
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
148
115
|
method: 'POST',
|
|
149
116
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Login',
|
|
150
117
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
151
118
|
protoPath: '/v1/login',
|
|
152
|
-
data:
|
|
119
|
+
data: payload,
|
|
153
120
|
host,
|
|
154
121
|
}),
|
|
155
|
-
data:
|
|
156
|
-
transformResponse:
|
|
122
|
+
data: payload,
|
|
123
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
124
|
+
{
|
|
125
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
126
|
+
paths: [
|
|
127
|
+
{ path: 'identity.createdDate' },
|
|
128
|
+
{ path: 'identity.updatedDate' },
|
|
129
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
130
|
+
{ path: 'additionalData.dateValue' },
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
135
|
+
paths: [
|
|
136
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
137
|
+
{ path: 'additionalData.numValue' },
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
]),
|
|
157
141
|
};
|
|
158
142
|
return metadata;
|
|
159
143
|
}
|
|
160
|
-
__login.fromReq = fromReq;
|
|
161
144
|
return __login;
|
|
162
145
|
}
|
|
163
146
|
/**
|
|
@@ -170,26 +153,17 @@ export function login(payload) {
|
|
|
170
153
|
* member need to verify the email address using a code that is sent to the address.
|
|
171
154
|
*/
|
|
172
155
|
export function registerV2(payload) {
|
|
173
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_registerV2Request, {
|
|
174
|
-
_customField,
|
|
175
|
-
_customValue,
|
|
176
|
-
_identityProfile,
|
|
177
|
-
_listValue,
|
|
178
|
-
_mapValue,
|
|
179
|
-
});
|
|
180
|
-
const { fromJSON: fromRes } = serializer(_stateMachineResponse, {
|
|
181
|
-
_commonCustomValue,
|
|
182
|
-
_commonListValue,
|
|
183
|
-
_commonMapValue,
|
|
184
|
-
_customField,
|
|
185
|
-
_customValue,
|
|
186
|
-
_identity,
|
|
187
|
-
_identityProfile,
|
|
188
|
-
_listValue,
|
|
189
|
-
_mapValue,
|
|
190
|
-
});
|
|
191
156
|
function __registerV2({ host }) {
|
|
192
|
-
const serializedData =
|
|
157
|
+
const serializedData = transformPaths(payload, [
|
|
158
|
+
{
|
|
159
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
160
|
+
paths: [{ path: 'profile.customFields.value.numValue' }],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
164
|
+
paths: [{ path: 'profile.customFields.value.dateValue' }],
|
|
165
|
+
},
|
|
166
|
+
]);
|
|
193
167
|
const metadata = {
|
|
194
168
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
195
169
|
method: 'POST',
|
|
@@ -200,11 +174,27 @@ export function registerV2(payload) {
|
|
|
200
174
|
host,
|
|
201
175
|
}),
|
|
202
176
|
data: serializedData,
|
|
203
|
-
transformResponse:
|
|
177
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
178
|
+
{
|
|
179
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
180
|
+
paths: [
|
|
181
|
+
{ path: 'identity.createdDate' },
|
|
182
|
+
{ path: 'identity.updatedDate' },
|
|
183
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
184
|
+
{ path: 'additionalData.dateValue' },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
189
|
+
paths: [
|
|
190
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
191
|
+
{ path: 'additionalData.numValue' },
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
]),
|
|
204
195
|
};
|
|
205
196
|
return metadata;
|
|
206
197
|
}
|
|
207
|
-
__registerV2.fromReq = fromReq;
|
|
208
198
|
return __registerV2;
|
|
209
199
|
}
|
|
210
200
|
/**
|
|
@@ -214,139 +204,140 @@ export function registerV2(payload) {
|
|
|
214
204
|
* logged-in member so that subsequent API calls are called as part of a member session.
|
|
215
205
|
*/
|
|
216
206
|
export function loginV2(payload) {
|
|
217
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_loginV2Request, {});
|
|
218
|
-
const { fromJSON: fromRes } = serializer(_stateMachineResponse, {
|
|
219
|
-
_commonCustomValue,
|
|
220
|
-
_commonListValue,
|
|
221
|
-
_commonMapValue,
|
|
222
|
-
_customField,
|
|
223
|
-
_customValue,
|
|
224
|
-
_identity,
|
|
225
|
-
_identityProfile,
|
|
226
|
-
_listValue,
|
|
227
|
-
_mapValue,
|
|
228
|
-
});
|
|
229
207
|
function __loginV2({ host }) {
|
|
230
|
-
const serializedData = toReq(payload);
|
|
231
208
|
const metadata = {
|
|
232
209
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
233
210
|
method: 'POST',
|
|
234
211
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginV2',
|
|
235
212
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
236
213
|
protoPath: '/v2/login',
|
|
237
|
-
data:
|
|
214
|
+
data: payload,
|
|
238
215
|
host,
|
|
239
216
|
}),
|
|
240
|
-
data:
|
|
241
|
-
transformResponse:
|
|
217
|
+
data: payload,
|
|
218
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
219
|
+
{
|
|
220
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
221
|
+
paths: [
|
|
222
|
+
{ path: 'identity.createdDate' },
|
|
223
|
+
{ path: 'identity.updatedDate' },
|
|
224
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
225
|
+
{ path: 'additionalData.dateValue' },
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
230
|
+
paths: [
|
|
231
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
232
|
+
{ path: 'additionalData.numValue' },
|
|
233
|
+
],
|
|
234
|
+
},
|
|
235
|
+
]),
|
|
242
236
|
};
|
|
243
237
|
return metadata;
|
|
244
238
|
}
|
|
245
|
-
__loginV2.fromReq = fromReq;
|
|
246
239
|
return __loginV2;
|
|
247
240
|
}
|
|
248
241
|
/** Changes the password of a logged in user. */
|
|
249
242
|
export function changePassword(payload) {
|
|
250
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_changePasswordRequest, {});
|
|
251
|
-
const { fromJSON: fromRes } = serializer(_changePasswordResponse, {});
|
|
252
243
|
function __changePassword({ host }) {
|
|
253
|
-
const serializedData = toReq(payload);
|
|
254
244
|
const metadata = {
|
|
255
245
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
256
246
|
method: 'POST',
|
|
257
247
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.ChangePassword',
|
|
258
248
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
259
249
|
protoPath: '/v2/change-password',
|
|
260
|
-
data:
|
|
250
|
+
data: payload,
|
|
261
251
|
host,
|
|
262
252
|
}),
|
|
263
|
-
data:
|
|
264
|
-
transformResponse: fromRes,
|
|
253
|
+
data: payload,
|
|
265
254
|
};
|
|
266
255
|
return metadata;
|
|
267
256
|
}
|
|
268
|
-
__changePassword.fromReq = fromReq;
|
|
269
257
|
return __changePassword;
|
|
270
258
|
}
|
|
271
259
|
export function loginWithIdpConnectionTokenParams(payload) {
|
|
272
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_loginWithIdpConnectionTokenParamsRequest, {});
|
|
273
|
-
const { fromJSON: fromRes } = serializer(_stateMachineResponse, {
|
|
274
|
-
_commonCustomValue,
|
|
275
|
-
_commonListValue,
|
|
276
|
-
_commonMapValue,
|
|
277
|
-
_customField,
|
|
278
|
-
_customValue,
|
|
279
|
-
_identity,
|
|
280
|
-
_identityProfile,
|
|
281
|
-
_listValue,
|
|
282
|
-
_mapValue,
|
|
283
|
-
});
|
|
284
260
|
function __loginWithIdpConnectionTokenParams({ host }) {
|
|
285
|
-
const serializedData = toReq(payload);
|
|
286
261
|
const metadata = {
|
|
287
262
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
288
263
|
method: 'POST',
|
|
289
264
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.LoginWithIdpConnectionTokenParams',
|
|
290
265
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
291
266
|
protoPath: '/v1/sso/login-with-token-params',
|
|
292
|
-
data:
|
|
267
|
+
data: payload,
|
|
293
268
|
host,
|
|
294
269
|
}),
|
|
295
|
-
data:
|
|
296
|
-
transformResponse:
|
|
270
|
+
data: payload,
|
|
271
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
272
|
+
{
|
|
273
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
274
|
+
paths: [
|
|
275
|
+
{ path: 'identity.createdDate' },
|
|
276
|
+
{ path: 'identity.updatedDate' },
|
|
277
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
278
|
+
{ path: 'additionalData.dateValue' },
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
283
|
+
paths: [
|
|
284
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
285
|
+
{ path: 'additionalData.numValue' },
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
]),
|
|
297
289
|
};
|
|
298
290
|
return metadata;
|
|
299
291
|
}
|
|
300
|
-
__loginWithIdpConnectionTokenParams.fromReq = fromReq;
|
|
301
292
|
return __loginWithIdpConnectionTokenParams;
|
|
302
293
|
}
|
|
303
294
|
export function proceedToNextState(payload) {
|
|
304
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_proceedToNextStateRequest, {});
|
|
305
|
-
const { fromJSON: fromRes } = serializer(_loginResponse, {
|
|
306
|
-
_customField,
|
|
307
|
-
_customValue,
|
|
308
|
-
_identity,
|
|
309
|
-
_identityProfile,
|
|
310
|
-
_listValue,
|
|
311
|
-
_mapValue,
|
|
312
|
-
});
|
|
313
295
|
function __proceedToNextState({ host }) {
|
|
314
|
-
const serializedData = toReq(payload);
|
|
315
296
|
const metadata = {
|
|
316
297
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
317
298
|
method: 'POST',
|
|
318
299
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.ProceedToNextState',
|
|
319
300
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
320
301
|
protoPath: '/v1/state/proceed',
|
|
321
|
-
data:
|
|
302
|
+
data: payload,
|
|
322
303
|
host,
|
|
323
304
|
}),
|
|
324
|
-
data:
|
|
325
|
-
transformResponse:
|
|
305
|
+
data: payload,
|
|
306
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
307
|
+
{
|
|
308
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
309
|
+
paths: [
|
|
310
|
+
{ path: 'identity.createdDate' },
|
|
311
|
+
{ path: 'identity.updatedDate' },
|
|
312
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
313
|
+
{ path: 'additionalData.dateValue' },
|
|
314
|
+
],
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
318
|
+
paths: [
|
|
319
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
320
|
+
{ path: 'additionalData.numValue' },
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
]),
|
|
326
324
|
};
|
|
327
325
|
return metadata;
|
|
328
326
|
}
|
|
329
|
-
__proceedToNextState.fromReq = fromReq;
|
|
330
327
|
return __proceedToNextState;
|
|
331
328
|
}
|
|
332
329
|
export function signOn(payload) {
|
|
333
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_signOnRequest, {
|
|
334
|
-
_customField,
|
|
335
|
-
_customValue,
|
|
336
|
-
_identityProfile,
|
|
337
|
-
_listValue,
|
|
338
|
-
_mapValue,
|
|
339
|
-
});
|
|
340
|
-
const { fromJSON: fromRes } = serializer(_signOnResponse, {
|
|
341
|
-
_customField,
|
|
342
|
-
_customValue,
|
|
343
|
-
_identity,
|
|
344
|
-
_identityProfile,
|
|
345
|
-
_listValue,
|
|
346
|
-
_mapValue,
|
|
347
|
-
});
|
|
348
330
|
function __signOn({ host }) {
|
|
349
|
-
const serializedData =
|
|
331
|
+
const serializedData = transformPaths(payload, [
|
|
332
|
+
{
|
|
333
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
334
|
+
paths: [{ path: 'profile.customFields.value.numValue' }],
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
338
|
+
paths: [{ path: 'profile.customFields.value.dateValue' }],
|
|
339
|
+
},
|
|
340
|
+
]);
|
|
350
341
|
const metadata = {
|
|
351
342
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
352
343
|
method: 'POST',
|
|
@@ -357,34 +348,49 @@ export function signOn(payload) {
|
|
|
357
348
|
host,
|
|
358
349
|
}),
|
|
359
350
|
data: serializedData,
|
|
360
|
-
transformResponse:
|
|
351
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
352
|
+
{
|
|
353
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
354
|
+
paths: [
|
|
355
|
+
{ path: 'identity.createdDate' },
|
|
356
|
+
{ path: 'identity.updatedDate' },
|
|
357
|
+
{ path: 'identity.identityProfile.customFields.value.dateValue' },
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
362
|
+
paths: [
|
|
363
|
+
{ path: 'identity.identityProfile.customFields.value.numValue' },
|
|
364
|
+
],
|
|
365
|
+
},
|
|
366
|
+
]),
|
|
361
367
|
};
|
|
362
368
|
return metadata;
|
|
363
369
|
}
|
|
364
|
-
__signOn.fromReq = fromReq;
|
|
365
370
|
return __signOn;
|
|
366
371
|
}
|
|
367
372
|
/** Logs out a member. */
|
|
368
373
|
export function logout(payload) {
|
|
369
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_logoutRequest, {});
|
|
370
|
-
const { fromJSON: fromRes } = serializer(_rawHttpResponse, {});
|
|
371
374
|
function __logout({ host }) {
|
|
372
|
-
const serializedData = toReq(payload);
|
|
373
375
|
const metadata = {
|
|
374
376
|
entityFqdn: 'wix.iam.authentication.v1.authentication',
|
|
375
377
|
method: 'GET',
|
|
376
378
|
methodFqn: 'wix.iam.authentication.v1.AuthenticationService.Logout',
|
|
377
379
|
url: resolveWixIamAuthenticationV1AuthenticationServiceUrl({
|
|
378
380
|
protoPath: '/v1/logout',
|
|
379
|
-
data:
|
|
381
|
+
data: payload,
|
|
380
382
|
host,
|
|
381
383
|
}),
|
|
382
|
-
params: toURLSearchParams(
|
|
383
|
-
transformResponse:
|
|
384
|
+
params: toURLSearchParams(payload),
|
|
385
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
386
|
+
{
|
|
387
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
388
|
+
paths: [{ path: 'body' }],
|
|
389
|
+
},
|
|
390
|
+
]),
|
|
384
391
|
};
|
|
385
392
|
return metadata;
|
|
386
393
|
}
|
|
387
|
-
__logout.fromReq = fromReq;
|
|
388
394
|
return __logout;
|
|
389
395
|
}
|
|
390
396
|
//# sourceMappingURL=iam-authentication-v1-authentication.http.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-authentication-v1-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"iam-authentication-v1-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAwBhD,SAAS,qDAAqD,CAC5D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE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Types from './iam-authentication-v1-authentication.types';
|
|
2
2
|
import * as ambassadorWixIamAuthenticationV1AuthenticationUniversalTypes from './iam-authentication-v1-authentication.universal';
|
|
3
|
-
export
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
4
|
getUrl: (context: any) => string;
|
|
5
5
|
httpMethod: K;
|
|
6
6
|
path: string;
|
|
@@ -3,14 +3,14 @@ import { Identity, Identifier, LoginId, LoginOptions, LoginV2Options, LoginWithI
|
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function register(httpClient: HttpClient): (identity: Identity, options?: RegisterOptions
|
|
7
|
-
export declare function login(httpClient: HttpClient): (identifier: Identifier, options?: LoginOptions
|
|
8
|
-
export declare function registerV2(httpClient: HttpClient): (loginId: LoginId, options?: RegisterV2Options
|
|
9
|
-
export declare function loginV2(httpClient: HttpClient): (loginId: LoginId, options?: LoginV2Options
|
|
6
|
+
export declare function register(httpClient: HttpClient): (identity: Identity, options?: RegisterOptions) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse & import("./iam-authentication-v1-authentication.universal").LoginResponseNonNullableFields>;
|
|
7
|
+
export declare function login(httpClient: HttpClient): (identifier: Identifier, options?: LoginOptions) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse & import("./iam-authentication-v1-authentication.universal").LoginResponseNonNullableFields>;
|
|
8
|
+
export declare function registerV2(httpClient: HttpClient): (loginId: LoginId, options?: RegisterV2Options) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse & import("./iam-authentication-v1-authentication.universal").StateMachineResponseNonNullableFields>;
|
|
9
|
+
export declare function loginV2(httpClient: HttpClient): (loginId: LoginId, options?: LoginV2Options) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse & import("./iam-authentication-v1-authentication.universal").StateMachineResponseNonNullableFields>;
|
|
10
10
|
export declare function changePassword(httpClient: HttpClient): (newPassword: string) => Promise<void>;
|
|
11
|
-
export declare function loginWithIdpConnectionTokenParams(httpClient: HttpClient): (options?: LoginWithIdpConnectionTokenParamsOptions
|
|
12
|
-
export declare function proceedToNextState(httpClient: HttpClient): (options?: ProceedToNextStateOptions
|
|
13
|
-
export declare function signOn(httpClient: HttpClient): (loginId: LoginId, options?: SignOnOptions
|
|
14
|
-
export declare function logout(httpClient: HttpClient): (options?: LogoutOptions
|
|
11
|
+
export declare function loginWithIdpConnectionTokenParams(httpClient: HttpClient): (options?: LoginWithIdpConnectionTokenParamsOptions) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse & import("./iam-authentication-v1-authentication.universal").StateMachineResponseNonNullableFields>;
|
|
12
|
+
export declare function proceedToNextState(httpClient: HttpClient): (options?: ProceedToNextStateOptions) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse & import("./iam-authentication-v1-authentication.universal").LoginResponseNonNullableFields>;
|
|
13
|
+
export declare function signOn(httpClient: HttpClient): (loginId: LoginId, options?: SignOnOptions) => Promise<import("./iam-authentication-v1-authentication.universal").SignOnResponse & import("./iam-authentication-v1-authentication.universal").SignOnResponseNonNullableFields>;
|
|
14
|
+
export declare function logout(httpClient: HttpClient): (options?: LogoutOptions) => Promise<import("./iam-authentication-v1-authentication.universal").RawHttpResponse & import("./iam-authentication-v1-authentication.universal").RawHttpResponseNonNullableFields>;
|
|
15
15
|
export { PrivacyStatus, EmailTag, PhoneTag, AddressTag, StatusName, Reason, StateStatus, StateType, TenantType, } from './iam-authentication-v1-authentication.universal';
|
|
16
16
|
export { Authentication, RegisterRequest, Identity, Identifier, IdentifierValueOneOf, Connection, ConnectionTypeOneOf, IdpConnection, AuthenticatorConnection, IdentityProfile, CustomField, CustomValue, CustomValueValueOneOf, ListValue, MapValue, SecondaryEmail, Phone, AddressWrapper, Address, Metadata, Email, StatusV2, CaptchaToken, CaptchaTokenTokenOneOf, LoginResponse, State, LoginRequest, LoginId, LoginIdTypeOneOf, SuccessfulLoginEvent, RegisterV2Request, StateMachineResponse, CommonCustomValue, CommonCustomValueValueOneOf, CommonListValue, CommonMapValue, LoginV2Request, ChangePasswordRequest, ChangePasswordResponse, LoginWithIdpConnectionRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, LoginCallbackRequest, LoginWithIdpConnectionTokenParamsRequest, ProceedToNextStateRequest, SignOnRequest, SignOnResponse, LogoutRequest, LoginResponseNonNullableFields, StateMachineResponseNonNullableFields, SignOnResponseNonNullableFields, RawHttpResponseNonNullableFields, RegisterOptions, LoginOptions, RegisterV2Options, LoginV2Options, LoginWithIdpConnectionTokenParamsOptions, ProceedToNextStateOptions, SignOnOptions, LogoutOptions, } from './iam-authentication-v1-authentication.universal';
|