@solidxai/core 0.1.19-beta.5 → 0.1.20-beta.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/dist/controllers/agent-hub-tag.controller.d.ts +24 -0
  3. package/dist/controllers/agent-hub-tag.controller.d.ts.map +1 -0
  4. package/dist/controllers/agent-hub-tag.controller.js +175 -0
  5. package/dist/controllers/agent-hub-tag.controller.js.map +1 -0
  6. package/dist/controllers/agent-tool-registry.controller.d.ts +18 -0
  7. package/dist/controllers/agent-tool-registry.controller.d.ts.map +1 -1
  8. package/dist/controllers/agent-tool-registry.controller.js +13 -0
  9. package/dist/controllers/agent-tool-registry.controller.js.map +1 -1
  10. package/dist/dtos/create-agent-hub-tag.dto.d.ts +16 -0
  11. package/dist/dtos/create-agent-hub-tag.dto.d.ts.map +1 -0
  12. package/dist/dtos/create-agent-hub-tag.dto.js +98 -0
  13. package/dist/dtos/create-agent-hub-tag.dto.js.map +1 -0
  14. package/dist/dtos/create-agent-registry.dto.d.ts +4 -0
  15. package/dist/dtos/create-agent-registry.dto.d.ts.map +1 -1
  16. package/dist/dtos/create-agent-registry.dto.js +24 -1
  17. package/dist/dtos/create-agent-registry.dto.js.map +1 -1
  18. package/dist/dtos/create-agent-skill-registry.dto.d.ts +4 -1
  19. package/dist/dtos/create-agent-skill-registry.dto.d.ts.map +1 -1
  20. package/dist/dtos/create-agent-skill-registry.dto.js +21 -5
  21. package/dist/dtos/create-agent-skill-registry.dto.js.map +1 -1
  22. package/dist/dtos/create-agent-tool-registry.dto.d.ts +4 -1
  23. package/dist/dtos/create-agent-tool-registry.dto.d.ts.map +1 -1
  24. package/dist/dtos/create-agent-tool-registry.dto.js +24 -8
  25. package/dist/dtos/create-agent-tool-registry.dto.js.map +1 -1
  26. package/dist/dtos/update-agent-hub-tag.dto.d.ts +17 -0
  27. package/dist/dtos/update-agent-hub-tag.dto.d.ts.map +1 -0
  28. package/dist/dtos/update-agent-hub-tag.dto.js +104 -0
  29. package/dist/dtos/update-agent-hub-tag.dto.js.map +1 -0
  30. package/dist/dtos/update-agent-registry.dto.d.ts +4 -0
  31. package/dist/dtos/update-agent-registry.dto.d.ts.map +1 -1
  32. package/dist/dtos/update-agent-registry.dto.js +24 -1
  33. package/dist/dtos/update-agent-registry.dto.js.map +1 -1
  34. package/dist/dtos/update-agent-skill-registry.dto.d.ts +4 -1
  35. package/dist/dtos/update-agent-skill-registry.dto.d.ts.map +1 -1
  36. package/dist/dtos/update-agent-skill-registry.dto.js +20 -4
  37. package/dist/dtos/update-agent-skill-registry.dto.js.map +1 -1
  38. package/dist/dtos/update-agent-tool-registry.dto.d.ts +4 -1
  39. package/dist/dtos/update-agent-tool-registry.dto.d.ts.map +1 -1
  40. package/dist/dtos/update-agent-tool-registry.dto.js +24 -8
  41. package/dist/dtos/update-agent-tool-registry.dto.js.map +1 -1
  42. package/dist/entities/agent-hub-tag.entity.d.ts +11 -0
  43. package/dist/entities/agent-hub-tag.entity.d.ts.map +1 -0
  44. package/dist/entities/agent-hub-tag.entity.js +45 -0
  45. package/dist/entities/agent-hub-tag.entity.js.map +1 -0
  46. package/dist/entities/agent-registry.entity.d.ts +2 -0
  47. package/dist/entities/agent-registry.entity.d.ts.map +1 -1
  48. package/dist/entities/agent-registry.entity.js +7 -1
  49. package/dist/entities/agent-registry.entity.js.map +1 -1
  50. package/dist/entities/agent-skill-registry.entity.d.ts +2 -1
  51. package/dist/entities/agent-skill-registry.entity.d.ts.map +1 -1
  52. package/dist/entities/agent-skill-registry.entity.js +5 -4
  53. package/dist/entities/agent-skill-registry.entity.js.map +1 -1
  54. package/dist/entities/agent-tool-registry.entity.d.ts +2 -1
  55. package/dist/entities/agent-tool-registry.entity.d.ts.map +1 -1
  56. package/dist/entities/agent-tool-registry.entity.js +7 -6
  57. package/dist/entities/agent-tool-registry.entity.js.map +1 -1
  58. package/dist/index.d.ts +6 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +6 -0
  61. package/dist/index.js.map +1 -1
  62. package/dist/repository/agent-hub-tag.repository.d.ts +12 -0
  63. package/dist/repository/agent-hub-tag.repository.d.ts.map +1 -0
  64. package/dist/repository/agent-hub-tag.repository.js +39 -0
  65. package/dist/repository/agent-hub-tag.repository.js.map +1 -0
  66. package/dist/seeders/seed-data/solid-core-metadata.json +344 -30
  67. package/dist/services/agent-hub-tag.service.d.ts +12 -0
  68. package/dist/services/agent-hub-tag.service.d.ts.map +1 -0
  69. package/dist/services/agent-hub-tag.service.js +38 -0
  70. package/dist/services/agent-hub-tag.service.js.map +1 -0
  71. package/dist/services/agent-tool-registry.service.d.ts +23 -1
  72. package/dist/services/agent-tool-registry.service.d.ts.map +1 -1
  73. package/dist/services/agent-tool-registry.service.js +168 -4
  74. package/dist/services/agent-tool-registry.service.js.map +1 -1
  75. package/dist/services/agent-tool-registry.service.spec.js +1 -1
  76. package/dist/services/agent-tool-registry.service.spec.js.map +1 -1
  77. package/dist/services/secret.service.d.ts +1 -0
  78. package/dist/services/secret.service.d.ts.map +1 -1
  79. package/dist/services/secret.service.js +10 -0
  80. package/dist/services/secret.service.js.map +1 -1
  81. package/dist/solid-core.module.d.ts.map +1 -1
  82. package/dist/solid-core.module.js +8 -0
  83. package/dist/solid-core.module.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/controllers/agent-hub-tag.controller.ts +86 -0
  86. package/src/controllers/agent-tool-registry.controller.ts +6 -0
  87. package/src/dtos/create-agent-hub-tag.dto.ts +70 -0
  88. package/src/dtos/create-agent-registry.dto.ts +20 -0
  89. package/src/dtos/create-agent-skill-registry.dto.ts +19 -4
  90. package/src/dtos/create-agent-tool-registry.dto.ts +21 -6
  91. package/src/dtos/update-agent-hub-tag.dto.ts +75 -0
  92. package/src/dtos/update-agent-registry.dto.ts +20 -0
  93. package/src/dtos/update-agent-skill-registry.dto.ts +17 -3
  94. package/src/dtos/update-agent-tool-registry.dto.ts +20 -6
  95. package/src/entities/agent-hub-tag.entity.ts +21 -0
  96. package/src/entities/agent-registry.entity.ts +6 -1
  97. package/src/entities/agent-skill-registry.entity.ts +5 -3
  98. package/src/entities/agent-tool-registry.entity.ts +6 -4
  99. package/src/index.ts +6 -0
  100. package/src/repository/agent-hub-tag.repository.ts +19 -0
  101. package/src/seeders/seed-data/solid-core-metadata.json +344 -30
  102. package/src/services/agent-hub-tag.service.ts +19 -0
  103. package/src/services/agent-tool-registry.service.spec.ts +1 -1
  104. package/src/services/agent-tool-registry.service.ts +161 -1
  105. package/src/services/secret.service.ts +10 -0
  106. package/src/solid-core.module.ts +8 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.20-beta.0] - 2026-10-08
