@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
package/dist/matrix.schema.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { boolean, id, integer, object, podTable, string, text, timestamp, uri } from '@undefineds.co/drizzle-solid';
|
|
2
|
-
import { DCTerms, SCHEMA, SIOC, UDFS, WF } from './namespaces.js';
|
|
3
|
-
import { chatResource } from './chat.schema.js';
|
|
4
|
-
import { messageResource } from './message.schema.js';
|
|
5
|
-
import { matrixAccountResourceId, matrixEventResourceId, matrixRoomResourceId, } from './resource-id-defaults.js';
|
|
6
|
-
export const MatrixRoomVisibility = {
|
|
7
|
-
PRIVATE: 'private',
|
|
8
|
-
PUBLIC: 'public',
|
|
9
|
-
};
|
|
10
|
-
export const MatrixMembership = {
|
|
11
|
-
JOIN: 'join',
|
|
12
|
-
INVITE: 'invite',
|
|
13
|
-
LEAVE: 'leave',
|
|
14
|
-
BAN: 'ban',
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Matrix account/device state owned by a Pod.
|
|
18
|
-
*
|
|
19
|
-
* This resource records the Matrix protocol identity projected from a Solid
|
|
20
|
-
* identity. Tokens are represented by hashes only; API handlers own raw token
|
|
21
|
-
* issuance/verification.
|
|
22
|
-
*/
|
|
23
|
-
export const matrixAccountResource = podTable('matrix_account', {
|
|
24
|
-
id: id('id').default(matrixAccountResourceId),
|
|
25
|
-
matrixUserId: string('matrixUserId').predicate(UDFS.matrixUserId).notNull(),
|
|
26
|
-
webId: uri('webId').predicate(UDFS.term('webId')).notNull(),
|
|
27
|
-
displayName: string('displayName').predicate(SCHEMA.name),
|
|
28
|
-
avatarUrl: uri('avatarUrl').predicate(SCHEMA.image),
|
|
29
|
-
deviceId: string('deviceId').predicate(UDFS.matrixDeviceId),
|
|
30
|
-
accessTokenHash: string('accessTokenHash').predicate(UDFS.matrixAccessTokenHash),
|
|
31
|
-
metadata: object('metadata').predicate(UDFS.metadata),
|
|
32
|
-
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
33
|
-
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified).notNull().defaultNow(),
|
|
34
|
-
}, {
|
|
35
|
-
base: '/.data/matrix/',
|
|
36
|
-
sparqlEndpoint: '/.data/matrix/-/sparql',
|
|
37
|
-
type: UDFS.MatrixAccount,
|
|
38
|
-
namespace: UDFS,
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* Matrix room projected into Pod storage.
|
|
42
|
-
*
|
|
43
|
-
* `chat` links the protocol room to the existing Solid Chat conversation
|
|
44
|
-
* resource so Matrix messages can also participate in xpod chat views.
|
|
45
|
-
*/
|
|
46
|
-
export const matrixRoomResource = podTable('matrix_room', {
|
|
47
|
-
id: id('id').default(matrixRoomResourceId),
|
|
48
|
-
matrixRoomId: string('matrixRoomId').predicate(UDFS.matrixRoomId).notNull(),
|
|
49
|
-
canonicalAlias: string('canonicalAlias').predicate(UDFS.matrixRoomAlias),
|
|
50
|
-
name: string('name').predicate(DCTerms.title),
|
|
51
|
-
topic: text('topic').predicate(DCTerms.description),
|
|
52
|
-
creator: uri('creator').predicate(UDFS.term('creator')),
|
|
53
|
-
visibility: string('visibility').predicate(UDFS.status).notNull().default(MatrixRoomVisibility.PRIVATE),
|
|
54
|
-
roomVersion: string('roomVersion').predicate(UDFS.matrixRoomVersion).default('11'),
|
|
55
|
-
federate: boolean('federate').predicate(UDFS.term('federate')).default(false),
|
|
56
|
-
chat: uri('chat').predicate(UDFS.conversation).link(chatResource),
|
|
57
|
-
members: uri('members').array().predicate(WF.participant),
|
|
58
|
-
metadata: object('metadata').predicate(UDFS.metadata),
|
|
59
|
-
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
60
|
-
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified).notNull().defaultNow(),
|
|
61
|
-
}, {
|
|
62
|
-
base: '/.data/matrix/',
|
|
63
|
-
sparqlEndpoint: '/.data/matrix/-/sparql',
|
|
64
|
-
type: UDFS.MatrixRoom,
|
|
65
|
-
namespace: UDFS,
|
|
66
|
-
});
|
|
67
|
-
/**
|
|
68
|
-
* Matrix event resource.
|
|
69
|
-
*
|
|
70
|
-
* Events are date-bucketed under their room and can optionally link to the
|
|
71
|
-
* xpod/Solid Chat message generated by the same protocol send operation.
|
|
72
|
-
*/
|
|
73
|
-
export const matrixEventResource = podTable('matrix_event', {
|
|
74
|
-
id: id('id').default(matrixEventResourceId),
|
|
75
|
-
matrixEventId: string('matrixEventId').predicate(UDFS.matrixEventId).notNull(),
|
|
76
|
-
matrixRoomId: string('matrixRoomId').predicate(UDFS.matrixRoomId).notNull(),
|
|
77
|
-
room: uri('room').predicate(SIOC.hasContainer).link(matrixRoomResource),
|
|
78
|
-
type: string('type').predicate(UDFS.matrixEventType).notNull(),
|
|
79
|
-
stateKey: string('stateKey').predicate(UDFS.matrixStateKey),
|
|
80
|
-
sender: string('sender').predicate(UDFS.matrixSender).notNull(),
|
|
81
|
-
senderWebId: uri('senderWebId').predicate(UDFS.matrixSenderWebId),
|
|
82
|
-
originServerTs: integer('originServerTs').predicate(UDFS.matrixOriginServerTs).notNull(),
|
|
83
|
-
depth: integer('depth').predicate(UDFS.matrixDepth).notNull().default(1),
|
|
84
|
-
txnId: string('txnId').predicate(UDFS.matrixTxnId),
|
|
85
|
-
content: object('content').predicate(UDFS.messageContent).notNull(),
|
|
86
|
-
unsigned: object('unsigned').predicate(UDFS.matrixUnsigned),
|
|
87
|
-
redacts: uri('redacts').predicate(UDFS.term('redacts')),
|
|
88
|
-
relatedMessage: uri('relatedMessage').predicate(WF.message).link(messageResource),
|
|
89
|
-
metadata: object('metadata').predicate(UDFS.metadata),
|
|
90
|
-
createdAt: timestamp('createdAt').predicate(DCTerms.created).notNull().defaultNow(),
|
|
91
|
-
updatedAt: timestamp('updatedAt').predicate(DCTerms.modified),
|
|
92
|
-
}, {
|
|
93
|
-
base: '/.data/matrix/',
|
|
94
|
-
sparqlEndpoint: '/.data/matrix/-/sparql',
|
|
95
|
-
type: UDFS.MatrixEvent,
|
|
96
|
-
namespace: UDFS,
|
|
97
|
-
});
|
|
98
|
-
export const matrixAccountTable = matrixAccountResource;
|
|
99
|
-
export const matrixRoomTable = matrixRoomResource;
|
|
100
|
-
export const matrixEventTable = matrixEventResource;
|