@undefineds.co/models 0.2.34 → 0.2.36
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.
- package/README.md +13 -16
- package/dist/agent.repository.d.ts +48 -0
- package/dist/agent.repository.js +1 -1
- package/dist/agent.schema.d.ts +24 -0
- package/dist/agent.schema.js +16 -5
- package/dist/ai-config/index.d.ts +28 -2
- package/dist/ai-config/index.js +154 -13
- package/dist/ai-model.schema.js +11 -12
- package/dist/ai-provider.schema.d.ts +4 -0
- package/dist/ai-provider.schema.js +11 -10
- package/dist/ai-runtime.schema.d.ts +4 -4
- package/dist/ai-runtime.schema.js +43 -45
- package/dist/approval.schema.d.ts +0 -1
- package/dist/approval.schema.js +2 -11
- package/dist/audit.schema.d.ts +0 -1
- package/dist/audit.schema.js +2 -11
- package/dist/automation-rule.schema.d.ts +63 -0
- package/dist/automation-rule.schema.js +51 -0
- package/dist/bin/udfs.js +3 -3
- package/dist/chat.repository.d.ts +4 -4
- package/dist/chat.repository.js +1 -1
- package/dist/chat.schema.d.ts +2 -2
- package/dist/chat.schema.js +3 -4
- package/dist/chat.utils.d.ts +7 -0
- package/dist/chat.utils.js +35 -6
- package/dist/contact.repository.d.ts +4 -4
- package/dist/contact.repository.js +1 -1
- package/dist/contact.schema.d.ts +2 -2
- package/dist/contact.schema.js +2 -3
- package/dist/credential.schema.js +21 -22
- package/dist/delivery.schema.d.ts +81 -0
- package/dist/delivery.schema.js +64 -0
- package/dist/evidence.schema.d.ts +38 -0
- package/dist/evidence.schema.js +46 -0
- package/dist/favorite/favorite.schema.d.ts +3 -5
- package/dist/favorite/favorite.schema.js +2 -3
- package/dist/favorite/starred-sync.d.ts +1 -1
- package/dist/favorite/starred-sync.js +11 -13
- package/dist/fixtures/contracts-chat-contact.js +3 -3
- package/dist/grant.schema.d.ts +2 -3
- package/dist/grant.schema.js +6 -9
- package/dist/idea.schema.d.ts +32 -0
- package/dist/idea.schema.js +36 -0
- package/dist/inbox-notification.schema.js +1 -2
- package/dist/index.d.ts +19 -14
- package/dist/index.js +20 -18
- package/dist/issue.repository.js +1 -1
- package/dist/issue.schema.js +1 -2
- package/dist/knowledge/knowledge-folder.schema.d.ts +1 -1
- package/dist/knowledge/knowledge-folder.schema.js +1 -1
- package/dist/message.repository.d.ts +7 -15
- package/dist/message.repository.js +1 -1
- package/dist/message.schema.d.ts +7 -11
- package/dist/message.schema.js +10 -12
- package/dist/namespaces.d.ts +0 -2
- package/dist/namespaces.js +122 -92
- package/dist/pod-storage-descriptor.d.ts +0 -6
- package/dist/pod-storage-descriptor.js +11 -12
- package/dist/profile.repository.d.ts +2 -2
- package/dist/profile.repository.js +2 -2
- package/dist/report.schema.d.ts +58 -0
- package/dist/report.schema.js +73 -0
- package/dist/repository.d.ts +15 -4
- package/dist/repository.js +16 -5
- package/dist/resource-id-defaults.d.ts +1 -12
- package/dist/resource-id-defaults.js +65 -72
- package/dist/resource-refs.d.ts +25 -0
- package/dist/resource-refs.js +45 -0
- package/dist/run.schema.d.ts +13 -17
- package/dist/run.schema.js +12 -13
- package/dist/schedule.schema.d.ts +56 -0
- package/dist/schedule.schema.js +46 -0
- package/dist/schema.d.ts +273 -194
- package/dist/schema.js +18 -10
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/session.schema.d.ts +4 -6
- package/dist/session/session.schema.js +5 -16
- package/dist/session.repository.d.ts +8 -8
- package/dist/session.repository.js +1 -1
- package/dist/settings/settings.schema.d.ts +2 -0
- package/dist/settings/settings.schema.js +8 -3
- package/dist/sidecar/persistence-mapping.d.ts +1 -1
- package/dist/sidecar/sidecar-events.d.ts +36 -36
- package/dist/skill.schema.d.ts +39 -0
- package/dist/skill.schema.js +31 -0
- package/dist/task.schema.d.ts +22 -32
- package/dist/task.schema.js +17 -25
- package/dist/thread.repository.d.ts +4 -8
- package/dist/thread.repository.js +1 -1
- package/dist/thread.schema.d.ts +9 -10
- package/dist/thread.schema.js +24 -13
- package/dist/types/collaboration-blocks.d.ts +3 -1
- package/dist/types/message-block.d.ts +3 -1
- package/dist/vocab/chat.vocab.d.ts +1 -1
- package/dist/vocab/chat.vocab.js +1 -1
- package/dist/vocab/contact.vocab.d.ts +1 -1
- package/dist/vocab/contact.vocab.js +1 -1
- package/dist/vocab/index.d.ts +2 -0
- package/dist/vocab/index.js +2 -0
- package/dist/vocab/message.vocab.d.ts +1 -1
- package/dist/vocab/message.vocab.js +1 -1
- package/dist/vocab/session.vocab.d.ts +16 -0
- package/dist/vocab/session.vocab.js +17 -0
- package/dist/vocab/sidecar.vocab.d.ts +19 -1
- package/dist/vocab/sidecar.vocab.js +22 -4
- package/dist/vocab/thread.vocab.d.ts +1 -0
- package/dist/vocab/thread.vocab.js +1 -0
- package/dist/vocab/workflow.vocab.d.ts +135 -0
- package/dist/vocab/workflow.vocab.js +136 -0
- package/package.json +3 -3
- package/skills/solid-modeling/SKILL.md +57 -17
- package/dist/file/file.schema.d.ts +0 -60
- package/dist/file/file.schema.js +0 -53
- package/dist/file/index.d.ts +0 -1
- package/dist/file/index.js +0 -1
- package/dist/matrix.repository.d.ts +0 -183
- package/dist/matrix.repository.js +0 -20
- package/dist/matrix.schema.d.ts +0 -136
- package/dist/matrix.schema.js +0 -100
|
@@ -45,7 +45,7 @@ export declare const ToolCallEventV1Schema: z.ZodObject<{
|
|
|
45
45
|
policyVersion: z.ZodOptional<z.ZodString>;
|
|
46
46
|
timestamp: z.ZodString;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
|
-
status: "error" | "running" | "
|
|
48
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
49
49
|
toolCallId: string;
|
|
50
50
|
toolName: string;
|
|
51
51
|
type: "tool.call";
|
|
@@ -53,6 +53,7 @@ export declare const ToolCallEventV1Schema: z.ZodObject<{
|
|
|
53
53
|
timestamp: string;
|
|
54
54
|
target?: string | undefined;
|
|
55
55
|
action?: string | undefined;
|
|
56
|
+
version?: 1 | undefined;
|
|
56
57
|
risk?: "low" | "medium" | "high" | undefined;
|
|
57
58
|
approvalOptions?: {
|
|
58
59
|
label: string;
|
|
@@ -70,9 +71,8 @@ export declare const ToolCallEventV1Schema: z.ZodObject<{
|
|
|
70
71
|
arguments?: Record<string, unknown> | undefined;
|
|
71
72
|
result?: unknown;
|
|
72
73
|
duration?: number | undefined;
|
|
73
|
-
version?: 1 | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
status: "error" | "running" | "
|
|
75
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
76
76
|
toolCallId: string;
|
|
77
77
|
toolName: string;
|
|
78
78
|
type: "tool.call";
|
|
@@ -80,6 +80,7 @@ export declare const ToolCallEventV1Schema: z.ZodObject<{
|
|
|
80
80
|
timestamp: string;
|
|
81
81
|
target?: string | undefined;
|
|
82
82
|
action?: string | undefined;
|
|
83
|
+
version?: 1 | undefined;
|
|
83
84
|
risk?: "low" | "medium" | "high" | undefined;
|
|
84
85
|
approvalOptions?: {
|
|
85
86
|
label: string;
|
|
@@ -97,7 +98,6 @@ export declare const ToolCallEventV1Schema: z.ZodObject<{
|
|
|
97
98
|
arguments?: Record<string, unknown> | undefined;
|
|
98
99
|
result?: unknown;
|
|
99
100
|
duration?: number | undefined;
|
|
100
|
-
version?: 1 | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
export declare const ToolCallEventSchema: z.ZodObject<{
|
|
103
103
|
type: z.ZodLiteral<"tool.call">;
|
|
@@ -137,7 +137,7 @@ export declare const ToolCallEventSchema: z.ZodObject<{
|
|
|
137
137
|
policyVersion: z.ZodOptional<z.ZodString>;
|
|
138
138
|
timestamp: z.ZodString;
|
|
139
139
|
}, "strict", z.ZodTypeAny, {
|
|
140
|
-
status: "error" | "running" | "
|
|
140
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
141
141
|
toolCallId: string;
|
|
142
142
|
toolName: string;
|
|
143
143
|
type: "tool.call";
|
|
@@ -145,6 +145,7 @@ export declare const ToolCallEventSchema: z.ZodObject<{
|
|
|
145
145
|
timestamp: string;
|
|
146
146
|
target?: string | undefined;
|
|
147
147
|
action?: string | undefined;
|
|
148
|
+
version?: 1 | undefined;
|
|
148
149
|
risk?: "low" | "medium" | "high" | undefined;
|
|
149
150
|
approvalOptions?: {
|
|
150
151
|
label: string;
|
|
@@ -162,9 +163,8 @@ export declare const ToolCallEventSchema: z.ZodObject<{
|
|
|
162
163
|
arguments?: Record<string, unknown> | undefined;
|
|
163
164
|
result?: unknown;
|
|
164
165
|
duration?: number | undefined;
|
|
165
|
-
version?: 1 | undefined;
|
|
166
166
|
}, {
|
|
167
|
-
status: "error" | "running" | "
|
|
167
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
168
168
|
toolCallId: string;
|
|
169
169
|
toolName: string;
|
|
170
170
|
type: "tool.call";
|
|
@@ -172,6 +172,7 @@ export declare const ToolCallEventSchema: z.ZodObject<{
|
|
|
172
172
|
timestamp: string;
|
|
173
173
|
target?: string | undefined;
|
|
174
174
|
action?: string | undefined;
|
|
175
|
+
version?: 1 | undefined;
|
|
175
176
|
risk?: "low" | "medium" | "high" | undefined;
|
|
176
177
|
approvalOptions?: {
|
|
177
178
|
label: string;
|
|
@@ -189,7 +190,6 @@ export declare const ToolCallEventSchema: z.ZodObject<{
|
|
|
189
190
|
arguments?: Record<string, unknown> | undefined;
|
|
190
191
|
result?: unknown;
|
|
191
192
|
duration?: number | undefined;
|
|
192
|
-
version?: 1 | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
export type ToolCallEvent = z.infer<typeof ToolCallEventSchema>;
|
|
195
195
|
export declare const SessionToolSchema: z.ZodEnum<["claude-code", "cursor", "windsurf"]>;
|
|
@@ -217,9 +217,9 @@ export declare const SessionStateEventV1Schema: z.ZodObject<{
|
|
|
217
217
|
sessionId: string;
|
|
218
218
|
timestamp: string;
|
|
219
219
|
previousStatus: string;
|
|
220
|
+
version?: 1 | undefined;
|
|
220
221
|
policy?: string | undefined;
|
|
221
222
|
policyVersion?: string | undefined;
|
|
222
|
-
version?: 1 | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
status: "error" | "active" | "completed" | "paused";
|
|
225
225
|
tokenUsage: number;
|
|
@@ -229,9 +229,9 @@ export declare const SessionStateEventV1Schema: z.ZodObject<{
|
|
|
229
229
|
sessionId: string;
|
|
230
230
|
timestamp: string;
|
|
231
231
|
previousStatus: string;
|
|
232
|
+
version?: 1 | undefined;
|
|
232
233
|
policy?: string | undefined;
|
|
233
234
|
policyVersion?: string | undefined;
|
|
234
|
-
version?: 1 | undefined;
|
|
235
235
|
}>;
|
|
236
236
|
export declare const SessionStateEventSchema: z.ZodObject<{
|
|
237
237
|
type: z.ZodLiteral<"session.state">;
|
|
@@ -254,9 +254,9 @@ export declare const SessionStateEventSchema: z.ZodObject<{
|
|
|
254
254
|
sessionId: string;
|
|
255
255
|
timestamp: string;
|
|
256
256
|
previousStatus: string;
|
|
257
|
+
version?: 1 | undefined;
|
|
257
258
|
policy?: string | undefined;
|
|
258
259
|
policyVersion?: string | undefined;
|
|
259
|
-
version?: 1 | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
status: "error" | "active" | "completed" | "paused";
|
|
262
262
|
tokenUsage: number;
|
|
@@ -266,9 +266,9 @@ export declare const SessionStateEventSchema: z.ZodObject<{
|
|
|
266
266
|
sessionId: string;
|
|
267
267
|
timestamp: string;
|
|
268
268
|
previousStatus: string;
|
|
269
|
+
version?: 1 | undefined;
|
|
269
270
|
policy?: string | undefined;
|
|
270
271
|
policyVersion?: string | undefined;
|
|
271
|
-
version?: 1 | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
export type SessionStateEvent = z.infer<typeof SessionStateEventSchema>;
|
|
274
274
|
export declare const ToolControlCommandNameSchema: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>;
|
|
@@ -309,10 +309,10 @@ export declare const ToolControlCommandV1Schema: z.ZodObject<{
|
|
|
309
309
|
actorWebId: string;
|
|
310
310
|
onBehalfOf?: string | undefined;
|
|
311
311
|
} | undefined;
|
|
312
|
+
version?: 1 | undefined;
|
|
312
313
|
policyVersion?: string | undefined;
|
|
313
314
|
toolCallId?: string | undefined;
|
|
314
315
|
inboxItemId?: string | undefined;
|
|
315
|
-
version?: 1 | undefined;
|
|
316
316
|
commandId?: string | undefined;
|
|
317
317
|
pattern?: string | undefined;
|
|
318
318
|
}, {
|
|
@@ -326,10 +326,10 @@ export declare const ToolControlCommandV1Schema: z.ZodObject<{
|
|
|
326
326
|
actorWebId: string;
|
|
327
327
|
onBehalfOf?: string | undefined;
|
|
328
328
|
} | undefined;
|
|
329
|
+
version?: 1 | undefined;
|
|
329
330
|
policyVersion?: string | undefined;
|
|
330
331
|
toolCallId?: string | undefined;
|
|
331
332
|
inboxItemId?: string | undefined;
|
|
332
|
-
version?: 1 | undefined;
|
|
333
333
|
commandId?: string | undefined;
|
|
334
334
|
pattern?: string | undefined;
|
|
335
335
|
}>;
|
|
@@ -369,10 +369,10 @@ export declare const ToolControlCommandSchema: z.ZodObject<{
|
|
|
369
369
|
actorWebId: string;
|
|
370
370
|
onBehalfOf?: string | undefined;
|
|
371
371
|
} | undefined;
|
|
372
|
+
version?: 1 | undefined;
|
|
372
373
|
policyVersion?: string | undefined;
|
|
373
374
|
toolCallId?: string | undefined;
|
|
374
375
|
inboxItemId?: string | undefined;
|
|
375
|
-
version?: 1 | undefined;
|
|
376
376
|
commandId?: string | undefined;
|
|
377
377
|
pattern?: string | undefined;
|
|
378
378
|
}, {
|
|
@@ -386,10 +386,10 @@ export declare const ToolControlCommandSchema: z.ZodObject<{
|
|
|
386
386
|
actorWebId: string;
|
|
387
387
|
onBehalfOf?: string | undefined;
|
|
388
388
|
} | undefined;
|
|
389
|
+
version?: 1 | undefined;
|
|
389
390
|
policyVersion?: string | undefined;
|
|
390
391
|
toolCallId?: string | undefined;
|
|
391
392
|
inboxItemId?: string | undefined;
|
|
392
|
-
version?: 1 | undefined;
|
|
393
393
|
commandId?: string | undefined;
|
|
394
394
|
pattern?: string | undefined;
|
|
395
395
|
}>;
|
|
@@ -430,7 +430,7 @@ export declare const InboxApprovalEventV1Schema: z.ZodObject<{
|
|
|
430
430
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
431
431
|
}, "strict", z.ZodTypeAny, {
|
|
432
432
|
createdAt: string;
|
|
433
|
-
status: "pending" | "
|
|
433
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
434
434
|
risk: "low" | "medium" | "high";
|
|
435
435
|
toolCallId: string;
|
|
436
436
|
inboxItemId: string;
|
|
@@ -438,6 +438,7 @@ export declare const InboxApprovalEventV1Schema: z.ZodObject<{
|
|
|
438
438
|
sessionId: string;
|
|
439
439
|
target?: string | undefined;
|
|
440
440
|
action?: string | undefined;
|
|
441
|
+
version?: 1 | undefined;
|
|
441
442
|
assignedTo?: string | undefined;
|
|
442
443
|
resolvedAt?: string | undefined;
|
|
443
444
|
policy?: string | undefined;
|
|
@@ -449,10 +450,9 @@ export declare const InboxApprovalEventV1Schema: z.ZodObject<{
|
|
|
449
450
|
}[] | undefined;
|
|
450
451
|
expiresAt?: string | undefined;
|
|
451
452
|
policyVersion?: string | undefined;
|
|
452
|
-
version?: 1 | undefined;
|
|
453
453
|
}, {
|
|
454
454
|
createdAt: string;
|
|
455
|
-
status: "pending" | "
|
|
455
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
456
456
|
risk: "low" | "medium" | "high";
|
|
457
457
|
toolCallId: string;
|
|
458
458
|
inboxItemId: string;
|
|
@@ -460,6 +460,7 @@ export declare const InboxApprovalEventV1Schema: z.ZodObject<{
|
|
|
460
460
|
sessionId: string;
|
|
461
461
|
target?: string | undefined;
|
|
462
462
|
action?: string | undefined;
|
|
463
|
+
version?: 1 | undefined;
|
|
463
464
|
assignedTo?: string | undefined;
|
|
464
465
|
resolvedAt?: string | undefined;
|
|
465
466
|
policy?: string | undefined;
|
|
@@ -471,7 +472,6 @@ export declare const InboxApprovalEventV1Schema: z.ZodObject<{
|
|
|
471
472
|
}[] | undefined;
|
|
472
473
|
expiresAt?: string | undefined;
|
|
473
474
|
policyVersion?: string | undefined;
|
|
474
|
-
version?: 1 | undefined;
|
|
475
475
|
}>;
|
|
476
476
|
export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
477
477
|
type: z.ZodLiteral<"inbox.approval">;
|
|
@@ -507,7 +507,7 @@ export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
|
507
507
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
508
508
|
}, "strict", z.ZodTypeAny, {
|
|
509
509
|
createdAt: string;
|
|
510
|
-
status: "pending" | "
|
|
510
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
511
511
|
risk: "low" | "medium" | "high";
|
|
512
512
|
toolCallId: string;
|
|
513
513
|
inboxItemId: string;
|
|
@@ -515,6 +515,7 @@ export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
|
515
515
|
sessionId: string;
|
|
516
516
|
target?: string | undefined;
|
|
517
517
|
action?: string | undefined;
|
|
518
|
+
version?: 1 | undefined;
|
|
518
519
|
assignedTo?: string | undefined;
|
|
519
520
|
resolvedAt?: string | undefined;
|
|
520
521
|
policy?: string | undefined;
|
|
@@ -526,10 +527,9 @@ export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
|
526
527
|
}[] | undefined;
|
|
527
528
|
expiresAt?: string | undefined;
|
|
528
529
|
policyVersion?: string | undefined;
|
|
529
|
-
version?: 1 | undefined;
|
|
530
530
|
}, {
|
|
531
531
|
createdAt: string;
|
|
532
|
-
status: "pending" | "
|
|
532
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
533
533
|
risk: "low" | "medium" | "high";
|
|
534
534
|
toolCallId: string;
|
|
535
535
|
inboxItemId: string;
|
|
@@ -537,6 +537,7 @@ export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
|
537
537
|
sessionId: string;
|
|
538
538
|
target?: string | undefined;
|
|
539
539
|
action?: string | undefined;
|
|
540
|
+
version?: 1 | undefined;
|
|
540
541
|
assignedTo?: string | undefined;
|
|
541
542
|
resolvedAt?: string | undefined;
|
|
542
543
|
policy?: string | undefined;
|
|
@@ -548,7 +549,6 @@ export declare const InboxApprovalEventSchema: z.ZodObject<{
|
|
|
548
549
|
}[] | undefined;
|
|
549
550
|
expiresAt?: string | undefined;
|
|
550
551
|
policyVersion?: string | undefined;
|
|
551
|
-
version?: 1 | undefined;
|
|
552
552
|
}>;
|
|
553
553
|
export type InboxApprovalEvent = z.infer<typeof InboxApprovalEventSchema>;
|
|
554
554
|
export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -589,7 +589,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
589
589
|
policyVersion: z.ZodOptional<z.ZodString>;
|
|
590
590
|
timestamp: z.ZodString;
|
|
591
591
|
}, "strict", z.ZodTypeAny, {
|
|
592
|
-
status: "error" | "running" | "
|
|
592
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
593
593
|
toolCallId: string;
|
|
594
594
|
toolName: string;
|
|
595
595
|
type: "tool.call";
|
|
@@ -597,6 +597,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
597
597
|
timestamp: string;
|
|
598
598
|
target?: string | undefined;
|
|
599
599
|
action?: string | undefined;
|
|
600
|
+
version?: 1 | undefined;
|
|
600
601
|
risk?: "low" | "medium" | "high" | undefined;
|
|
601
602
|
approvalOptions?: {
|
|
602
603
|
label: string;
|
|
@@ -614,9 +615,8 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
614
615
|
arguments?: Record<string, unknown> | undefined;
|
|
615
616
|
result?: unknown;
|
|
616
617
|
duration?: number | undefined;
|
|
617
|
-
version?: 1 | undefined;
|
|
618
618
|
}, {
|
|
619
|
-
status: "error" | "running" | "
|
|
619
|
+
status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval";
|
|
620
620
|
toolCallId: string;
|
|
621
621
|
toolName: string;
|
|
622
622
|
type: "tool.call";
|
|
@@ -624,6 +624,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
624
624
|
timestamp: string;
|
|
625
625
|
target?: string | undefined;
|
|
626
626
|
action?: string | undefined;
|
|
627
|
+
version?: 1 | undefined;
|
|
627
628
|
risk?: "low" | "medium" | "high" | undefined;
|
|
628
629
|
approvalOptions?: {
|
|
629
630
|
label: string;
|
|
@@ -641,7 +642,6 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
641
642
|
arguments?: Record<string, unknown> | undefined;
|
|
642
643
|
result?: unknown;
|
|
643
644
|
duration?: number | undefined;
|
|
644
|
-
version?: 1 | undefined;
|
|
645
645
|
}>, z.ZodObject<{
|
|
646
646
|
type: z.ZodLiteral<"session.state">;
|
|
647
647
|
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
@@ -663,9 +663,9 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
663
663
|
sessionId: string;
|
|
664
664
|
timestamp: string;
|
|
665
665
|
previousStatus: string;
|
|
666
|
+
version?: 1 | undefined;
|
|
666
667
|
policy?: string | undefined;
|
|
667
668
|
policyVersion?: string | undefined;
|
|
668
|
-
version?: 1 | undefined;
|
|
669
669
|
}, {
|
|
670
670
|
status: "error" | "active" | "completed" | "paused";
|
|
671
671
|
tokenUsage: number;
|
|
@@ -675,9 +675,9 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
675
675
|
sessionId: string;
|
|
676
676
|
timestamp: string;
|
|
677
677
|
previousStatus: string;
|
|
678
|
+
version?: 1 | undefined;
|
|
678
679
|
policy?: string | undefined;
|
|
679
680
|
policyVersion?: string | undefined;
|
|
680
|
-
version?: 1 | undefined;
|
|
681
681
|
}>, z.ZodObject<{
|
|
682
682
|
commandId: z.ZodOptional<z.ZodString>;
|
|
683
683
|
type: z.ZodLiteral<"tool.control">;
|
|
@@ -714,10 +714,10 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
714
714
|
actorWebId: string;
|
|
715
715
|
onBehalfOf?: string | undefined;
|
|
716
716
|
} | undefined;
|
|
717
|
+
version?: 1 | undefined;
|
|
717
718
|
policyVersion?: string | undefined;
|
|
718
719
|
toolCallId?: string | undefined;
|
|
719
720
|
inboxItemId?: string | undefined;
|
|
720
|
-
version?: 1 | undefined;
|
|
721
721
|
commandId?: string | undefined;
|
|
722
722
|
pattern?: string | undefined;
|
|
723
723
|
}, {
|
|
@@ -731,10 +731,10 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
731
731
|
actorWebId: string;
|
|
732
732
|
onBehalfOf?: string | undefined;
|
|
733
733
|
} | undefined;
|
|
734
|
+
version?: 1 | undefined;
|
|
734
735
|
policyVersion?: string | undefined;
|
|
735
736
|
toolCallId?: string | undefined;
|
|
736
737
|
inboxItemId?: string | undefined;
|
|
737
|
-
version?: 1 | undefined;
|
|
738
738
|
commandId?: string | undefined;
|
|
739
739
|
pattern?: string | undefined;
|
|
740
740
|
}>, z.ZodObject<{
|
|
@@ -771,7 +771,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
771
771
|
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
772
772
|
}, "strict", z.ZodTypeAny, {
|
|
773
773
|
createdAt: string;
|
|
774
|
-
status: "pending" | "
|
|
774
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
775
775
|
risk: "low" | "medium" | "high";
|
|
776
776
|
toolCallId: string;
|
|
777
777
|
inboxItemId: string;
|
|
@@ -779,6 +779,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
779
779
|
sessionId: string;
|
|
780
780
|
target?: string | undefined;
|
|
781
781
|
action?: string | undefined;
|
|
782
|
+
version?: 1 | undefined;
|
|
782
783
|
assignedTo?: string | undefined;
|
|
783
784
|
resolvedAt?: string | undefined;
|
|
784
785
|
policy?: string | undefined;
|
|
@@ -790,10 +791,9 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
790
791
|
}[] | undefined;
|
|
791
792
|
expiresAt?: string | undefined;
|
|
792
793
|
policyVersion?: string | undefined;
|
|
793
|
-
version?: 1 | undefined;
|
|
794
794
|
}, {
|
|
795
795
|
createdAt: string;
|
|
796
|
-
status: "pending" | "
|
|
796
|
+
status: "pending" | "rejected" | "approved" | "expired";
|
|
797
797
|
risk: "low" | "medium" | "high";
|
|
798
798
|
toolCallId: string;
|
|
799
799
|
inboxItemId: string;
|
|
@@ -801,6 +801,7 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
801
801
|
sessionId: string;
|
|
802
802
|
target?: string | undefined;
|
|
803
803
|
action?: string | undefined;
|
|
804
|
+
version?: 1 | undefined;
|
|
804
805
|
assignedTo?: string | undefined;
|
|
805
806
|
resolvedAt?: string | undefined;
|
|
806
807
|
policy?: string | undefined;
|
|
@@ -812,7 +813,6 @@ export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
812
813
|
}[] | undefined;
|
|
813
814
|
expiresAt?: string | undefined;
|
|
814
815
|
policyVersion?: string | undefined;
|
|
815
|
-
version?: 1 | undefined;
|
|
816
816
|
}>]>;
|
|
817
817
|
export type SidecarEvent = z.infer<typeof SidecarEventSchema>;
|
|
818
818
|
export declare function getSidecarEventVersion(_event: SidecarEvent): SidecarEventVersion;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill binding resource.
|
|
3
|
+
*
|
|
4
|
+
* Skill content is file/folder-backed. This resource records the Agent-scoped
|
|
5
|
+
* binding and lightweight load metadata; it does not duplicate full skill text.
|
|
6
|
+
*/
|
|
7
|
+
export declare const skillResource: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
8
|
+
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
9
|
+
agent: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
10
|
+
root: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
11
|
+
name: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
12
|
+
displayName: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
13
|
+
enabled: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"boolean", null, false, true>;
|
|
14
|
+
version: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
15
|
+
source: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
16
|
+
checksum: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
17
|
+
loadPolicy: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
18
|
+
metadata: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"object", null, false, false>;
|
|
19
|
+
createdAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
20
|
+
updatedAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
21
|
+
}>>;
|
|
22
|
+
export declare const skillTable: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
23
|
+
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
24
|
+
agent: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
25
|
+
root: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
26
|
+
name: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
27
|
+
displayName: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
28
|
+
enabled: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"boolean", null, false, true>;
|
|
29
|
+
version: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
30
|
+
source: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
31
|
+
checksum: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
32
|
+
loadPolicy: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
33
|
+
metadata: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"object", null, false, false>;
|
|
34
|
+
createdAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
35
|
+
updatedAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
36
|
+
}>>;
|
|
37
|
+
export type SkillRow = typeof skillResource.$inferSelect;
|
|
38
|
+
export type SkillInsert = typeof skillResource.$inferInsert;
|
|
39
|
+
export type SkillUpdate = typeof skillResource.$inferUpdate;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { boolean, id, object, podTable, string, timestamp, uri } from '@undefineds.co/drizzle-solid';
|
|
2
|
+
import { agentResource } from './agent.schema.js';
|
|
3
|
+
import { DCTerms, UDFS } from './namespaces.js';
|
|
4
|
+
/**
|
|
5
|
+
* Skill binding resource.
|
|
6
|
+
*
|
|
7
|
+
* Skill content is file/folder-backed. This resource records the Agent-scoped
|
|
8
|
+
* binding and lightweight load metadata; it does not duplicate full skill text.
|
|
9
|
+
*/
|
|
10
|
+
export const skillResource = podTable('skill', {
|
|
11
|
+
id: id('id').default('{agent.key}/skills/{key}/'),
|
|
12
|
+
agent: uri('agent').predicate(UDFS.agent).notNull().link(agentResource),
|
|
13
|
+
root: uri('root').predicate(UDFS.root),
|
|
14
|
+
name: string('name').predicate(UDFS.name).notNull(),
|
|
15
|
+
displayName: string('displayName').predicate(UDFS.displayName),
|
|
16
|
+
enabled: boolean('enabled').predicate(UDFS.enabled).default(true),
|
|
17
|
+
version: string('version').predicate(UDFS.version),
|
|
18
|
+
source: string('source').predicate(UDFS.source),
|
|
19
|
+
checksum: string('checksum').predicate(UDFS.checksum),
|
|
20
|
+
loadPolicy: string('loadPolicy').predicate(UDFS.loadPolicy),
|
|
21
|
+
metadata: object('metadata').predicate(UDFS.metadata),
|
|
22
|
+
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
23
|
+
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified).notNull().defaultNow(),
|
|
24
|
+
}, {
|
|
25
|
+
base: '/agents/',
|
|
26
|
+
sparqlEndpoint: '/agents/-/sparql',
|
|
27
|
+
type: UDFS.Skill,
|
|
28
|
+
namespace: UDFS,
|
|
29
|
+
});
|
|
30
|
+
// Compatibility alias. New model code should prefer `skillResource`.
|
|
31
|
+
export const skillTable = skillResource;
|
package/dist/task.schema.d.ts
CHANGED
|
@@ -1,58 +1,48 @@
|
|
|
1
|
-
export type TaskStatusType = 'active' | '
|
|
2
|
-
export type TaskTriggerKindType = 'once' | 'interval' | 'cron' | 'event';
|
|
1
|
+
export type TaskStatusType = 'open' | 'ready' | 'active' | 'blocked' | 'completed' | 'failed' | 'cancelled';
|
|
3
2
|
export declare const TaskStatus: {
|
|
3
|
+
readonly OPEN: "open";
|
|
4
|
+
readonly READY: "ready";
|
|
4
5
|
readonly ACTIVE: "active";
|
|
5
|
-
readonly
|
|
6
|
+
readonly BLOCKED: "blocked";
|
|
6
7
|
readonly COMPLETED: "completed";
|
|
7
8
|
readonly FAILED: "failed";
|
|
8
|
-
|
|
9
|
-
export declare const TaskTriggerKind: {
|
|
10
|
-
readonly ONCE: "once";
|
|
11
|
-
readonly INTERVAL: "interval";
|
|
12
|
-
readonly CRON: "cron";
|
|
13
|
-
readonly EVENT: "event";
|
|
9
|
+
readonly CANCELLED: "cancelled";
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
12
|
* Task resource.
|
|
17
13
|
*
|
|
18
|
-
* Task is
|
|
19
|
-
*
|
|
20
|
-
*
|
|
14
|
+
* Task is the durable executable work unit. It says what should be done; it
|
|
15
|
+
* does not own scheduling, runner selection, runtime prompt projection, or one
|
|
16
|
+
* concrete execution attempt.
|
|
21
17
|
*/
|
|
22
18
|
export declare const taskResource: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
23
19
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
24
|
-
surfaceId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
25
20
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
instruction: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
22
|
+
prompt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
23
|
+
issue: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
24
|
+
message: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
28
25
|
workspace: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
29
|
-
runner: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
30
26
|
status: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
eventName: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
35
|
-
nextRunAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, false, false>;
|
|
36
|
-
lastRunAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, false, false>;
|
|
27
|
+
priority: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
28
|
+
assignedTo: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
29
|
+
source: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
37
30
|
metadata: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"object", null, false, false>;
|
|
38
31
|
createdAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
39
32
|
updatedAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
40
33
|
}>>;
|
|
41
34
|
export declare const taskTable: import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
42
35
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
43
|
-
surfaceId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
44
36
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
instruction: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
38
|
+
prompt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
39
|
+
issue: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
40
|
+
message: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
47
41
|
workspace: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, true, false>;
|
|
48
|
-
runner: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, false>;
|
|
49
42
|
status: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
eventName: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
54
|
-
nextRunAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, false, false>;
|
|
55
|
-
lastRunAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, false, false>;
|
|
43
|
+
priority: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
44
|
+
assignedTo: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
45
|
+
source: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
56
46
|
metadata: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"object", null, false, false>;
|
|
57
47
|
createdAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
58
48
|
updatedAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
package/dist/task.schema.js
CHANGED
|
@@ -1,41 +1,33 @@
|
|
|
1
|
-
import { id,
|
|
1
|
+
import { id, object, podTable, string, text, timestamp, uri } from '@undefineds.co/drizzle-solid';
|
|
2
2
|
import { DCTerms, UDFS } from './namespaces.js';
|
|
3
|
-
import { threadResource } from './thread.schema.js';
|
|
4
|
-
import { taskResourceId } from './resource-id-defaults.js';
|
|
5
3
|
export const TaskStatus = {
|
|
4
|
+
OPEN: 'open',
|
|
5
|
+
READY: 'ready',
|
|
6
6
|
ACTIVE: 'active',
|
|
7
|
-
|
|
7
|
+
BLOCKED: 'blocked',
|
|
8
8
|
COMPLETED: 'completed',
|
|
9
9
|
FAILED: 'failed',
|
|
10
|
-
|
|
11
|
-
export const TaskTriggerKind = {
|
|
12
|
-
ONCE: 'once',
|
|
13
|
-
INTERVAL: 'interval',
|
|
14
|
-
CRON: 'cron',
|
|
15
|
-
EVENT: 'event',
|
|
10
|
+
CANCELLED: 'cancelled',
|
|
16
11
|
};
|
|
17
12
|
/**
|
|
18
13
|
* Task resource.
|
|
19
14
|
*
|
|
20
|
-
* Task is
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Task is the durable executable work unit. It says what should be done; it
|
|
16
|
+
* does not own scheduling, runner selection, runtime prompt projection, or one
|
|
17
|
+
* concrete execution attempt.
|
|
23
18
|
*/
|
|
24
19
|
export const taskResource = podTable('task', {
|
|
25
|
-
id: id('id').default(
|
|
26
|
-
surfaceId: string('surfaceId').predicate(UDFS.surfaceId).notNull().default('default'),
|
|
20
|
+
id: id('id').default('index.ttl#{key}'),
|
|
27
21
|
title: string('title').predicate(DCTerms.title),
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
instruction: text('instruction').predicate(UDFS.instruction).notNull(),
|
|
23
|
+
prompt: text('prompt').predicate(UDFS.prompt),
|
|
24
|
+
issue: uri('issue').predicate(UDFS.issue).link('issue'),
|
|
25
|
+
message: uri('message').predicate(UDFS.message),
|
|
30
26
|
workspace: uri('workspace').predicate(UDFS.workspace).notNull(),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
intervalSeconds: integer('intervalSeconds').predicate(UDFS.intervalSeconds),
|
|
36
|
-
eventName: string('eventName').predicate(UDFS.eventName),
|
|
37
|
-
nextRunAt: timestamp('nextRunAt').predicate(UDFS.nextRunAt),
|
|
38
|
-
lastRunAt: timestamp('lastRunAt').predicate(UDFS.lastRunAt),
|
|
27
|
+
status: string('status').predicate(UDFS.status).notNull().default(TaskStatus.OPEN),
|
|
28
|
+
priority: string('priority').predicate(UDFS.priority),
|
|
29
|
+
assignedTo: uri('assignedTo').predicate(UDFS.assignedTo),
|
|
30
|
+
source: uri('source').predicate(DCTerms.source),
|
|
39
31
|
metadata: object('metadata').predicate(UDFS.metadata),
|
|
40
32
|
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
41
33
|
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified).notNull().defaultNow(),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare const threadRepository: import("@undefineds.co/drizzle-solid/dist/core/repository").PodRepositoryDescriptor<import("@undefineds.co/drizzle-solid/dist/core/schema").PodTableWithColumns<import("@undefineds.co/drizzle-solid/dist/core/schema").ResolvedColumns<{
|
|
2
2
|
id: import("@undefineds.co/drizzle-solid/dist/core/schema").PodStringColumn<false, false>;
|
|
3
|
-
commandKind: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
4
|
-
surfaceId: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
5
3
|
chat: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
4
|
+
task: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"uri", null, false, false>;
|
|
6
5
|
title: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, false, false>;
|
|
7
6
|
status: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"string", null, true, true>;
|
|
8
7
|
starred: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"boolean", null, false, true>;
|
|
@@ -12,9 +11,8 @@ export declare const threadRepository: import("@undefineds.co/drizzle-solid/dist
|
|
|
12
11
|
updatedAt: import("@undefineds.co/drizzle-solid/dist/core/schema").ColumnBuilder<"datetime", null, true, true>;
|
|
13
12
|
}>>, {
|
|
14
13
|
id: string;
|
|
15
|
-
commandKind: string;
|
|
16
|
-
surfaceId: string;
|
|
17
14
|
chat: string;
|
|
15
|
+
task: string;
|
|
18
16
|
title: string;
|
|
19
17
|
status: string;
|
|
20
18
|
starred: boolean;
|
|
@@ -24,9 +22,8 @@ export declare const threadRepository: import("@undefineds.co/drizzle-solid/dist
|
|
|
24
22
|
updatedAt: Date;
|
|
25
23
|
}, {
|
|
26
24
|
id?: string | undefined;
|
|
27
|
-
commandKind?: string | undefined;
|
|
28
|
-
surfaceId?: string | undefined;
|
|
29
25
|
chat?: string | undefined;
|
|
26
|
+
task?: string | undefined;
|
|
30
27
|
title?: string | undefined;
|
|
31
28
|
status?: string | undefined;
|
|
32
29
|
starred?: boolean | undefined;
|
|
@@ -36,9 +33,8 @@ export declare const threadRepository: import("@undefineds.co/drizzle-solid/dist
|
|
|
36
33
|
updatedAt?: Date | undefined;
|
|
37
34
|
}, {
|
|
38
35
|
id?: string | null | undefined;
|
|
39
|
-
commandKind?: string | undefined;
|
|
40
|
-
surfaceId?: string | undefined;
|
|
41
36
|
chat?: string | null | undefined;
|
|
37
|
+
task?: string | null | undefined;
|
|
42
38
|
title?: string | null | undefined;
|
|
43
39
|
status?: string | undefined;
|
|
44
40
|
starred?: boolean | null | undefined;
|