@wix/identity 1.0.24 → 1.0.25
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.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +13 -0
- package/build/cjs/src/iam-verification-v1-start-response.http.js +91 -0
- package/build/cjs/src/iam-verification-v1-start-response.http.js.map +1 -0
- package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +9 -0
- package/build/cjs/src/iam-verification-v1-start-response.public.js +25 -0
- package/build/cjs/src/iam-verification-v1-start-response.public.js.map +1 -0
- package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +173 -0
- package/build/cjs/src/iam-verification-v1-start-response.types.js +46 -0
- package/build/cjs/src/iam-verification-v1-start-response.types.js.map +1 -0
- package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +211 -0
- package/build/cjs/src/iam-verification-v1-start-response.universal.js +217 -0
- package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/iam-verification-v1-start-response.http.d.ts +13 -0
- package/build/es/src/iam-verification-v1-start-response.http.js +86 -0
- package/build/es/src/iam-verification-v1-start-response.http.js.map +1 -0
- package/build/es/src/iam-verification-v1-start-response.public.d.ts +9 -0
- package/build/es/src/iam-verification-v1-start-response.public.js +14 -0
- package/build/es/src/iam-verification-v1-start-response.public.js.map +1 -0
- package/build/es/src/iam-verification-v1-start-response.types.d.ts +173 -0
- package/build/es/src/iam-verification-v1-start-response.types.js +43 -0
- package/build/es/src/iam-verification-v1-start-response.types.js.map +1 -0
- package/build/es/src/iam-verification-v1-start-response.universal.d.ts +211 -0
- package/build/es/src/iam-verification-v1-start-response.universal.js +193 -0
- package/build/es/src/iam-verification-v1-start-response.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface StartResponse {
|
|
8
|
+
/** the identifier of the verification process */
|
|
9
|
+
verificationId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface StartRequest {
|
|
12
|
+
/**
|
|
13
|
+
* an identity_Id.
|
|
14
|
+
* If not provided - currently, an exception is thrown. In the future the identity from identity response will be taken.
|
|
15
|
+
*/
|
|
16
|
+
identityId?: string | null;
|
|
17
|
+
/** the delivery target */
|
|
18
|
+
target?: Target;
|
|
19
|
+
}
|
|
20
|
+
export declare enum Target {
|
|
21
|
+
UNKNOWN_TARGET = "UNKNOWN_TARGET",
|
|
22
|
+
EMAIL = "EMAIL"
|
|
23
|
+
}
|
|
24
|
+
export interface VerifyRequest {
|
|
25
|
+
/** the code to verify */
|
|
26
|
+
code?: string;
|
|
27
|
+
/** the identifier of the verification process */
|
|
28
|
+
verificationId?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface VerifyResponse {
|
|
31
|
+
}
|
|
32
|
+
export interface VerifyDuringAuthenticationRequest {
|
|
33
|
+
/** the code to verify */
|
|
34
|
+
code: string;
|
|
35
|
+
/** a state token with a REQUIRE_EMAIL_VERIFICATION state */
|
|
36
|
+
stateToken: string;
|
|
37
|
+
}
|
|
38
|
+
export interface StateMachineResponse {
|
|
39
|
+
state?: StateType;
|
|
40
|
+
sessionToken?: string | null;
|
|
41
|
+
stateToken?: string | null;
|
|
42
|
+
identity?: Identity;
|
|
43
|
+
}
|
|
44
|
+
export declare enum StateType {
|
|
45
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
46
|
+
SUCCESS = "SUCCESS",
|
|
47
|
+
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
48
|
+
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
49
|
+
STATUS_CHECK = "STATUS_CHECK"
|
|
50
|
+
}
|
|
51
|
+
export interface Identity {
|
|
52
|
+
/** Identity ID */
|
|
53
|
+
_id?: string | null;
|
|
54
|
+
identifiers?: Identifier[];
|
|
55
|
+
/** @readonly */
|
|
56
|
+
status?: Status;
|
|
57
|
+
/** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
|
|
58
|
+
revision?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Represents the time this Identity was created
|
|
61
|
+
* @readonly
|
|
62
|
+
*/
|
|
63
|
+
_createdDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Represents the time this Identity was last updated
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
_updatedDate?: Date;
|
|
69
|
+
/** All the identity configured connections to authenticate with */
|
|
70
|
+
connections?: Connection[];
|
|
71
|
+
identityProfile?: IdentityProfile;
|
|
72
|
+
/** Stores additional information about the identity that can impact user access. This data can't be set by users. */
|
|
73
|
+
metadata?: Metadata;
|
|
74
|
+
email?: Email;
|
|
75
|
+
statusV2?: StatusV2;
|
|
76
|
+
}
|
|
77
|
+
export interface Identifier extends IdentifierValueOneOf {
|
|
78
|
+
email?: string;
|
|
79
|
+
userName?: string;
|
|
80
|
+
}
|
|
81
|
+
/** @oneof */
|
|
82
|
+
export interface IdentifierValueOneOf {
|
|
83
|
+
email?: string;
|
|
84
|
+
userName?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare enum Status {
|
|
87
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
88
|
+
BLOCKED = "BLOCKED",
|
|
89
|
+
ACTIVE = "ACTIVE",
|
|
90
|
+
PROVISIONED = "PROVISIONED",
|
|
91
|
+
DELETED = "DELETED",
|
|
92
|
+
UNPROVISIONED = "UNPROVISIONED"
|
|
93
|
+
}
|
|
94
|
+
export interface Connection extends ConnectionTypeOneOf {
|
|
95
|
+
idpConnection?: IdpConnection;
|
|
96
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
97
|
+
}
|
|
98
|
+
/** @oneof */
|
|
99
|
+
export interface ConnectionTypeOneOf {
|
|
100
|
+
idpConnection?: IdpConnection;
|
|
101
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
102
|
+
}
|
|
103
|
+
export interface IdpConnection {
|
|
104
|
+
idpConnectionId?: string;
|
|
105
|
+
idpUserId?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface AuthenticatorConnection {
|
|
108
|
+
authenticatorConnectionId?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface IdentityProfile {
|
|
111
|
+
firstName?: string | null;
|
|
112
|
+
lastName?: string | null;
|
|
113
|
+
nickname?: string | null;
|
|
114
|
+
picture?: string | null;
|
|
115
|
+
emails?: string[];
|
|
116
|
+
phones?: string[];
|
|
117
|
+
labels?: string[];
|
|
118
|
+
language?: string | null;
|
|
119
|
+
privacyStatus?: PrivacyStatus;
|
|
120
|
+
/** custom profile fields */
|
|
121
|
+
customFields?: CustomField[];
|
|
122
|
+
}
|
|
123
|
+
export declare enum PrivacyStatus {
|
|
124
|
+
UNDEFINED = "UNDEFINED",
|
|
125
|
+
PUBLIC = "PUBLIC",
|
|
126
|
+
PRIVATE = "PRIVATE"
|
|
127
|
+
}
|
|
128
|
+
export interface CustomField {
|
|
129
|
+
name?: string;
|
|
130
|
+
value?: CustomValue;
|
|
131
|
+
}
|
|
132
|
+
export interface CustomValue extends CustomValueValueOneOf {
|
|
133
|
+
strValue?: string;
|
|
134
|
+
numValue?: number;
|
|
135
|
+
dateValue?: Date;
|
|
136
|
+
listValue?: ListValue;
|
|
137
|
+
mapValue?: MapValue;
|
|
138
|
+
}
|
|
139
|
+
/** @oneof */
|
|
140
|
+
export interface CustomValueValueOneOf {
|
|
141
|
+
strValue?: string;
|
|
142
|
+
numValue?: number;
|
|
143
|
+
dateValue?: Date;
|
|
144
|
+
listValue?: ListValue;
|
|
145
|
+
mapValue?: MapValue;
|
|
146
|
+
}
|
|
147
|
+
export interface ListValue {
|
|
148
|
+
value?: CustomValue[];
|
|
149
|
+
}
|
|
150
|
+
export interface MapValue {
|
|
151
|
+
value?: Record<string, CustomValue>;
|
|
152
|
+
}
|
|
153
|
+
export interface Metadata {
|
|
154
|
+
/**
|
|
155
|
+
* represents general tags such as "isOwner", "isContributor"
|
|
156
|
+
* @readonly
|
|
157
|
+
*/
|
|
158
|
+
tags?: string[];
|
|
159
|
+
}
|
|
160
|
+
export interface Email {
|
|
161
|
+
address?: string;
|
|
162
|
+
isVerified?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export interface StatusV2 {
|
|
165
|
+
name?: StatusName;
|
|
166
|
+
reasons?: Reason[];
|
|
167
|
+
}
|
|
168
|
+
export declare enum StatusName {
|
|
169
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
170
|
+
PENDING = "PENDING",
|
|
171
|
+
ACTIVE = "ACTIVE",
|
|
172
|
+
DELETED = "DELETED",
|
|
173
|
+
BLOCKED = "BLOCKED"
|
|
174
|
+
}
|
|
175
|
+
export declare enum Reason {
|
|
176
|
+
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
177
|
+
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
178
|
+
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* starts a verification process
|
|
182
|
+
* example: sends a code to the identity's email
|
|
183
|
+
* @public
|
|
184
|
+
* @documentationMaturity preview
|
|
185
|
+
*/
|
|
186
|
+
export declare function start(options?: StartOptions): Promise<StartResponse>;
|
|
187
|
+
export interface StartOptions {
|
|
188
|
+
/**
|
|
189
|
+
* an identity_Id.
|
|
190
|
+
* If not provided - currently, an exception is thrown. In the future the identity from identity response will be taken.
|
|
191
|
+
*/
|
|
192
|
+
identityId?: string | null;
|
|
193
|
+
/** the delivery target */
|
|
194
|
+
target?: Target;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* verifies the code in the request.
|
|
198
|
+
* this endpoint is meant to be called during the authentication process only, thus it requires a stateToken.
|
|
199
|
+
* the identity_id and the verification_id are extracted from the stateToken
|
|
200
|
+
* @param code - the code to verify
|
|
201
|
+
* @public
|
|
202
|
+
* @documentationMaturity preview
|
|
203
|
+
* @requiredField code
|
|
204
|
+
* @requiredField options
|
|
205
|
+
* @requiredField options.stateToken
|
|
206
|
+
*/
|
|
207
|
+
export declare function verifyDuringAuthentication(code: string, options: VerifyDuringAuthenticationOptions): Promise<StateMachineResponse>;
|
|
208
|
+
export interface VerifyDuringAuthenticationOptions {
|
|
209
|
+
/** a state token with a REQUIRE_EMAIL_VERIFICATION state */
|
|
210
|
+
stateToken: string;
|
|
211
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer, RootPath, transformError } from '@wix/metro-runtime/velo';
|
|
11
|
+
import * as ambassadorWixIamVerificationV1StartResponse from './iam-verification-v1-start-response.http';
|
|
12
|
+
let __verbose = false;
|
|
13
|
+
function __log(...args) {
|
|
14
|
+
__verbose && console.log(...args);
|
|
15
|
+
}
|
|
16
|
+
function __inspect(obj) {
|
|
17
|
+
return obj;
|
|
18
|
+
}
|
|
19
|
+
export const __debug = {
|
|
20
|
+
verboseLogging: {
|
|
21
|
+
on: () => (__verbose = true),
|
|
22
|
+
off: () => (__verbose = false),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const _toVeloEntity = '$';
|
|
26
|
+
const _fromVeloEntity = '$';
|
|
27
|
+
export var Target;
|
|
28
|
+
(function (Target) {
|
|
29
|
+
Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
30
|
+
Target["EMAIL"] = "EMAIL";
|
|
31
|
+
})(Target || (Target = {}));
|
|
32
|
+
export var StateType;
|
|
33
|
+
(function (StateType) {
|
|
34
|
+
StateType["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
35
|
+
StateType["SUCCESS"] = "SUCCESS";
|
|
36
|
+
StateType["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
|
|
37
|
+
StateType["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
|
|
38
|
+
StateType["STATUS_CHECK"] = "STATUS_CHECK";
|
|
39
|
+
})(StateType || (StateType = {}));
|
|
40
|
+
export var Status;
|
|
41
|
+
(function (Status) {
|
|
42
|
+
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
43
|
+
Status["BLOCKED"] = "BLOCKED";
|
|
44
|
+
Status["ACTIVE"] = "ACTIVE";
|
|
45
|
+
Status["PROVISIONED"] = "PROVISIONED";
|
|
46
|
+
Status["DELETED"] = "DELETED";
|
|
47
|
+
Status["UNPROVISIONED"] = "UNPROVISIONED";
|
|
48
|
+
})(Status || (Status = {}));
|
|
49
|
+
export var PrivacyStatus;
|
|
50
|
+
(function (PrivacyStatus) {
|
|
51
|
+
PrivacyStatus["UNDEFINED"] = "UNDEFINED";
|
|
52
|
+
PrivacyStatus["PUBLIC"] = "PUBLIC";
|
|
53
|
+
PrivacyStatus["PRIVATE"] = "PRIVATE";
|
|
54
|
+
})(PrivacyStatus || (PrivacyStatus = {}));
|
|
55
|
+
export var StatusName;
|
|
56
|
+
(function (StatusName) {
|
|
57
|
+
StatusName["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
58
|
+
StatusName["PENDING"] = "PENDING";
|
|
59
|
+
StatusName["ACTIVE"] = "ACTIVE";
|
|
60
|
+
StatusName["DELETED"] = "DELETED";
|
|
61
|
+
StatusName["BLOCKED"] = "BLOCKED";
|
|
62
|
+
})(StatusName || (StatusName = {}));
|
|
63
|
+
export var Reason;
|
|
64
|
+
(function (Reason) {
|
|
65
|
+
Reason["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
66
|
+
Reason["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
|
|
67
|
+
Reason["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
|
|
68
|
+
})(Reason || (Reason = {}));
|
|
69
|
+
const _customField = { value: '_customValue' };
|
|
70
|
+
const _customValue = { listValue: '_listValue', mapValue: '_mapValue' };
|
|
71
|
+
const _identity = { identityProfile: '_identityProfile' };
|
|
72
|
+
const _identityProfile = { customFields: '_customField' };
|
|
73
|
+
const _listValue = { value: '_customValue' };
|
|
74
|
+
const _mapValue = { value: 'Map#_customValue' };
|
|
75
|
+
const _startRequest = {};
|
|
76
|
+
const _startResponse = {};
|
|
77
|
+
const _stateMachineResponse = { identity: '_identity' };
|
|
78
|
+
const _verifyDuringAuthenticationRequest = {};
|
|
79
|
+
/**
|
|
80
|
+
* starts a verification process
|
|
81
|
+
* example: sends a code to the identity's email
|
|
82
|
+
* @public
|
|
83
|
+
* @documentationMaturity preview
|
|
84
|
+
*/
|
|
85
|
+
export function start(options) {
|
|
86
|
+
var _a, _b, _c;
|
|
87
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
88
|
+
const requestTransformation = {
|
|
89
|
+
identityId: '$[0].identityId',
|
|
90
|
+
target: '$[0].target',
|
|
91
|
+
};
|
|
92
|
+
const responseTransformation = '$';
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
95
|
+
const { toAmbassadorRequest } = serializer({
|
|
96
|
+
rootSchema: _startRequest,
|
|
97
|
+
depSchemas: {},
|
|
98
|
+
fqdnTransformation: {
|
|
99
|
+
paths: [],
|
|
100
|
+
transformation: _fromVeloEntity,
|
|
101
|
+
},
|
|
102
|
+
customTransformation: requestTransformation,
|
|
103
|
+
});
|
|
104
|
+
const { fromJSON } = serializer({
|
|
105
|
+
rootSchema: _startResponse,
|
|
106
|
+
depSchemas: {},
|
|
107
|
+
fqdnTransformation: {
|
|
108
|
+
paths: [RootPath],
|
|
109
|
+
transformation: _toVeloEntity,
|
|
110
|
+
},
|
|
111
|
+
customTransformation: responseTransformation,
|
|
112
|
+
});
|
|
113
|
+
const payload = toAmbassadorRequest([options]);
|
|
114
|
+
const reqOpts = ambassadorWixIamVerificationV1StartResponse.start(payload);
|
|
115
|
+
__log(`"Start" sending request with: ${__inspect(reqOpts)}`);
|
|
116
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
117
|
+
try {
|
|
118
|
+
const result = yield httpClient.request(reqOpts);
|
|
119
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
120
|
+
return fromJSON(result.data);
|
|
121
|
+
}
|
|
122
|
+
catch (err) {
|
|
123
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
124
|
+
'options',
|
|
125
|
+
]);
|
|
126
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
127
|
+
throw transformedError;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* verifies the code in the request.
|
|
133
|
+
* this endpoint is meant to be called during the authentication process only, thus it requires a stateToken.
|
|
134
|
+
* the identity_id and the verification_id are extracted from the stateToken
|
|
135
|
+
* @param code - the code to verify
|
|
136
|
+
* @public
|
|
137
|
+
* @documentationMaturity preview
|
|
138
|
+
* @requiredField code
|
|
139
|
+
* @requiredField options
|
|
140
|
+
* @requiredField options.stateToken
|
|
141
|
+
*/
|
|
142
|
+
export function verifyDuringAuthentication(code, options) {
|
|
143
|
+
var _a, _b, _c;
|
|
144
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
145
|
+
const requestTransformation = { code: '$[0]', stateToken: '$[1].stateToken' };
|
|
146
|
+
const responseTransformation = '$';
|
|
147
|
+
// @ts-ignore
|
|
148
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
149
|
+
const { toAmbassadorRequest } = serializer({
|
|
150
|
+
rootSchema: _verifyDuringAuthenticationRequest,
|
|
151
|
+
depSchemas: {},
|
|
152
|
+
fqdnTransformation: {
|
|
153
|
+
paths: [],
|
|
154
|
+
transformation: _fromVeloEntity,
|
|
155
|
+
},
|
|
156
|
+
customTransformation: requestTransformation,
|
|
157
|
+
});
|
|
158
|
+
const { fromJSON } = serializer({
|
|
159
|
+
rootSchema: _stateMachineResponse,
|
|
160
|
+
depSchemas: {
|
|
161
|
+
_customField,
|
|
162
|
+
_customValue,
|
|
163
|
+
_identity,
|
|
164
|
+
_identityProfile,
|
|
165
|
+
_listValue,
|
|
166
|
+
_mapValue,
|
|
167
|
+
},
|
|
168
|
+
fqdnTransformation: {
|
|
169
|
+
paths: [],
|
|
170
|
+
transformation: _toVeloEntity,
|
|
171
|
+
},
|
|
172
|
+
customTransformation: responseTransformation,
|
|
173
|
+
});
|
|
174
|
+
const payload = toAmbassadorRequest([code, options]);
|
|
175
|
+
const reqOpts = ambassadorWixIamVerificationV1StartResponse.verifyDuringAuthentication(payload);
|
|
176
|
+
__log(`"VerifyDuringAuthentication" sending request with: ${__inspect(reqOpts)}`);
|
|
177
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
178
|
+
try {
|
|
179
|
+
const result = yield httpClient.request(reqOpts);
|
|
180
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
181
|
+
return fromJSON(result.data);
|
|
182
|
+
}
|
|
183
|
+
catch (err) {
|
|
184
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
185
|
+
'code',
|
|
186
|
+
'options',
|
|
187
|
+
]);
|
|
188
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
189
|
+
throw transformedError;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=iam-verification-v1-start-response.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iam-verification-v1-start-response.universal.js","sourceRoot":"","sources":["../../../src/iam-verification-v1-start-response.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,2CAA2C,MAAM,2CAA2C,CAAC;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAA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 -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/identity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "bb78748aa029066bf2752a676454c53c08e74e4e634e96a45d283315"
|
|
37
37
|
}
|