@authsome/client 0.0.4 → 0.0.5
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/dist/client.d.ts +49 -45
- package/dist/client.js +35 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +65 -65
- package/dist/plugins/admin.d.ts +5 -5
- package/dist/plugins/admin.js +10 -20
- package/dist/plugins/anonymous.d.ts +1 -1
- package/dist/plugins/anonymous.js +4 -2
- package/dist/plugins/apikey.d.ts +7 -7
- package/dist/plugins/apikey.js +28 -14
- package/dist/plugins/backupauth.d.ts +28 -28
- package/dist/plugins/cms.d.ts +11 -11
- package/dist/plugins/cms.js +38 -28
- package/dist/plugins/compliance.d.ts +33 -33
- package/dist/plugins/compliance.js +4 -2
- package/dist/plugins/consent.d.ts +18 -18
- package/dist/plugins/emailverification.d.ts +2 -2
- package/dist/plugins/emailverification.js +4 -2
- package/dist/plugins/idverification.d.ts +11 -11
- package/dist/plugins/impersonation.d.ts +6 -6
- package/dist/plugins/impersonation.js +4 -8
- package/dist/plugins/jwt.d.ts +6 -5
- package/dist/plugins/jwt.js +16 -8
- package/dist/plugins/mfa.d.ts +9 -9
- package/dist/plugins/mfa.js +4 -8
- package/dist/plugins/multiapp.d.ts +19 -19
- package/dist/plugins/multiapp.js +16 -8
- package/dist/plugins/multisession.d.ts +5 -5
- package/dist/plugins/multisession.js +4 -2
- package/dist/plugins/notification.d.ts +15 -15
- package/dist/plugins/notification.js +12 -6
- package/dist/plugins/oidcprovider.d.ts +11 -11
- package/dist/plugins/oidcprovider.js +12 -6
- package/dist/plugins/organization.d.ts +5 -5
- package/dist/plugins/secrets.d.ts +10 -10
- package/dist/plugins/secrets.js +32 -16
- package/dist/plugins/social.js +1 -1
- package/dist/plugins/stepup.d.ts +13 -13
- package/dist/plugins/twofa.d.ts +6 -6
- package/dist/plugins/twofa.js +12 -24
- package/dist/plugins/username.d.ts +2 -2
- package/dist/plugins/username.js +8 -4
- package/dist/types.d.ts +3336 -2788
- package/package.json +1 -1
- package/src/client.ts +60 -45
- package/src/index.ts +21 -21
- package/src/plugins/admin.ts +10 -20
- package/src/plugins/anonymous.ts +4 -2
- package/src/plugins/apikey.ts +28 -14
- package/src/plugins/backupauth.ts +56 -56
- package/src/plugins/cms.ts +38 -28
- package/src/plugins/compliance.ts +68 -66
- package/src/plugins/consent.ts +36 -36
- package/src/plugins/emailverification.ts +6 -4
- package/src/plugins/idverification.ts +22 -22
- package/src/plugins/impersonation.ts +12 -16
- package/src/plugins/jwt.ts +18 -10
- package/src/plugins/mfa.ts +18 -22
- package/src/plugins/multiapp.ts +46 -38
- package/src/plugins/multisession.ts +11 -9
- package/src/plugins/notification.ts +36 -30
- package/src/plugins/oidcprovider.ts +28 -22
- package/src/plugins/organization.ts +10 -10
- package/src/plugins/secrets.ts +36 -20
- package/src/plugins/social.ts +1 -1
- package/src/plugins/stepup.ts +26 -26
- package/src/plugins/twofa.ts +12 -24
- package/src/plugins/username.ts +8 -4
- package/src/types.ts +3581 -2856
package/dist/plugins/apikey.js
CHANGED
|
@@ -10,33 +10,47 @@ class ApikeyPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async createAPIKey() {
|
|
13
|
+
async createAPIKey(request) {
|
|
14
14
|
const path = '/createapikey';
|
|
15
|
-
return this.client.request('POST', path
|
|
15
|
+
return this.client.request('POST', path, {
|
|
16
|
+
body: request,
|
|
17
|
+
});
|
|
16
18
|
}
|
|
17
|
-
async rotateAPIKey(params) {
|
|
19
|
+
async rotateAPIKey(params, request) {
|
|
18
20
|
const path = `/${params.id}/rotate`;
|
|
19
|
-
return this.client.request('POST', path
|
|
21
|
+
return this.client.request('POST', path, {
|
|
22
|
+
body: request,
|
|
23
|
+
});
|
|
20
24
|
}
|
|
21
|
-
async listAPIKeys() {
|
|
25
|
+
async listAPIKeys(request) {
|
|
22
26
|
const path = '/listapikeys';
|
|
23
|
-
return this.client.request('GET', path
|
|
27
|
+
return this.client.request('GET', path, {
|
|
28
|
+
query: this.client.toQueryParams(request),
|
|
29
|
+
});
|
|
24
30
|
}
|
|
25
|
-
async getAPIKey(params) {
|
|
31
|
+
async getAPIKey(params, request) {
|
|
26
32
|
const path = `/${params.id}`;
|
|
27
|
-
return this.client.request('GET', path
|
|
33
|
+
return this.client.request('GET', path, {
|
|
34
|
+
query: this.client.toQueryParams(request),
|
|
35
|
+
});
|
|
28
36
|
}
|
|
29
|
-
async updateAPIKey(params) {
|
|
37
|
+
async updateAPIKey(params, request) {
|
|
30
38
|
const path = `/${params.id}`;
|
|
31
|
-
return this.client.request('PUT', path
|
|
39
|
+
return this.client.request('PUT', path, {
|
|
40
|
+
body: request,
|
|
41
|
+
});
|
|
32
42
|
}
|
|
33
|
-
async deleteAPIKey(params) {
|
|
43
|
+
async deleteAPIKey(params, request) {
|
|
34
44
|
const path = `/${params.id}`;
|
|
35
|
-
return this.client.request('DELETE', path
|
|
45
|
+
return this.client.request('DELETE', path, {
|
|
46
|
+
query: this.client.toQueryParams(request),
|
|
47
|
+
});
|
|
36
48
|
}
|
|
37
|
-
async verifyAPIKey() {
|
|
49
|
+
async verifyAPIKey(request) {
|
|
38
50
|
const path = '/verify';
|
|
39
|
-
return this.client.request('POST', path
|
|
51
|
+
return this.client.request('POST', path, {
|
|
52
|
+
body: request,
|
|
53
|
+
});
|
|
40
54
|
}
|
|
41
55
|
}
|
|
42
56
|
exports.ApikeyPlugin = ApikeyPlugin;
|
|
@@ -5,44 +5,44 @@ export declare class BackupauthPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "backupauth";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
startRecovery(request: types.StartRecoveryRequest): Promise<types.
|
|
9
|
-
continueRecovery(request: types.ContinueRecoveryRequest): Promise<types.
|
|
10
|
-
completeRecovery(request: types.CompleteRecoveryRequest): Promise<types.
|
|
11
|
-
cancelRecovery(request: types.CancelRecoveryRequest): Promise<types.
|
|
12
|
-
generateRecoveryCodes(request: types.GenerateRecoveryCodesRequest): Promise<types.
|
|
13
|
-
verifyRecoveryCode(request: types.VerifyRecoveryCodeRequest): Promise<types.
|
|
14
|
-
setupSecurityQuestions(request: types.SetupSecurityQuestionsRequest): Promise<types.
|
|
15
|
-
getSecurityQuestions(request: types.GetSecurityQuestionsRequest): Promise<types.
|
|
16
|
-
verifySecurityAnswers(request: types.VerifySecurityAnswersRequest): Promise<types.
|
|
17
|
-
addTrustedContact(request: types.AddTrustedContactRequest): Promise<types.
|
|
18
|
-
listTrustedContacts(): Promise<types.
|
|
19
|
-
verifyTrustedContact(request: types.VerifyTrustedContactRequest): Promise<types.
|
|
20
|
-
requestTrustedContactVerification(request: types.RequestTrustedContactVerificationRequest): Promise<types.
|
|
8
|
+
startRecovery(request: types.StartRecoveryRequest): Promise<types.BackupAuthRecoveryResponse>;
|
|
9
|
+
continueRecovery(request: types.ContinueRecoveryRequest): Promise<types.BackupAuthRecoveryResponse>;
|
|
10
|
+
completeRecovery(request: types.CompleteRecoveryRequest): Promise<types.BackupAuthStatusResponse>;
|
|
11
|
+
cancelRecovery(request: types.CancelRecoveryRequest): Promise<types.BackupAuthStatusResponse>;
|
|
12
|
+
generateRecoveryCodes(request: types.GenerateRecoveryCodesRequest): Promise<types.BackupAuthCodesResponse>;
|
|
13
|
+
verifyRecoveryCode(request: types.VerifyRecoveryCodeRequest): Promise<types.BackupAuthStatusResponse>;
|
|
14
|
+
setupSecurityQuestions(request: types.SetupSecurityQuestionsRequest): Promise<types.BackupAuthStatusResponse>;
|
|
15
|
+
getSecurityQuestions(request: types.GetSecurityQuestionsRequest): Promise<types.BackupAuthQuestionsResponse>;
|
|
16
|
+
verifySecurityAnswers(request: types.VerifySecurityAnswersRequest): Promise<types.BackupAuthStatusResponse>;
|
|
17
|
+
addTrustedContact(request: types.AddTrustedContactRequest): Promise<types.BackupAuthContactResponse>;
|
|
18
|
+
listTrustedContacts(): Promise<types.BackupAuthContactsResponse>;
|
|
19
|
+
verifyTrustedContact(request: types.VerifyTrustedContactRequest): Promise<types.BackupAuthStatusResponse>;
|
|
20
|
+
requestTrustedContactVerification(request: types.RequestTrustedContactVerificationRequest): Promise<types.BackupAuthStatusResponse>;
|
|
21
21
|
removeTrustedContact(params: {
|
|
22
22
|
id: string;
|
|
23
|
-
}): Promise<types.
|
|
24
|
-
sendVerificationCode(request: types.SendVerificationCodeRequest): Promise<types.
|
|
25
|
-
verifyCode(request: types.VerifyCodeRequest): Promise<types.
|
|
26
|
-
scheduleVideoSession(request: types.ScheduleVideoSessionRequest): Promise<types.
|
|
27
|
-
startVideoSession(request: types.StartVideoSessionRequest): Promise<types.
|
|
28
|
-
completeVideoSession(request: types.CompleteVideoSessionRequest): Promise<types.
|
|
29
|
-
uploadDocument(request: types.UploadDocumentRequest): Promise<types.
|
|
23
|
+
}): Promise<types.BackupAuthStatusResponse>;
|
|
24
|
+
sendVerificationCode(request: types.SendVerificationCodeRequest): Promise<types.BackupAuthStatusResponse>;
|
|
25
|
+
verifyCode(request: types.VerifyCodeRequest): Promise<types.BackupAuthStatusResponse>;
|
|
26
|
+
scheduleVideoSession(request: types.ScheduleVideoSessionRequest): Promise<types.BackupAuthVideoResponse>;
|
|
27
|
+
startVideoSession(request: types.StartVideoSessionRequest): Promise<types.BackupAuthVideoResponse>;
|
|
28
|
+
completeVideoSession(request: types.CompleteVideoSessionRequest): Promise<types.BackupAuthStatusResponse>;
|
|
29
|
+
uploadDocument(request: types.UploadDocumentRequest): Promise<types.BackupAuthDocumentResponse>;
|
|
30
30
|
getDocumentVerification(params: {
|
|
31
31
|
id: string;
|
|
32
|
-
}): Promise<types.
|
|
32
|
+
}): Promise<types.BackupAuthDocumentResponse>;
|
|
33
33
|
reviewDocument(params: {
|
|
34
34
|
id: string;
|
|
35
|
-
}, request: types.ReviewDocumentRequest): Promise<types.
|
|
36
|
-
listRecoverySessions(): Promise<
|
|
35
|
+
}, request: types.ReviewDocumentRequest): Promise<types.BackupAuthStatusResponse>;
|
|
36
|
+
listRecoverySessions(): Promise<types.BackupAuthSessionsResponse>;
|
|
37
37
|
approveRecovery(params: {
|
|
38
38
|
id: string;
|
|
39
|
-
}, request: types.ApproveRecoveryRequest): Promise<types.
|
|
39
|
+
}, request: types.ApproveRecoveryRequest): Promise<types.BackupAuthStatusResponse>;
|
|
40
40
|
rejectRecovery(params: {
|
|
41
41
|
id: string;
|
|
42
|
-
}, request: types.RejectRecoveryRequest): Promise<types.
|
|
43
|
-
getRecoveryStats(): Promise<
|
|
44
|
-
getRecoveryConfig(): Promise<
|
|
45
|
-
updateRecoveryConfig(request: types.UpdateRecoveryConfigRequest): Promise<types.
|
|
42
|
+
}, request: types.RejectRecoveryRequest): Promise<types.BackupAuthStatusResponse>;
|
|
43
|
+
getRecoveryStats(): Promise<types.BackupAuthStatsResponse>;
|
|
44
|
+
getRecoveryConfig(): Promise<types.BackupAuthConfigResponse>;
|
|
45
|
+
updateRecoveryConfig(request: types.UpdateRecoveryConfigRequest): Promise<types.BackupAuthConfigResponse>;
|
|
46
46
|
healthCheck(): Promise<void>;
|
|
47
47
|
}
|
|
48
48
|
export declare function backupauthClient(): BackupauthPlugin;
|
package/dist/plugins/cms.d.ts
CHANGED
|
@@ -6,41 +6,41 @@ export declare class CmsPlugin implements ClientPlugin {
|
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
8
|
listEntries(): Promise<void>;
|
|
9
|
-
createEntry(): Promise<void>;
|
|
9
|
+
createEntry(request: types.CreateEntryRequest): Promise<void>;
|
|
10
10
|
getEntry(): Promise<void>;
|
|
11
|
-
updateEntry(): Promise<void>;
|
|
11
|
+
updateEntry(request: types.UpdateEntryRequest): Promise<void>;
|
|
12
12
|
deleteEntry(): Promise<void>;
|
|
13
|
-
publishEntry(): Promise<void>;
|
|
13
|
+
publishEntry(request: types.PublishEntryRequest): Promise<void>;
|
|
14
14
|
unpublishEntry(): Promise<void>;
|
|
15
15
|
archiveEntry(): Promise<void>;
|
|
16
16
|
queryEntries(): Promise<void>;
|
|
17
|
-
bulkPublish(
|
|
18
|
-
bulkUnpublish(
|
|
19
|
-
bulkDelete(
|
|
17
|
+
bulkPublish(): Promise<void>;
|
|
18
|
+
bulkUnpublish(): Promise<void>;
|
|
19
|
+
bulkDelete(): Promise<void>;
|
|
20
20
|
getEntryStats(): Promise<void>;
|
|
21
21
|
listContentTypes(): Promise<void>;
|
|
22
|
-
createContentType(): Promise<void>;
|
|
22
|
+
createContentType(request: types.CreateContentTypeRequest): Promise<void>;
|
|
23
23
|
getContentType(params: {
|
|
24
24
|
slug: string;
|
|
25
25
|
}): Promise<void>;
|
|
26
26
|
updateContentType(params: {
|
|
27
27
|
slug: string;
|
|
28
|
-
}): Promise<void>;
|
|
28
|
+
}, request: types.UpdateContentTypeRequest): Promise<void>;
|
|
29
29
|
deleteContentType(params: {
|
|
30
30
|
slug: string;
|
|
31
31
|
}): Promise<void>;
|
|
32
32
|
listFields(): Promise<void>;
|
|
33
|
-
addField(): Promise<void>;
|
|
33
|
+
addField(request: types.CreateFieldRequest): Promise<void>;
|
|
34
34
|
getField(params: {
|
|
35
35
|
fieldSlug: string;
|
|
36
36
|
}): Promise<void>;
|
|
37
37
|
updateField(params: {
|
|
38
38
|
fieldSlug: string;
|
|
39
|
-
}): Promise<void>;
|
|
39
|
+
}, request: types.UpdateFieldRequest): Promise<void>;
|
|
40
40
|
deleteField(params: {
|
|
41
41
|
fieldSlug: string;
|
|
42
42
|
}): Promise<void>;
|
|
43
|
-
reorderFields(): Promise<void>;
|
|
43
|
+
reorderFields(request: types.ReorderFieldsRequest): Promise<void>;
|
|
44
44
|
getFieldTypes(): Promise<void>;
|
|
45
45
|
listRevisions(): Promise<void>;
|
|
46
46
|
getRevision(params: {
|
package/dist/plugins/cms.js
CHANGED
|
@@ -14,25 +14,31 @@ class CmsPlugin {
|
|
|
14
14
|
const path = '/listentries';
|
|
15
15
|
return this.client.request('GET', path);
|
|
16
16
|
}
|
|
17
|
-
async createEntry() {
|
|
17
|
+
async createEntry(request) {
|
|
18
18
|
const path = '/createentry';
|
|
19
|
-
return this.client.request('POST', path
|
|
19
|
+
return this.client.request('POST', path, {
|
|
20
|
+
body: request,
|
|
21
|
+
});
|
|
20
22
|
}
|
|
21
23
|
async getEntry() {
|
|
22
24
|
const path = '/getentry';
|
|
23
25
|
return this.client.request('GET', path);
|
|
24
26
|
}
|
|
25
|
-
async updateEntry() {
|
|
27
|
+
async updateEntry(request) {
|
|
26
28
|
const path = '/updateentry';
|
|
27
|
-
return this.client.request('PUT', path
|
|
29
|
+
return this.client.request('PUT', path, {
|
|
30
|
+
body: request,
|
|
31
|
+
});
|
|
28
32
|
}
|
|
29
33
|
async deleteEntry() {
|
|
30
34
|
const path = '/deleteentry';
|
|
31
35
|
return this.client.request('DELETE', path);
|
|
32
36
|
}
|
|
33
|
-
async publishEntry() {
|
|
37
|
+
async publishEntry(request) {
|
|
34
38
|
const path = '/publish';
|
|
35
|
-
return this.client.request('POST', path
|
|
39
|
+
return this.client.request('POST', path, {
|
|
40
|
+
body: request,
|
|
41
|
+
});
|
|
36
42
|
}
|
|
37
43
|
async unpublishEntry() {
|
|
38
44
|
const path = '/unpublish';
|
|
@@ -46,23 +52,17 @@ class CmsPlugin {
|
|
|
46
52
|
const path = '/query';
|
|
47
53
|
return this.client.request('POST', path);
|
|
48
54
|
}
|
|
49
|
-
async bulkPublish(
|
|
55
|
+
async bulkPublish() {
|
|
50
56
|
const path = '/publish';
|
|
51
|
-
return this.client.request('POST', path
|
|
52
|
-
body: request,
|
|
53
|
-
});
|
|
57
|
+
return this.client.request('POST', path);
|
|
54
58
|
}
|
|
55
|
-
async bulkUnpublish(
|
|
59
|
+
async bulkUnpublish() {
|
|
56
60
|
const path = '/unpublish';
|
|
57
|
-
return this.client.request('POST', path
|
|
58
|
-
body: request,
|
|
59
|
-
});
|
|
61
|
+
return this.client.request('POST', path);
|
|
60
62
|
}
|
|
61
|
-
async bulkDelete(
|
|
63
|
+
async bulkDelete() {
|
|
62
64
|
const path = '/delete';
|
|
63
|
-
return this.client.request('POST', path
|
|
64
|
-
body: request,
|
|
65
|
-
});
|
|
65
|
+
return this.client.request('POST', path);
|
|
66
66
|
}
|
|
67
67
|
async getEntryStats() {
|
|
68
68
|
const path = '/stats';
|
|
@@ -72,17 +72,21 @@ class CmsPlugin {
|
|
|
72
72
|
const path = '/listcontenttypes';
|
|
73
73
|
return this.client.request('GET', path);
|
|
74
74
|
}
|
|
75
|
-
async createContentType() {
|
|
75
|
+
async createContentType(request) {
|
|
76
76
|
const path = '/createcontenttype';
|
|
77
|
-
return this.client.request('POST', path
|
|
77
|
+
return this.client.request('POST', path, {
|
|
78
|
+
body: request,
|
|
79
|
+
});
|
|
78
80
|
}
|
|
79
81
|
async getContentType(params) {
|
|
80
82
|
const path = `/${params.slug}`;
|
|
81
83
|
return this.client.request('GET', path);
|
|
82
84
|
}
|
|
83
|
-
async updateContentType(params) {
|
|
85
|
+
async updateContentType(params, request) {
|
|
84
86
|
const path = `/${params.slug}`;
|
|
85
|
-
return this.client.request('PUT', path
|
|
87
|
+
return this.client.request('PUT', path, {
|
|
88
|
+
body: request,
|
|
89
|
+
});
|
|
86
90
|
}
|
|
87
91
|
async deleteContentType(params) {
|
|
88
92
|
const path = `/${params.slug}`;
|
|
@@ -92,25 +96,31 @@ class CmsPlugin {
|
|
|
92
96
|
const path = '/listfields';
|
|
93
97
|
return this.client.request('GET', path);
|
|
94
98
|
}
|
|
95
|
-
async addField() {
|
|
99
|
+
async addField(request) {
|
|
96
100
|
const path = '/addfield';
|
|
97
|
-
return this.client.request('POST', path
|
|
101
|
+
return this.client.request('POST', path, {
|
|
102
|
+
body: request,
|
|
103
|
+
});
|
|
98
104
|
}
|
|
99
105
|
async getField(params) {
|
|
100
106
|
const path = `/${params.fieldSlug}`;
|
|
101
107
|
return this.client.request('GET', path);
|
|
102
108
|
}
|
|
103
|
-
async updateField(params) {
|
|
109
|
+
async updateField(params, request) {
|
|
104
110
|
const path = `/${params.fieldSlug}`;
|
|
105
|
-
return this.client.request('PUT', path
|
|
111
|
+
return this.client.request('PUT', path, {
|
|
112
|
+
body: request,
|
|
113
|
+
});
|
|
106
114
|
}
|
|
107
115
|
async deleteField(params) {
|
|
108
116
|
const path = `/${params.fieldSlug}`;
|
|
109
117
|
return this.client.request('DELETE', path);
|
|
110
118
|
}
|
|
111
|
-
async reorderFields() {
|
|
119
|
+
async reorderFields(request) {
|
|
112
120
|
const path = '/reorder';
|
|
113
|
-
return this.client.request('POST', path
|
|
121
|
+
return this.client.request('POST', path, {
|
|
122
|
+
body: request,
|
|
123
|
+
});
|
|
114
124
|
}
|
|
115
125
|
async getFieldTypes() {
|
|
116
126
|
const path = '/field-types';
|
|
@@ -5,98 +5,98 @@ export declare class CompliancePlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "compliance";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
createProfile(request: types.CreateProfileRequest): Promise<
|
|
9
|
-
createProfileFromTemplate(request: types.
|
|
8
|
+
createProfile(request: types.CreateProfileRequest): Promise<types.ComplianceProfileResponse>;
|
|
9
|
+
createProfileFromTemplate(request: types.CreateProfileFromTemplateRequest): Promise<types.ComplianceProfileResponse>;
|
|
10
10
|
getProfile(params: {
|
|
11
11
|
id: string;
|
|
12
|
-
}): Promise<
|
|
12
|
+
}): Promise<types.ComplianceProfileResponse>;
|
|
13
13
|
getAppProfile(params: {
|
|
14
14
|
appId: string;
|
|
15
|
-
}): Promise<
|
|
15
|
+
}): Promise<types.ComplianceProfileResponse>;
|
|
16
16
|
updateProfile(params: {
|
|
17
17
|
id: string;
|
|
18
|
-
}, request: types.UpdateProfileRequest): Promise<
|
|
18
|
+
}, request: types.UpdateProfileRequest): Promise<types.ComplianceProfileResponse>;
|
|
19
19
|
deleteProfile(params: {
|
|
20
20
|
id: string;
|
|
21
|
-
}): Promise<
|
|
21
|
+
}): Promise<types.ComplianceStatusResponse>;
|
|
22
22
|
getComplianceStatus(params: {
|
|
23
23
|
appId: string;
|
|
24
|
-
}): Promise<
|
|
24
|
+
}): Promise<types.ComplianceStatusDetailsResponse>;
|
|
25
25
|
getDashboard(params: {
|
|
26
26
|
appId: string;
|
|
27
|
-
}): Promise<
|
|
27
|
+
}): Promise<types.ComplianceDashboardResponse>;
|
|
28
28
|
runCheck(params: {
|
|
29
29
|
profileId: string;
|
|
30
|
-
}, request: types.
|
|
30
|
+
}, request: types.RunCheckRequest): Promise<types.ComplianceCheckResponse>;
|
|
31
31
|
listChecks(params: {
|
|
32
32
|
profileId: string;
|
|
33
|
-
}): Promise<
|
|
33
|
+
}): Promise<types.ComplianceChecksResponse>;
|
|
34
34
|
getCheck(params: {
|
|
35
35
|
id: string;
|
|
36
|
-
}): Promise<
|
|
36
|
+
}): Promise<types.ComplianceCheckResponse>;
|
|
37
37
|
listViolations(params: {
|
|
38
38
|
appId: string;
|
|
39
|
-
}): Promise<
|
|
39
|
+
}): Promise<types.ComplianceViolationsResponse>;
|
|
40
40
|
getViolation(params: {
|
|
41
41
|
id: string;
|
|
42
|
-
}): Promise<
|
|
42
|
+
}): Promise<types.ComplianceViolationResponse>;
|
|
43
43
|
resolveViolation(params: {
|
|
44
44
|
id: string;
|
|
45
|
-
}): Promise<
|
|
45
|
+
}, request: types.ResolveViolationRequest): Promise<types.ComplianceStatusResponse>;
|
|
46
46
|
generateReport(params: {
|
|
47
47
|
appId: string;
|
|
48
|
-
}, request: types.
|
|
48
|
+
}, request: types.GenerateReportRequest): Promise<types.ComplianceReportResponse>;
|
|
49
49
|
listReports(params: {
|
|
50
50
|
appId: string;
|
|
51
|
-
}): Promise<
|
|
51
|
+
}): Promise<types.ComplianceReportsResponse>;
|
|
52
52
|
getReport(params: {
|
|
53
53
|
id: string;
|
|
54
|
-
}): Promise<
|
|
54
|
+
}): Promise<types.ComplianceReportResponse>;
|
|
55
55
|
downloadReport(params: {
|
|
56
56
|
id: string;
|
|
57
|
-
}): Promise<
|
|
57
|
+
}): Promise<types.ComplianceReportFileResponse>;
|
|
58
58
|
createEvidence(params: {
|
|
59
59
|
appId: string;
|
|
60
|
-
}, request: types.
|
|
60
|
+
}, request: types.CreateEvidenceRequest): Promise<types.ComplianceEvidenceResponse>;
|
|
61
61
|
listEvidence(params: {
|
|
62
62
|
appId: string;
|
|
63
|
-
}): Promise<
|
|
63
|
+
}): Promise<types.ComplianceEvidencesResponse>;
|
|
64
64
|
getEvidence(params: {
|
|
65
65
|
id: string;
|
|
66
|
-
}): Promise<
|
|
66
|
+
}): Promise<types.ComplianceEvidenceResponse>;
|
|
67
67
|
deleteEvidence(params: {
|
|
68
68
|
id: string;
|
|
69
|
-
}): Promise<
|
|
69
|
+
}): Promise<types.ComplianceStatusResponse>;
|
|
70
70
|
createPolicy(params: {
|
|
71
71
|
appId: string;
|
|
72
|
-
}, request: types.
|
|
72
|
+
}, request: types.CreatePolicyRequest): Promise<types.CompliancePolicyResponse>;
|
|
73
73
|
listPolicies(params: {
|
|
74
74
|
appId: string;
|
|
75
|
-
}): Promise<
|
|
75
|
+
}): Promise<types.CompliancePoliciesResponse>;
|
|
76
76
|
getPolicy(params: {
|
|
77
77
|
id: string;
|
|
78
|
-
}): Promise<
|
|
78
|
+
}): Promise<types.CompliancePolicyResponse>;
|
|
79
79
|
updatePolicy(params: {
|
|
80
80
|
id: string;
|
|
81
|
-
}, request: types.
|
|
81
|
+
}, request: types.UpdatePolicyRequest): Promise<types.CompliancePolicyResponse>;
|
|
82
82
|
deletePolicy(params: {
|
|
83
83
|
id: string;
|
|
84
|
-
}): Promise<
|
|
84
|
+
}): Promise<types.ComplianceStatusResponse>;
|
|
85
85
|
createTraining(params: {
|
|
86
86
|
appId: string;
|
|
87
|
-
}, request: types.
|
|
87
|
+
}, request: types.CreateTrainingRequest): Promise<types.ComplianceTrainingResponse>;
|
|
88
88
|
listTraining(params: {
|
|
89
89
|
appId: string;
|
|
90
|
-
}): Promise<
|
|
90
|
+
}): Promise<types.ComplianceTrainingsResponse>;
|
|
91
91
|
getUserTraining(params: {
|
|
92
92
|
userId: string;
|
|
93
|
-
}): Promise<
|
|
93
|
+
}): Promise<types.ComplianceUserTrainingResponse>;
|
|
94
94
|
completeTraining(params: {
|
|
95
95
|
id: string;
|
|
96
|
-
}, request: types.
|
|
97
|
-
listTemplates(): Promise<
|
|
96
|
+
}, request: types.CompleteTrainingRequest): Promise<types.ComplianceStatusResponse>;
|
|
97
|
+
listTemplates(): Promise<types.ComplianceTemplatesResponse>;
|
|
98
98
|
getTemplate(params: {
|
|
99
99
|
standard: string;
|
|
100
|
-
}): Promise<
|
|
100
|
+
}): Promise<types.ComplianceTemplateResponse>;
|
|
101
101
|
}
|
|
102
102
|
export declare function complianceClient(): CompliancePlugin;
|
|
@@ -70,9 +70,11 @@ class CompliancePlugin {
|
|
|
70
70
|
const path = `/violations/${params.id}`;
|
|
71
71
|
return this.client.request('GET', path);
|
|
72
72
|
}
|
|
73
|
-
async resolveViolation(params) {
|
|
73
|
+
async resolveViolation(params, request) {
|
|
74
74
|
const path = `/violations/${params.id}/resolve`;
|
|
75
|
-
return this.client.request('PUT', path
|
|
75
|
+
return this.client.request('PUT', path, {
|
|
76
|
+
body: request,
|
|
77
|
+
});
|
|
76
78
|
}
|
|
77
79
|
async generateReport(params, request) {
|
|
78
80
|
const path = `/apps/${params.appId}/reports`;
|
|
@@ -5,39 +5,39 @@ export declare class ConsentPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "consent";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
createConsent(request: types.CreateConsentRequest): Promise<
|
|
8
|
+
createConsent(request: types.CreateConsentRequest): Promise<types.ConsentRecordResponse>;
|
|
9
9
|
getConsent(params: {
|
|
10
10
|
id: string;
|
|
11
|
-
}): Promise<
|
|
11
|
+
}): Promise<types.ConsentRecordResponse>;
|
|
12
12
|
updateConsent(params: {
|
|
13
13
|
id: string;
|
|
14
|
-
}, request: types.UpdateConsentRequest): Promise<
|
|
14
|
+
}, request: types.UpdateConsentRequest): Promise<types.ConsentRecordResponse>;
|
|
15
15
|
revokeConsent(params: {
|
|
16
16
|
id: string;
|
|
17
|
-
}, request: types.UpdateConsentRequest): Promise<types.
|
|
18
|
-
createConsentPolicy(request: types.CreatePolicyRequest): Promise<
|
|
17
|
+
}, request: types.UpdateConsentRequest): Promise<types.ConsentStatusResponse>;
|
|
18
|
+
createConsentPolicy(request: types.CreatePolicyRequest): Promise<types.ConsentPolicyResponse>;
|
|
19
19
|
getConsentPolicy(params: {
|
|
20
20
|
id: string;
|
|
21
|
-
}): Promise<
|
|
22
|
-
recordCookieConsent(request: types.CookieConsentRequest): Promise<
|
|
23
|
-
getCookieConsent(): Promise<
|
|
24
|
-
requestDataExport(request: types.DataExportRequestInput): Promise<
|
|
21
|
+
}): Promise<types.ConsentPolicyResponse>;
|
|
22
|
+
recordCookieConsent(request: types.CookieConsentRequest): Promise<types.ConsentCookieResponse>;
|
|
23
|
+
getCookieConsent(): Promise<types.ConsentCookieResponse>;
|
|
24
|
+
requestDataExport(request: types.DataExportRequestInput): Promise<types.ConsentExportResponse>;
|
|
25
25
|
getDataExport(params: {
|
|
26
26
|
id: string;
|
|
27
|
-
}): Promise<
|
|
27
|
+
}): Promise<types.ConsentExportResponse>;
|
|
28
28
|
downloadDataExport(params: {
|
|
29
29
|
id: string;
|
|
30
|
-
}): Promise<
|
|
31
|
-
requestDataDeletion(request: types.DataDeletionRequestInput): Promise<
|
|
30
|
+
}): Promise<types.ConsentExportFileResponse>;
|
|
31
|
+
requestDataDeletion(request: types.DataDeletionRequestInput): Promise<types.ConsentDeletionResponse>;
|
|
32
32
|
getDataDeletion(params: {
|
|
33
33
|
id: string;
|
|
34
|
-
}): Promise<
|
|
34
|
+
}): Promise<types.ConsentDeletionResponse>;
|
|
35
35
|
approveDeletionRequest(params: {
|
|
36
36
|
id: string;
|
|
37
|
-
}): Promise<types.
|
|
38
|
-
getPrivacySettings(): Promise<
|
|
39
|
-
updatePrivacySettings(request: types.PrivacySettingsRequest): Promise<
|
|
40
|
-
getConsentAuditLogs(): Promise<
|
|
41
|
-
generateConsentReport(): Promise<
|
|
37
|
+
}): Promise<types.ConsentStatusResponse>;
|
|
38
|
+
getPrivacySettings(): Promise<types.ConsentSettingsResponse>;
|
|
39
|
+
updatePrivacySettings(request: types.PrivacySettingsRequest): Promise<types.ConsentSettingsResponse>;
|
|
40
|
+
getConsentAuditLogs(): Promise<types.ConsentAuditLogsResponse>;
|
|
41
|
+
generateConsentReport(): Promise<types.ConsentReportResponse>;
|
|
42
42
|
}
|
|
43
43
|
export declare function consentClient(): ConsentPlugin;
|
|
@@ -5,8 +5,8 @@ export declare class EmailverificationPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "emailverification";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
send(request: types.SendRequest): Promise<
|
|
9
|
-
verify(): Promise<
|
|
8
|
+
send(request: types.SendRequest): Promise<types.SendResponse>;
|
|
9
|
+
verify(request?: types.VerifyRequest): Promise<types.VerifyResponse>;
|
|
10
10
|
resend(request: types.ResendRequest): Promise<types.ResendResponse>;
|
|
11
11
|
}
|
|
12
12
|
export declare function emailverificationClient(): EmailverificationPlugin;
|
|
@@ -16,9 +16,11 @@ class EmailverificationPlugin {
|
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
async verify() {
|
|
19
|
+
async verify(request) {
|
|
20
20
|
const path = '/email-verification/verify';
|
|
21
|
-
return this.client.request('GET', path
|
|
21
|
+
return this.client.request('GET', path, {
|
|
22
|
+
query: this.client.toQueryParams(request),
|
|
23
|
+
});
|
|
22
24
|
}
|
|
23
25
|
async resend(request) {
|
|
24
26
|
const path = '/email-verification/resend';
|
|
@@ -5,30 +5,30 @@ export declare class IdverificationPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "idverification";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
createVerificationSession(request: types.CreateVerificationSession_req): Promise<types.
|
|
8
|
+
createVerificationSession(request: types.CreateVerificationSession_req): Promise<types.IDVerificationSessionResponse>;
|
|
9
9
|
getVerificationSession(params: {
|
|
10
10
|
id: string;
|
|
11
|
-
}): Promise<types.
|
|
11
|
+
}): Promise<types.IDVerificationSessionResponse>;
|
|
12
12
|
getVerification(params: {
|
|
13
13
|
id: string;
|
|
14
|
-
}): Promise<types.
|
|
15
|
-
getUserVerifications(): Promise<types.
|
|
16
|
-
getUserVerificationStatus(): Promise<types.
|
|
17
|
-
requestReverification(request: types.RequestReverification_req): Promise<types.
|
|
14
|
+
}): Promise<types.IDVerificationResponse>;
|
|
15
|
+
getUserVerifications(): Promise<types.IDVerificationListResponse>;
|
|
16
|
+
getUserVerificationStatus(): Promise<types.IDVerificationStatusResponse>;
|
|
17
|
+
requestReverification(request: types.RequestReverification_req): Promise<types.IDVerificationSessionResponse>;
|
|
18
18
|
handleWebhook(params: {
|
|
19
19
|
provider: string;
|
|
20
|
-
}): Promise<
|
|
20
|
+
}): Promise<types.IDVerificationWebhookResponse>;
|
|
21
21
|
adminBlockUser(params: {
|
|
22
22
|
userId: string;
|
|
23
|
-
}, request: types.AdminBlockUser_req): Promise<types.
|
|
23
|
+
}, request: types.AdminBlockUser_req): Promise<types.IDVerificationStatusResponse>;
|
|
24
24
|
adminUnblockUser(params: {
|
|
25
25
|
userId: string;
|
|
26
|
-
}): Promise<types.
|
|
26
|
+
}): Promise<types.IDVerificationStatusResponse>;
|
|
27
27
|
adminGetUserVerificationStatus(params: {
|
|
28
28
|
userId: string;
|
|
29
|
-
}): Promise<types.
|
|
29
|
+
}): Promise<types.IDVerificationStatusResponse>;
|
|
30
30
|
adminGetUserVerifications(params: {
|
|
31
31
|
userId: string;
|
|
32
|
-
}): Promise<types.
|
|
32
|
+
}): Promise<types.IDVerificationListResponse>;
|
|
33
33
|
}
|
|
34
34
|
export declare function idverificationClient(): IdverificationPlugin;
|
|
@@ -5,13 +5,13 @@ export declare class ImpersonationPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "impersonation";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
startImpersonation(
|
|
9
|
-
endImpersonation(
|
|
8
|
+
startImpersonation(): Promise<types.ImpersonationStartResponse>;
|
|
9
|
+
endImpersonation(): Promise<types.ImpersonationEndResponse>;
|
|
10
10
|
getImpersonation(params: {
|
|
11
11
|
id: string;
|
|
12
|
-
}): Promise<
|
|
13
|
-
listImpersonations(): Promise<
|
|
14
|
-
listAuditEvents(): Promise<
|
|
15
|
-
verifyImpersonation(): Promise<
|
|
12
|
+
}): Promise<types.ImpersonationSession>;
|
|
13
|
+
listImpersonations(): Promise<types.ImpersonationListResponse>;
|
|
14
|
+
listAuditEvents(): Promise<types.ImpersonationAuditResponse>;
|
|
15
|
+
verifyImpersonation(): Promise<types.ImpersonationVerifyResponse>;
|
|
16
16
|
}
|
|
17
17
|
export declare function impersonationClient(): ImpersonationPlugin;
|
|
@@ -10,17 +10,13 @@ class ImpersonationPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async startImpersonation(
|
|
13
|
+
async startImpersonation() {
|
|
14
14
|
const path = '/start';
|
|
15
|
-
return this.client.request('POST', path
|
|
16
|
-
body: request,
|
|
17
|
-
});
|
|
15
|
+
return this.client.request('POST', path);
|
|
18
16
|
}
|
|
19
|
-
async endImpersonation(
|
|
17
|
+
async endImpersonation() {
|
|
20
18
|
const path = '/end';
|
|
21
|
-
return this.client.request('POST', path
|
|
22
|
-
body: request,
|
|
23
|
-
});
|
|
19
|
+
return this.client.request('POST', path);
|
|
24
20
|
}
|
|
25
21
|
async getImpersonation(params) {
|
|
26
22
|
const path = `/${params.id}`;
|