@abyss-project/main 43.0.0 → 43.1.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/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/oauth-application.admin.api.d.ts +2 -0
- package/dist/api/oauth-application.admin.api.js +9 -0
- package/dist/api/oauth-application.admin.api.js.map +1 -0
- package/dist/api/oauth-application.api.d.ts +8 -0
- package/dist/api/oauth-application.api.js +30 -0
- package/dist/api/oauth-application.api.js.map +1 -0
- package/dist/api/oauth-authorization-request.api.d.ts +3 -2
- 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 +4 -0
- package/dist/api/oauth-grant.api.js +15 -0
- package/dist/api/oauth-grant.api.js.map +1 -0
- package/dist/billing-metric-label/billing-metric-label.labels.d.ts +2 -2
- package/dist/billing-metric-label/billing-metric-label.labels.js +2 -2
- package/dist/billing-metric-label/billing-metric-label.labels.js.map +1 -1
- package/dist/constants/billing-catalog.constants.js +9 -3
- package/dist/constants/billing-catalog.constants.js.map +1 -1
- package/dist/constants/catalog-plan-quotas.constants.js +8 -11
- package/dist/constants/catalog-plan-quotas.constants.js.map +1 -1
- package/dist/constants/enforcement-registry.constants.js +6 -6
- package/dist/constants/enforcement-registry.constants.js.map +1 -1
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/module-catalog.constants.d.ts +1 -0
- package/dist/constants/module-catalog.constants.js +10 -0
- package/dist/constants/module-catalog.constants.js.map +1 -1
- package/dist/constants/oauth-app.constants.d.ts +22 -0
- package/dist/constants/oauth-app.constants.js +42 -0
- package/dist/constants/oauth-app.constants.js.map +1 -0
- package/dist/constants/oauth-scope-catalogue.d.ts +215 -0
- package/dist/constants/oauth-scope-catalogue.js +3164 -0
- package/dist/constants/oauth-scope-catalogue.js.map +1 -0
- package/dist/constants/overage-base-rates.constants.js +0 -1
- package/dist/constants/overage-base-rates.constants.js.map +1 -1
- package/dist/constants/pack-catalog.constants.js +1 -0
- package/dist/constants/pack-catalog.constants.js.map +1 -1
- package/dist/constants/public-plans.constants.js +56 -104
- package/dist/constants/public-plans.constants.js.map +1 -1
- package/dist/constants/quota-metric-kind.constants.js +1 -2
- package/dist/constants/quota-metric-kind.constants.js.map +1 -1
- package/dist/constants/shared-allowance.constants.js +0 -1
- package/dist/constants/shared-allowance.constants.js.map +1 -1
- package/dist/constants/tests/billing-catalog.constants.spec.js +0 -47
- package/dist/constants/tests/billing-catalog.constants.spec.js.map +1 -1
- package/dist/constants/tests/module-catalog.constants.spec.js +1 -1
- package/dist/constants/tests/module-catalog.constants.spec.js.map +1 -1
- package/dist/constants/tests/oauth-app.constants.spec.d.ts +1 -0
- package/dist/constants/tests/oauth-app.constants.spec.js +89 -0
- package/dist/constants/tests/oauth-app.constants.spec.js.map +1 -0
- package/dist/constants/tests/oauth-scope-catalogue.spec.d.ts +1 -0
- package/dist/constants/tests/oauth-scope-catalogue.spec.js +198 -0
- package/dist/constants/tests/oauth-scope-catalogue.spec.js.map +1 -0
- package/dist/constants/tests/oauth-scope-positions.snapshot.d.ts +39 -0
- package/dist/constants/tests/oauth-scope-positions.snapshot.js +225 -0
- package/dist/constants/tests/oauth-scope-positions.snapshot.js.map +1 -0
- package/dist/constants/tests/pack-catalog.constants.spec.js +1 -1
- package/dist/constants/tests/pack-catalog.constants.spec.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/permissions/ability.d.ts +1 -1
- package/dist/permissions/ability.js +2 -0
- package/dist/permissions/ability.js.map +1 -1
- package/dist/permissions/tests/ability.spec.js +17 -0
- package/dist/permissions/tests/ability.spec.js.map +1 -1
- package/dist/server/api-cors.util.d.ts +8 -0
- package/dist/server/api-cors.util.js +83 -1
- package/dist/server/api-cors.util.js.map +1 -1
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.js +6 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/oauth-access-token.util.d.ts +30 -0
- package/dist/server/oauth-access-token.util.js +116 -0
- package/dist/server/oauth-access-token.util.js.map +1 -0
- package/dist/server/oauth-claim-format.error.d.ts +4 -0
- package/dist/server/oauth-claim-format.error.js +19 -0
- package/dist/server/oauth-claim-format.error.js.map +1 -0
- package/dist/server/oauth-perimeter-claim.util.d.ts +14 -0
- package/dist/server/oauth-perimeter-claim.util.js +109 -0
- package/dist/server/oauth-perimeter-claim.util.js.map +1 -0
- package/dist/server/oauth-perimeter.util.d.ts +31 -0
- package/dist/server/oauth-perimeter.util.js +97 -0
- package/dist/server/oauth-perimeter.util.js.map +1 -0
- package/dist/server/oauth-route-access.util.d.ts +56 -0
- package/dist/server/oauth-route-access.util.js +65 -0
- package/dist/server/oauth-route-access.util.js.map +1 -0
- package/dist/server/oauth-scope-bits.util.d.ts +9 -0
- package/dist/server/oauth-scope-bits.util.js +82 -0
- package/dist/server/oauth-scope-bits.util.js.map +1 -0
- package/dist/server/tests/api-cors-dynamic.util.spec.d.ts +1 -0
- package/dist/server/tests/api-cors-dynamic.util.spec.js +220 -0
- package/dist/server/tests/api-cors-dynamic.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-access-token.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-access-token.util.spec.js +166 -0
- package/dist/server/tests/oauth-access-token.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-perimeter-claim.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-perimeter-claim.util.spec.js +148 -0
- package/dist/server/tests/oauth-perimeter-claim.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-perimeter.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-perimeter.util.spec.js +215 -0
- package/dist/server/tests/oauth-perimeter.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-route-access.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-route-access.util.spec.js +115 -0
- package/dist/server/tests/oauth-route-access.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-scope-bits.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-scope-bits.util.spec.js +72 -0
- package/dist/server/tests/oauth-scope-bits.util.spec.js.map +1 -0
- package/dist/types/enum/api-error.enum.d.ts +1 -0
- package/dist/types/enum/api-error.enum.js +1 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +2 -0
- package/dist/types/enum/index.js +2 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/oauth-app.enum.d.ts +38 -0
- package/dist/types/enum/oauth-app.enum.js +47 -0
- package/dist/types/enum/oauth-app.enum.js.map +1 -0
- package/dist/types/enum/oauth-scope.enum.d.ts +74 -0
- package/dist/types/enum/oauth-scope.enum.js +86 -0
- package/dist/types/enum/oauth-scope.enum.js.map +1 -0
- package/dist/types/enum/organization-billing.enum.d.ts +1 -1
- package/dist/types/enum/organization-billing.enum.js +1 -1
- package/dist/types/enum/organization-billing.enum.js.map +1 -1
- package/dist/types/enum/project-access-permission.enum.d.ts +2 -1
- package/dist/types/enum/project-access-permission.enum.js +1 -0
- package/dist/types/enum/project-access-permission.enum.js.map +1 -1
- package/dist/types/interface/api/index.d.ts +5 -0
- package/dist/types/interface/api/index.js +5 -0
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/index.d.ts +3 -0
- package/dist/types/interface/api/requests/index.js +3 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/oauth-application.request.d.ts +34 -0
- package/dist/types/interface/api/requests/oauth-application.request.js +3 -0
- package/dist/types/interface/api/requests/oauth-application.request.js.map +1 -0
- package/dist/types/interface/api/requests/oauth-authorization-request.request.d.ts +3 -0
- package/dist/types/interface/api/requests/oauth-grant.request.d.ts +3 -0
- package/dist/types/interface/api/requests/oauth-grant.request.js +3 -0
- package/dist/types/interface/api/requests/oauth-grant.request.js.map +1 -0
- package/dist/types/interface/api/requests/oauth-perimeter.request.d.ts +30 -0
- package/dist/types/interface/api/requests/oauth-perimeter.request.js +5 -0
- package/dist/types/interface/api/requests/oauth-perimeter.request.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +4 -0
- package/dist/types/interface/api/responses/index.js +4 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/oauth-application.response.d.ts +43 -0
- package/dist/types/interface/api/responses/oauth-application.response.js +3 -0
- package/dist/types/interface/api/responses/oauth-application.response.js.map +1 -0
- package/dist/types/interface/api/responses/oauth-authorization-request.response.d.ts +24 -2
- package/dist/types/interface/api/responses/oauth-grant.response.d.ts +19 -0
- package/dist/types/interface/api/responses/oauth-grant.response.js +3 -0
- package/dist/types/interface/api/responses/oauth-grant.response.js.map +1 -0
- package/dist/types/interface/api/responses/oauth-perimeter.response.d.ts +23 -0
- package/dist/types/interface/api/responses/oauth-perimeter.response.js +3 -0
- package/dist/types/interface/api/responses/oauth-perimeter.response.js.map +1 -0
- package/dist/types/interface/api/responses/oauth-userinfo.response.d.ts +8 -0
- package/dist/types/interface/api/responses/oauth-userinfo.response.js +3 -0
- package/dist/types/interface/api/responses/oauth-userinfo.response.js.map +1 -0
- package/dist/types/interface/api/responses/organization-billing.response.d.ts +1 -0
- package/dist/types/interface/api/responses/user-billing.response.d.ts +1 -0
- package/dist/types/interface/mcp/mcp-oauth.d.ts +2 -0
- package/package.json +17 -10
|
@@ -55,6 +55,10 @@ export * from './session.response';
|
|
|
55
55
|
export * from './trusted-device.response';
|
|
56
56
|
export * from './mcp-connection.response';
|
|
57
57
|
export * from './oauth-authorization-request.response';
|
|
58
|
+
export * from './oauth-application.response';
|
|
59
|
+
export * from './oauth-grant.response';
|
|
60
|
+
export * from './oauth-perimeter.response';
|
|
61
|
+
export * from './oauth-userinfo.response';
|
|
58
62
|
export * from './activity.admin.response';
|
|
59
63
|
export * from './referred-traffic.admin.response';
|
|
60
64
|
export * from './short-link-protection.admin.response';
|
|
@@ -71,6 +71,10 @@ __exportStar(require("./session.response"), exports);
|
|
|
71
71
|
__exportStar(require("./trusted-device.response"), exports);
|
|
72
72
|
__exportStar(require("./mcp-connection.response"), exports);
|
|
73
73
|
__exportStar(require("./oauth-authorization-request.response"), exports);
|
|
74
|
+
__exportStar(require("./oauth-application.response"), exports);
|
|
75
|
+
__exportStar(require("./oauth-grant.response"), exports);
|
|
76
|
+
__exportStar(require("./oauth-perimeter.response"), exports);
|
|
77
|
+
__exportStar(require("./oauth-userinfo.response"), exports);
|
|
74
78
|
__exportStar(require("./activity.admin.response"), exports);
|
|
75
79
|
__exportStar(require("./referred-traffic.admin.response"), exports);
|
|
76
80
|
__exportStar(require("./short-link-protection.admin.response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,yEAAuD;AACvD,4DAA0C;AAC1C,oEAAkD;AAClD,yEAAuD;AACvD,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,yEAAuD;AACvD,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,4DAA0C;AAC1C,oEAAkD;AAClD,yEAAuD;AACvD,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { OAuthClientType } from '../../../enum/oauth-app.enum';
|
|
2
|
+
import type { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IOAuthApplicationSummary {
|
|
4
|
+
id: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
homepageUrl: string | null;
|
|
9
|
+
clientType: OAuthClientType;
|
|
10
|
+
redirectUris: string[];
|
|
11
|
+
allowedOrigins: string[];
|
|
12
|
+
projectId: string;
|
|
13
|
+
connectedUserCount: number;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface ICreateOAuthApplicationData {
|
|
18
|
+
application: IOAuthApplicationSummary;
|
|
19
|
+
clientSecret: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IListOAuthApplicationProjectData {
|
|
22
|
+
applications: IOAuthApplicationSummary[];
|
|
23
|
+
}
|
|
24
|
+
export type IListOAuthApplicationProjectResponse = IResponse<IListOAuthApplicationProjectData>;
|
|
25
|
+
export type ICreateOAuthApplicationProjectResponse = IResponse<ICreateOAuthApplicationData>;
|
|
26
|
+
export interface IGetOAuthApplicationData {
|
|
27
|
+
application: IOAuthApplicationSummary;
|
|
28
|
+
}
|
|
29
|
+
export type IGetOAuthApplicationResponse = IResponse<IGetOAuthApplicationData>;
|
|
30
|
+
export interface IUpdateOAuthApplicationData {
|
|
31
|
+
application: IOAuthApplicationSummary;
|
|
32
|
+
}
|
|
33
|
+
export type IUpdateOAuthApplicationResponse = IResponse<IUpdateOAuthApplicationData>;
|
|
34
|
+
export type IDeleteOAuthApplicationResponse = void;
|
|
35
|
+
export interface IRegenerateSecretOAuthApplicationData {
|
|
36
|
+
application: IOAuthApplicationSummary;
|
|
37
|
+
clientSecret: string;
|
|
38
|
+
}
|
|
39
|
+
export type IRegenerateSecretOAuthApplicationResponse = IResponse<IRegenerateSecretOAuthApplicationData>;
|
|
40
|
+
export interface IListAllowedOriginsOAuthApplicationAdminData {
|
|
41
|
+
origins: string[];
|
|
42
|
+
}
|
|
43
|
+
export type IListAllowedOriginsOAuthApplicationAdminResponse = IResponse<IListAllowedOriginsOAuthApplicationAdminData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-application.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/oauth-application.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OAuthAuthorizationPrompt, OAuthAuthorizationRequestKind, OAuthClientType } from '../../../enum/oauth-app.enum';
|
|
2
|
+
import type { IMcpOAuthAuthorizationRequestView, McpOAuthAuthorizationRequestStatus } from '../../mcp/mcp-oauth';
|
|
2
3
|
import type { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IOAuthAppAuthorizationRequestView {
|
|
5
|
+
kind: OAuthAuthorizationRequestKind.APP;
|
|
6
|
+
id: string;
|
|
7
|
+
status: McpOAuthAuthorizationRequestStatus;
|
|
8
|
+
application: {
|
|
9
|
+
name: string;
|
|
10
|
+
ownerName: string;
|
|
11
|
+
organizationName: string;
|
|
12
|
+
homepageUrl: string | null;
|
|
13
|
+
clientType: OAuthClientType;
|
|
14
|
+
};
|
|
15
|
+
redirectHost: string;
|
|
16
|
+
redirectWarning: boolean;
|
|
17
|
+
scopes: string[];
|
|
18
|
+
missingScopes: string[];
|
|
19
|
+
prompt: OAuthAuthorizationPrompt | null;
|
|
20
|
+
}
|
|
3
21
|
export interface IGetOAuthAuthorizationRequestData {
|
|
4
|
-
request: IMcpOAuthAuthorizationRequestView;
|
|
22
|
+
request: IMcpOAuthAuthorizationRequestView | IOAuthAppAuthorizationRequestView;
|
|
5
23
|
}
|
|
6
24
|
export type IGetOAuthAuthorizationRequestResponse = IResponse<IGetOAuthAuthorizationRequestData>;
|
|
7
25
|
export interface IDecideMcpOAuthAuthorizationRequestData {
|
|
8
26
|
redirectTo: string;
|
|
9
27
|
}
|
|
10
28
|
export type IDecideMcpOAuthAuthorizationRequestResponse = IResponse<IDecideMcpOAuthAuthorizationRequestData>;
|
|
29
|
+
export interface ILoginRequiredOAuthAuthorizationRequestData {
|
|
30
|
+
redirectTo: string;
|
|
31
|
+
}
|
|
32
|
+
export type ILoginRequiredOAuthAuthorizationRequestResponse = IResponse<ILoginRequiredOAuthAuthorizationRequestData>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IResponse } from '../type-message/response';
|
|
2
|
+
export interface IOAuthGrantSummary {
|
|
3
|
+
id: string;
|
|
4
|
+
application: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
ownerName: string;
|
|
8
|
+
organizationName: string;
|
|
9
|
+
homepageUrl: string | null;
|
|
10
|
+
};
|
|
11
|
+
scopes: string[];
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
lastUsedAt: Date | null;
|
|
14
|
+
}
|
|
15
|
+
export interface IListOAuthGrantUserData {
|
|
16
|
+
grants: IOAuthGrantSummary[];
|
|
17
|
+
}
|
|
18
|
+
export type IListOAuthGrantUserResponse = IResponse<IListOAuthGrantUserData>;
|
|
19
|
+
export type IRevokeOAuthGrantResponse = void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-grant.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/oauth-grant.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IOAuthPerimeterResourceInput, OAuthPerimeterCandidateUnit } from '../requests/oauth-perimeter.request';
|
|
2
|
+
import type { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IOAuthPerimeterCandidate {
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
unit: OAuthPerimeterCandidateUnit;
|
|
7
|
+
parentId: string | null;
|
|
8
|
+
kind?: string;
|
|
9
|
+
isProduction?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IListOAuthPerimeterCandidatesData {
|
|
12
|
+
candidates: IOAuthPerimeterCandidate[];
|
|
13
|
+
nextCursor: string | null;
|
|
14
|
+
}
|
|
15
|
+
export type IListPerimeterCandidatesOAuthAuthorizationRequestResponse = IResponse<IListOAuthPerimeterCandidatesData>;
|
|
16
|
+
export type IListOAuthPerimeterCandidatesAdminResponse = IResponse<IListOAuthPerimeterCandidatesData>;
|
|
17
|
+
export interface IOAuthPerimeterResolvedEntry extends IOAuthPerimeterResourceInput {
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IResolveOAuthPerimeterAdminData {
|
|
21
|
+
entries: IOAuthPerimeterResolvedEntry[];
|
|
22
|
+
}
|
|
23
|
+
export type IResolveOAuthPerimeterAdminResponse = IResponse<IResolveOAuthPerimeterAdminData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-perimeter.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/oauth-perimeter.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-userinfo.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/oauth-userinfo.response.ts"],"names":[],"mappings":""}
|
|
@@ -107,6 +107,7 @@ export interface ICheckUserQuotaData {
|
|
|
107
107
|
effectiveLimit?: number;
|
|
108
108
|
capReached?: boolean;
|
|
109
109
|
overageAllowed?: boolean;
|
|
110
|
+
limitUpdatedAt?: string | null;
|
|
110
111
|
}
|
|
111
112
|
export type ICheckUserQuotaResponse = IResponse<ICheckUserQuotaData>;
|
|
112
113
|
export interface IListUserEurTransactionsData {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { McpFunctionalScope, McpScopeType } from '../../enum/mcp.enum';
|
|
2
2
|
import type { McpOAuthClientSource } from '../../enum/mcp-oauth.enum';
|
|
3
|
+
import type { OAuthAuthorizationRequestKind } from '../../enum/oauth-app.enum';
|
|
3
4
|
export type McpOAuthAuthorizationRequestStatus = 'OPEN' | 'EXPIRED' | 'CONSUMED';
|
|
4
5
|
export interface IMcpOAuthApprovedScope {
|
|
5
6
|
scopeType: McpScopeType;
|
|
6
7
|
scopeId: string | null;
|
|
7
8
|
}
|
|
8
9
|
export interface IMcpOAuthAuthorizationRequestView {
|
|
10
|
+
kind: OAuthAuthorizationRequestKind.MCP;
|
|
9
11
|
id: string;
|
|
10
12
|
client: {
|
|
11
13
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/main",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.1.0",
|
|
4
4
|
"description": "Core package to interact with Abyss-Project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,6 +42,19 @@
|
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"main": "dist/index.js",
|
|
47
|
+
"types": "dist/index.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
51
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
52
|
+
"tsc": "tsc",
|
|
53
|
+
"build": "tsc -p tsconfig.build.json",
|
|
54
|
+
"dev": "tsc --watch",
|
|
55
|
+
"test": "jest",
|
|
56
|
+
"prepublishOnly": "tsc && node ../../scripts/check-sdk-surface.cjs"
|
|
57
|
+
},
|
|
45
58
|
"repository": {
|
|
46
59
|
"type": "git",
|
|
47
60
|
"url": "https://gitlab.com/abyss-group"
|
|
@@ -61,6 +74,7 @@
|
|
|
61
74
|
"byte-size": "^8.1.0",
|
|
62
75
|
"date-fns": "^2.29.3",
|
|
63
76
|
"dayjs": "^1.10.7",
|
|
77
|
+
"jsonwebtoken": "^9.0.0",
|
|
64
78
|
"lodash": "^4.17.21",
|
|
65
79
|
"lz-string": "^1.5.0",
|
|
66
80
|
"reflect-metadata": "^0.1.13",
|
|
@@ -72,6 +86,7 @@
|
|
|
72
86
|
"@types/express": "^4.17.21",
|
|
73
87
|
"@types/express-serve-static-core": "^4.17.28",
|
|
74
88
|
"@types/jest": "^29.5.5",
|
|
89
|
+
"@types/jsonwebtoken": "^9.0.1",
|
|
75
90
|
"@types/lodash": "^4.14.177",
|
|
76
91
|
"@types/node": "^20.11.0",
|
|
77
92
|
"@types/uuid": "^9.0.0",
|
|
@@ -90,13 +105,5 @@
|
|
|
90
105
|
"sequelize-cli": "^6.2.0",
|
|
91
106
|
"ts-jest": "^29.1.1",
|
|
92
107
|
"typescript": "5.9.3"
|
|
93
|
-
},
|
|
94
|
-
"scripts": {
|
|
95
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
96
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
97
|
-
"tsc": "tsc",
|
|
98
|
-
"build": "tsc -p tsconfig.build.json",
|
|
99
|
-
"dev": "tsc --watch",
|
|
100
|
-
"test": "jest"
|
|
101
108
|
}
|
|
102
|
-
}
|
|
109
|
+
}
|