@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/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-06-21 - 5.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- introduce DTO-based response contracts (contracts)
|
|
8
|
+
- Add exported DTO interfaces for activities, alerts, apps, billing, invitations, MFA, organizations, passport, and users.
|
|
9
|
+
- Update typed request response contracts to use DTO types instead of persisted data model types.
|
|
10
|
+
- Remove the internal authorization request contract and rename registration validation response data to accountData.
|
|
11
|
+
|
|
3
12
|
## 2026-06-21 - 4.0.0
|
|
4
13
|
|
|
5
14
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '
|
|
6
|
+
version: '5.0.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TActivityAction } from '../data/activity.js';
|
|
2
|
+
export interface IActivityEventDto {
|
|
3
|
+
id: string;
|
|
4
|
+
data: {
|
|
5
|
+
action: TActivityAction;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
metadata: {
|
|
8
|
+
description: string;
|
|
9
|
+
ip?: string;
|
|
10
|
+
targetType?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { TAlertCategory, TAlertNotificationStatus, TAlertSeverity, TAlertStatus } from '../data/alert.js';
|
|
2
|
+
import type { TAlertRuleRecipientMode, TAlertRuleScope } from '../data/alertrule.js';
|
|
3
|
+
export interface IAlertDto {
|
|
4
|
+
id: string;
|
|
5
|
+
data: {
|
|
6
|
+
organizationId?: string;
|
|
7
|
+
category: TAlertCategory;
|
|
8
|
+
eventType: string;
|
|
9
|
+
severity: TAlertSeverity;
|
|
10
|
+
title: string;
|
|
11
|
+
body: string;
|
|
12
|
+
status: TAlertStatus;
|
|
13
|
+
relatedEntityType?: string;
|
|
14
|
+
notification: {
|
|
15
|
+
status: TAlertNotificationStatus;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
deliveredAt?: number | null;
|
|
18
|
+
seenAt?: number | null;
|
|
19
|
+
};
|
|
20
|
+
createdAt: number;
|
|
21
|
+
seenAt?: number | null;
|
|
22
|
+
dismissedAt?: number | null;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface IAlertRuleDto {
|
|
26
|
+
id: string;
|
|
27
|
+
data: {
|
|
28
|
+
scope: TAlertRuleScope;
|
|
29
|
+
organizationId?: string;
|
|
30
|
+
eventType: string;
|
|
31
|
+
minimumSeverity: TAlertSeverity;
|
|
32
|
+
recipientMode: TAlertRuleRecipientMode;
|
|
33
|
+
recipientUserIds?: string[];
|
|
34
|
+
push: boolean;
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
createdAt: number;
|
|
37
|
+
updatedAt: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IAppRoleMapping } from '../data/role.js';
|
|
2
|
+
import type { TAppType } from '../data/app.js';
|
|
3
|
+
export interface IOAuthClientDto {
|
|
4
|
+
clientId: string;
|
|
5
|
+
redirectUris: string[];
|
|
6
|
+
allowedScopes: string[];
|
|
7
|
+
grantTypes: ('authorization_code' | 'client_credentials' | 'refresh_token')[];
|
|
8
|
+
}
|
|
9
|
+
export interface IGlobalAppDto {
|
|
10
|
+
id: string;
|
|
11
|
+
type: 'global';
|
|
12
|
+
data: {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
logoUrl: string;
|
|
16
|
+
appUrl: string;
|
|
17
|
+
oauthCredentials: IOAuthClientDto;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
category: string;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface IAppDto extends IGlobalAppDto {
|
|
24
|
+
}
|
|
25
|
+
export interface IAppConnectionDto {
|
|
26
|
+
id: string;
|
|
27
|
+
data: {
|
|
28
|
+
organizationId: string;
|
|
29
|
+
appId: string;
|
|
30
|
+
appType: TAppType;
|
|
31
|
+
status: 'active' | 'disconnected';
|
|
32
|
+
connectedAt: number;
|
|
33
|
+
grantedScopes: string[];
|
|
34
|
+
roleMappings?: IAppRoleMapping[];
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IBillableItem, IBillingPlan, TSupportedCurrency } from '../data/billingplan.js';
|
|
2
|
+
export interface IBillingEventDto {
|
|
3
|
+
timestamp: number;
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: TSupportedCurrency;
|
|
6
|
+
billedItems: IBillableItem[];
|
|
7
|
+
}
|
|
8
|
+
export interface IBillingPlanDto {
|
|
9
|
+
id: string;
|
|
10
|
+
data: {
|
|
11
|
+
type: IBillingPlan['data']['type'];
|
|
12
|
+
proEnabled: boolean;
|
|
13
|
+
organizationId: string;
|
|
14
|
+
seats?: number;
|
|
15
|
+
status?: IBillingPlan['data']['status'];
|
|
16
|
+
nextBilling?: IBillingPlan['data']['nextBilling'];
|
|
17
|
+
billingEvents?: IBillingEventDto[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface IPaddlePublicConfigDto {
|
|
21
|
+
paddleToken: string;
|
|
22
|
+
paddlePriceId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './activity.js';
|
|
2
|
+
export * from './alert.js';
|
|
3
|
+
export * from './app.js';
|
|
4
|
+
export * from './billing.js';
|
|
5
|
+
export * from './invitation.js';
|
|
6
|
+
export * from './mfa.js';
|
|
7
|
+
export * from './organization.js';
|
|
8
|
+
export * from './passport.js';
|
|
9
|
+
export * from './user.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './activity.js';
|
|
2
|
+
export * from './alert.js';
|
|
3
|
+
export * from './app.js';
|
|
4
|
+
export * from './billing.js';
|
|
5
|
+
export * from './invitation.js';
|
|
6
|
+
export * from './mfa.js';
|
|
7
|
+
export * from './organization.js';
|
|
8
|
+
export * from './passport.js';
|
|
9
|
+
export * from './user.js';
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kdG8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsV0FBVyxDQUFDIn0=
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IOrganizationInvitationRefDto {
|
|
2
|
+
organizationId: string;
|
|
3
|
+
invitedAt: number;
|
|
4
|
+
roles: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface IUserInvitationDto {
|
|
7
|
+
id: string;
|
|
8
|
+
data: {
|
|
9
|
+
email: string;
|
|
10
|
+
status: 'pending' | 'accepted' | 'expired' | 'cancelled';
|
|
11
|
+
createdAt: number;
|
|
12
|
+
expiresAt: number;
|
|
13
|
+
organizationRefs: IOrganizationInvitationRefDto[];
|
|
14
|
+
acceptedAt?: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface IInvitationLandingDto extends IUserInvitationDto {
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TMfaMethod } from '../data/mfa.js';
|
|
2
|
+
import type { TPasskeyCredentialStatus, TPasskeyDeviceType, TPasskeyTransport } from '../data/passkey.js';
|
|
3
|
+
export interface IPasskeyCredentialDto {
|
|
4
|
+
id: string;
|
|
5
|
+
data: {
|
|
6
|
+
label: string;
|
|
7
|
+
deviceType: TPasskeyDeviceType;
|
|
8
|
+
backedUp: boolean;
|
|
9
|
+
transports?: TPasskeyTransport[];
|
|
10
|
+
status: TPasskeyCredentialStatus;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
lastUsedAt?: number | null;
|
|
13
|
+
revokedAt?: number | null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface IMfaStatusDto {
|
|
17
|
+
totpEnabled: boolean;
|
|
18
|
+
backupCodesRemaining: number;
|
|
19
|
+
passkeys: IPasskeyCredentialDto[];
|
|
20
|
+
availableMethods: TMfaMethod[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IUserDto } from './user.js';
|
|
2
|
+
export interface IOrgRoleDefinitionDto {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IOrganizationDto {
|
|
10
|
+
id: string;
|
|
11
|
+
data: {
|
|
12
|
+
name: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
billingPlanId: string;
|
|
15
|
+
roleIds: string[];
|
|
16
|
+
roleDefinitions?: IOrgRoleDefinitionDto[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IRoleDto {
|
|
20
|
+
id: string;
|
|
21
|
+
data: {
|
|
22
|
+
userId: string;
|
|
23
|
+
organizationId: string;
|
|
24
|
+
roles: string[];
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface IOrgMemberDto {
|
|
28
|
+
user: IUserDto;
|
|
29
|
+
role: IRoleDto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { IPassportCapabilities, TPassportDevicePlatform, TPassportDeviceStatus, TPassportPushEnvironment, TPassportPushProvider } from '../data/passportdevice.js';
|
|
2
|
+
import type { IPassportLocationPolicy, TPassportChallengeDeliveryStatus, TPassportChallengeStatus, TPassportChallengeType } from '../data/passportchallenge.js';
|
|
3
|
+
import type { IAlertDto } from './alert.js';
|
|
4
|
+
export interface IPassportDeviceDto {
|
|
5
|
+
id: string;
|
|
6
|
+
data: {
|
|
7
|
+
label: string;
|
|
8
|
+
platform: TPassportDevicePlatform;
|
|
9
|
+
status: TPassportDeviceStatus;
|
|
10
|
+
capabilities: IPassportCapabilities;
|
|
11
|
+
pushRegistration?: {
|
|
12
|
+
provider: TPassportPushProvider;
|
|
13
|
+
topic: string;
|
|
14
|
+
environment: TPassportPushEnvironment;
|
|
15
|
+
registeredAt: number;
|
|
16
|
+
lastDeliveredAt?: number;
|
|
17
|
+
};
|
|
18
|
+
appVersion?: string;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
lastSeenAt?: number;
|
|
21
|
+
lastChallengeAt?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IPassportChallengeDto {
|
|
25
|
+
id: string;
|
|
26
|
+
data: {
|
|
27
|
+
type: TPassportChallengeType;
|
|
28
|
+
status: TPassportChallengeStatus;
|
|
29
|
+
challenge?: string;
|
|
30
|
+
metadata: {
|
|
31
|
+
originHost?: string;
|
|
32
|
+
audience?: string;
|
|
33
|
+
notificationTitle?: string;
|
|
34
|
+
deviceLabel?: string;
|
|
35
|
+
requireLocation: boolean;
|
|
36
|
+
requireNfc: boolean;
|
|
37
|
+
locationPolicy?: IPassportLocationPolicy;
|
|
38
|
+
requestedCapabilities?: Partial<IPassportCapabilities>;
|
|
39
|
+
};
|
|
40
|
+
notification?: {
|
|
41
|
+
status: TPassportChallengeDeliveryStatus;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
deliveredAt?: number | null;
|
|
44
|
+
seenAt?: number | null;
|
|
45
|
+
};
|
|
46
|
+
createdAt: number;
|
|
47
|
+
expiresAt: number;
|
|
48
|
+
completedAt?: number | null;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface IPassportChallengeSigningDto {
|
|
52
|
+
challenge: IPassportChallengeDto;
|
|
53
|
+
signingPayload: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IPassportDashboardDto {
|
|
56
|
+
profile: {
|
|
57
|
+
userId: string;
|
|
58
|
+
name: string;
|
|
59
|
+
handle: string;
|
|
60
|
+
organizations: Array<{
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
}>;
|
|
64
|
+
deviceCount: number;
|
|
65
|
+
recoverySummary: string;
|
|
66
|
+
};
|
|
67
|
+
devices: IPassportDeviceDto[];
|
|
68
|
+
challenges: IPassportChallengeSigningDto[];
|
|
69
|
+
alerts: IAlertDto[];
|
|
70
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export interface IUserDto {
|
|
11
|
+
id: string;
|
|
12
|
+
data: IUserDataDto;
|
|
13
|
+
}
|
|
14
|
+
export interface ICurrentUserDto extends IUserDto {
|
|
15
|
+
}
|
|
16
|
+
export interface IUserProfileDto {
|
|
17
|
+
id: string;
|
|
18
|
+
data: {
|
|
19
|
+
name: string;
|
|
20
|
+
username: string;
|
|
21
|
+
email: string;
|
|
22
|
+
mobileNumber?: string;
|
|
23
|
+
status?: IUserDataDto['status'];
|
|
24
|
+
};
|
|
25
|
+
}
|
package/dist_ts/index.d.ts
CHANGED
package/dist_ts/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// requests
|
|
2
2
|
import * as request from './request/index.js';
|
|
3
3
|
import * as data from './data/index.js';
|
|
4
|
+
import * as dto from './dto/index.js';
|
|
4
5
|
import * as tags from './tags/index.js';
|
|
5
|
-
export { request, data, tags };
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
export { request, data, dto, tags };
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxXQUFXO0FBQ1gsT0FBTyxLQUFLLE9BQU8sTUFBTSxvQkFBb0IsQ0FBQztBQUM5QyxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxHQUFHLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxLQUFLLElBQUksTUFBTSxpQkFBaUIsQ0FBQztBQUV4QyxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUFFLENBQUMifQ==
|
|
@@ -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
|
* Check if the current user is a global admin
|
|
5
5
|
*/
|
|
@@ -22,7 +22,7 @@ export interface IReq_GetGlobalAppStats extends plugins.typedRequestInterfaces.i
|
|
|
22
22
|
};
|
|
23
23
|
response: {
|
|
24
24
|
apps: Array<{
|
|
25
|
-
app:
|
|
25
|
+
app: dto.IGlobalAppDto;
|
|
26
26
|
connectionCount: number;
|
|
27
27
|
}>;
|
|
28
28
|
};
|
|
@@ -43,7 +43,7 @@ export interface IReq_CreateGlobalApp extends plugins.typedRequestInterfaces.imp
|
|
|
43
43
|
allowedScopes: string[];
|
|
44
44
|
};
|
|
45
45
|
response: {
|
|
46
|
-
app:
|
|
46
|
+
app: dto.IGlobalAppDto;
|
|
47
47
|
clientSecret: string;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -67,7 +67,7 @@ export interface IReq_UpdateGlobalApp extends plugins.typedRequestInterfaces.imp
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
response: {
|
|
70
|
-
app:
|
|
70
|
+
app: dto.IGlobalAppDto;
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
/**
|
package/dist_ts/request/admin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import * as
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRtaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2FkbWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxHQUFHLE1BQU0saUJBQWlCLENBQUMifQ==
|
|
@@ -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
|
export interface IReq_ListPassportAlerts extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ListPassportAlerts> {
|
|
5
6
|
method: 'listPassportAlerts';
|
|
@@ -7,7 +8,7 @@ export interface IReq_ListPassportAlerts extends plugins.typedRequestInterfaces.
|
|
|
7
8
|
includeDismissed?: boolean;
|
|
8
9
|
};
|
|
9
10
|
response: {
|
|
10
|
-
alerts:
|
|
11
|
+
alerts: dto.IAlertDto[];
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
14
|
export interface IReq_GetPassportAlertByHint extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetPassportAlertByHint> {
|
|
@@ -16,7 +17,7 @@ export interface IReq_GetPassportAlertByHint extends plugins.typedRequestInterfa
|
|
|
16
17
|
hintId: string;
|
|
17
18
|
};
|
|
18
19
|
response: {
|
|
19
|
-
alert?:
|
|
20
|
+
alert?: dto.IAlertDto;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
export interface IReq_MarkPassportAlertSeen extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_MarkPassportAlertSeen> {
|
|
@@ -52,7 +53,7 @@ export interface IReq_UpsertAlertRule extends plugins.typedRequestInterfaces.imp
|
|
|
52
53
|
enabled: boolean;
|
|
53
54
|
};
|
|
54
55
|
response: {
|
|
55
|
-
rule:
|
|
56
|
+
rule: dto.IAlertRuleDto;
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
export interface IReq_GetAlertRules extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetAlertRules> {
|
|
@@ -63,7 +64,7 @@ export interface IReq_GetAlertRules extends plugins.typedRequestInterfaces.imple
|
|
|
63
64
|
organizationId?: string;
|
|
64
65
|
};
|
|
65
66
|
response: {
|
|
66
|
-
rules:
|
|
67
|
+
rules: dto.IAlertRuleDto[];
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
export interface IReq_DeleteAlertRule extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DeleteAlertRule> {
|
package/dist_ts/request/alert.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
|
-
|
|
3
|
+
import * as dto from '../dto/index.js';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2FsZXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUM7QUFDekMsT0FBTyxLQUFLLEdBQUcsTUFBTSxpQkFBaUIsQ0FBQyJ9
|
package/dist_ts/request/app.d.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
|
export interface IReq_GetGlobalApps extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetGlobalApps> {
|
|
4
5
|
method: 'getGlobalApps';
|
|
@@ -6,7 +7,7 @@ export interface IReq_GetGlobalApps extends plugins.typedRequestInterfaces.imple
|
|
|
6
7
|
jwt: string;
|
|
7
8
|
};
|
|
8
9
|
response: {
|
|
9
|
-
apps:
|
|
10
|
+
apps: dto.IGlobalAppDto[];
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
export interface IReq_GetAppConnections extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetAppConnections> {
|
|
@@ -16,7 +17,7 @@ export interface IReq_GetAppConnections extends plugins.typedRequestInterfaces.i
|
|
|
16
17
|
organizationId: string;
|
|
17
18
|
};
|
|
18
19
|
response: {
|
|
19
|
-
connections:
|
|
20
|
+
connections: dto.IAppConnectionDto[];
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
export interface IReq_ToggleAppConnection extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ToggleAppConnection> {
|
|
@@ -29,7 +30,7 @@ export interface IReq_ToggleAppConnection extends plugins.typedRequestInterfaces
|
|
|
29
30
|
};
|
|
30
31
|
response: {
|
|
31
32
|
success: boolean;
|
|
32
|
-
connection?:
|
|
33
|
+
connection?: dto.IAppConnectionDto;
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export interface IReq_UpdateAppRoleMappings extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpdateAppRoleMappings> {
|
|
@@ -42,7 +43,7 @@ export interface IReq_UpdateAppRoleMappings extends plugins.typedRequestInterfac
|
|
|
42
43
|
};
|
|
43
44
|
response: {
|
|
44
45
|
success: boolean;
|
|
45
|
-
connection:
|
|
46
|
+
connection: dto.IAppConnectionDto;
|
|
46
47
|
message?: string;
|
|
47
48
|
};
|
|
48
49
|
}
|
package/dist_ts/request/app.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdC9hcHAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLElBQUksTUFBTSxrQkFBa0IsQ0FBQztBQUN6QyxPQUFPLEtBQUssR0FBRyxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
|
|
@@ -1,18 +1,5 @@
|
|
|
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
|
-
export interface IReq_InternalAuthorization extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_InternalAuthorization> {
|
|
5
|
-
method: '';
|
|
6
|
-
request: {
|
|
7
|
-
accountData: IUser;
|
|
8
|
-
jwt: string;
|
|
9
|
-
};
|
|
10
|
-
response: {
|
|
11
|
-
accountData: IUser;
|
|
12
|
-
jwt: string;
|
|
13
|
-
relevantRoles: IRole[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
3
|
export interface IReq_CompleteOidcAuthorization extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CompleteOidcAuthorization> {
|
|
17
4
|
method: 'completeOidcAuthorization';
|
|
18
5
|
request: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import {} from '../data/index.js';
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3QvYXV0aG9yaXphdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQTBCLE1BQU0sa0JBQWtCLENBQUM7QUFDMUQsT0FBTyxFQUFtQixNQUFNLGtCQUFrQixDQUFDIn0=
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3QvYXV0aG9yaXphdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQW1CLE1BQU0sa0JBQWtCLENBQUMifQ==
|
|
@@ -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
|
export interface IReq_UpdatePaymentMethod extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpdatePaymentMethod> {
|
|
4
4
|
method: 'updatePaymentMethod';
|
|
5
5
|
request: {
|
|
@@ -10,7 +10,7 @@ export interface IReq_UpdatePaymentMethod extends plugins.typedRequestInterfaces
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
response: {
|
|
13
|
-
billingPlan:
|
|
13
|
+
billingPlan: dto.IBillingPlanDto;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -24,7 +24,7 @@ export interface IReq_GetBillingPlan extends plugins.typedRequestInterfaces.impl
|
|
|
24
24
|
billingPlanId: string;
|
|
25
25
|
};
|
|
26
26
|
response: {
|
|
27
|
-
billingPlan:
|
|
27
|
+
billingPlan: dto.IBillingPlanDto;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -33,8 +33,5 @@ export interface IReq_GetBillingPlan extends plugins.typedRequestInterfaces.impl
|
|
|
33
33
|
export interface IReq_GetPaddleConfig extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetPaddleConfig> {
|
|
34
34
|
method: 'getPaddleConfig';
|
|
35
35
|
request: {};
|
|
36
|
-
response:
|
|
37
|
-
paddleToken: string;
|
|
38
|
-
paddlePriceId: string;
|
|
39
|
-
};
|
|
36
|
+
response: dto.IPaddlePublicConfigDto;
|
|
40
37
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
|
-
import * as
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
import * as dto from '../dto/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlsbGluZ3BsYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2JpbGxpbmdwbGFuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxHQUFHLE1BQU0saUJBQWlCLENBQUMifQ==
|
package/dist_ts/request/mfa.d.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
|
export interface IReq_GetMfaStatus extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetMfaStatus> {
|
|
4
5
|
method: 'getMfaStatus';
|
|
5
6
|
request: {
|
|
@@ -8,7 +9,7 @@ export interface IReq_GetMfaStatus extends plugins.typedRequestInterfaces.implem
|
|
|
8
9
|
response: {
|
|
9
10
|
totpEnabled: boolean;
|
|
10
11
|
backupCodesRemaining: number;
|
|
11
|
-
passkeys:
|
|
12
|
+
passkeys: dto.IPasskeyCredentialDto[];
|
|
12
13
|
availableMethods: data.TMfaMethod[];
|
|
13
14
|
};
|
|
14
15
|
}
|
|
@@ -87,7 +88,7 @@ export interface IReq_FinishPasskeyRegistration extends plugins.typedRequestInte
|
|
|
87
88
|
};
|
|
88
89
|
response: {
|
|
89
90
|
success: boolean;
|
|
90
|
-
passkey:
|
|
91
|
+
passkey: dto.IPasskeyCredentialDto;
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
94
|
export interface IReq_RevokePasskey extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_RevokePasskey> {
|
package/dist_ts/request/mfa.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as data from '../data/index.js';
|
|
3
|
-
|
|
3
|
+
import * as dto from '../dto/index.js';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWZhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdC9tZmEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxLQUFLLElBQUksTUFBTSxrQkFBa0IsQ0FBQztBQUN6QyxPQUFPLEtBQUssR0FBRyxNQUFNLGlCQUFpQixDQUFDIn0=
|