@abyss-project/main 43.1.0 → 43.2.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/dist/api/oauth-application.api.d.ts +3 -2
- package/dist/api/oauth-application.api.js +7 -1
- package/dist/api/oauth-application.api.js.map +1 -1
- package/dist/api/oauth-authorization-request.api.d.ts +3 -0
- package/dist/api/oauth-authorization-request.api.js +5 -1
- package/dist/api/oauth-authorization-request.api.js.map +1 -1
- package/dist/api/oauth-grant.api.d.ts +5 -2
- package/dist/api/oauth-grant.api.js +13 -1
- package/dist/api/oauth-grant.api.js.map +1 -1
- package/dist/constants/oauth-app.constants.d.ts +5 -0
- package/dist/constants/oauth-app.constants.js +6 -1
- package/dist/constants/oauth-app.constants.js.map +1 -1
- package/dist/constants/oauth-scope-catalogue.d.ts +1 -0
- package/dist/constants/oauth-scope-catalogue.js +4 -2
- package/dist/constants/oauth-scope-catalogue.js.map +1 -1
- package/dist/constants/tests/oauth-scope-catalogue.spec.js +14 -2
- package/dist/constants/tests/oauth-scope-catalogue.spec.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/server/oauth-perimeter.util.d.ts +3 -1
- package/dist/server/oauth-perimeter.util.js +17 -8
- package/dist/server/oauth-perimeter.util.js.map +1 -1
- package/dist/server/tests/oauth-perimeter.util.spec.js +112 -0
- package/dist/server/tests/oauth-perimeter.util.spec.js.map +1 -1
- package/dist/types/enum/api-error.enum.d.ts +3 -0
- package/dist/types/enum/api-error.enum.js +3 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/oauth-app.enum.d.ts +2 -1
- package/dist/types/enum/oauth-app.enum.js +1 -0
- package/dist/types/enum/oauth-app.enum.js.map +1 -1
- package/dist/types/interface/api/index.d.ts +2 -0
- package/dist/types/interface/api/index.js +2 -0
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/oauth-application.request.d.ts +6 -0
- package/dist/types/interface/api/requests/oauth-authorization-request.request.d.ts +4 -0
- package/dist/types/interface/api/requests/oauth-grant.request.d.ts +11 -0
- package/dist/types/interface/api/requests/oauth-perimeter.request.d.ts +1 -0
- package/dist/types/interface/api/responses/oauth-application.response.d.ts +11 -0
- package/dist/types/interface/api/responses/oauth-authorization-request.response.d.ts +4 -0
- package/dist/types/interface/api/responses/oauth-grant.response.d.ts +22 -1
- package/dist/utils/abyss.utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export interface IListPerimeterCandidatesOAuthAuthorizationRequestParams {
|
|
|
13
13
|
}
|
|
14
14
|
export interface IListPerimeterCandidatesOAuthAuthorizationRequestQuery {
|
|
15
15
|
service: OAuthService;
|
|
16
|
+
unit: OAuthPerimeterCandidateUnit;
|
|
16
17
|
parent?: string;
|
|
17
18
|
search?: string;
|
|
18
19
|
cursor?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OAuthScopeName } from '../../../../constants/oauth-scope-catalogue';
|
|
1
2
|
import type { OAuthClientType } from '../../../enum/oauth-app.enum';
|
|
2
3
|
import type { IResponse } from '../type-message/response';
|
|
3
4
|
export interface IOAuthApplicationSummary {
|
|
@@ -11,6 +12,8 @@ export interface IOAuthApplicationSummary {
|
|
|
11
12
|
allowedOrigins: string[];
|
|
12
13
|
projectId: string;
|
|
13
14
|
connectedUserCount: number;
|
|
15
|
+
scopes: OAuthScopeName[];
|
|
16
|
+
connectedUserCountByScope: Partial<Record<OAuthScopeName, number>>;
|
|
14
17
|
createdAt: Date;
|
|
15
18
|
updatedAt: Date;
|
|
16
19
|
}
|
|
@@ -37,6 +40,14 @@ export interface IRegenerateSecretOAuthApplicationData {
|
|
|
37
40
|
clientSecret: string;
|
|
38
41
|
}
|
|
39
42
|
export type IRegenerateSecretOAuthApplicationResponse = IResponse<IRegenerateSecretOAuthApplicationData>;
|
|
43
|
+
export interface IOAuthApplicationName {
|
|
44
|
+
clientId: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IListNamesOAuthApplicationData {
|
|
48
|
+
applications: IOAuthApplicationName[];
|
|
49
|
+
}
|
|
50
|
+
export type IListNamesOAuthApplicationResponse = IResponse<IListNamesOAuthApplicationData>;
|
|
40
51
|
export interface IListAllowedOriginsOAuthApplicationAdminData {
|
|
41
52
|
origins: string[];
|
|
42
53
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { OAuthAuthorizationPrompt, OAuthAuthorizationRequestKind, OAuthClientType } from '../../../enum/oauth-app.enum';
|
|
2
2
|
import type { IMcpOAuthAuthorizationRequestView, McpOAuthAuthorizationRequestStatus } from '../../mcp/mcp-oauth';
|
|
3
|
+
import type { OAuthScopeName } from '../../../../constants/oauth-scope-catalogue';
|
|
4
|
+
import type { IOAuthGrantResource } from './oauth-grant.response';
|
|
3
5
|
import type { IResponse } from '../type-message/response';
|
|
4
6
|
export interface IOAuthAppAuthorizationRequestView {
|
|
5
7
|
kind: OAuthAuthorizationRequestKind.APP;
|
|
@@ -16,6 +18,8 @@ export interface IOAuthAppAuthorizationRequestView {
|
|
|
16
18
|
redirectWarning: boolean;
|
|
17
19
|
scopes: string[];
|
|
18
20
|
missingScopes: string[];
|
|
21
|
+
grantedScopes: OAuthScopeName[];
|
|
22
|
+
perimeter: IOAuthGrantResource[];
|
|
19
23
|
prompt: OAuthAuthorizationPrompt | null;
|
|
20
24
|
}
|
|
21
25
|
export interface IGetOAuthAuthorizationRequestData {
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import type { OAuthScopeName } from '../../../../constants/oauth-scope-catalogue';
|
|
2
|
+
import type { OAuthPerimeterUnit, OAuthService } from '../../../enum/oauth-scope.enum';
|
|
1
3
|
import type { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IOAuthGrantResource {
|
|
5
|
+
id: string;
|
|
6
|
+
service: OAuthService;
|
|
7
|
+
unit: OAuthPerimeterUnit;
|
|
8
|
+
resourceId: string | null;
|
|
9
|
+
environmentIds: string[] | null;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
2
12
|
export interface IOAuthGrantSummary {
|
|
3
13
|
id: string;
|
|
4
14
|
application: {
|
|
@@ -8,12 +18,23 @@ export interface IOAuthGrantSummary {
|
|
|
8
18
|
organizationName: string;
|
|
9
19
|
homepageUrl: string | null;
|
|
10
20
|
};
|
|
11
|
-
scopes:
|
|
21
|
+
scopes: OAuthScopeName[];
|
|
12
22
|
createdAt: Date;
|
|
13
23
|
lastUsedAt: Date | null;
|
|
14
24
|
}
|
|
25
|
+
export interface IOAuthGrantDetail extends IOAuthGrantSummary {
|
|
26
|
+
resources: IOAuthGrantResource[];
|
|
27
|
+
}
|
|
15
28
|
export interface IListOAuthGrantUserData {
|
|
16
29
|
grants: IOAuthGrantSummary[];
|
|
17
30
|
}
|
|
18
31
|
export type IListOAuthGrantUserResponse = IResponse<IListOAuthGrantUserData>;
|
|
32
|
+
export interface IGetOAuthGrantData {
|
|
33
|
+
grant: IOAuthGrantDetail;
|
|
34
|
+
removedResources: IOAuthGrantResource[];
|
|
35
|
+
unreachableServices: OAuthService[];
|
|
36
|
+
}
|
|
37
|
+
export type IGetOAuthGrantResponse = IResponse<IGetOAuthGrantData>;
|
|
19
38
|
export type IRevokeOAuthGrantResponse = void;
|
|
39
|
+
export type IRemoveScopeOAuthGrantResponse = void;
|
|
40
|
+
export type IRemoveResourceOAuthGrantResponse = void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ActivatableService } from '../types';
|
|
2
|
-
export declare const getServiceName: (service: ActivatableService) => "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "
|
|
2
|
+
export declare const getServiceName: (service: ActivatableService) => "Form" | "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "Training" | "Console" | "Workspace" | "Extract" | "Beam" | "Link" | "Flow" | "Reflex" | undefined;
|