@authsome/client 0.0.6 → 0.0.7

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 (45) hide show
  1. package/dist/client.d.ts +39 -39
  2. package/dist/client.js +18 -18
  3. package/dist/index.d.ts +18 -18
  4. package/dist/index.js +56 -56
  5. package/dist/plugins/admin.js +11 -11
  6. package/dist/plugins/apikey.d.ts +3 -3
  7. package/dist/plugins/apikey.js +12 -12
  8. package/dist/plugins/backupauth.js +29 -29
  9. package/dist/plugins/cms.js +29 -29
  10. package/dist/plugins/idverification.js +11 -11
  11. package/dist/plugins/impersonation.js +6 -6
  12. package/dist/plugins/jwt.js +5 -5
  13. package/dist/plugins/multiapp.js +19 -19
  14. package/dist/plugins/multisession.js +9 -9
  15. package/dist/plugins/notification.d.ts +3 -3
  16. package/dist/plugins/notification.js +6 -6
  17. package/dist/plugins/oidcprovider.d.ts +4 -0
  18. package/dist/plugins/oidcprovider.js +35 -13
  19. package/dist/plugins/organization.d.ts +15 -15
  20. package/dist/plugins/organization.js +37 -37
  21. package/dist/plugins/permissions.js +3 -3
  22. package/dist/plugins/secrets.js +11 -11
  23. package/dist/plugins/sso.js +6 -6
  24. package/dist/plugins/stepup.js +14 -14
  25. package/dist/types.d.ts +3905 -3118
  26. package/package.json +3 -3
  27. package/src/client.ts +40 -40
  28. package/src/index.ts +18 -18
  29. package/src/plugins/admin.ts +11 -11
  30. package/src/plugins/apikey.ts +13 -13
  31. package/src/plugins/backupauth.ts +29 -29
  32. package/src/plugins/cms.ts +29 -29
  33. package/src/plugins/idverification.ts +11 -11
  34. package/src/plugins/impersonation.ts +6 -6
  35. package/src/plugins/jwt.ts +5 -5
  36. package/src/plugins/multiapp.ts +19 -19
  37. package/src/plugins/multisession.ts +9 -9
  38. package/src/plugins/notification.ts +7 -7
  39. package/src/plugins/oidcprovider.ts +39 -13
  40. package/src/plugins/organization.ts +41 -41
  41. package/src/plugins/permissions.ts +3 -3
  42. package/src/plugins/secrets.ts +11 -11
  43. package/src/plugins/sso.ts +6 -6
  44. package/src/plugins/stepup.ts +14 -14
  45. package/src/types.ts +4105 -3185
@@ -11,163 +11,163 @@ class BackupauthPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async startRecovery(request) {
14
- const path = '/admin/recovery/start';
14
+ const path = '/recovery/start';
15
15
  return this.client.request('POST', path, {
16
16
  body: request,
17
17
  });
18
18
  }
19
19
  async continueRecovery(request) {
20
- const path = '/admin/recovery/continue';
20
+ const path = '/recovery/continue';
21
21
  return this.client.request('POST', path, {
22
22
  body: request,
23
23
  });
24
24
  }
25
25
  async completeRecovery(request) {
26
- const path = '/admin/recovery/complete';
26
+ const path = '/recovery/complete';
27
27
  return this.client.request('POST', path, {
28
28
  body: request,
29
29
  });
30
30
  }
31
31
  async cancelRecovery(request) {
32
- const path = '/admin/recovery/cancel';
32
+ const path = '/recovery/cancel';
33
33
  return this.client.request('POST', path, {
34
34
  body: request,
35
35
  });
36
36
  }
37
37
  async generateRecoveryCodes(request) {
38
- const path = '/admin/recovery-codes/generate';
38
+ const path = '/recovery-codes/generate';
39
39
  return this.client.request('POST', path, {
40
40
  body: request,
41
41
  });
42
42
  }
43
43
  async verifyRecoveryCode(request) {
44
- const path = '/admin/recovery-codes/verify';
44
+ const path = '/recovery-codes/verify';
45
45
  return this.client.request('POST', path, {
46
46
  body: request,
47
47
  });
48
48
  }
49
49
  async setupSecurityQuestions(request) {
50
- const path = '/admin/security-questions/setup';
50
+ const path = '/security-questions/setup';
51
51
  return this.client.request('POST', path, {
52
52
  body: request,
53
53
  });
54
54
  }
