@undefineds.co/models 0.1.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.
- package/README.md +578 -0
- package/dist/_drizzle-solid/columns.d.ts +37 -0
- package/dist/_drizzle-solid/columns.js +1 -0
- package/dist/_drizzle-solid/pod-table.d.ts +3 -0
- package/dist/_drizzle-solid/pod-table.js +1 -0
- package/dist/_drizzle-solid/types.d.ts +40 -0
- package/dist/_drizzle-solid/types.js +1 -0
- package/dist/agent.providers.d.ts +13 -0
- package/dist/agent.providers.js +69 -0
- package/dist/agent.repository.d.ts +85 -0
- package/dist/agent.repository.js +7 -0
- package/dist/agent.schema.d.ts +1 -0
- package/dist/agent.schema.js +1 -0
- package/dist/ai-config/index.d.ts +61 -0
- package/dist/ai-config/index.js +294 -0
- package/dist/ai-config.d.ts +1 -0
- package/dist/ai-config.js +1 -0
- package/dist/ai-model.schema.d.ts +1 -0
- package/dist/ai-model.schema.js +1 -0
- package/dist/ai-provider.schema.d.ts +1 -0
- package/dist/ai-provider.schema.js +1 -0
- package/dist/approval.schema.d.ts +1 -0
- package/dist/approval.schema.js +1 -0
- package/dist/audit.schema.d.ts +1 -0
- package/dist/audit.schema.js +1 -0
- package/dist/chat.repository.d.ts +61 -0
- package/dist/chat.repository.js +8 -0
- package/dist/chat.schema.d.ts +1 -0
- package/dist/chat.schema.js +1 -0
- package/dist/chat.utils.d.ts +3 -0
- package/dist/chat.utils.js +30 -0
- package/dist/contact.repository.d.ts +85 -0
- package/dist/contact.repository.js +8 -0
- package/dist/contact.schema.d.ts +1 -0
- package/dist/contact.schema.js +1 -0
- package/dist/core/agent-provider.schema.d.ts +1 -0
- package/dist/core/agent-provider.schema.js +1 -0
- package/dist/core/agent-status.schema.d.ts +12 -0
- package/dist/core/agent-status.schema.js +18 -0
- package/dist/core/agent.schema.d.ts +72 -0
- package/dist/core/agent.schema.js +38 -0
- package/dist/core/ai-config.schema.d.ts +11 -0
- package/dist/core/ai-config.schema.js +18 -0
- package/dist/core/ai-model.schema.d.ts +15 -0
- package/dist/core/ai-model.schema.js +21 -0
- package/dist/core/ai-provider.schema.d.ts +16 -0
- package/dist/core/ai-provider.schema.js +28 -0
- package/dist/core/approval.schema.d.ts +21 -0
- package/dist/core/approval.schema.js +33 -0
- package/dist/core/audit.schema.d.ts +17 -0
- package/dist/core/audit.schema.js +29 -0
- package/dist/core/chat.schema.d.ts +36 -0
- package/dist/core/chat.schema.js +45 -0
- package/dist/core/contact.schema.d.ts +47 -0
- package/dist/core/contact.schema.js +59 -0
- package/dist/core/credential.schema.d.ts +56 -0
- package/dist/core/credential.schema.js +40 -0
- package/dist/core/extension/extension.schema.d.ts +4 -0
- package/dist/core/extension/extension.schema.js +11 -0
- package/dist/core/extension/index.d.ts +1 -0
- package/dist/core/extension/index.js +1 -0
- package/dist/core/extension.d.ts +1 -0
- package/dist/core/extension.js +1 -0
- package/dist/core/favorite/favorite.schema.d.ts +24 -0
- package/dist/core/favorite/favorite.schema.js +34 -0
- package/dist/core/favorite/index.d.ts +1 -0
- package/dist/core/favorite/index.js +1 -0
- package/dist/core/file/file.schema.d.ts +39 -0
- package/dist/core/file/file.schema.js +51 -0
- package/dist/core/file/index.d.ts +1 -0
- package/dist/core/file/index.js +1 -0
- package/dist/core/file.d.ts +1 -0
- package/dist/core/file.js +1 -0
- package/dist/core/grant.schema.d.ts +16 -0
- package/dist/core/grant.schema.js +29 -0
- package/dist/core/import/import-job.schema.d.ts +5 -0
- package/dist/core/import/import-job.schema.js +5 -0
- package/dist/core/import/index.d.ts +1 -0
- package/dist/core/import/index.js +1 -0
- package/dist/core/import.d.ts +1 -0
- package/dist/core/import.js +1 -0
- package/dist/core/inbox-notification.schema.d.ts +9 -0
- package/dist/core/inbox-notification.schema.js +16 -0
- package/dist/core/index.d.ts +31 -0
- package/dist/core/index.js +32 -0
- package/dist/core/knowledge/index.d.ts +1 -0
- package/dist/core/knowledge/index.js +1 -0
- package/dist/core/knowledge/knowledge-folder.schema.d.ts +7 -0
- package/dist/core/knowledge/knowledge-folder.schema.js +6 -0
- package/dist/core/knowledge.d.ts +1 -0
- package/dist/core/knowledge.js +1 -0
- package/dist/core/message.schema.d.ts +33 -0
- package/dist/core/message.schema.js +49 -0
- package/dist/core/namespaces.d.ts +176 -0
- package/dist/core/namespaces.js +289 -0
- package/dist/core/profile.d.ts +16 -0
- package/dist/core/profile.js +19 -0
- package/dist/core/schema.d.ts +304 -0
- package/dist/core/schema.js +46 -0
- package/dist/core/session/index.d.ts +1 -0
- package/dist/core/session/index.js +1 -0
- package/dist/core/session/session.schema.d.ts +6 -0
- package/dist/core/session/session.schema.js +6 -0
- package/dist/core/session.d.ts +1 -0
- package/dist/core/session.js +1 -0
- package/dist/core/settings/index.d.ts +1 -0
- package/dist/core/settings/index.js +1 -0
- package/dist/core/settings/settings.schema.d.ts +49 -0
- package/dist/core/settings/settings.schema.js +63 -0
- package/dist/core/settings.d.ts +1 -0
- package/dist/core/settings.js +1 -0
- package/dist/core/thread.schema.d.ts +28 -0
- package/dist/core/thread.schema.js +36 -0
- package/dist/core/types/collaboration-blocks.d.ts +52 -0
- package/dist/core/types/collaboration-blocks.js +7 -0
- package/dist/core/types/message-block.d.ts +270 -0
- package/dist/core/types/message-block.js +125 -0
- package/dist/core/vector-store.schema.d.ts +25 -0
- package/dist/core/vector-store.schema.js +35 -0
- package/dist/core/vocab/_namespaces.d.ts +1 -0
- package/dist/core/vocab/_namespaces.js +3 -0
- package/dist/core/vocab/chat.vocab.d.ts +16 -0
- package/dist/core/vocab/chat.vocab.js +22 -0
- package/dist/core/vocab/contact.vocab.d.ts +21 -0
- package/dist/core/vocab/contact.vocab.js +22 -0
- package/dist/core/vocab/index.d.ts +6 -0
- package/dist/core/vocab/index.js +6 -0
- package/dist/core/vocab/message.vocab.d.ts +20 -0
- package/dist/core/vocab/message.vocab.js +24 -0
- package/dist/core/vocab/sidecar.vocab.d.ts +46 -0
- package/dist/core/vocab/sidecar.vocab.js +47 -0
- package/dist/core/vocab/thread.vocab.d.ts +11 -0
- package/dist/core/vocab/thread.vocab.js +14 -0
- package/dist/core/vocab/workspace.vocab.d.ts +12 -0
- package/dist/core/vocab/workspace.vocab.js +13 -0
- package/dist/core/vocab.d.ts +1 -0
- package/dist/core/vocab.js +1 -0
- package/dist/core/workspace.schema.d.ts +35 -0
- package/dist/core/workspace.schema.js +106 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +1 -0
- package/dist/credential.schema.d.ts +1 -0
- package/dist/credential.schema.js +1 -0
- package/dist/discovery/index.d.ts +31 -0
- package/dist/discovery/index.js +147 -0
- package/dist/discovery/models.json +2623 -0
- package/dist/discovery/providers.json +156 -0
- package/dist/discovery/types.d.ts +103 -0
- package/dist/discovery/types.js +12 -0
- package/dist/discovery/vercel.d.ts +25 -0
- package/dist/discovery/vercel.js +95 -0
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.js +1 -0
- package/dist/extension/extension.schema.d.ts +1 -0
- package/dist/extension/extension.schema.js +1 -0
- package/dist/extension/index.d.ts +1 -0
- package/dist/extension/index.js +1 -0
- package/dist/extension.d.ts +1 -0
- package/dist/extension.js +1 -0
- package/dist/favorite/favorite.schema.d.ts +1 -0
- package/dist/favorite/favorite.schema.js +1 -0
- package/dist/favorite/index.d.ts +2 -0
- package/dist/favorite/index.js +7 -0
- package/dist/favorite/starred-sync.d.ts +66 -0
- package/dist/favorite/starred-sync.js +156 -0
- package/dist/favorite.d.ts +1 -0
- package/dist/favorite.js +1 -0
- package/dist/file/file.schema.d.ts +1 -0
- package/dist/file/file.schema.js +1 -0
- package/dist/file/index.d.ts +1 -0
- package/dist/file/index.js +1 -0
- package/dist/file.d.ts +1 -0
- package/dist/file.js +1 -0
- package/dist/fixtures/contracts-chat-contact.d.ts +13 -0
- package/dist/fixtures/contracts-chat-contact.js +76 -0
- package/dist/grant.schema.d.ts +1 -0
- package/dist/grant.schema.js +1 -0
- package/dist/import/import-job.schema.d.ts +5 -0
- package/dist/import/import-job.schema.js +5 -0
- package/dist/import/index.d.ts +1 -0
- package/dist/import/index.js +1 -0
- package/dist/import.d.ts +1 -0
- package/dist/import.js +1 -0
- package/dist/inbox-notification.schema.d.ts +1 -0
- package/dist/inbox-notification.schema.js +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +83 -0
- package/dist/knowledge/index.d.ts +1 -0
- package/dist/knowledge/index.js +1 -0
- package/dist/knowledge/knowledge-folder.schema.d.ts +1 -0
- package/dist/knowledge/knowledge-folder.schema.js +1 -0
- package/dist/knowledge.d.ts +1 -0
- package/dist/knowledge.js +1 -0
- package/dist/message.repository.d.ts +81 -0
- package/dist/message.repository.js +8 -0
- package/dist/message.schema.d.ts +1 -0
- package/dist/message.schema.js +1 -0
- package/dist/namespaces.d.ts +1 -0
- package/dist/namespaces.js +1 -0
- package/dist/profile.d.ts +1 -0
- package/dist/profile.js +1 -0
- package/dist/repository.d.ts +59 -0
- package/dist/repository.js +186 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +1 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/index.js +1 -0
- package/dist/session/session.schema.d.ts +1 -0
- package/dist/session/session.schema.js +1 -0
- package/dist/session.d.ts +1 -0
- package/dist/session.js +1 -0
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +1 -0
- package/dist/settings/settings.schema.d.ts +1 -0
- package/dist/settings/settings.schema.js +1 -0
- package/dist/settings.d.ts +1 -0
- package/dist/settings.js +1 -0
- package/dist/sidecar/index.d.ts +2 -0
- package/dist/sidecar/index.js +2 -0
- package/dist/sidecar/persistence-mapping.d.ts +51 -0
- package/dist/sidecar/persistence-mapping.js +44 -0
- package/dist/sidecar/sidecar-events.d.ts +632 -0
- package/dist/sidecar/sidecar-events.js +133 -0
- package/dist/thread.repository.d.ts +41 -0
- package/dist/thread.repository.js +8 -0
- package/dist/thread.schema.d.ts +1 -0
- package/dist/thread.schema.js +1 -0
- package/dist/types/collaboration-blocks.d.ts +52 -0
- package/dist/types/collaboration-blocks.js +7 -0
- package/dist/types/message-block.d.ts +270 -0
- package/dist/types/message-block.js +125 -0
- package/dist/vocab/_namespaces.d.ts +1 -0
- package/dist/vocab/_namespaces.js +3 -0
- package/dist/vocab/chat.vocab.d.ts +16 -0
- package/dist/vocab/chat.vocab.js +22 -0
- package/dist/vocab/contact.vocab.d.ts +21 -0
- package/dist/vocab/contact.vocab.js +22 -0
- package/dist/vocab/index.d.ts +6 -0
- package/dist/vocab/index.js +6 -0
- package/dist/vocab/message.vocab.d.ts +20 -0
- package/dist/vocab/message.vocab.js +24 -0
- package/dist/vocab/sidecar.vocab.d.ts +46 -0
- package/dist/vocab/sidecar.vocab.js +47 -0
- package/dist/vocab/thread.vocab.d.ts +11 -0
- package/dist/vocab/thread.vocab.js +14 -0
- package/dist/vocab/workspace.vocab.d.ts +12 -0
- package/dist/vocab/workspace.vocab.js +13 -0
- package/dist/vocab.d.ts +1 -0
- package/dist/vocab.js +1 -0
- package/dist/workspace.repository.d.ts +45 -0
- package/dist/workspace.repository.js +8 -0
- package/dist/workspace.schema.d.ts +1 -0
- package/dist/workspace.schema.js +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DCTerms, SCHEMA, UDFS, WF } from '../namespaces.js';
|
|
2
|
+
/** Chat channel vocab (thin place/container). */
|
|
3
|
+
export const ChatBaseVocab = {
|
|
4
|
+
// Display
|
|
5
|
+
title: DCTerms.title,
|
|
6
|
+
description: DCTerms.description,
|
|
7
|
+
avatarUrl: SCHEMA.image,
|
|
8
|
+
// Participants (protocol-aligned)
|
|
9
|
+
participants: WF.participant,
|
|
10
|
+
metadata: UDFS.metadata,
|
|
11
|
+
// State
|
|
12
|
+
starred: UDFS.favorite,
|
|
13
|
+
muted: UDFS.muted,
|
|
14
|
+
unreadCount: UDFS.unreadCount,
|
|
15
|
+
// Activity
|
|
16
|
+
lastActiveAt: UDFS.lastActiveAt,
|
|
17
|
+
lastMessageId: WF.message,
|
|
18
|
+
lastMessagePreview: SCHEMA.text,
|
|
19
|
+
// Timestamps
|
|
20
|
+
createdAt: DCTerms.created,
|
|
21
|
+
updatedAt: DCTerms.modified,
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const ContactVocab: {
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly avatarUrl: string;
|
|
4
|
+
readonly entityUri: string;
|
|
5
|
+
readonly rdfType: string;
|
|
6
|
+
readonly contactType: string;
|
|
7
|
+
readonly isPublic: string;
|
|
8
|
+
readonly externalPlatform: string;
|
|
9
|
+
readonly externalId: string;
|
|
10
|
+
readonly alias: string;
|
|
11
|
+
readonly starred: string;
|
|
12
|
+
readonly note: string;
|
|
13
|
+
readonly sortKey: string;
|
|
14
|
+
readonly gender: string;
|
|
15
|
+
readonly province: string;
|
|
16
|
+
readonly city: string;
|
|
17
|
+
readonly createdAt: string;
|
|
18
|
+
readonly updatedAt: string;
|
|
19
|
+
readonly deletedAt: string;
|
|
20
|
+
readonly lastSyncedAt: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AS, DCTerms, FOAF, RDF, UDFS, VCARD } from '../namespaces.js';
|
|
2
|
+
export const ContactVocab = {
|
|
3
|
+
name: VCARD.fn,
|
|
4
|
+
avatarUrl: VCARD.hasPhoto,
|
|
5
|
+
entityUri: FOAF.primaryTopic,
|
|
6
|
+
rdfType: RDF.type,
|
|
7
|
+
contactType: UDFS.contactType,
|
|
8
|
+
isPublic: AS.audience,
|
|
9
|
+
externalPlatform: UDFS.externalPlatform,
|
|
10
|
+
externalId: UDFS.externalId,
|
|
11
|
+
alias: UDFS.alias,
|
|
12
|
+
starred: UDFS.favorite,
|
|
13
|
+
note: VCARD.note,
|
|
14
|
+
sortKey: UDFS.sortKey,
|
|
15
|
+
gender: VCARD.hasGender,
|
|
16
|
+
province: VCARD.region,
|
|
17
|
+
city: VCARD.locality,
|
|
18
|
+
createdAt: DCTerms.created,
|
|
19
|
+
updatedAt: DCTerms.modified,
|
|
20
|
+
deletedAt: UDFS.deletedAt,
|
|
21
|
+
lastSyncedAt: UDFS.lastSyncedAt,
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const MessageVocab: {
|
|
2
|
+
readonly thread: string;
|
|
3
|
+
readonly chat: string;
|
|
4
|
+
readonly maker: string;
|
|
5
|
+
readonly role: string;
|
|
6
|
+
readonly content: string;
|
|
7
|
+
readonly richContent: string;
|
|
8
|
+
readonly status: string;
|
|
9
|
+
readonly replacedBy: string;
|
|
10
|
+
readonly deletedAt: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
readonly updatedAt: string;
|
|
13
|
+
readonly senderName: string;
|
|
14
|
+
readonly senderAvatarUrl: string;
|
|
15
|
+
readonly mentions: string;
|
|
16
|
+
readonly replyTo: string;
|
|
17
|
+
readonly routedBy: string;
|
|
18
|
+
readonly routeTargetAgentId: string;
|
|
19
|
+
readonly coordinationId: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DCTerms, FOAF, LINX_MSG, SCHEMA, SIOC, UDFS, WF } from '../namespaces.js';
|
|
2
|
+
export const MessageVocab = {
|
|
3
|
+
// Existing
|
|
4
|
+
thread: SIOC.hasContainer,
|
|
5
|
+
chat: WF.message,
|
|
6
|
+
maker: FOAF.maker,
|
|
7
|
+
role: UDFS.messageType,
|
|
8
|
+
content: SIOC.content,
|
|
9
|
+
richContent: SIOC.richContent,
|
|
10
|
+
status: UDFS.messageStatus,
|
|
11
|
+
replacedBy: DCTerms.isReplacedBy,
|
|
12
|
+
deletedAt: SCHEMA.dateDeleted,
|
|
13
|
+
createdAt: DCTerms.created,
|
|
14
|
+
updatedAt: DCTerms.modified,
|
|
15
|
+
// Group message extensions
|
|
16
|
+
senderName: LINX_MSG.senderName,
|
|
17
|
+
senderAvatarUrl: LINX_MSG.senderAvatarUrl,
|
|
18
|
+
mentions: LINX_MSG.mentions,
|
|
19
|
+
replyTo: LINX_MSG.replyTo,
|
|
20
|
+
// Multi-AI routing
|
|
21
|
+
routedBy: LINX_MSG.routedBy,
|
|
22
|
+
routeTargetAgentId: LINX_MSG.routeTargetAgentId,
|
|
23
|
+
coordinationId: LINX_MSG.coordinationId,
|
|
24
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const ApprovalVocab: {
|
|
2
|
+
readonly session: string;
|
|
3
|
+
readonly toolCallId: string;
|
|
4
|
+
readonly toolName: string;
|
|
5
|
+
readonly target: string;
|
|
6
|
+
readonly action: string;
|
|
7
|
+
readonly risk: string;
|
|
8
|
+
readonly status: string;
|
|
9
|
+
readonly assignedTo: string;
|
|
10
|
+
readonly decisionBy: string;
|
|
11
|
+
readonly decisionRole: string;
|
|
12
|
+
readonly onBehalfOf: string;
|
|
13
|
+
readonly reason: string;
|
|
14
|
+
readonly policyVersion: string;
|
|
15
|
+
readonly createdAt: string;
|
|
16
|
+
readonly resolvedAt: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const AuditVocab: {
|
|
19
|
+
readonly action: string;
|
|
20
|
+
readonly actor: string;
|
|
21
|
+
readonly actorRole: string;
|
|
22
|
+
readonly onBehalfOf: string;
|
|
23
|
+
readonly session: string;
|
|
24
|
+
readonly toolCallId: string;
|
|
25
|
+
readonly approval: string;
|
|
26
|
+
readonly context: string;
|
|
27
|
+
readonly policy: string;
|
|
28
|
+
readonly policyVersion: string;
|
|
29
|
+
readonly createdAt: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const GrantVocab: {
|
|
32
|
+
readonly target: string;
|
|
33
|
+
readonly action: string;
|
|
34
|
+
readonly effect: string;
|
|
35
|
+
readonly riskCeiling: string;
|
|
36
|
+
readonly decisionBy: string;
|
|
37
|
+
readonly decisionRole: string;
|
|
38
|
+
readonly onBehalfOf: string;
|
|
39
|
+
readonly createdAt: string;
|
|
40
|
+
readonly revokedAt: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const InboxNotificationVocab: {
|
|
43
|
+
readonly actor: string;
|
|
44
|
+
readonly object: string;
|
|
45
|
+
readonly createdAt: string;
|
|
46
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AS, DCTerms, ODRL, UDFS } from '../namespaces.js';
|
|
2
|
+
export const ApprovalVocab = {
|
|
3
|
+
session: UDFS.session,
|
|
4
|
+
toolCallId: UDFS.toolCallId,
|
|
5
|
+
toolName: UDFS.toolName,
|
|
6
|
+
target: ODRL.target,
|
|
7
|
+
action: ODRL.action,
|
|
8
|
+
risk: UDFS.risk,
|
|
9
|
+
status: UDFS.status,
|
|
10
|
+
assignedTo: UDFS.assignedTo,
|
|
11
|
+
decisionBy: UDFS.decisionBy,
|
|
12
|
+
decisionRole: UDFS.decisionRole,
|
|
13
|
+
onBehalfOf: UDFS.onBehalfOf,
|
|
14
|
+
reason: UDFS.reason,
|
|
15
|
+
policyVersion: UDFS.policyVersion,
|
|
16
|
+
createdAt: DCTerms.created,
|
|
17
|
+
resolvedAt: UDFS.resolvedAt,
|
|
18
|
+
};
|
|
19
|
+
export const AuditVocab = {
|
|
20
|
+
action: UDFS.action,
|
|
21
|
+
actor: UDFS.actor,
|
|
22
|
+
actorRole: UDFS.actorRole,
|
|
23
|
+
onBehalfOf: UDFS.onBehalfOf,
|
|
24
|
+
session: UDFS.session,
|
|
25
|
+
toolCallId: UDFS.toolCallId,
|
|
26
|
+
approval: UDFS.approval,
|
|
27
|
+
context: UDFS.context,
|
|
28
|
+
policy: UDFS.policy,
|
|
29
|
+
policyVersion: UDFS.policyVersion,
|
|
30
|
+
createdAt: DCTerms.created,
|
|
31
|
+
};
|
|
32
|
+
export const GrantVocab = {
|
|
33
|
+
target: ODRL.target,
|
|
34
|
+
action: ODRL.action,
|
|
35
|
+
effect: UDFS.effect,
|
|
36
|
+
riskCeiling: UDFS.riskCeiling,
|
|
37
|
+
decisionBy: UDFS.decisionBy,
|
|
38
|
+
decisionRole: UDFS.decisionRole,
|
|
39
|
+
onBehalfOf: UDFS.onBehalfOf,
|
|
40
|
+
createdAt: DCTerms.created,
|
|
41
|
+
revokedAt: UDFS.revokedAt,
|
|
42
|
+
};
|
|
43
|
+
export const InboxNotificationVocab = {
|
|
44
|
+
actor: AS.actor,
|
|
45
|
+
object: AS.object,
|
|
46
|
+
createdAt: DCTerms.created,
|
|
47
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ThreadVocab: {
|
|
2
|
+
readonly chatId: string;
|
|
3
|
+
readonly title: string;
|
|
4
|
+
readonly starred: string;
|
|
5
|
+
readonly status: string;
|
|
6
|
+
readonly metadata: string;
|
|
7
|
+
readonly createdAt: string;
|
|
8
|
+
readonly updatedAt: string;
|
|
9
|
+
readonly workspace: string;
|
|
10
|
+
readonly type: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DCTerms, LINX_CHAT, SIOC, UDFS } from '../namespaces.js';
|
|
2
|
+
export const ThreadVocab = {
|
|
3
|
+
chatId: SIOC.has_parent,
|
|
4
|
+
title: DCTerms.title,
|
|
5
|
+
starred: UDFS.favorite,
|
|
6
|
+
status: UDFS.status,
|
|
7
|
+
metadata: UDFS.metadata,
|
|
8
|
+
createdAt: DCTerms.created,
|
|
9
|
+
updatedAt: DCTerms.modified,
|
|
10
|
+
// Execution context: workspace container (Agent@workspace)
|
|
11
|
+
workspace: LINX_CHAT.workspace,
|
|
12
|
+
// Type marker (for SPARQL convenience)
|
|
13
|
+
type: SIOC.Thread,
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const WorkspaceVocab: {
|
|
2
|
+
readonly title: string;
|
|
3
|
+
readonly workspaceType: string;
|
|
4
|
+
readonly kind: string;
|
|
5
|
+
readonly rootUri: string;
|
|
6
|
+
readonly repoRootUri: string;
|
|
7
|
+
readonly baseRef: string;
|
|
8
|
+
readonly branch: string;
|
|
9
|
+
readonly createdAt: string;
|
|
10
|
+
readonly updatedAt: string;
|
|
11
|
+
readonly type: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DCTerms, UDFS } from '../namespaces.js';
|
|
2
|
+
export const WorkspaceVocab = {
|
|
3
|
+
title: DCTerms.title,
|
|
4
|
+
workspaceType: UDFS.workspaceType,
|
|
5
|
+
kind: UDFS.workspaceKind,
|
|
6
|
+
rootUri: UDFS.rootUri,
|
|
7
|
+
repoRootUri: UDFS.repoRootUri,
|
|
8
|
+
baseRef: UDFS.baseRef,
|
|
9
|
+
branch: UDFS.branch,
|
|
10
|
+
createdAt: DCTerms.created,
|
|
11
|
+
updatedAt: DCTerms.modified,
|
|
12
|
+
type: UDFS.Workspace,
|
|
13
|
+
};
|
package/dist/vocab.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vocab/index.js';
|
package/dist/vocab.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vocab/index.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const workspaceRepository: import("./repository.js").PodRepositoryDescriptor<import("@undefineds.co/models/_drizzle-solid/pod-table").PodTableWithColumns<import("@undefineds.co/models/_drizzle-solid/types").ResolvedColumns<{
|
|
2
|
+
id: import("@undefineds.co/models/_drizzle-solid/columns").PodStringColumn<false, false>;
|
|
3
|
+
title: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"string", null, false, false>;
|
|
4
|
+
workspaceType: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"string", null, true, true>;
|
|
5
|
+
kind: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"string", null, true, true>;
|
|
6
|
+
rootUri: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"uri", null, false, false>;
|
|
7
|
+
repoRootUri: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"uri", null, false, false>;
|
|
8
|
+
baseRef: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"string", null, false, false>;
|
|
9
|
+
branch: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"string", null, false, false>;
|
|
10
|
+
createdAt: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"datetime", null, true, true>;
|
|
11
|
+
updatedAt: import("@undefineds.co/models/_drizzle-solid/columns").ColumnBuilder<"datetime", null, true, true>;
|
|
12
|
+
}>>, {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
workspaceType: string;
|
|
16
|
+
kind: string;
|
|
17
|
+
rootUri: string;
|
|
18
|
+
repoRootUri: string;
|
|
19
|
+
baseRef: string;
|
|
20
|
+
branch: string;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}, {
|
|
24
|
+
id?: string | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
workspaceType?: string | undefined;
|
|
27
|
+
kind?: string | undefined;
|
|
28
|
+
rootUri?: string | undefined;
|
|
29
|
+
repoRootUri?: string | undefined;
|
|
30
|
+
baseRef?: string | undefined;
|
|
31
|
+
branch?: string | undefined;
|
|
32
|
+
createdAt?: Date | undefined;
|
|
33
|
+
updatedAt?: Date | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
id?: string | null | undefined;
|
|
36
|
+
title?: string | null | undefined;
|
|
37
|
+
workspaceType?: string | undefined;
|
|
38
|
+
kind?: string | undefined;
|
|
39
|
+
rootUri?: string | null | undefined;
|
|
40
|
+
repoRootUri?: string | null | undefined;
|
|
41
|
+
baseRef?: string | null | undefined;
|
|
42
|
+
branch?: string | null | undefined;
|
|
43
|
+
createdAt?: Date | undefined;
|
|
44
|
+
updatedAt?: Date | undefined;
|
|
45
|
+
}, Record<string, unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { definePodRepository } from './repository.js';
|
|
2
|
+
import { workspaceTable } from './workspace.schema.js';
|
|
3
|
+
export const workspaceRepository = definePodRepository({
|
|
4
|
+
namespace: 'workspace',
|
|
5
|
+
table: workspaceTable,
|
|
6
|
+
searchableFields: ['title', 'branch'],
|
|
7
|
+
defaultSort: { field: 'updatedAt', direction: 'desc' },
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { workspaceTable, WORKSPACE_TYPES, WORKSPACE_KINDS, getWorkspaceContainerPath, resolveWorkspaceContainerUri, parseWorkspaceIdFromContainerUri, normalizeLocalWorkspacePath, buildLocalWorkspaceUri, parseLocalWorkspaceUri, isLocalWorkspaceUri, type WorkspaceType, type WorkspaceKind, type WorkspaceRow, type WorkspaceInsert, type WorkspaceUpdate, } from './core.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { workspaceTable, WORKSPACE_TYPES, WORKSPACE_KINDS, getWorkspaceContainerPath, resolveWorkspaceContainerUri, parseWorkspaceIdFromContainerUri, normalizeLocalWorkspacePath, buildLocalWorkspaceUri, parseLocalWorkspaceUri, isLocalWorkspaceUri, } from './core.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@undefineds.co/models",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/undefinedsco/models.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/undefinedsco/models/issues"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/undefinedsco/models#readme",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./ai-config": {
|
|
27
|
+
"types": "./dist/ai-config/index.d.ts",
|
|
28
|
+
"default": "./dist/ai-config/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./_drizzle-solid/pod-table": {
|
|
31
|
+
"types": "./dist/_drizzle-solid/pod-table.d.ts",
|
|
32
|
+
"default": "./dist/_drizzle-solid/pod-table.js"
|
|
33
|
+
},
|
|
34
|
+
"./_drizzle-solid/types": {
|
|
35
|
+
"types": "./dist/_drizzle-solid/types.d.ts",
|
|
36
|
+
"default": "./dist/_drizzle-solid/types.js"
|
|
37
|
+
},
|
|
38
|
+
"./_drizzle-solid/columns": {
|
|
39
|
+
"types": "./dist/_drizzle-solid/columns.d.ts",
|
|
40
|
+
"default": "./dist/_drizzle-solid/columns.js"
|
|
41
|
+
},
|
|
42
|
+
"./discovery": {
|
|
43
|
+
"types": "./dist/discovery/index.d.ts",
|
|
44
|
+
"default": "./dist/discovery/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./namespaces": {
|
|
47
|
+
"types": "./dist/namespaces.d.ts",
|
|
48
|
+
"default": "./dist/namespaces.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json && node scripts/rewrite-dts-imports.mjs",
|
|
53
|
+
"lint": "echo \"lint not configured\"",
|
|
54
|
+
"sync:discovery:vercel": "node --experimental-strip-types scripts/sync-discovery-vercel.ts",
|
|
55
|
+
"test": "vitest --run",
|
|
56
|
+
"prepublishOnly": "yarn build"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"drizzle-orm": "^0.32.0",
|
|
60
|
+
"@undefineds.co/drizzle-solid": "^0.3.4",
|
|
61
|
+
"zod": "^3.22.4"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"typescript": "^5.4.0",
|
|
65
|
+
"vitest": "^1.6.0"
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
68
|
+
}
|