@abyss-project/main 42.3.0 → 42.5.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/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/oauth-app.constants.d.ts +22 -0
- package/dist/constants/oauth-app.constants.js +66 -0
- package/dist/constants/oauth-app.constants.js.map +1 -0
- package/dist/constants/tests/oauth-app.constants.spec.js +90 -0
- package/dist/constants/tests/oauth-app.constants.spec.js.map +1 -0
- package/dist/constants/tests/service-conformity.spec.js +0 -14
- package/dist/constants/tests/service-conformity.spec.js.map +1 -1
- package/dist/index.d.ts +19 -5
- package/dist/index.js +19 -5
- 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 +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/oauth-access-token.util.d.ts +27 -0
- package/dist/server/oauth-access-token.util.js +99 -0
- package/dist/server/oauth-access-token.util.js.map +1 -0
- package/dist/server/oauth-request-guard.util.d.ts +39 -0
- package/dist/server/oauth-request-guard.util.js +78 -0
- package/dist/server/oauth-request-guard.util.js.map +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 +142 -0
- package/dist/server/tests/oauth-access-token.util.spec.js.map +1 -0
- package/dist/server/tests/oauth-request-guard.util.spec.d.ts +1 -0
- package/dist/server/tests/oauth-request-guard.util.spec.js +155 -0
- package/dist/server/tests/oauth-request-guard.util.spec.js.map +1 -0
- package/dist/types/enum/abyss-service.enum.d.ts +1 -2
- package/dist/types/enum/abyss-service.enum.js +0 -2
- package/dist/types/enum/abyss-service.enum.js.map +1 -1
- 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 +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/oauth-app.enum.d.ts +59 -0
- package/dist/types/enum/oauth-app.enum.js +70 -0
- package/dist/types/enum/oauth-app.enum.js.map +1 -0
- 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 -2
- package/dist/types/interface/api/index.js +5 -2
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/index.d.ts +2 -1
- package/dist/types/interface/api/requests/index.js +2 -1
- 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/{responses/user-alias.admin.response.js → requests/oauth-application.request.js} +1 -1
- 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/{user-alias.admin.request.js → oauth-grant.request.js} +1 -1
- package/dist/types/interface/api/requests/oauth-grant.request.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +3 -1
- package/dist/types/interface/api/responses/index.js +3 -1
- 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-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/mcp/mcp-oauth.d.ts +2 -0
- package/dist/utils/abyss.utils.d.ts +1 -1
- package/dist/utils/abyss.utils.js +0 -2
- package/dist/utils/abyss.utils.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/api/tests/sdk-user-alias-admin.spec.js +0 -25
- package/dist/api/tests/sdk-user-alias-admin.spec.js.map +0 -1
- package/dist/api/user-alias.admin.api.d.ts +0 -4
- package/dist/api/user-alias.admin.api.js +0 -16
- package/dist/api/user-alias.admin.api.js.map +0 -1
- package/dist/types/interface/api/requests/user-alias.admin.request.d.ts +0 -7
- package/dist/types/interface/api/requests/user-alias.admin.request.js.map +0 -1
- package/dist/types/interface/api/responses/user-alias.admin.response.d.ts +0 -11
- package/dist/types/interface/api/responses/user-alias.admin.response.js.map +0 -1
- package/dist/utils/feature-switch.utils.d.ts +0 -1
- package/dist/utils/feature-switch.utils.js +0 -15
- package/dist/utils/feature-switch.utils.js.map +0 -1
- package/dist/utils/tests/feature-switch.utils.spec.js +0 -17
- package/dist/utils/tests/feature-switch.utils.spec.js.map +0 -1
- /package/dist/{api/tests/sdk-user-alias-admin.spec.d.ts → constants/tests/oauth-app.constants.spec.d.ts} +0 -0
- /package/dist/{utils/tests/feature-switch.utils.spec.d.ts → server/tests/api-cors-dynamic.util.spec.d.ts} +0 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -59,6 +59,9 @@ export * from './organization-mcp-connection.api';
|
|
|
59
59
|
export * from './mcp-connection.admin.api';
|
|
60
60
|
export * from './mcp-tool.admin.api';
|
|
61
61
|
export * from './oauth-authorization-request.api';
|
|
62
|
+
export * from './oauth-application.api';
|
|
63
|
+
export * from './oauth-application.admin.api';
|
|
64
|
+
export * from './oauth-grant.api';
|
|
62
65
|
export * from './activity.admin.api';
|
|
63
66
|
export * from './service-nudge.api';
|
|
64
67
|
export * from './service-nudge.public.api';
|
package/dist/api/index.js
CHANGED
|
@@ -75,6 +75,9 @@ __exportStar(require("./organization-mcp-connection.api"), exports);
|
|
|
75
75
|
__exportStar(require("./mcp-connection.admin.api"), exports);
|
|
76
76
|
__exportStar(require("./mcp-tool.admin.api"), exports);
|
|
77
77
|
__exportStar(require("./oauth-authorization-request.api"), exports);
|
|
78
|
+
__exportStar(require("./oauth-application.api"), exports);
|
|
79
|
+
__exportStar(require("./oauth-application.admin.api"), exports);
|
|
80
|
+
__exportStar(require("./oauth-grant.api"), exports);
|
|
78
81
|
__exportStar(require("./activity.admin.api"), exports);
|
|
79
82
|
__exportStar(require("./service-nudge.api"), exports);
|
|
80
83
|
__exportStar(require("./service-nudge.public.api"), exports);
|
package/dist/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,wDAAsC;AACtC,gDAA8B;AAC9B,4CAA0B;AAC1B,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,0DAAwC;AACxC,gEAA8C;AAC9C,kDAAgC;AAChC,wDAAsC;AACtC,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,oDAAkC;AAClC,gEAA8C;AAC9C,4DAA0C;AAC1C,kEAAgD;AAChD,sDAAoC;AACpC,gDAA8B;AAC9B,6DAA2C;AAC3C,uDAAqC;AACrC,gDAA8B;AAC9B,yDAAuC;AACvC,sDAAoC;AACpC,4EAA0D;AAC1D,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C;AAC1C,qDAAmC;AACnC,4DAA0C;AAC1C,kEAAgD;AAChD,6EAA2D;AAC3D,6DAA2C;AAC3C,qDAAmC;AACnC,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,qDAAmC;AACnC,6CAA2B;AAC3B,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,mDAAiC;AACjC,yDAAuC;AACvC,2DAAyC;AACzC,6DAA2C;AAC3C,sDAAoC;AACpC,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C;AAC5C,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,uDAAqC;AACrC,oEAAkD;AAClD,uDAAqC;AACrC,sDAAoC;AACpC,6DAA2C;AAC3C,4DAA0C;AAC1C,gDAA8B;AAC9B,sDAAoC;AACpC,oEAAkD;AAClD,0DAAwC;AACxC,2DAAyC;AACzC,mDAAiC;AACjC,6CAA2B;AAC3B,oEAAkD"}
|
|
1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-0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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
|
+
//# sourceMappingURL=oauth-application.admin.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-application.admin.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.admin.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAIxB,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICreateOAuthApplicationBody, ICreateOAuthApplicationProjectParams, IDeleteOAuthApplicationParams, IGetOAuthApplicationParams, IListOAuthApplicationProjectParams, IRegenerateSecretOAuthApplicationParams, IUpdateOAuthApplicationBody, IUpdateOAuthApplicationParams } from '../types/interface/api/requests/oauth-application.request';
|
|
2
|
+
import type { ICreateOAuthApplicationProjectResponse, IDeleteOAuthApplicationResponse, IGetOAuthApplicationResponse, 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>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
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
|
+
//# sourceMappingURL=oauth-application.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-application.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAoB/B,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAE1B,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAA0C,EACK,EAAE;IACjD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,WAAW,MAAM,CAAC,SAAS,IAAI,IAAI,EAAE,CACtC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,2BAA2B,+BAQtC;AAEK,MAAM,6BAA6B,GAAG,KAAK,EAChD,MAA4C,EAC5C,IAAiC,EACgB,EAAE;IACnD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,WAAW,MAAM,CAAC,SAAS,IAAI,IAAI,EAAE,EACrC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,6BAA6B,iCAUxC;AAEK,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE;IACzC,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAA+B,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC,CAC3F,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACrC,IAAiC,EACS,EAAE;IAC5C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,KAAK,CACzB,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,EACjC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACK,EAAE;IAC5C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAAkC,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC,CACjG,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,sBAAsB,0BAMjC;AAEK,MAAM,gCAAgC,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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { IDecideMcpOAuthAuthorizationRequestBody, IDecideMcpOAuthAuthorizationRequestParams, IGetOAuthAuthorizationRequestParams } from '../types/interface/api/requests/oauth-authorization-request.request';
|
|
2
|
-
import type { IDecideMcpOAuthAuthorizationRequestResponse, IGetOAuthAuthorizationRequestResponse } from '../types/interface/api/responses/oauth-authorization-request.response';
|
|
1
|
+
import type { IDecideMcpOAuthAuthorizationRequestBody, IDecideMcpOAuthAuthorizationRequestParams, IGetOAuthAuthorizationRequestParams, ILoginRequiredOAuthAuthorizationRequestParams } from '../types/interface/api/requests/oauth-authorization-request.request';
|
|
2
|
+
import type { IDecideMcpOAuthAuthorizationRequestResponse, IGetOAuthAuthorizationRequestResponse, ILoginRequiredOAuthAuthorizationRequestResponse } from '../types/interface/api/responses/oauth-authorization-request.response';
|
|
3
3
|
export declare const getOAuthAuthorizationRequest: (params: IGetOAuthAuthorizationRequestParams) => Promise<IGetOAuthAuthorizationRequestResponse>;
|
|
4
4
|
export declare const decideOAuthAuthorizationRequest: (params: IDecideMcpOAuthAuthorizationRequestParams, body: IDecideMcpOAuthAuthorizationRequestBody) => Promise<IDecideMcpOAuthAuthorizationRequestResponse>;
|
|
5
|
+
export declare const loginRequiredOAuthAuthorizationRequest: (params: ILoginRequiredOAuthAuthorizationRequestParams) => Promise<ILoginRequiredOAuthAuthorizationRequestResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decideOAuthAuthorizationRequest = exports.getOAuthAuthorizationRequest = void 0;
|
|
3
|
+
exports.loginRequiredOAuthAuthorizationRequest = exports.decideOAuthAuthorizationRequest = exports.getOAuthAuthorizationRequest = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const base = 'oauth/authorization-request';
|
|
6
6
|
const getOAuthAuthorizationRequest = async (params) => {
|
|
@@ -11,4 +11,8 @@ const decideOAuthAuthorizationRequest = async (params, body) => {
|
|
|
11
11
|
return (await __1.AbyssCore.axios.post(`${base}/${params.requestId}/decision`, body)).data;
|
|
12
12
|
};
|
|
13
13
|
exports.decideOAuthAuthorizationRequest = decideOAuthAuthorizationRequest;
|
|
14
|
+
const loginRequiredOAuthAuthorizationRequest = async (params) => {
|
|
15
|
+
return (await __1.AbyssCore.axios.post(`${base}/${params.requestId}/login-required`)).data;
|
|
16
|
+
};
|
|
17
|
+
exports.loginRequiredOAuthAuthorizationRequest = loginRequiredOAuthAuthorizationRequest;
|
|
14
18
|
//# sourceMappingURL=oauth-authorization-request.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-authorization-request.api.js","sourceRoot":"","sources":["../../src/api/oauth-authorization-request.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;
|
|
1
|
+
{"version":3,"file":"oauth-authorization-request.api.js","sourceRoot":"","sources":["../../src/api/oauth-authorization-request.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAa/B,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAEpC,MAAM,4BAA4B,GAAG,KAAK,EAC/C,MAA2C,EACK,EAAE;IAClD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAAwC,GAAG,IAAI,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC,CAChG,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,4BAA4B,gCAMvC;AAEK,MAAM,+BAA+B,GAAG,KAAK,EAClD,MAAiD,EACjD,IAA6C,EACS,EAAE;IACxD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,GAAG,IAAI,IAAI,MAAM,CAAC,SAAS,WAAW,EACtC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,+BAA+B,mCAU1C;AAGK,MAAM,sCAAsC,GAAG,KAAK,EACzD,MAAqD,EACK,EAAE;IAC5D,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,GAAG,IAAI,IAAI,MAAM,CAAC,SAAS,iBAAiB,CAC7C,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,sCAAsC,0CAQjD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IRevokeOAuthGrantParams } from '../types/interface/api/requests/oauth-grant.request';
|
|
2
|
+
import type { IListOAuthGrantUserResponse, IRevokeOAuthGrantResponse } from '../types/interface/api/responses/oauth-grant.response';
|
|
3
|
+
export declare const listOAuthGrantUser: () => Promise<IListOAuthGrantUserResponse>;
|
|
4
|
+
export declare const revokeOAuthGrant: (params: IRevokeOAuthGrantParams) => Promise<IRevokeOAuthGrantResponse>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.revokeOAuthGrant = 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 revokeOAuthGrant = async (params) => {
|
|
11
|
+
return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}`))
|
|
12
|
+
.data;
|
|
13
|
+
};
|
|
14
|
+
exports.revokeOAuthGrant = revokeOAuthGrant;
|
|
15
|
+
//# sourceMappingURL=oauth-grant.api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-grant.api.js","sourceRoot":"","sources":["../../src/api/oauth-grant.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAO/B,MAAM,IAAI,GAAG,aAAa,CAAC;AAEpB,MAAM,kBAAkB,GAAG,KAAK,IAA0C,EAAE;IACjF,OAAO,CAAC,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAA8B,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1F,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEK,MAAM,gBAAgB,GAAG,KAAK,EACnC,MAA+B,EACK,EAAE;IACtC,OAAO,CAAC,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAA4B,GAAG,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;SAC1F,IAAI,CAAC;AACV,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B"}
|
|
@@ -19,6 +19,7 @@ export * from './commercial-gesture.constants';
|
|
|
19
19
|
export * from './overage-invoice.constants';
|
|
20
20
|
export * from './unpaid-invoice.constants';
|
|
21
21
|
export * from './mcp.constants';
|
|
22
|
+
export * from './oauth-app.constants';
|
|
22
23
|
export * from './activity.constants';
|
|
23
24
|
export * from './key-action-catalog.constants';
|
|
24
25
|
export * from './demo-scenarios.constants';
|
package/dist/constants/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __exportStar(require("./commercial-gesture.constants"), exports);
|
|
|
35
35
|
__exportStar(require("./overage-invoice.constants"), exports);
|
|
36
36
|
__exportStar(require("./unpaid-invoice.constants"), exports);
|
|
37
37
|
__exportStar(require("./mcp.constants"), exports);
|
|
38
|
+
__exportStar(require("./oauth-app.constants"), exports);
|
|
38
39
|
__exportStar(require("./activity.constants"), exports);
|
|
39
40
|
__exportStar(require("./key-action-catalog.constants"), exports);
|
|
40
41
|
__exportStar(require("./demo-scenarios.constants"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,2DAAyC;AACzC,gEAA8C;AAC9C,8DAA4C;AAC5C,mEAAiD;AACjD,oDAAkC;AAClC,8DAA4C;AAC5C,6DAA2C;AAC3C,mDAAiC;AACjC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,6DAA2C;AAC3C,2DAAyC;AACzC,iEAA+C;AAC/C,8DAA4C;AAC5C,6DAA2C;AAC3C,kDAAgC;AAChC,uDAAqC;AACrC,iEAA+C;AAC/C,6DAA2C;AAC3C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,2DAAyC;AACzC,gEAA8C;AAC9C,8DAA4C;AAC5C,mEAAiD;AACjD,oDAAkC;AAClC,8DAA4C;AAC5C,6DAA2C;AAC3C,mDAAiC;AACjC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,6DAA2C;AAC3C,2DAAyC;AACzC,iEAA+C;AAC/C,8DAA4C;AAC5C,6DAA2C;AAC3C,kDAAgC;AAChC,wDAAsC;AACtC,uDAAqC;AACrC,iEAA+C;AAC/C,6DAA2C;AAC3C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OAuthAppAccess, OAuthAppProduct, OAuthAudience } from '../types/enum/oauth-app.enum';
|
|
2
|
+
export declare const OAUTH_APP_CLIENT_ID_PREFIX = "abys_app_";
|
|
3
|
+
export declare const OAUTH_APP_CLIENT_SECRET_PREFIX = "abys_apsec_";
|
|
4
|
+
export declare const OAUTH_APP_REFRESH_TOKEN_PREFIX = "abys_aprt_";
|
|
5
|
+
export declare const OAUTH_APP_ACCESS_TOKEN_TYPE = "at+jwt";
|
|
6
|
+
export declare const OAUTH_APP_ACCESS_TOKEN_TTL_SECONDS = 900;
|
|
7
|
+
export declare const OAUTH_APP_REFRESH_TOKEN_TTL_SECONDS: number;
|
|
8
|
+
export declare const OAUTH_APP_CODE_TTL_SECONDS = 60;
|
|
9
|
+
export declare const OAUTH_APP_REQUEST_TTL_SECONDS = 600;
|
|
10
|
+
export declare const OAUTH_APP_MAX_PER_PROJECT = 25;
|
|
11
|
+
export declare const OAUTH_APP_MAX_REDIRECT_URIS = 10;
|
|
12
|
+
export declare const OAUTH_APP_MAX_ORIGINS = 10;
|
|
13
|
+
export declare const OAUTH_APP_NAME_MAX_LENGTH = 100;
|
|
14
|
+
export declare const OAUTH_APP_DESCRIPTION_MAX_LENGTH = 500;
|
|
15
|
+
export declare const OAUTH_APP_PRODUCT_AUDIENCE: Record<OAuthAppProduct, OAuthAudience>;
|
|
16
|
+
export declare const oauthAppScopeOf: (product: OAuthAppProduct, access: OAuthAppAccess) => `${OAuthAppProduct}:${OAuthAppAccess}`;
|
|
17
|
+
export declare const OAUTH_APP_OPENID_SCOPE = "openid";
|
|
18
|
+
export declare const OAUTH_APP_IDENTITY_SCOPES: readonly ["openid", "profile", "email"];
|
|
19
|
+
export declare const OAUTH_ID_TOKEN_TTL_SECONDS = 900;
|
|
20
|
+
export declare const OAUTH_NONCE_MAX_LENGTH = 512;
|
|
21
|
+
export declare const OAUTH_APP_SCOPES_SUPPORTED: ReadonlyArray<string>;
|
|
22
|
+
export declare const audiencesOfScopes: (scopes: readonly string[]) => OAuthAudience[];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.audiencesOfScopes = exports.OAUTH_APP_SCOPES_SUPPORTED = exports.OAUTH_NONCE_MAX_LENGTH = exports.OAUTH_ID_TOKEN_TTL_SECONDS = exports.OAUTH_APP_IDENTITY_SCOPES = exports.OAUTH_APP_OPENID_SCOPE = exports.oauthAppScopeOf = exports.OAUTH_APP_PRODUCT_AUDIENCE = 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_app_enum_1 = require("../types/enum/oauth-app.enum");
|
|
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_PRODUCT_AUDIENCE = {
|
|
19
|
+
[oauth_app_enum_1.OAuthAppProduct.WORKSPACE]: oauth_app_enum_1.OAuthAudience.ABYSS_WORKSPACE,
|
|
20
|
+
[oauth_app_enum_1.OAuthAppProduct.BEAM]: oauth_app_enum_1.OAuthAudience.ABYSS_BEAM,
|
|
21
|
+
[oauth_app_enum_1.OAuthAppProduct.EXTRACT]: oauth_app_enum_1.OAuthAudience.ABYSS_EXTRACT,
|
|
22
|
+
[oauth_app_enum_1.OAuthAppProduct.PROBE]: oauth_app_enum_1.OAuthAudience.ABYSS_PROBE,
|
|
23
|
+
[oauth_app_enum_1.OAuthAppProduct.CLOUD]: oauth_app_enum_1.OAuthAudience.ABYSS_CLOUD,
|
|
24
|
+
[oauth_app_enum_1.OAuthAppProduct.CRYPT]: oauth_app_enum_1.OAuthAudience.ABYSS_CRYPT,
|
|
25
|
+
[oauth_app_enum_1.OAuthAppProduct.FORM]: oauth_app_enum_1.OAuthAudience.ABYSS_FORM,
|
|
26
|
+
[oauth_app_enum_1.OAuthAppProduct.MEMORIES]: oauth_app_enum_1.OAuthAudience.ABYSS_MEMORIES,
|
|
27
|
+
[oauth_app_enum_1.OAuthAppProduct.SPOTLIGHT]: oauth_app_enum_1.OAuthAudience.ABYSS_SPOTLIGHT,
|
|
28
|
+
[oauth_app_enum_1.OAuthAppProduct.BANKING]: oauth_app_enum_1.OAuthAudience.ABYSS_BANKING,
|
|
29
|
+
[oauth_app_enum_1.OAuthAppProduct.TRAINING]: oauth_app_enum_1.OAuthAudience.ABYSS_TRAINING,
|
|
30
|
+
[oauth_app_enum_1.OAuthAppProduct.STORAGE]: oauth_app_enum_1.OAuthAudience.ABYSS_STORAGE,
|
|
31
|
+
[oauth_app_enum_1.OAuthAppProduct.MONITOR]: oauth_app_enum_1.OAuthAudience.ABYSS_MONITOR,
|
|
32
|
+
[oauth_app_enum_1.OAuthAppProduct.CONSOLE]: oauth_app_enum_1.OAuthAudience.ABYSS_CONSOLE,
|
|
33
|
+
[oauth_app_enum_1.OAuthAppProduct.REFLEX]: oauth_app_enum_1.OAuthAudience.ABYSS_REFLEX,
|
|
34
|
+
};
|
|
35
|
+
const oauthAppScopeOf = (product, access) => `${product}:${access}`;
|
|
36
|
+
exports.oauthAppScopeOf = oauthAppScopeOf;
|
|
37
|
+
exports.OAUTH_APP_OPENID_SCOPE = 'openid';
|
|
38
|
+
exports.OAUTH_APP_IDENTITY_SCOPES = [exports.OAUTH_APP_OPENID_SCOPE, 'profile', 'email'];
|
|
39
|
+
exports.OAUTH_ID_TOKEN_TTL_SECONDS = 900;
|
|
40
|
+
exports.OAUTH_NONCE_MAX_LENGTH = 512;
|
|
41
|
+
const OAUTH_APP_OFFLINE_ACCESS_SCOPE = 'offline_access';
|
|
42
|
+
exports.OAUTH_APP_SCOPES_SUPPORTED = [
|
|
43
|
+
...Object.values(oauth_app_enum_1.OAuthAppProduct).flatMap((product) => Object.values(oauth_app_enum_1.OAuthAppAccess).map((access) => (0, exports.oauthAppScopeOf)(product, access))),
|
|
44
|
+
...exports.OAUTH_APP_IDENTITY_SCOPES,
|
|
45
|
+
OAUTH_APP_OFFLINE_ACCESS_SCOPE,
|
|
46
|
+
];
|
|
47
|
+
const PRODUCT_BY_VALUE = new Map(Object.values(oauth_app_enum_1.OAuthAppProduct).map((product) => [product, product]));
|
|
48
|
+
const ACCESS_VALUES = new Set(Object.values(oauth_app_enum_1.OAuthAppAccess));
|
|
49
|
+
const IDENTITY_SCOPES = new Set(exports.OAUTH_APP_IDENTITY_SCOPES);
|
|
50
|
+
const audiencesOfScopes = (scopes) => {
|
|
51
|
+
const audiences = new Set();
|
|
52
|
+
for (const scope of scopes) {
|
|
53
|
+
if (IDENTITY_SCOPES.has(scope)) {
|
|
54
|
+
audiences.add(oauth_app_enum_1.OAuthAudience.ABYSS_MAIN);
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
const [productPart, accessPart, ...rest] = scope.split(':');
|
|
58
|
+
const product = PRODUCT_BY_VALUE.get(productPart);
|
|
59
|
+
if (product !== undefined && rest.length === 0 && ACCESS_VALUES.has(accessPart ?? '')) {
|
|
60
|
+
audiences.add(exports.OAUTH_APP_PRODUCT_AUDIENCE[product]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return [...audiences];
|
|
64
|
+
};
|
|
65
|
+
exports.audiencesOfScopes = audiencesOfScopes;
|
|
66
|
+
//# sourceMappingURL=oauth-app.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-app.constants.js","sourceRoot":"","sources":["../../src/constants/oauth-app.constants.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AG,CAAC,MAAM,CAAC,MAAM,CAAC,+BAAc,CAAC,CAAC,CAAC;AAElF,MAAM,eAAe,GAAwB,IAAI,GAAG,CAAC,iCAAyB,CAAC,CAAC;AAOzE,MAAM,iBAAiB,GAAG,CAAC,MAAyB,EAAmB,EAAE;IAC9E,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiB,CAAC;IAC3C,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/B,SAAS,CAAC,GAAG,CAAC,8BAAa,CAAC,UAAU,CAAC,CAAC;YACxC,SAAS;QACX,CAAC;QACD,MAAM,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAClD,IAAI,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,EAAE,CAAC;YACtF,SAAS,CAAC,GAAG,CAAC,kCAA0B,CAAC,OAAO,CAAC,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;AACxB,CAAC,CAAC;AAdW,QAAA,iBAAiB,qBAc5B"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mcp_constants_1 = require("../mcp.constants");
|
|
4
|
+
const oauth_app_constants_1 = require("../oauth-app.constants");
|
|
5
|
+
const oauth_app_enum_1 = require("../../types/enum/oauth-app.enum");
|
|
6
|
+
const PERSONAL_API_KEY_PREFIX = 'abyk_';
|
|
7
|
+
const MCP_DCR_CLIENT_ID_PREFIX = 'abys_dcr_';
|
|
8
|
+
describe('oauth-app.constants', () => {
|
|
9
|
+
describe('prefixes', () => {
|
|
10
|
+
const prefixes = [
|
|
11
|
+
oauth_app_constants_1.OAUTH_APP_CLIENT_ID_PREFIX,
|
|
12
|
+
oauth_app_constants_1.OAUTH_APP_CLIENT_SECRET_PREFIX,
|
|
13
|
+
oauth_app_constants_1.OAUTH_APP_REFRESH_TOKEN_PREFIX,
|
|
14
|
+
mcp_constants_1.MCP_STATIC_TOKEN_PREFIX,
|
|
15
|
+
mcp_constants_1.MCP_ACCESS_TOKEN_PREFIX,
|
|
16
|
+
mcp_constants_1.MCP_REFRESH_TOKEN_PREFIX,
|
|
17
|
+
MCP_DCR_CLIENT_ID_PREFIX,
|
|
18
|
+
PERSONAL_API_KEY_PREFIX,
|
|
19
|
+
];
|
|
20
|
+
it('are distinct and none is a prefix of another', () => {
|
|
21
|
+
expect(new Set(prefixes).size).toBe(prefixes.length);
|
|
22
|
+
for (const prefix of prefixes) {
|
|
23
|
+
for (const otherPrefix of prefixes) {
|
|
24
|
+
if (prefix !== otherPrefix) {
|
|
25
|
+
expect(otherPrefix.startsWith(prefix)).toBe(false);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe('scopes', () => {
|
|
32
|
+
it('oauthAppScopeOf joins the product and the access', () => {
|
|
33
|
+
expect((0, oauth_app_constants_1.oauthAppScopeOf)(oauth_app_enum_1.OAuthAppProduct.CLOUD, oauth_app_enum_1.OAuthAppAccess.READ)).toBe('cloud:read');
|
|
34
|
+
expect((0, oauth_app_constants_1.oauthAppScopeOf)(oauth_app_enum_1.OAuthAppProduct.REFLEX, oauth_app_enum_1.OAuthAppAccess.WRITE)).toBe('reflex:write');
|
|
35
|
+
});
|
|
36
|
+
it('supports every product read and write, then openid, profile, email and offline_access', () => {
|
|
37
|
+
const productScopes = Object.values(oauth_app_enum_1.OAuthAppProduct).flatMap((product) => [
|
|
38
|
+
`${product}:read`,
|
|
39
|
+
`${product}:write`,
|
|
40
|
+
]);
|
|
41
|
+
expect(oauth_app_constants_1.OAUTH_APP_SCOPES_SUPPORTED).toEqual([
|
|
42
|
+
...productScopes,
|
|
43
|
+
'openid',
|
|
44
|
+
'profile',
|
|
45
|
+
'email',
|
|
46
|
+
'offline_access',
|
|
47
|
+
]);
|
|
48
|
+
expect(productScopes).toHaveLength(30);
|
|
49
|
+
expect(oauth_app_constants_1.OAUTH_APP_IDENTITY_SCOPES).toEqual(['openid', 'profile', 'email']);
|
|
50
|
+
});
|
|
51
|
+
it('maps every product to its own audience, never abyss-main', () => {
|
|
52
|
+
const audiences = Object.values(oauth_app_constants_1.OAUTH_APP_PRODUCT_AUDIENCE);
|
|
53
|
+
expect(Object.keys(oauth_app_constants_1.OAUTH_APP_PRODUCT_AUDIENCE).sort()).toEqual(Object.values(oauth_app_enum_1.OAuthAppProduct).sort());
|
|
54
|
+
expect(new Set(audiences).size).toBe(audiences.length);
|
|
55
|
+
expect(audiences).not.toContain(oauth_app_enum_1.OAuthAudience.ABYSS_MAIN);
|
|
56
|
+
expect([...audiences, oauth_app_enum_1.OAuthAudience.ABYSS_MAIN].sort()).toEqual(Object.values(oauth_app_enum_1.OAuthAudience).sort());
|
|
57
|
+
for (const product of Object.values(oauth_app_enum_1.OAuthAppProduct)) {
|
|
58
|
+
expect(oauth_app_constants_1.OAUTH_APP_PRODUCT_AUDIENCE[product]).toBe(`abyss-${product}`);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
describe('audiencesOfScopes', () => {
|
|
63
|
+
it('gives the audience of each product once, read and write alike', () => {
|
|
64
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)(['cloud:read', 'cloud:write', 'form:write'])).toEqual([
|
|
65
|
+
oauth_app_enum_1.OAuthAudience.ABYSS_CLOUD,
|
|
66
|
+
oauth_app_enum_1.OAuthAudience.ABYSS_FORM,
|
|
67
|
+
]);
|
|
68
|
+
});
|
|
69
|
+
it('adds abyss-main once for openid, profile or email', () => {
|
|
70
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)(['profile'])).toEqual([oauth_app_enum_1.OAuthAudience.ABYSS_MAIN]);
|
|
71
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)(['openid'])).toEqual([oauth_app_enum_1.OAuthAudience.ABYSS_MAIN]);
|
|
72
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)(['email', 'workspace:read', 'profile'])).toEqual([
|
|
73
|
+
oauth_app_enum_1.OAuthAudience.ABYSS_MAIN,
|
|
74
|
+
oauth_app_enum_1.OAuthAudience.ABYSS_WORKSPACE,
|
|
75
|
+
]);
|
|
76
|
+
});
|
|
77
|
+
it('adds nothing for offline_access, an unknown scope or a malformed one', () => {
|
|
78
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)([
|
|
79
|
+
'offline_access',
|
|
80
|
+
'abyss:read',
|
|
81
|
+
'cloud:admin',
|
|
82
|
+
'cloud',
|
|
83
|
+
'cloud:read:extra',
|
|
84
|
+
'monitor:read',
|
|
85
|
+
])).toEqual([oauth_app_enum_1.OAuthAudience.ABYSS_MONITOR]);
|
|
86
|
+
expect((0, oauth_app_constants_1.audiencesOfScopes)([])).toEqual([]);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=oauth-app.constants.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-app.constants.spec.js","sourceRoot":"","sources":["../../../src/constants/tests/oauth-app.constants.spec.ts"],"names":[],"mappings":";;AAAA,oDAI0B;AAC1B,gEASgC;AAChC,oEAAiG;AAGjG,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAExC,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAE7C,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACxB,MAAM,QAAQ,GAAG;YAC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 Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const billing_metric_label_labels_1 = require("../../billing-metric-label/billing-metric-label.labels");
|
|
4
4
|
const abyss_service_enum_1 = require("../../types/enum/abyss-service.enum");
|
|
5
5
|
const organization_billing_enum_1 = require("../../types/enum/organization-billing.enum");
|
|
6
|
-
const abyss_utils_1 = require("../../utils/abyss.utils");
|
|
7
6
|
const invoice_line_label_utils_1 = require("../../utils/invoice-line-label.utils");
|
|
8
7
|
const billing_catalog_constants_1 = require("../billing-catalog.constants");
|
|
9
8
|
const enforcement_registry_constants_1 = require("../enforcement-registry.constants");
|
|
@@ -45,17 +44,4 @@ describe('conformité des listes de services de facturation', () => {
|
|
|
45
44
|
expect(Object.values(abyss_service_enum_1.AbyssGame).filter((game) => services.includes(game))).toStrictEqual([]);
|
|
46
45
|
});
|
|
47
46
|
});
|
|
48
|
-
describe('AbyssPlay (ADR-0327)', () => {
|
|
49
|
-
it('is published as a game whatever the API switch says, with a name and a stored value', () => {
|
|
50
|
-
expect(abyss_service_enum_1.AbyssGame.PLAY).toBe('ABYSS_GAME_PLAY');
|
|
51
|
-
expect(abyss_service_enum_1.ABYSS_GAME_NAMES[abyss_service_enum_1.AbyssGame.PLAY]).toBe('AbyssPlay');
|
|
52
|
-
expect((0, abyss_utils_1.getServiceName)(abyss_service_enum_1.AbyssGame.PLAY)).toBe('Play');
|
|
53
|
-
});
|
|
54
|
-
it('names every game', () => {
|
|
55
|
-
expect(Object.keys(abyss_service_enum_1.ABYSS_GAME_NAMES).sort()).toStrictEqual(Object.values(abyss_service_enum_1.AbyssGame).sort());
|
|
56
|
-
});
|
|
57
|
-
it('is never a billed service nor one of the offered services', () => {
|
|
58
|
-
expect(abyss_service_enum_1.ENABLED_ABYSS_SERVICES).not.toContain(abyss_service_enum_1.AbyssGame.PLAY);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
47
|
//# sourceMappingURL=service-conformity.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-conformity.spec.js","sourceRoot":"","sources":["../../../src/constants/tests/service-conformity.spec.ts"],"names":[],"mappings":";;AAAA,wGAA+F;AAC/F,
|
|
1
|
+
{"version":3,"file":"service-conformity.spec.js","sourceRoot":"","sources":["../../../src/constants/tests/service-conformity.spec.ts"],"names":[],"mappings":";;AAAA,wGAA+F;AAC/F,4EAI6C;AAC7C,0FAIoD;AACpD,mFAA6E;AAC7E,4EAAqF;AACrF,sFAAyE;AACzE,gFAAmE;AAEnE,MAAM,MAAM,GAAG,CAAC,MAAyB,EAAY,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAC3E,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,0CAAc,CAAa,CAAC;AAElE,QAAQ,CAAC,kDAAkD,EAAE,GAAG,EAAE;IAChE,EAAE,CAAC,mEAAmE,EAAE,GAAG,EAAE;QAC3E,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,gDAAqB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;QAC1F,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,oDAAwB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/F,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mEAAmE,EAAE,GAAG,EAAE;QAC3E,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,yCAAa,CAAC,CAAC,CAAC;QACrD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,uCAAW,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,qDAAoB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,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,aAAa,CAAC,0CAAc,CAAC,CAAC;QACnD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,iCAAY,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC,CAAC;IAMH,EAAE,CAAC,8EAA8E,EAAE,GAAG,EAAE;QACtF,MAAM,YAAY,GAAmB,CAAC,iCAAY,CAAC,UAAU,EAAE,iCAAY,CAAC,YAAY,CAAC,CAAC;QAC1F,MAAM,CAAC,MAAM,CAAC,2CAAsB,CAAC,CAAC,CAAC,aAAa,CAClD,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAuB,CAAC,CAAC,CAAC,CAC7F,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+EAA+E,EAAE,GAAG,EAAE;QACvF,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAY,CAAa,CAAC;QACzD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,8BAAS,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAC/F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ import * as reportNotificationAudienceApi from './api/report-notification-audien
|
|
|
55
55
|
import * as reportNotificationSubscriptionApi from './api/report-notification-subscription.api';
|
|
56
56
|
import * as crashReportPublicApi from './api/crash-report.public.api';
|
|
57
57
|
import * as userAliasPublicApi from './api/user-alias.public.api';
|
|
58
|
-
import * as userAliasAdminApi from './api/user-alias.admin.api';
|
|
59
58
|
import * as organizationAdminApi from './api/organization.admin.api';
|
|
60
59
|
import * as organizationApi from './api/organization.api';
|
|
61
60
|
import * as organizationMemberApi from './api/organization-member.api';
|
|
@@ -80,6 +79,9 @@ import * as organizationMcpConnectionApi from './api/organization-mcp-connection
|
|
|
80
79
|
import * as mcpConnectionAdminApi from './api/mcp-connection.admin.api';
|
|
81
80
|
import * as mcpToolAdminApi from './api/mcp-tool.admin.api';
|
|
82
81
|
import * as oauthAuthorizationRequestApi from './api/oauth-authorization-request.api';
|
|
82
|
+
import * as oauthApplicationApi from './api/oauth-application.api';
|
|
83
|
+
import * as oauthApplicationAdminApi from './api/oauth-application.admin.api';
|
|
84
|
+
import * as oauthGrantApi from './api/oauth-grant.api';
|
|
83
85
|
import * as supportTicketApi from './api/support-ticket.api';
|
|
84
86
|
import * as supportTicketOrgApi from './api/support-ticket-org.api';
|
|
85
87
|
import * as supportTicketAdminApi from './api/support-ticket.admin.api';
|
|
@@ -792,10 +794,6 @@ type AbyssCoreSDK = {
|
|
|
792
794
|
userAlias: {
|
|
793
795
|
suggest: typeof userAliasPublicApi.suggestUserAliasPublic;
|
|
794
796
|
check: typeof userAliasPublicApi.checkUserAliasPublic;
|
|
795
|
-
admin: {
|
|
796
|
-
suggest: typeof userAliasAdminApi.suggestUserAliasAdmin;
|
|
797
|
-
check: typeof userAliasAdminApi.checkUserAliasAdmin;
|
|
798
|
-
};
|
|
799
797
|
};
|
|
800
798
|
billingPlan: {
|
|
801
799
|
list: typeof billingPlanApi.listBillingPlans;
|
|
@@ -1053,6 +1051,22 @@ type AbyssCoreSDK = {
|
|
|
1053
1051
|
oauthAuthorizationRequest: {
|
|
1054
1052
|
get: typeof oauthAuthorizationRequestApi.getOAuthAuthorizationRequest;
|
|
1055
1053
|
decide: typeof oauthAuthorizationRequestApi.decideOAuthAuthorizationRequest;
|
|
1054
|
+
loginRequired: typeof oauthAuthorizationRequestApi.loginRequiredOAuthAuthorizationRequest;
|
|
1055
|
+
};
|
|
1056
|
+
oauthApplication: {
|
|
1057
|
+
list: typeof oauthApplicationApi.listOAuthApplicationProject;
|
|
1058
|
+
create: typeof oauthApplicationApi.createOAuthApplicationProject;
|
|
1059
|
+
get: typeof oauthApplicationApi.getOAuthApplication;
|
|
1060
|
+
update: typeof oauthApplicationApi.updateOAuthApplication;
|
|
1061
|
+
delete: typeof oauthApplicationApi.deleteOAuthApplication;
|
|
1062
|
+
regenerateSecret: typeof oauthApplicationApi.regenerateSecretOAuthApplication;
|
|
1063
|
+
admin: {
|
|
1064
|
+
listAllowedOrigins: typeof oauthApplicationAdminApi.listAllowedOriginsOAuthApplicationAdmin;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
oauthGrant: {
|
|
1068
|
+
list: typeof oauthGrantApi.listOAuthGrantUser;
|
|
1069
|
+
revoke: typeof oauthGrantApi.revokeOAuthGrant;
|
|
1056
1070
|
};
|
|
1057
1071
|
};
|
|
1058
1072
|
export declare class AbyssCore {
|
package/dist/index.js
CHANGED
|
@@ -99,7 +99,6 @@ const reportNotificationAudienceApi = __importStar(require("./api/report-notific
|
|
|
99
99
|
const reportNotificationSubscriptionApi = __importStar(require("./api/report-notification-subscription.api"));
|
|
100
100
|
const crashReportPublicApi = __importStar(require("./api/crash-report.public.api"));
|
|
101
101
|
const userAliasPublicApi = __importStar(require("./api/user-alias.public.api"));
|
|
102
|
-
const userAliasAdminApi = __importStar(require("./api/user-alias.admin.api"));
|
|
103
102
|
const organizationAdminApi = __importStar(require("./api/organization.admin.api"));
|
|
104
103
|
const organizationApi = __importStar(require("./api/organization.api"));
|
|
105
104
|
const organizationMemberApi = __importStar(require("./api/organization-member.api"));
|
|
@@ -124,6 +123,9 @@ const organizationMcpConnectionApi = __importStar(require("./api/organization-mc
|
|
|
124
123
|
const mcpConnectionAdminApi = __importStar(require("./api/mcp-connection.admin.api"));
|
|
125
124
|
const mcpToolAdminApi = __importStar(require("./api/mcp-tool.admin.api"));
|
|
126
125
|
const oauthAuthorizationRequestApi = __importStar(require("./api/oauth-authorization-request.api"));
|
|
126
|
+
const oauthApplicationApi = __importStar(require("./api/oauth-application.api"));
|
|
127
|
+
const oauthApplicationAdminApi = __importStar(require("./api/oauth-application.admin.api"));
|
|
128
|
+
const oauthGrantApi = __importStar(require("./api/oauth-grant.api"));
|
|
127
129
|
const supportTicketApi = __importStar(require("./api/support-ticket.api"));
|
|
128
130
|
const supportTicketOrgApi = __importStar(require("./api/support-ticket-org.api"));
|
|
129
131
|
const supportTicketAdminApi = __importStar(require("./api/support-ticket.admin.api"));
|
|
@@ -844,10 +846,6 @@ class AbyssCore {
|
|
|
844
846
|
userAlias: {
|
|
845
847
|
suggest: userAliasPublicApi.suggestUserAliasPublic,
|
|
846
848
|
check: userAliasPublicApi.checkUserAliasPublic,
|
|
847
|
-
admin: {
|
|
848
|
-
suggest: userAliasAdminApi.suggestUserAliasAdmin,
|
|
849
|
-
check: userAliasAdminApi.checkUserAliasAdmin,
|
|
850
|
-
},
|
|
851
849
|
},
|
|
852
850
|
billingPlan: {
|
|
853
851
|
list: billingPlanApi.listBillingPlans,
|
|
@@ -1105,6 +1103,22 @@ class AbyssCore {
|
|
|
1105
1103
|
oauthAuthorizationRequest: {
|
|
1106
1104
|
get: oauthAuthorizationRequestApi.getOAuthAuthorizationRequest,
|
|
1107
1105
|
decide: oauthAuthorizationRequestApi.decideOAuthAuthorizationRequest,
|
|
1106
|
+
loginRequired: oauthAuthorizationRequestApi.loginRequiredOAuthAuthorizationRequest,
|
|
1107
|
+
},
|
|
1108
|
+
oauthApplication: {
|
|
1109
|
+
list: oauthApplicationApi.listOAuthApplicationProject,
|
|
1110
|
+
create: oauthApplicationApi.createOAuthApplicationProject,
|
|
1111
|
+
get: oauthApplicationApi.getOAuthApplication,
|
|
1112
|
+
update: oauthApplicationApi.updateOAuthApplication,
|
|
1113
|
+
delete: oauthApplicationApi.deleteOAuthApplication,
|
|
1114
|
+
regenerateSecret: oauthApplicationApi.regenerateSecretOAuthApplication,
|
|
1115
|
+
admin: {
|
|
1116
|
+
listAllowedOrigins: oauthApplicationAdminApi.listAllowedOriginsOAuthApplicationAdmin,
|
|
1117
|
+
},
|
|
1118
|
+
},
|
|
1119
|
+
oauthGrant: {
|
|
1120
|
+
list: oauthGrantApi.listOAuthGrantUser,
|
|
1121
|
+
revoke: oauthGrantApi.revokeOAuthGrant,
|
|
1108
1122
|
},
|
|
1109
1123
|
};
|
|
1110
1124
|
}
|