55
55
  async getSecurityQuestions(request) {
56
- const path = '/admin/security-questions/get';
56
+ const path = '/security-questions/get';
57
57
  return this.client.request('POST', path, {
58
58
  body: request,
59
59
  });
60
60
  }
61
61
  async verifySecurityAnswers(request) {
62
- const path = '/admin/security-questions/verify';
62
+ const path = '/security-questions/verify';
63
63
  return this.client.request('POST', path, {
64
64
  body: request,
65
65
  });
66
66
  }
67
67
  async addTrustedContact(request) {
68
- const path = '/admin/trusted-contacts/add';
68
+ const path = '/trusted-contacts/add';
69
69
  return this.client.request('POST', path, {
70
70
  body: request,
71
71
  });
72
72
  }
73
73
  async listTrustedContacts() {
74
- const path = '/admin/trusted-contacts';
74
+ const path = '/trusted-contacts';
75
75
  return this.client.request('GET', path);
76
76
  }
77
77
  async verifyTrustedContact(request) {
78
- const path = '/admin/trusted-contacts/verify';
78
+ const path = '/trusted-contacts/verify';
79
79
  return this.client.request('POST', path, {
80
80
  body: request,
81
81
  });
82
82
  }
83
83
  async requestTrustedContactVerification(request) {
84
- const path = '/admin/trusted-contacts/request-verification';
84
+ const path = '/trusted-contacts/request-verification';
85
85
  return this.client.request('POST', path, {
86
86
  body: request,
87
87
  });
88
88
  }
89
89
  async removeTrustedContact(params) {
90
- const path = `/admin/trusted-contacts/${params.id}`;
90
+ const path = `/trusted-contacts/${params.id}`;
91
91
  return this.client.request('DELETE', path);
92
92
  }
93
93
  async sendVerificationCode(request) {
94
- const path = '/admin/verification/send';
94
+ const path = '/verification/send';
95
95
  return this.client.request('POST', path, {
96
96
  body: request,
97
97
  });
98
98
  }
99
99
  async verifyCode(request) {
100
- const path = '/admin/verification/verify';
100
+ const path = '/verification/verify';
101
101
  return this.client.request('POST', path, {
102
102
  body: request,
103
103
  });
104
104
  }
105
105
  async scheduleVideoSession(request) {
106
- const path = '/admin/video/schedule';
106
+ const path = '/video/schedule';
107
107
  return this.client.request('POST', path, {
108
108
  body: request,
109
109
  });
110
110
  }
111
111
  async startVideoSession(request) {
112
- const path = '/admin/video/start';
112
+ const path = '/video/start';
113
113
  return this.client.request('POST', path, {
114
114
  body: request,
115
115
  });
116
116
  }
117
117
  async completeVideoSession(request) {
118
- const path = '/admin/video/complete';
118
+ const path = '/video/complete';
119
119
  return this.client.request('POST', path, {
120
120
  body: request,
121
121
  });
122
122
  }
123
123
  async uploadDocument(request) {
124
- const path = '/admin/documents/upload';
124
+ const path = '/documents/upload';
125
125
  return this.client.request('POST', path, {
126
126
  body: request,
127
127
  });
128
128
  }
129
129
  async getDocumentVerification(params) {
130
- const path = `/admin/documents/${params.id}`;
130
+ const path = `/documents/${params.id}`;
131
131
  return this.client.request('GET', path);
132
132
  }
133
133
  async reviewDocument(params, request) {
134
- const path = `/admin/documents/${params.id}/review`;
134
+ const path = `/documents/${params.id}/review`;
135
135
  return this.client.request('POST', path, {
136
136
  body: request,
137
137
  });
138
138
  }
139
139
  async listRecoverySessions() {
140
- const path = '/admin/sessions';
140
+ const path = '/sessions';
141
141
  return this.client.request('GET', path);
142
142
  }
143
143
  async approveRecovery(params, request) {
144
- const path = `/admin/sessions/${params.id}/approve`;
144
+ const path = `/sessions/${params.id}/approve`;
145
145
  return this.client.request('POST', path, {
146
146
  body: request,
147
147
  });
148
148
  }
149
149
  async rejectRecovery(params, request) {
150
- const path = `/admin/sessions/${params.id}/reject`;
150
+ const path = `/sessions/${params.id}/reject`;
151
151
  return this.client.request('POST', path, {
152
152
  body: request,
153
153
  });
154
154
  }
