@verana-labs/vs-agent-plugin-chat 2.0.0-dev.14 → 2.0.0-dev.141

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 (75) hide show
  1. package/build/events/ChatEvents.js +0 -216
  2. package/build/events/ChatEvents.js.map +1 -1
  3. package/build/events/didcommModuleEvents.d.ts +2 -0
  4. package/build/events/didcommModuleEvents.js +131 -0
  5. package/build/events/didcommModuleEvents.js.map +1 -0
  6. package/build/index.d.ts +12 -2
  7. package/build/index.js +21 -5
  8. package/build/index.js.map +1 -1
  9. package/build/nestjs/ChatPlugin.d.ts +5 -1
  10. package/build/nestjs/ChatPlugin.js +25 -5
  11. package/build/nestjs/ChatPlugin.js.map +1 -1
  12. package/build/nestjs/V2DidcommActionMenuController.d.ts +8 -0
  13. package/build/nestjs/V2DidcommActionMenuController.js +50 -0
  14. package/build/nestjs/V2DidcommActionMenuController.js.map +1 -0
  15. package/build/nestjs/V2DidcommCallsController.d.ts +11 -0
  16. package/build/nestjs/V2DidcommCallsController.js +105 -0
  17. package/build/nestjs/V2DidcommCallsController.js.map +1 -0
  18. package/build/nestjs/V2DidcommMediaSharingController.d.ts +8 -0
  19. package/build/nestjs/V2DidcommMediaSharingController.js +63 -0
  20. package/build/nestjs/V2DidcommMediaSharingController.js.map +1 -0
  21. package/build/nestjs/V2DidcommQuestionAnswerController.d.ts +8 -0
  22. package/build/nestjs/V2DidcommQuestionAnswerController.js +53 -0
  23. package/build/nestjs/V2DidcommQuestionAnswerController.js.map +1 -0
  24. package/build/nestjs/V2DidcommReactionsController.d.ts +8 -0
  25. package/build/nestjs/V2DidcommReactionsController.js +59 -0
  26. package/build/nestjs/V2DidcommReactionsController.js.map +1 -0
  27. package/build/nestjs/V2DidcommReceiptsController.d.ts +8 -0
  28. package/build/nestjs/V2DidcommReceiptsController.js +58 -0
  29. package/build/nestjs/V2DidcommReceiptsController.js.map +1 -0
  30. package/build/nestjs/V2DidcommUserProfileController.d.ts +11 -0
  31. package/build/nestjs/V2DidcommUserProfileController.js +85 -0
  32. package/build/nestjs/V2DidcommUserProfileController.js.map +1 -0
  33. package/build/nestjs/defaultProfile.d.ts +4 -0
  34. package/build/nestjs/defaultProfile.js +5 -0
  35. package/build/nestjs/defaultProfile.js.map +1 -0
  36. package/build/nestjs/didcommModules.d.ts +2 -0
  37. package/build/nestjs/didcommModules.js +13 -0
  38. package/build/nestjs/didcommModules.js.map +1 -0
  39. package/build/nestjs/dto/action-menu.dto.d.ts +30 -0
  40. package/build/nestjs/dto/action-menu.dto.js +147 -0
  41. package/build/nestjs/dto/action-menu.dto.js.map +1 -0
  42. package/build/nestjs/dto/calls.dto.d.ts +17 -0
  43. package/build/nestjs/dto/calls.dto.js +76 -0
  44. package/build/nestjs/dto/calls.dto.js.map +1 -0
  45. package/build/nestjs/dto/index.d.ts +8 -0
  46. package/build/nestjs/dto/index.js +25 -0
  47. package/build/nestjs/dto/index.js.map +1 -0
  48. package/build/nestjs/dto/media-sharing.dto.d.ts +20 -0
  49. package/build/nestjs/dto/media-sharing.dto.js +118 -0
  50. package/build/nestjs/dto/media-sharing.dto.js.map +1 -0
  51. package/build/nestjs/dto/question-answer.dto.d.ts +9 -0
  52. package/build/nestjs/dto/question-answer.dto.js +54 -0
  53. package/build/nestjs/dto/question-answer.dto.js.map +1 -0
  54. package/build/nestjs/dto/reactions.dto.d.ts +11 -0
  55. package/build/nestjs/dto/reactions.dto.js +60 -0
  56. package/build/nestjs/dto/reactions.dto.js.map +1 -0
  57. package/build/nestjs/dto/receipts.dto.d.ts +22 -0
  58. package/build/nestjs/dto/receipts.dto.js +67 -0
  59. package/build/nestjs/dto/receipts.dto.js.map +1 -0
  60. package/build/nestjs/dto/sent-message.dto.d.ts +3 -0
  61. package/build/nestjs/dto/sent-message.dto.js +24 -0
  62. package/build/nestjs/dto/sent-message.dto.js.map +1 -0
  63. package/build/nestjs/dto/user-profile.dto.d.ts +23 -0
  64. package/build/nestjs/dto/user-profile.dto.js +133 -0
  65. package/build/nestjs/dto/user-profile.dto.js.map +1 -0
  66. package/build/sdk/setupChatProtocols.js +14 -14
  67. package/build/sdk/setupChatProtocols.js.map +1 -1
  68. package/build/types.d.ts +9 -9
  69. package/package.json +17 -13
  70. package/build/handlers/ChatMessageHandler.d.ts +0 -13
  71. package/build/handlers/ChatMessageHandler.js +0 -273
  72. package/build/handlers/ChatMessageHandler.js.map +0 -1
  73. package/build/utils/parsers.d.ts +0 -11
  74. package/build/utils/parsers.js +0 -36
  75. package/build/utils/parsers.js.map +0 -1
