@verana-labs/vs-agent-plugin-chat 2.0.0-dev.8 → 2.0.0-pr.767.1

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 -32
  2. package/build/events/ChatEvents.js.map +1 -1
  3. package/build/events/didcommModuleEvents.d.ts +2 -0
  4. package/build/events/didcommModuleEvents.js +119 -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 +60 -0
  14. package/build/nestjs/V2DidcommActionMenuController.js.map +1 -0
  15. package/build/nestjs/V2DidcommCallsController.d.ts +12 -0
  16. package/build/nestjs/V2DidcommCallsController.js +116 -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 +71 -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 +63 -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 +67 -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 +66 -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 +93 -0
  32. package/build/nestjs/V2DidcommUserProfileController.js.map +1 -0
  33. package/build/nestjs/chatModuleApi.d.ts +5 -0
  34. package/build/nestjs/chatModuleApi.js +11 -0
  35. package/build/nestjs/chatModuleApi.js.map +1 -0
  36. package/build/nestjs/defaultProfile.d.ts +4 -0
  37. package/build/nestjs/defaultProfile.js +5 -0
  38. package/build/nestjs/defaultProfile.js.map +1 -0
  39. package/build/nestjs/didcommModules.d.ts +2 -0
  40. package/build/nestjs/didcommModules.js +13 -0
  41. package/build/nestjs/didcommModules.js.map +1 -0
  42. package/build/nestjs/dto/action-menu.dto.d.ts +30 -0
  43. package/build/nestjs/dto/action-menu.dto.js +147 -0
  44. package/build/nestjs/dto/action-menu.dto.js.map +1 -0
  45. package/build/nestjs/dto/calls.dto.d.ts +17 -0
  46. package/build/nestjs/dto/calls.dto.js +76 -0
  47. package/build/nestjs/dto/calls.dto.js.map +1 -0
  48. package/build/nestjs/dto/index.d.ts +8 -0
  49. package/build/nestjs/dto/index.js +25 -0
  50. package/build/nestjs/dto/index.js.map +1 -0
  51. package/build/nestjs/dto/media-sharing.dto.d.ts +20 -0
  52. package/build/nestjs/dto/media-sharing.dto.js +114 -0
  53. package/build/nestjs/dto/media-sharing.dto.js.map +1 -0
  54. package/build/nestjs/dto/question-answer.dto.d.ts +9 -0
  55. package/build/nestjs/dto/question-answer.dto.js +54 -0
  56. package/build/nestjs/dto/question-answer.dto.js.map +1 -0
  57. package/build/nestjs/dto/reactions.dto.d.ts +11 -0
  58. package/build/nestjs/dto/reactions.dto.js +60 -0
  59. package/build/nestjs/dto/reactions.dto.js.map +1 -0
  60. package/build/nestjs/dto/receipts.dto.d.ts +22 -0
  61. package/build/nestjs/dto/receipts.dto.js +67 -0
  62. package/build/nestjs/dto/receipts.dto.js.map +1 -0
  63. package/build/nestjs/dto/sent-message.dto.d.ts +3 -0
  64. package/build/nestjs/dto/sent-message.dto.js +24 -0
  65. package/build/nestjs/dto/sent-message.dto.js.map +1 -0
  66. package/build/nestjs/dto/user-profile.dto.d.ts +22 -0
  67. package/build/nestjs/dto/user-profile.dto.js +118 -0
  68. package/build/nestjs/dto/user-profile.dto.js.map +1 -0
  69. package/build/utils/parsers.d.ts +0 -9
  70. package/build/utils/parsers.js +0 -24
  71. package/build/utils/parsers.js.map +1 -1
  72. package/package.json +12 -8
  73. package/build/handlers/ChatMessageHandler.d.ts +0 -13
  74. package/build/handlers/ChatMessageHandler.js +0 -273
  75. package/build/handlers/ChatMessageHandler.js.map +0 -1