155
155
  async getRecoveryStats() {
156
- const path = '/admin/stats';
156
+ const path = '/stats';
157
157
  return this.client.request('GET', path);
158
158
  }
159
159
  async getRecoveryConfig() {
160
- const path = '/admin/config';
160
+ const path = '/config';
161
161
  return this.client.request('GET', path);
162
162
  }
163
163
  async updateRecoveryConfig(request) {
164
- const path = '/admin/config';
164
+ const path = '/config';
165
165
  return this.client.request('PUT', path, {
166
166
  body: request,
167
167
  });
168
168
  }
169
169
  async healthCheck() {
170
- const path = '/admin/health';
170
+ const path = '/health';
171
171
  return this.client.request('GET', path);
172
172
  }
173
173
  }
@@ -11,135 +11,135 @@ class CmsPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async listEntries() {
14
- const path = '/cms/listentries';
14
+ const path = '/listentries';
15
15
  return this.client.request('GET', path);
16
16
  }
17
17
  async createEntry(request) {
18
- const path = '/cms/createentry';
18
+ const path = '/createentry';
19
19
  return this.client.request('POST', path, {
20
20
  body: request,
21
21
  });
22
22
  }
23
23
  async getEntry() {
24
- const path = '/cms/getentry';
24
+ const path = '/getentry';
25
25
  return this.client.request('GET', path);
26
26
  }
27
27
  async updateEntry(request) {
28
- const path = '/cms/updateentry';
28
+ const path = '/updateentry';
29
29
  return this.client.request('PUT', path, {
30
30
  body: request,
31
31
  });
32
32
  }
33
33
  async deleteEntry() {
34
- const path = '/cms/deleteentry';
34
+ const path = '/deleteentry';
35
35
  return this.client.request('DELETE', path);
36
36
  }
37
37
  async publishEntry(request) {
38
- const path = '/cms/publish';
38
+ const path = '/publish';
39
39
  return this.client.request('POST', path, {
40
40
  body: request,
41
41
  });
42
42
  }
43
43
  async unpublishEntry() {
44
- const path = '/cms/unpublish';
44
+ const path = '/unpublish';
45
45
  return this.client.request('POST', path);
46
46
  }
47
47
  async archiveEntry() {
48
- const path = '/cms/archive';
48
+ const path = '/archive';
49
49
  return this.client.request('POST', path);
50
50
  }
51
51
  async queryEntries() {
52
- const path = '/cms/query';
52
+ const path = '/query';
53
53
  return this.client.request('POST', path);
54
54
  }
55
55
  async bulkPublish() {
56
- const path = '/cms/publish';
56
+ const path = '/publish';
57
57
  return this.client.request('POST', path);
58
58
  }
59
59
  async bulkUnpublish() {
60
- const path = '/cms/unpublish';
60
+ const path = '/unpublish';
61
61
  return this.client.request('POST', path);
62
62
  }
63
63
  async bulkDelete() {
64
- const path = '/cms/delete';
64
+ const path = '/delete';
65
65
  return this.client.request('POST', path);
66
66
  }
67
67
  async getEntryStats() {
68
- const path = '/cms/stats';
68
+ const path = '/stats';
69
69
  return this.client.request('GET', path);
70
70
  }
71
71
  async listContentTypes() {
72
- const path = '/cms/listcontenttypes';
72
+ const path = '/listcontenttypes';
73
73
  return this.client.request('GET', path);
74
74
  }
75
75
  async createContentType(request) {
76
- const path = '/cms/createcontenttype';
76
+ const path = '/createcontenttype';
77
77
  return this.client.request('POST', path, {
78
78
  body: request,
79
79
  });
80
80
  }
81
81
  async getContentType(params) {
82
- const path = `/cms/${params.slug}`;
82
+ const path = `/${params.slug}`;
83
83
  return this.client.request('GET', path);
84
84
  }
85
85
  async updateContentType(params, request) {
86
- const path = `/cms/${params.slug}`;
86
+ const path = `/${params.slug}`;
87
87
  return this.client.request('PUT', path, {
88
88
  body: request,
89
89
  });
90
90
  }
91
91
  async deleteContentType(params) {
92
- const path = `/cms/${params.slug}`;
92
+ const path = `/${params.slug}`;
93
93
  return this.client.request('DELETE', path);
94
94
  }
