tychat-contracts 1.0.71 → 1.0.72

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.
@@ -22,6 +22,7 @@ export declare class AiStructuredResponseDto {
22
22
  type: AiResponseTypeDto;
23
23
  actionType?: AiActionTypeDto;
24
24
  message?: string;
25
+ messages?: string[];
25
26
  data?: AiActionDataDto;
26
27
  }
27
28
  //# sourceMappingURL=ai-action.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-action.dto.d.ts","sourceRoot":"","sources":["../../src/ai/ai-action.dto.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,eAAe,yEAIlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,qBAAa,eAAe;IAO1B,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,GAAG,CAAC,EAAE,MAAM,CAAC;IAQb,SAAS,CAAC,EAAE,MAAM,CAAC;IAQnB,aAAa,CAAC,EAAE,OAAO,CAAC;IAQxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAQ/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAQ5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAUrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAQxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAQd,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAUhB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,qBAAa,uBAAuB;IAOlC,IAAI,EAAE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C;CACxB"}
@@ -171,6 +171,7 @@ class AiStructuredResponseDto {
171
171
  type;
172
172
  actionType;
173
173
  message;
174
+ messages;
174
175
  data;
175
176
  }
176
177
  exports.AiStructuredResponseDto = AiStructuredResponseDto;
@@ -195,13 +196,24 @@ __decorate([
195
196
  ], AiStructuredResponseDto.prototype, "actionType", void 0);
196
197
  __decorate([
197
198
  (0, swagger_1.ApiPropertyOptional)({
198
- description: 'Message returned to the user',
199
+ description: 'Message returned to the user (full text, all parts joined)',
199
200
  example: 'I need your CPF and birth date to create the patient.',
200
201
  }),
201
202
  (0, class_validator_1.IsOptional)(),
202
203
  (0, class_validator_1.IsString)(),
203
204
  __metadata("design:type", String)
204
205
  ], AiStructuredResponseDto.prototype, "message", void 0);
206
+ __decorate([
207
+ (0, swagger_1.ApiPropertyOptional)({
208
+ description: 'Individual message parts to send as separate WhatsApp messages for a more natural conversation flow. When present, each entry is dispatched as its own message.',
209
+ type: [String],
210
+ example: ['Dados registrados com sucesso!', 'Temos os seguintes procedimentos disponíveis:\n- Consulta clínica'],
211
+ }),
212
+ (0, class_validator_1.IsOptional)(),
213
+ (0, class_validator_1.IsArray)(),
214
+ (0, class_validator_1.IsString)({ each: true }),
215
+ __metadata("design:type", Array)
216
+ ], AiStructuredResponseDto.prototype, "messages", void 0);
205
217
  __decorate([
206
218
  (0, swagger_1.ApiPropertyOptional)({
207
219
  description: 'Structured payload extracted from the conversation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "DTOs compartilhados com class-validator (API e microserviços)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -160,13 +160,24 @@ export class AiStructuredResponseDto {
160
160
  actionType?: AiActionTypeDto;
161
161
 
162
162
  @ApiPropertyOptional({
163
- description: 'Message returned to the user',
163
+ description: 'Message returned to the user (full text, all parts joined)',
164
164
  example: 'I need your CPF and birth date to create the patient.',
165
165
  })
166
166
  @IsOptional()
167
167
  @IsString()
168
168
  message?: string;
169
169
 
170
+ @ApiPropertyOptional({
171
+ description:
172
+ 'Individual message parts to send as separate WhatsApp messages for a more natural conversation flow. When present, each entry is dispatched as its own message.',
173
+ type: [String],
174
+ example: ['Dados registrados com sucesso!', 'Temos os seguintes procedimentos disponíveis:\n- Consulta clínica'],
175
+ })
176
+ @IsOptional()
177
+ @IsArray()
178
+ @IsString({ each: true })
179
+ messages?: string[];
180
+
170
181
  @ApiPropertyOptional({
171
182
  description: 'Structured payload extracted from the conversation',
172
183
  type: AiActionDataDto,