@ykurilov/agent-chat-flows 0.67.0 → 0.69.0

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.
@@ -265,6 +265,23 @@ export declare const flowChats: import("drizzle-orm/pg-core").PgTableWithColumns
265
265
  }, {}, {
266
266
  $type: FlowEndReason;
267
267
  }>;
268
+ reopenedAt: import("drizzle-orm/pg-core").PgColumn<{
269
+ name: string;
270
+ tableName: "flow_chats";
271
+ dataType: "date";
272
+ columnType: "PgTimestamp";
273
+ data: Date;
274
+ driverParam: string;
275
+ notNull: false;
276
+ hasDefault: false;
277
+ isPrimaryKey: false;
278
+ isAutoincrement: false;
279
+ hasRuntimeDefault: false;
280
+ enumValues: undefined;
281
+ baseColumn: never;
282
+ identity: undefined;
283
+ generated: undefined;
284
+ }, {}, {}>;
268
285
  pausedUntil: import("drizzle-orm/pg-core").PgColumn<{
269
286
  name: string;
270
287
  tableName: "flow_chats";
@@ -284,6 +284,23 @@ export declare const flowChats: import("drizzle-orm/sqlite-core").SQLiteTableWit
284
284
  length: number | undefined;
285
285
  $type: FlowEndReason;
286
286
  }>;