95
95
  async listFields() {
96
- const path = '/cms/listfields';
96
+ const path = '/listfields';
97
97
  return this.client.request('GET', path);
98
98
  }
99
99
  async addField(request) {
100
- const path = '/cms/addfield';
100
+ const path = '/addfield';
101
101
  return this.client.request('POST', path, {
102
102
  body: request,
103
103
  });
104
104
  }
105
105
  async getField(params) {
106
- const path = `/cms/${params.fieldSlug}`;
106
+ const path = `/${params.fieldSlug}`;
107
107
  return this.client.request('GET', path);
108
108
  }
109
109
  async updateField(params, request) {
110
- const path = `/cms/${params.fieldSlug}`;
110
+ const path = `/${params.fieldSlug}`;
111
111
  return this.client.request('PUT', path, {
112
112
  body: request,
113
113
  });
114
114
  }
115
115
  async deleteField(params) {
116
- const path = `/cms/${params.fieldSlug}`;
116
+ const path = `/${params.fieldSlug}`;
117
117
  return this.client.request('DELETE', path);
118
118
  }
119
119
  async reorderFields(request) {
120
- const path = '/cms/reorder';
120
+ const path = '/reorder';
121
121
  return this.client.request('POST', path, {
122
122
  body: request,
123
123
  });
124
124
  }
125
125
  async getFieldTypes() {
126
- const path = '/cms/field-types';
126
+ const path = '/field-types';
127
127
  return this.client.request('GET', path);
128
128
  }
129
129
  async listRevisions() {
130
- const path = '/cms/listrevisions';
130
+ const path = '/listrevisions';
131
131
  return this.client.request('GET', path);
132
132
  }
133
133
  async getRevision(params) {
134
- const path = `/cms/${params.version}`;
134
+ const path = `/${params.version}`;
135
135
  return this.client.request('GET', path);
136
136
  }
137
137
  async restoreRevision(params) {
138
- const path = `/cms/${params.version}/restore`;
138
+ const path = `/${params.version}/restore`;
139
139
  return this.client.request('POST', path);
140
140
  }
141
141
  async compareRevisions() {
142
- const path = '/cms/compare';
142
+ const path = '/compare';
143
143
  return this.client.request('GET', path);
144
144
  }
145
145
  }
@@ -11,53 +11,53 @@ class IdverificationPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async createVerificationSession(request) {
14
- const path = '/verification/sessions';
14
+ const path = '/sessions';
15
15
  return this.client.request('POST', path, {
16
16
  body: request,
17
17
  });
18
18
  }
19
19
  async getVerificationSession(params) {
20
- const path = `/verification/sessions/${params.id}`;
20
+ const path = `/sessions/${params.id}`;
21
21
  return this.client.request('GET', path);
22
22
  }
23
23
  async getVerification(params) {
24
- const path = `/verification/${params.id}`;
24
+ const path = `/${params.id}`;
25
25
  return this.client.request('GET', path);
26
26
  }
27
27
  async getUserVerifications() {
28
- const path = '/verification/me';
28
+ const path = '/me';
29
29
  return this.client.request('GET', path);
30
30
  }
31
31
  async getUserVerificationStatus() {
32
- const path = '/verification/me/status';
32
+ const path = '/me/status';
33
33
  return this.client.request('GET', path);
34
34
  }
35
35
  async requestReverification(request) {
36
- const path = '/verification/me/reverify';
36
+ const path = '/me/reverify';
37
37
  return this.client.request('POST', path, {
38
38
  body: request,
39
39
  });
40
40
  }
41
41
  async handleWebhook(params) {
42
- const path = `/verification/webhook/${params.provider}`;
42
+ const path = `/webhook/${params.provider}`;
43
43
  return this.client.request('POST', path);
44
44
  }
45
45
  async adminBlockUser(params, request) {
46
- const path = `/verification/users/${params.userId}/block`;
46
+ const path = `/users/${params.userId}/block`;
47
47
  return this.client.request('POST', path, {
48
48
  body: request,
49
49
  });
50
50
  }
51
51
  async adminUnblockUser(params) {
52
- const path = `/verification/users/${params.userId}/unblock`;
52
+ const path = `/users/${params.userId}/unblock`;
53
53
  return this.client.request('POST', path);
54
54
  }
