@wix/identity 1.0.24 → 1.0.26

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 (55) hide show
  1. package/build/cjs/index.d.ts +2 -0
  2. package/build/cjs/index.js +3 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +5 -0
  5. package/build/cjs/src/iam-recovery-v1-recovery.http.js +90 -0
  6. package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -0
  7. package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +9 -0
  8. package/build/cjs/src/iam-recovery-v1-recovery.public.js +25 -0
  9. package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +1 -0
  10. package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +188 -0
  11. package/build/cjs/src/iam-recovery-v1-recovery.types.js +48 -0
  12. package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -0
  13. package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +212 -0
  14. package/build/cjs/src/iam-recovery-v1-recovery.universal.js +214 -0
  15. package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +1 -0
  16. package/build/cjs/src/iam-verification-v1-start-response.http.d.ts +13 -0
  17. package/build/cjs/src/iam-verification-v1-start-response.http.js +91 -0
  18. package/build/cjs/src/iam-verification-v1-start-response.http.js.map +1 -0
  19. package/build/cjs/src/iam-verification-v1-start-response.public.d.ts +9 -0
  20. package/build/cjs/src/iam-verification-v1-start-response.public.js +25 -0
  21. package/build/cjs/src/iam-verification-v1-start-response.public.js.map +1 -0
  22. package/build/cjs/src/iam-verification-v1-start-response.types.d.ts +173 -0
  23. package/build/cjs/src/iam-verification-v1-start-response.types.js +46 -0
  24. package/build/cjs/src/iam-verification-v1-start-response.types.js.map +1 -0
  25. package/build/cjs/src/iam-verification-v1-start-response.universal.d.ts +211 -0
  26. package/build/cjs/src/iam-verification-v1-start-response.universal.js +217 -0
  27. package/build/cjs/src/iam-verification-v1-start-response.universal.js.map +1 -0
  28. package/build/es/index.d.ts +2 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -1
  31. package/build/es/src/iam-recovery-v1-recovery.http.d.ts +5 -0
  32. package/build/es/src/iam-recovery-v1-recovery.http.js +85 -0
  33. package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -0
  34. package/build/es/src/iam-recovery-v1-recovery.public.d.ts +9 -0
  35. package/build/es/src/iam-recovery-v1-recovery.public.js +14 -0
  36. package/build/es/src/iam-recovery-v1-recovery.public.js.map +1 -0
  37. package/build/es/src/iam-recovery-v1-recovery.types.d.ts +188 -0
  38. package/build/es/src/iam-recovery-v1-recovery.types.js +45 -0
  39. package/build/es/src/iam-recovery-v1-recovery.types.js.map +1 -0
  40. package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +212 -0
  41. package/build/es/src/iam-recovery-v1-recovery.universal.js +190 -0
  42. package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -0
  43. package/build/es/src/iam-verification-v1-start-response.http.d.ts +13 -0
  44. package/build/es/src/iam-verification-v1-start-response.http.js +86 -0
  45. package/build/es/src/iam-verification-v1-start-response.http.js.map +1 -0
  46. package/build/es/src/iam-verification-v1-start-response.public.d.ts +9 -0
  47. package/build/es/src/iam-verification-v1-start-response.public.js +14 -0
  48. package/build/es/src/iam-verification-v1-start-response.public.js.map +1 -0
  49. package/build/es/src/iam-verification-v1-start-response.types.d.ts +173 -0
  50. package/build/es/src/iam-verification-v1-start-response.types.js +43 -0
  51. package/build/es/src/iam-verification-v1-start-response.types.js.map +1 -0
  52. package/build/es/src/iam-verification-v1-start-response.universal.d.ts +211 -0
  53. package/build/es/src/iam-verification-v1-start-response.universal.js +193 -0
  54. package/build/es/src/iam-verification-v1-start-response.universal.js.map +1 -0
  55. 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,217 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.verifyDuringAuthentication = exports.start = exports.Reason = exports.StatusName = exports.PrivacyStatus = exports.Status = exports.StateType = exports.Target = exports.__debug = void 0;
