@wix/identity 1.0.53 → 1.0.54
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/src/iam-authentication-v1-authentication.http.d.ts +8 -8
- package/build/cjs/src/iam-authentication-v1-authentication.http.js +18 -1
- package/build/cjs/src/iam-authentication-v1-authentication.http.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.d.ts +185 -0
- package/build/cjs/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.d.ts +192 -7
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js +16 -1
- package/build/cjs/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +2 -2
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +15 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +2 -2
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +99 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +100 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +13 -1
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +3 -3
- package/build/cjs/src/iam-verification-v1-start-response.http.js +15 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +3 -3
- package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +102 -0
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +104 -2
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +13 -1
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.d.ts +4 -4
- package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +4 -4
- package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +13 -0
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +16 -3
- package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.http.d.ts +8 -8
- package/build/es/src/iam-authentication-v1-authentication.http.js +18 -1
- package/build/es/src/iam-authentication-v1-authentication.http.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.public.d.ts +8 -8
- package/build/es/src/iam-authentication-v1-authentication.types.d.ts +185 -0
- package/build/es/src/iam-authentication-v1-authentication.types.js.map +1 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.d.ts +192 -7
- package/build/es/src/iam-authentication-v1-authentication.universal.js +16 -1
- package/build/es/src/iam-authentication-v1-authentication.universal.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.http.d.ts +2 -2
- package/build/es/src/iam-recovery-v1-recovery.http.js +15 -1
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +2 -2
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +99 -0
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +100 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.js +13 -1
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.http.d.ts +3 -3
- package/build/es/src/iam-verification-v1-start-response.http.js +15 -1
- package/build/es/src/iam-verification-v1-start-response.http.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.public.d.ts +3 -3
- package/build/es/src/iam-verification-v1-start-response.types.d.ts +102 -0
- package/build/es/src/iam-verification-v1-start-response.types.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.universal.d.ts +104 -2
- package/build/es/src/iam-verification-v1-start-response.universal.js +13 -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.d.ts +4 -4
- package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +1 -1
- package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +4 -4
- package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +13 -0
- package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +16 -3
- package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { RawHttpResponse, LoginRequest, LoginResponse, ProceedToNextStateRequest, RegisterRequest, LogoutRequest, LoginV2Request, RegisterV2Request, StateMachineResponse, SignOnRequest, SignOnResponse } from './iam-authentication-v1-authentication.types';
|
|
3
|
-
export declare function register(payload: RegisterRequest): RequestOptionsFactory<LoginResponse>;
|
|
4
|
-
export declare function login(payload: LoginRequest): RequestOptionsFactory<LoginResponse>;
|
|
2
|
+
import { RawHttpResponse, LoginRequest, LoginResponse, ProceedToNextStateRequest, RegisterRequest, LogoutRequest, LoginV2Request, RegisterV2Request, StateMachineResponse, SignOnRequest, SignOnResponse, LoginResponseNonNullableFields, StateMachineResponseNonNullableFields, SignOnResponseNonNullableFields, RawHttpResponseNonNullableFields } from './iam-authentication-v1-authentication.types';
|
|
3
|
+
export declare function register(payload: RegisterRequest): RequestOptionsFactory<LoginResponse & LoginResponseNonNullableFields>;
|
|
4
|
+
export declare function login(payload: LoginRequest): RequestOptionsFactory<LoginResponse & LoginResponseNonNullableFields>;
|
|
5
5
|
/**
|
|
6
6
|
* Registers a new member.
|
|
7
7
|
*
|
|
@@ -11,15 +11,15 @@ export declare function login(payload: LoginRequest): RequestOptionsFactory<Logi
|
|
|
11
11
|
* If the email used to register the member already exists as a contact email, the registering
|
|
12
12
|
* member need to verify the email address using a code that is sent to the address.
|
|
13
13
|
*/
|
|
14
|
-
export declare function registerV2(payload: RegisterV2Request): RequestOptionsFactory<StateMachineResponse>;
|
|
14
|
+
export declare function registerV2(payload: RegisterV2Request): RequestOptionsFactory<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
15
15
|
/**
|
|
16
16
|
* Logs in an existing user.
|
|
17
17
|
*
|
|
18
18
|
* Typically, after a sucessful login, you generate and use member tokens for the
|
|
19
19
|
* logged-in member so that subsequent API calls are called as part of a member session.
|
|
20
20
|
*/
|
|
21
|
-
export declare function loginV2(payload: LoginV2Request): RequestOptionsFactory<StateMachineResponse>;
|
|
22
|
-
export declare function proceedToNextState(payload: ProceedToNextStateRequest): RequestOptionsFactory<LoginResponse>;
|
|
23
|
-
export declare function signOn(payload: SignOnRequest): RequestOptionsFactory<SignOnResponse>;
|
|
21
|
+
export declare function loginV2(payload: LoginV2Request): RequestOptionsFactory<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
22
|
+
export declare function proceedToNextState(payload: ProceedToNextStateRequest): RequestOptionsFactory<LoginResponse & LoginResponseNonNullableFields>;
|
|
23
|
+
export declare function signOn(payload: SignOnRequest): RequestOptionsFactory<SignOnResponse & SignOnResponseNonNullableFields>;
|
|
24
24
|
/** Logs out a member. */
|
|
25
|
-
export declare function logout(payload: LogoutRequest): RequestOptionsFactory<RawHttpResponse>;
|
|
25
|
+
export declare function logout(payload: LogoutRequest): RequestOptionsFactory<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
@@ -4,6 +4,14 @@ exports.logout = exports.signOn = exports.proceedToNextState = exports.loginV2 =
|
|
|
4
4
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
5
|
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
6
6
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
7
|
+
const _commonCustomValue = {
|
|
8
|
+
numValue: 'DOUBLE',
|
|
9
|
+
dateValue: 'google.protobuf.Timestamp',
|
|
10
|
+
listValue: '_commonListValue',
|
|
11
|
+
mapValue: '_commonMapValue',
|
|
12
|
+
};
|
|
13
|
+
const _commonListValue = { value: '_commonCustomValue' };
|
|
14
|
+
const _commonMapValue = { value: 'Map#_commonCustomValue' };
|
|
7
15
|
const _customField = { value: '_customValue' };
|
|
8
16
|
const _customValue = {
|
|
9
17
|
numValue: 'DOUBLE',
|
|
@@ -32,7 +40,10 @@ const _registerRequest = { identity: '_identity' };
|
|
|
32
40
|
const _registerV2Request = { profile: '_identityProfile' };
|
|
33
41
|
const _signOnRequest = { profile: '_identityProfile' };
|
|
34
42
|
const _signOnResponse = {};
|
|
35
|
-
const _stateMachineResponse = {
|
|
43
|
+
const _stateMachineResponse = {
|
|
44
|
+
identity: '_identity',
|
|
45
|
+
additionalData: 'Map#_commonCustomValue',
|
|
46
|
+
};
|
|
36
47
|
function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
37
48
|
const domainToMappings = {
|
|
38
49
|
_: [
|
|
@@ -175,6 +186,9 @@ function registerV2(payload) {
|
|
|
175
186
|
_mapValue,
|
|
176
187
|
});
|
|
177
188
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_stateMachineResponse, {
|
|
189
|
+
_commonCustomValue,
|
|
190
|
+
_commonListValue,
|
|
191
|
+
_commonMapValue,
|
|
178
192
|
_customField,
|
|
179
193
|
_customValue,
|
|
180
194
|
_identity,
|
|
@@ -211,6 +225,9 @@ exports.registerV2 = registerV2;
|
|
|
211
225
|
function loginV2(payload) {
|
|
212
226
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_loginV2Request, {});
|
|
213
227
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_stateMachineResponse, {
|
|
228
|
+
_commonCustomValue,
|
|
229
|
+
_commonListValue,
|
|
230
|
+
_commonMapValue,
|
|
214
231
|
_customField,
|
|
215
232
|
_customValue,
|
|
216
233
|
_identity,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-authentication-v1-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;
|
|
1
|
+
{"version":3,"file":"iam-authentication-v1-authentication.http.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAqBhD,MAAM,kBAAkB,GAAG;IACzB,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,kBAAkB;IAC7B,QAAQ,EAAE,iBAAiB;CAC5B,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AACzD,MAAM,eAAe,GAAG,EAAE,KAAK,EAAE,wBAAwB,EAAE,CAAC;AAC5D,MAAM,YAAY,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAC/C,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,2BAA2B;IACtC,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;CACtB,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,eAAe,EAAE,kBAAkB;CACpC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAC7C,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,cAAc,E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,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;IAE3B,OAAO,QAAQ,CAAC;AAClB,CAAC;AA3BD,wBA2BC"}
|
|
@@ -3,12 +3,12 @@ import { Identity, Identifier, LoginId, LoginOptions, LoginV2Options, LogoutOpti
|
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function register(httpClient: HttpClient): (identity: Identity, options?: RegisterOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
|
|
7
|
-
export declare function login(httpClient: HttpClient): (identifier: Identifier, options?: LoginOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
|
|
8
|
-
export declare function registerV2(httpClient: HttpClient): (loginId: LoginId, options?: RegisterV2Options | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse>;
|
|
9
|
-
export declare function loginV2(httpClient: HttpClient): (loginId: LoginId, options?: LoginV2Options | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse>;
|
|
10
|
-
export declare function proceedToNextState(httpClient: HttpClient): (options?: ProceedToNextStateOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse>;
|
|
11
|
-
export declare function signOn(httpClient: HttpClient): (loginId: LoginId, options?: SignOnOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").SignOnResponse>;
|
|
12
|
-
export declare function logout(httpClient: HttpClient): (options?: LogoutOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").RawHttpResponse>;
|
|
6
|
+
export declare function register(httpClient: HttpClient): (identity: Identity, options?: RegisterOptions | undefined) => 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 | undefined) => 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 | undefined) => 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 | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").StateMachineResponse & import("./iam-authentication-v1-authentication.universal").StateMachineResponseNonNullableFields>;
|
|
10
|
+
export declare function proceedToNextState(httpClient: HttpClient): (options?: ProceedToNextStateOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").LoginResponse & import("./iam-authentication-v1-authentication.universal").LoginResponseNonNullableFields>;
|
|
11
|
+
export declare function signOn(httpClient: HttpClient): (loginId: LoginId, options?: SignOnOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").SignOnResponse & import("./iam-authentication-v1-authentication.universal").SignOnResponseNonNullableFields>;
|
|
12
|
+
export declare function logout(httpClient: HttpClient): (options?: LogoutOptions | undefined) => Promise<import("./iam-authentication-v1-authentication.universal").RawHttpResponse & import("./iam-authentication-v1-authentication.universal").RawHttpResponseNonNullableFields>;
|
|
13
13
|
export { PrivacyStatus, EmailTag, PhoneTag, AddressTag, StatusName, Reason, StateStatus, StateType, TenantType, } from './iam-authentication-v1-authentication.universal';
|
|
14
|
-
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, LoginV2Request, LoginWithIdpConnectionRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, LoginCallbackRequest, ProceedToNextStateRequest, SignOnRequest, SignOnResponse, LogoutRequest, RegisterOptions, LoginOptions, RegisterV2Options, LoginV2Options, ProceedToNextStateOptions, SignOnOptions, LogoutOptions, } from './iam-authentication-v1-authentication.universal';
|
|
14
|
+
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, LoginWithIdpConnectionRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, LoginCallbackRequest, ProceedToNextStateRequest, SignOnRequest, SignOnResponse, LogoutRequest, LoginResponseNonNullableFields, StateMachineResponseNonNullableFields, SignOnResponseNonNullableFields, RawHttpResponseNonNullableFields, RegisterOptions, LoginOptions, RegisterV2Options, LoginV2Options, ProceedToNextStateOptions, SignOnOptions, LogoutOptions, } from './iam-authentication-v1-authentication.universal';
|
|
@@ -308,6 +308,8 @@ export interface StateMachineResponse {
|
|
|
308
308
|
stateToken?: string | null;
|
|
309
309
|
/** Identing of the current member. */
|
|
310
310
|
identity?: Identity;
|
|
311
|
+
/** additional_data = 5; //TBD */
|
|
312
|
+
additionalData?: Record<string, CommonCustomValue>;
|
|
311
313
|
}
|
|
312
314
|
export declare enum StateType {
|
|
313
315
|
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
@@ -316,6 +318,39 @@ export declare enum StateType {
|
|
|
316
318
|
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
317
319
|
STATUS_CHECK = "STATUS_CHECK"
|
|
318
320
|
}
|
|
321
|
+
export interface CommonCustomValue extends CommonCustomValueValueOneOf {
|
|
322
|
+
/** String value. */
|
|
323
|
+
strValue?: string;
|
|
324
|
+
/** Number value. */
|
|
325
|
+
numValue?: number;
|
|
326
|
+
/** Date value. */
|
|
327
|
+
dateValue?: Date;
|
|
328
|
+
/** List value. */
|
|
329
|
+
listValue?: CommonListValue;
|
|
330
|
+
/** Map value. */
|
|
331
|
+
mapValue?: CommonMapValue;
|
|
332
|
+
}
|
|
333
|
+
/** @oneof */
|
|
334
|
+
export interface CommonCustomValueValueOneOf {
|
|
335
|
+
/** String value. */
|
|
336
|
+
strValue?: string;
|
|
337
|
+
/** Number value. */
|
|
338
|
+
numValue?: number;
|
|
339
|
+
/** Date value. */
|
|
340
|
+
dateValue?: Date;
|
|
341
|
+
/** List value. */
|
|
342
|
+
listValue?: CommonListValue;
|
|
343
|
+
/** Map value. */
|
|
344
|
+
mapValue?: CommonMapValue;
|
|
345
|
+
}
|
|
346
|
+
export interface CommonListValue {
|
|
347
|
+
/** Custom value. */
|
|
348
|
+
value?: CommonCustomValue[];
|
|
349
|
+
}
|
|
350
|
+
export interface CommonMapValue {
|
|
351
|
+
/** Mapped custom value. */
|
|
352
|
+
value?: Record<string, CommonCustomValue>;
|
|
353
|
+
}
|
|
319
354
|
export interface LoginV2Request {
|
|
320
355
|
/** Identifier of member logging in. */
|
|
321
356
|
loginId: LoginId;
|
|
@@ -403,3 +438,153 @@ export interface LogoutRequest {
|
|
|
403
438
|
/** caller identifier */
|
|
404
439
|
clientId?: string | null;
|
|
405
440
|
}
|
|
441
|
+
export interface LoginResponseNonNullableFields {
|
|
442
|
+
state?: {
|
|
443
|
+
status: StateStatus;
|
|
444
|
+
};
|
|
445
|
+
identity?: {
|
|
446
|
+
identifiers: {
|
|
447
|
+
email: string;
|
|
448
|
+
userName: string;
|
|
449
|
+
}[];
|
|
450
|
+
connections: {
|
|
451
|
+
idpConnection?: {
|
|
452
|
+
idpConnectionId: string;
|
|
453
|
+
idpUserId: string;
|
|
454
|
+
};
|
|
455
|
+
authenticatorConnection?: {
|
|
456
|
+
authenticatorConnectionId: string;
|
|
457
|
+
reEnrollmentRequired: boolean;
|
|
458
|
+
};
|
|
459
|
+
}[];
|
|
460
|
+
identityProfile?: {
|
|
461
|
+
emails: string[];
|
|
462
|
+
phones: string[];
|
|
463
|
+
labels: string[];
|
|
464
|
+
privacyStatus: PrivacyStatus;
|
|
465
|
+
customFields: {
|
|
466
|
+
name: string;
|
|
467
|
+
value?: {
|
|
468
|
+
strValue: string;
|
|
469
|
+
numValue: number;
|
|
470
|
+
listValue?: {
|
|
471
|
+
value: NonNullable<NonNullable<NonNullable<NonNullable<LoginResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
}[];
|
|
475
|
+
secondaryEmails: {
|
|
476
|
+
email: string;
|
|
477
|
+
tag: EmailTag;
|
|
478
|
+
}[];
|
|
479
|
+
phonesV2: {
|
|
480
|
+
phone: string;
|
|
481
|
+
tag: PhoneTag;
|
|
482
|
+
}[];
|
|
483
|
+
addresses: {
|
|
484
|
+
tag: AddressTag;
|
|
485
|
+
}[];
|
|
486
|
+
};
|
|
487
|
+
metadata?: {
|
|
488
|
+
tags: string[];
|
|
489
|
+
};
|
|
490
|
+
email?: {
|
|
491
|
+
address: string;
|
|
492
|
+
isVerified: boolean;
|
|
493
|
+
};
|
|
494
|
+
status?: {
|
|
495
|
+
name: StatusName;
|
|
496
|
+
reasons: Reason[];
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
connection?: {
|
|
500
|
+
idpConnection?: {
|
|
501
|
+
idpConnectionId: string;
|
|
502
|
+
idpUserId: string;
|
|
503
|
+
};
|
|
504
|
+
authenticatorConnection?: {
|
|
505
|
+
authenticatorConnectionId: string;
|
|
506
|
+
reEnrollmentRequired: boolean;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
additionalData?: {
|
|
510
|
+
strValue: string;
|
|
511
|
+
numValue: number;
|
|
512
|
+
listValue?: {
|
|
513
|
+
value: NonNullable<LoginResponseNonNullableFields>['additionalData'][];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
export interface StateMachineResponseNonNullableFields {
|
|
518
|
+
state: StateType;
|
|
519
|
+
identity?: {
|
|
520
|
+
identifiers: {
|
|
521
|
+
email: string;
|
|
522
|
+
userName: string;
|
|
523
|
+
}[];
|
|
524
|
+
connections: {
|
|
525
|
+
idpConnection?: {
|
|
526
|
+
idpConnectionId: string;
|
|
527
|
+
idpUserId: string;
|
|
528
|
+
};
|
|
529
|
+
authenticatorConnection?: {
|
|
530
|
+
authenticatorConnectionId: string;
|
|
531
|
+
reEnrollmentRequired: boolean;
|
|
532
|
+
};
|
|
533
|
+
}[];
|
|
534
|
+
identityProfile?: {
|
|
535
|
+
emails: string[];
|
|
536
|
+
phones: string[];
|
|
537
|
+
labels: string[];
|
|
538
|
+
privacyStatus: PrivacyStatus;
|
|
539
|
+
customFields: {
|
|
540
|
+
name: string;
|
|
541
|
+
value?: {
|
|
542
|
+
strValue: string;
|
|
543
|
+
numValue: number;
|
|
544
|
+
listValue?: {
|
|
545
|
+
value: NonNullable<NonNullable<NonNullable<NonNullable<StateMachineResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
}[];
|
|
549
|
+
secondaryEmails: {
|
|
550
|
+
email: string;
|
|
551
|
+
tag: EmailTag;
|
|
552
|
+
}[];
|
|
553
|
+
phonesV2: {
|
|
554
|
+
phone: string;
|
|
555
|
+
tag: PhoneTag;
|
|
556
|
+
}[];
|
|
557
|
+
addresses: {
|
|
558
|
+
tag: AddressTag;
|
|
559
|
+
}[];
|
|
560
|
+
};
|
|
561
|
+
metadata?: {
|
|
562
|
+
tags: string[];
|
|
563
|
+
};
|
|
564
|
+
email?: {
|
|
565
|
+
address: string;
|
|
566
|
+
isVerified: boolean;
|
|
567
|
+
};
|
|
568
|
+
status?: {
|
|
569
|
+
name: StatusName;
|
|
570
|
+
reasons: Reason[];
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
additionalData?: {
|
|
574
|
+
strValue: string;
|
|
575
|
+
numValue: number;
|
|
576
|
+
listValue?: {
|
|
577
|
+
value: NonNullable<StateMachineResponseNonNullableFields>['additionalData'][];
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
export interface SignOnResponseNonNullableFields {
|
|
582
|
+
sessionToken: string;
|
|
583
|
+
}
|
|
584
|
+
export interface RawHttpResponseNonNullableFields {
|
|
585
|
+
body: Uint8Array;
|
|
586
|
+
headers: {
|
|
587
|
+
key: string;
|
|
588
|
+
value: string;
|
|
589
|
+
}[];
|
|
590
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-authentication-v1-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.types.ts"],"names":[],"mappings":";;;AA2HA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAyDD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAWD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAyBD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;AACvB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAoBD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,6EAAmE,CAAA;IACnE,qFAA2E,CAAA;AAC7E,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB;AA0BD,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gEAAiD,CAAA;IACjD,4CAA6B,CAAA;AAC/B,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;
|
|
1
|
+
{"version":3,"file":"iam-authentication-v1-authentication.types.js","sourceRoot":"","sources":["../../../src/iam-authentication-v1-authentication.types.ts"],"names":[],"mappings":";;;AA2HA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAyDD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAWD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,iCAAqB,CAAA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314,8 @@ export interface StateMachineResponse {
|
|
|
314
314
|
stateToken?: string | null;
|
|
315
315
|
/** Identing of the current member. */
|
|
316
316
|
identity?: Identity;
|
|
317
|
+
/** additional_data = 5; //TBD */
|
|
318
|
+
additionalData?: Record<string, CommonCustomValue>;
|
|
317
319
|
}
|
|
318
320
|
export declare enum StateType {
|
|
319
321
|
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
@@ -322,6 +324,39 @@ export declare enum StateType {
|
|
|
322
324
|
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
323
325
|
STATUS_CHECK = "STATUS_CHECK"
|
|
324
326
|
}
|
|
327
|
+
export interface CommonCustomValue extends CommonCustomValueValueOneOf {
|
|
328
|
+
/** String value. */
|
|
329
|
+
strValue?: string;
|
|
330
|
+
/** Number value. */
|
|
331
|
+
numValue?: number;
|
|
332
|
+
/** Date value. */
|
|
333
|
+
dateValue?: Date;
|
|
334
|
+
/** List value. */
|
|
335
|
+
listValue?: CommonListValue;
|
|
336
|
+
/** Map value. */
|
|
337
|
+
mapValue?: CommonMapValue;
|
|
338
|
+
}
|
|
339
|
+
/** @oneof */
|
|
340
|
+
export interface CommonCustomValueValueOneOf {
|
|
341
|
+
/** String value. */
|
|
342
|
+
strValue?: string;
|
|
343
|
+
/** Number value. */
|
|
344
|
+
numValue?: number;
|
|
345
|
+
/** Date value. */
|
|
346
|
+
dateValue?: Date;
|
|
347
|
+
/** List value. */
|
|
348
|
+
listValue?: CommonListValue;
|
|
349
|
+
/** Map value. */
|
|
350
|
+
mapValue?: CommonMapValue;
|
|
351
|
+
}
|
|
352
|
+
export interface CommonListValue {
|
|
353
|
+
/** Custom value. */
|
|
354
|
+
value?: CommonCustomValue[];
|
|
355
|
+
}
|
|
356
|
+
export interface CommonMapValue {
|
|
357
|
+
/** Mapped custom value. */
|
|
358
|
+
value?: Record<string, CommonCustomValue>;
|
|
359
|
+
}
|
|
325
360
|
export interface LoginV2Request {
|
|
326
361
|
/** Identifier of member logging in. */
|
|
327
362
|
loginId: LoginId;
|
|
@@ -409,11 +444,161 @@ export interface LogoutRequest {
|
|
|
409
444
|
/** caller identifier */
|
|
410
445
|
clientId?: string | null;
|
|
411
446
|
}
|
|
447
|
+
export interface LoginResponseNonNullableFields {
|
|
448
|
+
state?: {
|
|
449
|
+
status: StateStatus;
|
|
450
|
+
};
|
|
451
|
+
identity?: {
|
|
452
|
+
identifiers: {
|
|
453
|
+
email: string;
|
|
454
|
+
userName: string;
|
|
455
|
+
}[];
|
|
456
|
+
connections: {
|
|
457
|
+
idpConnection?: {
|
|
458
|
+
idpConnectionId: string;
|
|
459
|
+
idpUserId: string;
|
|
460
|
+
};
|
|
461
|
+
authenticatorConnection?: {
|
|
462
|
+
authenticatorConnectionId: string;
|
|
463
|
+
reEnrollmentRequired: boolean;
|
|
464
|
+
};
|
|
465
|
+
}[];
|
|
466
|
+
identityProfile?: {
|
|
467
|
+
emails: string[];
|
|
468
|
+
phones: string[];
|
|
469
|
+
labels: string[];
|
|
470
|
+
privacyStatus: PrivacyStatus;
|
|
471
|
+
customFields: {
|
|
472
|
+
name: string;
|
|
473
|
+
value?: {
|
|
474
|
+
strValue: string;
|
|
475
|
+
numValue: number;
|
|
476
|
+
listValue?: {
|
|
477
|
+
value: NonNullable<NonNullable<NonNullable<NonNullable<LoginResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
}[];
|
|
481
|
+
secondaryEmails: {
|
|
482
|
+
email: string;
|
|
483
|
+
tag: EmailTag;
|
|
484
|
+
}[];
|
|
485
|
+
phonesV2: {
|
|
486
|
+
phone: string;
|
|
487
|
+
tag: PhoneTag;
|
|
488
|
+
}[];
|
|
489
|
+
addresses: {
|
|
490
|
+
tag: AddressTag;
|
|
491
|
+
}[];
|
|
492
|
+
};
|
|
493
|
+
metadata?: {
|
|
494
|
+
tags: string[];
|
|
495
|
+
};
|
|
496
|
+
email?: {
|
|
497
|
+
address: string;
|
|
498
|
+
isVerified: boolean;
|
|
499
|
+
};
|
|
500
|
+
status?: {
|
|
501
|
+
name: StatusName;
|
|
502
|
+
reasons: Reason[];
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
connection?: {
|
|
506
|
+
idpConnection?: {
|
|
507
|
+
idpConnectionId: string;
|
|
508
|
+
idpUserId: string;
|
|
509
|
+
};
|
|
510
|
+
authenticatorConnection?: {
|
|
511
|
+
authenticatorConnectionId: string;
|
|
512
|
+
reEnrollmentRequired: boolean;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
additionalData?: {
|
|
516
|
+
strValue: string;
|
|
517
|
+
numValue: number;
|
|
518
|
+
listValue?: {
|
|
519
|
+
value: NonNullable<LoginResponseNonNullableFields>['additionalData'][];
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
export interface StateMachineResponseNonNullableFields {
|
|
524
|
+
state: StateType;
|
|
525
|
+
identity?: {
|
|
526
|
+
identifiers: {
|
|
527
|
+
email: string;
|
|
528
|
+
userName: string;
|
|
529
|
+
}[];
|
|
530
|
+
connections: {
|
|
531
|
+
idpConnection?: {
|
|
532
|
+
idpConnectionId: string;
|
|
533
|
+
idpUserId: string;
|
|
534
|
+
};
|
|
535
|
+
authenticatorConnection?: {
|
|
536
|
+
authenticatorConnectionId: string;
|
|
537
|
+
reEnrollmentRequired: boolean;
|
|
538
|
+
};
|
|
539
|
+
}[];
|
|
540
|
+
identityProfile?: {
|
|
541
|
+
emails: string[];
|
|
542
|
+
phones: string[];
|
|
543
|
+
labels: string[];
|
|
544
|
+
privacyStatus: PrivacyStatus;
|
|
545
|
+
customFields: {
|
|
546
|
+
name: string;
|
|
547
|
+
value?: {
|
|
548
|
+
strValue: string;
|
|
549
|
+
numValue: number;
|
|
550
|
+
listValue?: {
|
|
551
|
+
value: NonNullable<NonNullable<NonNullable<NonNullable<StateMachineResponseNonNullableFields>['identity']>['identityProfile']>['customFields'][0]>['value'][];
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
}[];
|
|
555
|
+
secondaryEmails: {
|
|
556
|
+
email: string;
|
|
557
|
+
tag: EmailTag;
|
|
558
|
+
}[];
|
|
559
|
+
phonesV2: {
|
|
560
|
+
phone: string;
|
|
561
|
+
tag: PhoneTag;
|
|
562
|
+
}[];
|
|
563
|
+
addresses: {
|
|
564
|
+
tag: AddressTag;
|
|
565
|
+
}[];
|
|
566
|
+
};
|
|
567
|
+
metadata?: {
|
|
568
|
+
tags: string[];
|
|
569
|
+
};
|
|
570
|
+
email?: {
|
|
571
|
+
address: string;
|
|
572
|
+
isVerified: boolean;
|
|
573
|
+
};
|
|
574
|
+
status?: {
|
|
575
|
+
name: StatusName;
|
|
576
|
+
reasons: Reason[];
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
additionalData?: {
|
|
580
|
+
strValue: string;
|
|
581
|
+
numValue: number;
|
|
582
|
+
listValue?: {
|
|
583
|
+
value: NonNullable<StateMachineResponseNonNullableFields>['additionalData'][];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
export interface SignOnResponseNonNullableFields {
|
|
588
|
+
sessionToken: string;
|
|
589
|
+
}
|
|
590
|
+
export interface RawHttpResponseNonNullableFields {
|
|
591
|
+
body: Uint8Array;
|
|
592
|
+
headers: {
|
|
593
|
+
key: string;
|
|
594
|
+
value: string;
|
|
595
|
+
}[];
|
|
596
|
+
}
|
|
412
597
|
/** @public
|
|
413
598
|
* @documentationMaturity preview
|
|
414
599
|
* @requiredField identity
|
|
415
600
|
*/
|
|
416
|
-
export declare function register(identity: Identity, options?: RegisterOptions): Promise<LoginResponse>;
|
|
601
|
+
export declare function register(identity: Identity, options?: RegisterOptions): Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
417
602
|
export interface RegisterOptions {
|
|
418
603
|
/** TODO: when this becomes required, it will make more sense for it to be a `string` */
|
|
419
604
|
authenticatorId?: string | null;
|
|
@@ -424,7 +609,7 @@ export interface RegisterOptions {
|
|
|
424
609
|
* @documentationMaturity preview
|
|
425
610
|
* @requiredField identifier
|
|
426
611
|
*/
|
|
427
|
-
export declare function login(identifier: Identifier, options?: LoginOptions): Promise<LoginResponse>;
|
|
612
|
+
export declare function login(identifier: Identifier, options?: LoginOptions): Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
428
613
|
export interface LoginOptions {
|
|
429
614
|
/** TODO: when this becomes required, it will make more sense for it to be a `string` */
|
|
430
615
|
authenticatorId?: string | null;
|
|
@@ -446,7 +631,7 @@ export interface LoginOptions {
|
|
|
446
631
|
* @documentationMaturity preview
|
|
447
632
|
* @requiredField loginId
|
|
448
633
|
*/
|
|
449
|
-
export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<StateMachineResponse>;
|
|
634
|
+
export declare function registerV2(loginId: LoginId, options?: RegisterV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
450
635
|
export interface RegisterV2Options {
|
|
451
636
|
/** Password of registering member. */
|
|
452
637
|
password?: string;
|
|
@@ -465,7 +650,7 @@ export interface RegisterV2Options {
|
|
|
465
650
|
* @documentationMaturity preview
|
|
466
651
|
* @requiredField loginId
|
|
467
652
|
*/
|
|
468
|
-
export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<StateMachineResponse>;
|
|
653
|
+
export declare function loginV2(loginId: LoginId, options?: LoginV2Options): Promise<StateMachineResponse & StateMachineResponseNonNullableFields>;
|
|
469
654
|
export interface LoginV2Options {
|
|
470
655
|
/** Password of the member logging in. */
|
|
471
656
|
password?: string;
|
|
@@ -475,7 +660,7 @@ export interface LoginV2Options {
|
|
|
475
660
|
/** @public
|
|
476
661
|
* @documentationMaturity preview
|
|
477
662
|
*/
|
|
478
|
-
export declare function proceedToNextState(options?: ProceedToNextStateOptions): Promise<LoginResponse>;
|
|
663
|
+
export declare function proceedToNextState(options?: ProceedToNextStateOptions): Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
479
664
|
export interface ProceedToNextStateOptions {
|
|
480
665
|
/** State token received from the previous step in the registration or login process. */
|
|
481
666
|
stateToken?: string;
|
|
@@ -487,7 +672,7 @@ export interface ProceedToNextStateOptions {
|
|
|
487
672
|
* @permissionScope IAM.AUTHENTICAITON_SIGN_ON
|
|
488
673
|
* @applicableIdentity APP
|
|
489
674
|
*/
|
|
490
|
-
export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<SignOnResponse>;
|
|
675
|
+
export declare function signOn(loginId: LoginId, options?: SignOnOptions): Promise<SignOnResponse & SignOnResponseNonNullableFields>;
|
|
491
676
|
export interface SignOnOptions {
|
|
492
677
|
/** profile of the identity */
|
|
493
678
|
profile?: IdentityProfile;
|
|
@@ -501,7 +686,7 @@ export interface SignOnOptions {
|
|
|
501
686
|
* @public
|
|
502
687
|
* @documentationMaturity preview
|
|
503
688
|
*/
|
|
504
|
-
export declare function logout(options?: LogoutOptions): Promise<RawHttpResponse>;
|
|
689
|
+
export declare function logout(options?: LogoutOptions): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
505
690
|
export interface LogoutOptions {
|
|
506
691
|
/** redirect after logout */
|
|
507
692
|
postLogoutRedirectUri?: string | null;
|
|
@@ -112,6 +112,12 @@ var TenantType;
|
|
|
112
112
|
TenantType["ROOT"] = "ROOT";
|
|
113
113
|
})(TenantType = exports.TenantType || (exports.TenantType = {}));
|
|
114
114
|
const _addressWrapper = { address: 'wix.common.Address' };
|
|
115
|
+
const _commonCustomValue = {
|
|
116
|
+
listValue: '_commonListValue',
|
|
117
|
+
mapValue: '_commonMapValue',
|
|
118
|
+
};
|
|
119
|
+
const _commonListValue = { value: '_commonCustomValue' };
|
|
120
|
+
const _commonMapValue = { value: 'Map#_commonCustomValue' };
|
|
115
121
|
const _customField = { value: '_customValue' };
|
|
116
122
|
const _customValue = { listValue: '_listValue', mapValue: '_mapValue' };
|
|
117
123
|
const _identity = { identityProfile: '_identityProfile' };
|
|
@@ -134,7 +140,10 @@ const _registerRequest = { identity: '_identity' };
|
|
|
134
140
|
const _registerV2Request = { profile: '_identityProfile' };
|
|
135
141
|
const _signOnRequest = { profile: '_identityProfile' };
|
|
136
142
|
const _signOnResponse = {};
|
|
137
|
-
const _stateMachineResponse = {
|
|
143
|
+
const _stateMachineResponse = {
|
|
144
|
+
identity: '_identity',
|
|
145
|
+
additionalData: 'Map#_commonCustomValue',
|
|
146
|
+
};
|
|
138
147
|
/** @public
|
|
139
148
|
* @documentationMaturity preview
|
|
140
149
|
* @requiredField identity
|
|
@@ -313,6 +322,9 @@ function registerV2(loginId, options) {
|
|
|
313
322
|
rootSchema: _stateMachineResponse,
|
|
314
323
|
depSchemas: {
|
|
315
324
|
_addressWrapper,
|
|
325
|
+
_commonCustomValue,
|
|
326
|
+
_commonListValue,
|
|
327
|
+
_commonMapValue,
|
|
316
328
|
_customField,
|
|
317
329
|
_customValue,
|
|
318
330
|
_identity,
|
|
@@ -380,6 +392,9 @@ function loginV2(loginId, options) {
|
|
|
380
392
|
rootSchema: _stateMachineResponse,
|
|
381
393
|
depSchemas: {
|
|
382
394
|
_addressWrapper,
|
|
395
|
+
_commonCustomValue,
|
|
396
|
+
_commonListValue,
|
|
397
|
+
_commonMapValue,
|
|
383
398
|
_customField,
|
|
384
399
|
_customValue,
|
|
385
400
|
_identity,
|