55
55
  async adminGetUserVerificationStatus(params) {
56
- const path = `/verification/users/${params.userId}/status`;
56
+ const path = `/users/${params.userId}/status`;
57
57
  return this.client.request('GET', path);
58
58
  }
59
59
  async adminGetUserVerifications(params) {
60
- const path = `/verification/users/${params.userId}/verifications`;
60
+ const path = `/users/${params.userId}/verifications`;
61
61
  return this.client.request('GET', path);
62
62
  }
63
63
  }
@@ -11,27 +11,27 @@ class ImpersonationPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async startImpersonation() {
14
- const path = '/impersonation/start';
14
+ const path = '/start';
15
15
  return this.client.request('POST', path);
16
16
  }
17
17
  async endImpersonation() {
18
- const path = '/impersonation/end';
18
+ const path = '/end';
19
19
  return this.client.request('POST', path);
20
20
  }
21
21
  async getImpersonation(params) {
22
- const path = `/impersonation/${params.id}`;
22
+ const path = `/${params.id}`;
23
23
  return this.client.request('GET', path);
24
24
  }
25
25
  async listImpersonations() {
26
- const path = '/impersonation/';
26
+ const path = '/';
27
27
  return this.client.request('GET', path);
28
28
  }
29
29
  async listAuditEvents() {
30
- const path = '/impersonation/audit';
30
+ const path = '/audit';
31
31
  return this.client.request('GET', path);
32
32
  }
33
33
  async verifyImpersonation() {
34
- const path = '/impersonation/verify';
34
+ const path = '/verify';
35
35
  return this.client.request('POST', path);
36
36
  }
37
37
  }
@@ -11,29 +11,29 @@ class JwtPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async createJWTKey(request) {
14
- const path = '/jwt/createjwtkey';
14
+ const path = '/createjwtkey';
15
15
  return this.client.request('POST', path, {
16
16
  body: request,
17
17
  });
18
18
  }
19
19
  async listJWTKeys(request) {
20
- const path = '/jwt/listjwtkeys';
20
+ const path = '/listjwtkeys';
21
21
  return this.client.request('GET', path, {
22
22
  query: this.client.toQueryParams(request),
23
23
  });
24
24
  }
25
25
  async getJWKS() {
26
- const path = '/jwt/jwks';
26
+ const path = '/jwks';
27
27
  return this.client.request('GET', path);
28
28
  }
29
29
  async generateToken(request) {
30
- const path = '/jwt/generate';
30
+ const path = '/generate';
31
31
  return this.client.request('POST', path, {
32
32
  body: request,
33
33
  });
34
34
  }