@@ -0,0 +1,67 @@
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.SendReceiptsBodyDto = exports.MessageReceiptDto = exports.MessageState = 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
+ var MessageState;
17
+ (function (MessageState) {
18
+ MessageState["Created"] = "created";
19
+ MessageState["Submitted"] = "submitted";
20
+ MessageState["Received"] = "received";
21
+ MessageState["Viewed"] = "viewed";
22
+ MessageState["Deleted"] = "deleted";
23
+ })(MessageState || (exports.MessageState = MessageState = {}));
24
+ /**
25
+ * One entry of [VSA-ADM-DC-RC-SEND] sendReceipts.
26
+ */
27
+ class MessageReceiptDto {
28
+ }
29
+ exports.MessageReceiptDto = MessageReceiptDto;
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ description: 'Identifier of the message the receipt refers to', example: 'msg-1234' }),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ __metadata("design:type", String)
35
+ ], MessageReceiptDto.prototype, "messageId", void 0);
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ enum: MessageState, description: 'State reported for the message' }),
38
+ (0, class_validator_1.IsEnum)(MessageState),
39
+ __metadata("design:type", String)
40
+ ], MessageReceiptDto.prototype, "state", void 0);
41
+ __decorate([
42
+ (0, swagger_1.ApiPropertyOptional)({ description: 'When the state was reached', example: '2026-09-07T12:00:00.000Z' }),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsISO8601)(),
45
+ __metadata("design:type", String)
46
+ ], MessageReceiptDto.prototype, "timestamp", void 0);
47
+ /**
48
+ * Body of [VSA-ADM-DC-RC-SEND] sendReceipts.
49
+ */
50
+ class SendReceiptsBodyDto {
51
+ }
52
+ exports.SendReceiptsBodyDto = SendReceiptsBodyDto;
53
+ __decorate([
54
+ (0, swagger_1.ApiProperty)({ description: 'Connection to send the receipts on', example: 'conn-1234-5678' }),
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsNotEmpty)(),
57
+ __metadata("design:type", String)
58
+ ], SendReceiptsBodyDto.prototype, "connectionId", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiProperty)({ type: [MessageReceiptDto], description: 'The receipts to send' }),
61
+ (0, class_validator_1.IsArray)(),
62
+ (0, class_validator_1.ArrayNotEmpty)(),
63
+ (0, class_validator_1.ValidateNested)({ each: true }),
64
+ (0, class_transformer_1.Type)(() => MessageReceiptDto),
65
+ __metadata("design:type", Array)
66
+ ], SendReceiptsBodyDto.prototype, "receipts", void 0);
67
+ //# sourceMappingURL=receipts.dto.js.map
@@ -0,0 +1 @@
1
+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,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;qDACA"}
@@ -0,0 +1,3 @@
1
+ export declare class SentMessageDto {
2
+ id: string;
3
+ }
@@ -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.SentMessageDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class SentMessageDto {
15
+ }
16
+ exports.SentMessageDto = SentMessageDto;
17
+ __decorate([
18
+ (0, swagger_1.ApiProperty)({
19
+ description: 'Identifier of the sent message',
20
+ example: 'a1b2c3d4-5678-90ab-cdef-1234567890ab',
21
+ }),
22
+ __metadata("design:type", String)
23
+ ], SentMessageDto.prototype, "id", void 0);
24
+ //# sourceMappingURL=sent-message.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sent-message.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/sent-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6C;AAE7C,MAAa,cAAc;CAM1B;AAND,wCAMC;AADC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,sCAAsC;KAChD,CAAC;;0CACS"}
@@ -0,0 +1,23 @@
1
+ export declare class ProfilePictureDto {
2
+ mimeType?: string;
3
+ links?: string[];
4
+ base64?: string;
5
+ }
6
+ export declare class UserProfileDto {
7
+ displayName?: string;
8
+ displayPicture?: ProfilePictureDto;
9
+ displayIcon?: ProfilePictureDto;
10
+ description?: string;
11
+ preferredLanguage?: string;
12
+ }
13
+ export declare class SendProfileBodyDto {
14
+ connectionId: string;
15
+ profile?: UserProfileDto;
16
+ sendBackYours?: boolean;
17
+ threadId?: string;
18
+ parentThreadId?: string;
19
+ }
20
+ export declare class RequestProfileBodyDto {
21
+ connectionId: string;
22
+ query?: string[];
23
+ }
@@ -0,0 +1,133 @@
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)({
97
+ description: 'Thread of the request-profile or profile message this profile answers (`threadId` of the ' +
98
+ '`didcomm.user-profile.request-profile-received` or `didcomm.user-profile.profile-received` event)',
99
+ }),
100
+ (0, class_validator_1.IsOptional)(),
101
+ (0, class_validator_1.IsString)(),
102
+ (0, class_validator_1.IsNotEmpty)(),
103
+ __metadata("design:type", String)
104
+ ], SendProfileBodyDto.prototype, "threadId", void 0);
105
+ __decorate([
106
+ (0, swagger_1.ApiPropertyOptional)({
107
+ description: 'Thread this profile is a step of, sent as the parent thread (`pthid`) of the message. A peer that ' +
108
+ 'runs several exchanges inside one enclosing protocol thread uses it to tell which thread the ' +
109
+ 'profile belongs to.',
110
+ example: 'b2c3d4e5-6789-01ab-cdef-234567890abc',
111
+ }),
112
+ (0, class_validator_1.IsOptional)(),
113
+ (0, class_validator_1.IsString)(),
114
+ (0, class_validator_1.IsNotEmpty)(),
115
+ __metadata("design:type", String)
116
+ ], SendProfileBodyDto.prototype, "parentThreadId", void 0);
117
+ class RequestProfileBodyDto {
118
+ }
119
+ exports.RequestProfileBodyDto = RequestProfileBodyDto;
120
+ __decorate([
121
+ (0, swagger_1.ApiProperty)({ description: 'Connection to send the request on', example: 'conn-1234-5678' }),
122
+ (0, class_validator_1.IsString)(),
123
+ (0, class_validator_1.IsNotEmpty)(),
124
+ __metadata("design:type", String)
125
+ ], RequestProfileBodyDto.prototype, "connectionId", void 0);
126
+ __decorate([
127
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Profile fields of interest, every field when absent', type: [String] }),
128
+ (0, class_validator_1.IsOptional)(),
129
+ (0, class_validator_1.IsArray)(),
130
+ (0, class_validator_1.IsString)({ each: true }),
131
+ __metadata("design:type", Array)
132
+ ], RequestProfileBodyDto.prototype, "query", void 0);
133
+ //# 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,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AAmB,EAAC,EAAE,WAAW,EAAE,qDAAqD,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3G,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oDACT"}
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupChatProtocols = setupChatProtocols;
4
- const credo_ts_didcomm_calls_1 = require("@2060.io/credo-ts-didcomm-calls");
5
- const credo_ts_didcomm_media_sharing_1 = require("@2060.io/credo-ts-didcomm-media-sharing");
6
- const credo_ts_didcomm_reactions_1 = require("@2060.io/credo-ts-didcomm-reactions");
7
- const credo_ts_didcomm_receipts_1 = require("@2060.io/credo-ts-didcomm-receipts");
8
- const credo_ts_didcomm_user_profile_1 = require("@2060.io/credo-ts-didcomm-user-profile");
9
- const action_menu_1 = require("@credo-ts/action-menu");
10
- const question_answer_1 = require("@credo-ts/question-answer");
4
+ const didcomm_calls_1 = require("@credo-ts/didcomm-calls");
5
+ const didcomm_media_sharing_1 = require("@credo-ts/didcomm-media-sharing");
6
+ const didcomm_reactions_1 = require("@credo-ts/didcomm-reactions");
7
+ const didcomm_receipts_1 = require("@credo-ts/didcomm-receipts");
8
+ const didcomm_user_profile_1 = require("@credo-ts/didcomm-user-profile");
9
+ const didcomm_action_menu_1 = require("@credo-ts/didcomm-action-menu");
10
+ const didcomm_question_answer_1 = require("@credo-ts/didcomm-question-answer");
11
11
  function setupChatProtocols() {
12
12
  return {
13
13
  modules: {
14
- actionMenu: new action_menu_1.ActionMenuModule({ strictStateChecking: false }),
15
- calls: new credo_ts_didcomm_calls_1.DidCommCallsModule(),
16
- reactions: new credo_ts_didcomm_reactions_1.DidCommReactionsModule(),
17
- media: new credo_ts_didcomm_media_sharing_1.DidCommMediaSharingModule(),
18
- questionAnswer: new question_answer_1.QuestionAnswerModule(),
19
- receipts: new credo_ts_didcomm_receipts_1.DidCommReceiptsModule(),
14
+ actionMenu: new didcomm_action_menu_1.DidCommActionMenuModule({ strictStateChecking: false }),
15
+ calls: new didcomm_calls_1.DidCommCallsModule(),
16
+ reactions: new didcomm_reactions_1.DidCommReactionsModule(),
17
+ media: new didcomm_media_sharing_1.DidCommMediaSharingModule(),
18
+ questionAnswer: new didcomm_question_answer_1.DidCommQuestionAnswerModule(),
19
+ receipts: new didcomm_receipts_1.DidCommReceiptsModule(),
20
20
  // Disable module's auto disclose feature, managed externally in ChatEvents
21
- userProfile: new credo_ts_didcomm_user_profile_1.DidCommUserProfileModule(new credo_ts_didcomm_user_profile_1.DidCommUserProfileModuleConfig({ autoSendProfile: false })),
21
+ userProfile: new didcomm_user_profile_1.DidCommUserProfileModule(new didcomm_user_profile_1.DidCommUserProfileModuleConfig({ autoSendProfile: false })),
22
22
  },
23
23
  };
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"setupChatProtocols.js","sourceRoot":"","sources":["../../src/sdk/setupChatProtocols.ts"],"names":[],"mappings":";;AAoBA,gDAeC;AAnCD,4EAAoE;AACpE,4FAAmF;AACnF,oFAA4E;AAC5E,kFAA0E;AAC1E,0FAG+C;AAC/C,uDAAwD;AACxD,+DAAgE;AAWhE,SAAgB,kBAAkB;IAChC,OAAO;QACL,OAAO,EAAE;YACP,UAAU,EAAE,IAAI,8BAAgB,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC;YAChE,KAAK,EAAE,IAAI,2CAAkB,EAAE;YAC/B,SAAS,EAAE,IAAI,mDAAsB,EAAE;YACvC,KAAK,EAAE,IAAI,0DAAyB,EAAE;YACtC,cAAc,EAAE,IAAI,sCAAoB,EAAE;YAC1C,QAAQ,EAAE,IAAI,iDAAqB,EAAE;YACrC,2EAA2E;YAC3E,WAAW,EAAE,IAAI,wDAAwB,CACvC,IAAI,8DAA8B,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAC/D;SACF;KACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"setupChatProtocols.js","sourceRoot":"","sources":["../../src/sdk/setupChatProtocols.ts"],"names":[],"mappings":";;AAiBA,gDAeC;AAhCD,2DAA4D;AAC5D,2EAA2E;AAC3E,mEAAoE;AACpE,iEAAkE;AAClE,yEAAyG;AACzG,uEAAuE;AACvE,+EAA+E;AAW/E,SAAgB,kBAAkB;IAChC,OAAO;QACL,OAAO,EAAE;YACP,UAAU,EAAE,IAAI,6CAAuB,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC;YACvE,KAAK,EAAE,IAAI,kCAAkB,EAAE;YAC/B,SAAS,EAAE,IAAI,0CAAsB,EAAE;YACvC,KAAK,EAAE,IAAI,iDAAyB,EAAE;YACtC,cAAc,EAAE,IAAI,qDAA2B,EAAE;YACjD,QAAQ,EAAE,IAAI,wCAAqB,EAAE;YACrC,2EAA2E;YAC3E,WAAW,EAAE,IAAI,+CAAwB,CACvC,IAAI,qDAA8B,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAC/D;SACF;KACF,CAAA;AACH,CAAC"}
package/build/types.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import type { DidCommCallsModule } from '@2060.io/credo-ts-didcomm-calls';
2
- import type { DidCommMediaSharingModule } from '@2060.io/credo-ts-didcomm-media-sharing';
3
- import type { DidCommReactionsModule } from '@2060.io/credo-ts-didcomm-reactions';
4
- import type { DidCommReceiptsModule } from '@2060.io/credo-ts-didcomm-receipts';
5
- import type { DidCommUserProfileModule } from '@2060.io/credo-ts-didcomm-user-profile';
6
- import type { ActionMenuModule } from '@credo-ts/action-menu';
7
- import type { QuestionAnswerModule } from '@credo-ts/question-answer';
1
+ import type { DidCommCallsModule } from '@credo-ts/didcomm-calls';
2
+ import type { DidCommMediaSharingModule } from '@credo-ts/didcomm-media-sharing';
3
+ import type { DidCommReactionsModule } from '@credo-ts/didcomm-reactions';
4
+ import type { DidCommReceiptsModule } from '@credo-ts/didcomm-receipts';
5
+ import type { DidCommUserProfileModule } from '@credo-ts/didcomm-user-profile';
6
+ import type { DidCommActionMenuModule } from '@credo-ts/didcomm-action-menu';
7
+ import type { DidCommQuestionAnswerModule } from '@credo-ts/didcomm-question-answer';
8
8
  import type { BaseAgentModules } from '@verana-labs/vs-agent-sdk';
9
9
  export type ChatAgentModules = BaseAgentModules & {
10
- actionMenu: ActionMenuModule;
10
+ actionMenu: DidCommActionMenuModule;
11
11
  calls: DidCommCallsModule;
12
12
  reactions: DidCommReactionsModule;
13
13
  media: DidCommMediaSharingModule;
14
- questionAnswer: QuestionAnswerModule;
14
+ questionAnswer: DidCommQuestionAnswerModule;
15
15
  receipts: DidCommReceiptsModule;
16
16
  userProfile: DidCommUserProfileModule;
17
17
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "default": "./build/index.js"
10
10
  }
11
11
  },
