@abyss-project/main 43.10.0 → 43.11.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/content-share.admin.api.d.ts +2 -4
- package/dist/api/content-share.admin.api.js +1 -6
- package/dist/api/content-share.admin.api.js.map +1 -1
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/index.js.map +1 -1
- package/dist/api/oauth-authorization-request.api.d.ts +2 -6
- package/dist/api/oauth-authorization-request.api.js +1 -9
- package/dist/api/oauth-authorization-request.api.js.map +1 -1
- package/dist/api/organization-billing.api.d.ts +3 -0
- package/dist/api/organization-billing.api.js +5 -1
- package/dist/api/organization-billing.api.js.map +1 -1
- package/dist/api/organization-member.admin.api.d.ts +1 -2
- package/dist/api/organization-member.admin.api.js +1 -5
- package/dist/api/organization-member.admin.api.js.map +1 -1
- package/dist/api/project-access.admin.api.d.ts +1 -2
- package/dist/api/project-access.admin.api.js +1 -5
- package/dist/api/project-access.admin.api.js.map +1 -1
- package/dist/api/project.admin.api.d.ts +1 -2
- package/dist/api/project.admin.api.js +1 -5
- package/dist/api/project.admin.api.js.map +1 -1
- package/dist/api/user-billing.api.d.ts +3 -0
- package/dist/api/user-billing.api.js +6 -2
- package/dist/api/user-billing.api.js.map +1 -1
- package/dist/constants/index.d.ts +1 -2
- package/dist/constants/index.js +1 -2
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/service-storage-grace.constants.d.ts +3 -0
- package/dist/constants/service-storage-grace.constants.js +11 -0
- package/dist/constants/service-storage-grace.constants.js.map +1 -0
- package/dist/index.d.ts +2 -29
- package/dist/index.js +2 -29
- package/dist/index.js.map +1 -1
- package/dist/permissions/ability.d.ts +1 -1
- package/dist/permissions/ability.js +0 -2
- package/dist/permissions/ability.js.map +1 -1
- package/dist/permissions/tests/ability.spec.js +0 -17
- package/dist/permissions/tests/ability.spec.js.map +1 -1
- package/dist/server/api-cors.util.d.ts +0 -8
- package/dist/server/api-cors.util.js +1 -83
- package/dist/server/api-cors.util.js.map +1 -1
- package/dist/server/archive-rows/row-archive.service.d.ts +1 -0
- package/dist/server/archive-rows/row-archive.service.js +14 -3
- package/dist/server/archive-rows/row-archive.service.js.map +1 -1
- package/dist/server/archive-rows/row-archive.types.d.ts +3 -1
- package/dist/server/archive-rows/tests/row-archive.service.spec.js +76 -2
- package/dist/server/archive-rows/tests/row-archive.service.spec.js.map +1 -1
- package/dist/server/index.d.ts +0 -6
- package/dist/server/index.js +0 -6
- package/dist/server/index.js.map +1 -1
- package/dist/translate/en.translate.d.ts +4 -0
- package/dist/translate/en.translate.js +4 -0
- package/dist/translate/en.translate.js.map +1 -1
- package/dist/translate/fr.translate.d.ts +4 -0
- package/dist/translate/fr.translate.js +4 -0
- package/dist/translate/fr.translate.js.map +1 -1
- package/dist/translate/tests/service-storage-grace-notification.spec.js +29 -0
- package/dist/translate/tests/service-storage-grace-notification.spec.js.map +1 -0
- package/dist/types/enum/abyss-application-event.enum.d.ts +5 -0
- package/dist/types/enum/abyss-application-event.enum.js +5 -0
- package/dist/types/enum/abyss-application-event.enum.js.map +1 -1
- package/dist/types/enum/api-error.enum.d.ts +0 -5
- package/dist/types/enum/api-error.enum.js +0 -5
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/email-type.enum.d.ts +1 -0
- package/dist/types/enum/email-type.enum.js +1 -0
- package/dist/types/enum/email-type.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +1 -2
- package/dist/types/enum/index.js +1 -2
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/project-access-permission.enum.d.ts +1 -2
- package/dist/types/enum/project-access-permission.enum.js +0 -1
- package/dist/types/enum/project-access-permission.enum.js.map +1 -1
- package/dist/types/enum/service-storage-grace.enum.d.ts +13 -0
- package/dist/types/enum/service-storage-grace.enum.js +20 -0
- package/dist/types/enum/service-storage-grace.enum.js.map +1 -0
- package/dist/types/enum/storage-element.enum.d.ts +3 -1
- package/dist/types/enum/storage-element.enum.js +2 -0
- package/dist/types/enum/storage-element.enum.js.map +1 -1
- package/dist/types/enum/user-notification-category.enum.js +1 -0
- package/dist/types/enum/user-notification-category.enum.js.map +1 -1
- package/dist/types/enum/user-notification-content-type.enum.d.ts +11 -0
- package/dist/types/enum/user-notification-content-type.enum.js +2 -1
- package/dist/types/enum/user-notification-content-type.enum.js.map +1 -1
- package/dist/types/interface/api/index.d.ts +2 -7
- package/dist/types/interface/api/index.js +2 -7
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/content-share.request.d.ts +0 -10
- package/dist/types/interface/api/requests/index.d.ts +0 -3
- package/dist/types/interface/api/requests/index.js +0 -3
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/oauth-authorization-request.request.d.ts +0 -7
- package/dist/types/interface/api/requests/organization-member.request.d.ts +0 -3
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +0 -8
- package/dist/types/interface/api/requests/project-access.admin.request.js +0 -2
- package/dist/types/interface/api/requests/project-access.admin.request.js.map +1 -1
- package/dist/types/interface/api/requests/project.admin.request.d.ts +0 -3
- package/dist/types/interface/api/requests/service-storage-grace.request.d.ts +9 -0
- package/dist/types/interface/api/requests/{oauth-application.request.js → service-storage-grace.request.js} +1 -1
- package/dist/types/interface/api/requests/service-storage-grace.request.js.map +1 -0
- package/dist/types/interface/api/responses/content-share.response.d.ts +0 -4
- package/dist/types/interface/api/responses/index.d.ts +0 -4
- package/dist/types/interface/api/responses/index.js +0 -4
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/oauth-authorization-request.response.d.ts +2 -28
- package/dist/types/interface/api/responses/organization-member.response.d.ts +0 -8
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -9
- package/dist/types/interface/api/responses/project.admin.response.d.ts +0 -5
- package/dist/types/interface/api/responses/service-storage-grace.response.d.ts +9 -0
- package/dist/types/interface/api/{requests/oauth-grant.request.js → responses/service-storage-grace.response.js} +1 -1
- package/dist/types/interface/api/responses/service-storage-grace.response.js.map +1 -0
- package/dist/types/interface/mcp/mcp-oauth.d.ts +0 -2
- package/dist/utils/abyss.utils.d.ts +1 -1
- package/package.json +10 -17
- package/dist/api/oauth-application.admin.api.d.ts +0 -4
- package/dist/api/oauth-application.admin.api.js +0 -13
- package/dist/api/oauth-application.admin.api.js.map +0 -1
- package/dist/api/oauth-application.api.d.ts +0 -9
- package/dist/api/oauth-application.api.js +0 -36
- package/dist/api/oauth-application.api.js.map +0 -1
- package/dist/api/oauth-grant.api.d.ts +0 -7
- package/dist/api/oauth-grant.api.js +0 -27
- package/dist/api/oauth-grant.api.js.map +0 -1
- package/dist/api/tests/sdk-compute-applications.spec.js +0 -31
- package/dist/api/tests/sdk-compute-applications.spec.js.map +0 -1
- package/dist/api/tests/sdk-organization-member-admin.spec.d.ts +0 -1
- package/dist/api/tests/sdk-organization-member-admin.spec.js +0 -15
- package/dist/api/tests/sdk-organization-member-admin.spec.js.map +0 -1
- package/dist/constants/oauth-app.constants.d.ts +0 -28
- package/dist/constants/oauth-app.constants.js +0 -48
- package/dist/constants/oauth-app.constants.js.map +0 -1
- package/dist/constants/oauth-scope-catalogue.d.ts +0 -238
- package/dist/constants/oauth-scope-catalogue.js +0 -3504
- package/dist/constants/oauth-scope-catalogue.js.map +0 -1
- package/dist/constants/tests/oauth-app.constants.spec.d.ts +0 -1
- package/dist/constants/tests/oauth-app.constants.spec.js +0 -90
- package/dist/constants/tests/oauth-app.constants.spec.js.map +0 -1
- package/dist/constants/tests/oauth-scope-catalogue.spec.d.ts +0 -1
- package/dist/constants/tests/oauth-scope-catalogue.spec.js +0 -278
- package/dist/constants/tests/oauth-scope-catalogue.spec.js.map +0 -1
- package/dist/constants/tests/oauth-scope-positions.snapshot.d.ts +0 -39
- package/dist/constants/tests/oauth-scope-positions.snapshot.js +0 -243
- package/dist/constants/tests/oauth-scope-positions.snapshot.js.map +0 -1
- package/dist/server/oauth-access-token.util.d.ts +0 -30
- package/dist/server/oauth-access-token.util.js +0 -116
- package/dist/server/oauth-access-token.util.js.map +0 -1
- package/dist/server/oauth-claim-format.error.d.ts +0 -4
- package/dist/server/oauth-claim-format.error.js +0 -19
- package/dist/server/oauth-claim-format.error.js.map +0 -1
- package/dist/server/oauth-perimeter-claim.util.d.ts +0 -15
- package/dist/server/oauth-perimeter-claim.util.js +0 -145
- package/dist/server/oauth-perimeter-claim.util.js.map +0 -1
- package/dist/server/oauth-perimeter.util.d.ts +0 -36
- package/dist/server/oauth-perimeter.util.js +0 -115
- package/dist/server/oauth-perimeter.util.js.map +0 -1
- package/dist/server/oauth-route-access.util.d.ts +0 -58
- package/dist/server/oauth-route-access.util.js +0 -68
- package/dist/server/oauth-route-access.util.js.map +0 -1
- package/dist/server/oauth-scope-bits.util.d.ts +0 -9
- package/dist/server/oauth-scope-bits.util.js +0 -82
- package/dist/server/oauth-scope-bits.util.js.map +0 -1
- package/dist/server/tests/api-cors-dynamic.util.spec.d.ts +0 -1
- package/dist/server/tests/api-cors-dynamic.util.spec.js +0 -220
- package/dist/server/tests/api-cors-dynamic.util.spec.js.map +0 -1
- package/dist/server/tests/oauth-access-token.util.spec.d.ts +0 -1
- package/dist/server/tests/oauth-access-token.util.spec.js +0 -166
- package/dist/server/tests/oauth-access-token.util.spec.js.map +0 -1
- package/dist/server/tests/oauth-perimeter-claim.util.spec.d.ts +0 -1
- package/dist/server/tests/oauth-perimeter-claim.util.spec.js +0 -244
- package/dist/server/tests/oauth-perimeter-claim.util.spec.js.map +0 -1
- package/dist/server/tests/oauth-perimeter.util.spec.d.ts +0 -1
- package/dist/server/tests/oauth-perimeter.util.spec.js +0 -410
- package/dist/server/tests/oauth-perimeter.util.spec.js.map +0 -1
- package/dist/server/tests/oauth-route-access.util.spec.d.ts +0 -1
- package/dist/server/tests/oauth-route-access.util.spec.js +0 -149
- package/dist/server/tests/oauth-route-access.util.spec.js.map +0 -1
- package/dist/server/tests/oauth-scope-bits.util.spec.d.ts +0 -1
- package/dist/server/tests/oauth-scope-bits.util.spec.js +0 -72
- package/dist/server/tests/oauth-scope-bits.util.spec.js.map +0 -1
- package/dist/types/enum/oauth-app.enum.d.ts +0 -39
- package/dist/types/enum/oauth-app.enum.js +0 -48
- package/dist/types/enum/oauth-app.enum.js.map +0 -1
- package/dist/types/enum/oauth-scope.enum.d.ts +0 -89
- package/dist/types/enum/oauth-scope.enum.js +0 -103
- package/dist/types/enum/oauth-scope.enum.js.map +0 -1
- package/dist/types/interface/api/requests/oauth-application.request.d.ts +0 -41
- package/dist/types/interface/api/requests/oauth-application.request.js.map +0 -1
- package/dist/types/interface/api/requests/oauth-grant.request.d.ts +0 -14
- package/dist/types/interface/api/requests/oauth-grant.request.js.map +0 -1
- package/dist/types/interface/api/requests/oauth-perimeter.request.d.ts +0 -33
- package/dist/types/interface/api/requests/oauth-perimeter.request.js +0 -5
- package/dist/types/interface/api/requests/oauth-perimeter.request.js.map +0 -1
- package/dist/types/interface/api/responses/oauth-application.response.d.ts +0 -56
- package/dist/types/interface/api/responses/oauth-application.response.js +0 -3
- package/dist/types/interface/api/responses/oauth-application.response.js.map +0 -1
- package/dist/types/interface/api/responses/oauth-grant.response.d.ts +0 -44
- package/dist/types/interface/api/responses/oauth-grant.response.js +0 -3
- package/dist/types/interface/api/responses/oauth-grant.response.js.map +0 -1
- package/dist/types/interface/api/responses/oauth-perimeter.response.d.ts +0 -50
- package/dist/types/interface/api/responses/oauth-perimeter.response.js +0 -3
- package/dist/types/interface/api/responses/oauth-perimeter.response.js.map +0 -1
- package/dist/types/interface/api/responses/oauth-userinfo.response.d.ts +0 -8
- package/dist/types/interface/api/responses/oauth-userinfo.response.js +0 -3
- package/dist/types/interface/api/responses/oauth-userinfo.response.js.map +0 -1
- /package/dist/{api/tests/sdk-compute-applications.spec.d.ts → translate/tests/service-storage-grace-notification.spec.d.ts} +0 -0
|
@@ -71,10 +71,6 @@ __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);
|
|
78
74
|
__exportStar(require("./activity.admin.response"), exports);
|
|
79
75
|
__exportStar(require("./referred-traffic.admin.response"), exports);
|
|
80
76
|
__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
|
|
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,36 +1,10 @@
|
|
|
1
|
-
import type {
|
|
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';
|
|
1
|
+
import type { IMcpOAuthAuthorizationRequestView } from '../../mcp/mcp-oauth';
|
|
5
2
|
import type { IResponse } from '../type-message/response';
|
|
6
|
-
export interface IOAuthAppAuthorizationRequestView {
|
|
7
|
-
kind: OAuthAuthorizationRequestKind.APP;
|
|
8
|
-
id: string;
|
|
9
|
-
status: McpOAuthAuthorizationRequestStatus;
|
|
10
|
-
application: {
|
|
11
|
-
name: string;
|
|
12
|
-
ownerName: string;
|
|
13
|
-
organizationName: string;
|
|
14
|
-
homepageUrl: string | null;
|
|
15
|
-
clientType: OAuthClientType;
|
|
16
|
-
};
|
|
17
|
-
redirectHost: string;
|
|
18
|
-
redirectWarning: boolean;
|
|
19
|
-
scopes: string[];
|
|
20
|
-
missingScopes: string[];
|
|
21
|
-
grantedScopes: OAuthScopeName[];
|
|
22
|
-
perimeter: IOAuthGrantResource[];
|
|
23
|
-
prompt: OAuthAuthorizationPrompt | null;
|
|
24
|
-
}
|
|
25
3
|
export interface IGetOAuthAuthorizationRequestData {
|
|
26
|
-
request: IMcpOAuthAuthorizationRequestView
|
|
4
|
+
request: IMcpOAuthAuthorizationRequestView;
|
|
27
5
|
}
|
|
28
6
|
export type IGetOAuthAuthorizationRequestResponse = IResponse<IGetOAuthAuthorizationRequestData>;
|
|
29
7
|
export interface IDecideMcpOAuthAuthorizationRequestData {
|
|
30
8
|
redirectTo: string;
|
|
31
9
|
}
|
|
32
10
|
export type IDecideMcpOAuthAuthorizationRequestResponse = IResponse<IDecideMcpOAuthAuthorizationRequestData>;
|
|
33
|
-
export interface ILoginRequiredOAuthAuthorizationRequestData {
|
|
34
|
-
redirectTo: string;
|
|
35
|
-
}
|
|
36
|
-
export type ILoginRequiredOAuthAuthorizationRequestResponse = IResponse<ILoginRequiredOAuthAuthorizationRequestData>;
|
|
@@ -51,11 +51,3 @@ export interface IListMembersOrganizationMemberAdminData {
|
|
|
51
51
|
members: IOrganizationMemberAdminSummary[];
|
|
52
52
|
}
|
|
53
53
|
export type IListMembersOrganizationMemberAdminResponse = IResponse<IListMembersOrganizationMemberAdminData>;
|
|
54
|
-
export interface IOrganizationMemberAdminOrganization {
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
}
|
|
58
|
-
export interface IListUserOrganizationsOrganizationMemberAdminData {
|
|
59
|
-
organizations: IOrganizationMemberAdminOrganization[];
|
|
60
|
-
}
|
|
61
|
-
export type IListUserOrganizationsOrganizationMemberAdminResponse = IResponse<IListUserOrganizationsOrganizationMemberAdminData>;
|
|
@@ -34,15 +34,6 @@ export interface IComputeApplicationProjectAccessAdminData {
|
|
|
34
34
|
isDemo: boolean;
|
|
35
35
|
}
|
|
36
36
|
export type IComputeApplicationProjectAccessAdminResponse = IResponse<IComputeApplicationProjectAccessAdminData>;
|
|
37
|
-
export interface IComputedApplicationAccess {
|
|
38
|
-
applicationId: string;
|
|
39
|
-
permission: ProjectApplicationAccessPermission[];
|
|
40
|
-
}
|
|
41
|
-
export interface IComputeApplicationsProjectAccessAdminData {
|
|
42
|
-
applications: IComputedApplicationAccess[];
|
|
43
|
-
isDemo: boolean;
|
|
44
|
-
}
|
|
45
|
-
export type IComputeApplicationsProjectAccessAdminResponse = IResponse<IComputeApplicationsProjectAccessAdminData>;
|
|
46
37
|
export interface IComputeNotificationAccessProjectAccessAdminData {
|
|
47
38
|
user: IUser[];
|
|
48
39
|
}
|
|
@@ -11,11 +11,6 @@ export interface IListProjectAdminData {
|
|
|
11
11
|
sharedProjects: ProjectWithoutApplication[];
|
|
12
12
|
}
|
|
13
13
|
export type IListProjectAdminResponse = IResponse<IListProjectAdminData>;
|
|
14
|
-
export type OpenableProjectAdmin = Pick<IProject, 'id' | 'name' | 'organizationId'>;
|
|
15
|
-
export interface IListOpenableProjectAdminData {
|
|
16
|
-
projects: OpenableProjectAdmin[];
|
|
17
|
-
}
|
|
18
|
-
export type IListOpenableProjectAdminResponse = IResponse<IListOpenableProjectAdminData>;
|
|
19
14
|
export type IPaginateProjectAdminResponse = IResponse<BasePaginate<IProject>>;
|
|
20
15
|
export interface IDeleteProjectAdminData {
|
|
21
16
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServiceStorageGraceReason } from '../../../enum';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IGetServiceStorageGraceData {
|
|
4
|
+
cut: boolean;
|
|
5
|
+
reason: ServiceStorageGraceReason | null;
|
|
6
|
+
cutAt: Date | null;
|
|
7
|
+
graceEndsAt: Date | null;
|
|
8
|
+
}
|
|
9
|
+
export type IGetServiceStorageGraceResponse = IResponse<IGetServiceStorageGraceData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-storage-grace.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/service-storage-grace.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,11 @@
|
|
|
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';
|
|
4
3
|
export type McpOAuthAuthorizationRequestStatus = 'OPEN' | 'EXPIRED' | 'CONSUMED';
|
|
5
4
|
export interface IMcpOAuthApprovedScope {
|
|
6
5
|
scopeType: McpScopeType;
|
|
7
6
|
scopeId: string | null;
|
|
8
7
|
}
|
|
9
8
|
export interface IMcpOAuthAuthorizationRequestView {
|
|
10
|
-
kind: OAuthAuthorizationRequestKind.MCP;
|
|
11
9
|
id: string;
|
|
12
10
|
client: {
|
|
13
11
|
name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ActivatableService } from '../types';
|
|
2
|
-
export declare const getServiceName: (service: ActivatableService) => "
|
|
2
|
+
export declare const getServiceName: (service: ActivatableService) => "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "Form" | "Training" | "Console" | "Workspace" | "Extract" | "Beam" | "Link" | "Flow" | "Reflex" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/main",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.11.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,19 +42,6 @@
|
|
|
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
|
-
},
|
|
58
45
|
"repository": {
|
|
59
46
|
"type": "git",
|
|
60
47
|
"url": "https://gitlab.com/abyss-group"
|
|
@@ -74,7 +61,6 @@
|
|
|
74
61
|
"byte-size": "^8.1.0",
|
|
75
62
|
"date-fns": "^2.29.3",
|
|
76
63
|
"dayjs": "^1.10.7",
|
|
77
|
-
"jsonwebtoken": "^9.0.0",
|
|
78
64
|
"lodash": "^4.17.21",
|
|
79
65
|
"lz-string": "^1.5.0",
|
|
80
66
|
"reflect-metadata": "^0.1.13",
|
|
@@ -86,7 +72,6 @@
|
|
|
86
72
|
"@types/express": "^4.17.21",
|
|
87
73
|
"@types/express-serve-static-core": "^4.17.28",
|
|
88
74
|
"@types/jest": "^29.5.5",
|
|
89
|
-
"@types/jsonwebtoken": "^9.0.1",
|
|
90
75
|
"@types/lodash": "^4.14.177",
|
|
91
76
|
"@types/node": "^20.11.0",
|
|
92
77
|
"@types/uuid": "^9.0.0",
|
|
@@ -105,5 +90,13 @@
|
|
|
105
90
|
"sequelize-cli": "^6.2.0",
|
|
106
91
|
"ts-jest": "^29.1.1",
|
|
107
92
|
"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"
|
|
108
101
|
}
|
|
109
|
-
}
|
|
102
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { IListNamesOAuthApplicationAdminQuery } from '../types/interface/api/requests/oauth-application.request';
|
|
2
|
-
import type { IListAllowedOriginsOAuthApplicationAdminResponse, IListNamesOAuthApplicationAdminResponse } from '../types/interface/api/responses/oauth-application.response';
|
|
3
|
-
export declare const listAllowedOriginsOAuthApplicationAdmin: () => Promise<IListAllowedOriginsOAuthApplicationAdminResponse>;
|
|
4
|
-
export declare const listNamesOAuthApplicationAdmin: (query: IListNamesOAuthApplicationAdminQuery) => Promise<IListNamesOAuthApplicationAdminResponse>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listNamesOAuthApplicationAdmin = exports.listAllowedOriginsOAuthApplicationAdmin = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const listAllowedOriginsOAuthApplicationAdmin = async () => {
|
|
6
|
-
return (await __1.AbyssCore.axios.get('oauth-application/admin/allowed-origins')).data;
|
|
7
|
-
};
|
|
8
|
-
exports.listAllowedOriginsOAuthApplicationAdmin = listAllowedOriginsOAuthApplicationAdmin;
|
|
9
|
-
const listNamesOAuthApplicationAdmin = async (query) => {
|
|
10
|
-
return (await __1.AbyssCore.axios.get('oauth-application/admin/names', { params: query })).data;
|
|
11
|
-
};
|
|
12
|
-
exports.listNamesOAuthApplicationAdmin = listNamesOAuthApplicationAdmin;
|
|
13
|
-
//# sourceMappingURL=oauth-application.admin.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-application.admin.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.admin.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAQxB,MAAM,uCAAuC,GAClD,KAAK,IAA+D,EAAE;IACpE,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,yCAAyC,CAC1C,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAPS,QAAA,uCAAuC,2CAOhD;AAMG,MAAM,8BAA8B,GAAG,KAAK,EACjD,KAA2C,EACO,EAAE;IACpD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,+BAA+B,EAC/B,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AATW,QAAA,8BAA8B,kCASzC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ICreateOAuthApplicationBody, ICreateOAuthApplicationProjectParams, IDeleteOAuthApplicationParams, IGetOAuthApplicationParams, IListNamesOAuthApplicationQuery, IListOAuthApplicationProjectParams, IRegenerateSecretOAuthApplicationParams, IUpdateOAuthApplicationBody, IUpdateOAuthApplicationParams } from '../types/interface/api/requests/oauth-application.request';
|
|
2
|
-
import type { ICreateOAuthApplicationProjectResponse, IDeleteOAuthApplicationResponse, IGetOAuthApplicationResponse, IListNamesOAuthApplicationResponse, IListOAuthApplicationProjectResponse, IRegenerateSecretOAuthApplicationResponse, IUpdateOAuthApplicationResponse } from '../types/interface/api/responses/oauth-application.response';
|
|
3
|
-
export declare const listOAuthApplicationProject: (params: IListOAuthApplicationProjectParams) => Promise<IListOAuthApplicationProjectResponse>;
|
|
4
|
-
export declare const createOAuthApplicationProject: (params: ICreateOAuthApplicationProjectParams, body: ICreateOAuthApplicationBody) => Promise<ICreateOAuthApplicationProjectResponse>;
|
|
5
|
-
export declare const getOAuthApplication: (params: IGetOAuthApplicationParams) => Promise<IGetOAuthApplicationResponse>;
|
|
6
|
-
export declare const updateOAuthApplication: (params: IUpdateOAuthApplicationParams, body: IUpdateOAuthApplicationBody) => Promise<IUpdateOAuthApplicationResponse>;
|
|
7
|
-
export declare const deleteOAuthApplication: (params: IDeleteOAuthApplicationParams) => Promise<IDeleteOAuthApplicationResponse>;
|
|
8
|
-
export declare const regenerateSecretOAuthApplication: (params: IRegenerateSecretOAuthApplicationParams) => Promise<IRegenerateSecretOAuthApplicationResponse>;
|
|
9
|
-
export declare const listNamesOAuthApplication: (query: IListNamesOAuthApplicationQuery) => Promise<IListNamesOAuthApplicationResponse>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listNamesOAuthApplication = exports.regenerateSecretOAuthApplication = exports.deleteOAuthApplication = exports.updateOAuthApplication = exports.getOAuthApplication = exports.createOAuthApplicationProject = exports.listOAuthApplicationProject = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const base = 'oauth-application';
|
|
6
|
-
const listOAuthApplicationProject = async (params) => {
|
|
7
|
-
return (await __1.AbyssCore.axios.get(`project/${params.projectId}/${base}`)).data;
|
|
8
|
-
};
|
|
9
|
-
exports.listOAuthApplicationProject = listOAuthApplicationProject;
|
|
10
|
-
const createOAuthApplicationProject = async (params, body) => {
|
|
11
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/${base}`, body)).data;
|
|
12
|
-
};
|
|
13
|
-
exports.createOAuthApplicationProject = createOAuthApplicationProject;
|
|
14
|
-
const getOAuthApplication = async (params) => {
|
|
15
|
-
return (await __1.AbyssCore.axios.get(`${base}/${params.applicationId}`)).data;
|
|
16
|
-
};
|
|
17
|
-
exports.getOAuthApplication = getOAuthApplication;
|
|
18
|
-
const updateOAuthApplication = async (params, body) => {
|
|
19
|
-
return (await __1.AbyssCore.axios.patch(`${base}/${params.applicationId}`, body)).data;
|
|
20
|
-
};
|
|
21
|
-
exports.updateOAuthApplication = updateOAuthApplication;
|
|
22
|
-
const deleteOAuthApplication = async (params) => {
|
|
23
|
-
return (await __1.AbyssCore.axios.delete(`${base}/${params.applicationId}`)).data;
|
|
24
|
-
};
|
|
25
|
-
exports.deleteOAuthApplication = deleteOAuthApplication;
|
|
26
|
-
const regenerateSecretOAuthApplication = async (params) => {
|
|
27
|
-
return (await __1.AbyssCore.axios.post(`${base}/${params.applicationId}/secret`)).data;
|
|
28
|
-
};
|
|
29
|
-
exports.regenerateSecretOAuthApplication = regenerateSecretOAuthApplication;
|
|
30
|
-
const listNamesOAuthApplication = async (query) => {
|
|
31
|
-
return (await __1.AbyssCore.axios.get(`${base}/names`, {
|
|
32
|
-
params: query,
|
|
33
|
-
})).data;
|
|
34
|
-
};
|
|
35
|
-
exports.listNamesOAuthApplication = listNamesOAuthApplication;
|
|
36
|
-
//# sourceMappingURL=oauth-application.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-application.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAsB/B,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAE1B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,GAAG,KAAK,EACnD,MAA+C,EACK,EAAE;IACtD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,SAAS,CACzC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,gCAAgC,oCAQ3C;AAGK,MAAM,yBAAyB,GAAG,KAAK,EAC5C,KAAsC,EACO,EAAE;IAC/C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAAqC,GAAG,IAAI,QAAQ,EAAE;QAC7E,MAAM,EAAE,KAAK;KACd,CAAC,CACH,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,yBAAyB,6BAQpC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IGetOAuthGrantParams, IRemoveResourceOAuthGrantParams, IRemoveScopeOAuthGrantParams, IRevokeOAuthGrantParams } from '../types/interface/api/requests/oauth-grant.request';
|
|
2
|
-
import type { IGetOAuthGrantResponse, IListOAuthGrantUserResponse, IRemoveResourceOAuthGrantResponse, IRemoveScopeOAuthGrantResponse, IRevokeOAuthGrantResponse } from '../types/interface/api/responses/oauth-grant.response';
|
|
3
|
-
export declare const listOAuthGrantUser: () => Promise<IListOAuthGrantUserResponse>;
|
|
4
|
-
export declare const getOAuthGrant: (params: IGetOAuthGrantParams) => Promise<IGetOAuthGrantResponse>;
|
|
5
|
-
export declare const revokeOAuthGrant: (params: IRevokeOAuthGrantParams) => Promise<IRevokeOAuthGrantResponse>;
|
|
6
|
-
export declare const removeScopeOAuthGrant: (params: IRemoveScopeOAuthGrantParams) => Promise<IRemoveScopeOAuthGrantResponse>;
|
|
7
|
-
export declare const removeResourceOAuthGrant: (params: IRemoveResourceOAuthGrantParams) => Promise<IRemoveResourceOAuthGrantResponse>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeResourceOAuthGrant = exports.removeScopeOAuthGrant = exports.revokeOAuthGrant = exports.getOAuthGrant = exports.listOAuthGrantUser = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const base = 'oauth-grant';
|
|
6
|
-
const listOAuthGrantUser = async () => {
|
|
7
|
-
return (await __1.AbyssCore.axios.get(`${base}/user/me`)).data;
|
|
8
|
-
};
|
|
9
|
-
exports.listOAuthGrantUser = listOAuthGrantUser;
|
|
10
|
-
const getOAuthGrant = async (params) => {
|
|
11
|
-
return (await __1.AbyssCore.axios.get(`${base}/${params.grantId}`)).data;
|
|
12
|
-
};
|
|
13
|
-
exports.getOAuthGrant = getOAuthGrant;
|
|
14
|
-
const revokeOAuthGrant = async (params) => {
|
|
15
|
-
return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}`))
|
|
16
|
-
.data;
|
|
17
|
-
};
|
|
18
|
-
exports.revokeOAuthGrant = revokeOAuthGrant;
|
|
19
|
-
const removeScopeOAuthGrant = async (params) => {
|
|
20
|
-
return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}/scope/${encodeURIComponent(params.scope)}`)).data;
|
|
21
|
-
};
|
|
22
|
-
exports.removeScopeOAuthGrant = removeScopeOAuthGrant;
|
|
23
|
-
const removeResourceOAuthGrant = async (params) => {
|
|
24
|
-
return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}/resource/${params.resourceId}`)).data;
|
|
25
|
-
};
|
|
26
|
-
exports.removeResourceOAuthGrant = removeResourceOAuthGrant;
|
|
27
|
-
//# sourceMappingURL=oauth-grant.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-grant.api.js","sourceRoot":"","sources":["../../src/api/oauth-grant.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAe/B,MAAM,IAAI,GAAG,aAAa,CAAC;AAEpB,MAAM,kBAAkB,GAAG,KAAK,IAA0C,EAAE;IACjF,OAAO,CAAC,MAAM,aAAS,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
-
const __1 = require("../..");
|
|
4
|
-
describe('SDK — access to the applications of a project in one call (#882)', () => {
|
|
5
|
-
afterEach(() => {
|
|
6
|
-
jest.restoreAllMocks();
|
|
7
|
-
});
|
|
8
|
-
it('posts the user, and the applications asked, to the project route', async () => {
|
|
9
|
-
const data = {
|
|
10
|
-
applications: [
|
|
11
|
-
{
|
|
12
|
-
applicationId: 'app-1',
|
|
13
|
-
permission: [__1.ProjectApplicationAccessPermission.FULL_ACCESS],
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
isDemo: false,
|
|
17
|
-
};
|
|
18
|
-
const post = jest.spyOn(__1.AbyssCore.axios, 'post').mockResolvedValue({ data: { data } });
|
|
19
|
-
const body = {
|
|
20
|
-
userId: 'user-1',
|
|
21
|
-
applicationIds: ['app-1'],
|
|
22
|
-
};
|
|
23
|
-
const res = await __1.AbyssCore.sdk.projectAccess.admin.computeApplications({ projectId: 'project-1' }, body);
|
|
24
|
-
expect(post).toHaveBeenCalledWith('project-access/admin/compute-permission/project/project-1/applications', body);
|
|
25
|
-
expect(res.data).toEqual(data);
|
|
26
|
-
});
|
|
27
|
-
it('caps a batch at 500 applications', () => {
|
|
28
|
-
expect(__1.COMPUTE_APPLICATIONS_MAX_IDS).toBe(500);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=sdk-compute-applications.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-compute-applications.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-compute-applications.spec.ts"],"names":[],"mappings":";;AAAA,6BAKe;AAEf,QAAQ,CAAC,kEAAkE,EAAE,GAAG,EAAE;IAChF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;QAChF,MAAM,IAAI,GAAG;YACX,YAAY,EAAE;gBACZ;oBACE,aAAa,EAAE,OAAO;oBACtB,UAAU,EAAE,CAAC,sCAAkC,CAAC,WAAW,CAAC;iBAC7D;aACF;YACD,MAAM,EAAE,KAAK;SACd,CAAC;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACvF,MAAM,IAAI,GAA+C;YACvD,MAAM,EAAE,QAAQ;YAChB,cAAc,EAAE,CAAC,OAAO,CAAC;SAC1B,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,aAAS,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,mBAAmB,CACrE,EAAE,SAAS,EAAE,WAAW,EAAE,EAC1B,IAAI,CACL,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAC/B,wEAAwE,EACxE,IAAI,CACL,CAAC;QACF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,gCAA4B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const __1 = require("../..");
|
|
4
|
-
describe('SDK — organizationMember.admin.listUserOrganizations (#882)', () => {
|
|
5
|
-
afterEach(() => {
|
|
6
|
-
jest.restoreAllMocks();
|
|
7
|
-
});
|
|
8
|
-
it('reads the organisations of a user through the admin route', async () => {
|
|
9
|
-
const body = { data: { organizations: [{ id: 'org-1', name: 'Atelier' }] } };
|
|
10
|
-
jest.spyOn(__1.AbyssCore.axios, 'get').mockResolvedValue({ status: 200, data: body });
|
|
11
|
-
await expect(__1.AbyssCore.sdk.organizationMember.admin.listUserOrganizations({ userId: 'user-1' })).resolves.toEqual(body);
|
|
12
|
-
expect(__1.AbyssCore.axios.get).toHaveBeenCalledWith('organization-member/admin/user/user-1/organizations');
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=sdk-organization-member-admin.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-organization-member-admin.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-organization-member-admin.spec.ts"],"names":[],"mappings":";;AAAA,6BAAkC;AAElC,QAAQ,CAAC,6DAA6D,EAAE,GAAG,EAAE;IAC3E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QACzE,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7E,IAAI,CAAC,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAElF,MAAM,MAAM,CACV,aAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CACnF,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,CAAC,aAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAC9C,qDAAqD,CACtD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OAuthAudience } from '../types/enum/oauth-app.enum';
|
|
2
|
-
import { OAuthScopeName } from './oauth-scope-catalogue';
|
|
3
|
-
export declare const OAUTH_APP_CLIENT_ID_PREFIX = "abys_app_";
|
|
4
|
-
export declare const OAUTH_APP_CLIENT_SECRET_PREFIX = "abys_apsec_";
|
|
5
|
-
export declare const OAUTH_APP_REFRESH_TOKEN_PREFIX = "abys_aprt_";
|
|
6
|
-
export declare const OAUTH_APP_ACCESS_TOKEN_TYPE = "at+jwt";
|
|
7
|
-
export declare const OAUTH_APP_ACCESS_TOKEN_TTL_SECONDS = 900;
|
|
8
|
-
export declare const OAUTH_APP_REFRESH_TOKEN_TTL_SECONDS: number;
|
|
9
|
-
export declare const OAUTH_APP_CODE_TTL_SECONDS = 60;
|
|
10
|
-
export declare const OAUTH_APP_REQUEST_TTL_SECONDS = 600;
|
|
11
|
-
export declare const OAUTH_APP_MAX_PER_PROJECT = 25;
|
|
12
|
-
export declare const OAUTH_APP_MAX_REDIRECT_URIS = 10;
|
|
13
|
-
export declare const OAUTH_APP_MAX_ORIGINS = 10;
|
|
14
|
-
export declare const OAUTH_APP_NAME_MAX_LENGTH = 100;
|
|
15
|
-
export declare const OAUTH_APP_DESCRIPTION_MAX_LENGTH = 500;
|
|
16
|
-
export declare const OAUTH_APP_OPENID_SCOPE = "openid";
|
|
17
|
-
export declare const OAUTH_APP_IDENTITY_SCOPES: readonly ["openid", "profile", "email"];
|
|
18
|
-
export declare const OAUTH_ID_TOKEN_TTL_SECONDS = 900;
|
|
19
|
-
export declare const OAUTH_PERIMETER_MAX_RESOURCES = 50;
|
|
20
|
-
export declare const OAUTH_PERIMETER_CANDIDATES_PAGE_SIZE = 50;
|
|
21
|
-
export declare const OAUTH_PERIMETER_SEARCH_MIN_LENGTH = 2;
|
|
22
|
-
export declare const OAUTH_PERIMETER_CANDIDATES_PATH = "/oauth-perimeter/admin/candidates";
|
|
23
|
-
export declare const OAUTH_PERIMETER_RESOLVE_PATH = "/oauth-perimeter/admin/resolve";
|
|
24
|
-
export declare const OAUTH_APP_NAMES_MAX_CLIENT_IDS = 50;
|
|
25
|
-
export declare const OAUTH_NONCE_MAX_LENGTH = 512;
|
|
26
|
-
export declare const isOAuthScopeName: (scope: string) => scope is OAuthScopeName;
|
|
27
|
-
export declare const OAUTH_APP_SCOPES_SUPPORTED: ReadonlyArray<string>;
|
|
28
|
-
export declare const audiencesOfScopes: (scopes: readonly string[]) => OAuthAudience[];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.audiencesOfScopes = exports.OAUTH_APP_SCOPES_SUPPORTED = exports.isOAuthScopeName = exports.OAUTH_NONCE_MAX_LENGTH = exports.OAUTH_APP_NAMES_MAX_CLIENT_IDS = exports.OAUTH_PERIMETER_RESOLVE_PATH = exports.OAUTH_PERIMETER_CANDIDATES_PATH = exports.OAUTH_PERIMETER_SEARCH_MIN_LENGTH = exports.OAUTH_PERIMETER_CANDIDATES_PAGE_SIZE = exports.OAUTH_PERIMETER_MAX_RESOURCES = exports.OAUTH_ID_TOKEN_TTL_SECONDS = exports.OAUTH_APP_IDENTITY_SCOPES = exports.OAUTH_APP_OPENID_SCOPE = exports.OAUTH_APP_DESCRIPTION_MAX_LENGTH = exports.OAUTH_APP_NAME_MAX_LENGTH = exports.OAUTH_APP_MAX_ORIGINS = exports.OAUTH_APP_MAX_REDIRECT_URIS = exports.OAUTH_APP_MAX_PER_PROJECT = exports.OAUTH_APP_REQUEST_TTL_SECONDS = exports.OAUTH_APP_CODE_TTL_SECONDS = exports.OAUTH_APP_REFRESH_TOKEN_TTL_SECONDS = exports.OAUTH_APP_ACCESS_TOKEN_TTL_SECONDS = exports.OAUTH_APP_ACCESS_TOKEN_TYPE = exports.OAUTH_APP_REFRESH_TOKEN_PREFIX = exports.OAUTH_APP_CLIENT_SECRET_PREFIX = exports.OAUTH_APP_CLIENT_ID_PREFIX = void 0;
|
|
4
|
-
const oauth_scope_catalogue_1 = require("./oauth-scope-catalogue");
|
|
5
|
-
exports.OAUTH_APP_CLIENT_ID_PREFIX = 'abys_app_';
|
|
6
|
-
exports.OAUTH_APP_CLIENT_SECRET_PREFIX = 'abys_apsec_';
|
|
7
|
-
exports.OAUTH_APP_REFRESH_TOKEN_PREFIX = 'abys_aprt_';
|
|
8
|
-
exports.OAUTH_APP_ACCESS_TOKEN_TYPE = 'at+jwt';
|
|
9
|
-
exports.OAUTH_APP_ACCESS_TOKEN_TTL_SECONDS = 900;
|
|
10
|
-
exports.OAUTH_APP_REFRESH_TOKEN_TTL_SECONDS = 30 * 24 * 3600;
|
|
11
|
-
exports.OAUTH_APP_CODE_TTL_SECONDS = 60;
|
|
12
|
-
exports.OAUTH_APP_REQUEST_TTL_SECONDS = 600;
|
|
13
|
-
exports.OAUTH_APP_MAX_PER_PROJECT = 25;
|
|
14
|
-
exports.OAUTH_APP_MAX_REDIRECT_URIS = 10;
|
|
15
|
-
exports.OAUTH_APP_MAX_ORIGINS = 10;
|
|
16
|
-
exports.OAUTH_APP_NAME_MAX_LENGTH = 100;
|
|
17
|
-
exports.OAUTH_APP_DESCRIPTION_MAX_LENGTH = 500;
|
|
18
|
-
exports.OAUTH_APP_OPENID_SCOPE = 'openid';
|
|
19
|
-
exports.OAUTH_APP_IDENTITY_SCOPES = [exports.OAUTH_APP_OPENID_SCOPE, 'profile', 'email'];
|
|
20
|
-
exports.OAUTH_ID_TOKEN_TTL_SECONDS = 900;
|
|
21
|
-
exports.OAUTH_PERIMETER_MAX_RESOURCES = 50;
|
|
22
|
-
exports.OAUTH_PERIMETER_CANDIDATES_PAGE_SIZE = 50;
|
|
23
|
-
exports.OAUTH_PERIMETER_SEARCH_MIN_LENGTH = 2;
|
|
24
|
-
exports.OAUTH_PERIMETER_CANDIDATES_PATH = '/oauth-perimeter/admin/candidates';
|
|
25
|
-
exports.OAUTH_PERIMETER_RESOLVE_PATH = '/oauth-perimeter/admin/resolve';
|
|
26
|
-
exports.OAUTH_APP_NAMES_MAX_CLIENT_IDS = 50;
|
|
27
|
-
exports.OAUTH_NONCE_MAX_LENGTH = 512;
|
|
28
|
-
const OAUTH_APP_OFFLINE_ACCESS_SCOPE = 'offline_access';
|
|
29
|
-
const IDENTITY_SCOPES = new Set(exports.OAUTH_APP_IDENTITY_SCOPES);
|
|
30
|
-
const SCOPE_NAMES = new Set(Object.values(oauth_scope_catalogue_1.OAuthScopeName));
|
|
31
|
-
const isOAuthScopeName = (scope) => SCOPE_NAMES.has(scope);
|
|
32
|
-
exports.isOAuthScopeName = isOAuthScopeName;
|
|
33
|
-
exports.OAUTH_APP_SCOPES_SUPPORTED = [
|
|
34
|
-
...Object.values(oauth_scope_catalogue_1.OAuthScopeName).filter((scope) => !IDENTITY_SCOPES.has(scope)),
|
|
35
|
-
...exports.OAUTH_APP_IDENTITY_SCOPES,
|
|
36
|
-
OAUTH_APP_OFFLINE_ACCESS_SCOPE,
|
|
37
|
-
];
|
|
38
|
-
const audiencesOfScopes = (scopes) => {
|
|
39
|
-
const audiences = new Set();
|
|
40
|
-
for (const scope of scopes) {
|
|
41
|
-
if ((0, exports.isOAuthScopeName)(scope)) {
|
|
42
|
-
audiences.add(oauth_scope_catalogue_1.OAUTH_SERVICE_AUDIENCE[oauth_scope_catalogue_1.OAUTH_SCOPE_CATALOGUE[scope].service]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return [...audiences];
|
|
46
|
-
};
|
|
47
|
-
exports.audiencesOfScopes = audiencesOfScopes;
|
|
48
|
-
//# sourceMappingURL=oauth-app.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-app.constants.js","sourceRoot":"","sources":["../../src/constants/oauth-app.constants.ts"],"names":[],"mappings":";;;AACA,mEAIiC;AAGpB,QAAA,0BAA0B,GAAG,WAAW,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