35
35
  async verifyToken(request) {
36
- const path = '/jwt/verify';
36
+ const path = '/verify';
37
37
  return this.client.request('POST', path, {
38
38
  body: request,
39
39
  });
@@ -11,89 +11,89 @@ class MultiappPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async createApp() {
14
- const path = '/apps/createapp';
14
+ const path = '/createapp';
15
15
  return this.client.request('POST', path);
16
16
  }
17
17
  async getApp(params) {
18
- const path = `/apps/${params.appId}`;
18
+ const path = `/${params.appId}`;
19
19
  return this.client.request('GET', path);
20
20
  }
21
21
  async updateApp(params) {
22
- const path = `/apps/${params.appId}`;
22
+ const path = `/${params.appId}`;
23
23
  return this.client.request('PUT', path);
24
24
  }
25
25
  async deleteApp(params) {
26
- const path = `/apps/${params.appId}`;
26
+ const path = `/${params.appId}`;
27
27
  return this.client.request('DELETE', path);
28
28
  }
29
29
  async listApps() {
30
- const path = '/apps/listapps';
30
+ const path = '/listapps';
31
31
  return this.client.request('GET', path);
32
32
  }
33
33
  async removeMember(params) {
34
- const path = `/apps/${params.memberId}`;
34
+ const path = `/${params.memberId}`;
35
35
  return this.client.request('DELETE', path);
36
36
  }
37
37
  async listMembers() {
38
- const path = '/apps/listmembers';
38
+ const path = '/listmembers';
39
39
  return this.client.request('GET', path);
40
40
  }
41
41
  async inviteMember(request) {
42
- const path = '/apps/invite';
42
+ const path = '/invite';
43
43
  return this.client.request('POST', path, {
44
44
  body: request,
45
45
  });
46
46
  }
47
47
  async updateMember(params, request) {
48
- const path = `/apps/${params.memberId}`;
48
+ const path = `/${params.memberId}`;
49
49
  return this.client.request('PUT', path, {
50
50
  body: request,
51
51
  });
52
52
  }
53
53
  async getInvitation(params) {
54
- const path = `/apps/${params.token}`;
54
+ const path = `/${params.token}`;
55
55
  return this.client.request('GET', path);
56
56
  }
57
57
  async acceptInvitation(params) {
58
- const path = `/apps/${params.token}/accept`;
58
+ const path = `/${params.token}/accept`;
59
59
  return this.client.request('POST', path);
60
60
  }
61
61
  async declineInvitation(params) {
62
- const path = `/apps/${params.token}/decline`;
62
+ const path = `/${params.token}/decline`;
63
63
  return this.client.request('POST', path);
64
64
  }
65
65
  async createTeam(request) {
66
- const path = '/apps/createteam';
66
+ const path = '/createteam';
67
67
  return this.client.request('POST', path, {
68
68
  body: request,
69
69
  });
70
70
  }
71
71
  async getTeam(params) {
72
- const path = `/apps/${params.teamId}`;
72
+ const path = `/${params.teamId}`;
73
73
  return this.client.request('GET', path);
74
74
  }
75
75
  async updateTeam(params, request) {
76
- const path = `/apps/${params.teamId}`;
76
+ const path = `/${params.teamId}`;
77
77
  return this.client.request('PUT', path, {
78
78
  body: request,
79
79
  });
80
80
  }
81
81
  async deleteTeam(params) {
82
- const path = `/apps/${params.teamId}`;
82
+ const path = `/${params.teamId}`;
83
83
  return this.client.request('DELETE', path);
84
84
  }
85
85
  async listTeams() {
86
- const path = '/apps/listteams';
86
+ const path = '/listteams';
87
87
  return this.client.request('GET', path);
88
88
  }
89
89
  async addTeamMember(params, request) {
90
- const path = `/apps/${params.teamId}/members`;
90
+ const path = `/${params.teamId}/members`;
91
91
  return this.client.request('POST', path, {
92
92
  body: request,
93
93
  });
94
94
  }
95
95
  async removeTeamMember(params) {
96
- const path = `/apps/${params.teamId}/members/${params.memberId}`;
96
+ const path = `/${params.teamId}/members/${params.memberId}`;
97
97
  return this.client.request('DELETE', path);
98
98
  }
99
99
  }
@@ -11,45 +11,45 @@ class MultisessionPlugin {
11
11
  this.client = client;
12
12
  }
13
13
  async list(request) {
14
- const path = '/multi-session/list';
14
+ const path = '/list';
15
15
  return this.client.request('GET', path, {
16
16
  query: this.client.toQueryParams(request),
17
17
  });
18
18
  }
19
19
  async setActive(request) {
20
- const path = '/multi-session/set-active';
20
+ const path = '/set-active';
21
21
  return this.client.request('POST', path, {
22
22
  body: request,
23
23
  });
24
24
  }
25
25
  async delete(params) {
26
- const path = `/multi-session/delete/${params.id}`;
26
+ const path = `/delete/${params.id}`;
27
27
  return this.client.request('POST', path);
28
28
  }
29
29
  async getCurrent() {
30
- const path = '/multi-session/current';
30
+ const path = '/current';
31
31
  return this.client.request('GET', path);
32
32
  }
33
33
  async getByID(params) {
34
- const path = `/multi-session/${params.id}`;
34
+ const path = `/${params.id}`;
35
35
  return this.client.request('GET', path);
36
36
  }
37
37
  async revokeAll(request) {
38
- const path = '/multi-session/revoke-all';
38
+ const path = '/revoke-all';
39
39
  return this.client.request('POST', path, {
40
40
  body: request,
41
41
  });
42
42
  }
43
43
  async revokeOthers() {
44
- const path = '/multi-session/revoke-others';
44
+ const path = '/revoke-others';
45
45
  return this.client.request('POST', path);
46
46
  }
47
47
  async refresh() {
48
- const path = '/multi-session/refresh';
48
+ const path = '/refresh';
49
49
  return this.client.request('POST', path);
50
50
  }
51
51
  async getStats() {
52
- const path = '/multi-session/stats';
52
+ const path = '/stats';
53
53
  return this.client.request('GET', path);
54
54
  }
55
55
  }