@servicelabsco/slabs-access-manager 1.0.53 → 1.0.54
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/access/controllers/device.auth.controller.d.ts +44 -0
- package/dist/access/controllers/device.auth.controller.js +69 -0
- package/dist/access/controllers/device.auth.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +3 -0
- package/dist/access/controllers/index.js +3 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/controllers/oauth.as.controller.d.ts +52 -0
- package/dist/access/controllers/oauth.as.controller.js +117 -0
- package/dist/access/controllers/oauth.as.controller.js.map +1 -0
- package/dist/access/controllers/oauth.discovery.controller.d.ts +16 -0
- package/dist/access/controllers/oauth.discovery.controller.js +35 -0
- package/dist/access/controllers/oauth.discovery.controller.js.map +1 -0
- package/dist/access/dtos/device.decide.dto.d.ts +5 -0
- package/dist/access/dtos/device.decide.dto.js +36 -0
- package/dist/access/dtos/device.decide.dto.js.map +1 -0
- package/dist/access/dtos/device.poll.dto.d.ts +3 -0
- package/dist/access/dtos/device.poll.dto.js +24 -0
- package/dist/access/dtos/device.poll.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +4 -0
- package/dist/access/dtos/index.js +4 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/oauth.consent.decide.dto.d.ts +5 -0
- package/dist/access/dtos/oauth.consent.decide.dto.js +38 -0
- package/dist/access/dtos/oauth.consent.decide.dto.js.map +1 -0
- package/dist/access/dtos/oauth.register.dto.d.ts +7 -0
- package/dist/access/dtos/oauth.register.dto.js +51 -0
- package/dist/access/dtos/oauth.register.dto.js.map +1 -0
- package/dist/access/entities/device.code.entity.d.ts +17 -0
- package/dist/access/entities/device.code.entity.js +74 -0
- package/dist/access/entities/device.code.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +3 -0
- package/dist/access/entities/index.js +3 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/menu.action.entity.d.ts +1 -0
- package/dist/access/entities/menu.action.entity.js +4 -0
- package/dist/access/entities/menu.action.entity.js.map +1 -1
- package/dist/access/entities/oauth.authorization.entity.d.ts +23 -0
- package/dist/access/entities/oauth.authorization.entity.js +98 -0
- package/dist/access/entities/oauth.authorization.entity.js.map +1 -0
- package/dist/access/entities/oauth.client.entity.d.ts +10 -0
- package/dist/access/entities/oauth.client.entity.js +49 -0
- package/dist/access/entities/oauth.client.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +23 -6
- package/dist/access/es6.classes.js +34 -1
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/libraries/evaluate.email.rule.js.map +1 -1
- package/dist/access/libraries/extract.client.credentials.d.ts +12 -0
- package/dist/access/libraries/extract.client.credentials.js +41 -0
- package/dist/access/libraries/extract.client.credentials.js.map +1 -0
- package/dist/access/libraries/index.d.ts +2 -0
- package/dist/access/libraries/index.js +2 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/oauth.pkce.d.ts +6 -0
- package/dist/access/libraries/oauth.pkce.js +25 -0
- package/dist/access/libraries/oauth.pkce.js.map +1 -0
- package/dist/access/libraries/process.email.notification.js +3 -3
- package/dist/access/libraries/process.email.notification.js.map +1 -1
- package/dist/access/libraries/process.internal.notification.js +3 -3
- package/dist/access/libraries/process.internal.notification.js.map +1 -1
- package/dist/access/libraries/sanitize.email.addresses.d.ts +3 -1
- package/dist/access/libraries/sanitize.email.addresses.js +28 -25
- package/dist/access/libraries/sanitize.email.addresses.js.map +1 -1
- package/dist/access/libraries/send.email.notification.js +1 -1
- package/dist/access/libraries/send.email.notification.js.map +1 -1
- package/dist/access/middlewares/external.access.middleware.d.ts +3 -5
- package/dist/access/middlewares/external.access.middleware.js +9 -17
- package/dist/access/middlewares/external.access.middleware.js.map +1 -1
- package/dist/access/middlewares/index.d.ts +1 -0
- package/dist/access/middlewares/index.js +1 -0
- package/dist/access/middlewares/index.js.map +1 -1
- package/dist/access/middlewares/mcp.access.middleware.d.ts +7 -0
- package/dist/access/middlewares/mcp.access.middleware.js +34 -0
- package/dist/access/middlewares/mcp.access.middleware.js.map +1 -0
- package/dist/access/services/credential.resolve.service.d.ts +22 -0
- package/dist/access/services/credential.resolve.service.js +106 -0
- package/dist/access/services/credential.resolve.service.js.map +1 -0
- package/dist/access/services/device.auth.service.d.ts +50 -0
- package/dist/access/services/device.auth.service.js +177 -0
- package/dist/access/services/device.auth.service.js.map +1 -0
- package/dist/access/services/index.d.ts +3 -0
- package/dist/access/services/index.js +3 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/oauth.as.service.d.ts +96 -0
- package/dist/access/services/oauth.as.service.js +299 -0
- package/dist/access/services/oauth.as.service.js.map +1 -0
- package/dist/app.module.js +2 -1
- package/dist/app.module.js.map +1 -1
- package/dist/config/entity.constants.d.ts +6 -0
- package/dist/config/entity.constants.js +6 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/development/registries/development.entity.registry.js +2 -0
- package/dist/development/registries/development.entity.registry.js.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/mcp/admin/tools/admin.tool.registry.js +10 -0
- package/dist/mcp/admin/tools/admin.tool.registry.js.map +1 -1
- package/dist/mcp/admin/tools/index.d.ts +1 -0
- package/dist/mcp/admin/tools/index.js +1 -0
- package/dist/mcp/admin/tools/index.js.map +1 -1
- package/dist/mcp/admin/tools/menu_ui_action/index.d.ts +5 -0
- package/dist/mcp/admin/tools/menu_ui_action/index.js +22 -0
- package/dist/mcp/admin/tools/menu_ui_action/index.js.map +1 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.create.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.create.tool.js +25 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.get.tool.js +23 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.list.tool.js +37 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.update.tool.d.ts +20 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.update.tool.js +25 -0
- package/dist/mcp/admin/tools/menu_ui_action/menu.ui.action.update.tool.js.map +1 -0
- package/dist/mcp/auth/execution.context.interface.d.ts +9 -0
- package/dist/mcp/auth/execution.context.interface.js +3 -0
- package/dist/mcp/auth/execution.context.interface.js.map +1 -0
- package/dist/mcp/auth/index.d.ts +1 -0
- package/dist/mcp/auth/index.js +18 -0
- package/dist/mcp/auth/index.js.map +1 -0
- package/dist/mcp/es6.classes.d.ts +7 -1
- package/dist/mcp/es6.classes.js +14 -1
- package/dist/mcp/es6.classes.js.map +1 -1
- package/dist/mcp/http/admin.mcp.controller.js +1 -1
- package/dist/mcp/http/admin.mcp.controller.js.map +1 -1
- package/dist/mcp/http/business.mcp.controller.js +5 -5
- package/dist/mcp/http/business.mcp.controller.js.map +1 -1
- package/dist/mcp/http/index.d.ts +1 -0
- package/dist/mcp/http/index.js +1 -0
- package/dist/mcp/http/index.js.map +1 -1
- package/dist/mcp/http/mcp.http.module.js +2 -1
- package/dist/mcp/http/mcp.http.module.js.map +1 -1
- package/dist/mcp/http/mcp.request.handler.js +1 -1
- package/dist/mcp/http/mcp.request.handler.js.map +1 -1
- package/dist/mcp/http/prm.controller.d.ts +10 -0
- package/dist/mcp/http/prm.controller.js +45 -0
- package/dist/mcp/http/prm.controller.js.map +1 -0
- package/dist/mcp/http/unauthorized.mcp.response.d.ts +6 -3
- package/dist/mcp/http/unauthorized.mcp.response.js +27 -17
- package/dist/mcp/http/unauthorized.mcp.response.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/migrations/1785056165556-AddDisplayOrderUtlMenuActionsTable.d.ts +5 -0
- package/dist/migrations/1785056165556-AddDisplayOrderUtlMenuActionsTable.js +15 -0
- package/dist/migrations/1785056165556-AddDisplayOrderUtlMenuActionsTable.js.map +1 -0
- package/dist/migrations/1785057482427-CreateDeviceCodesTable.d.ts +5 -0
- package/dist/migrations/1785057482427-CreateDeviceCodesTable.js +25 -0
- package/dist/migrations/1785057482427-CreateDeviceCodesTable.js.map +1 -0
- package/dist/migrations/1785058700995-CreateOauthClientsTable.d.ts +5 -0
- package/dist/migrations/1785058700995-CreateOauthClientsTable.js +23 -0
- package/dist/migrations/1785058700995-CreateOauthClientsTable.js.map +1 -0
- package/dist/migrations/1785058701000-CreateOauthAuthorizationsTable.d.ts +5 -0
- package/dist/migrations/1785058701000-CreateOauthAuthorizationsTable.js +31 -0
- package/dist/migrations/1785058701000-CreateOauthAuthorizationsTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DeviceDecideDto } from '../dtos/device.decide.dto';
|
|
2
|
+
import { DevicePollDto } from '../dtos/device.poll.dto';
|
|
3
|
+
import { DeviceAuthService } from '../services/device.auth.service';
|
|
4
|
+
export declare class DeviceAuthController {
|
|
5
|
+
private readonly deviceAuthService;
|
|
6
|
+
constructor(deviceAuthService: DeviceAuthService);
|
|
7
|
+
start(): Promise<{
|
|
8
|
+
device_code: string;
|
|
9
|
+
user_code: string;
|
|
10
|
+
verification_uri: string;
|
|
11
|
+
verification_uri_complete: string;
|
|
12
|
+
expires_in: number;
|
|
13
|
+
interval: number;
|
|
14
|
+
}>;
|
|
15
|
+
poll(body: DevicePollDto): Promise<Record<string, unknown>>;
|
|
16
|
+
get(userCode: string): Promise<{
|
|
17
|
+
status: "not_found";
|
|
18
|
+
user_code?: undefined;
|
|
19
|
+
expires_at?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
status: "denied";
|
|
22
|
+
user_code: string;
|
|
23
|
+
expires_at?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
status: "decided";
|
|
26
|
+
user_code: string;
|
|
27
|
+
expires_at?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
status: "expired";
|
|
30
|
+
user_code: string;
|
|
31
|
+
expires_at?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
status: "pending";
|
|
34
|
+
user_code: string;
|
|
35
|
+
expires_at: Date;
|
|
36
|
+
}>;
|
|
37
|
+
decide(body: DeviceDecideDto): Promise<{
|
|
38
|
+
status: "denied" | "already_decided";
|
|
39
|
+
business_id?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
status: "approved";
|
|
42
|
+
business_id: number;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DeviceAuthController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const device_decide_dto_1 = require("../dtos/device.decide.dto");
|
|
18
|
+
const device_poll_dto_1 = require("../dtos/device.poll.dto");
|
|
19
|
+
const device_auth_service_1 = require("../services/device.auth.service");
|
|
20
|
+
let DeviceAuthController = class DeviceAuthController {
|
|
21
|
+
constructor(deviceAuthService) {
|
|
22
|
+
this.deviceAuthService = deviceAuthService;
|
|
23
|
+
}
|
|
24
|
+
start() {
|
|
25
|
+
return this.deviceAuthService.start();
|
|
26
|
+
}
|
|
27
|
+
poll(body) {
|
|
28
|
+
return this.deviceAuthService.poll(body.device_code);
|
|
29
|
+
}
|
|
30
|
+
get(userCode) {
|
|
31
|
+
return this.deviceAuthService.getForApproval(userCode);
|
|
32
|
+
}
|
|
33
|
+
decide(body) {
|
|
34
|
+
return this.deviceAuthService.decide(body.user_code, body.action, body.business_id);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.DeviceAuthController = DeviceAuthController;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, common_1.Post)('start'),
|
|
40
|
+
__metadata("design:type", Function),
|
|
41
|
+
__metadata("design:paramtypes", []),
|
|
42
|
+
__metadata("design:returntype", void 0)
|
|
43
|
+
], DeviceAuthController.prototype, "start", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, common_1.Post)('poll'),
|
|
46
|
+
__param(0, (0, common_1.Body)()),
|
|
47
|
+
__metadata("design:type", Function),
|
|
48
|
+
__metadata("design:paramtypes", [device_poll_dto_1.DevicePollDto]),
|
|
49
|
+
__metadata("design:returntype", void 0)
|
|
50
|
+
], DeviceAuthController.prototype, "poll", null);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, common_1.Get)(),
|
|
53
|
+
__param(0, (0, common_1.Query)('user_code')),
|
|
54
|
+
__metadata("design:type", Function),
|
|
55
|
+
__metadata("design:paramtypes", [String]),
|
|
56
|
+
__metadata("design:returntype", void 0)
|
|
57
|
+
], DeviceAuthController.prototype, "get", null);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, common_1.Post)(),
|
|
60
|
+
__param(0, (0, common_1.Body)()),
|
|
61
|
+
__metadata("design:type", Function),
|
|
62
|
+
__metadata("design:paramtypes", [device_decide_dto_1.DeviceDecideDto]),
|
|
63
|
+
__metadata("design:returntype", void 0)
|
|
64
|
+
], DeviceAuthController.prototype, "decide", null);
|
|
65
|
+
exports.DeviceAuthController = DeviceAuthController = __decorate([
|
|
66
|
+
(0, common_1.Controller)('auth/device'),
|
|
67
|
+
__metadata("design:paramtypes", [device_auth_service_1.DeviceAuthService])
|
|
68
|
+
], DeviceAuthController);
|
|
69
|
+
//# sourceMappingURL=device.auth.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.auth.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/device.auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,iEAA4D;AAC5D,6DAAwD;AACxD,yEAAoE;AAS7D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,KAAK;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC;IAGD,IAAI,CAAS,IAAmB;QAC5B,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzD,CAAC;IAGD,GAAG,CAAqB,QAAgB;QACpC,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;IAGD,MAAM,CAAS,IAAqB;QAChC,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AAtBY,oDAAoB;AAI7B;IADC,IAAA,aAAI,EAAC,OAAO,CAAC;;;;iDAGb;AAGD;IADC,IAAA,aAAI,EAAC,MAAM,CAAC;IACP,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,+BAAa;;gDAE/B;AAGD;IADC,IAAA,YAAG,GAAE;IACD,WAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;;;;+CAEtB;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,mCAAe;;kDAEnC;+BArBQ,oBAAoB;IADhC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAE0B,uCAAiB;GADxD,oBAAoB,CAsBhC"}
|
|
@@ -23,6 +23,7 @@ export * from './dashboard.component.controller';
|
|
|
23
23
|
export * from './dashboard.controller';
|
|
24
24
|
export * from './dashboard.report.controller';
|
|
25
25
|
export * from './developer.mode.controller';
|
|
26
|
+
export * from './device.auth.controller';
|
|
26
27
|
export * from './download.log.controller';
|
|
27
28
|
export * from './email.rule.controller';
|
|
28
29
|
export * from './event.trigger.controller';
|
|
@@ -38,6 +39,8 @@ export * from './lock.script.controller';
|
|
|
38
39
|
export * from './menu.controller';
|
|
39
40
|
export * from './module.controller';
|
|
40
41
|
export * from './module.menu.controller';
|
|
42
|
+
export * from './oauth.as.controller';
|
|
43
|
+
export * from './oauth.discovery.controller';
|
|
41
44
|
export * from './overriding.script.controller';
|
|
42
45
|
export * from './scheduled.report.controller';
|
|
43
46
|
export * from './scheduled.report.item.controller';
|
|
@@ -39,6 +39,7 @@ __exportStar(require("./dashboard.component.controller"), exports);
|
|
|
39
39
|
__exportStar(require("./dashboard.controller"), exports);
|
|
40
40
|
__exportStar(require("./dashboard.report.controller"), exports);
|
|
41
41
|
__exportStar(require("./developer.mode.controller"), exports);
|
|
42
|
+
__exportStar(require("./device.auth.controller"), exports);
|
|
42
43
|
__exportStar(require("./download.log.controller"), exports);
|
|
43
44
|
__exportStar(require("./email.rule.controller"), exports);
|
|
44
45
|
__exportStar(require("./event.trigger.controller"), exports);
|
|
@@ -54,6 +55,8 @@ __exportStar(require("./lock.script.controller"), exports);
|
|
|
54
55
|
__exportStar(require("./menu.controller"), exports);
|
|
55
56
|
__exportStar(require("./module.controller"), exports);
|
|
56
57
|
__exportStar(require("./module.menu.controller"), exports);
|
|
58
|
+
__exportStar(require("./oauth.as.controller"), exports);
|
|
59
|
+
__exportStar(require("./oauth.discovery.controller"), exports);
|
|
57
60
|
__exportStar(require("./overriding.script.controller"), exports);
|
|
58
61
|
__exportStar(require("./scheduled.report.controller"), exports);
|
|
59
62
|
__exportStar(require("./scheduled.report.item.controller"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,iEAA+C;AAAA,8DAA4C;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,+DAA6C;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,iEAA+C;AAAA,8DAA4C;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,+DAA6C;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
import { OauthConsentDecideDto } from '../dtos/oauth.consent.decide.dto';
|
|
3
|
+
import { OauthRegisterDto } from '../dtos/oauth.register.dto';
|
|
4
|
+
import { OauthAsService } from '../services/oauth.as.service';
|
|
5
|
+
export declare class OauthAsController {
|
|
6
|
+
private readonly oauthAsService;
|
|
7
|
+
constructor(oauthAsService: OauthAsService);
|
|
8
|
+
register(body: OauthRegisterDto, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
9
|
+
authorize(query: Record<string, string>, res: Response): Promise<void | Response<any, Record<string, any>>>;
|
|
10
|
+
getConsent(authorizationId: string): Promise<{
|
|
11
|
+
status: "not_found";
|
|
12
|
+
authorization_id?: undefined;
|
|
13
|
+
client_name?: undefined;
|
|
14
|
+
redirect_host?: undefined;
|
|
15
|
+
scope?: undefined;
|
|
16
|
+
expires_at?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
status: "decided";
|
|
19
|
+
authorization_id: number;
|
|
20
|
+
client_name?: undefined;
|
|
21
|
+
redirect_host?: undefined;
|
|
22
|
+
scope?: undefined;
|
|
23
|
+
expires_at?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
status: "expired";
|
|
26
|
+
authorization_id: number;
|
|
27
|
+
client_name?: undefined;
|
|
28
|
+
redirect_host?: undefined;
|
|
29
|
+
scope?: undefined;
|
|
30
|
+
expires_at?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
status: "pending";
|
|
33
|
+
authorization_id: number;
|
|
34
|
+
client_name: string;
|
|
35
|
+
redirect_host: string;
|
|
36
|
+
scope: string;
|
|
37
|
+
expires_at: Date;
|
|
38
|
+
}>;
|
|
39
|
+
decide(body: OauthConsentDecideDto): Promise<{
|
|
40
|
+
status: "already_decided";
|
|
41
|
+
redirect_to: string;
|
|
42
|
+
} | {
|
|
43
|
+
status: "denied";
|
|
44
|
+
redirect_to: string;
|
|
45
|
+
} | {
|
|
46
|
+
status: "approved";
|
|
47
|
+
redirect_to: string;
|
|
48
|
+
}>;
|
|
49
|
+
token(req: Request, body: Record<string, string>, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
50
|
+
private protocolError;
|
|
51
|
+
private errorHtml;
|
|
52
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OauthAsController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const oauth_consent_decide_dto_1 = require("../dtos/oauth.consent.decide.dto");
|
|
18
|
+
const oauth_register_dto_1 = require("../dtos/oauth.register.dto");
|
|
19
|
+
const oauth_as_service_1 = require("../services/oauth.as.service");
|
|
20
|
+
let OauthAsController = class OauthAsController {
|
|
21
|
+
constructor(oauthAsService) {
|
|
22
|
+
this.oauthAsService = oauthAsService;
|
|
23
|
+
}
|
|
24
|
+
async register(body, res) {
|
|
25
|
+
try {
|
|
26
|
+
const created = await this.oauthAsService.register(body);
|
|
27
|
+
return res.status(201).json(created);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return this.protocolError(res, error);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async authorize(query, res) {
|
|
34
|
+
const result = await this.oauthAsService.beginAuthorize(query);
|
|
35
|
+
if (result.kind === 'error_page') {
|
|
36
|
+
return res.status(400).type('html').send(this.errorHtml(result.error, result.message));
|
|
37
|
+
}
|
|
38
|
+
return res.redirect(302, result.url);
|
|
39
|
+
}
|
|
40
|
+
getConsent(authorizationId) {
|
|
41
|
+
return this.oauthAsService.getConsent(+authorizationId);
|
|
42
|
+
}
|
|
43
|
+
decide(body) {
|
|
44
|
+
return this.oauthAsService.decideConsent(body.authorization_id, body.action, body.business_id);
|
|
45
|
+
}
|
|
46
|
+
async token(req, body, res) {
|
|
47
|
+
try {
|
|
48
|
+
const payload = { ...body, ...(req.body || {}) };
|
|
49
|
+
const token = await this.oauthAsService.exchangeToken(payload);
|
|
50
|
+
return res.status(200).json(token);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
return this.protocolError(res, error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
protocolError(res, error) {
|
|
57
|
+
if (error instanceof oauth_as_service_1.OauthProtocolError) {
|
|
58
|
+
return res.status(error.status).json({
|
|
59
|
+
error: error.error,
|
|
60
|
+
error_description: error.message,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
64
|
+
return res.status(400).json({ error: 'invalid_request', error_description: message });
|
|
65
|
+
}
|
|
66
|
+
errorHtml(error, message) {
|
|
67
|
+
return `<!doctype html><html><head><meta charset="utf-8"><title>Authorization Error</title></head>
|
|
68
|
+
<body><h1>${error}</h1><p>${message}</p></body></html>`;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.OauthAsController = OauthAsController;
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, common_1.Post)('register'),
|
|
74
|
+
__param(0, (0, common_1.Body)()),
|
|
75
|
+
__param(1, (0, common_1.Res)()),
|
|
76
|
+
__metadata("design:type", Function),
|
|
77
|
+
__metadata("design:paramtypes", [oauth_register_dto_1.OauthRegisterDto, Object]),
|
|
78
|
+
__metadata("design:returntype", Promise)
|
|
79
|
+
], OauthAsController.prototype, "register", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, common_1.Get)('authorize'),
|
|
82
|
+
__param(0, (0, common_1.Query)()),
|
|
83
|
+
__param(1, (0, common_1.Res)()),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
86
|
+
__metadata("design:returntype", Promise)
|
|
87
|
+
], OauthAsController.prototype, "authorize", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, common_1.Get)('consent'),
|
|
90
|
+
__param(0, (0, common_1.Query)('authorization_id')),
|
|
91
|
+
__metadata("design:type", Function),
|
|
92
|
+
__metadata("design:paramtypes", [String]),
|
|
93
|
+
__metadata("design:returntype", void 0)
|
|
94
|
+
], OauthAsController.prototype, "getConsent", null);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, common_1.Post)('consent'),
|
|
97
|
+
__param(0, (0, common_1.Body)()),
|
|
98
|
+
__metadata("design:type", Function),
|
|
99
|
+
__metadata("design:paramtypes", [oauth_consent_decide_dto_1.OauthConsentDecideDto]),
|
|
100
|
+
__metadata("design:returntype", void 0)
|
|
101
|
+
], OauthAsController.prototype, "decide", null);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, common_1.Post)('token'),
|
|
104
|
+
(0, common_1.Header)('Cache-Control', 'no-store'),
|
|
105
|
+
(0, common_1.Header)('Pragma', 'no-cache'),
|
|
106
|
+
__param(0, (0, common_1.Req)()),
|
|
107
|
+
__param(1, (0, common_1.Body)()),
|
|
108
|
+
__param(2, (0, common_1.Res)()),
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", [Object, Object, Object]),
|
|
111
|
+
__metadata("design:returntype", Promise)
|
|
112
|
+
], OauthAsController.prototype, "token", null);
|
|
113
|
+
exports.OauthAsController = OauthAsController = __decorate([
|
|
114
|
+
(0, common_1.Controller)('oauth'),
|
|
115
|
+
__metadata("design:paramtypes", [oauth_as_service_1.OauthAsService])
|
|
116
|
+
], OauthAsController);
|
|
117
|
+
//# sourceMappingURL=oauth.as.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.as.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/oauth.as.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsF;AAEtF,+EAAyE;AACzE,mEAA8D;AAC9D,mEAAkF;AAO3E,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAGzD,AAAN,KAAK,CAAC,QAAQ,CAAS,IAAsB,EAAS,GAAa;QAC/D,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC;IAOK,AAAN,KAAK,CAAC,SAAS,CAAU,KAA6B,EAAS,GAAa;QACxE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAE/D,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;YAC/B,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3F,CAAC;QAED,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;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,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAEO,SAAS,CAAC,KAAa,EAAE,OAAe;QAC5C,OAAO;YACH,KAAK,WAAW,OAAO,oBAAoB,CAAC;IACpD,CAAC;CACJ,CAAA;AAvEY,8CAAiB;AAIpB;IADL,IAAA,aAAI,EAAC,UAAU,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;IAA0B,WAAA,IAAA,YAAG,GAAE,CAAA;;qCAAxB,qCAAgB;;iDAO5C;AAOK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACA,WAAA,IAAA,cAAK,GAAE,CAAA;IAAiC,WAAA,IAAA,YAAG,GAAE,CAAA;;;;kDAQ7D;AAID;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,kBAAkB,CAAC,CAAA;;;;mDAEpC;AAID;IADC,IAAA,aAAI,EAAC,SAAS,CAAC;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,gDAAqB;;+CAEzC;AAQK;IAHL,IAAA,aAAI,EAAC,OAAO,CAAC;IACb,IAAA,eAAM,EAAC,eAAe,EAAE,UAAU,CAAC;IACnC,IAAA,eAAM,EAAC,QAAQ,EAAE,UAAU,CAAC;IAChB,WAAA,IAAA,YAAG,GAAE,CAAA;IAAgB,WAAA,IAAA,aAAI,GAAE,CAAA;IAAgC,WAAA,IAAA,YAAG,GAAE,CAAA;;;;8CAQ5E;4BAtDQ,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,OAAO,CAAC;qCAE6B,iCAAc;GADlD,iBAAiB,CAuE7B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OauthAsService } from '../services/oauth.as.service';
|
|
2
|
+
export declare class OauthDiscoveryController {
|
|
3
|
+
private readonly oauthAsService;
|
|
4
|
+
constructor(oauthAsService: OauthAsService);
|
|
5
|
+
metadata(): {
|
|
6
|
+
issuer: string;
|
|
7
|
+
authorization_endpoint: string;
|
|
8
|
+
token_endpoint: string;
|
|
9
|
+
registration_endpoint: string;
|
|
10
|
+
response_types_supported: string[];
|
|
11
|
+
grant_types_supported: string[];
|
|
12
|
+
code_challenge_methods_supported: string[];
|
|
13
|
+
token_endpoint_auth_methods_supported: string[];
|
|
14
|
+
scopes_supported: string[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OauthDiscoveryController = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const oauth_as_service_1 = require("../services/oauth.as.service");
|
|
15
|
+
let OauthDiscoveryController = class OauthDiscoveryController {
|
|
16
|
+
constructor(oauthAsService) {
|
|
17
|
+
this.oauthAsService = oauthAsService;
|
|
18
|
+
}
|
|
19
|
+
metadata() {
|
|
20
|
+
return this.oauthAsService.authorizationServerMetadata();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.OauthDiscoveryController = OauthDiscoveryController;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, common_1.Get)('oauth-authorization-server'),
|
|
26
|
+
(0, common_1.Header)('Cache-Control', 'public, max-age=3600'),
|
|
27
|
+
__metadata("design:type", Function),
|
|
28
|
+
__metadata("design:paramtypes", []),
|
|
29
|
+
__metadata("design:returntype", void 0)
|
|
30
|
+
], OauthDiscoveryController.prototype, "metadata", null);
|
|
31
|
+
exports.OauthDiscoveryController = OauthDiscoveryController = __decorate([
|
|
32
|
+
(0, common_1.Controller)('.well-known'),
|
|
33
|
+
__metadata("design:paramtypes", [oauth_as_service_1.OauthAsService])
|
|
34
|
+
], OauthDiscoveryController);
|
|
35
|
+
//# sourceMappingURL=oauth.discovery.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.discovery.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/oauth.discovery.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyD;AACzD,mEAA8D;AAMvD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAI/D,QAAQ;QACJ,OAAO,IAAI,CAAC,cAAc,CAAC,2BAA2B,EAAE,CAAC;IAC7D,CAAC;CACJ,CAAA;AARY,4DAAwB;AAKjC;IAFC,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACjC,IAAA,eAAM,EAAC,eAAe,EAAE,sBAAsB,CAAC;;;;wDAG/C;mCAPQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAEuB,iCAAc;GADlD,wBAAwB,CAQpC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeviceDecideDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DeviceDecideDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DeviceDecideDto = DeviceDecideDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DeviceDecideDto.prototype, "user_code", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsIn)(['approve', 'deny']),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DeviceDecideDto.prototype, "action", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], DeviceDecideDto.prototype, "business_id", void 0);
|
|
36
|
+
//# sourceMappingURL=device.decide.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.decide.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/device.decide.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAmF;AAGnF,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC;AAZG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACO;AAKlB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;;+CACC;AAM3B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACU"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DevicePollDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DevicePollDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DevicePollDto = DevicePollDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DevicePollDto.prototype, "device_code", void 0);
|
|
24
|
+
//# sourceMappingURL=device.poll.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.poll.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/device.poll.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAuD;AAGvD,MAAa,aAAa;CAKzB;AALD,sCAKC;AADG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACS"}
|
|
@@ -86,6 +86,8 @@ export * from './date.range.filter.dto';
|
|
|
86
86
|
export * from './db.find.dto';
|
|
87
87
|
export * from './db.find.options.dto';
|
|
88
88
|
export * from './developer.mode.set.listing.dto';
|
|
89
|
+
export * from './device.decide.dto';
|
|
90
|
+
export * from './device.poll.dto';
|
|
89
91
|
export * from './download.log.attributes.dto';
|
|
90
92
|
export * from './download.log.list.filter.dto';
|
|
91
93
|
export * from './edit.query.dto';
|
|
@@ -146,6 +148,8 @@ export * from './module.attributes.dto';
|
|
|
146
148
|
export * from './module.menu.attributes.dto';
|
|
147
149
|
export * from './notification.payload.dto';
|
|
148
150
|
export * from './number.range.filter.dto';
|
|
151
|
+
export * from './oauth.consent.decide.dto';
|
|
152
|
+
export * from './oauth.register.dto';
|
|
149
153
|
export * from './onhold.document.attributes.dto';
|
|
150
154
|
export * from './overriding.script.attributes.dto';
|
|
151
155
|
export * from './overriding.script.list.filter.dto';
|
|
@@ -102,6 +102,8 @@ __exportStar(require("./date.range.filter.dto"), exports);
|
|
|
102
102
|
__exportStar(require("./db.find.dto"), exports);
|
|
103
103
|
__exportStar(require("./db.find.options.dto"), exports);
|
|
104
104
|
__exportStar(require("./developer.mode.set.listing.dto"), exports);
|
|
105
|
+
__exportStar(require("./device.decide.dto"), exports);
|
|
106
|
+
__exportStar(require("./device.poll.dto"), exports);
|
|
105
107
|
__exportStar(require("./download.log.attributes.dto"), exports);
|
|
106
108
|
__exportStar(require("./download.log.list.filter.dto"), exports);
|
|
107
109
|
__exportStar(require("./edit.query.dto"), exports);
|
|
@@ -162,6 +164,8 @@ __exportStar(require("./module.attributes.dto"), exports);
|
|
|
162
164
|
__exportStar(require("./module.menu.attributes.dto"), exports);
|
|
163
165
|
__exportStar(require("./notification.payload.dto"), exports);
|
|
164
166
|
__exportStar(require("./number.range.filter.dto"), exports);
|
|
167
|
+
__exportStar(require("./oauth.consent.decide.dto"), exports);
|
|
168
|
+
__exportStar(require("./oauth.register.dto"), exports);
|
|
165
169
|
__exportStar(require("./onhold.document.attributes.dto"), exports);
|
|
166
170
|
__exportStar(require("./overriding.script.attributes.dto"), exports);
|
|
167
171
|
__exportStar(require("./overriding.script.list.filter.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,wDAAsC;AAAA,qEAAmD;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,kFAAgE;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,2EAAyD;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,wDAAsC;AAAA,iDAA+B;AAAA,mDAAiC;AAAA,wDAAsC;AAAA,4EAA0D;AAAA,8DAA4C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,4DAA0C;AAAA,wDAAsC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yEAAuD;AAAA,0EAAwD;AAAA,qEAAmD;AAAA,qEAAmD;AAAA,iEAA+C;AAAA,sEAAoD;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,iEAA+C;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,iEAA+C;AAAA,yEAAuD;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,wEAAsD;AAAA,qEAAmD;AAAA,sEAAoD;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,wEAAsD;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,qEAAmD;AAAA,+EAA4D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OauthConsentDecideDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class OauthConsentDecideDto {
|
|
16
|
+
}
|
|
17
|
+
exports.OauthConsentDecideDto = OauthConsentDecideDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], OauthConsentDecideDto.prototype, "authorization_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsIn)(['approve', 'deny']),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], OauthConsentDecideDto.prototype, "action", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], OauthConsentDecideDto.prototype, "business_id", void 0);
|
|
38
|
+
//# sourceMappingURL=oauth.consent.decide.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.consent.decide.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/oauth.consent.decide.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAyE;AAGzE,MAAa,qBAAqB;CAiBjC;AAjBD,sDAiBC;AAZG;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;;+DACc;AAKzB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;;qDACC;AAM3B;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;;0DACU"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OauthRegisterDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class OauthRegisterDto {
|
|
16
|
+
}
|
|
17
|
+
exports.OauthRegisterDto = OauthRegisterDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
22
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], OauthRegisterDto.prototype, "redirect_uris", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], OauthRegisterDto.prototype, "client_name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], OauthRegisterDto.prototype, "grant_types", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsArray)(),
|
|
42
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], OauthRegisterDto.prototype, "response_types", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], OauthRegisterDto.prototype, "token_endpoint_auth_method", void 0);
|
|
51
|
+
//# sourceMappingURL=oauth.register.dto.js.map
|