32
+ const velo_1 = require("@wix/metro-runtime/velo");
33
+ const ambassadorWixIamVerificationV1StartResponse = __importStar(require("./iam-verification-v1-start-response.http"));
34
+ let __verbose = false;
35
+ function __log(...args) {
36
+ __verbose && console.log(...args);
37
+ }
38
+ function __inspect(obj) {
39
+ return obj;
40
+ }
41
+ exports.__debug = {
42
+ verboseLogging: {
43
+ on: () => (__verbose = true),
44
+ off: () => (__verbose = false),
45
+ },
46
+ };
47
+ const _toVeloEntity = '$';
48
+ const _fromVeloEntity = '$';
49
+ var Target;
50
+ (function (Target) {
51
+ Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
52
+ Target["EMAIL"] = "EMAIL";
53
+ })(Target = exports.Target || (exports.Target = {}));
54
+ var StateType;
55
+ (function (StateType) {
56
+ StateType["UNKNOWN_STATE"] = "UNKNOWN_STATE";
57
+ StateType["SUCCESS"] = "SUCCESS";
58
+ StateType["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
59
+ StateType["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
60
+ StateType["STATUS_CHECK"] = "STATUS_CHECK";
61
+ })(StateType = exports.StateType || (exports.StateType = {}));
62
+ var Status;
63
+ (function (Status) {
64
+ Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
65
+ Status["BLOCKED"] = "BLOCKED";
66
+ Status["ACTIVE"] = "ACTIVE";
67
+ Status["PROVISIONED"] = "PROVISIONED";
68
+ Status["DELETED"] = "DELETED";
69
+ Status["UNPROVISIONED"] = "UNPROVISIONED";
70
+ })(Status = exports.Status || (exports.Status = {}));
71
+ var PrivacyStatus;
72
+ (function (PrivacyStatus) {
73
+ PrivacyStatus["UNDEFINED"] = "UNDEFINED";
74
+ PrivacyStatus["PUBLIC"] = "PUBLIC";
75
+ PrivacyStatus["PRIVATE"] = "PRIVATE";
76
+ })(PrivacyStatus = exports.PrivacyStatus || (exports.PrivacyStatus = {}));
77
+ var StatusName;
78
+ (function (StatusName) {
79
+ StatusName["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
80
+ StatusName["PENDING"] = "PENDING";
81
+ StatusName["ACTIVE"] = "ACTIVE";
82
+ StatusName["DELETED"] = "DELETED";
83
+ StatusName["BLOCKED"] = "BLOCKED";
84
+ })(StatusName = exports.StatusName || (exports.StatusName = {}));
85
+ var Reason;
86
+ (function (Reason) {
87
+ Reason["UNKNOWN_REASON"] = "UNKNOWN_REASON";
88
+ Reason["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
89
+ Reason["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
90
+ })(Reason = exports.Reason || (exports.Reason = {}));
91
+ const _customField = { value: '_customValue' };
92
+ const _customValue = { listValue: '_listValue', mapValue: '_mapValue' };
93
+ const _identity = { identityProfile: '_identityProfile' };
94
+ const _identityProfile = { customFields: '_customField' };
95
+ const _listValue = { value: '_customValue' };
96
+ const _mapValue = { value: 'Map#_customValue' };
97
+ const _startRequest = {};
98
+ const _startResponse = {};
99
+ const _stateMachineResponse = { identity: '_identity' };
100
+ const _verifyDuringAuthenticationRequest = {};
101
+ /**
102
+ * starts a verification process
103
+ * example: sends a code to the identity's email
104
+ * @public
105
+ * @documentationMaturity preview
106
+ */
107
+ function start(options) {
108
+ var _a, _b, _c;
109
+ return __awaiter(this, arguments, void 0, function* () {
110
+ const requestTransformation = {
111
+ identityId: '$[0].identityId',
112
+ target: '$[0].target',
113
+ };
114
+ const responseTransformation = '$';
115
+ // @ts-ignore
116
+ const { httpClient, sideEffects } = arguments[1];
117
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
118
+ rootSchema: _startRequest,
119
+ depSchemas: {},
120
+ fqdnTransformation: {
121
+ paths: [],
122
+ transformation: _fromVeloEntity,
123
+ },
124
+ customTransformation: requestTransformation,
125
+ });
126
+ const { fromJSON } = (0, velo_1.serializer)({
127
+ rootSchema: _startResponse,
128
+ depSchemas: {},
129
+ fqdnTransformation: {
130
+ paths: [velo_1.RootPath],
131
+ transformation: _toVeloEntity,
132
+ },
133
+ customTransformation: responseTransformation,
134
+ });
135
+ const payload = toAmbassadorRequest([options]);
136
+ const reqOpts = ambassadorWixIamVerificationV1StartResponse.start(payload);
137
+ __log(`"Start" sending request with: ${__inspect(reqOpts)}`);
138
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
139
+ try {
140
+ const result = yield httpClient.request(reqOpts);
141
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
142
+ return fromJSON(result.data);
143
+ }
144
+ catch (err) {
145
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
146
+ 'options',
147
+ ]);
148
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
149
+ throw transformedError;
150
+ }
151
+ });
152
+ }
153
+ exports.start = start;
154
+ /**
155
+ * verifies the code in the request.
156
+ * this endpoint is meant to be called during the authentication process only, thus it requires a stateToken.
157
+ * the identity_id and the verification_id are extracted from the stateToken
158
+ * @param code - the code to verify
159
+ * @public
160
+ * @documentationMaturity preview
161
+ * @requiredField code
162
+ * @requiredField options
163
+ * @requiredField options.stateToken
164
+ */
165
+ function verifyDuringAuthentication(code, options) {
166
+ var _a, _b, _c;
167
+ return __awaiter(this, arguments, void 0, function* () {
168
+ const requestTransformation = { code: '$[0]', stateToken: '$[1].stateToken' };
169
+ const responseTransformation = '$';
170
+ // @ts-ignore
171
+ const { httpClient, sideEffects } = arguments[2];
172
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
173
+ rootSchema: _verifyDuringAuthenticationRequest,
174
+ depSchemas: {},
175
+ fqdnTransformation: {
176
+ paths: [],
177
+ transformation: _fromVeloEntity,
178
+ },
179
+ customTransformation: requestTransformation,
180
+ });
181
+ const { fromJSON } = (0, velo_1.serializer)({
182
+ rootSchema: _stateMachineResponse,
183
+ depSchemas: {
184
+ _customField,
185
+ _customValue,
186
+ _identity,
187
+ _identityProfile,
188
+ _listValue,
189
+ _mapValue,
190
+ },
191
+ fqdnTransformation: {
192
+ paths: [],
193
+ transformation: _toVeloEntity,
194
+ },
195
+ customTransformation: responseTransformation,
196
+ });
197
+ const payload = toAmbassadorRequest([code, options]);
198
+ const reqOpts = ambassadorWixIamVerificationV1StartResponse.verifyDuringAuthentication(payload);
199
+ __log(`"VerifyDuringAuthentication" sending request with: ${__inspect(reqOpts)}`);
200
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
201
+ try {
202
+ const result = yield httpClient.request(reqOpts);
203
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
204
+ return fromJSON(result.data);
205
+ }
206
+ catch (err) {
207
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
208
+ 'code',
209
+ 'options',
210
+ ]);
211
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
212
+ throw transformedError;
213
+ }
214
+ });
215
+ }
216
+ exports.verifyDuringAuthentication = verifyDuringAuthentication;
217
+ //# 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,kDAA+E;AAE/E,uHAAyG;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAA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AAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,MAAM;gBACN,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlED,gEAkEC"}
@@ -1,2 +1,4 @@
1
1
  export * as authentication from './src/iam-authentication-v1-authentication.public';
