@breign/db-schemas 0.1.85 → 0.1.87

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.
@@ -19,6 +19,8 @@ export type Ticket = {
19
19
  createdBy: ActorRef;
20
20
  /** Conversation dont le ticket est issu, quand un agent l'a proposé. */
21
21
  sourceConversationId: string | null;
22
+ /** Ticket parent, dans le même projet : le ticket est alors un sous-ticket. */
23
+ parentTicketId: string | null;
22
24
  /** Ordre dans la colonne, croissant. */
23
25
  position: number;
24
26
  /** Compteurs entretenus à l'écriture, pour ne pas compter à chaque lecture du board. */
@@ -98,6 +100,8 @@ export type TicketProposalPayload = {
98
100
  startMode: TicketStartMode;
99
101
  /** Fichiers du workspace de la session à joindre comme artefacts. */
100
102
  workspacePaths: string[];
103
+ /** Ticket parent du futur ticket ; absent sur les propositions antérieures aux sous-tickets. */
104
+ parentTicketId?: string | null;
101
105
  };
102
106
  /** Un ticket qu'un agent propose (ou crée directement) depuis une conversation. */
103
107
  export type TicketProposal = {
@@ -184,12 +188,16 @@ export type TicketAgentSession = {
184
188
  createdAt: string;
185
189
  lastRunAt: string | null;
186
190
  };
187
- export type TicketWakeupReasonKind = 'assigned' | 'go_ahead' | 'reopened' | 'changes_requested' | 'comment' | 'mention' | 'approved' | 'approval_changes_requested' | 'approval_rejected';
191
+ export type TicketWakeupReasonKind = 'assigned' | 'go_ahead' | 'reopened' | 'changes_requested' | 'comment' | 'mention' | 'approved' | 'approval_changes_requested' | 'approval_rejected'
192
+ /** Un humain a écrit à l'agent dans sa session de travail. */
193
+ | 'session_message';
188
194
  export type TicketWakeupReason = {
189
195
  kind: TicketWakeupReasonKind;
190
196
  eventId?: string | null;
191
197
  by: ActorRef;
192
198
  at: string;
199
+ /** Le message écrit dans la session, pour `session_message`. */
200
+ body?: string;
193
201
  };
194
202
  export type TicketWakeupStatus = 'pending' | 'running' | 'done' | 'skipped' | 'error';
195
203
  /** Un réveil d'agent : les raisons de se remettre au travail, regroupées tant qu'il attend. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/db-schemas",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -28,6 +28,8 @@ export type Ticket = {
28
28
  createdBy: ActorRef;
29
29
  /** Conversation dont le ticket est issu, quand un agent l'a proposé. */
30
30
  sourceConversationId: string | null;
31
+ /** Ticket parent, dans le même projet : le ticket est alors un sous-ticket. */
32
+ parentTicketId: string | null;
31
33
  /** Ordre dans la colonne, croissant. */
32
34
  position: number;
33
35
  /** Compteurs entretenus à l'écriture, pour ne pas compter à chaque lecture du board. */
@@ -111,6 +113,8 @@ export type TicketProposalPayload = {
111
113
  startMode: TicketStartMode;
112
114
  /** Fichiers du workspace de la session à joindre comme artefacts. */
113
115
  workspacePaths: string[];
116
+ /** Ticket parent du futur ticket ; absent sur les propositions antérieures aux sous-tickets. */
117
+ parentTicketId?: string | null;
114
118
  };
115
119
 
116
120
  /** Un ticket qu'un agent propose (ou crée directement) depuis une conversation. */
@@ -216,13 +220,17 @@ export type TicketWakeupReasonKind =
216
220
  | 'mention'
217
221
  | 'approved'
218
222
  | 'approval_changes_requested'
219
- | 'approval_rejected';
223
+ | 'approval_rejected'
224
+ /** Un humain a écrit à l'agent dans sa session de travail. */
225
+ | 'session_message';
220
226
 
221
227
  export type TicketWakeupReason = {
222
228
  kind: TicketWakeupReasonKind;
223
229
  eventId?: string | null;
224
230
  by: ActorRef;
225
231
  at: string;
232
+ /** Le message écrit dans la session, pour `session_message`. */
233
+ body?: string;
226
234
  };
227
235
 
228
236
  export type TicketWakeupStatus = 'pending' | 'running' | 'done' | 'skipped' | 'error';