12
- "version": "2.0.0-dev.14",
12
+ "version": "2.0.0-dev.141",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/verana-labs/vs-agent"
@@ -23,26 +23,30 @@
23
23
  "license": "Apache-2.0",
24
24
  "description": "Chat DIDComm plugin for VS Agent",
25
25
  "dependencies": {
26
- "@2060.io/credo-ts-didcomm-calls": "0.1.0",
27
- "@2060.io/credo-ts-didcomm-media-sharing": "0.1.1",
28
- "@2060.io/credo-ts-didcomm-reactions": "^0.1.1",
29
- "@2060.io/credo-ts-didcomm-receipts": "0.1.1",
30
- "@2060.io/credo-ts-didcomm-user-profile": "0.1.0",
31
- "@credo-ts/action-menu": "0.7.1-pr-2704-20260630143332",
32
- "@credo-ts/core": "0.7.1-pr-2704-20260630143332",
33
- "@credo-ts/didcomm": "0.7.1-pr-2704-20260630143332",
34
- "@credo-ts/question-answer": "0.7.1-pr-2704-20260630143332",
26
+ "@credo-ts/core": "0.8.0-alpha-20261128092258",
27
+ "@credo-ts/didcomm": "0.8.0-alpha-20261128092258",
28
+ "@credo-ts/didcomm-action-menu": "0.8.0",
29
+ "@credo-ts/didcomm-calls": "0.2.0",
30
+ "@credo-ts/didcomm-media-sharing": "0.2.0",
31
+ "@credo-ts/didcomm-question-answer": "0.8.0",
32
+ "@credo-ts/didcomm-reactions": "0.2.0",
33
+ "@credo-ts/didcomm-receipts": "0.2.0",
34
+ "@credo-ts/didcomm-user-profile": "0.2.0",
35
35
  "@nestjs/common": "^10.0.0",
36
- "@verana-labs/vs-agent-model": "2.0.0-dev.14",
37
- "@verana-labs/vs-agent-sdk": "2.0.0-dev.14"
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.141",
40
+ "@verana-labs/vs-agent-sdk": "2.0.0-dev.141"
38
41
  },
39
42
  "peerDependencies": {
40
- "@credo-ts/core": "0.7.1-pr-2704-20260630143332"
43
+ "@credo-ts/core": "0.8.0-alpha-20261128092258"
41
44
  },
42
45
  "scripts": {
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
  }
@@ -1,13 +0,0 @@
1
- import type { MessageHandler } from '@verana-labs/vs-agent-sdk';
2
- import { DidCommConnectionRecord } from '@credo-ts/didcomm';
3
- import { IBaseMessage, MessageType } from '@verana-labs/vs-agent-model';
4
- import { VsAgent } from '@verana-labs/vs-agent-sdk';
5
- export declare class ChatMessageHandler implements MessageHandler {
6
- readonly supportedTypes: MessageType[];
7
- readonly openApiExamples: Record<string, {
8
- summary: string;
9
- description: string;
10
- value: object;
11
- }>;
12
- handle(agent: VsAgent<any>, message: IBaseMessage, connection: DidCommConnectionRecord): Promise<string | undefined>;
13
- }