@wix/identity 1.0.25 → 1.0.27
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-recovery-v1-recovery.http.d.ts +5 -0
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +100 -0
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +9 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.js +25 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +190 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.js +48 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +218 -0
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +215 -0
- package/build/cjs/src/iam-recovery-v1-recovery.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-recovery-v1-recovery.http.d.ts +5 -0
- package/build/es/src/iam-recovery-v1-recovery.http.js +95 -0
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +9 -0
- package/build/es/src/iam-recovery-v1-recovery.public.js +14 -0
- package/build/es/src/iam-recovery-v1-recovery.public.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +190 -0
- package/build/es/src/iam-recovery-v1-recovery.types.js +45 -0
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +218 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.js +191 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -0
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,3 +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';
|
|
2
3
|
export * as verification from './src/iam-verification-v1-start-response.public';
|
|
3
4
|
export * as oauth from './src/identity-oauth-v1-refresh-token.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,8 +19,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.oauth = exports.verification = exports.authentication = void 0;
|
|
22
|
+
exports.oauth = exports.verification = exports.recovery = exports.authentication = void 0;
|
|
23
23
|
exports.authentication = __importStar(require("./src/iam-authentication-v1-authentication.public"));
|
|
24
|
+
exports.recovery = __importStar(require("./src/iam-recovery-v1-recovery.public"));
|
|
24
25
|
exports.verification = __importStar(require("./src/iam-verification-v1-start-response.public"));
|
|
25
26
|
exports.oauth = __importStar(require("./src/identity-oauth-v1-refresh-token.public"));
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oGAAoF;AACpF,gGAAgF;AAChF,sFAAsE"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oGAAoF;AACpF,kFAAkE;AAClE,gGAAgF;AAChF,sFAAsE"}
|
|
@@ -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,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recover = exports.sendRecoveryEmail = void 0;
|
|
4
|
+
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
5
|
+
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
6
|
+
const _customField = { value: '_customValue' };
|
|
7
|
+
const _customValue = {
|
|
8
|
+
numValue: 'DOUBLE',
|
|
9
|
+
dateValue: 'google.protobuf.Timestamp',
|
|
10
|
+
listValue: '_listValue',
|
|
11
|
+
mapValue: '_mapValue',
|
|
12
|
+
};
|
|
13
|
+
const _identity = {
|
|
14
|
+
createdDate: 'google.protobuf.Timestamp',
|
|
15
|
+
updatedDate: 'google.protobuf.Timestamp',
|
|
16
|
+
identityProfile: '_identityProfile',
|
|
17
|
+
};
|
|
18
|
+
const _identityProfile = { customFields: '_customField' };
|
|
19
|
+
const _listValue = { value: '_customValue' };
|
|
20
|
+
const _mapValue = { value: 'Map#_customValue' };
|
|
21
|
+
const _recoverRequest = {};
|
|
22
|
+
const _sendRecoveryEmailRequest = {};
|
|
23
|
+
const _sendRecoveryEmailResponse = {};
|
|
24
|
+
const _stateMachineResponse = { identity: '_identity' };
|
|
25
|
+
function resolveWixIamRecoveryV1RecoveryServiceUrl(opts) {
|
|
26
|
+
const domainToMappings = {
|
|
27
|
+
_: [
|
|
28
|
+
{
|
|
29
|
+
srcPath: '/_iam/recovery',
|
|
30
|
+
destPath: '',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
srcPath: '/_api/iam/recovery',
|
|
34
|
+
destPath: '',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
'www.wixapis.com': [
|
|
38
|
+
{
|
|
39
|
+
srcPath: '/_api/iam/recovery',
|
|
40
|
+
destPath: '',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
45
|
+
}
|
|
46
|
+
/** Sends an recovery email with recovery token */
|
|
47
|
+
function sendRecoveryEmail(payload) {
|
|
48
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_sendRecoveryEmailRequest, {});
|
|
49
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_sendRecoveryEmailResponse, {});
|
|
50
|
+
function __sendRecoveryEmail({ host }) {
|
|
51
|
+
const serializedData = toReq(payload);
|
|
52
|
+
const metadata = {
|
|
53
|
+
entityFqdn: 'wix.iam.recovery.v1.recovery',
|
|
54
|
+
method: 'POST',
|
|
55
|
+
methodFqn: 'wix.iam.recovery.v1.RecoveryService.SendRecoveryEmail',
|
|
56
|
+
url: resolveWixIamRecoveryV1RecoveryServiceUrl({
|
|
57
|
+
protoPath: '/v1/send-email',
|
|
58
|
+
data: serializedData,
|
|
59
|
+
host,
|
|
60
|
+
}),
|
|
61
|
+
data: serializedData,
|
|
62
|
+
transformResponse: fromRes,
|
|
63
|
+
};
|
|
64
|
+
return metadata;
|
|
65
|
+
}
|
|
66
|
+
__sendRecoveryEmail.fromReq = fromReq;
|
|
67
|
+
return __sendRecoveryEmail;
|
|
68
|
+
}
|
|
69
|
+
exports.sendRecoveryEmail = sendRecoveryEmail;
|
|
70
|
+
function recover(payload) {
|
|
71
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_recoverRequest, {});
|
|
72
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_stateMachineResponse, {
|
|
73
|
+
_customField,
|
|
74
|
+
_customValue,
|
|
75
|
+
_identity,
|
|
76
|
+
_identityProfile,
|
|
77
|
+
_listValue,
|
|
78
|
+
_mapValue,
|
|
79
|
+
});
|
|
80
|
+
function __recover({ host }) {
|
|
81
|
+
const serializedData = toReq(payload);
|
|
82
|
+
const metadata = {
|
|
83
|
+
entityFqdn: 'wix.iam.recovery.v1.recovery',
|
|
84
|
+
method: 'POST',
|
|
85
|
+
methodFqn: 'wix.iam.recovery.v1.RecoveryService.Recover',
|
|
86
|
+
url: resolveWixIamRecoveryV1RecoveryServiceUrl({
|
|
87
|
+
protoPath: '/v1/recover',
|
|
88
|
+
data: serializedData,
|
|
89
|
+
host,
|
|
90
|
+
}),
|
|
91
|
+
data: serializedData,
|
|
92
|
+
transformResponse: fromRes,
|
|
93
|
+
};
|
|
94
|
+
return metadata;
|
|
95
|
+
}
|
|
96
|
+
__recover.fromReq = fromReq;
|
|
97
|
+
return __recover;
|
|
98
|
+
}
|
|
99
|
+
exports.recover = recover;
|
|
100
|
+
//# 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":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { RecoverOptions, SendRecoveryEmailOptions } 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, options?: SendRecoveryEmailOptions | undefined) => 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, SendRecoveryEmailOptions, RecoverOptions, } from './iam-recovery-v1-recovery.universal';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Reason = exports.StatusName = exports.PrivacyStatus = exports.Status = exports.StateType = exports.TenantType = exports.recover = exports.sendRecoveryEmail = exports.__metadata = void 0;
|
|
4
|
+
const iam_recovery_v1_recovery_universal_1 = require("./iam-recovery-v1-recovery.universal");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/identity' };
|
|
6
|
+
function sendRecoveryEmail(httpClient) {
|
|
7
|
+
return (email, options) => (0, iam_recovery_v1_recovery_universal_1.sendRecoveryEmail)(email, options,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.sendRecoveryEmail = sendRecoveryEmail;
|
|
12
|
+
function recover(httpClient) {
|
|
13
|
+
return (recoveryToken, options) => (0, iam_recovery_v1_recovery_universal_1.recover)(recoveryToken, options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.recover = recover;
|
|
18
|
+
var iam_recovery_v1_recovery_universal_2 = require("./iam-recovery-v1-recovery.universal");
|
|
19
|
+
Object.defineProperty(exports, "TenantType", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.TenantType; } });
|
|
20
|
+
Object.defineProperty(exports, "StateType", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.StateType; } });
|
|
21
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.Status; } });
|
|
22
|
+
Object.defineProperty(exports, "PrivacyStatus", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.PrivacyStatus; } });
|
|
23
|
+
Object.defineProperty(exports, "StatusName", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.StatusName; } });
|
|
24
|
+
Object.defineProperty(exports, "Reason", { enumerable: true, get: function () { return iam_recovery_v1_recovery_universal_2.Reason; } });
|
|
25
|
+
//# 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,6FAK8C;AAEjC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,KAAa,EAAE,OAAkC,EAAE,EAAE,CAC3D,IAAA,sDAA0B,EACxB,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,aAAqB,EAAE,OAAwB,EAAE,EAAE,CACzD,IAAA,4CAAgB,EACd,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0BAQC;AAED,2FAO8C;AAN5C,gIAAA,UAAU,OAAA;AACV,+HAAA,SAAS,OAAA;AACT,4HAAA,MAAM,OAAA;AACN,mIAAA,aAAa,OAAA;AACb,gIAAA,UAAU,OAAA;AACV,4HAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/** Recovery token proto is the saved data on the recovery token. */
|
|
2
|
+
export interface RecoveryToken {
|
|
3
|
+
/**
|
|
4
|
+
* Recovery token ID
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
id?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Represents the time this SessionToken was created
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
createdDate?: Date;
|
|
13
|
+
/**
|
|
14
|
+
* tenantId
|
|
15
|
+
* @readonly
|
|
16
|
+
*/
|
|
17
|
+
tenantId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* TenantType
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
tenantType?: TenantType;
|
|
23
|
+
/**
|
|
24
|
+
* identity id
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
identityId?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare enum TenantType {
|
|
30
|
+
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
31
|
+
ACCOUNT = "ACCOUNT",
|
|
32
|
+
SITE = "SITE",
|
|
33
|
+
ROOT = "ROOT"
|
|
34
|
+
}
|
|
35
|
+
export interface SendRecoveryEmailRequest {
|
|
36
|
+
/** email of the identity */
|
|
37
|
+
email: string;
|
|
38
|
+
/** language of the email - if not recived will fallback to the identity language */
|
|
39
|
+
language?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface SendRecoveryEmailResponse {
|
|
42
|
+
}
|
|
43
|
+
export interface RecoverRequest {
|
|
44
|
+
/** recovery token */
|
|
45
|
+
recoveryToken: string;
|
|
46
|
+
/** new password to set for the identity */
|
|
47
|
+
password?: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface StateMachineResponse {
|
|
50
|
+
state?: StateType;
|
|
51
|
+
sessionToken?: string | null;
|
|
52
|
+
stateToken?: string | null;
|
|
53
|
+
identity?: Identity;
|
|
54
|
+
}
|
|
55
|
+
export declare enum StateType {
|
|
56
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
57
|
+
SUCCESS = "SUCCESS",
|
|
58
|
+
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
59
|
+
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
60
|
+
STATUS_CHECK = "STATUS_CHECK"
|
|
61
|
+
}
|
|
62
|
+
export interface Identity {
|
|
63
|
+
/** Identity ID */
|
|
64
|
+
id?: string | null;
|
|
65
|
+
identifiers?: Identifier[];
|
|
66
|
+
/** @readonly */
|
|
67
|
+
status?: Status;
|
|
68
|
+
/** 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 */
|
|
69
|
+
revision?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the time this Identity was created
|
|
72
|
+
* @readonly
|
|
73
|
+
*/
|
|
74
|
+
createdDate?: Date;
|
|
75
|
+
/**
|
|
76
|
+
* Represents the time this Identity was last updated
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
updatedDate?: Date;
|
|
80
|
+
/** All the identity configured connections to authenticate with */
|
|
81
|
+
connections?: Connection[];
|
|
82
|
+
identityProfile?: IdentityProfile;
|
|
83
|
+
/** Stores additional information about the identity that can impact user access. This data can't be set by users. */
|
|
84
|
+
metadata?: Metadata;
|
|
85
|
+
email?: Email;
|
|
86
|
+
statusV2?: StatusV2;
|
|
87
|
+
}
|
|
88
|
+
export interface Identifier extends IdentifierValueOneOf {
|
|
89
|
+
email?: string;
|
|
90
|
+
userName?: string;
|
|
91
|
+
}
|
|
92
|
+
/** @oneof */
|
|
93
|
+
export interface IdentifierValueOneOf {
|
|
94
|
+
email?: string;
|
|
95
|
+
userName?: string;
|
|
96
|
+
}
|
|
97
|
+
export declare enum Status {
|
|
98
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
99
|
+
BLOCKED = "BLOCKED",
|
|
100
|
+
ACTIVE = "ACTIVE",
|
|
101
|
+
PROVISIONED = "PROVISIONED",
|
|
102
|
+
DELETED = "DELETED",
|
|
103
|
+
UNPROVISIONED = "UNPROVISIONED"
|
|
104
|
+
}
|
|
105
|
+
export interface Connection extends ConnectionTypeOneOf {
|
|
106
|
+
idpConnection?: IdpConnection;
|
|
107
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
108
|
+
}
|
|
109
|
+
/** @oneof */
|
|
110
|
+
export interface ConnectionTypeOneOf {
|
|
111
|
+
idpConnection?: IdpConnection;
|
|
112
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
113
|
+
}
|
|
114
|
+
export interface IdpConnection {
|
|
115
|
+
idpConnectionId?: string;
|
|
116
|
+
idpUserId?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface AuthenticatorConnection {
|
|
119
|
+
authenticatorConnectionId?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface IdentityProfile {
|
|
122
|
+
firstName?: string | null;
|
|
123
|
+
lastName?: string | null;
|
|
124
|
+
nickname?: string | null;
|
|
125
|
+
picture?: string | null;
|
|
126
|
+
emails?: string[];
|
|
127
|
+
phones?: string[];
|
|
128
|
+
labels?: string[];
|
|
129
|
+
language?: string | null;
|
|
130
|
+
privacyStatus?: PrivacyStatus;
|
|
131
|
+
/** custom profile fields */
|
|
132
|
+
customFields?: CustomField[];
|
|
133
|
+
}
|
|
134
|
+
export declare enum PrivacyStatus {
|
|
135
|
+
UNDEFINED = "UNDEFINED",
|
|
136
|
+
PUBLIC = "PUBLIC",
|
|
137
|
+
PRIVATE = "PRIVATE"
|
|
138
|
+
}
|
|
139
|
+
export interface CustomField {
|
|
140
|
+
name?: string;
|
|
141
|
+
value?: CustomValue;
|
|
142
|
+
}
|
|
143
|
+
export interface CustomValue extends CustomValueValueOneOf {
|
|
144
|
+
strValue?: string;
|
|
145
|
+
numValue?: number;
|
|
146
|
+
dateValue?: Date;
|
|
147
|
+
listValue?: ListValue;
|
|
148
|
+
mapValue?: MapValue;
|
|
149
|
+
}
|
|
150
|
+
/** @oneof */
|
|
151
|
+
export interface CustomValueValueOneOf {
|
|
152
|
+
strValue?: string;
|
|
153
|
+
numValue?: number;
|
|
154
|
+
dateValue?: Date;
|
|
155
|
+
listValue?: ListValue;
|
|
156
|
+
mapValue?: MapValue;
|
|
157
|
+
}
|
|
158
|
+
export interface ListValue {
|
|
159
|
+
value?: CustomValue[];
|
|
160
|
+
}
|
|
161
|
+
export interface MapValue {
|
|
162
|
+
value?: Record<string, CustomValue>;
|
|
163
|
+
}
|
|
164
|
+
export interface Metadata {
|
|
165
|
+
/**
|
|
166
|
+
* represents general tags such as "isOwner", "isContributor"
|
|
167
|
+
* @readonly
|
|
168
|
+
*/
|
|
169
|
+
tags?: string[];
|
|
170
|
+
}
|
|
171
|
+
export interface Email {
|
|
172
|
+
address?: string;
|
|
173
|
+
isVerified?: boolean;
|
|
174
|
+
}
|
|
175
|
+
export interface StatusV2 {
|
|
176
|
+
name?: StatusName;
|
|
177
|
+
reasons?: Reason[];
|
|
178
|
+
}
|
|
179
|
+
export declare enum StatusName {
|
|
180
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
181
|
+
PENDING = "PENDING",
|
|
182
|
+
ACTIVE = "ACTIVE",
|
|
183
|
+
DELETED = "DELETED",
|
|
184
|
+
BLOCKED = "BLOCKED"
|
|
185
|
+
}
|
|
186
|
+
export declare enum Reason {
|
|
187
|
+
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
188
|
+
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
189
|
+
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
190
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Reason = exports.StatusName = exports.PrivacyStatus = exports.Status = exports.StateType = exports.TenantType = void 0;
|
|
4
|
+
var TenantType;
|
|
5
|
+
(function (TenantType) {
|
|
6
|
+
TenantType["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
|
|
7
|
+
TenantType["ACCOUNT"] = "ACCOUNT";
|
|
8
|
+
TenantType["SITE"] = "SITE";
|
|
9
|
+
TenantType["ROOT"] = "ROOT";
|
|
10
|
+
})(TenantType = exports.TenantType || (exports.TenantType = {}));
|
|
11
|
+
var StateType;
|
|
12
|
+
(function (StateType) {
|
|
13
|
+
StateType["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
14
|
+
StateType["SUCCESS"] = "SUCCESS";
|
|
15
|
+
StateType["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
|
|
16
|
+
StateType["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
|
|
17
|
+
StateType["STATUS_CHECK"] = "STATUS_CHECK";
|
|
18
|
+
})(StateType = exports.StateType || (exports.StateType = {}));
|
|
19
|
+
var Status;
|
|
20
|
+
(function (Status) {
|
|
21
|
+
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
22
|
+
Status["BLOCKED"] = "BLOCKED";
|
|
23
|
+
Status["ACTIVE"] = "ACTIVE";
|
|
24
|
+
Status["PROVISIONED"] = "PROVISIONED";
|
|
25
|
+
Status["DELETED"] = "DELETED";
|
|
26
|
+
Status["UNPROVISIONED"] = "UNPROVISIONED";
|
|
27
|
+
})(Status = exports.Status || (exports.Status = {}));
|
|
28
|
+
var PrivacyStatus;
|
|
29
|
+
(function (PrivacyStatus) {
|
|
30
|
+
PrivacyStatus["UNDEFINED"] = "UNDEFINED";
|
|
31
|
+
PrivacyStatus["PUBLIC"] = "PUBLIC";
|
|
32
|
+
PrivacyStatus["PRIVATE"] = "PRIVATE";
|
|
33
|
+
})(PrivacyStatus = exports.PrivacyStatus || (exports.PrivacyStatus = {}));
|
|
34
|
+
var StatusName;
|
|
35
|
+
(function (StatusName) {
|
|
36
|
+
StatusName["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
37
|
+
StatusName["PENDING"] = "PENDING";
|
|
38
|
+
StatusName["ACTIVE"] = "ACTIVE";
|
|
39
|
+
StatusName["DELETED"] = "DELETED";
|
|
40
|
+
StatusName["BLOCKED"] = "BLOCKED";
|
|
41
|
+
})(StatusName = exports.StatusName || (exports.StatusName = {}));
|
|
42
|
+
var Reason;
|
|
43
|
+
(function (Reason) {
|
|
44
|
+
Reason["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
45
|
+
Reason["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
|
|
46
|
+
Reason["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
|
|
47
|
+
})(Reason = exports.Reason || (exports.Reason = {}));
|
|
48
|
+
//# sourceMappingURL=iam-recovery-v1-recovery.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iam-recovery-v1-recovery.types.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.types.ts"],"names":[],"mappings":";;;AA6BA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAyBD,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,4CAA+B,CAAA;IAC/B,gCAAmB,CAAA;IACnB,8DAAiD,CAAA;IACjD,sEAAyD,CAAA;IACzD,0CAA6B,CAAA;AAC/B,CAAC,EANW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMpB;AAwCD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,qCAA2B,CAAA;IAC3B,6BAAmB,CAAA;IACnB,yCAA+B,CAAA;AACjC,CAAC,EAPW,MAAM,GAAN,cAAM,KAAN,cAAM,QAOjB;AAoCD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAkDD,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"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
/** Recovery token proto is the saved data on the recovery token. */
|
|
8
|
+
export interface RecoveryToken {
|
|
9
|
+
/**
|
|
10
|
+
* Recovery token ID
|
|
11
|
+
* @readonly
|
|
12
|
+
*/
|
|
13
|
+
_id?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Represents the time this SessionToken was created
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
_createdDate?: Date;
|
|
19
|
+
/**
|
|
20
|
+
* tenantId
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
tenantId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* TenantType
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
tenantType?: TenantType;
|
|
29
|
+
/**
|
|
30
|
+
* identity id
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
identityId?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare enum TenantType {
|
|
36
|
+
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
37
|
+
ACCOUNT = "ACCOUNT",
|
|
38
|
+
SITE = "SITE",
|
|
39
|
+
ROOT = "ROOT"
|
|
40
|
+
}
|
|
41
|
+
export interface SendRecoveryEmailRequest {
|
|
42
|
+
/** email of the identity */
|
|
43
|
+
email: string;
|
|
44
|
+
/** language of the email - if not recived will fallback to the identity language */
|
|
45
|
+
language?: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface SendRecoveryEmailResponse {
|
|
48
|
+
}
|
|
49
|
+
export interface RecoverRequest {
|
|
50
|
+
/** recovery token */
|
|
51
|
+
recoveryToken: string;
|
|
52
|
+
/** new password to set for the identity */
|
|
53
|
+
password?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface StateMachineResponse {
|
|
56
|
+
state?: StateType;
|
|
57
|
+
sessionToken?: string | null;
|
|
58
|
+
stateToken?: string | null;
|
|
59
|
+
identity?: Identity;
|
|
60
|
+
}
|
|
61
|
+
export declare enum StateType {
|
|
62
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
63
|
+
SUCCESS = "SUCCESS",
|
|
64
|
+
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
65
|
+
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
66
|
+
STATUS_CHECK = "STATUS_CHECK"
|
|
67
|
+
}
|
|
68
|
+
export interface Identity {
|
|
69
|
+
/** Identity ID */
|
|
70
|
+
_id?: string | null;
|
|
71
|
+
identifiers?: Identifier[];
|
|
72
|
+
/** @readonly */
|
|
73
|
+
status?: Status;
|
|
74
|
+
/** 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 */
|
|
75
|
+
revision?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Represents the time this Identity was created
|
|
78
|
+
* @readonly
|
|
79
|
+
*/
|
|
80
|
+
_createdDate?: Date;
|
|
81
|
+
/**
|
|
82
|
+
* Represents the time this Identity was last updated
|
|
83
|
+
* @readonly
|
|
84
|
+
*/
|
|
85
|
+
_updatedDate?: Date;
|
|
86
|
+
/** All the identity configured connections to authenticate with */
|
|
87
|
+
connections?: Connection[];
|
|
88
|
+
identityProfile?: IdentityProfile;
|
|
89
|
+
/** Stores additional information about the identity that can impact user access. This data can't be set by users. */
|
|
90
|
+
metadata?: Metadata;
|
|
91
|
+
email?: Email;
|
|
92
|
+
statusV2?: StatusV2;
|
|
93
|
+
}
|
|
94
|
+
export interface Identifier extends IdentifierValueOneOf {
|
|
95
|
+
email?: string;
|
|
96
|
+
userName?: string;
|
|
97
|
+
}
|
|
98
|
+
/** @oneof */
|
|
99
|
+
export interface IdentifierValueOneOf {
|
|
100
|
+
email?: string;
|
|
101
|
+
userName?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare enum Status {
|
|
104
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
105
|
+
BLOCKED = "BLOCKED",
|
|
106
|
+
ACTIVE = "ACTIVE",
|
|
107
|
+
PROVISIONED = "PROVISIONED",
|
|
108
|
+
DELETED = "DELETED",
|
|
109
|
+
UNPROVISIONED = "UNPROVISIONED"
|
|
110
|
+
}
|
|
111
|
+
export interface Connection extends ConnectionTypeOneOf {
|
|
112
|
+
idpConnection?: IdpConnection;
|
|
113
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
114
|
+
}
|
|
115
|
+
/** @oneof */
|
|
116
|
+
export interface ConnectionTypeOneOf {
|
|
117
|
+
idpConnection?: IdpConnection;
|
|
118
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
119
|
+
}
|
|
120
|
+
export interface IdpConnection {
|
|
121
|
+
idpConnectionId?: string;
|
|
122
|
+
idpUserId?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface AuthenticatorConnection {
|
|
125
|
+
authenticatorConnectionId?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface IdentityProfile {
|
|
128
|
+
firstName?: string | null;
|
|
129
|
+
lastName?: string | null;
|
|
130
|
+
nickname?: string | null;
|
|
131
|
+
picture?: string | null;
|
|
132
|
+
emails?: string[];
|
|
133
|
+
phones?: string[];
|
|
134
|
+
labels?: string[];
|
|
135
|
+
language?: string | null;
|
|
136
|
+
privacyStatus?: PrivacyStatus;
|
|
137
|
+
/** custom profile fields */
|
|
138
|
+
customFields?: CustomField[];
|
|
139
|
+
}
|
|
140
|
+
export declare enum PrivacyStatus {
|
|
141
|
+
UNDEFINED = "UNDEFINED",
|
|
142
|
+
PUBLIC = "PUBLIC",
|
|
143
|
+
PRIVATE = "PRIVATE"
|
|
144
|
+
}
|
|
145
|
+
export interface CustomField {
|
|
146
|
+
name?: string;
|
|
147
|
+
value?: CustomValue;
|
|
148
|
+
}
|
|
149
|
+
export interface CustomValue extends CustomValueValueOneOf {
|
|
150
|
+
strValue?: string;
|
|
151
|
+
numValue?: number;
|
|
152
|
+
dateValue?: Date;
|
|
153
|
+
listValue?: ListValue;
|
|
154
|
+
mapValue?: MapValue;
|
|
155
|
+
}
|
|
156
|
+
/** @oneof */
|
|
157
|
+
export interface CustomValueValueOneOf {
|
|
158
|
+
strValue?: string;
|
|
159
|
+
numValue?: number;
|
|
160
|
+
dateValue?: Date;
|
|
161
|
+
listValue?: ListValue;
|
|
162
|
+
mapValue?: MapValue;
|
|
163
|
+
}
|
|
164
|
+
export interface ListValue {
|
|
165
|
+
value?: CustomValue[];
|
|
166
|
+
}
|
|
167
|
+
export interface MapValue {
|
|
168
|
+
value?: Record<string, CustomValue>;
|
|
169
|
+
}
|
|
170
|
+
export interface Metadata {
|
|
171
|
+
/**
|
|
172
|
+
* represents general tags such as "isOwner", "isContributor"
|
|
173
|
+
* @readonly
|
|
174
|
+
*/
|
|
175
|
+
tags?: string[];
|
|
176
|
+
}
|
|
177
|
+
export interface Email {
|
|
178
|
+
address?: string;
|
|
179
|
+
isVerified?: boolean;
|
|
180
|
+
}
|
|
181
|
+
export interface StatusV2 {
|
|
182
|
+
name?: StatusName;
|
|
183
|
+
reasons?: Reason[];
|
|
184
|
+
}
|
|
185
|
+
export declare enum StatusName {
|
|
186
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
187
|
+
PENDING = "PENDING",
|
|
188
|
+
ACTIVE = "ACTIVE",
|
|
189
|
+
DELETED = "DELETED",
|
|
190
|
+
BLOCKED = "BLOCKED"
|
|
191
|
+
}
|
|
192
|
+
export declare enum Reason {
|
|
193
|
+
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
194
|
+
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
195
|
+
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Sends an recovery email with recovery token
|
|
199
|
+
* @param email - email of the identity
|
|
200
|
+
* @public
|
|
201
|
+
* @documentationMaturity preview
|
|
202
|
+
* @requiredField email
|
|
203
|
+
*/
|
|
204
|
+
export declare function sendRecoveryEmail(email: string, options?: SendRecoveryEmailOptions): Promise<void>;
|
|
205
|
+
export interface SendRecoveryEmailOptions {
|
|
206
|
+
/** language of the email - if not recived will fallback to the identity language */
|
|
207
|
+
language?: string | null;
|
|
208
|
+
}
|
|
209
|
+
/** @param recoveryToken - recovery token
|
|
210
|
+
* @public
|
|
211
|
+
* @documentationMaturity preview
|
|
212
|
+
* @requiredField recoveryToken
|
|
213
|
+
*/
|
|
214
|
+
export declare function recover(recoveryToken: string, options?: RecoverOptions): Promise<StateMachineResponse>;
|
|
215
|
+
export interface RecoverOptions {
|
|
216
|
+
/** new password to set for the identity */
|
|
217
|
+
password?: string | null;
|
|
218
|
+
}
|