@verana-labs/vs-agent-plugin-chat 2.0.0-dev.54 → 2.0.0-dev.56
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/build/events/ChatEvents.js +0 -11
- package/build/events/ChatEvents.js.map +1 -1
- package/build/events/didcommModuleEvents.d.ts +2 -0
- package/build/events/didcommModuleEvents.js +128 -0
- package/build/events/didcommModuleEvents.js.map +1 -0
- package/build/index.d.ts +12 -1
- package/build/index.js +21 -3
- package/build/index.js.map +1 -1
- package/build/nestjs/ChatPlugin.d.ts +5 -1
- package/build/nestjs/ChatPlugin.js +23 -3
- package/build/nestjs/ChatPlugin.js.map +1 -1
- package/build/nestjs/V2DidcommActionMenuController.d.ts +8 -0
- package/build/nestjs/V2DidcommActionMenuController.js +60 -0
- package/build/nestjs/V2DidcommActionMenuController.js.map +1 -0
- package/build/nestjs/V2DidcommCallsController.d.ts +12 -0
- package/build/nestjs/V2DidcommCallsController.js +116 -0
- package/build/nestjs/V2DidcommCallsController.js.map +1 -0
- package/build/nestjs/V2DidcommMediaSharingController.d.ts +8 -0
- package/build/nestjs/V2DidcommMediaSharingController.js +71 -0
- package/build/nestjs/V2DidcommMediaSharingController.js.map +1 -0
- package/build/nestjs/V2DidcommQuestionAnswerController.d.ts +8 -0
- package/build/nestjs/V2DidcommQuestionAnswerController.js +63 -0
- package/build/nestjs/V2DidcommQuestionAnswerController.js.map +1 -0
- package/build/nestjs/V2DidcommReactionsController.d.ts +8 -0
- package/build/nestjs/V2DidcommReactionsController.js +67 -0
- package/build/nestjs/V2DidcommReactionsController.js.map +1 -0
- package/build/nestjs/V2DidcommReceiptsController.d.ts +8 -0
- package/build/nestjs/V2DidcommReceiptsController.js +66 -0
- package/build/nestjs/V2DidcommReceiptsController.js.map +1 -0
- package/build/nestjs/V2DidcommUserProfileController.d.ts +11 -0
- package/build/nestjs/V2DidcommUserProfileController.js +93 -0
- package/build/nestjs/V2DidcommUserProfileController.js.map +1 -0
- package/build/nestjs/chatModuleApi.d.ts +5 -0
- package/build/nestjs/chatModuleApi.js +11 -0
- package/build/nestjs/chatModuleApi.js.map +1 -0
- package/build/nestjs/defaultProfile.d.ts +4 -0
- package/build/nestjs/defaultProfile.js +5 -0
- package/build/nestjs/defaultProfile.js.map +1 -0
- package/build/nestjs/dto/action-menu.dto.d.ts +30 -0
- package/build/nestjs/dto/action-menu.dto.js +147 -0
- package/build/nestjs/dto/action-menu.dto.js.map +1 -0
- package/build/nestjs/dto/calls.dto.d.ts +17 -0
- package/build/nestjs/dto/calls.dto.js +76 -0
- package/build/nestjs/dto/calls.dto.js.map +1 -0
- package/build/nestjs/dto/index.d.ts +8 -0
- package/build/nestjs/dto/index.js +25 -0
- package/build/nestjs/dto/index.js.map +1 -0
- package/build/nestjs/dto/media-sharing.dto.d.ts +20 -0
- package/build/nestjs/dto/media-sharing.dto.js +114 -0
- package/build/nestjs/dto/media-sharing.dto.js.map +1 -0
- package/build/nestjs/dto/question-answer.dto.d.ts +9 -0
- package/build/nestjs/dto/question-answer.dto.js +54 -0
- package/build/nestjs/dto/question-answer.dto.js.map +1 -0
- package/build/nestjs/dto/reactions.dto.d.ts +11 -0
- package/build/nestjs/dto/reactions.dto.js +60 -0
- package/build/nestjs/dto/reactions.dto.js.map +1 -0
- package/build/nestjs/dto/receipts.dto.d.ts +22 -0
- package/build/nestjs/dto/receipts.dto.js +67 -0
- package/build/nestjs/dto/receipts.dto.js.map +1 -0
- package/build/nestjs/dto/sent-message.dto.d.ts +3 -0
- package/build/nestjs/dto/sent-message.dto.js +24 -0
- package/build/nestjs/dto/sent-message.dto.js.map +1 -0
- package/build/nestjs/dto/user-profile.dto.d.ts +22 -0
- package/build/nestjs/dto/user-profile.dto.js +118 -0
- package/build/nestjs/dto/user-profile.dto.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,118 @@
|
|
|
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.RequestProfileBodyDto = exports.SendProfileBodyDto = exports.UserProfileDto = exports.ProfilePictureDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class ProfilePictureDto {
|
|
17
|
+
}
|
|
18
|
+
exports.ProfilePictureDto = ProfilePictureDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Media type of the content', example: 'image/png' }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ProfilePictureDto.prototype, "mimeType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'URLs the content can be fetched from', type: [String] }),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsArray)(),
|
|
29
|
+
(0, class_validator_1.IsUrl)({}, { each: true }),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], ProfilePictureDto.prototype, "links", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'The content, base64 encoded' }),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ProfilePictureDto.prototype, "base64", void 0);
|
|
38
|
+
class UserProfileDto {
|
|
39
|
+
}
|
|
40
|
+
exports.UserProfileDto = UserProfileDto;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Name to display', example: 'Acme Support' }),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UserProfileDto.prototype, "displayName", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)({ type: ProfilePictureDto, description: 'Picture to display' }),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.ValidateNested)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => ProfilePictureDto),
|
|
52
|
+
__metadata("design:type", ProfilePictureDto)
|
|
53
|
+
], UserProfileDto.prototype, "displayPicture", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiPropertyOptional)({ type: ProfilePictureDto, description: 'Icon to display' }),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)(),
|
|
58
|
+
(0, class_transformer_1.Type)(() => ProfilePictureDto),
|
|
59
|
+
__metadata("design:type", ProfilePictureDto)
|
|
60
|
+
], UserProfileDto.prototype, "displayIcon", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Text that describes the profile' }),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UserProfileDto.prototype, "description", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Preferred language, as a BCP 47 tag', example: 'en' }),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], UserProfileDto.prototype, "preferredLanguage", void 0);
|
|
73
|
+
class SendProfileBodyDto {
|
|
74
|
+
}
|
|
75
|
+
exports.SendProfileBodyDto = SendProfileBodyDto;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ description: 'Connection to send the profile on', example: 'conn-1234-5678' }),
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], SendProfileBodyDto.prototype, "connectionId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)({ type: UserProfileDto, description: 'Profile to send, the stored one when absent' }),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.ValidateNested)(),
|
|
86
|
+
(0, class_transformer_1.Type)(() => UserProfileDto),
|
|
87
|
+
__metadata("design:type", UserProfileDto)
|
|
88
|
+
], SendProfileBodyDto.prototype, "profile", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Ask the peer to answer with its own profile', default: false }),
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
(0, class_validator_1.IsBoolean)(),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], SendProfileBodyDto.prototype, "sendBackYours", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Thread of the message this profile answers' }),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], SendProfileBodyDto.prototype, "threadId", void 0);
|
|
102
|
+
class RequestProfileBodyDto {
|
|
103
|
+
}
|
|
104
|
+
exports.RequestProfileBodyDto = RequestProfileBodyDto;
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ description: 'Connection to send the request on', example: 'conn-1234-5678' }),
|
|
107
|
+
(0, class_validator_1.IsString)(),
|
|
108
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], RequestProfileBodyDto.prototype, "connectionId", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Profile fields of interest, every field when absent', type: [String] }),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, class_validator_1.IsArray)(),
|
|
115
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
116
|
+
__metadata("design:type", Array)
|
|
117
|
+
], RequestProfileBodyDto.prototype, "query", void 0);
|
|
118
|
+
//# sourceMappingURL=user-profile.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/user-profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkE;AAClE,yDAAwC;AACxC,qDAA6G;AAE7G,MAAa,iBAAiB;CAgB7B;AAhBD,8CAgBC;AAZC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACvF,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAMjB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,IAAI,EAAE,CAA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
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"version": "2.0.0-dev.
|
|
12
|
+
"version": "2.0.0-dev.56",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/verana-labs/vs-agent"
|
|
@@ -33,8 +33,11 @@
|
|
|
33
33
|
"@credo-ts/didcomm": "0.7.1-pr-2704-20260909134930",
|
|
34
34
|
"@credo-ts/question-answer": "0.7.1-pr-2704-20260909134930",
|
|
35
35
|
"@nestjs/common": "^10.0.0",
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
36
|
+
"@nestjs/swagger": "^8.0.7",
|
|
37
|
+
"class-transformer": "0.5.1",
|
|
38
|
+
"class-validator": "0.14.1",
|
|
39
|
+
"@verana-labs/vs-agent-model": "2.0.0-dev.56",
|
|
40
|
+
"@verana-labs/vs-agent-sdk": "2.0.0-dev.56"
|
|
38
41
|
},
|
|
39
42
|
"peerDependencies": {
|
|
40
43
|
"@credo-ts/core": "0.7.1-pr-2704-20260909134930"
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
"build": "pnpm run clean && pnpm run compile",
|
|
44
47
|
"clean": "rimraf -rf ./build",
|
|
45
48
|
"compile": "tsc -p tsconfig.build.json",
|
|
49
|
+
"test": "vitest",
|
|
46
50
|
"version": "pnpm version --allow-same-version"
|
|
47
51
|
}
|
|
48
52
|
}
|