287
+ reopenedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
288
+ name: "reopened_at";
289
+ tableName: "flow_chats";
290
+ dataType: "number";
291
+ columnType: "SQLiteInteger";
292
+ data: number;
293
+ driverParam: number;
294
+ notNull: false;
295
+ hasDefault: false;
296
+ isPrimaryKey: false;
297
+ isAutoincrement: false;
298
+ hasRuntimeDefault: false;
299
+ enumValues: undefined;
300
+ baseColumn: never;
301
+ identity: undefined;
302
+ generated: undefined;
303
+ }, {}, {}>;
287
304
  pausedUntil: import("drizzle-orm/sqlite-core").SQLiteColumn<{
288
305
  name: "paused_until";
289
306
  tableName: "flow_chats";
@@ -0,0 +1 @@
1
+ ALTER TABLE "agent_chat"."flow_chats" ADD COLUMN "reopened_at" timestamp (3) with time zone;
@@ -0,0 +1,451 @@
1
+ {
2
+ "id": "e0acb28e-61bc-4ce6-9b8d-342efebc5bf7",
3
+ "prevId": "e7af2c5b-f258-4d80-af0b-865e57d8d239",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "agent_chat.flow_chats": {
8
+ "name": "flow_chats",
9
+ "schema": "agent_chat",
10
+ "columns": {
11
+ "chat_id": {
12
+ "name": "chat_id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "owner_id": {
18
+ "name": "owner_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "flow_id": {
24
+ "name": "flow_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "version_id": {
30
+ "name": "version_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "state_id": {
36
+ "name": "state_id",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "pending": {
42
+ "name": "pending",
43
+ "type": "jsonb",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": "'[]'::jsonb"
47
+ },
48
+ "due_at": {
49
+ "name": "due_at",
50
+ "type": "timestamp (3) with time zone",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "due_exit_id": {
55
+ "name": "due_exit_id",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "due_branch_head": {
61
+ "name": "due_branch_head",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "time_zone": {
67
+ "name": "time_zone",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true
71
+ },
72
+ "lease_until": {
73
+ "name": "lease_until",
74
+ "type": "timestamp (3) with time zone",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "lease_owner": {
79
+ "name": "lease_owner",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": false
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp (3) with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ },
90
+ "ended_at": {
91
+ "name": "ended_at",
92
+ "type": "timestamp (3) with time zone",
93
+ "primaryKey": false,
94
+ "notNull": false
95
+ },
96
+ "end_reason": {
97
+ "name": "end_reason",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": false
101
+ },
102
+ "reopened_at": {
103
+ "name": "reopened_at",
104
+ "type": "timestamp (3) with time zone",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ },
108
+ "paused_until": {
109
+ "name": "paused_until",
110
+ "type": "timestamp (3) with time zone",
111
+ "primaryKey": false,
112
+ "notNull": false
113
+ },
114
+ "window_closed": {
115
+ "name": "window_closed",
116
+ "type": "boolean",
117
+ "primaryKey": false,
118
+ "notNull": true,
119
+ "default": false
120
+ },
121
+ "day_closed_on": {
122
+ "name": "day_closed_on",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": false
126
+ },
127
+ "delivery": {
128
+ "name": "delivery",
129
+ "type": "jsonb",
130
+ "primaryKey": false,
131
+ "notNull": false
132
+ },
133
+ "placement": {
134
+ "name": "placement",
135
+ "type": "jsonb",
136
+ "primaryKey": false,
137
+ "notNull": false
138
+ }
139
+ },
140
+ "indexes": {
141
+ "flow_chats_due_idx": {
142
+ "name": "flow_chats_due_idx",
143
+ "columns": [
144
+ {
145
+ "expression": "due_at",
146
+ "isExpression": false,
147
+ "asc": true,
148
+ "nulls": "last"
149
+ }
150
+ ],
151
+ "isUnique": false,
152
+ "concurrently": false,
153
+ "method": "btree",
154
+ "with": {}
155
+ },
156
+ "flow_chats_flow_state_idx": {
157
+ "name": "flow_chats_flow_state_idx",
158
+ "columns": [
159
+ {
160
+ "expression": "flow_id",
161
+ "isExpression": false,
162
+ "asc": true,
163
+ "nulls": "last"
164
+ },
165
+ {
166
+ "expression": "version_id",
167
+ "isExpression": false,
168
+ "asc": true,
169
+ "nulls": "last"
170
+ },
171
+ {
172
+ "expression": "state_id",
173
+ "isExpression": false,
174
+ "asc": true,
175
+ "nulls": "last"
176
+ }
177
+ ],
178
+ "isUnique": false,
179
+ "concurrently": false,
180
+ "method": "btree",
181
+ "with": {}
182
+ },
183
+ "flow_chats_owner_idx": {
184
+ "name": "flow_chats_owner_idx",
185
+ "columns": [
186
+ {
187
+ "expression": "owner_id",
188
+ "isExpression": false,
189
+ "asc": true,
190
+ "nulls": "last"
191
+ }
192
+ ],
193
+ "isUnique": false,
194
+ "concurrently": false,
195
+ "method": "btree",
196
+ "with": {}
197
+ }
198
+ },
199
+ "foreignKeys": {},
200
+ "compositePrimaryKeys": {},
201
+ "uniqueConstraints": {},
202
+ "policies": {},
203
+ "checkConstraints": {},
204
+ "isRLSEnabled": false
205
+ },
206
+ "agent_chat.flow_client_cards": {
207
+ "name": "flow_client_cards",
208
+ "schema": "agent_chat",
209
+ "columns": {
210
+ "owner_id": {
211
+ "name": "owner_id",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "field_id": {
217
+ "name": "field_id",
218
+ "type": "text",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ },
222
+ "value": {
223
+ "name": "value",
224
+ "type": "jsonb",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "updated_at": {
229
+ "name": "updated_at",
230
+ "type": "timestamp (3) with time zone",
231
+ "primaryKey": false,
232
+ "notNull": true
233
+ },
234
+ "chat_id": {
235
+ "name": "chat_id",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true
239
+ },
240
+ "flow_id": {
241
+ "name": "flow_id",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": true
245
+ }
246
+ },
247
+ "indexes": {},
248
+ "foreignKeys": {},
249
+ "compositePrimaryKeys": {
250
+ "flow_client_cards_owner_id_field_id_pk": {
251
+ "name": "flow_client_cards_owner_id_field_id_pk",
252
+ "columns": [
253
+ "owner_id",
254
+ "field_id"
255
+ ]
256
+ }
257
+ },
258
+ "uniqueConstraints": {},
259
+ "policies": {},
260
+ "checkConstraints": {},
261
+ "isRLSEnabled": false
262
+ },
263
+ "agent_chat.flow_first_messages": {
264
+ "name": "flow_first_messages",
265
+ "schema": "agent_chat",
266
+ "columns": {
267
+ "owner_id": {
268
+ "name": "owner_id",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true
272
+ },
273
+ "day": {
274
+ "name": "day",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true
278
+ },
279
+ "count": {
280
+ "name": "count",
281
+ "type": "integer",
282
+ "primaryKey": false,
283
+ "notNull": true,
284
+ "default": 0
285
+ }
286
+ },
287
+ "indexes": {},
288
+ "foreignKeys": {},
289
+ "compositePrimaryKeys": {
290
+ "flow_first_messages_owner_id_day_pk": {
291
+ "name": "flow_first_messages_owner_id_day_pk",
292
+ "columns": [
293
+ "owner_id",
294
+ "day"
295
+ ]
296
+ }
297
+ },
298
+ "uniqueConstraints": {},
299
+ "policies": {},
300
+ "checkConstraints": {},
301
+ "isRLSEnabled": false
302
+ },
303
+ "agent_chat.flow_people": {
304
+ "name": "flow_people",
305
+ "schema": "agent_chat",
306
+ "columns": {
307
+ "owner_id": {
308
+ "name": "owner_id",
309
+ "type": "text",
310
+ "primaryKey": true,
311
+ "notNull": true
312
+ },
313
+ "time_zone": {
314
+ "name": "time_zone",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": true
318
+ },
319
+ "updated_at": {
320
+ "name": "updated_at",
321
+ "type": "timestamp (3) with time zone",
322
+ "primaryKey": false,
323
+ "notNull": true
324
+ }
325
+ },
326
+ "indexes": {},
327
+ "foreignKeys": {},
328
+ "compositePrimaryKeys": {},
329
+ "uniqueConstraints": {},
330
+ "policies": {},
331
+ "checkConstraints": {},
332
+ "isRLSEnabled": false
333
+ },
334
+ "agent_chat.flow_side_tasks": {
335
+ "name": "flow_side_tasks",
336
+ "schema": "agent_chat",
337
+ "columns": {
338
+ "owner_id": {
339
+ "name": "owner_id",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": true
343
+ },
344
+ "task_id": {
345
+ "name": "task_id",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true
349
+ },
350
+ "chat_id": {
351
+ "name": "chat_id",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "default": "''"
356
+ },
357
+ "asks": {
358
+ "name": "asks",
359
+ "type": "integer",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "default": 0
363
+ },
364
+ "done_at": {
365
+ "name": "done_at",
366
+ "type": "timestamp (3) with time zone",
367
+ "primaryKey": false,
368
+ "notNull": false
369
+ }
370
+ },
371
+ "indexes": {},
372
+ "foreignKeys": {},
373
+ "compositePrimaryKeys": {
374
+ "flow_side_tasks_owner_id_task_id_chat_id_pk": {
375
+ "name": "flow_side_tasks_owner_id_task_id_chat_id_pk",
376
+ "columns": [
377
+ "owner_id",
378
+ "task_id",
379
+ "chat_id"
380
+ ]
381
+ }
382
+ },
383
+ "uniqueConstraints": {},
384
+ "policies": {},
385
+ "checkConstraints": {},
386
+ "isRLSEnabled": false
387
+ },
388
+ "agent_chat.flow_versions": {
389
+ "name": "flow_versions",
390
+ "schema": "agent_chat",
391
+ "columns": {
392
+ "flow_id": {
393
+ "name": "flow_id",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true
397
+ },
398
+ "version_id": {
399
+ "name": "version_id",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": true
403
+ },
404
+ "hash": {
405
+ "name": "hash",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true
409
+ },
410
+ "flow": {
411
+ "name": "flow",
412
+ "type": "jsonb",
413
+ "primaryKey": false,
414
+ "notNull": true
415
+ },
416
+ "created_at": {
417
+ "name": "created_at",
418
+ "type": "timestamp (3) with time zone",
419
+ "primaryKey": false,
420
+ "notNull": true
421
+ }
422
+ },
423
+ "indexes": {},
424
+ "foreignKeys": {},
425
+ "compositePrimaryKeys": {
426
+ "flow_versions_flow_id_version_id_pk": {
427
+ "name": "flow_versions_flow_id_version_id_pk",
428
+ "columns": [
429
+ "flow_id",
430
+ "version_id"
431
+ ]
432
+ }
433
+ },
434
+ "uniqueConstraints": {},
435
+ "policies": {},
436
+ "checkConstraints": {},
437
+ "isRLSEnabled": false
438
+ }
439
+ },
440
+ "enums": {},
441
+ "schemas": {},
442
+ "sequences": {},
443
+ "roles": {},
444
+ "policies": {},
445
+ "views": {},
446
+ "_meta": {
447
+ "columns": {},
448
+ "schemas": {},
449
+ "tables": {}
450
+ }
451
+ }
@@ -22,6 +22,13 @@
22
22
  "when": 1791945774083,
23
23
  "tag": "0002_chat_placement",
24
24
  "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "7",
29
+ "when": 1792408865798,
30
+ "tag": "0003_chat_reopen",
31
+ "breakpoints": true
25
32
  }
26
33
  ]
27
34
  }
@@ -0,0 +1 @@
1
+ ALTER TABLE `flow_chats` ADD `reopened_at` integer;