@solidstarters/solid-core 1.2.166 → 1.2.169
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/config/iam.config.d.ts +2 -0
- package/dist/config/iam.config.d.ts.map +1 -1
- package/dist/config/iam.config.js +1 -0
- package/dist/config/iam.config.js.map +1 -1
- package/dist/dtos/create-ai-interaction.dto.d.ts +3 -0
- package/dist/dtos/create-ai-interaction.dto.d.ts.map +1 -1
- package/dist/dtos/create-ai-interaction.dto.js +19 -1
- package/dist/dtos/create-ai-interaction.dto.js.map +1 -1
- package/dist/dtos/post-chatter-message.dto.js.map +1 -1
- package/dist/dtos/update-ai-interaction.dto.d.ts +3 -0
- package/dist/dtos/update-ai-interaction.dto.d.ts.map +1 -1
- package/dist/dtos/update-ai-interaction.dto.js +19 -1
- package/dist/dtos/update-ai-interaction.dto.js.map +1 -1
- package/dist/entities/ai-interaction.entity.d.ts +3 -0
- package/dist/entities/ai-interaction.entity.d.ts.map +1 -1
- package/dist/entities/ai-interaction.entity.js +13 -1
- package/dist/entities/ai-interaction.entity.js.map +1 -1
- package/dist/entities/chatter-message.entity.js.map +1 -1
- package/dist/filters/http-exception.filter.d.ts.map +1 -1
- package/dist/filters/http-exception.filter.js +2 -1
- package/dist/filters/http-exception.filter.js.map +1 -1
- package/dist/helpers/security.helper.d.ts +4 -2
- package/dist/helpers/security.helper.d.ts.map +1 -1
- package/dist/helpers/security.helper.js +38 -23
- package/dist/helpers/security.helper.js.map +1 -1
- package/dist/helpers/solid-core-error-codes-provider.service.js +3 -3
- package/dist/helpers/solid-core-error-codes-provider.service.js.map +1 -1
- package/dist/helpers/solid-registry.d.ts +0 -1
- package/dist/helpers/solid-registry.d.ts.map +1 -1
- package/dist/helpers/solid-registry.js +0 -1
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js +2 -2
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +33 -0
- package/dist/services/authentication.service.d.ts +1 -5
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +22 -63
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/chatter-message.service.d.ts.map +1 -1
- package/dist/services/chatter-message.service.js.map +1 -1
- package/dist/services/mcp-tool-response-handlers/solid-create-module-mcp-tool-response-handler.service.js +1 -1
- package/dist/services/mcp-tool-response-handlers/solid-create-module-mcp-tool-response-handler.service.js.map +1 -1
- package/dist/services/model-metadata.service.js +1 -1
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/setting.service.d.ts.map +1 -1
- package/dist/services/setting.service.js +2 -1
- package/dist/services/setting.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +0 -2
- package/dist/solid-core.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config/iam.config.ts +1 -0
- package/src/dtos/create-ai-interaction.dto.ts +15 -0
- package/src/dtos/post-chatter-message.dto.ts +1 -1
- package/src/dtos/update-ai-interaction.dto.ts +15 -0
- package/src/entities/ai-interaction.entity.ts +9 -0
- package/src/entities/chatter-message.entity.ts +3 -3
- package/src/filters/http-exception.filter.ts +5 -2
- package/src/helpers/security.helper.ts +95 -30
- package/src/helpers/solid-core-error-codes-provider.service.ts +4 -4
- package/src/helpers/solid-registry.ts +0 -1
- package/src/index.ts +0 -1
- package/src/jobs/database/trigger-mcp-client-subscriber-database.service.ts +2 -2
- package/src/seeders/seed-data/solid-core-metadata.json +35 -2
- package/src/services/authentication.service.ts +31 -142
- package/src/services/chatter-message.service.ts +373 -374
- package/src/services/mcp-tool-response-handlers/solid-create-module-mcp-tool-response-handler.service.ts +1 -1
- package/src/services/model-metadata.service.ts +1 -1
- package/src/services/setting.service.ts +2 -1
- package/src/solid-core.module.ts +0 -8
- package/dist/entities/user-password-history.entity.d.ts +0 -7
- package/dist/entities/user-password-history.entity.d.ts.map +0 -1
- package/dist/entities/user-password-history.entity.js +0 -35
- package/dist/entities/user-password-history.entity.js.map +0 -1
- package/src/entities/user-password-history.entity.ts +0 -14
|
@@ -18,7 +18,7 @@ export class SolidCreateModuleMcpToolResponseHandler implements IMcpToolResponse
|
|
|
18
18
|
async apply(aiInteraction: AiInteraction) {
|
|
19
19
|
const aiResponse = JSON.parse(aiInteraction.message);
|
|
20
20
|
|
|
21
|
-
const moduleMetadata = aiResponse
|
|
21
|
+
const moduleMetadata = aiResponse?.data?.moduleMetadata ?? {};
|
|
22
22
|
|
|
23
23
|
// TODO: Validate if another module with same name exists, if it does then raise an error...
|
|
24
24
|
|
|
@@ -837,7 +837,7 @@ export class ModelMetadataService {
|
|
|
837
837
|
type: "solid",
|
|
838
838
|
domain: "",
|
|
839
839
|
context: "",
|
|
840
|
-
customComponent:
|
|
840
|
+
customComponent: ``,
|
|
841
841
|
customIsModal: true,
|
|
842
842
|
serverEndpoint: "",
|
|
843
843
|
viewUserKey: viewName,
|
|
@@ -186,7 +186,8 @@ export class SettingService extends CRUDService<Setting> {
|
|
|
186
186
|
solidXGenAiCodeBuilderConfig: JSON.stringify({
|
|
187
187
|
defaultProvider: "",
|
|
188
188
|
availableProviders: []
|
|
189
|
-
})
|
|
189
|
+
}),
|
|
190
|
+
iamAutoGeneratedPassword:this.iamConfiguration.iamAutoGeneratedPassword
|
|
190
191
|
};
|
|
191
192
|
}
|
|
192
193
|
|
package/src/solid-core.module.ts
CHANGED
|
@@ -68,15 +68,12 @@ import { OTPAuthenticationController } from './controllers/otp-authentication.co
|
|
|
68
68
|
import { ServiceController } from './controllers/service.controller';
|
|
69
69
|
import { SmsTemplateController } from './controllers/sms-template.controller';
|
|
70
70
|
import { TestQueueController } from './controllers/test-queue.controller';
|
|
71
|
-
// import { UserController } from './controllers/user.controller';
|
|
72
71
|
import { EmailAttachment } from './entities/email-attachment.entity';
|
|
73
72
|
import { EmailTemplate } from './entities/email-template.entity';
|
|
74
73
|
import { MenuItemMetadata } from './entities/menu-item-metadata.entity';
|
|
75
74
|
import { MqMessageQueue } from './entities/mq-message-queue.entity';
|
|
76
75
|
import { MqMessage } from './entities/mq-message.entity';
|
|
77
76
|
import { SmsTemplate } from './entities/sms-template.entity';
|
|
78
|
-
import { UserPasswordHistory } from './entities/user-password-history.entity';
|
|
79
|
-
// import { User } from './entities/user.entity';
|
|
80
77
|
import { AccessTokenGuard } from './guards/access-token.guard';
|
|
81
78
|
import { AuthenticationGuard } from './guards/authentication.guard';
|
|
82
79
|
import { PermissionsGuard } from './guards/permissions.guard';
|
|
@@ -94,10 +91,6 @@ import { SmsQueuePublisher } from './jobs/sms-publisher.service';
|
|
|
94
91
|
import { SmsQueueSubscriber } from './jobs/sms-subscriber.service';
|
|
95
92
|
import { TestQueuePublisher } from './jobs/test-queue-publisher.service';
|
|
96
93
|
import { TestQueueSubscriber } from './jobs/test-queue-subscriber.service';
|
|
97
|
-
|
|
98
|
-
// import { ChatterQueuePublisher } from './jobs/chatter-queue-publisher.service';
|
|
99
|
-
// import { ChatterQueueSubscriber } from './jobs/chatter-queue-subscriber.service';
|
|
100
|
-
|
|
101
94
|
import { Msg91WhatsappQueuePublisher } from './jobs/msg91-whatsapp-publisher.service';
|
|
102
95
|
import { Msg91WhatsappQueueSubscriber } from './jobs/msg91-whatsapp-subscriber.service';
|
|
103
96
|
import { UserRegistrationListener } from './listeners/user-registration.listener';
|
|
@@ -317,7 +310,6 @@ import { SolidCoreErrorCodesProvider } from './helpers/solid-core-error-codes-pr
|
|
|
317
310
|
SmsTemplate,
|
|
318
311
|
EmailAttachment,
|
|
319
312
|
User,
|
|
320
|
-
UserPasswordHistory,
|
|
321
313
|
ViewMetadata,
|
|
322
314
|
ActionMetadata,
|
|
323
315
|
MenuItemMetadata,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity';
|
|
2
|
-
import { User } from 'src/entities/user.entity';
|
|
3
|
-
export declare class UserPasswordHistory extends CommonEntity {
|
|
4
|
-
passwordHash: string;
|
|
5
|
-
user: User;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=user-password-history.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-password-history.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user-password-history.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,qBACa,mBAAoB,SAAQ,YAAY;IAEjD,YAAY,EAAE,MAAM,CAAC;IAIrB,IAAI,EAAE,IAAI,CAAC;CAEd"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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.UserPasswordHistory = void 0;
|
|
13
|
-
const openapi = require("@nestjs/swagger");
|
|
14
|
-
const common_entity_1 = require("./common.entity");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
let UserPasswordHistory = class UserPasswordHistory extends common_entity_1.CommonEntity {
|
|
18
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { passwordHash: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User } };
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.UserPasswordHistory = UserPasswordHistory;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UserPasswordHistory.prototype, "passwordHash", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Index)(),
|
|
29
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "CASCADE" }),
|
|
30
|
-
__metadata("design:type", user_entity_1.User)
|
|
31
|
-
], UserPasswordHistory.prototype, "user", void 0);
|
|
32
|
-
exports.UserPasswordHistory = UserPasswordHistory = __decorate([
|
|
33
|
-
(0, typeorm_1.Entity)("ss_user_password_history")
|
|
34
|
-
], UserPasswordHistory);
|
|
35
|
-
//# sourceMappingURL=user-password-history.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-password-history.entity.js","sourceRoot":"","sources":["../../src/entities/user-password-history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAAgD;AAChD,qCAA2D;AAGpD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAY;;;;CAQpD,CAAA;AARY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yDACJ;AAIrB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzC,kBAAI;iDAAC;8BANF,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,0BAA0B,CAAC;GACtB,mBAAmB,CAQ/B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { User } from 'src/entities/user.entity';\nimport { Column, Entity, Index, ManyToOne } from 'typeorm';\n\n@Entity(\"ss_user_password_history\")\nexport class UserPasswordHistory extends CommonEntity {\n @Column({ unique: true })\n passwordHash: string;\n\n @Index()\n @ManyToOne(() => User, { onDelete: \"CASCADE\" })\n user: User;\n\n}"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity';
|
|
2
|
-
import { User } from 'src/entities/user.entity';
|
|
3
|
-
import { Column, Entity, Index, ManyToOne } from 'typeorm';
|
|
4
|
-
|
|
5
|
-
@Entity("ss_user_password_history")
|
|
6
|
-
export class UserPasswordHistory extends CommonEntity {
|
|
7
|
-
@Column({ unique: true })
|
|
8
|
-
passwordHash: string;
|
|
9
|
-
|
|
10
|
-
@Index()
|
|
11
|
-
@ManyToOne(() => User, { onDelete: "CASCADE" })
|
|
12
|
-
user: User;
|
|
13
|
-
|
|
14
|
-
}
|