@idp.global/interfaces 4.0.0 → 5.0.0
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/changelog.md +9 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/dto/activity.d.ts +13 -0
- package/dist_ts/dto/activity.js +2 -0
- package/dist_ts/dto/alert.d.ts +39 -0
- package/dist_ts/dto/alert.js +2 -0
- package/dist_ts/dto/app.d.ts +36 -0
- package/dist_ts/dto/app.js +2 -0
- package/dist_ts/dto/billing.d.ts +23 -0
- package/dist_ts/dto/billing.js +2 -0
- package/dist_ts/dto/index.d.ts +9 -0
- package/dist_ts/dto/index.js +10 -0
- package/dist_ts/dto/invitation.d.ts +18 -0
- package/dist_ts/dto/invitation.js +2 -0
- package/dist_ts/dto/mfa.d.ts +21 -0
- package/dist_ts/dto/mfa.js +2 -0
- package/dist_ts/dto/organization.d.ts +30 -0
- package/dist_ts/dto/organization.js +2 -0
- package/dist_ts/dto/passport.d.ts +70 -0
- package/dist_ts/dto/passport.js +2 -0
- package/dist_ts/dto/user.d.ts +25 -0
- package/dist_ts/dto/user.js +2 -0
- package/dist_ts/index.d.ts +2 -1
- package/dist_ts/index.js +3 -2
- package/dist_ts/request/admin.d.ts +4 -4
- package/dist_ts/request/admin.js +2 -2
- package/dist_ts/request/alert.d.ts +5 -4
- package/dist_ts/request/alert.js +2 -1
- package/dist_ts/request/app.d.ts +5 -4
- package/dist_ts/request/app.js +2 -1
- package/dist_ts/request/authorization.d.ts +0 -13
- package/dist_ts/request/authorization.js +1 -2
- package/dist_ts/request/billingplan.d.ts +4 -7
- package/dist_ts/request/billingplan.js +2 -2
- package/dist_ts/request/mfa.d.ts +3 -2
- package/dist_ts/request/mfa.js +2 -1
- package/dist_ts/request/organization.d.ts +8 -8
- package/dist_ts/request/organization.js +2 -1
- package/dist_ts/request/passport.d.ts +11 -26
- package/dist_ts/request/passport.js +2 -1
- package/dist_ts/request/plan.d.ts +2 -2
- package/dist_ts/request/plan.js +2 -2
- package/dist_ts/request/registration.d.ts +2 -1
- package/dist_ts/request/registration.js +2 -1
- package/dist_ts/request/user.d.ts +6 -6
- package/dist_ts/request/user.js +2 -1
- package/dist_ts/request/userinvitation.d.ts +8 -11
- package/dist_ts/request/userinvitation.js +2 -1
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/dto/activity.ts +14 -0
- package/ts/dto/alert.ts +46 -0
- package/ts/dto/app.ts +39 -0
- package/ts/dto/billing.ts +26 -0
- package/ts/dto/index.ts +9 -0
- package/ts/dto/invitation.ts +19 -0
- package/ts/dto/mfa.ts +27 -0
- package/ts/dto/organization.ts +34 -0
- package/ts/dto/passport.ts +82 -0
- package/ts/dto/user.ts +27 -0
- package/ts/index.ts +2 -1
- package/ts/request/admin.ts +4 -4
- package/ts/request/alert.ts +5 -4
- package/ts/request/app.ts +5 -4
- package/ts/request/authorization.ts +0 -18
- package/ts/request/billingplan.ts +4 -7
- package/ts/request/mfa.ts +3 -2
- package/ts/request/organization.ts +8 -7
- package/ts/request/passport.ts +11 -23
- package/ts/request/plan.ts +2 -2
- package/ts/request/registration.ts +2 -1
- package/ts/request/user.ts +10 -5
- package/ts/request/userinvitation.ts +8 -10
package/ts/dto/user.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IUserDataDto {
|
|
2
|
+
name: string;
|
|
3
|
+
username: string;
|
|
4
|
+
email: string;
|
|
5
|
+
mobileNumber?: string;
|
|
6
|
+
status: 'new' | 'active' | 'deleted' | 'suspended';
|
|
7
|
+
connectedOrgs: string[];
|
|
8
|
+
isGlobalAdmin?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IUserDto {
|
|
12
|
+
id: string;
|
|
13
|
+
data: IUserDataDto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ICurrentUserDto extends IUserDto {}
|
|
17
|
+
|
|
18
|
+
export interface IUserProfileDto {
|
|
19
|
+
id: string;
|
|
20
|
+
data: {
|
|
21
|
+
name: string;
|
|
22
|
+
username: string;
|
|
23
|
+
email: string;
|
|
24
|
+
mobileNumber?: string;
|
|
25
|
+
status?: IUserDataDto['status'];
|
|
26
|
+
};
|
|
27
|
+
}
|
package/ts/index.ts
CHANGED
package/ts/request/admin.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Check if the current user is a global admin
|
|
@@ -32,7 +32,7 @@ export interface IReq_GetGlobalAppStats
|
|
|
32
32
|
};
|
|
33
33
|
response: {
|
|
34
34
|
apps: Array<{
|
|
35
|
-
app:
|
|
35
|
+
app: dto.IGlobalAppDto;
|
|
36
36
|
connectionCount: number;
|
|
37
37
|
}>;
|
|
38
38
|
};
|
|
@@ -58,7 +58,7 @@ export interface IReq_CreateGlobalApp
|
|
|
58
58
|
allowedScopes: string[];
|
|
59
59
|
};
|
|
60
60
|
response: {
|
|
61
|
-
app:
|
|
61
|
+
app: dto.IGlobalAppDto;
|
|
62
62
|
clientSecret: string; // Only shown once on creation
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -87,7 +87,7 @@ export interface IReq_UpdateGlobalApp
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
response: {
|
|
90
|
-
app:
|
|
90
|
+
app: dto.IGlobalAppDto;
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
package/ts/request/alert.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
|
+
import * as dto from '../dto/index.js';
|
|
3
4
|
import type { IPassportDeviceSignedRequest } from './passport.js';
|
|
4
5
|
|
|
5
6
|
export interface IReq_ListPassportAlerts
|
|
@@ -12,7 +13,7 @@ export interface IReq_ListPassportAlerts
|
|
|
12
13
|
includeDismissed?: boolean;
|
|
13
14
|
};
|
|
14
15
|
response: {
|
|
15
|
-
alerts:
|
|
16
|
+
alerts: dto.IAlertDto[];
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -26,7 +27,7 @@ export interface IReq_GetPassportAlertByHint
|
|
|
26
27
|
hintId: string;
|
|
27
28
|
};
|
|
28
29
|
response: {
|
|
29
|
-
alert?:
|
|
30
|
+
alert?: dto.IAlertDto;
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -77,7 +78,7 @@ export interface IReq_UpsertAlertRule
|
|
|
77
78
|
enabled: boolean;
|
|
78
79
|
};
|
|
79
80
|
response: {
|
|
80
|
-
rule:
|
|
81
|
+
rule: dto.IAlertRuleDto;
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -93,7 +94,7 @@ export interface IReq_GetAlertRules
|
|
|
93
94
|
organizationId?: string;
|
|
94
95
|
};
|
|
95
96
|
response: {
|
|
96
|
-
rules:
|
|
97
|
+
rules: dto.IAlertRuleDto[];
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
|
package/ts/request/app.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from '../data/index.js';
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
2
3
|
import * as plugins from '../plugins.js';
|
|
3
4
|
|
|
4
5
|
// Get all global apps
|
|
@@ -12,7 +13,7 @@ export interface IReq_GetGlobalApps
|
|
|
12
13
|
jwt: string;
|
|
13
14
|
};
|
|
14
15
|
response: {
|
|
15
|
-
apps:
|
|
16
|
+
apps: dto.IGlobalAppDto[];
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -28,7 +29,7 @@ export interface IReq_GetAppConnections
|
|
|
28
29
|
organizationId: string;
|
|
29
30
|
};
|
|
30
31
|
response: {
|
|
31
|
-
connections:
|
|
32
|
+
connections: dto.IAppConnectionDto[];
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -47,7 +48,7 @@ export interface IReq_ToggleAppConnection
|
|
|
47
48
|
};
|
|
48
49
|
response: {
|
|
49
50
|
success: boolean;
|
|
50
|
-
connection?:
|
|
51
|
+
connection?: dto.IAppConnectionDto;
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -65,7 +66,7 @@ export interface IReq_UpdateAppRoleMappings
|
|
|
65
66
|
};
|
|
66
67
|
response: {
|
|
67
68
|
success: boolean;
|
|
68
|
-
connection:
|
|
69
|
+
connection: dto.IAppConnectionDto;
|
|
69
70
|
message?: string;
|
|
70
71
|
};
|
|
71
72
|
}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import { type IUser, type IRole } from '../data/index.js';
|
|
3
2
|
import { type TOidcScope } from '../data/index.js';
|
|
4
3
|
|
|
5
|
-
export interface IReq_InternalAuthorization
|
|
6
|
-
extends plugins.typedRequestInterfaces.implementsTR<
|
|
7
|
-
plugins.typedRequestInterfaces.ITypedRequest,
|
|
8
|
-
IReq_InternalAuthorization
|
|
9
|
-
> {
|
|
10
|
-
method: '';
|
|
11
|
-
request: {
|
|
12
|
-
accountData: IUser;
|
|
13
|
-
jwt: string;
|
|
14
|
-
};
|
|
15
|
-
response: {
|
|
16
|
-
accountData: IUser;
|
|
17
|
-
jwt: string;
|
|
18
|
-
relevantRoles: IRole[];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
4
|
export interface IReq_CompleteOidcAuthorization
|
|
23
5
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
24
6
|
plugins.typedRequestInterfaces.ITypedRequest,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
3
3
|
|
|
4
4
|
export interface IReq_UpdatePaymentMethod
|
|
5
5
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
@@ -15,7 +15,7 @@ export interface IReq_UpdatePaymentMethod
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
response: {
|
|
18
|
-
billingPlan:
|
|
18
|
+
billingPlan: dto.IBillingPlanDto;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ export interface IReq_GetBillingPlan
|
|
|
34
34
|
billingPlanId: string;
|
|
35
35
|
};
|
|
36
36
|
response: {
|
|
37
|
-
billingPlan:
|
|
37
|
+
billingPlan: dto.IBillingPlanDto;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -48,8 +48,5 @@ export interface IReq_GetPaddleConfig
|
|
|
48
48
|
> {
|
|
49
49
|
method: 'getPaddleConfig';
|
|
50
50
|
request: {};
|
|
51
|
-
response:
|
|
52
|
-
paddleToken: string;
|
|
53
|
-
paddlePriceId: string;
|
|
54
|
-
};
|
|
51
|
+
response: dto.IPaddlePublicConfigDto;
|
|
55
52
|
}
|
package/ts/request/mfa.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
|
+
import * as dto from '../dto/index.js';
|
|
3
4
|
|
|
4
5
|
export interface IReq_GetMfaStatus
|
|
5
6
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
@@ -13,7 +14,7 @@ export interface IReq_GetMfaStatus
|
|
|
13
14
|
response: {
|
|
14
15
|
totpEnabled: boolean;
|
|
15
16
|
backupCodesRemaining: number;
|
|
16
|
-
passkeys:
|
|
17
|
+
passkeys: dto.IPasskeyCredentialDto[];
|
|
17
18
|
availableMethods: data.TMfaMethod[];
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -127,7 +128,7 @@ export interface IReq_FinishPasskeyRegistration
|
|
|
127
128
|
};
|
|
128
129
|
response: {
|
|
129
130
|
success: boolean;
|
|
130
|
-
passkey:
|
|
131
|
+
passkey: dto.IPasskeyCredentialDto;
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from '../data/index.js';
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
2
3
|
import * as plugins from '../plugins.js';
|
|
3
4
|
|
|
4
5
|
export interface IReq_GetOrganizationById
|
|
@@ -12,7 +13,7 @@ export interface IReq_GetOrganizationById
|
|
|
12
13
|
id: string;
|
|
13
14
|
};
|
|
14
15
|
response: {
|
|
15
|
-
organization:
|
|
16
|
+
organization: dto.IOrganizationDto;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -31,8 +32,8 @@ export interface IReq_CreateOrganization
|
|
|
31
32
|
};
|
|
32
33
|
response: {
|
|
33
34
|
nameAvailable: boolean;
|
|
34
|
-
resultingOrganization?:
|
|
35
|
-
role?:
|
|
35
|
+
resultingOrganization?: dto.IOrganizationDto;
|
|
36
|
+
role?: dto.IRoleDto;
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -51,7 +52,7 @@ export interface IReq_UpdateOrganization
|
|
|
51
52
|
};
|
|
52
53
|
response: {
|
|
53
54
|
success: boolean;
|
|
54
|
-
organization:
|
|
55
|
+
organization: dto.IOrganizationDto;
|
|
55
56
|
message?: string;
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -85,7 +86,7 @@ export interface IReq_GetOrgRoleDefinitions
|
|
|
85
86
|
organizationId: string;
|
|
86
87
|
};
|
|
87
88
|
response: {
|
|
88
|
-
roleDefinitions:
|
|
89
|
+
roleDefinitions: dto.IOrgRoleDefinitionDto[];
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -106,7 +107,7 @@ export interface IReq_UpsertOrgRoleDefinition
|
|
|
106
107
|
};
|
|
107
108
|
response: {
|
|
108
109
|
success: boolean;
|
|
109
|
-
roleDefinitions:
|
|
110
|
+
roleDefinitions: dto.IOrgRoleDefinitionDto[];
|
|
110
111
|
message?: string;
|
|
111
112
|
};
|
|
112
113
|
}
|
|
@@ -125,7 +126,7 @@ export interface IReq_DeleteOrgRoleDefinition
|
|
|
125
126
|
};
|
|
126
127
|
response: {
|
|
127
128
|
success: boolean;
|
|
128
|
-
roleDefinitions:
|
|
129
|
+
roleDefinitions: dto.IOrgRoleDefinitionDto[];
|
|
129
130
|
message?: string;
|
|
130
131
|
};
|
|
131
132
|
}
|
package/ts/request/passport.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
|
+
import * as dto from '../dto/index.js';
|
|
3
4
|
|
|
4
5
|
export interface IPassportDeviceSignedRequest {
|
|
5
6
|
deviceId: string;
|
|
@@ -48,7 +49,7 @@ export interface IReq_CompletePassportEnrollment
|
|
|
48
49
|
capabilities?: Partial<data.IPassportCapabilities>;
|
|
49
50
|
};
|
|
50
51
|
response: {
|
|
51
|
-
device:
|
|
52
|
+
device: dto.IPassportDeviceDto;
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -62,7 +63,7 @@ export interface IReq_GetPassportDevices
|
|
|
62
63
|
jwt: string;
|
|
63
64
|
};
|
|
64
65
|
response: {
|
|
65
|
-
devices:
|
|
66
|
+
devices: dto.IPassportDeviceDto[];
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -122,7 +123,7 @@ export interface IReq_ApprovePassportChallenge
|
|
|
122
123
|
};
|
|
123
124
|
response: {
|
|
124
125
|
success: boolean;
|
|
125
|
-
challenge:
|
|
126
|
+
challenge: dto.IPassportChallengeDto;
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -137,7 +138,7 @@ export interface IReq_RejectPassportChallenge
|
|
|
137
138
|
};
|
|
138
139
|
response: {
|
|
139
140
|
success: boolean;
|
|
140
|
-
challenge:
|
|
141
|
+
challenge: dto.IPassportChallengeDto;
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
144
|
|
|
@@ -166,7 +167,7 @@ export interface IReq_ListPendingPassportChallenges
|
|
|
166
167
|
method: 'listPendingPassportChallenges';
|
|
167
168
|
request: IPassportDeviceSignedRequest;
|
|
168
169
|
response: {
|
|
169
|
-
challenges:
|
|
170
|
+
challenges: dto.IPassportChallengeDto[];
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
173
|
|
|
@@ -180,10 +181,7 @@ export interface IReq_GetPassportChallengeByHint
|
|
|
180
181
|
hintId: string;
|
|
181
182
|
};
|
|
182
183
|
response: {
|
|
183
|
-
challenge?:
|
|
184
|
-
challenge: data.IPassportChallenge;
|
|
185
|
-
signingPayload: string;
|
|
186
|
-
};
|
|
184
|
+
challenge?: dto.IPassportChallengeSigningDto;
|
|
187
185
|
};
|
|
188
186
|
}
|
|
189
187
|
|
|
@@ -209,19 +207,9 @@ export interface IReq_GetPassportDashboard
|
|
|
209
207
|
method: 'getPassportDashboard';
|
|
210
208
|
request: IPassportDeviceSignedRequest;
|
|
211
209
|
response: {
|
|
212
|
-
profile:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
organizations: Array<{ id: string; name: string }>;
|
|
217
|
-
deviceCount: number;
|
|
218
|
-
recoverySummary: string;
|
|
219
|
-
};
|
|
220
|
-
devices: data.IPassportDevice[];
|
|
221
|
-
challenges: Array<{
|
|
222
|
-
challenge: data.IPassportChallenge;
|
|
223
|
-
signingPayload: string;
|
|
224
|
-
}>;
|
|
225
|
-
alerts: data.IAlert[];
|
|
210
|
+
profile: dto.IPassportDashboardDto['profile'];
|
|
211
|
+
devices: dto.IPassportDashboardDto['devices'];
|
|
212
|
+
challenges: dto.IPassportDashboardDto['challenges'];
|
|
213
|
+
alerts: dto.IPassportDashboardDto['alerts'];
|
|
226
214
|
};
|
|
227
215
|
}
|
package/ts/request/plan.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as dto from '../dto/index.js';
|
|
2
2
|
import * as plugins from '../plugins.js';
|
|
3
3
|
|
|
4
4
|
export interface IReq_GetPlansForOrganizationId
|
|
@@ -12,6 +12,6 @@ export interface IReq_GetPlansForOrganizationId
|
|
|
12
12
|
organizationId: string;
|
|
13
13
|
};
|
|
14
14
|
response: {
|
|
15
|
-
billingPlans:
|
|
15
|
+
billingPlans: dto.IBillingPlanDto[];
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
2
3
|
import { type IUser } from '../data/index.js';
|
|
3
4
|
|
|
4
5
|
export interface IReq_FirstRegistration
|
|
@@ -85,6 +86,6 @@ export interface IReq_FinishRegistration
|
|
|
85
86
|
};
|
|
86
87
|
response: {
|
|
87
88
|
status: 'ok' | 'not ok';
|
|
88
|
-
|
|
89
|
+
accountData?: dto.IUserProfileDto;
|
|
89
90
|
};
|
|
90
91
|
}
|
package/ts/request/user.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from '../data/index.js';
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
2
3
|
import * as plugins from '../plugins.js';
|
|
3
4
|
|
|
4
5
|
export interface IReq_GetUserData
|
|
@@ -70,18 +71,22 @@ export interface IReq_GetRolesAndOrganizationsForUserId
|
|
|
70
71
|
userId: string;
|
|
71
72
|
};
|
|
72
73
|
response: {
|
|
73
|
-
roles:
|
|
74
|
-
organizations:
|
|
74
|
+
roles: dto.IRoleDto[];
|
|
75
|
+
organizations: dto.IOrganizationDto[];
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
export interface IReq_WhoIs
|
|
79
|
+
export interface IReq_WhoIs
|
|
80
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
81
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
82
|
+
IReq_WhoIs
|
|
83
|
+
> {
|
|
79
84
|
method: 'whoIs';
|
|
80
85
|
request: {
|
|
81
86
|
jwt: string;
|
|
82
87
|
};
|
|
83
88
|
response: {
|
|
84
|
-
user:
|
|
89
|
+
user: dto.ICurrentUserDto;
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
|
|
@@ -136,7 +141,7 @@ export interface IReq_GetUserActivity
|
|
|
136
141
|
offset?: number;
|
|
137
142
|
};
|
|
138
143
|
response: {
|
|
139
|
-
activities:
|
|
144
|
+
activities: dto.IActivityEventDto[];
|
|
140
145
|
total: number;
|
|
141
146
|
};
|
|
142
147
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from '../data/index.js';
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
2
3
|
import * as plugins from '../plugins.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -18,7 +19,7 @@ export interface IReq_CreateInvitation
|
|
|
18
19
|
};
|
|
19
20
|
response: {
|
|
20
21
|
success: boolean;
|
|
21
|
-
invitation?:
|
|
22
|
+
invitation?: dto.IUserInvitationDto;
|
|
22
23
|
message?: string;
|
|
23
24
|
/** True if a new invitation was created, false if email was added to existing */
|
|
24
25
|
isNew: boolean;
|
|
@@ -39,7 +40,7 @@ export interface IReq_GetOrgInvitations
|
|
|
39
40
|
organizationId: string;
|
|
40
41
|
};
|
|
41
42
|
response: {
|
|
42
|
-
invitations:
|
|
43
|
+
invitations: dto.IUserInvitationDto[];
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -57,10 +58,7 @@ export interface IReq_GetOrgMembers
|
|
|
57
58
|
organizationId: string;
|
|
58
59
|
};
|
|
59
60
|
response: {
|
|
60
|
-
members:
|
|
61
|
-
user: data.IUser;
|
|
62
|
-
role: data.IRole;
|
|
63
|
-
}>;
|
|
61
|
+
members: dto.IOrgMemberDto[];
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
64
|
|
|
@@ -141,7 +139,7 @@ export interface IReq_UpdateMemberRoles
|
|
|
141
139
|
};
|
|
142
140
|
response: {
|
|
143
141
|
success: boolean;
|
|
144
|
-
role?:
|
|
142
|
+
role?: dto.IRoleDto;
|
|
145
143
|
message?: string;
|
|
146
144
|
};
|
|
147
145
|
}
|
|
@@ -182,8 +180,8 @@ export interface IReq_AcceptInvitation
|
|
|
182
180
|
};
|
|
183
181
|
response: {
|
|
184
182
|
success: boolean;
|
|
185
|
-
organizations?:
|
|
186
|
-
roles?:
|
|
183
|
+
organizations?: dto.IOrganizationDto[];
|
|
184
|
+
roles?: dto.IRoleDto[];
|
|
187
185
|
message?: string;
|
|
188
186
|
};
|
|
189
187
|
}
|
|
@@ -201,7 +199,7 @@ export interface IReq_GetInvitationByToken
|
|
|
201
199
|
token: string;
|
|
202
200
|
};
|
|
203
201
|
response: {
|
|
204
|
-
invitation?:
|
|
202
|
+
invitation?: dto.IInvitationLandingDto;
|
|
205
203
|
organizations?: Array<{
|
|
206
204
|
id: string;
|
|
207
205
|
name: string;
|