@rodrigobeber/patoai-dtos 4.8.24 → 4.8.25

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.
@@ -14,3 +14,4 @@ export * from './support-insight-access.dto';
14
14
  export * from './support-agent-balance.dto';
15
15
  export * from './support-lab-session.dto';
16
16
  export * from './support-lab-onboarding.dto';
17
+ export * from './lab-action-catalog';
@@ -30,3 +30,4 @@ __exportStar(require("./support-insight-access.dto"), exports);
30
30
  __exportStar(require("./support-agent-balance.dto"), exports);
31
31
  __exportStar(require("./support-lab-session.dto"), exports);
32
32
  __exportStar(require("./support-lab-onboarding.dto"), exports);
33
+ __exportStar(require("./lab-action-catalog"), exports);
@@ -1,6 +1,7 @@
1
1
  import { SupportMessageDto } from "./support-message.dto";
2
2
  import { SupportAgentBalanceDto } from "./support-agent-balance.dto";
3
3
  import { SupportLabPendingAnalysisDto } from "./support-lab-analyze.dto";
4
+ import { LabActionRender, LabActionReversible, LabProposalChangeDto } from "./lab-action-catalog";
4
5
  export interface SupportLabFocusDto {
5
6
  idStage?: number;
6
7
  runType?: string;
@@ -18,14 +19,30 @@ export interface SupportLabAskDto {
18
19
  }
19
20
  export interface SupportLabProposalDto {
20
21
  id: string;
21
- target: 'context' | 'prompt';
22
- field?: 'about' | 'role' | 'audience' | 'behavior';
23
- idPrompt?: number;
24
- kind: 'markdown' | 'spin-yaml';
22
+ actionId: string;
23
+ render: LabActionRender;
25
24
  title: string;
26
- baseText: string;
27
- proposedText: string;
25
+ path: string;
26
+ params: Record<string, unknown>;
28
27
  rationale: string;
28
+ reversible: LabActionReversible;
29
+ undoHint: string;
30
+ /**
31
+ * O que quebra junto se aplicar (mídia usada em roteiro, template usado em lembrete...). Calculado na
32
+ * materialização, não estático: é o que o cartão do item NÃO mostra. Lista não-vazia => confirmação
33
+ * digitada no diálogo.
34
+ */
35
+ impact?: string[];
36
+ kind?: 'markdown' | 'spin-yaml';
37
+ baseText?: string;
38
+ proposedText?: string;
39
+ changes?: LabProposalChangeDto[];
40
+ /** @deprecated compat 1 deploy (frontend antigo lê estes); use `actionId` + `params`. */
41
+ target?: 'context' | 'prompt';
42
+ /** @deprecated compat 1 deploy; use `params.field`. */
43
+ field?: 'about' | 'role' | 'audience' | 'behavior';
44
+ /** @deprecated compat 1 deploy; use `params.idPrompt`. */
45
+ idPrompt?: number;
29
46
  }
30
47
  export interface SupportLabAnswerDto {
31
48
  content: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.8.24",
3
+ "version": "4.8.25",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",