@lssm/example.analytics-dashboard 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406
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/dist/dashboard/dashboard.contracts.d.ts +131 -131
- package/dist/dashboard/dashboard.contracts.js +5 -5
- package/dist/dashboard/dashboard.enum.d.ts +4 -4
- package/dist/dashboard/dashboard.enum.js +4 -4
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +43 -43
- package/dist/docs/analytics-dashboard.docblock.js +2 -2
- package/dist/events.d.ts +40 -40
- package/dist/events.js +25 -25
- package/dist/libs/contracts/dist/capabilities/openbanking.js +53 -49
- package/dist/libs/contracts/dist/client/index.js +1 -1
- package/dist/libs/contracts/dist/client/react/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +52 -49
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +11 -86
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +11 -360
- package/dist/libs/contracts/dist/docs/index.js +2 -2
- package/dist/libs/contracts/dist/docs/presentations.js +48 -44
- package/dist/libs/contracts/dist/docs/registry.js +27 -25
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +11 -393
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +11 -78
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +11 -150
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +11 -96
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +10 -10
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +15 -15
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +12 -12
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +11 -223
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +44 -44
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +30 -14
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +10 -10
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +13 -274
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +41 -15
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +15 -15
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +14 -14
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +16 -28
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +60 -15
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +13 -13
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +31 -48
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +40 -15
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +14 -14
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +22 -22
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +12 -12
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +22 -22
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +11 -11
- package/dist/libs/contracts/dist/events.js +4 -3
- package/dist/libs/contracts/dist/index.js +14 -14
- package/dist/libs/contracts/dist/integrations/contracts.js +205 -199
- package/dist/libs/contracts/dist/integrations/index.js +5 -5
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +133 -130
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +95 -93
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +120 -118
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +122 -120
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +9 -20
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +25 -25
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +36 -36
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +40 -40
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/powens.js +51 -51
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +31 -31
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +35 -35
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +28 -28
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +170 -163
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +19 -19
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +17 -17
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +17 -17
- package/dist/libs/contracts/dist/llm/exporters.js +13 -12
- package/dist/libs/contracts/dist/onboarding-base.js +116 -99
- package/dist/libs/contracts/dist/ownership.js +18 -33
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +6 -2
- package/dist/libs/contracts/dist/regenerator/service.js +5 -0
- package/dist/libs/contracts/dist/registry.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +24 -14
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +180 -166
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +20 -9
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/spec.js +22 -13
- package/dist/libs/schema/dist/EnumType.js +25 -9
- package/dist/libs/schema/dist/FieldType.js +24 -14
- package/dist/libs/schema/dist/ScalarTypeEnum.js +180 -166
- package/dist/libs/schema/dist/SchemaModel.js +25 -10
- package/dist/libs/schema/dist/index.js +4 -4
- package/dist/query/query.contracts.d.ts +44 -44
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.js +2 -2
- package/dist/query/query.schema.js +33 -33
- package/package.json +10 -10
|
@@ -1,299 +1,306 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SchemaModel } from "../schema/dist/SchemaModel.js";
|
|
2
|
+
import { ScalarTypeEnum } from "../schema/dist/ScalarTypeEnum.js";
|
|
3
3
|
import "../schema/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { defineCommand, defineQuery } from "../spec.js";
|
|
5
5
|
|
|
6
6
|
//#region ../../libs/contracts/dist/knowledge/contracts.js
|
|
7
|
-
const
|
|
8
|
-
name:
|
|
7
|
+
const KnowledgeSyncSchedule = new SchemaModel({
|
|
8
|
+
name: "KnowledgeSyncSchedule",
|
|
9
9
|
fields: {
|
|
10
10
|
enabled: {
|
|
11
|
-
type:
|
|
12
|
-
isOptional:
|
|
11
|
+
type: ScalarTypeEnum.Boolean(),
|
|
12
|
+
isOptional: false
|
|
13
13
|
},
|
|
14
14
|
cron: {
|
|
15
|
-
type:
|
|
16
|
-
isOptional:
|
|
15
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
16
|
+
isOptional: true
|
|
17
17
|
},
|
|
18
18
|
intervalMs: {
|
|
19
|
-
type:
|
|
20
|
-
isOptional:
|
|
19
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
20
|
+
isOptional: true
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
})
|
|
24
|
-
|
|
23
|
+
});
|
|
24
|
+
const KnowledgeSourceRecord = new SchemaModel({
|
|
25
|
+
name: "KnowledgeSourceRecord",
|
|
25
26
|
fields: {
|
|
26
27
|
id: {
|
|
27
|
-
type:
|
|
28
|
-
isOptional:
|
|
28
|
+
type: ScalarTypeEnum.ID(),
|
|
29
|
+
isOptional: false
|
|
29
30
|
},
|
|
30
31
|
tenantId: {
|
|
31
|
-
type:
|
|
32
|
-
isOptional:
|
|
32
|
+
type: ScalarTypeEnum.ID(),
|
|
33
|
+
isOptional: false
|
|
33
34
|
},
|
|
34
35
|
spaceKey: {
|
|
35
|
-
type:
|
|
36
|
-
isOptional:
|
|
36
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
37
|
+
isOptional: false
|
|
37
38
|
},
|
|
38
39
|
spaceVersion: {
|
|
39
|
-
type:
|
|
40
|
-
isOptional:
|
|
40
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
41
|
+
isOptional: false
|
|
41
42
|
},
|
|
42
43
|
label: {
|
|
43
|
-
type:
|
|
44
|
-
isOptional:
|
|
44
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
45
|
+
isOptional: false
|
|
45
46
|
},
|
|
46
47
|
sourceType: {
|
|
47
|
-
type:
|
|
48
|
-
isOptional:
|
|
48
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
49
|
+
isOptional: false
|
|
49
50
|
},
|
|
50
51
|
syncSchedule: {
|
|
51
|
-
type:
|
|
52
|
-
isOptional:
|
|
52
|
+
type: KnowledgeSyncSchedule,
|
|
53
|
+
isOptional: true
|
|
53
54
|
},
|
|
54
55
|
lastSyncStatus: {
|
|
55
|
-
type:
|
|
56
|
-
isOptional:
|
|
56
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
57
|
+
isOptional: true
|
|
57
58
|
},
|
|
58
59
|
lastSyncAt: {
|
|
59
|
-
type:
|
|
60
|
-
isOptional:
|
|
60
|
+
type: ScalarTypeEnum.DateTime(),
|
|
61
|
+
isOptional: true
|
|
61
62
|
},
|
|
62
63
|
itemsProcessed: {
|
|
63
|
-
type:
|
|
64
|
-
isOptional:
|
|
64
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
65
|
+
isOptional: true
|
|
65
66
|
},
|
|
66
67
|
createdAt: {
|
|
67
|
-
type:
|
|
68
|
-
isOptional:
|
|
68
|
+
type: ScalarTypeEnum.DateTime(),
|
|
69
|
+
isOptional: true
|
|
69
70
|
},
|
|
70
71
|
updatedAt: {
|
|
71
|
-
type:
|
|
72
|
-
isOptional:
|
|
72
|
+
type: ScalarTypeEnum.DateTime(),
|
|
73
|
+
isOptional: true
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
})
|
|
76
|
-
|
|
76
|
+
});
|
|
77
|
+
const CreateKnowledgeSourceInput = new SchemaModel({
|
|
78
|
+
name: "CreateKnowledgeSourceInput",
|
|
77
79
|
fields: {
|
|
78
80
|
tenantId: {
|
|
79
|
-
type:
|
|
80
|
-
isOptional:
|
|
81
|
+
type: ScalarTypeEnum.ID(),
|
|
82
|
+
isOptional: false
|
|
81
83
|
},
|
|
82
84
|
spaceKey: {
|
|
83
|
-
type:
|
|
84
|
-
isOptional:
|
|
85
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
86
|
+
isOptional: false
|
|
85
87
|
},
|
|
86
88
|
spaceVersion: {
|
|
87
|
-
type:
|
|
88
|
-
isOptional:
|
|
89
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
90
|
+
isOptional: false
|
|
89
91
|
},
|
|
90
92
|
label: {
|
|
91
|
-
type:
|
|
92
|
-
isOptional:
|
|
93
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
94
|
+
isOptional: false
|
|
93
95
|
},
|
|
94
96
|
sourceType: {
|
|
95
|
-
type:
|
|
96
|
-
isOptional:
|
|
97
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
98
|
+
isOptional: false
|
|
97
99
|
},
|
|
98
100
|
config: {
|
|
99
|
-
type:
|
|
100
|
-
isOptional:
|
|
101
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
102
|
+
isOptional: false
|
|
101
103
|
},
|
|
102
104
|
syncSchedule: {
|
|
103
|
-
type:
|
|
104
|
-
isOptional:
|
|
105
|
+
type: KnowledgeSyncSchedule,
|
|
106
|
+
isOptional: true
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
+
});
|
|
110
|
+
const UpdateKnowledgeSourceInput = new SchemaModel({
|
|
111
|
+
name: "UpdateKnowledgeSourceInput",
|
|
109
112
|
fields: {
|
|
110
113
|
sourceId: {
|
|
111
|
-
type:
|
|
112
|
-
isOptional:
|
|
114
|
+
type: ScalarTypeEnum.ID(),
|
|
115
|
+
isOptional: false
|
|
113
116
|
},
|
|
114
117
|
label: {
|
|
115
|
-
type:
|
|
116
|
-
isOptional:
|
|
118
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
119
|
+
isOptional: true
|
|
117
120
|
},
|
|
118
121
|
config: {
|
|
119
|
-
type:
|
|
120
|
-
isOptional:
|
|
122
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
123
|
+
isOptional: true
|
|
121
124
|
},
|
|
122
125
|
syncSchedule: {
|
|
123
|
-
type:
|
|
124
|
-
isOptional:
|
|
126
|
+
type: KnowledgeSyncSchedule,
|
|
127
|
+
isOptional: true
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
|
-
})
|
|
128
|
-
|
|
130
|
+
});
|
|
131
|
+
const DeleteKnowledgeSourceInput = new SchemaModel({
|
|
132
|
+
name: "DeleteKnowledgeSourceInput",
|
|
129
133
|
fields: { sourceId: {
|
|
130
|
-
type:
|
|
131
|
-
isOptional:
|
|
134
|
+
type: ScalarTypeEnum.ID(),
|
|
135
|
+
isOptional: false
|
|
132
136
|
} }
|
|
133
|
-
})
|
|
134
|
-
|
|
137
|
+
});
|
|
138
|
+
const DeleteKnowledgeSourceOutput = new SchemaModel({
|
|
139
|
+
name: "DeleteKnowledgeSourceOutput",
|
|
135
140
|
fields: { success: {
|
|
136
|
-
type:
|
|
137
|
-
isOptional:
|
|
141
|
+
type: ScalarTypeEnum.Boolean(),
|
|
142
|
+
isOptional: false
|
|
138
143
|
} }
|
|
139
|
-
})
|
|
140
|
-
|
|
144
|
+
});
|
|
145
|
+
const ListKnowledgeSourcesInput = new SchemaModel({
|
|
146
|
+
name: "ListKnowledgeSourcesInput",
|
|
141
147
|
fields: {
|
|
142
148
|
tenantId: {
|
|
143
|
-
type:
|
|
144
|
-
isOptional:
|
|
149
|
+
type: ScalarTypeEnum.ID(),
|
|
150
|
+
isOptional: false
|
|
145
151
|
},
|
|
146
152
|
spaceKey: {
|
|
147
|
-
type:
|
|
148
|
-
isOptional:
|
|
153
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
154
|
+
isOptional: true
|
|
149
155
|
}
|
|
150
156
|
}
|
|
151
|
-
})
|
|
152
|
-
|
|
157
|
+
});
|
|
158
|
+
const ListKnowledgeSourcesOutput = new SchemaModel({
|
|
159
|
+
name: "ListKnowledgeSourcesOutput",
|
|
153
160
|
fields: { sources: {
|
|
154
|
-
type:
|
|
155
|
-
isOptional:
|
|
156
|
-
isArray:
|
|
161
|
+
type: KnowledgeSourceRecord,
|
|
162
|
+
isOptional: false,
|
|
163
|
+
isArray: true
|
|
157
164
|
} }
|
|
158
|
-
})
|
|
159
|
-
|
|
165
|
+
});
|
|
166
|
+
const TriggerKnowledgeSyncInput = new SchemaModel({
|
|
167
|
+
name: "TriggerKnowledgeSyncInput",
|
|
160
168
|
fields: { sourceId: {
|
|
161
|
-
type:
|
|
162
|
-
isOptional:
|
|
169
|
+
type: ScalarTypeEnum.ID(),
|
|
170
|
+
isOptional: false
|
|
163
171
|
} }
|
|
164
|
-
})
|
|
165
|
-
|
|
172
|
+
});
|
|
173
|
+
const TriggerKnowledgeSyncOutput = new SchemaModel({
|
|
174
|
+
name: "TriggerKnowledgeSyncOutput",
|
|
166
175
|
fields: {
|
|
167
176
|
success: {
|
|
168
|
-
type:
|
|
169
|
-
isOptional:
|
|
177
|
+
type: ScalarTypeEnum.Boolean(),
|
|
178
|
+
isOptional: false
|
|
170
179
|
},
|
|
171
180
|
itemsProcessed: {
|
|
172
|
-
type:
|
|
173
|
-
isOptional:
|
|
181
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
182
|
+
isOptional: true
|
|
174
183
|
},
|
|
175
184
|
error: {
|
|
176
|
-
type:
|
|
177
|
-
isOptional:
|
|
185
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
186
|
+
isOptional: true
|
|
178
187
|
}
|
|
179
188
|
}
|
|
180
|
-
})
|
|
189
|
+
});
|
|
190
|
+
const CreateKnowledgeSource = defineCommand({
|
|
181
191
|
meta: {
|
|
182
|
-
name:
|
|
192
|
+
name: "knowledge.source.create",
|
|
183
193
|
version: 1,
|
|
184
|
-
description:
|
|
185
|
-
goal:
|
|
186
|
-
context:
|
|
187
|
-
owners: [
|
|
188
|
-
tags: [
|
|
189
|
-
stability:
|
|
194
|
+
description: "Create a knowledge source binding for a tenant.",
|
|
195
|
+
goal: "Onboard a new knowledge ingestion source such as Notion or uploads.",
|
|
196
|
+
context: "Used by Ops and App Studio to configure knowledge ingestion per tenant and space.",
|
|
197
|
+
owners: ["platform.knowledge"],
|
|
198
|
+
tags: ["knowledge", "sources"],
|
|
199
|
+
stability: "experimental"
|
|
190
200
|
},
|
|
191
201
|
io: {
|
|
192
|
-
input:
|
|
193
|
-
output:
|
|
202
|
+
input: CreateKnowledgeSourceInput,
|
|
203
|
+
output: KnowledgeSourceRecord
|
|
194
204
|
},
|
|
195
205
|
policy: {
|
|
196
|
-
auth:
|
|
206
|
+
auth: "admin",
|
|
197
207
|
policies: [{
|
|
198
|
-
name:
|
|
208
|
+
name: "platform.knowledge.manage",
|
|
199
209
|
version: 1
|
|
200
210
|
}]
|
|
201
211
|
}
|
|
202
|
-
})
|
|
212
|
+
});
|
|
213
|
+
const UpdateKnowledgeSource = defineCommand({
|
|
203
214
|
meta: {
|
|
204
|
-
name:
|
|
215
|
+
name: "knowledge.source.update",
|
|
205
216
|
version: 1,
|
|
206
|
-
description:
|
|
207
|
-
goal:
|
|
208
|
-
context:
|
|
209
|
-
owners: [
|
|
210
|
-
tags: [
|
|
211
|
-
stability:
|
|
217
|
+
description: "Update metadata or configuration for a knowledge source.",
|
|
218
|
+
goal: "Allow rotation of credentials, sync schedules, and labels.",
|
|
219
|
+
context: "Supports editing how a tenant ingests knowledge (e.g., toggling sync cadence).",
|
|
220
|
+
owners: ["platform.knowledge"],
|
|
221
|
+
tags: ["knowledge", "sources"],
|
|
222
|
+
stability: "experimental"
|
|
212
223
|
},
|
|
213
224
|
io: {
|
|
214
|
-
input:
|
|
215
|
-
output:
|
|
225
|
+
input: UpdateKnowledgeSourceInput,
|
|
226
|
+
output: KnowledgeSourceRecord
|
|
216
227
|
},
|
|
217
228
|
policy: {
|
|
218
|
-
auth:
|
|
229
|
+
auth: "admin",
|
|
219
230
|
policies: [{
|
|
220
|
-
name:
|
|
231
|
+
name: "platform.knowledge.manage",
|
|
221
232
|
version: 1
|
|
222
233
|
}]
|
|
223
234
|
}
|
|
224
|
-
})
|
|
235
|
+
});
|
|
236
|
+
const DeleteKnowledgeSource = defineCommand({
|
|
225
237
|
meta: {
|
|
226
|
-
name:
|
|
238
|
+
name: "knowledge.source.delete",
|
|
227
239
|
version: 1,
|
|
228
|
-
description:
|
|
229
|
-
goal:
|
|
230
|
-
context:
|
|
231
|
-
owners: [
|
|
232
|
-
tags: [
|
|
233
|
-
stability:
|
|
240
|
+
description: "Delete a knowledge source binding for a tenant.",
|
|
241
|
+
goal: "Remove obsolete or compromised knowledge ingestion paths.",
|
|
242
|
+
context: "Ensures ephemeral or external sources can be removed cleanly without leaving residual bindings.",
|
|
243
|
+
owners: ["platform.knowledge"],
|
|
244
|
+
tags: ["knowledge", "sources"],
|
|
245
|
+
stability: "experimental"
|
|
234
246
|
},
|
|
235
247
|
io: {
|
|
236
|
-
input:
|
|
237
|
-
output:
|
|
248
|
+
input: DeleteKnowledgeSourceInput,
|
|
249
|
+
output: DeleteKnowledgeSourceOutput
|
|
238
250
|
},
|
|
239
251
|
policy: {
|
|
240
|
-
auth:
|
|
252
|
+
auth: "admin",
|
|
241
253
|
policies: [{
|
|
242
|
-
name:
|
|
254
|
+
name: "platform.knowledge.manage",
|
|
243
255
|
version: 1
|
|
244
256
|
}]
|
|
245
257
|
}
|
|
246
|
-
})
|
|
258
|
+
});
|
|
259
|
+
const ListKnowledgeSources = defineQuery({
|
|
247
260
|
meta: {
|
|
248
|
-
name:
|
|
261
|
+
name: "knowledge.source.list",
|
|
249
262
|
version: 1,
|
|
250
|
-
description:
|
|
251
|
-
goal:
|
|
252
|
-
context:
|
|
253
|
-
owners: [
|
|
254
|
-
tags: [
|
|
255
|
-
stability:
|
|
263
|
+
description: "List knowledge sources configured for a tenant.",
|
|
264
|
+
goal: "Provide visibility into knowledge ingest configuration and schedules.",
|
|
265
|
+
context: "Used by App Studio and Ops flows to surface knowledge sources and their health.",
|
|
266
|
+
owners: ["platform.knowledge"],
|
|
267
|
+
tags: ["knowledge", "sources"],
|
|
268
|
+
stability: "experimental"
|
|
256
269
|
},
|
|
257
270
|
io: {
|
|
258
|
-
input:
|
|
259
|
-
output:
|
|
271
|
+
input: ListKnowledgeSourcesInput,
|
|
272
|
+
output: ListKnowledgeSourcesOutput
|
|
260
273
|
},
|
|
261
274
|
policy: {
|
|
262
|
-
auth:
|
|
275
|
+
auth: "admin",
|
|
263
276
|
policies: [{
|
|
264
|
-
name:
|
|
277
|
+
name: "platform.knowledge.read",
|
|
265
278
|
version: 1
|
|
266
279
|
}]
|
|
267
280
|
}
|
|
268
|
-
})
|
|
281
|
+
});
|
|
282
|
+
const TriggerKnowledgeSourceSync = defineCommand({
|
|
269
283
|
meta: {
|
|
270
|
-
name:
|
|
284
|
+
name: "knowledge.source.triggerSync",
|
|
271
285
|
version: 1,
|
|
272
|
-
description:
|
|
273
|
-
goal:
|
|
274
|
-
context:
|
|
275
|
-
owners: [
|
|
276
|
-
tags: [
|
|
277
|
-
stability:
|
|
286
|
+
description: "Trigger an immediate sync for a knowledge source.",
|
|
287
|
+
goal: "Support manual or automated sync retries for knowledge ingestion.",
|
|
288
|
+
context: "Invoked by Ops tooling or monitors when knowledge content must be refreshed or reprocessed.",
|
|
289
|
+
owners: ["platform.knowledge"],
|
|
290
|
+
tags: ["knowledge", "sources"],
|
|
291
|
+
stability: "experimental"
|
|
278
292
|
},
|
|
279
293
|
io: {
|
|
280
|
-
input:
|
|
281
|
-
output:
|
|
294
|
+
input: TriggerKnowledgeSyncInput,
|
|
295
|
+
output: TriggerKnowledgeSyncOutput
|
|
282
296
|
},
|
|
283
297
|
policy: {
|
|
284
|
-
auth:
|
|
298
|
+
auth: "admin",
|
|
285
299
|
policies: [{
|
|
286
|
-
name:
|
|
300
|
+
name: "platform.knowledge.manage",
|
|
287
301
|
version: 1
|
|
288
302
|
}]
|
|
289
303
|
}
|
|
290
|
-
})
|
|
291
|
-
CreateKnowledgeSource: m,
|
|
292
|
-
UpdateKnowledgeSource: h,
|
|
293
|
-
DeleteKnowledgeSource: g,
|
|
294
|
-
ListKnowledgeSources: _,
|
|
295
|
-
TriggerKnowledgeSourceSync: v
|
|
296
|
-
};
|
|
304
|
+
});
|
|
297
305
|
|
|
298
|
-
//#endregion
|
|
299
|
-
export { _, g, h, m, v };
|
|
306
|
+
//#endregion
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../libs/contracts/dist/knowledge/spaces/email-threads.js
|
|
4
|
-
const
|
|
4
|
+
const emailThreadsKnowledgeSpace = {
|
|
5
5
|
meta: {
|
|
6
|
-
key:
|
|
6
|
+
key: "knowledge.email-threads",
|
|
7
7
|
version: 1,
|
|
8
|
-
category:
|
|
9
|
-
displayName:
|
|
10
|
-
title:
|
|
11
|
-
description:
|
|
12
|
-
domain:
|
|
13
|
-
owners: [
|
|
14
|
-
tags: [
|
|
15
|
-
stability:
|
|
8
|
+
category: "operational",
|
|
9
|
+
displayName: "Email Threads",
|
|
10
|
+
title: "Operational Email Threads",
|
|
11
|
+
description: "Indexed copies of operational email threads used for support, onboarding, and workflows.",
|
|
12
|
+
domain: "operations",
|
|
13
|
+
owners: ["platform.operations"],
|
|
14
|
+
tags: ["email", "operations"],
|
|
15
|
+
stability: StabilityEnum.Beta
|
|
16
16
|
},
|
|
17
17
|
retention: { ttlDays: 365 },
|
|
18
18
|
access: {
|
|
19
19
|
policy: {
|
|
20
|
-
name:
|
|
20
|
+
name: "knowledge.access.email-threads",
|
|
21
21
|
version: 1
|
|
22
22
|
},
|
|
23
|
-
trustLevel:
|
|
24
|
-
automationWritable:
|
|
23
|
+
trustLevel: "medium",
|
|
24
|
+
automationWritable: true
|
|
25
25
|
},
|
|
26
26
|
indexing: {
|
|
27
|
-
embeddingModel:
|
|
27
|
+
embeddingModel: "mistral-embed",
|
|
28
28
|
chunkSize: 600,
|
|
29
|
-
vectorDbIntegration:
|
|
29
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
30
30
|
},
|
|
31
|
-
description:
|
|
31
|
+
description: "Operational email threads synchronized from Gmail to support automations and contextual assistance."
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../libs/contracts/dist/knowledge/spaces/financial-docs.js
|
|
4
|
-
const
|
|
4
|
+
const financialDocsKnowledgeSpace = {
|
|
5
5
|
meta: {
|
|
6
|
-
key:
|
|
6
|
+
key: "knowledge.financial-docs",
|
|
7
7
|
version: 1,
|
|
8
|
-
category:
|
|
9
|
-
displayName:
|
|
10
|
-
title:
|
|
11
|
-
description:
|
|
12
|
-
domain:
|
|
13
|
-
owners: [
|
|
14
|
-
tags: [
|
|
15
|
-
stability:
|
|
8
|
+
category: "canonical",
|
|
9
|
+
displayName: "Financial Documents",
|
|
10
|
+
title: "Household Financial Documents",
|
|
11
|
+
description: "Invoices, bills, and contracts powering Pocket Family Office financial automation.",
|
|
12
|
+
domain: "finance",
|
|
13
|
+
owners: ["platform.finance"],
|
|
14
|
+
tags: ["finance", "documents"],
|
|
15
|
+
stability: StabilityEnum.Beta
|
|
16
16
|
},
|
|
17
17
|
retention: { ttlDays: null },
|
|
18
18
|
access: {
|
|
19
19
|
policy: {
|
|
20
|
-
name:
|
|
20
|
+
name: "knowledge.access.financial-docs",
|
|
21
21
|
version: 1
|
|
22
22
|
},
|
|
23
|
-
trustLevel:
|
|
24
|
-
automationWritable:
|
|
23
|
+
trustLevel: "high",
|
|
24
|
+
automationWritable: true
|
|
25
25
|
},
|
|
26
26
|
indexing: {
|
|
27
|
-
embeddingModel:
|
|
27
|
+
embeddingModel: "mistral-embed",
|
|
28
28
|
chunkSize: 700,
|
|
29
|
-
vectorDbIntegration:
|
|
29
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
30
30
|
},
|
|
31
|
-
description:
|
|
31
|
+
description: "Normalized financial documents enabling bill pay automation, reminders, and summaries."
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../libs/contracts/dist/knowledge/spaces/financial-overview.js
|
|
4
|
-
const
|
|
4
|
+
const financialOverviewKnowledgeSpace = {
|
|
5
5
|
meta: {
|
|
6
|
-
key:
|
|
6
|
+
key: "knowledge.financial-overview",
|
|
7
7
|
version: 1,
|
|
8
|
-
category:
|
|
9
|
-
displayName:
|
|
10
|
-
title:
|
|
11
|
-
description:
|
|
12
|
-
domain:
|
|
13
|
-
owners: [
|
|
8
|
+
category: "operational",
|
|
9
|
+
displayName: "Financial Overview Summaries",
|
|
10
|
+
title: "Derived Financial Summaries",
|
|
11
|
+
description: "Aggregated cashflow summaries, category breakdowns, and balance trends derived from open banking data.",
|
|
12
|
+
domain: "finance",
|
|
13
|
+
owners: ["platform.finance"],
|
|
14
14
|
tags: [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
"open-banking",
|
|
16
|
+
"summaries",
|
|
17
|
+
"cashflow"
|
|
18
18
|
],
|
|
19
|
-
stability:
|
|
19
|
+
stability: StabilityEnum.Experimental
|
|
20
20
|
},
|
|
21
21
|
retention: { ttlDays: 180 },
|
|
22
22
|
access: {
|
|
23
23
|
policy: {
|
|
24
|
-
name:
|
|
24
|
+
name: "knowledge.access.financial-overview",
|
|
25
25
|
version: 1
|
|
26
26
|
},
|
|
27
|
-
trustLevel:
|
|
28
|
-
automationWritable:
|
|
27
|
+
trustLevel: "medium",
|
|
28
|
+
automationWritable: true
|
|
29
29
|
},
|
|
30
30
|
indexing: {
|
|
31
|
-
embeddingModel:
|
|
31
|
+
embeddingModel: "mistral-embed",
|
|
32
32
|
chunkSize: 600,
|
|
33
|
-
vectorDbIntegration:
|
|
33
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
34
34
|
},
|
|
35
|
-
description:
|
|
35
|
+
description: "Derived knowledge space containing weekly/monthly cashflow rollups and account health summaries. Raw transactions are excluded to respect privacy guardrails."
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
//#endregion
|