@@ -0,0 +1,147 @@
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.SendMenuBodyDto = exports.ActionMenuDto = exports.ActionMenuOptionDto = exports.ActionMenuFormDto = exports.ActionMenuFormParameterDto = void 0;
13
+ const action_menu_1 = require("@credo-ts/action-menu");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ class ActionMenuFormParameterDto {
18
+ }
19
+ exports.ActionMenuFormParameterDto = ActionMenuFormParameterDto;
20
+ __decorate([
21
+ (0, swagger_1.ApiProperty)({ description: 'Name of the parameter', example: 'email' }),
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ __metadata("design:type", String)
25
+ ], ActionMenuFormParameterDto.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ description: 'Title of the parameter', example: 'Email address' }),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], ActionMenuFormParameterDto.prototype, "title", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ description: 'Text that describes the parameter' }),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], ActionMenuFormParameterDto.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Value the peer starts from' }),
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], ActionMenuFormParameterDto.prototype, "default", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiPropertyOptional)({ description: 'The peer must fill the parameter', default: false }),
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsBoolean)(),
47
+ __metadata("design:type", Boolean)
48
+ ], ActionMenuFormParameterDto.prototype, "required", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiPropertyOptional)({ enum: action_menu_1.ActionMenuFormInputType, description: 'Kind of input' }),
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsEnum)(action_menu_1.ActionMenuFormInputType),
53
+ __metadata("design:type", String)
54
+ ], ActionMenuFormParameterDto.prototype, "type", void 0);
55
+ class ActionMenuFormDto {
56
+ }
57
+ exports.ActionMenuFormDto = ActionMenuFormDto;
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({ description: 'Text that describes the form' }),
60
+ (0, class_validator_1.IsString)(),
61
+ __metadata("design:type", String)
62
+ ], ActionMenuFormDto.prototype, "description", void 0);
63
+ __decorate([
64
+ (0, swagger_1.ApiProperty)({ description: 'Label of the submit control', example: 'Send' }),
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.IsNotEmpty)(),
67
+ __metadata("design:type", String)
68
+ ], ActionMenuFormDto.prototype, "submitLabel", void 0);
69
+ __decorate([
70
+ (0, swagger_1.ApiProperty)({ type: [ActionMenuFormParameterDto], description: 'The parameters the peer fills' }),
71
+ (0, class_validator_1.IsArray)(),
72
+ (0, class_validator_1.ValidateNested)({ each: true }),
73
+ (0, class_transformer_1.Type)(() => ActionMenuFormParameterDto),
74
+ __metadata("design:type", Array)
75
+ ], ActionMenuFormDto.prototype, "params", void 0);
76
+ class ActionMenuOptionDto {
77
+ }
78
+ exports.ActionMenuOptionDto = ActionMenuOptionDto;
79
+ __decorate([
80
+ (0, swagger_1.ApiProperty)({ description: 'Name of the option, reported back when the peer performs it' }),
81
+ (0, class_validator_1.IsString)(),
82
+ (0, class_validator_1.IsNotEmpty)(),
83
+ __metadata("design:type", String)
84
+ ], ActionMenuOptionDto.prototype, "name", void 0);
85
+ __decorate([
86
+ (0, swagger_1.ApiProperty)({ description: 'Title of the option' }),
87
+ (0, class_validator_1.IsString)(),
88
+ (0, class_validator_1.IsNotEmpty)(),
89
+ __metadata("design:type", String)
90
+ ], ActionMenuOptionDto.prototype, "title", void 0);
91
+ __decorate([
92
+ (0, swagger_1.ApiProperty)({ description: 'Text that describes the option' }),
93
+ (0, class_validator_1.IsString)(),
94
+ __metadata("design:type", String)
95
+ ], ActionMenuOptionDto.prototype, "description", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiPropertyOptional)({ description: 'The option is displayed but cannot be performed', default: false }),
98
+ (0, class_validator_1.IsOptional)(),
99
+ (0, class_validator_1.IsBoolean)(),
100
+ __metadata("design:type", Boolean)
101
+ ], ActionMenuOptionDto.prototype, "disabled", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiPropertyOptional)({ type: ActionMenuFormDto, description: 'Form the peer fills before it performs' }),
104
+ (0, class_validator_1.IsOptional)(),
105
+ (0, class_validator_1.ValidateNested)(),
106
+ (0, class_transformer_1.Type)(() => ActionMenuFormDto),
107
+ __metadata("design:type", ActionMenuFormDto)
108
+ ], ActionMenuOptionDto.prototype, "form", void 0);
109
+ class ActionMenuDto {
110
+ }
111
+ exports.ActionMenuDto = ActionMenuDto;
112
+ __decorate([
113
+ (0, swagger_1.ApiProperty)({ description: 'Title of the menu' }),
114
+ (0, class_validator_1.IsString)(),
115
+ (0, class_validator_1.IsNotEmpty)(),
116
+ __metadata("design:type", String)
117
+ ], ActionMenuDto.prototype, "title", void 0);
118
+ __decorate([
119
+ (0, swagger_1.ApiProperty)({ description: 'Text that describes the menu' }),
120
+ (0, class_validator_1.IsString)(),
121
+ __metadata("design:type", String)
122
+ ], ActionMenuDto.prototype, "description", void 0);
123
+ __decorate([
124
+ (0, swagger_1.ApiProperty)({ type: [ActionMenuOptionDto], description: 'The options of the menu' }),
125
+ (0, class_validator_1.IsArray)(),
126
+ (0, class_validator_1.ArrayNotEmpty)(),
127
+ (0, class_validator_1.ValidateNested)({ each: true }),
128
+ (0, class_transformer_1.Type)(() => ActionMenuOptionDto),
129
+ __metadata("design:type", Array)
130
+ ], ActionMenuDto.prototype, "options", void 0);
131
+ class SendMenuBodyDto {
132
+ }
133
+ exports.SendMenuBodyDto = SendMenuBodyDto;
134
+ __decorate([
135
+ (0, swagger_1.ApiProperty)({ description: 'Connection to send the menu on', example: 'conn-1234-5678' }),
136
+ (0, class_validator_1.IsString)(),
137
+ (0, class_validator_1.IsNotEmpty)(),
138
+ __metadata("design:type", String)
139
+ ], SendMenuBodyDto.prototype, "connectionId", void 0);
140
+ __decorate([
141
+ (0, swagger_1.ApiProperty)({ type: ActionMenuDto, description: 'The menu to send' }),
142
+ (0, class_validator_1.IsDefined)(),
143
+ (0, class_validator_1.ValidateNested)(),
144
+ (0, class_transformer_1.Type)(() => ActionMenuDto),
145
+ __metadata("design:type", ActionMenuDto)
146
+ ], SendMenuBodyDto.prototype, "menu", void 0);
147
+ //# sourceMappingURL=action-menu.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-menu.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/action-menu.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAA+D;AAC/D,6CAAkE;AAClE,yDAAwC;AACxC,qDAUwB;AAExB,MAAa,0BAA0B;CA6BtC;AA7BD,gEA6BC;AAzBC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACvE,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACA;AAKb;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAChF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACC;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IACjE,IAAA,0BAAQ,GAAE;;+DACS;AAKpB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAClE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAKhB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACxF,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;4DACM;AAKlB;IAHC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,qCAAuB,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACpF,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qCAAuB,CAAC;;wDACF;AAGhC,MAAa,iBAAiB;CAe7B;AAfD,8CAeC;AAZC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC5D,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AAG1B,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC;AAZC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACjD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACC;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC5D,IAAA,0BAAQ,GAAE;;kDACS;AAOpB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACpF,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;;8CACD;AAGjC,MAAa,eAAe;CAW3B;AAXD,0CAWC;AAPC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IACzF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACQ;AAMrB;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACrE,IAAA,2BAAS,GAAE;IACX,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;8BACnB,aAAa;6CAAA"}
@@ -0,0 +1,17 @@
1
+ export declare const CALL_TYPES: readonly ["audio", "video", "service"];
2
+ export type CallType = (typeof CALL_TYPES)[number];
3
+ export declare class OfferCallBodyDto {
4
+ connectionId: string;
5
+ callType: CallType;
6
+ parameters: Record<string, unknown>;
7
+ description?: string;
8
+ offerStartTime?: string;
9
+ offerExpirationTime?: string;
10
+ }
11
+ export declare class CallThreadBodyDto {
12
+ connectionId: string;
13
+ threadId: string;
14
+ }
15
+ export declare class AcceptCallBodyDto extends CallThreadBodyDto {
16
+ parameters: Record<string, unknown>;
17
+ }
@@ -0,0 +1,76 @@
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.AcceptCallBodyDto = exports.CallThreadBodyDto = exports.OfferCallBodyDto = exports.CALL_TYPES = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ exports.CALL_TYPES = ['audio', 'video', 'service'];
16
+ class OfferCallBodyDto {
17
+ }
18
+ exports.OfferCallBodyDto = OfferCallBodyDto;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({ description: 'Connection to offer the call on', example: 'conn-1234-5678' }),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], OfferCallBodyDto.prototype, "connectionId", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({ enum: exports.CALL_TYPES, description: 'Kind of call' }),
27
+ (0, class_validator_1.IsIn)(exports.CALL_TYPES),
28
+ __metadata("design:type", String)
29
+ ], OfferCallBodyDto.prototype, "callType", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ description: 'Transport parameters of the call', type: Object }),
32
+ (0, class_validator_1.IsObject)(),
33
+ __metadata("design:type", Object)
34
+ ], OfferCallBodyDto.prototype, "parameters", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Text that describes the call' }),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], OfferCallBodyDto.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, swagger_1.ApiPropertyOptional)({ description: 'When the call starts', 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
+ ], OfferCallBodyDto.prototype, "offerStartTime", void 0);
47
+ __decorate([
48
+ (0, swagger_1.ApiPropertyOptional)({ description: 'When the offer expires', example: '2026-09-07T12:05:00.000Z' }),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsISO8601)(),
51
+ __metadata("design:type", String)
52
+ ], OfferCallBodyDto.prototype, "offerExpirationTime", void 0);
53
+ class CallThreadBodyDto {
54
+ }
55
+ exports.CallThreadBodyDto = CallThreadBodyDto;
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ description: 'Connection of the call', example: 'conn-1234-5678' }),
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ __metadata("design:type", String)
61
+ ], CallThreadBodyDto.prototype, "connectionId", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({ description: 'Thread of the call offer' }),
64
+ (0, class_validator_1.IsString)(),
65
+ (0, class_validator_1.IsNotEmpty)(),
66
+ __metadata("design:type", String)
67
+ ], CallThreadBodyDto.prototype, "threadId", void 0);
68
+ class AcceptCallBodyDto extends CallThreadBodyDto {
69
+ }
70
+ exports.AcceptCallBodyDto = AcceptCallBodyDto;
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)({ description: 'Transport parameters of the accepting side', type: Object }),
73
+ (0, class_validator_1.IsObject)(),
74
+ __metadata("design:type", Object)
75
+ ], AcceptCallBodyDto.prototype, "parameters", void 0);
76
+ //# sourceMappingURL=calls.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calls.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/calls.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkE;AAClE,qDAA6F;AAEhF,QAAA,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAU,CAAA;AAIhE,MAAa,gBAAgB;CA4B5B;AA5BD,4CA4BC;AAxBC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC1F,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACQ;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,kBAAU,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9D,IAAA,sBAAI,EAAC,kBAAU,CAAC;;kDACE;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9E,IAAA,0BAAQ,GAAE;;oDACyB;AAKpC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IACpE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACS;AAKpB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACjG,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wDACW;AAKvB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACnG,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DACgB;AAG9B,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AANC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IACjF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAKrB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACxD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAGnB,MAAa,iBAAkB,SAAQ,iBAAiB;CAIvD;AAJD,8CAIC;AADC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxF,IAAA,0BAAQ,GAAE;;qDACyB"}
@@ -0,0 +1,8 @@
1
+ export * from './action-menu.dto';
2
+ export * from './calls.dto';
3
+ export * from './media-sharing.dto';
4
+ export * from './question-answer.dto';
5
+ export * from './reactions.dto';
6
+ export * from './receipts.dto';
7
+ export * from './sent-message.dto';
8
+ export * from './user-profile.dto';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./action-menu.dto"), exports);
18
+ __exportStar(require("./calls.dto"), exports);
19
+ __exportStar(require("./media-sharing.dto"), exports);
20
+ __exportStar(require("./question-answer.dto"), exports);
21
+ __exportStar(require("./reactions.dto"), exports);
22
+ __exportStar(require("./receipts.dto"), exports);
23
+ __exportStar(require("./sent-message.dto"), exports);
24
+ __exportStar(require("./user-profile.dto"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nestjs/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,8CAA2B;AAC3B,sDAAmC;AACnC,wDAAqC;AACrC,kDAA+B;AAC/B,iDAA8B;AAC9B,qDAAkC;AAClC,qDAAkC"}
@@ -0,0 +1,20 @@
1
+ export declare class MediaCipheringDto {
2
+ algorithm: string;
3
+ parameters: Record<string, unknown>;
4
+ }
5
+ export declare class SharedMediaItemDto {
6
+ id?: string;
7
+ uri: string;
8
+ mimeType: string;
9
+ fileName?: string;
10
+ description?: string;
11
+ byteCount?: number;
12
+ ciphering?: MediaCipheringDto;
13
+ metadata?: Record<string, unknown>;
14
+ }
15
+ export declare class ShareMediaBodyDto {
16
+ connectionId: string;
17
+ description?: string;
18
+ threadId?: string;
19
+ items: SharedMediaItemDto[];
20
+ }
@@ -0,0 +1,114 @@
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.ShareMediaBodyDto = exports.SharedMediaItemDto = exports.MediaCipheringDto = 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 MediaCipheringDto {
17
+ }
18
+ exports.MediaCipheringDto = MediaCipheringDto;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({ description: 'Algorithm the media at the uri is encrypted with', example: 'aes-256-gcm' }),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], MediaCipheringDto.prototype, "algorithm", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({ description: 'Parameters of the algorithm', type: Object }),
27
+ (0, class_validator_1.IsObject)(),
28
+ __metadata("design:type", Object)
29
+ ], MediaCipheringDto.prototype, "parameters", void 0);
30
+ class SharedMediaItemDto {
31
+ }
32
+ exports.SharedMediaItemDto = SharedMediaItemDto;
33
+ __decorate([
34
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Item identifier, generated by the agent when absent' }),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.IsNotEmpty)(),
38
+ __metadata("design:type", String)
39
+ ], SharedMediaItemDto.prototype, "id", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({ description: 'Where the media can be fetched from', example: 'https://media.example/1' }),
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_validator_1.IsNotEmpty)(),
44
+ __metadata("design:type", String)
45
+ ], SharedMediaItemDto.prototype, "uri", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({ description: 'Media type of the item', example: 'image/png' }),
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_validator_1.IsNotEmpty)(),
50
+ __metadata("design:type", String)
51
+ ], SharedMediaItemDto.prototype, "mimeType", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Name of the file' }),
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsString)(),
56
+ __metadata("design:type", String)
57
+ ], SharedMediaItemDto.prototype, "fileName", void 0);
58
+ __decorate([
59
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Text that describes the item' }),
60
+ (0, class_validator_1.IsOptional)(),
61
+ (0, class_validator_1.IsString)(),
62
+ __metadata("design:type", String)
63
+ ], SharedMediaItemDto.prototype, "description", void 0);
64
+ __decorate([
65
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Size of the media, in bytes' }),
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.IsInt)(),
68
+ (0, class_validator_1.Min)(0),
69
+ __metadata("design:type", Number)
70
+ ], SharedMediaItemDto.prototype, "byteCount", void 0);
71
+ __decorate([
72
+ (0, swagger_1.ApiPropertyOptional)({ type: MediaCipheringDto, description: 'Set when the media is encrypted' }),
73
+ (0, class_validator_1.IsOptional)(),
74
+ (0, class_validator_1.ValidateNested)(),
75
+ (0, class_transformer_1.Type)(() => MediaCipheringDto),
76
+ __metadata("design:type", MediaCipheringDto)
77
+ ], SharedMediaItemDto.prototype, "ciphering", void 0);
78
+ __decorate([
79
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Anything else the peer should know about the item', type: Object }),
80
+ (0, class_validator_1.IsOptional)(),
81
+ (0, class_validator_1.IsObject)(),
82
+ __metadata("design:type", Object)
83
+ ], SharedMediaItemDto.prototype, "metadata", void 0);
84
+ class ShareMediaBodyDto {
85
+ }
86
+ exports.ShareMediaBodyDto = ShareMediaBodyDto;
87
+ __decorate([
88
+ (0, swagger_1.ApiProperty)({ description: 'Connection to share the items on', example: 'conn-1234-5678' }),
89
+ (0, class_validator_1.IsString)(),
90
+ (0, class_validator_1.IsNotEmpty)(),
91
+ __metadata("design:type", String)
92
+ ], ShareMediaBodyDto.prototype, "connectionId", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Text that describes the share' }),
95
+ (0, class_validator_1.IsOptional)(),
96
+ (0, class_validator_1.IsString)(),
97
+ __metadata("design:type", String)
98
+ ], ShareMediaBodyDto.prototype, "description", void 0);
99
+ __decorate([
100
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Thread of the request-media message this share answers' }),
101
+ (0, class_validator_1.IsOptional)(),
102
+ (0, class_validator_1.IsString)(),
103
+ (0, class_validator_1.IsNotEmpty)(),
104
+ __metadata("design:type", String)
105
+ ], ShareMediaBodyDto.prototype, "threadId", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiProperty)({ type: [SharedMediaItemDto], description: 'The items to share' }),
108
+ (0, class_validator_1.IsArray)(),
109
+ (0, class_validator_1.ArrayNotEmpty)(),
110
+ (0, class_validator_1.ValidateNested)({ each: true }),
111
+ (0, class_transformer_1.Type)(() => SharedMediaItemDto),
112
+ __metadata("design:type", Array)
113
+ ], ShareMediaBodyDto.prototype, "items", void 0);
114
+ //# sourceMappingURL=media-sharing.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-sharing.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/media-sharing.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkE;AAClE,yDAAwC;AACxC,qDAUwB;AAExB,MAAa,iBAAiB;CAS7B;AATD,8CASC;AALC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACxG,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACzE,IAAA,0BAAQ,GAAE;;qDACyB;AAGtC,MAAa,kBAAkB;CA2C9B;AA3CD,gDA2CC;AAt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U,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACuB;AAGpC,MAAa,iBAAiB;CAuB7B;AAvBD,8CAuBC;AAnBC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC3F,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAKrB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACrE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACS;AAMpB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;IAC9F,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAOjB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,kBAAkB,CAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAC9E,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;;gDACH"}
@@ -0,0 +1,9 @@
1
+ export declare class ValidResponseDto {
2
+ text: string;
3
+ }
4
+ export declare class SendQuestionBodyDto {
5
+ connectionId: string;
6
+ question: string;
7
+ validResponses: ValidResponseDto[];
8
+ detail?: string;
9
+ }
@@ -0,0 +1,54 @@
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.SendQuestionBodyDto = exports.ValidResponseDto = 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 ValidResponseDto {
17
+ }
18
+ exports.ValidResponseDto = ValidResponseDto;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({ description: 'An answer the peer can select', example: 'Yes' }),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], ValidResponseDto.prototype, "text", void 0);
25
+ class SendQuestionBodyDto {
26
+ }
27
+ exports.SendQuestionBodyDto = SendQuestionBodyDto;
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({ description: 'Connection to send the question on', example: 'conn-1234-5678' }),
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", String)
33
+ ], SendQuestionBodyDto.prototype, "connectionId", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({ description: 'Text of the question', example: 'Do you accept the terms?' }),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.IsNotEmpty)(),
38
+ __metadata("design:type", String)
39
+ ], SendQuestionBodyDto.prototype, "question", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({ type: [ValidResponseDto], description: 'The answers the peer can select' }),
42
+ (0, class_validator_1.IsArray)(),
43
+ (0, class_validator_1.ArrayNotEmpty)(),
44
+ (0, class_validator_1.ValidateNested)({ each: true }),
45
+ (0, class_transformer_1.Type)(() => ValidResponseDto),
46
+ __metadata("design:type", Array)
47
+ ], SendQuestionBodyDto.prototype, "validResponses", void 0);
48
+ __decorate([
49
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Additional text for the question' }),
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], SendQuestionBodyDto.prototype, "detail", void 0);
54
+ //# sourceMappingURL=question-answer.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-answer.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/question-answer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkE;AAClE,yDAAwC;AACxC,qDAA0G;AAE1G,MAAa,gBAAgB;CAK5B;AALD,4CAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACA;AAGf,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAlBC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oCAAoC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC7F,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACQ;AAKrB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACzF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACI;AAOjB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,gBAAgB,CAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IACzF,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;;2DACM;AAKnC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IACxE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI"}
@@ -0,0 +1,11 @@
1
+ import { DidCommMessageReactionAction } from '@2060.io/credo-ts-didcomm-reactions';
2
+ export declare class MessageReactionDto {
3
+ messageId: string;
4
+ emoji: string;
5
+ action: DidCommMessageReactionAction;
6
+ timestamp?: string;
7
+ }
8
+ export declare class SendReactionsBodyDto {
9
+ connectionId: string;
10
+ reactions: MessageReactionDto[];
11
+ }
@@ -0,0 +1,60 @@
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.SendReactionsBodyDto = exports.MessageReactionDto = void 0;
13
+ const credo_ts_didcomm_reactions_1 = require("@2060.io/credo-ts-didcomm-reactions");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ class MessageReactionDto {
18
+ }
19
+ exports.MessageReactionDto = MessageReactionDto;
20
+ __decorate([
21
+ (0, swagger_1.ApiProperty)({ description: 'Identifier of the message the reaction refers to', example: 'msg-1234' }),
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ __metadata("design:type", String)
25
+ ], MessageReactionDto.prototype, "messageId", void 0);
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ description: 'The emoji', example: '👍' }),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], MessageReactionDto.prototype, "emoji", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ enum: credo_ts_didcomm_reactions_1.DidCommMessageReactionAction, description: 'Whether the emoji is set or removed' }),
34
+ (0, class_validator_1.IsEnum)(credo_ts_didcomm_reactions_1.DidCommMessageReactionAction),
35
+ __metadata("design:type", String)
36
+ ], MessageReactionDto.prototype, "action", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiPropertyOptional)({ description: 'When the reaction was made', example: '2026-09-07T12:00:00.000Z' }),
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsISO8601)(),
41
+ __metadata("design:type", String)
42
+ ], MessageReactionDto.prototype, "timestamp", void 0);
43
+ class SendReactionsBodyDto {
44
+ }
45
+ exports.SendReactionsBodyDto = SendReactionsBodyDto;
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({ description: 'Connection to send the reactions on', example: 'conn-1234-5678' }),
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_validator_1.IsNotEmpty)(),
50
+ __metadata("design:type", String)
51
+ ], SendReactionsBodyDto.prototype, "connectionId", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({ type: [MessageReactionDto], description: 'The reactions to send' }),
54
+ (0, class_validator_1.IsArray)(),
55
+ (0, class_validator_1.ArrayNotEmpty)(),
56
+ (0, class_validator_1.ValidateNested)({ each: true }),
57
+ (0, class_transformer_1.Type)(() => MessageReactionDto),
58
+ __metadata("design:type", Array)
59
+ ], SendReactionsBodyDto.prototype, "reactions", void 0);
60
+ //# sourceMappingURL=reactions.dto.js.map
@@ -0,0 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AA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;;uDACC"}
@@ -0,0 +1,22 @@
1
+ export declare enum MessageState {
2
+ Created = "created",
3
+ Submitted = "submitted",
4
+ Received = "received",
5
+ Viewed = "viewed",
6
+ Deleted = "deleted"
7
+ }
8
+ /**
9
+ * One entry of [VSA-ADM-DC-RC-SEND] sendReceipts.
10
+ */
11
+ export declare class MessageReceiptDto {
12
+ messageId: string;
13
+ state: MessageState;
14
+ timestamp?: string;
15
+ }
16
+ /**
17
+ * Body of [VSA-ADM-DC-RC-SEND] sendReceipts.
18
+ */
19
+ export declare class SendReceiptsBodyDto {
20
+ connectionId: string;
21
+ receipts: MessageReceiptDto[];
22
+ }