@idp.global/interfaces 1.0.1
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 +16 -0
- package/dist_ts/00_commitinfo_data.d.ts +8 -0
- package/dist_ts/00_commitinfo_data.js +9 -0
- package/dist_ts/data/abusewindow.d.ts +13 -0
- package/dist_ts/data/abusewindow.js +2 -0
- package/dist_ts/data/activity.d.ts +16 -0
- package/dist_ts/data/activity.js +2 -0
- package/dist_ts/data/alert.d.ts +31 -0
- package/dist_ts/data/alert.js +2 -0
- package/dist_ts/data/alertrule.d.ts +19 -0
- package/dist_ts/data/alertrule.js +2 -0
- package/dist_ts/data/app.d.ts +86 -0
- package/dist_ts/data/app.js +2 -0
- package/dist_ts/data/appconnection.d.ts +16 -0
- package/dist_ts/data/appconnection.js +2 -0
- package/dist_ts/data/billingplan.d.ts +43 -0
- package/dist_ts/data/billingplan.js +2 -0
- package/dist_ts/data/device.d.ts +3 -0
- package/dist_ts/data/device.js +2 -0
- package/dist_ts/data/emailactiontoken.d.ts +11 -0
- package/dist_ts/data/emailactiontoken.js +2 -0
- package/dist_ts/data/index.d.ts +21 -0
- package/dist_ts/data/index.js +22 -0
- package/dist_ts/data/jwt.d.ts +38 -0
- package/dist_ts/data/jwt.js +2 -0
- package/dist_ts/data/loginsession.d.ts +38 -0
- package/dist_ts/data/loginsession.js +2 -0
- package/dist_ts/data/oidc.d.ts +248 -0
- package/dist_ts/data/oidc.js +5 -0
- package/dist_ts/data/organization.d.ts +11 -0
- package/dist_ts/data/organization.js +4 -0
- package/dist_ts/data/paddlecheckoutdata.d.ts +316 -0
- package/dist_ts/data/paddlecheckoutdata.js +2 -0
- package/dist_ts/data/passportchallenge.d.ts +68 -0
- package/dist_ts/data/passportchallenge.js +2 -0
- package/dist_ts/data/passportdevice.d.ts +34 -0
- package/dist_ts/data/passportdevice.js +2 -0
- package/dist_ts/data/passportnonce.d.ts +9 -0
- package/dist_ts/data/passportnonce.js +2 -0
- package/dist_ts/data/property.d.ts +10 -0
- package/dist_ts/data/property.js +3 -0
- package/dist_ts/data/registrationsession.d.ts +25 -0
- package/dist_ts/data/registrationsession.js +2 -0
- package/dist_ts/data/role.d.ts +28 -0
- package/dist_ts/data/role.js +2 -0
- package/dist_ts/data/user.d.ts +32 -0
- package/dist_ts/data/user.js +3 -0
- package/dist_ts/data/userinvitation.d.ts +45 -0
- package/dist_ts/data/userinvitation.js +2 -0
- package/dist_ts/index.d.ts +4 -0
- package/dist_ts/index.js +6 -0
- package/dist_ts/plugins.d.ts +4 -0
- package/dist_ts/plugins.js +7 -0
- package/dist_ts/request/admin.d.ts +100 -0
- package/dist_ts/request/admin.js +3 -0
- package/dist_ts/request/alert.d.ts +78 -0
- package/dist_ts/request/alert.js +3 -0
- package/dist_ts/request/apitoken.d.ts +1 -0
- package/dist_ts/request/apitoken.js +2 -0
- package/dist_ts/request/app.d.ts +48 -0
- package/dist_ts/request/app.js +3 -0
- package/dist_ts/request/authorization.d.ts +57 -0
- package/dist_ts/request/authorization.js +4 -0
- package/dist_ts/request/billingplan.d.ts +40 -0
- package/dist_ts/request/billingplan.js +3 -0
- package/dist_ts/request/index.d.ts +14 -0
- package/dist_ts/request/index.js +15 -0
- package/dist_ts/request/jwt.d.ts +63 -0
- package/dist_ts/request/jwt.js +3 -0
- package/dist_ts/request/login.d.ts +126 -0
- package/dist_ts/request/login.js +3 -0
- package/dist_ts/request/organization.d.ts +96 -0
- package/dist_ts/request/organization.js +3 -0
- package/dist_ts/request/passport.d.ts +169 -0
- package/dist_ts/request/passport.js +3 -0
- package/dist_ts/request/plan.d.ts +12 -0
- package/dist_ts/request/plan.js +3 -0
- package/dist_ts/request/registration.d.ts +65 -0
- package/dist_ts/request/registration.js +3 -0
- package/dist_ts/request/user.d.ts +101 -0
- package/dist_ts/request/user.js +3 -0
- package/dist_ts/request/userinvitation.d.ts +193 -0
- package/dist_ts/request/userinvitation.js +3 -0
- package/dist_ts/tags/index.d.ts +7 -0
- package/dist_ts/tags/index.js +2 -0
- package/license +21 -0
- package/package.json +57 -0
- package/readme.md +101 -0
- package/ts/00_commitinfo_data.ts +8 -0
- package/ts/data/abusewindow.ts +13 -0
- package/ts/data/activity.ts +36 -0
- package/ts/data/alert.ts +35 -0
- package/ts/data/alertrule.ts +22 -0
- package/ts/data/app.ts +99 -0
- package/ts/data/appconnection.ts +18 -0
- package/ts/data/billingplan.ts +47 -0
- package/ts/data/device.ts +3 -0
- package/ts/data/emailactiontoken.ts +12 -0
- package/ts/data/index.ts +21 -0
- package/ts/data/jwt.ts +43 -0
- package/ts/data/loginsession.ts +38 -0
- package/ts/data/oidc.ts +281 -0
- package/ts/data/organization.ts +14 -0
- package/ts/data/paddlecheckoutdata.ts +316 -0
- package/ts/data/passportchallenge.ts +80 -0
- package/ts/data/passportdevice.ts +46 -0
- package/ts/data/passportnonce.ts +9 -0
- package/ts/data/property.ts +12 -0
- package/ts/data/registrationsession.ts +31 -0
- package/ts/data/role.ts +33 -0
- package/ts/data/user.ts +36 -0
- package/ts/data/userinvitation.ts +58 -0
- package/ts/index.ts +6 -0
- package/ts/plugins.ts +9 -0
- package/ts/readme.md +133 -0
- package/ts/request/admin.ts +130 -0
- package/ts/request/alert.ts +113 -0
- package/ts/request/apitoken.ts +1 -0
- package/ts/request/app.ts +71 -0
- package/ts/request/authorization.ts +72 -0
- package/ts/request/billingplan.ts +55 -0
- package/ts/request/index.ts +14 -0
- package/ts/request/jwt.ts +79 -0
- package/ts/request/login.ts +181 -0
- package/ts/request/organization.ts +131 -0
- package/ts/request/passport.ts +227 -0
- package/ts/request/plan.ts +17 -0
- package/ts/request/registration.ts +90 -0
- package/ts/request/user.ts +142 -0
- package/ts/request/userinvitation.ts +248 -0
- package/ts/tags/index.ts +12 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import {} from './role.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL3Byb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBYyxNQUFNLFdBQVcsQ0FBQyJ9
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type TRegistrationSessionStatus = 'announced' | 'emailValidated' | 'mobileVerified' | 'registered' | 'failed';
|
|
2
|
+
export interface IRegistrationSession {
|
|
3
|
+
id: string;
|
|
4
|
+
data: {
|
|
5
|
+
emailAddress: string;
|
|
6
|
+
hashedEmailToken: string;
|
|
7
|
+
smsCodeHash?: string | null;
|
|
8
|
+
smsvalidationCounter: number;
|
|
9
|
+
status: TRegistrationSessionStatus;
|
|
10
|
+
validUntil: number;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
collectedData: {
|
|
13
|
+
userData: {
|
|
14
|
+
username?: string | null;
|
|
15
|
+
connectedOrgs: string[];
|
|
16
|
+
email?: string | null;
|
|
17
|
+
name?: string | null;
|
|
18
|
+
status?: 'new' | 'active' | 'deleted' | 'suspended' | null;
|
|
19
|
+
mobileNumber?: string | null;
|
|
20
|
+
password?: string | null;
|
|
21
|
+
passwordHash?: string | null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Standard role types available in all organizations */
|
|
2
|
+
export type TStandardRole = 'owner' | 'admin' | 'editor' | 'guest' | 'viewer' | 'outlaw';
|
|
3
|
+
export interface IOrgRoleDefinition {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
createdAt: number;
|
|
8
|
+
updatedAt: number;
|
|
9
|
+
}
|
|
10
|
+
export interface IAppRoleMapping {
|
|
11
|
+
orgRoleKey: string;
|
|
12
|
+
appRoles: string[];
|
|
13
|
+
permissions: string[];
|
|
14
|
+
scopes: string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A role describes a user's permissions within an organization.
|
|
18
|
+
* Users can have multiple roles (e.g., ['owner', 'billing-admin']).
|
|
19
|
+
*/
|
|
20
|
+
export interface IRole {
|
|
21
|
+
id: string;
|
|
22
|
+
data: {
|
|
23
|
+
userId: string;
|
|
24
|
+
organizationId: string;
|
|
25
|
+
/** Array of roles - supports standard roles and custom role names */
|
|
26
|
+
roles: string[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvcm9sZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IUser {
|
|
2
|
+
id: string;
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
username: string;
|
|
6
|
+
email: string;
|
|
7
|
+
/**
|
|
8
|
+
* mobile number used for verification
|
|
9
|
+
*/
|
|
10
|
+
mobileNumber?: string;
|
|
11
|
+
/**
|
|
12
|
+
* only used during initial password setting
|
|
13
|
+
*/
|
|
14
|
+
password?: string;
|
|
15
|
+
/**
|
|
16
|
+
* used for validation of passwords
|
|
17
|
+
*/
|
|
18
|
+
passwordHash?: string;
|
|
19
|
+
status: 'new' | 'active' | 'deleted' | 'suspended';
|
|
20
|
+
/**
|
|
21
|
+
* a quick ref for which organizations might have roles for this user
|
|
22
|
+
* speeds up lookup
|
|
23
|
+
*/
|
|
24
|
+
connectedOrgs: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Platform-level admin flag
|
|
27
|
+
* Users with this flag can access the global admin panel
|
|
28
|
+
* to manage global apps, view platform stats, etc.
|
|
29
|
+
*/
|
|
30
|
+
isGlobalAdmin?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import {} from './role.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvdXNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQWMsTUFBTSxXQUFXLENBQUMifQ==
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A UserInvitation represents an invitation to join an organization.
|
|
3
|
+
* Key characteristics:
|
|
4
|
+
* - Unique by email (multiple orgs can share the same invitation)
|
|
5
|
+
* - Converts to real User on registration or folds into existing user
|
|
6
|
+
* - Auto-expires after 90 days
|
|
7
|
+
*/
|
|
8
|
+
export interface IUserInvitation {
|
|
9
|
+
id: string;
|
|
10
|
+
data: {
|
|
11
|
+
/** The invited email address - unique key for sharing across orgs */
|
|
12
|
+
email: string;
|
|
13
|
+
/** Secure token for invitation link validation */
|
|
14
|
+
token: string;
|
|
15
|
+
/** Current status of the invitation */
|
|
16
|
+
status: 'pending' | 'accepted' | 'expired' | 'cancelled';
|
|
17
|
+
/** When the invitation was first created */
|
|
18
|
+
createdAt: number;
|
|
19
|
+
/** When the invitation expires (createdAt + 90 days) */
|
|
20
|
+
expiresAt: number;
|
|
21
|
+
/**
|
|
22
|
+
* Organizations that have invited this email.
|
|
23
|
+
* Multiple orgs can link to the same invitation.
|
|
24
|
+
*/
|
|
25
|
+
organizationRefs: IOrganizationInvitationRef[];
|
|
26
|
+
/** When the invitation was accepted (user registered/folded) */
|
|
27
|
+
acceptedAt?: number;
|
|
28
|
+
/** The User ID after conversion (when accepted) */
|
|
29
|
+
convertedToUserId?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents one organization's invitation to the user.
|
|
34
|
+
* Stored as part of IUserInvitation.organizationRefs array.
|
|
35
|
+
*/
|
|
36
|
+
export interface IOrganizationInvitationRef {
|
|
37
|
+
/** The organization that sent this invitation */
|
|
38
|
+
organizationId: string;
|
|
39
|
+
/** The user who sent the invitation */
|
|
40
|
+
invitedByUserId: string;
|
|
41
|
+
/** When this org invited the user */
|
|
42
|
+
invitedAt: number;
|
|
43
|
+
/** Roles to assign when the invitation is accepted */
|
|
44
|
+
roles: string[];
|
|
45
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcmludml0YXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL3VzZXJpbnZpdGF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
|
package/dist_ts/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// requests
|
|
2
|
+
import * as request from './request/index.js';
|
|
3
|
+
import * as data from './data/index.js';
|
|
4
|
+
import * as tags from './tags/index.js';
|
|
5
|
+
export { request, data, tags };
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxXQUFXO0FBQ1gsT0FBTyxLQUFLLE9BQU8sTUFBTSxvQkFBb0IsQ0FBQztBQUM5QyxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxJQUFJLE1BQU0saUJBQWlCLENBQUM7QUFFeEMsT0FBTyxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLENBQUMifQ==
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @apiglobal scope
|
|
2
|
+
import * as typedRequestInterfaces from '@api.global/typedrequest-interfaces';
|
|
3
|
+
export { typedRequestInterfaces };
|
|
4
|
+
// @tsclass scope
|
|
5
|
+
import * as tsclass from '@tsclass/tsclass';
|
|
6
|
+
export { tsclass };
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3BsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25CLE9BQU8sS0FBSyxzQkFBc0IsTUFBTSxxQ0FBcUMsQ0FBQztBQUU5RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsQ0FBQztBQUVsQyxpQkFBaUI7QUFDakIsT0FBTyxLQUFLLE9BQU8sTUFBTSxrQkFBa0IsQ0FBQztBQUU1QyxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUMifQ==
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Check if the current user is a global admin
|
|
5
|
+
*/
|
|
6
|
+
export interface IReq_CheckGlobalAdmin extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CheckGlobalAdmin> {
|
|
7
|
+
method: 'checkGlobalAdmin';
|
|
8
|
+
request: {
|
|
9
|
+
jwt: string;
|
|
10
|
+
};
|
|
11
|
+
response: {
|
|
12
|
+
isGlobalAdmin: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get all global apps with statistics (admin only)
|
|
17
|
+
*/
|
|
18
|
+
export interface IReq_GetGlobalAppStats extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetGlobalAppStats> {
|
|
19
|
+
method: 'getGlobalAppStats';
|
|
20
|
+
request: {
|
|
21
|
+
jwt: string;
|
|
22
|
+
};
|
|
23
|
+
response: {
|
|
24
|
+
apps: Array<{
|
|
25
|
+
app: data.IGlobalApp;
|
|
26
|
+
connectionCount: number;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a new global app (admin only)
|
|
32
|
+
*/
|
|
33
|
+
export interface IReq_CreateGlobalApp extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CreateGlobalApp> {
|
|
34
|
+
method: 'createGlobalApp';
|
|
35
|
+
request: {
|
|
36
|
+
jwt: string;
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
logoUrl: string;
|
|
40
|
+
appUrl: string;
|
|
41
|
+
category: string;
|
|
42
|
+
redirectUris: string[];
|
|
43
|
+
allowedScopes: string[];
|
|
44
|
+
};
|
|
45
|
+
response: {
|
|
46
|
+
app: data.IGlobalApp;
|
|
47
|
+
clientSecret: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Update an existing global app (admin only)
|
|
52
|
+
*/
|
|
53
|
+
export interface IReq_UpdateGlobalApp extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpdateGlobalApp> {
|
|
54
|
+
method: 'updateGlobalApp';
|
|
55
|
+
request: {
|
|
56
|
+
jwt: string;
|
|
57
|
+
appId: string;
|
|
58
|
+
updates: {
|
|
59
|
+
name?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
logoUrl?: string;
|
|
62
|
+
appUrl?: string;
|
|
63
|
+
category?: string;
|
|
64
|
+
isActive?: boolean;
|
|
65
|
+
redirectUris?: string[];
|
|
66
|
+
allowedScopes?: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
response: {
|
|
70
|
+
app: data.IGlobalApp;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Delete a global app (admin only)
|
|
75
|
+
*/
|
|
76
|
+
export interface IReq_DeleteGlobalApp extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DeleteGlobalApp> {
|
|
77
|
+
method: 'deleteGlobalApp';
|
|
78
|
+
request: {
|
|
79
|
+
jwt: string;
|
|
80
|
+
appId: string;
|
|
81
|
+
};
|
|
82
|
+
response: {
|
|
83
|
+
success: boolean;
|
|
84
|
+
disconnectedOrganizations: number;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Regenerate OAuth credentials for a global app (admin only)
|
|
89
|
+
*/
|
|
90
|
+
export interface IReq_RegenerateAppCredentials extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_RegenerateAppCredentials> {
|
|
91
|
+
method: 'regenerateAppCredentials';
|
|
92
|
+
request: {
|
|
93
|
+
jwt: string;
|
|
94
|
+
appId: string;
|
|
95
|
+
};
|
|
96
|
+
response: {
|
|
97
|
+
clientId: string;
|
|
98
|
+
clientSecret: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRtaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2FkbWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUMifQ==
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
import type { IPassportDeviceSignedRequest } from './passport.js';
|
|
4
|
+
export interface IReq_ListPassportAlerts extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ListPassportAlerts> {
|
|
5
|
+
method: 'listPassportAlerts';
|
|
6
|
+
request: IPassportDeviceSignedRequest & {
|
|
7
|
+
includeDismissed?: boolean;
|
|
8
|
+
};
|
|
9
|
+
response: {
|
|
10
|
+
alerts: data.IAlert[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface IReq_GetPassportAlertByHint extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetPassportAlertByHint> {
|
|
14
|
+
method: 'getPassportAlertByHint';
|
|
15
|
+
request: IPassportDeviceSignedRequest & {
|
|
16
|
+
hintId: string;
|
|
17
|
+
};
|
|
18
|
+
response: {
|
|
19
|
+
alert?: data.IAlert;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface IReq_MarkPassportAlertSeen extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_MarkPassportAlertSeen> {
|
|
23
|
+
method: 'markPassportAlertSeen';
|
|
24
|
+
request: IPassportDeviceSignedRequest & {
|
|
25
|
+
hintId: string;
|
|
26
|
+
};
|
|
27
|
+
response: {
|
|
28
|
+
success: boolean;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface IReq_DismissPassportAlert extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DismissPassportAlert> {
|
|
32
|
+
method: 'dismissPassportAlert';
|
|
33
|
+
request: IPassportDeviceSignedRequest & {
|
|
34
|
+
hintId: string;
|
|
35
|
+
};
|
|
36
|
+
response: {
|
|
37
|
+
success: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface IReq_UpsertAlertRule extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpsertAlertRule> {
|
|
41
|
+
method: 'upsertAlertRule';
|
|
42
|
+
request: {
|
|
43
|
+
jwt: string;
|
|
44
|
+
ruleId?: string;
|
|
45
|
+
scope: data.TAlertRuleScope;
|
|
46
|
+
organizationId?: string;
|
|
47
|
+
eventType: string;
|
|
48
|
+
minimumSeverity: data.TAlertSeverity;
|
|
49
|
+
recipientMode: data.TAlertRuleRecipientMode;
|
|
50
|
+
recipientUserIds?: string[];
|
|
51
|
+
push: boolean;
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
};
|
|
54
|
+
response: {
|
|
55
|
+
rule: data.IAlertRule;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface IReq_GetAlertRules extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetAlertRules> {
|
|
59
|
+
method: 'getAlertRules';
|
|
60
|
+
request: {
|
|
61
|
+
jwt: string;
|
|
62
|
+
scope?: data.TAlertRuleScope;
|
|
63
|
+
organizationId?: string;
|
|
64
|
+
};
|
|
65
|
+
response: {
|
|
66
|
+
rules: data.IAlertRule[];
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface IReq_DeleteAlertRule extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DeleteAlertRule> {
|
|
70
|
+
method: 'deleteAlertRule';
|
|
71
|
+
request: {
|
|
72
|
+
jwt: string;
|
|
73
|
+
ruleId: string;
|
|
74
|
+
};
|
|
75
|
+
response: {
|
|
76
|
+
success: boolean;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2FsZXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUMifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as data from '../data/index.js';
|
|
2
|
+
import * as plugins from '../plugins.js';
|
|
3
|
+
export interface IReq_GetGlobalApps extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetGlobalApps> {
|
|
4
|
+
method: 'getGlobalApps';
|
|
5
|
+
request: {
|
|
6
|
+
jwt: string;
|
|
7
|
+
};
|
|
8
|
+
response: {
|
|
9
|
+
apps: data.IGlobalApp[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface IReq_GetAppConnections extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetAppConnections> {
|
|
13
|
+
method: 'getAppConnections';
|
|
14
|
+
request: {
|
|
15
|
+
jwt: string;
|
|
16
|
+
organizationId: string;
|
|
17
|
+
};
|
|
18
|
+
response: {
|
|
19
|
+
connections: data.IAppConnection[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface IReq_ToggleAppConnection extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ToggleAppConnection> {
|
|
23
|
+
method: 'toggleAppConnection';
|
|
24
|
+
request: {
|
|
25
|
+
jwt: string;
|
|
26
|
+
organizationId: string;
|
|
27
|
+
appId: string;
|
|
28
|
+
action: 'connect' | 'disconnect';
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
success: boolean;
|
|
32
|
+
connection?: data.IAppConnection;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface IReq_UpdateAppRoleMappings extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpdateAppRoleMappings> {
|
|
36
|
+
method: 'updateAppRoleMappings';
|
|
37
|
+
request: {
|
|
38
|
+
jwt: string;
|
|
39
|
+
organizationId: string;
|
|
40
|
+
appId: string;
|
|
41
|
+
roleMappings: data.IAppRoleMapping[];
|
|
42
|
+
};
|
|
43
|
+
response: {
|
|
44
|
+
success: boolean;
|
|
45
|
+
connection: data.IAppConnection;
|
|
46
|
+
message?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as data from '../data/index.js';
|
|
2
|
+
import * as plugins from '../plugins.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcmVxdWVzdC9hcHAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLElBQUksTUFBTSxrQkFBa0IsQ0FBQztBQUN6QyxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import { type IUser, type IRole } from '../data/index.js';
|
|
3
|
+
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
|
+
export interface IReq_CompleteOidcAuthorization extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CompleteOidcAuthorization> {
|
|
17
|
+
method: 'completeOidcAuthorization';
|
|
18
|
+
request: {
|
|
19
|
+
jwt: string;
|
|
20
|
+
clientId: string;
|
|
21
|
+
redirectUri: string;
|
|
22
|
+
scope: string;
|
|
23
|
+
state: string;
|
|
24
|
+
prompt?: 'none' | 'login' | 'consent';
|
|
25
|
+
codeChallenge?: string;
|
|
26
|
+
codeChallengeMethod?: 'S256';
|
|
27
|
+
nonce?: string;
|
|
28
|
+
consentApproved?: boolean;
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
code: string;
|
|
32
|
+
redirectUrl: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface IReq_PrepareOidcAuthorization extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PrepareOidcAuthorization> {
|
|
36
|
+
method: 'prepareOidcAuthorization';
|
|
37
|
+
request: {
|
|
38
|
+
jwt: string;
|
|
39
|
+
clientId: string;
|
|
40
|
+
redirectUri: string;
|
|
41
|
+
scope: string;
|
|
42
|
+
state: string;
|
|
43
|
+
prompt?: 'none' | 'login' | 'consent';
|
|
44
|
+
codeChallenge?: string;
|
|
45
|
+
codeChallengeMethod?: 'S256';
|
|
46
|
+
nonce?: string;
|
|
47
|
+
};
|
|
48
|
+
response: {
|
|
49
|
+
status: 'ready' | 'consent_required';
|
|
50
|
+
clientId: string;
|
|
51
|
+
appName: string;
|
|
52
|
+
appUrl: string;
|
|
53
|
+
logoUrl?: string;
|
|
54
|
+
requestedScopes: TOidcScope[];
|
|
55
|
+
grantedScopes: TOidcScope[];
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import {} from '../data/index.js';
|
|
3
|
+
import {} from '../data/index.js';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3QvYXV0aG9yaXphdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQTBCLE1BQU0sa0JBQWtCLENBQUM7QUFDMUQsT0FBTyxFQUFtQixNQUFNLGtCQUFrQixDQUFDIn0=
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
export interface IReq_UpdatePaymentMethod extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_UpdatePaymentMethod> {
|
|
4
|
+
method: 'updatePaymentMethod';
|
|
5
|
+
request: {
|
|
6
|
+
jwtString: string;
|
|
7
|
+
orgId: string;
|
|
8
|
+
paddle?: {
|
|
9
|
+
checkoutId: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
response: {
|
|
13
|
+
billingPlan: plugins.tsclass.typeFest.PartialDeep<data.IBillingPlan>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* allows getting the billing plan for a user
|
|
18
|
+
*/
|
|
19
|
+
export interface IReq_GetBillingPlan extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetBillingPlan> {
|
|
20
|
+
method: 'getBillingPlan';
|
|
21
|
+
request: {
|
|
22
|
+
jwtString: string;
|
|
23
|
+
orgId: string;
|
|
24
|
+
billingPlanId: string;
|
|
25
|
+
};
|
|
26
|
+
response: {
|
|
27
|
+
billingPlan: data.IBillingPlan;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns Paddle configuration from environment variables
|
|
32
|
+
*/
|
|
33
|
+
export interface IReq_GetPaddleConfig extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetPaddleConfig> {
|
|
34
|
+
method: 'getPaddleConfig';
|
|
35
|
+
request: {};
|
|
36
|
+
response: {
|
|
37
|
+
paddleToken: string;
|
|
38
|
+
paddlePriceId: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import * as data from '../data/index.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlsbGluZ3BsYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2JpbGxpbmdwbGFuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxJQUFJLE1BQU0sa0JBQWtCLENBQUMifQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './admin.js';
|
|
2
|
+
export * from './apitoken.js';
|
|
3
|
+
export * from './alert.js';
|
|
4
|
+
export * from './app.js';
|
|
5
|
+
export * from './authorization.js';
|
|
6
|
+
export * from './billingplan.js';
|
|
7
|
+
export * from './jwt.js';
|
|
8
|
+
export * from './login.js';
|
|
9
|
+
export * from './organization.js';
|
|
10
|
+
export * from './passport.js';
|
|
11
|
+
export * from './plan.js';
|
|
12
|
+
export * from './registration.js';
|
|
13
|
+
export * from './user.js';
|
|
14
|
+
export * from './userinvitation.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './admin.js';
|
|
2
|
+
export * from './apitoken.js';
|
|
3
|
+
export * from './alert.js';
|
|
4
|
+
export * from './app.js';
|
|
5
|
+
export * from './authorization.js';
|
|
6
|
+
export * from './billingplan.js';
|
|
7
|
+
export * from './jwt.js';
|
|
8
|
+
export * from './login.js';
|
|
9
|
+
export * from './organization.js';
|
|
10
|
+
export * from './passport.js';
|
|
11
|
+
export * from './plan.js';
|
|
12
|
+
export * from './registration.js';
|
|
13
|
+
export * from './user.js';
|
|
14
|
+
export * from './userinvitation.js';
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxxQkFBcUIsQ0FBQyJ9
|