2
+ export * as recovery from './src/iam-recovery-v1-recovery.public';
3
+ export * as verification from './src/iam-verification-v1-start-response.public';
2
4
  export * as oauth from './src/identity-oauth-v1-refresh-token.public';
package/build/es/index.js CHANGED
@@ -1,3 +1,5 @@
1
1
  export * as authentication from './src/iam-authentication-v1-authentication.public';
2
+ export * as recovery from './src/iam-recovery-v1-recovery.public';
3
+ export * as verification from './src/iam-verification-v1-start-response.public';
2
4
  export * as oauth from './src/identity-oauth-v1-refresh-token.public';
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mDAAmD,CAAC;AACpF,OAAO,KAAK,KAAK,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mDAAmD,CAAC;AACpF,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAC;AAClE,OAAO,KAAK,YAAY,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,8CAA8C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { RecoverRequest, SendRecoveryEmailRequest, SendRecoveryEmailResponse, StateMachineResponse } from './iam-recovery-v1-recovery.types';
3
+ /** Sends an recovery email with recovery token */
4
+ export declare function sendRecoveryEmail(payload: SendRecoveryEmailRequest): RequestOptionsFactory<SendRecoveryEmailResponse>;
5
+ export declare function recover(payload: RecoverRequest): RequestOptionsFactory<StateMachineResponse>;
@@ -0,0 +1,85 @@
1
+ import { serializer } from '@wix/metro-runtime/ambassador';
2
+ import { resolveUrl } from '@wix/metro-runtime';
3
+ const _customField = { value: '_customValue' };
4
+ const _customValue = {
5
+ numValue: 'DOUBLE',
6
+ dateValue: 'google.protobuf.Timestamp',
7
+ listValue: '_listValue',
8
+ mapValue: '_mapValue',
9
+ };
10
+ const _identity = {
11
+ createdDate: 'google.protobuf.Timestamp',
12
+ updatedDate: 'google.protobuf.Timestamp',
13
+ identityProfile: '_identityProfile',
14
+ };
15
+ const _identityProfile = { customFields: '_customField' };
16
+ const _listValue = { value: '_customValue' };
17
+ const _mapValue = { value: 'Map#_customValue' };
18
+ const _recoverRequest = {};
19
+ const _sendRecoveryEmailRequest = {};
20
+ const _sendRecoveryEmailResponse = {};
21
+ const _stateMachineResponse = { identity: '_identity' };
22
+ function resolveWixIamRecoveryV1RecoveryServiceUrl(opts) {
23
+ const domainToMappings = {
24
+ _: [
25
+ {
26
+ srcPath: '/_iam/recovery',
27
+ destPath: '',
28
+ },
29
+ ],
30
+ };
31
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
32
+ }
33
+ /** Sends an recovery email with recovery token */
34
+ export function sendRecoveryEmail(payload) {
35
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_sendRecoveryEmailRequest, {});
36
+ const { fromJSON: fromRes } = serializer(_sendRecoveryEmailResponse, {});
37
+ function __sendRecoveryEmail({ host }) {
38
+ const serializedData = toReq(payload);
39
+ const metadata = {
40
+ entityFqdn: 'wix.iam.recovery.v1.recovery',
41
+ method: 'POST',
42
+ methodFqn: 'wix.iam.recovery.v1.RecoveryService.SendRecoveryEmail',
43
+ url: resolveWixIamRecoveryV1RecoveryServiceUrl({
44
+ protoPath: '/v1/recovery/email',
45
+ data: serializedData,
46
+ host,
47
+ }),
48
+ data: serializedData,
49
+ transformResponse: fromRes,
50
+ };
51
+ return metadata;
52
+ }
53
+ __sendRecoveryEmail.fromReq = fromReq;
54
+ return __sendRecoveryEmail;
55
+ }
56
+ export function recover(payload) {
57
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_recoverRequest, {});
58
+ const { fromJSON: fromRes } = serializer(_stateMachineResponse, {
59
+ _customField,
60
+ _customValue,
61
+ _identity,
62
+ _identityProfile,
63
+ _listValue,
64
+ _mapValue,
65
+ });
66
+ function __recover({ host }) {
67
+ const serializedData = toReq(payload);
68
+ const metadata = {
69
+ entityFqdn: 'wix.iam.recovery.v1.recovery',
70
+ method: 'POST',
71
+ methodFqn: 'wix.iam.recovery.v1.RecoveryService.Recover',
72
+ url: resolveWixIamRecoveryV1RecoveryServiceUrl({
73
+ protoPath: '/v1/recovery/recover',
74
+ data: serializedData,
75
+ host,
76
+ }),
77
+ data: serializedData,
78
+ transformResponse: fromRes,
79
+ };
80
+ return metadata;
81
+ }
82
+ __recover.fromReq = fromReq;
83
+ return __recover;
84
+ }
85
+ //# sourceMappingURL=iam-recovery-v1-recovery.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-recovery-v1-recovery.http.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,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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AAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,mBAAmB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEtC,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,OAAO,CACrB,OAAuB;IAEvB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAC7E,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,qBAAqB,EAAE;QAC9D,YAAY;QACZ,YAAY;QACZ,SAAS;QACT,gBAAgB;QAChB,UAAU;QACV,SAAS;KACV,CAAC,CAAC;IAEH,SAAS,SAAS,CAAC,EAAE,IAAI,EAAO;QAC9B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,8BAA8B;YAC1C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,6CAA6C;YACxD,GAAG,EAAE,yCAAyC,CAAC;gBAC7C,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { RecoverOptions } from './iam-recovery-v1-recovery.universal';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function sendRecoveryEmail(httpClient: HttpClient): (email: string) => Promise<void>;
7
+ export declare function recover(httpClient: HttpClient): (recoveryToken: string, options?: RecoverOptions | undefined) => Promise<import("./iam-recovery-v1-recovery.universal").StateMachineResponse>;
8
+ export { TenantType, StateType, Status, PrivacyStatus, StatusName, Reason, } from './iam-recovery-v1-recovery.universal';
9
+ export { RecoveryToken, SendRecoveryEmailRequest, SendRecoveryEmailResponse, RecoverRequest, StateMachineResponse, Identity, Identifier, IdentifierValueOneOf, Connection, ConnectionTypeOneOf, IdpConnection, AuthenticatorConnection, IdentityProfile, CustomField, CustomValue, CustomValueValueOneOf, ListValue, MapValue, Metadata, Email, StatusV2, RecoverOptions, } from './iam-recovery-v1-recovery.universal';
@@ -0,0 +1,14 @@
1
+ import { sendRecoveryEmail as universalSendRecoveryEmail, recover as universalRecover, } from './iam-recovery-v1-recovery.universal';
2
+ export const __metadata = { PACKAGE_NAME: '@wix/identity' };
3
+ export function sendRecoveryEmail(httpClient) {
4
+ return (email) => universalSendRecoveryEmail(email,
5
+ // @ts-ignore
6
+ { httpClient });
7
+ }
8
+ export function recover(httpClient) {
9
+ return (recoveryToken, options) => universalRecover(recoveryToken, options,
10
+ // @ts-ignore
11
+ { httpClient });
12
+ }
13
+ export { TenantType, StateType, Status, PrivacyStatus, StatusName, Reason, } from './iam-recovery-v1-recovery.universal';
14
+ //# sourceMappingURL=iam-recovery-v1-recovery.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam-recovery-v1-recovery.public.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAC/C,OAAO,IAAI,gBAAgB,GAE5B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,KAAa,EAAE,EAAE,CACvB,0BAA0B,CACxB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,aAAqB,EAAE,OAAwB,EAAE,EAAE,CACzD,gBAAgB,CACd,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,UAAU,EACV,SAAS,EACT,MAAM,EACN,aAAa,EACb,UAAU,EACV,MAAM,GACP,MAAM,sCAAsC,CAAC"}