4
+
5
+ ### Added
6
+
7
+ - add Agent Hub Tag functionality
8
+ - refactor agent tool lifecycle environment handling and add PostgreSQL URL generation
9
+ - enhance agent tool lifecycle preference handling and validation
10
+ - add checkTool method and lifecycle script for agent tools; enhance SecretService with findAvailableKeys
11
+
12
+ ## [0.1.19] - 2026-10-08
13
+
14
+ ### Added
15
+
16
+ - add total_input_tokens and total_output_tokens fields to agent session DTOs and entity
17
+ - add reasoning_model_key and fast_model_key to DTOs and entities and remove modelused form events
18
+ - Refactor Agent Hub to Agent Session
19
+ - add agent hub services, repositories, and controllers
20
+ - implement secret management functionality with CRUD operations and update related services and controllers
21
+ - add header buttons for message summary in kanban and global search
22
+ - enhance kanban card with quick filters and view details buttons
23
+ - add UserViewMetadataController.Create action to metadata cause normal user cannot see the layout switch option on ui
24
+ - add verbose option to seed command for detailed logging
25
+ - add login extension providers for external login checks (#175)
26
+ - add whatsapp provider decorator export
27
+
28
+ ### Fixed
29
+
30
+ - update relationModelModuleName from 'agent-hub' to 'solid-core' in metadata
31
+ - throw error for missing seeder service in seed command refactor: improve logging behavior in CLI bootstrap process
32
+ - enhance validation error messages for selection fields
33
+
34
+ ### Changed
35
+
36
+ - update import paths for repositories and services to use local references
37
+ - remove agent session related exports and references from core module and metadata
38
+ - optimize many-to-many relation loading for audit tracking
39
+
40
+ ### Other
41
+
42
+ - Set default status to inactive for agent tool registry and update related service logic
43
+ - Add type field to agent skill registry DTOs and entity; update metadata for seeding
44
+ - Enhance agent chat UI: add control bar with minimize, dock, and maximize options
45
+ - Add AgentEmbedController and SDK asset: implement endpoint for serving the embed SDK with dynamic UI origin
46
+ - Add runtime field to agent session DTOs and entity: implement optional selection for runtime source and update metadata
47
+ - Refactor DTOs for media creation and update: standardize formatting and improve code readability
48
+ - Add redact field to secret DTOs and entity: implement optional boolean for redaction and update metadata
49
+ - Add process management capabilities: implement restartProcess method in AgentHubProcessManagerService and update AgentProcessService to utilize it for restarting linked processes.
50
+ - Implement AgentHub process management: add service for API interactions, enhance agent process service with runtime process management methods, and update controller for process operations.
51
+ - Enhance agent configuration management: implement configVersion updates in services and repositories, add checksum handling for agent tools, and integrate agent ID retrieval for catalog operations.
52
+ - Add agent registry card action and update card widget references
53
+ - Refactor agent registry DTOs and entity: make configVersion optional and update metadata; modify solid-core metadata for card view
54
+ - Add optional fields for description and iconName in agent registry DTOs and entity; update metadata
55
+ - Implement Agent Session Checkpoint functionality with CRUD operations and update related DTOs and entities
56
+ - Enable audit tracking for various fields in solid-core metadata
57
+ - Add context field to agent event DTOs and entity; update metadata
58
+ - Update display names in agent menu items for consistency
59
+ - Refactor code structure for improved readability and maintainability
60
+ - solidxAgentHubBackendUrl
61
+ - Add description and tags fields to agent skill registry; update component paths and view keys
62
+ - Refactor agent event entity to change data types from JSON to longText for eventData, toolArguments, and toolOutput
63
+ - Implement model deletion preview and confirmation; enhance agent event handling
64
+ - changes
65
+ - Solid agent interface changes
66
+ - Solid agent interface changes
67
+ - Fix/draft publish (#181)
68
+ - extnuser change password fix (#179)
69
+ - Fix/draft publish (postrgres specific fix - db compatible PR to be raised later) (#178)
70
+ - changelog cleanup
71
+ - fix for breaking seed
72
+ - add captureRawBody, needed to verify webhook signatures (#177)
73
+ - add captureRawBody, needed to verify webhook signatures
74
+ - data provider return column as object (#176)
75
+
3
76
  ## [0.1.19-beta.5] - 2026-10-07
4
77
 
5
78
  ### Other
@@ -0,0 +1,24 @@
1
+ import { CreateAgentHubTagDto } from '../dtos/create-agent-hub-tag.dto';
2
+ import { UpdateAgentHubTagDto } from '../dtos/update-agent-hub-tag.dto';
3
+ import { AgentHubTagService } from '../services/agent-hub-tag.service';
4
+ export declare class AgentHubTagController {
5
+ private readonly service;
6
+ constructor(service: AgentHubTagService);
7
+ create(createDto: CreateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
8
+ insertMany(createDtos: CreateAgentHubTagDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").AgentHubTag[]>;
9
+ update(id: number, updateDto: UpdateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
10
+ partialUpdate(id: number, updateDto: UpdateAgentHubTagDto, files: Array<Express.Multer.File>): Promise<import("..").AgentHubTag>;
11
+ recoverMany(ids: number[]): Promise<{
12
+ message: string;
13
+ recoveredIds: number[];
14
+ }>;
15
+ recover(id: number): Promise<{
16
+ message: string;
17
+ data: import("..").AgentHubTag;
18
+ }>;
19
+ findMany(query: any): Promise<any>;
20
+ findOne(id: string, query: any): Promise<import("..").AgentHubTag>;
21
+ deleteMany(ids: number[]): Promise<any>;
22
+ delete(id: number): Promise<import("..").AgentHubTag[]>;
23
+ }
24
+ //# sourceMappingURL=agent-hub-tag.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-hub-tag.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/agent-hub-tag.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,qBAEa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAKxD,MAAM,CAAS,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOlG,UAAU,CAAS,UAAU,EAAE,oBAAoB,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAOhH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAO3H,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,oBAAoB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAM5H,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAe/B,QAAQ,CAAU,KAAK,EAAE,GAAG;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAGrC"}
@@ -0,0 +1,175 @@
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.AgentHubTagController = void 0;
16
+ const openapi = require("@nestjs/swagger");
17
+ const common_1 = require("@nestjs/common");
18
+ const platform_express_1 = require("@nestjs/platform-express");
19
+ const swagger_1 = require("@nestjs/swagger");
20
+ const create_agent_hub_tag_dto_1 = require("../dtos/create-agent-hub-tag.dto");
21
+ const update_agent_hub_tag_dto_1 = require("../dtos/update-agent-hub-tag.dto");
22
+ const show_soft_deleted_enum_1 = require("../enums/show-soft-deleted.enum");
23
+ const agent_hub_tag_service_1 = require("../services/agent-hub-tag.service");
24
+ let AgentHubTagController = class AgentHubTagController {
25
+ constructor(service) {
26
+ this.service = service;
27
+ }
28
+ create(createDto, files) {
29
+ return this.service.create(createDto, files);
30
+ }
31
+ insertMany(createDtos, filesArray = []) {
32
+ return this.service.insertMany(createDtos, filesArray);
33
+ }
34
+ update(id, updateDto, files) {
35
+ return this.service.update(id, updateDto, files);
36
+ }
37
+ partialUpdate(id, updateDto, files) {
38
+ return this.service.update(id, updateDto, files, true);
39
+ }
40
+ async recoverMany(ids) {
41
+ return this.service.recoverMany(ids);
42
+ }
43
+ async recover(id) {
44
+ return this.service.recover(id);
45
+ }
46
+ async findMany(query) {
47
+ return this.service.find(query);
48
+ }
49
+ async findOne(id, query) {
50
+ return this.service.findOne(+id, query);
51
+ }
52
+ async deleteMany(ids) {
53
+ return this.service.deleteMany(ids);
54
+ }
55
+ async delete(id) {
56
+ return this.service.delete(id);
57
+ }
58
+ };
59
+ exports.AgentHubTagController = AgentHubTagController;
60
+ __decorate([
61
+ (0, swagger_1.ApiBearerAuth)('jwt'),
62
+ (0, common_1.Post)(),
63
+ (0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
64
+ openapi.ApiResponse({ status: 201, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
65
+ __param(0, (0, common_1.Body)()),
66
+ __param(1, (0, common_1.UploadedFiles)()),
67
+ __metadata("design:type", Function),
68
+ __metadata("design:paramtypes", [create_agent_hub_tag_dto_1.CreateAgentHubTagDto, Array]),
69
+ __metadata("design:returntype", void 0)
70
+ ], AgentHubTagController.prototype, "create", null);
71
+ __decorate([
72
+ (0, swagger_1.ApiBearerAuth)('jwt'),
73
+ (0, common_1.Post)('/bulk'),
74
+ (0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
75
+ openapi.ApiResponse({ status: 201, type: [require("../entities/agent-hub-tag.entity").AgentHubTag] }),
76
+ __param(0, (0, common_1.Body)()),
77
+ __param(1, (0, common_1.UploadedFiles)()),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", [Array, Array]),
80
+ __metadata("design:returntype", void 0)
81
+ ], AgentHubTagController.prototype, "insertMany", null);
82
+ __decorate([
83
+ (0, swagger_1.ApiBearerAuth)('jwt'),
84
+ (0, common_1.Put)(':id'),
85
+ (0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
86
+ openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
87
+ __param(0, (0, common_1.Param)('id')),
88
+ __param(1, (0, common_1.Body)()),
89
+ __param(2, (0, common_1.UploadedFiles)()),
90
+ __metadata("design:type", Function),
91
+ __metadata("design:paramtypes", [Number, update_agent_hub_tag_dto_1.UpdateAgentHubTagDto, Array]),
92
+ __metadata("design:returntype", void 0)
93
+ ], AgentHubTagController.prototype, "update", null);
94
+ __decorate([
95
+ (0, swagger_1.ApiBearerAuth)('jwt'),
96
+ (0, common_1.Patch)(':id'),
97
+ (0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
98
+ openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
99
+ __param(0, (0, common_1.Param)('id')),
100
+ __param(1, (0, common_1.Body)()),
101
+ __param(2, (0, common_1.UploadedFiles)()),
102
+ __metadata("design:type", Function),
103
+ __metadata("design:paramtypes", [Number, update_agent_hub_tag_dto_1.UpdateAgentHubTagDto, Array]),
104
+ __metadata("design:returntype", void 0)
105
+ ], AgentHubTagController.prototype, "partialUpdate", null);
106
+ __decorate([
107
+ (0, swagger_1.ApiBearerAuth)('jwt'),
108
+ (0, common_1.Post)('/bulk-recover'),
109
+ openapi.ApiResponse({ status: 201 }),
110
+ __param(0, (0, common_1.Body)()),
111
+ __metadata("design:type", Function),
112
+ __metadata("design:paramtypes", [Array]),
113
+ __metadata("design:returntype", Promise)
114
+ ], AgentHubTagController.prototype, "recoverMany", null);
115
+ __decorate([
116
+ (0, swagger_1.ApiBearerAuth)('jwt'),
117
+ (0, common_1.Get)('/recover/:id'),
118
+ openapi.ApiResponse({ status: 200 }),
119
+ __param(0, (0, common_1.Param)('id')),
120
+ __metadata("design:type", Function),
121
+ __metadata("design:paramtypes", [Number]),
122
+ __metadata("design:returntype", Promise)
123
+ ], AgentHubTagController.prototype, "recover", null);
124
+ __decorate([
125
+ (0, swagger_1.ApiBearerAuth)('jwt'),
126
+ (0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, enum: show_soft_deleted_enum_1.ShowSoftDeleted }),
127
+ (0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
128
+ (0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
129
+ (0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
130
+ (0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
131
+ (0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
132
+ (0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
133
+ (0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
134
+ (0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
135
+ (0, common_1.Get)(),
136
+ openapi.ApiResponse({ status: 200, type: Object }),
137
+ __param(0, (0, common_1.Query)()),
138
+ __metadata("design:type", Function),
139
+ __metadata("design:paramtypes", [Object]),
140
+ __metadata("design:returntype", Promise)
141
+ ], AgentHubTagController.prototype, "findMany", null);
142
+ __decorate([
143
+ (0, swagger_1.ApiBearerAuth)('jwt'),
144
+ (0, common_1.Get)(':id'),
145
+ openapi.ApiResponse({ status: 200, type: require("../entities/agent-hub-tag.entity").AgentHubTag }),
146
+ __param(0, (0, common_1.Param)('id')),
147
+ __param(1, (0, common_1.Query)()),
148
+ __metadata("design:type", Function),
149
+ __metadata("design:paramtypes", [String, Object]),
150
+ __metadata("design:returntype", Promise)
151
+ ], AgentHubTagController.prototype, "findOne", null);
152
+ __decorate([
153
+ (0, swagger_1.ApiBearerAuth)('jwt'),
154
+ (0, common_1.Delete)('/bulk'),
155
+ openapi.ApiResponse({ status: 200, type: Object }),
156
+ __param(0, (0, common_1.Body)()),
157
+ __metadata("design:type", Function),
158
+ __metadata("design:paramtypes", [Array]),
159
+ __metadata("design:returntype", Promise)
160
+ ], AgentHubTagController.prototype, "deleteMany", null);
161
+ __decorate([
162
+ (0, swagger_1.ApiBearerAuth)('jwt'),
163
+ (0, common_1.Delete)(':id'),
164
+ openapi.ApiResponse({ status: 200, type: [require("../entities/agent-hub-tag.entity").AgentHubTag] }),
165
+ __param(0, (0, common_1.Param)('id')),
166
+ __metadata("design:type", Function),
167
+ __metadata("design:paramtypes", [Number]),
168
+ __metadata("design:returntype", Promise)
169
+ ], AgentHubTagController.prototype, "delete", null);
170
+ exports.AgentHubTagController = AgentHubTagController = __decorate([
171
+ (0, swagger_1.ApiTags)('Agent Hub'),
172
+ (0, common_1.Controller)('agent-hub-tag'),
173
+ __metadata("design:paramtypes", [agent_hub_tag_service_1.AgentHubTagService])
174
+ ], AgentHubTagController);
175
+ //# sourceMappingURL=agent-hub-tag.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-hub-tag.controller.js","sourceRoot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IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACjE,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3D,IAAA,YAAG,GAAE;;IACU,WAAA,IAAA,cAAK,GAAE,CAAA;;;;qDAEtB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,KAAK,CAAC;;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;oDAE9C;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;;;;uDAEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;mDAExB;gCA1EU,qBAAqB;IAFjC,IAAA,iBAAO,EAAC,WAAW,CAAC;IACpB,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAEY,0CAAkB;GAD7C,qBAAqB,CA2EjC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete, Patch } from '@nestjs/common';\nimport { AnyFilesInterceptor } from '@nestjs/platform-express';\nimport { ApiBearerAuth, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { CreateAgentHubTagDto } from '../dtos/create-agent-hub-tag.dto';\nimport { UpdateAgentHubTagDto } from '../dtos/update-agent-hub-tag.dto';\nimport { ShowSoftDeleted } from '../enums/show-soft-deleted.enum';\nimport { AgentHubTagService } from '../services/agent-hub-tag.service';\n\n@ApiTags('Agent Hub')\n@Controller('agent-hub-tag')\nexport class AgentHubTagController {\n constructor(private readonly service: AgentHubTagService) {}\n\n @ApiBearerAuth('jwt')\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.create(createDto, files);\n }\n\n @ApiBearerAuth('jwt')\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateAgentHubTagDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = []) {\n return this.service.insertMany(createDtos, filesArray);\n }\n\n @ApiBearerAuth('jwt')\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files);\n }\n\n @ApiBearerAuth('jwt')\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateAgentHubTagDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n\n @ApiBearerAuth('jwt')\n @Post('/bulk-recover')\n async recoverMany(@Body() ids: number[]) {\n return this.service.recoverMany(ids);\n }\n\n @ApiBearerAuth('jwt')\n @Get('/recover/:id')\n async recover(@Param('id') id: number) {\n return this.service.recover(id);\n }\n\n @ApiBearerAuth('jwt')\n @ApiQuery({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array })\n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n @Get()\n async findMany(@Query() query: any) {\n return this.service.find(query);\n }\n\n @ApiBearerAuth('jwt')\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any) {\n return this.service.findOne(+id, query);\n }\n\n @ApiBearerAuth('jwt')\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[]) {\n return this.service.deleteMany(ids);\n }\n\n @ApiBearerAuth('jwt')\n @Delete(':id')\n async delete(@Param('id') id: number) {\n return this.service.delete(id);\n }\n}\n"]}
@@ -8,6 +8,24 @@ export declare class AgentToolRegistryController {
8
8
  insertMany(createDtos: CreateAgentToolRegistryDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").AgentToolRegistry[]>;
9
9
  update(id: number, updateDto: UpdateAgentToolRegistryDto, files: Array<Express.Multer.File>): Promise<import("..").AgentToolRegistry>;
10
10
  partialUpdate(id: number, updateDto: UpdateAgentToolRegistryDto, files: Array<Express.Multer.File>): Promise<import("..").AgentToolRegistry>;
11
+ check(id: string, body: {
12
+ phase?: string;
13
+ checksum?: string;
14
+ }): Promise<{
15
+ toolId: number;
16
+ checksum: string;
17
+ phase: string;
18
+ config: {
19
+ status: string;
20
+ message: string;
21
+ requiredSecrets: string[];
22
+ missingSecrets: string[];
23
+ };
24
+ init: {
25
+ status: string;
26
+ message: string;
27
+ };
28
+ }>;
11
29
  recoverMany(ids: number[]): Promise<{
12
30
  message: string;
13
31
  recoveredIds: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tool-registry.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAGpF,qBAEa,2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AAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOxG,UAAU,CAAS,UAAU,EAAE,0BAA0B,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQtH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOjI,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAMxI,KAAK,CAAc,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;IAM5E,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAgB/B,QAAQ,CAAU,KAAK,EAAE,GAAG;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAMrC"}
@@ -37,6 +37,9 @@ let AgentToolRegistryController = class AgentToolRegistryController {
37
37
  partialUpdate(id, updateDto, files) {
38
38
  return this.service.update(id, updateDto, files, true);
39
39
  }
40
+ check(id, body) {
41
+ return this.service.checkTool(+id, body?.phase ?? '', body?.checksum ?? '');
42
+ }
40
43
  async recoverMany(ids) {
41
44
  return this.service.recoverMany(ids);
42
45
  }
@@ -103,6 +106,16 @@ __decorate([
103
106
  __metadata("design:paramtypes", [Number, update_agent_tool_registry_dto_1.UpdateAgentToolRegistryDto, Array]),
104
107
  __metadata("design:returntype", void 0)
105
108
  ], AgentToolRegistryController.prototype, "partialUpdate", null);
109
+ __decorate([
110
+ (0, swagger_1.ApiBearerAuth)("jwt"),
111
+ (0, common_1.Post)(':id/check'),
112
+ openapi.ApiResponse({ status: 201 }),
113
+ __param(0, (0, common_1.Param)('id')),
114
+ __param(1, (0, common_1.Body)()),
115
+ __metadata("design:type", Function),
116
+ __metadata("design:paramtypes", [String, Object]),
117
+ __metadata("design:returntype", void 0)
118
+ ], AgentToolRegistryController.prototype, "check", null);
106
119
  __decorate([
107
120
  (0, swagger_1.ApiBearerAuth)("jwt"),
108
121
  (0, common_1.Post)('/bulk-recover'),
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tool-registry.controller.js","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,yFAAmF;AACnF,2FAAoF;AACpF,2FAAoF;AACpF,4EAAkE;AAI3D,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IAAG,CAAC;IAKlE,MAAM,CAAS,SAAqC,EAAmB,KAAiC;QACtG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAKD,UAAU,CAAS,UAAwC,EAAmB,aAAsC,EAAE;QACpH,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IAMD,MAAM,CAAc,EAAU,EAAU,SAAqC,EAAmB,KAAiC;QAC/H,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAKD,aAAa,CAAc,EAAU,EAAU,SAAqC,EAAmB,KAAiC;QACtI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,S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IAAI,CAAC,CAAA;;;;yDAExB;sCA5EU,2BAA2B;IAFvC,IAAA,iBAAO,EAAC,WAAW,CAAC;IACpB,IAAA,mBAAU,EAAC,qBAAqB,CAAC;qCAEM,sDAAwB;GADnD,2BAA2B,CAgFvC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete, Patch } from '@nestjs/common';\nimport { AnyFilesInterceptor } from \"@nestjs/platform-express\";\nimport { ApiBearerAuth, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { AgentToolRegistryService } from '../services/agent-tool-registry.service';\nimport { CreateAgentToolRegistryDto } from '../dtos/create-agent-tool-registry.dto';\nimport { UpdateAgentToolRegistryDto } from '../dtos/update-agent-tool-registry.dto';\nimport { ShowSoftDeleted } from '../enums/show-soft-deleted.enum';\n\n@ApiTags('Agent Hub')\n@Controller('agent-tool-registry')\nexport class AgentToolRegistryController {\n constructor(private readonly service: AgentToolRegistryService) {}\n\n @ApiBearerAuth(\"jwt\")\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.create(createDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateAgentToolRegistryDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = []) {\n return this.service.insertMany(createDtos, filesArray);\n }\n\n\n @ApiBearerAuth(\"jwt\")\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk-recover')\n async recoverMany(@Body() ids: number[]) {\n return this.service.recoverMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Get('/recover/:id')\n async recover(@Param('id') id: number) {\n return this.service.recover(id);\n }\n \n @ApiBearerAuth(\"jwt\")\n @ApiQuery({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array }) \n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n\n @Get()\n async findMany(@Query() query: any) { \n return this.service.find(query); \n }\n\n @ApiBearerAuth(\"jwt\")\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any) {\n return this.service.findOne(+id, query);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[]) {\n return this.service.deleteMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete(':id')\n async delete(@Param('id') id: number) {\n return this.service.delete(id);\n }\n\n\n\n}\n"]}
1
+ {"version":3,"file":"agent-tool-registry.controller.js","sourceRoot":"","sources":["../../src/controllers/agent-tool-registry.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,yFAAmF;AACnF,2FAAoF;AACpF,2FAAoF;AACpF,4EAAkE;AAI3D,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IAAG,CAAC;IAKlE,MAAM,CAAS,SAAqC,EAAmB,KAAiC;QACt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EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3D,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACjE,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAE3D,IAAA,YAAG,GAAE;;IACU,WAAA,IAAA,cAAK,GAAE,CAAA;;;;2DAEtB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,KAAK,CAAC;;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;0DAE9C;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;;;;6DAEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAExB;sCAlFU,2BAA2B;IAFvC,IAAA,iBAAO,EAAC,WAAW,CAAC;IACpB,IAAA,mBAAU,EAAC,qBAAqB,CAAC;qCAEM,sDAAwB;GADnD,2BAA2B,CAsFvC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete, Patch } from '@nestjs/common';\nimport { AnyFilesInterceptor } from \"@nestjs/platform-express\";\nimport { ApiBearerAuth, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { AgentToolRegistryService } from '../services/agent-tool-registry.service';\nimport { CreateAgentToolRegistryDto } from '../dtos/create-agent-tool-registry.dto';\nimport { UpdateAgentToolRegistryDto } from '../dtos/update-agent-tool-registry.dto';\nimport { ShowSoftDeleted } from '../enums/show-soft-deleted.enum';\n\n@ApiTags('Agent Hub')\n@Controller('agent-tool-registry')\nexport class AgentToolRegistryController {\n constructor(private readonly service: AgentToolRegistryService) {}\n\n @ApiBearerAuth(\"jwt\")\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.create(createDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateAgentToolRegistryDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = []) {\n return this.service.insertMany(createDtos, filesArray);\n }\n\n\n @ApiBearerAuth(\"jwt\")\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateAgentToolRegistryDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post(':id/check')\n check(@Param('id') id: string, @Body() body: { phase?: string; checksum?: string }) {\n return this.service.checkTool(+id, body?.phase ?? '', body?.checksum ?? '');\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk-recover')\n async recoverMany(@Body() ids: number[]) {\n return this.service.recoverMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Get('/recover/:id')\n async recover(@Param('id') id: number) {\n return this.service.recover(id);\n }\n \n @ApiBearerAuth(\"jwt\")\n @ApiQuery({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array }) \n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n\n @Get()\n async findMany(@Query() query: any) { \n return this.service.find(query); \n }\n\n @ApiBearerAuth(\"jwt\")\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any) {\n return this.service.findOne(+id, query);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[]) {\n return this.service.deleteMany(ids);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete(':id')\n async delete(@Param('id') id: number) {\n return this.service.delete(id);\n }\n\n\n\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { UpdateAgentSkillRegistryDto } from './update-agent-skill-registry.dto';
2
+ import { UpdateAgentToolRegistryDto } from './update-agent-tool-registry.dto';
3
+ import { UpdateAgentRegistryDto } from './update-agent-registry.dto';
4
+ export declare class CreateAgentHubTagDto {
5
+ name: string;
6
+ skills: UpdateAgentSkillRegistryDto[];
7
+ skillsIds: number[];
8
+ skillsCommand: string;
9
+ tools: UpdateAgentToolRegistryDto[];
10
+ toolsIds: number[];
11
+ toolsCommand: string;
12
+ agents: UpdateAgentRegistryDto[];
13
+ agentsIds: number[];
14
+ agentsCommand: string;
15
+ }
16
+ //# sourceMappingURL=create-agent-hub-tag.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-agent-hub-tag.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-hub-tag.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,oBAAoB;IAI7B,IAAI,EAAE,MAAM,CAAC;IAOb,MAAM,EAAE,2BAA2B,EAAE,CAAC;IAOtC,SAAS,EAAE,MAAM,EAAE,CAAC;IAKpB,aAAa,EAAE,MAAM,CAAC;IAOtB,KAAK,EAAE,0BAA0B,EAAE,CAAC;IAOpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAKnB,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,sBAAsB,EAAE,CAAC;IAOjC,SAAS,EAAE,MAAM,EAAE,CAAC;IAKpB,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,98 @@
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.CreateAgentHubTagDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ const update_agent_skill_registry_dto_1 = require("./update-agent-skill-registry.dto");
18
+ const update_agent_tool_registry_dto_1 = require("./update-agent-tool-registry.dto");
19
+ const update_agent_registry_dto_1 = require("./update-agent-registry.dto");
20
+ class CreateAgentHubTagDto {
21
+ static _OPENAPI_METADATA_FACTORY() {
22
+ return { name: { required: true, type: () => String }, skills: { required: true, type: () => [require("./update-agent-skill-registry.dto").UpdateAgentSkillRegistryDto] }, skillsIds: { required: true, type: () => [Number] }, skillsCommand: { required: true, type: () => String }, tools: { required: true, type: () => [require("./update-agent-tool-registry.dto").UpdateAgentToolRegistryDto] }, toolsIds: { required: true, type: () => [Number] }, toolsCommand: { required: true, type: () => String }, agents: { required: true, type: () => [require("./update-agent-registry.dto").UpdateAgentRegistryDto] }, agentsIds: { required: true, type: () => [Number] }, agentsCommand: { required: true, type: () => String } };
23
+ }
24
+ }
25
+ exports.CreateAgentHubTagDto = CreateAgentHubTagDto;
26
+ __decorate([
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, swagger_1.ApiProperty)(),
30
+ __metadata("design:type", String)
31
+ ], CreateAgentHubTagDto.prototype, "name", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsArray)(),
35
+ (0, class_validator_1.ValidateNested)({ each: true }),
36
+ (0, class_transformer_1.Type)(() => update_agent_skill_registry_dto_1.UpdateAgentSkillRegistryDto),
37
+ (0, swagger_1.ApiProperty)({ required: false }),
38
+ __metadata("design:type", Array)
39
+ ], CreateAgentHubTagDto.prototype, "skills", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsArray)(),
43
+ (0, class_transformer_1.Type)(() => Number),
44
+ (0, class_validator_1.IsInt)({ each: true }),
45
+ (0, swagger_1.ApiProperty)({ required: false }),
46
+ __metadata("design:type", Array)
47
+ ], CreateAgentHubTagDto.prototype, "skillsIds", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsString)(),
51
+ (0, swagger_1.ApiProperty)({ required: false }),
52
+ __metadata("design:type", String)
53
+ ], CreateAgentHubTagDto.prototype, "skillsCommand", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsArray)(),
57
+ (0, class_validator_1.ValidateNested)({ each: true }),
58
+ (0, class_transformer_1.Type)(() => update_agent_tool_registry_dto_1.UpdateAgentToolRegistryDto),
59
+ (0, swagger_1.ApiProperty)({ required: false }),
60
+ __metadata("design:type", Array)
61
+ ], CreateAgentHubTagDto.prototype, "tools", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsArray)(),
65
+ (0, class_transformer_1.Type)(() => Number),
66
+ (0, class_validator_1.IsInt)({ each: true }),
67
+ (0, swagger_1.ApiProperty)({ required: false }),
68
+ __metadata("design:type", Array)
69
+ ], CreateAgentHubTagDto.prototype, "toolsIds", void 0);
70
+ __decorate([
71
+ (0, class_validator_1.IsOptional)(),
72
+ (0, class_validator_1.IsString)(),
73
+ (0, swagger_1.ApiProperty)({ required: false }),
74
+ __metadata("design:type", String)
75
+ ], CreateAgentHubTagDto.prototype, "toolsCommand", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsOptional)(),
78
+ (0, class_validator_1.IsArray)(),
79
+ (0, class_validator_1.ValidateNested)({ each: true }),
80
+ (0, class_transformer_1.Type)(() => update_agent_registry_dto_1.UpdateAgentRegistryDto),
81
+ (0, swagger_1.ApiProperty)({ required: false }),
82
+ __metadata("design:type", Array)
83
+ ], CreateAgentHubTagDto.prototype, "agents", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsOptional)(),
86
+ (0, class_validator_1.IsArray)(),
87
+ (0, class_transformer_1.Type)(() => Number),
88
+ (0, class_validator_1.IsInt)({ each: true }),
89
+ (0, swagger_1.ApiProperty)({ required: false }),
90
+ __metadata("design:type", Array)
91
+ ], CreateAgentHubTagDto.prototype, "agentsIds", void 0);
92
+ __decorate([
93
+ (0, class_validator_1.IsOptional)(),
94
+ (0, class_validator_1.IsString)(),
95
+ (0, swagger_1.ApiProperty)({ required: false }),
96
+ __metadata("design:type", String)
97
+ ], CreateAgentHubTagDto.prototype, "agentsCommand", void 0);
98
+ //# sourceMappingURL=create-agent-hub-tag.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-agent-hub-tag.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-hub-tag.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAAmG;AACnG,uFAAgF;AAChF,qFAA8E;AAC9E,2EAAqE;AAErE,MAAa,oBAAoB;;;;CA8DhC;AA9DD,oDA8DC;AA1DG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAOb;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6DAA2B,CAAC;IACvC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACK;AAOtC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDACb;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACX;AAOtB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2DAA0B,CAAC;IACtC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mDACG;AAOpC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sDACd;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACZ;AAOrB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kDAAsB,CAAC;IAClC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACA;AAOjC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDACb;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACX","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsArray, IsInt, IsNotEmpty, IsOptional, IsString, ValidateNested } from 'class-validator';\nimport { UpdateAgentSkillRegistryDto } from './update-agent-skill-registry.dto';\nimport { UpdateAgentToolRegistryDto } from './update-agent-tool-registry.dto';\nimport { UpdateAgentRegistryDto } from './update-agent-registry.dto';\n\nexport class CreateAgentHubTagDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillRegistryDto)\n @ApiProperty({ required: false })\n skills: UpdateAgentSkillRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n skillsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n skillsCommand: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolRegistryDto)\n @ApiProperty({ required: false })\n tools: UpdateAgentToolRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n toolsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n toolsCommand: string;\n\n @IsOptional()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRegistryDto)\n @ApiProperty({ required: false })\n agents: UpdateAgentRegistryDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n agentsIds: number[];\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n agentsCommand: string;\n}\n"]}
@@ -5,6 +5,7 @@ import { UpdateAgentSecretDto } from './update-agent-secret.dto';
5
5
  import { UpdateAgentProcessDto } from './update-agent-process.dto';
6
6
  import { UpdateAgentSessionDto } from './update-agent-session.dto';
7
7
  import { UpdateAgentJobDto } from './update-agent-job.dto';
8
+ import { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';
8
9
  export declare class CreateAgentRegistryDto {
9
10
  name: string;
10
11
  title: string;
@@ -19,6 +20,9 @@ export declare class CreateAgentRegistryDto {
19
20
  turnStepLimit: number;
20
21
  costLimit: number;
21
22
  configVersion?: number;
23
+ tags: UpdateAgentHubTagDto[];
24
+ tagsIds: number[];
25
+ tagsCommand: string;
22
26
  agentTools: UpdateAgentToolDto[];
23
27
  agentToolsIds: number[];
24
28
  agentToolsCommand: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-agent-registry.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-agent-registry.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,qBAAa,sBAAsB;IAI/B,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,YAAY,EAAE,MAAM,CAAC;IAKrB,cAAc,EAAE,MAAM,CAAQ;IAK9B,iBAAiB,EAAE,MAAM,CAAC;IAK1B,YAAY,EAAE,MAAM,CAAC;IAKrB,MAAM,EAAE,MAAM,CAAW;IAKzB,SAAS,EAAE,MAAM,CAAC;IAKlB,aAAa,EAAE,MAAM,CAAC;IAKtB,SAAS,EAAE,MAAM,CAAK;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAOvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAKjC,aAAa,EAAE,MAAM,EAAE,CAAC;IAKxB,iBAAiB,EAAE,MAAM,CAA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AC;IAK/B,YAAY,EAAE,MAAM,EAAE,CAAC;IAKvB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
@@ -22,6 +22,7 @@ const update_agent_secret_dto_1 = require("./update-agent-secret.dto");
22
22
  const update_agent_process_dto_1 = require("./update-agent-process.dto");
23
23
  const update_agent_session_dto_1 = require("./update-agent-session.dto");
24
24
  const update_agent_job_dto_1 = require("./update-agent-job.dto");
25
+ const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
25
26
  class CreateAgentRegistryDto {
26
27
  constructor() {
27
28
  this.requiredInputs = "[]";
@@ -29,7 +30,7 @@ class CreateAgentRegistryDto {
29
30
  this.costLimit = 3;
30
31
  }
31
32
  static _OPENAPI_METADATA_FACTORY() {
32
- return { name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number, default: 3 }, configVersion: { required: false, type: () => Number }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
33
+ return { name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number, default: 3 }, configVersion: { required: false, type: () => Number }, tags: { required: true, type: () => [require("./update-agent-hub-tag.dto").UpdateAgentHubTagDto] }, tagsIds: { required: true, type: () => [Number] }, tagsCommand: { required: true, type: () => String }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
33
34
  }
34
35
  }
35
36
  exports.CreateAgentRegistryDto = CreateAgentRegistryDto;
@@ -111,6 +112,28 @@ __decorate([
111
112
  (0, swagger_1.ApiProperty)({ required: false }),
112
113
  __metadata("design:type", Number)
113
114
  ], CreateAgentRegistryDto.prototype, "configVersion", void 0);
115
+ __decorate([
116
+ (0, class_validator_2.IsOptional)(),
117
+ (0, swagger_1.ApiProperty)({ required: false }),
118
+ (0, class_validator_2.IsArray)(),
119
+ (0, class_validator_2.ValidateNested)({ each: true }),
120
+ (0, class_transformer_1.Type)(() => update_agent_hub_tag_dto_1.UpdateAgentHubTagDto),
121
+ __metadata("design:type", Array)
122
+ ], CreateAgentRegistryDto.prototype, "tags", void 0);
123
+ __decorate([
124
+ (0, class_validator_2.IsOptional)(),
125
+ (0, class_validator_2.IsArray)(),
126
+ (0, class_transformer_1.Type)(() => Number),
127
+ (0, class_validator_2.IsInt)({ each: true }),
128
+ (0, swagger_1.ApiProperty)({ required: false }),
129
+ __metadata("design:type", Array)
130
+ ], CreateAgentRegistryDto.prototype, "tagsIds", void 0);
131
+ __decorate([
132
+ (0, class_validator_1.IsString)(),
133
+ (0, class_validator_2.IsOptional)(),
134
+ (0, swagger_1.ApiProperty)({ required: false }),
135
+ __metadata("design:type", String)
136
+ ], CreateAgentRegistryDto.prototype, "tagsCommand", void 0);
114
137
  __decorate([
115
138
  (0, class_validator_2.IsOptional)(),
116
139
  (0, swagger_1.ApiProperty)(),