@lssm/lib.contracts 1.7.2 → 1.7.3
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/app-config/contracts.d.ts +49 -51
- package/dist/app-config/contracts.d.ts.map +1 -1
- package/dist/app-config/contracts.js +1 -1
- package/dist/app-config/contracts.js.map +1 -1
- package/dist/app-config/events.d.ts +26 -28
- package/dist/app-config/events.d.ts.map +1 -1
- package/dist/app-config/events.js +1 -1
- package/dist/app-config/events.js.map +1 -1
- package/dist/app-config/lifecycle-contracts.d.ts +79 -81
- package/dist/app-config/lifecycle-contracts.d.ts.map +1 -1
- package/dist/app-config/lifecycle-contracts.js +1 -1
- package/dist/app-config/lifecycle-contracts.js.map +1 -1
- package/dist/capabilities/openbanking.js.map +1 -1
- package/dist/client/react/form-render.d.ts +0 -1
- package/dist/client/react/form-render.d.ts.map +1 -1
- package/dist/contracts-adapter-input.d.ts +0 -1
- package/dist/contracts-adapter-input.d.ts.map +1 -1
- package/dist/events.d.ts +0 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +1 -1
- package/dist/events.js.map +1 -1
- package/dist/forms.d.ts +0 -1
- package/dist/forms.d.ts.map +1 -1
- package/dist/install.d.ts +0 -1
- package/dist/install.d.ts.map +1 -1
- package/dist/integrations/contracts.d.ts +101 -103
- package/dist/integrations/contracts.d.ts.map +1 -1
- package/dist/integrations/contracts.js +1 -1
- package/dist/integrations/contracts.js.map +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +65 -67
- package/dist/integrations/openbanking/contracts/accounts.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/integrations/openbanking/contracts/balances.d.ts +33 -35
- package/dist/integrations/openbanking/contracts/balances.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/integrations/openbanking/contracts/index.js.map +1 -1
- package/dist/integrations/openbanking/contracts/transactions.d.ts +47 -49
- package/dist/integrations/openbanking/contracts/transactions.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/integrations/openbanking/guards.js.map +1 -1
- package/dist/integrations/openbanking/models.d.ts +54 -57
- package/dist/integrations/openbanking/models.d.ts.map +1 -1
- package/dist/integrations/openbanking/models.js +1 -1
- package/dist/integrations/openbanking/models.js.map +1 -1
- package/dist/integrations/openbanking/telemetry.js.map +1 -1
- package/dist/integrations/providers/powens.js.map +1 -1
- package/dist/jsonschema.d.ts +1 -1
- package/dist/jsonschema.d.ts.map +1 -1
- package/dist/knowledge/contracts.d.ts +65 -67
- package/dist/knowledge/contracts.d.ts.map +1 -1
- package/dist/knowledge/contracts.js +1 -1
- package/dist/knowledge/contracts.js.map +1 -1
- package/dist/knowledge/spaces/product-canon.js.map +1 -1
- package/dist/knowledge/spaces/support-faq.js.map +1 -1
- package/dist/knowledge/spec.js.map +1 -1
- package/dist/onboarding-base.d.ts +28 -30
- package/dist/onboarding-base.d.ts.map +1 -1
- package/dist/onboarding-base.js +1 -1
- package/dist/onboarding-base.js.map +1 -1
- package/dist/presentations.d.ts +0 -1
- package/dist/presentations.d.ts.map +1 -1
- package/dist/presentations.v2.d.ts +0 -1
- package/dist/presentations.v2.d.ts.map +1 -1
- package/dist/regenerator/executor.js.map +1 -1
- package/dist/regenerator/service.js.map +1 -1
- package/dist/regenerator/sinks.js.map +1 -1
- package/dist/regenerator/utils.js.map +1 -1
- package/dist/registry.d.ts +0 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/schema/{dist → src}/FieldType.js +1 -1
- package/dist/schema/src/FieldType.js.map +1 -0
- package/dist/schema/src/ScalarTypeEnum.js +2 -0
- package/dist/schema/src/ScalarTypeEnum.js.map +1 -0
- package/dist/schema/{dist → src}/SchemaModel.js +1 -1
- package/dist/schema/src/SchemaModel.js.map +1 -0
- package/dist/schema/src/index.js +1 -0
- package/dist/spec.d.ts +0 -1
- package/dist/spec.d.ts.map +1 -1
- package/dist/workflow/spec.d.ts.map +1 -1
- package/package.json +339 -168
- package/dist/schema/dist/FieldType.js.map +0 -1
- package/dist/schema/dist/ScalarTypeEnum.js +0 -2
- package/dist/schema/dist/ScalarTypeEnum.js.map +0 -1
- package/dist/schema/dist/SchemaModel.js.map +0 -1
- package/dist/schema/dist/index.js +0 -1
- /package/dist/schema/{dist → src}/EnumType.js +0 -0
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
import { ContractSpec } from "../spec.js";
|
|
2
2
|
import { SpecRegistry } from "../registry.js";
|
|
3
|
-
import * as _lssm_lib_schema181 from "@lssm/lib.schema";
|
|
4
|
-
import { SchemaModel } from "@lssm/lib.schema";
|
|
5
3
|
|
|
6
4
|
//#region src/knowledge/contracts.d.ts
|
|
7
5
|
declare const CreateKnowledgeSource: ContractSpec<SchemaModel<{
|
|
8
6
|
tenantId: {
|
|
9
|
-
type:
|
|
7
|
+
type: void 0<string, string>;
|
|
10
8
|
isOptional: false;
|
|
11
9
|
};
|
|
12
10
|
spaceKey: {
|
|
13
|
-
type:
|
|
11
|
+
type: void 0<string, string>;
|
|
14
12
|
isOptional: false;
|
|
15
13
|
};
|
|
16
14
|
spaceVersion: {
|
|
17
|
-
type:
|
|
15
|
+
type: void 0<number, number>;
|
|
18
16
|
isOptional: false;
|
|
19
17
|
};
|
|
20
18
|
label: {
|
|
21
|
-
type:
|
|
19
|
+
type: void 0<string, string>;
|
|
22
20
|
isOptional: false;
|
|
23
21
|
};
|
|
24
22
|
sourceType: {
|
|
25
|
-
type:
|
|
23
|
+
type: void 0<string, string>;
|
|
26
24
|
isOptional: false;
|
|
27
25
|
};
|
|
28
26
|
config: {
|
|
29
|
-
type:
|
|
27
|
+
type: void 0<Record<string, unknown>, Record<string, unknown>>;
|
|
30
28
|
isOptional: false;
|
|
31
29
|
};
|
|
32
30
|
syncSchedule: {
|
|
33
31
|
type: SchemaModel<{
|
|
34
32
|
enabled: {
|
|
35
|
-
type:
|
|
33
|
+
type: void 0<boolean, boolean>;
|
|
36
34
|
isOptional: false;
|
|
37
35
|
};
|
|
38
36
|
cron: {
|
|
39
|
-
type:
|
|
37
|
+
type: void 0<string, string>;
|
|
40
38
|
isOptional: true;
|
|
41
39
|
};
|
|
42
40
|
intervalMs: {
|
|
43
|
-
type:
|
|
41
|
+
type: void 0<number, number>;
|
|
44
42
|
isOptional: true;
|
|
45
43
|
};
|
|
46
44
|
}>;
|
|
@@ -48,92 +46,92 @@ declare const CreateKnowledgeSource: ContractSpec<SchemaModel<{
|
|
|
48
46
|
};
|
|
49
47
|
}>, SchemaModel<{
|
|
50
48
|
id: {
|
|
51
|
-
type:
|
|
49
|
+
type: void 0<string, string>;
|
|
52
50
|
isOptional: false;
|
|
53
51
|
};
|
|
54
52
|
tenantId: {
|
|
55
|
-
type:
|
|
53
|
+
type: void 0<string, string>;
|
|
56
54
|
isOptional: false;
|
|
57
55
|
};
|
|
58
56
|
spaceKey: {
|
|
59
|
-
type:
|
|
57
|
+
type: void 0<string, string>;
|
|
60
58
|
isOptional: false;
|
|
61
59
|
};
|
|
62
60
|
spaceVersion: {
|
|
63
|
-
type:
|
|
61
|
+
type: void 0<number, number>;
|
|
64
62
|
isOptional: false;
|
|
65
63
|
};
|
|
66
64
|
label: {
|
|
67
|
-
type:
|
|
65
|
+
type: void 0<string, string>;
|
|
68
66
|
isOptional: false;
|
|
69
67
|
};
|
|
70
68
|
sourceType: {
|
|
71
|
-
type:
|
|
69
|
+
type: void 0<string, string>;
|
|
72
70
|
isOptional: false;
|
|
73
71
|
};
|
|
74
72
|
syncSchedule: {
|
|
75
73
|
type: SchemaModel<{
|
|
76
74
|
enabled: {
|
|
77
|
-
type:
|
|
75
|
+
type: void 0<boolean, boolean>;
|
|
78
76
|
isOptional: false;
|
|
79
77
|
};
|
|
80
78
|
cron: {
|
|
81
|
-
type:
|
|
79
|
+
type: void 0<string, string>;
|
|
82
80
|
isOptional: true;
|
|
83
81
|
};
|
|
84
82
|
intervalMs: {
|
|
85
|
-
type:
|
|
83
|
+
type: void 0<number, number>;
|
|
86
84
|
isOptional: true;
|
|
87
85
|
};
|
|
88
86
|
}>;
|
|
89
87
|
isOptional: true;
|
|
90
88
|
};
|
|
91
89
|
lastSyncStatus: {
|
|
92
|
-
type:
|
|
90
|
+
type: void 0<string, string>;
|
|
93
91
|
isOptional: true;
|
|
94
92
|
};
|
|
95
93
|
lastSyncAt: {
|
|
96
|
-
type:
|
|
94
|
+
type: void 0<Date, string>;
|
|
97
95
|
isOptional: true;
|
|
98
96
|
};
|
|
99
97
|
itemsProcessed: {
|
|
100
|
-
type:
|
|
98
|
+
type: void 0<number, number>;
|
|
101
99
|
isOptional: true;
|
|
102
100
|
};
|
|
103
101
|
createdAt: {
|
|
104
|
-
type:
|
|
102
|
+
type: void 0<Date, string>;
|
|
105
103
|
isOptional: true;
|
|
106
104
|
};
|
|
107
105
|
updatedAt: {
|
|
108
|
-
type:
|
|
106
|
+
type: void 0<Date, string>;
|
|
109
107
|
isOptional: true;
|
|
110
108
|
};
|
|
111
109
|
}>, undefined>;
|
|
112
110
|
declare const UpdateKnowledgeSource: ContractSpec<SchemaModel<{
|
|
113
111
|
sourceId: {
|
|
114
|
-
type:
|
|
112
|
+
type: void 0<string, string>;
|
|
115
113
|
isOptional: false;
|
|
116
114
|
};
|
|
117
115
|
label: {
|
|
118
|
-
type:
|
|
116
|
+
type: void 0<string, string>;
|
|
119
117
|
isOptional: true;
|
|
120
118
|
};
|
|
121
119
|
config: {
|
|
122
|
-
type:
|
|
120
|
+
type: void 0<Record<string, unknown>, Record<string, unknown>>;
|
|
123
121
|
isOptional: true;
|
|
124
122
|
};
|
|
125
123
|
syncSchedule: {
|
|
126
124
|
type: SchemaModel<{
|
|
127
125
|
enabled: {
|
|
128
|
-
type:
|
|
126
|
+
type: void 0<boolean, boolean>;
|
|
129
127
|
isOptional: false;
|
|
130
128
|
};
|
|
131
129
|
cron: {
|
|
132
|
-
type:
|
|
130
|
+
type: void 0<string, string>;
|
|
133
131
|
isOptional: true;
|
|
134
132
|
};
|
|
135
133
|
intervalMs: {
|
|
136
|
-
type:
|
|
134
|
+
type: void 0<number, number>;
|
|
137
135
|
isOptional: true;
|
|
138
136
|
};
|
|
139
137
|
}>;
|
|
@@ -141,149 +139,149 @@ declare const UpdateKnowledgeSource: ContractSpec<SchemaModel<{
|
|
|
141
139
|
};
|
|
142
140
|
}>, SchemaModel<{
|
|
143
141
|
id: {
|
|
144
|
-
type:
|
|
142
|
+
type: void 0<string, string>;
|
|
145
143
|
isOptional: false;
|
|
146
144
|
};
|
|
147
145
|
tenantId: {
|
|
148
|
-
type:
|
|
146
|
+
type: void 0<string, string>;
|
|
149
147
|
isOptional: false;
|
|
150
148
|
};
|
|
151
149
|
spaceKey: {
|
|
152
|
-
type:
|
|
150
|
+
type: void 0<string, string>;
|
|
153
151
|
isOptional: false;
|
|
154
152
|
};
|
|
155
153
|
spaceVersion: {
|
|
156
|
-
type:
|
|
154
|
+
type: void 0<number, number>;
|
|
157
155
|
isOptional: false;
|
|
158
156
|
};
|
|
159
157
|
label: {
|
|
160
|
-
type:
|
|
158
|
+
type: void 0<string, string>;
|
|
161
159
|
isOptional: false;
|
|
162
160
|
};
|
|
163
161
|
sourceType: {
|
|
164
|
-
type:
|
|
162
|
+
type: void 0<string, string>;
|
|
165
163
|
isOptional: false;
|
|
166
164
|
};
|
|
167
165
|
syncSchedule: {
|
|
168
166
|
type: SchemaModel<{
|
|
169
167
|
enabled: {
|
|
170
|
-
type:
|
|
168
|
+
type: void 0<boolean, boolean>;
|
|
171
169
|
isOptional: false;
|
|
172
170
|
};
|
|
173
171
|
cron: {
|
|
174
|
-
type:
|
|
172
|
+
type: void 0<string, string>;
|
|
175
173
|
isOptional: true;
|
|
176
174
|
};
|
|
177
175
|
intervalMs: {
|
|
178
|
-
type:
|
|
176
|
+
type: void 0<number, number>;
|
|
179
177
|
isOptional: true;
|
|
180
178
|
};
|
|
181
179
|
}>;
|
|
182
180
|
isOptional: true;
|
|
183
181
|
};
|
|
184
182
|
lastSyncStatus: {
|
|
185
|
-
type:
|
|
183
|
+
type: void 0<string, string>;
|
|
186
184
|
isOptional: true;
|
|
187
185
|
};
|
|
188
186
|
lastSyncAt: {
|
|
189
|
-
type:
|
|
187
|
+
type: void 0<Date, string>;
|
|
190
188
|
isOptional: true;
|
|
191
189
|
};
|
|
192
190
|
itemsProcessed: {
|
|
193
|
-
type:
|
|
191
|
+
type: void 0<number, number>;
|
|
194
192
|
isOptional: true;
|
|
195
193
|
};
|
|
196
194
|
createdAt: {
|
|
197
|
-
type:
|
|
195
|
+
type: void 0<Date, string>;
|
|
198
196
|
isOptional: true;
|
|
199
197
|
};
|
|
200
198
|
updatedAt: {
|
|
201
|
-
type:
|
|
199
|
+
type: void 0<Date, string>;
|
|
202
200
|
isOptional: true;
|
|
203
201
|
};
|
|
204
202
|
}>, undefined>;
|
|
205
203
|
declare const DeleteKnowledgeSource: ContractSpec<SchemaModel<{
|
|
206
204
|
sourceId: {
|
|
207
|
-
type:
|
|
205
|
+
type: void 0<string, string>;
|
|
208
206
|
isOptional: false;
|
|
209
207
|
};
|
|
210
208
|
}>, SchemaModel<{
|
|
211
209
|
success: {
|
|
212
|
-
type:
|
|
210
|
+
type: void 0<boolean, boolean>;
|
|
213
211
|
isOptional: false;
|
|
214
212
|
};
|
|
215
213
|
}>, undefined>;
|
|
216
214
|
declare const ListKnowledgeSources: ContractSpec<SchemaModel<{
|
|
217
215
|
tenantId: {
|
|
218
|
-
type:
|
|
216
|
+
type: void 0<string, string>;
|
|
219
217
|
isOptional: false;
|
|
220
218
|
};
|
|
221
219
|
spaceKey: {
|
|
222
|
-
type:
|
|
220
|
+
type: void 0<string, string>;
|
|
223
221
|
isOptional: true;
|
|
224
222
|
};
|
|
225
223
|
}>, SchemaModel<{
|
|
226
224
|
sources: {
|
|
227
225
|
type: SchemaModel<{
|
|
228
226
|
id: {
|
|
229
|
-
type:
|
|
227
|
+
type: void 0<string, string>;
|
|
230
228
|
isOptional: false;
|
|
231
229
|
};
|
|
232
230
|
tenantId: {
|
|
233
|
-
type:
|
|
231
|
+
type: void 0<string, string>;
|
|
234
232
|
isOptional: false;
|
|
235
233
|
};
|
|
236
234
|
spaceKey: {
|
|
237
|
-
type:
|
|
235
|
+
type: void 0<string, string>;
|
|
238
236
|
isOptional: false;
|
|
239
237
|
};
|
|
240
238
|
spaceVersion: {
|
|
241
|
-
type:
|
|
239
|
+
type: void 0<number, number>;
|
|
242
240
|
isOptional: false;
|
|
243
241
|
};
|
|
244
242
|
label: {
|
|
245
|
-
type:
|
|
243
|
+
type: void 0<string, string>;
|
|
246
244
|
isOptional: false;
|
|
247
245
|
};
|
|
248
246
|
sourceType: {
|
|
249
|
-
type:
|
|
247
|
+
type: void 0<string, string>;
|
|
250
248
|
isOptional: false;
|
|
251
249
|
};
|
|
252
250
|
syncSchedule: {
|
|
253
251
|
type: SchemaModel<{
|
|
254
252
|
enabled: {
|
|
255
|
-
type:
|
|
253
|
+
type: void 0<boolean, boolean>;
|
|
256
254
|
isOptional: false;
|
|
257
255
|
};
|
|
258
256
|
cron: {
|
|
259
|
-
type:
|
|
257
|
+
type: void 0<string, string>;
|
|
260
258
|
isOptional: true;
|
|
261
259
|
};
|
|
262
260
|
intervalMs: {
|
|
263
|
-
type:
|
|
261
|
+
type: void 0<number, number>;
|
|
264
262
|
isOptional: true;
|
|
265
263
|
};
|
|
266
264
|
}>;
|
|
267
265
|
isOptional: true;
|
|
268
266
|
};
|
|
269
267
|
lastSyncStatus: {
|
|
270
|
-
type:
|
|
268
|
+
type: void 0<string, string>;
|
|
271
269
|
isOptional: true;
|
|
272
270
|
};
|
|
273
271
|
lastSyncAt: {
|
|
274
|
-
type:
|
|
272
|
+
type: void 0<Date, string>;
|
|
275
273
|
isOptional: true;
|
|
276
274
|
};
|
|
277
275
|
itemsProcessed: {
|
|
278
|
-
type:
|
|
276
|
+
type: void 0<number, number>;
|
|
279
277
|
isOptional: true;
|
|
280
278
|
};
|
|
281
279
|
createdAt: {
|
|
282
|
-
type:
|
|
280
|
+
type: void 0<Date, string>;
|
|
283
281
|
isOptional: true;
|
|
284
282
|
};
|
|
285
283
|
updatedAt: {
|
|
286
|
-
type:
|
|
284
|
+
type: void 0<Date, string>;
|
|
287
285
|
isOptional: true;
|
|
288
286
|
};
|
|
289
287
|
}>;
|
|
@@ -293,20 +291,20 @@ declare const ListKnowledgeSources: ContractSpec<SchemaModel<{
|
|
|
293
291
|
}>, undefined>;
|
|
294
292
|
declare const TriggerKnowledgeSourceSync: ContractSpec<SchemaModel<{
|
|
295
293
|
sourceId: {
|
|
296
|
-
type:
|
|
294
|
+
type: void 0<string, string>;
|
|
297
295
|
isOptional: false;
|
|
298
296
|
};
|
|
299
297
|
}>, SchemaModel<{
|
|
300
298
|
success: {
|
|
301
|
-
type:
|
|
299
|
+
type: void 0<boolean, boolean>;
|
|
302
300
|
isOptional: false;
|
|
303
301
|
};
|
|
304
302
|
itemsProcessed: {
|
|
305
|
-
type:
|
|
303
|
+
type: void 0<number, number>;
|
|
306
304
|
isOptional: true;
|
|
307
305
|
};
|
|
308
306
|
error: {
|
|
309
|
-
type:
|
|
307
|
+
type: void 0<string, string>;
|
|
310
308
|
isOptional: true;
|
|
311
309
|
};
|
|
312
310
|
}>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","names":[],"sources":["../../src/knowledge/contracts.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","names":[],"sources":["../../src/knowledge/contracts.ts"],"sourcesContent":[],"mappings":";;;;cA8Ga,uBAAqB,aAAA;EAArB,QAAA,EAAA;IAoBX,IAAA,EAAA,KAAA,CAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;IApB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;;cAsBpB,4BAA0B,aAAA;;UAoBrC,KAAA;;;;;UApBqC,KAAA;;;;;;;;;;;;cAsB1B,oBAAoB,eAAe;iBAQhC,0BAAA,WAAqC,eAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ScalarTypeEnum as e}from"../schema/src/ScalarTypeEnum.js";import{SchemaModel as t}from"../schema/src/SchemaModel.js";import"../schema/src/index.js";import{defineCommand as n,defineQuery as r}from"../spec.js";const i=new t({name:`KnowledgeSyncSchedule`,fields:{enabled:{type:e.Boolean(),isOptional:!1},cron:{type:e.String_unsecure(),isOptional:!0},intervalMs:{type:e.Int_unsecure(),isOptional:!0}}}),a=new t({name:`KnowledgeSourceRecord`,fields:{id:{type:e.ID(),isOptional:!1},tenantId:{type:e.ID(),isOptional:!1},spaceKey:{type:e.NonEmptyString(),isOptional:!1},spaceVersion:{type:e.Int_unsecure(),isOptional:!1},label:{type:e.String_unsecure(),isOptional:!1},sourceType:{type:e.String_unsecure(),isOptional:!1},syncSchedule:{type:i,isOptional:!0},lastSyncStatus:{type:e.String_unsecure(),isOptional:!0},lastSyncAt:{type:e.DateTime(),isOptional:!0},itemsProcessed:{type:e.Int_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!0},updatedAt:{type:e.DateTime(),isOptional:!0}}}),o=new t({name:`CreateKnowledgeSourceInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},spaceKey:{type:e.NonEmptyString(),isOptional:!1},spaceVersion:{type:e.Int_unsecure(),isOptional:!1},label:{type:e.String_unsecure(),isOptional:!1},sourceType:{type:e.NonEmptyString(),isOptional:!1},config:{type:e.JSONObject(),isOptional:!1},syncSchedule:{type:i,isOptional:!0}}}),s=new t({name:`UpdateKnowledgeSourceInput`,fields:{sourceId:{type:e.ID(),isOptional:!1},label:{type:e.String_unsecure(),isOptional:!0},config:{type:e.JSONObject(),isOptional:!0},syncSchedule:{type:i,isOptional:!0}}}),c=new t({name:`DeleteKnowledgeSourceInput`,fields:{sourceId:{type:e.ID(),isOptional:!1}}}),l=new t({name:`DeleteKnowledgeSourceOutput`,fields:{success:{type:e.Boolean(),isOptional:!1}}}),u=new t({name:`ListKnowledgeSourcesInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},spaceKey:{type:e.NonEmptyString(),isOptional:!0}}}),d=new t({name:`ListKnowledgeSourcesOutput`,fields:{sources:{type:a,isOptional:!1,isArray:!0}}}),f=new t({name:`TriggerKnowledgeSyncInput`,fields:{sourceId:{type:e.ID(),isOptional:!1}}}),p=new t({name:`TriggerKnowledgeSyncOutput`,fields:{success:{type:e.Boolean(),isOptional:!1},itemsProcessed:{type:e.Int_unsecure(),isOptional:!0},error:{type:e.String_unsecure(),isOptional:!0}}}),m=n({meta:{name:`knowledge.source.create`,version:1,description:`Create a knowledge source binding for a tenant.`,goal:`Onboard a new knowledge ingestion source such as Notion or uploads.`,context:`Used by Ops and App Studio to configure knowledge ingestion per tenant and space.`,owners:[`platform.knowledge`],tags:[`knowledge`,`sources`],stability:`experimental`},io:{input:o,output:a},policy:{auth:`admin`,policies:[{name:`platform.knowledge.manage`,version:1}]}}),h=n({meta:{name:`knowledge.source.update`,version:1,description:`Update metadata or configuration for a knowledge source.`,goal:`Allow rotation of credentials, sync schedules, and labels.`,context:`Supports editing how a tenant ingests knowledge (e.g., toggling sync cadence).`,owners:[`platform.knowledge`],tags:[`knowledge`,`sources`],stability:`experimental`},io:{input:s,output:a},policy:{auth:`admin`,policies:[{name:`platform.knowledge.manage`,version:1}]}}),g=n({meta:{name:`knowledge.source.delete`,version:1,description:`Delete a knowledge source binding for a tenant.`,goal:`Remove obsolete or compromised knowledge ingestion paths.`,context:`Ensures ephemeral or external sources can be removed cleanly without leaving residual bindings.`,owners:[`platform.knowledge`],tags:[`knowledge`,`sources`],stability:`experimental`},io:{input:c,output:l},policy:{auth:`admin`,policies:[{name:`platform.knowledge.manage`,version:1}]}}),_=r({meta:{name:`knowledge.source.list`,version:1,description:`List knowledge sources configured for a tenant.`,goal:`Provide visibility into knowledge ingest configuration and schedules.`,context:`Used by App Studio and Ops flows to surface knowledge sources and their health.`,owners:[`platform.knowledge`],tags:[`knowledge`,`sources`],stability:`experimental`},io:{input:u,output:d},policy:{auth:`admin`,policies:[{name:`platform.knowledge.read`,version:1}]}}),v=n({meta:{name:`knowledge.source.triggerSync`,version:1,description:`Trigger an immediate sync for a knowledge source.`,goal:`Support manual or automated sync retries for knowledge ingestion.`,context:`Invoked by Ops tooling or monitors when knowledge content must be refreshed or reprocessed.`,owners:[`platform.knowledge`],tags:[`knowledge`,`sources`],stability:`experimental`},io:{input:f,output:p},policy:{auth:`admin`,policies:[{name:`platform.knowledge.manage`,version:1}]}}),y={CreateKnowledgeSource:m,UpdateKnowledgeSource:h,DeleteKnowledgeSource:g,ListKnowledgeSources:_,TriggerKnowledgeSourceSync:v};function b(e){return e.register(m).register(h).register(g).register(_).register(v)}export{m as CreateKnowledgeSource,g as DeleteKnowledgeSource,_ as ListKnowledgeSources,v as TriggerKnowledgeSourceSync,h as UpdateKnowledgeSource,y as knowledgeContracts,b as registerKnowledgeContracts};
|
|
2
2
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","names":["SchemaModel","ScalarTypeEnum","knowledgeContracts: Record<string, ContractSpec<any, any>>"],"sources":["../../src/knowledge/contracts.ts"],"sourcesContent":["import {\n ScalarTypeEnum,\n SchemaModel,\n} from '@lssm/lib.schema';\nimport {\n defineCommand,\n defineQuery,\n type ContractSpec,\n} from '../spec';\nimport type { SpecRegistry } from '../registry';\n\nconst KnowledgeSyncSchedule = new SchemaModel({\n name: 'KnowledgeSyncSchedule',\n fields: {\n enabled: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n cron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n intervalMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst KnowledgeSourceRecord = new SchemaModel({\n name: 'KnowledgeSourceRecord',\n fields: {\n id: { type: ScalarTypeEnum.ID(), isOptional: false },\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n spaceVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n lastSyncStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n lastSyncAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n itemsProcessed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\nconst CreateKnowledgeSourceInput = new SchemaModel({\n name: 'CreateKnowledgeSourceInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n spaceVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n },\n});\n\nconst UpdateKnowledgeSourceInput = new SchemaModel({\n name: 'UpdateKnowledgeSourceInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n },\n});\n\nconst DeleteKnowledgeSourceInput = new SchemaModel({\n name: 'DeleteKnowledgeSourceInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n },\n});\n\nconst DeleteKnowledgeSourceOutput = new SchemaModel({\n name: 'DeleteKnowledgeSourceOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\nconst ListKnowledgeSourcesInput = new SchemaModel({\n name: 'ListKnowledgeSourcesInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n },\n});\n\nconst ListKnowledgeSourcesOutput = new SchemaModel({\n name: 'ListKnowledgeSourcesOutput',\n fields: {\n sources: {\n type: KnowledgeSourceRecord,\n isOptional: false,\n isArray: true,\n },\n },\n});\n\nconst TriggerKnowledgeSyncInput = new SchemaModel({\n name: 'TriggerKnowledgeSyncInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n },\n});\n\nconst TriggerKnowledgeSyncOutput = new SchemaModel({\n name: 'TriggerKnowledgeSyncOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n itemsProcessed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const CreateKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.create',\n version: 1,\n description: 'Create a knowledge source binding for a tenant.',\n goal: 'Onboard a new knowledge ingestion source such as Notion or uploads.',\n context:\n 'Used by Ops and App Studio to configure knowledge ingestion per tenant and space.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: CreateKnowledgeSourceInput,\n output: KnowledgeSourceRecord,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const UpdateKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.update',\n version: 1,\n description: 'Update metadata or configuration for a knowledge source.',\n goal: 'Allow rotation of credentials, sync schedules, and labels.',\n context:\n 'Supports editing how a tenant ingests knowledge (e.g., toggling sync cadence).',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: UpdateKnowledgeSourceInput,\n output: KnowledgeSourceRecord,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const DeleteKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.delete',\n version: 1,\n description: 'Delete a knowledge source binding for a tenant.',\n goal: 'Remove obsolete or compromised knowledge ingestion paths.',\n context:\n 'Ensures ephemeral or external sources can be removed cleanly without leaving residual bindings.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: DeleteKnowledgeSourceInput,\n output: DeleteKnowledgeSourceOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const ListKnowledgeSources = defineQuery({\n meta: {\n name: 'knowledge.source.list',\n version: 1,\n description: 'List knowledge sources configured for a tenant.',\n goal: 'Provide visibility into knowledge ingest configuration and schedules.',\n context:\n 'Used by App Studio and Ops flows to surface knowledge sources and their health.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: ListKnowledgeSourcesInput,\n output: ListKnowledgeSourcesOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.read', version: 1 }],\n },\n});\n\nexport const TriggerKnowledgeSourceSync = defineCommand({\n meta: {\n name: 'knowledge.source.triggerSync',\n version: 1,\n description: 'Trigger an immediate sync for a knowledge source.',\n goal: 'Support manual or automated sync retries for knowledge ingestion.',\n context:\n 'Invoked by Ops tooling or monitors when knowledge content must be refreshed or reprocessed.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: TriggerKnowledgeSyncInput,\n output: TriggerKnowledgeSyncOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const knowledgeContracts: Record<string, ContractSpec<any, any>> = {\n CreateKnowledgeSource,\n UpdateKnowledgeSource,\n DeleteKnowledgeSource,\n ListKnowledgeSources,\n TriggerKnowledgeSourceSync,\n};\n\nexport function registerKnowledgeContracts(registry: SpecRegistry) {\n return registry\n .register(CreateKnowledgeSource)\n .register(UpdateKnowledgeSource)\n .register(DeleteKnowledgeSource)\n .register(ListKnowledgeSources)\n .register(TriggerKnowledgeSourceSync);\n}\n\n\n\n\n"],"mappings":"8LAWA,MAAM,EAAwB,IAAIA,EAAY,CAC5C,KAAM,wBACN,OAAQ,CACN,QAAS,CAAE,KAAMC,EAAe,SAAS,CAAE,WAAY,GAAO,CAC9D,KAAM,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CAClE,WAAY,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAM,CACtE,CACF,CAAC,CAEI,EAAwB,IAAID,EAAY,CAC5C,KAAM,wBACN,OAAQ,CACN,GAAI,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CACpD,SAAU,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,SAAU,CAAE,KAAMA,EAAe,gBAAgB,CAAE,WAAY,GAAO,CACtE,aAAc,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAO,CACxE,MAAO,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACpE,WAAY,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACzE,aAAc,CAAE,KAAM,EAAuB,WAAY,GAAM,CAC/D,eAAgB,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CAC5E,WAAY,CAAE,KAAMA,EAAe,UAAU,CAAE,WAAY,GAAM,CACjE,eAAgB,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,G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F,OAAQ,CAAC,qBAAqB,CAC9B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,eACZ,CACD,GAAI,CACF,MAAO,EACP,OAAQ,EACT,CACD,OAAQ,CACN,KAAM,QACN,SAAU,CAAC,CAAE,KAAM,4BAA6B,QAAS,EAAG,CAAC,CAC9D,CACF,CAAC,CAEW,EAAuB,EAAY,CAC9C,KAAM,CACJ,KAAM,wBACN,QAAS,EACT,YAAa,kDACb,KAAM,wEACN,QACE,kFACF,OAAQ,CAAC,qBAAqB,CAC9B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,eACZ,CACD,GAAI,CACF,MAAO,EACP,OAAQ,EACT,CACD,OAAQ,CACN,KAAM,QACN,SAAU,CAAC,CAAE,KAAM,0BAA2B,QAAS,EAAG,CAAC,CAC5D,CACF,CAAC,CAEW,EAA6B,EAAc,CACtD,KAAM,CACJ,KAAM,+BACN,QAAS,EACT,YAAa,oDACb,KAAM,oEACN,QACE,8FACF,OAAQ,CAAC,qBAAqB,CAC9B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,eACZ,CACD,GAAI,CACF,MAAO,EACP,OAAQ,EACT,CACD,OAAQ,CACN,KAAM,QACN,SAAU,CAAC,CAAE,KAAM,4BAA6B,QAAS,EAAG,CAAC,CAC9D,CACF,CAAC,CAEWC,EAA6D,CACxE,wBACA,wBACA,wBACA,uBACA,6BACD,CAED,SAAgB,EAA2B,EAAwB,CACjE,OAAO,EACJ,SAAS,EAAsB,CAC/B,SAAS,EAAsB,CAC/B,SAAS,EAAsB,CAC/B,SAAS,EAAqB,CAC9B,SAAS,EAA2B"}
|
|
1
|
+
{"version":3,"file":"contracts.js","names":["knowledgeContracts: Record<string, ContractSpec<any, any>>"],"sources":["../../src/knowledge/contracts.ts"],"sourcesContent":["import {\n ScalarTypeEnum,\n SchemaModel,\n} from '@lssm/lib.schema';\nimport {\n defineCommand,\n defineQuery,\n type ContractSpec,\n} from '../spec';\nimport type { SpecRegistry } from '../registry';\n\nconst KnowledgeSyncSchedule = new SchemaModel({\n name: 'KnowledgeSyncSchedule',\n fields: {\n enabled: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n cron: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n intervalMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst KnowledgeSourceRecord = new SchemaModel({\n name: 'KnowledgeSourceRecord',\n fields: {\n id: { type: ScalarTypeEnum.ID(), isOptional: false },\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n spaceVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n lastSyncStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n lastSyncAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n itemsProcessed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\nconst CreateKnowledgeSourceInput = new SchemaModel({\n name: 'CreateKnowledgeSourceInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n spaceVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n },\n});\n\nconst UpdateKnowledgeSourceInput = new SchemaModel({\n name: 'UpdateKnowledgeSourceInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n label: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n syncSchedule: { type: KnowledgeSyncSchedule, isOptional: true },\n },\n});\n\nconst DeleteKnowledgeSourceInput = new SchemaModel({\n name: 'DeleteKnowledgeSourceInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n },\n});\n\nconst DeleteKnowledgeSourceOutput = new SchemaModel({\n name: 'DeleteKnowledgeSourceOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\nconst ListKnowledgeSourcesInput = new SchemaModel({\n name: 'ListKnowledgeSourcesInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n spaceKey: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n },\n});\n\nconst ListKnowledgeSourcesOutput = new SchemaModel({\n name: 'ListKnowledgeSourcesOutput',\n fields: {\n sources: {\n type: KnowledgeSourceRecord,\n isOptional: false,\n isArray: true,\n },\n },\n});\n\nconst TriggerKnowledgeSyncInput = new SchemaModel({\n name: 'TriggerKnowledgeSyncInput',\n fields: {\n sourceId: { type: ScalarTypeEnum.ID(), isOptional: false },\n },\n});\n\nconst TriggerKnowledgeSyncOutput = new SchemaModel({\n name: 'TriggerKnowledgeSyncOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n itemsProcessed: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const CreateKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.create',\n version: 1,\n description: 'Create a knowledge source binding for a tenant.',\n goal: 'Onboard a new knowledge ingestion source such as Notion or uploads.',\n context:\n 'Used by Ops and App Studio to configure knowledge ingestion per tenant and space.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: CreateKnowledgeSourceInput,\n output: KnowledgeSourceRecord,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const UpdateKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.update',\n version: 1,\n description: 'Update metadata or configuration for a knowledge source.',\n goal: 'Allow rotation of credentials, sync schedules, and labels.',\n context:\n 'Supports editing how a tenant ingests knowledge (e.g., toggling sync cadence).',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: UpdateKnowledgeSourceInput,\n output: KnowledgeSourceRecord,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const DeleteKnowledgeSource = defineCommand({\n meta: {\n name: 'knowledge.source.delete',\n version: 1,\n description: 'Delete a knowledge source binding for a tenant.',\n goal: 'Remove obsolete or compromised knowledge ingestion paths.',\n context:\n 'Ensures ephemeral or external sources can be removed cleanly without leaving residual bindings.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: DeleteKnowledgeSourceInput,\n output: DeleteKnowledgeSourceOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const ListKnowledgeSources = defineQuery({\n meta: {\n name: 'knowledge.source.list',\n version: 1,\n description: 'List knowledge sources configured for a tenant.',\n goal: 'Provide visibility into knowledge ingest configuration and schedules.',\n context:\n 'Used by App Studio and Ops flows to surface knowledge sources and their health.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: ListKnowledgeSourcesInput,\n output: ListKnowledgeSourcesOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.read', version: 1 }],\n },\n});\n\nexport const TriggerKnowledgeSourceSync = defineCommand({\n meta: {\n name: 'knowledge.source.triggerSync',\n version: 1,\n description: 'Trigger an immediate sync for a knowledge source.',\n goal: 'Support manual or automated sync retries for knowledge ingestion.',\n context:\n 'Invoked by Ops tooling or monitors when knowledge content must be refreshed or reprocessed.',\n owners: ['platform.knowledge'],\n tags: ['knowledge', 'sources'],\n stability: 'experimental',\n },\n io: {\n input: TriggerKnowledgeSyncInput,\n output: TriggerKnowledgeSyncOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.knowledge.manage', version: 1 }],\n },\n});\n\nexport const knowledgeContracts: Record<string, ContractSpec<any, any>> = {\n CreateKnowledgeSource,\n UpdateKnowledgeSource,\n DeleteKnowledgeSource,\n ListKnowledgeSources,\n TriggerKnowledgeSourceSync,\n};\n\nexport function registerKnowledgeContracts(registry: SpecRegistry) {\n return registry\n .register(CreateKnowledgeSource)\n .register(UpdateKnowledgeSource)\n .register(DeleteKnowledgeSource)\n .register(ListKnowledgeSources)\n .register(TriggerKnowledgeSourceSync);\n}\n\n\n\n\n\n\n"],"mappings":"uNAWA,MAAM,EAAwB,IAAI,EAAY,CAC5C,KAAM,wBACN,OAAQ,CACN,QAAS,CAAE,KAAM,EAAe,SAAS,CAAE,WAAY,GAAO,CAC9D,KAAM,CAAE,KAAM,EAAe,iBAAiB,CAAE,WAAY,GAAM,CAClE,WAAY,CAAE,KAAM,EAAe,cAAc,CAAE,WAAY,GAAM,CACtE,CACF,CAAC,CAEI,EAAwB,IAAI,EAAY,CAC5C,KAAM,wBACN,OAAQ,CACN,GAAI,CAAE,KAAM,EAAe,IAAI,CAAE,WAAY,GAAO,CACpD,SAAU,CAAE,KAAM,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,SAAU,CAAE,KAAM,EAAe,gBAAgB,CAAE,WAAY,GAAO,CACtE,aAAc,CAAE,KAAM,EAAe,cAAc,CAAE,WAAY,GAAO,CACxE,MAAO,CAAE,KAAM,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACpE,WAAY,CAAE,KAAM,EAAe,iBAAiB,CAAE,WA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-
{"version":3,"file":"product-canon.js","names":["productCanonKnowledgeSpace: KnowledgeSpaceSpec"],"sources":["../../../src/knowledge/spaces/product-canon.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { KnowledgeSpaceRegistry, KnowledgeSpaceSpec } from '../spec';\n\nexport const productCanonKnowledgeSpace: KnowledgeSpaceSpec = {\n meta: {\n key: 'knowledge.product-canon',\n version: 1,\n category: 'canonical',\n displayName: 'Product Canon',\n title: 'Product Canon Knowledge Space',\n description:\n 'Authoritative product knowledge covering strategy, roadmap, and delivery canon.',\n domain: 'product',\n owners: ['platform.product'],\n tags: ['knowledge', 'product'],\n stability: StabilityEnum.Stable,\n },\n retention: {\n ttlDays: null,\n },\n access: {\n policy: { name: 'knowledge.access.product-canon', version: 1 },\n trustLevel: 'high',\n automationWritable: false,\n },\n indexing: {\n embeddingModel: 'text-embedding-3-large',\n chunkSize: 800,\n vectorDbIntegration: 'vectordb.qdrant',\n },\n description:\n 'Single source of truth for product canon, principles, and strategic narratives.',\n};\n\nexport function registerProductCanonKnowledgeSpace(\n registry: KnowledgeSpaceRegistry\n): KnowledgeSpaceRegistry {\n return registry.register(productCanonKnowledgeSpace);\n}\n\n\n\n\n"],"mappings":"mDAGA,MAAaA,EAAiD,CAC5D,KAAM,CACJ,IAAK,0BACL,QAAS,EACT,SAAU,YACV,YAAa,gBACb,MAAO,gCACP,YACE,kFACF,OAAQ,UACR,OAAQ,CAAC,mBAAmB,CAC5B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,EAAc,OAC1B,CACD,UAAW,CACT,QAAS,KACV,CACD,OAAQ,CACN,OAAQ,CAAE,KAAM,iCAAkC,QAAS,EAAG,CAC9D,WAAY,OACZ,mBAAoB,GACrB,CACD,SAAU,CACR,eAAgB,yBAChB,UAAW,IACX,oBAAqB,kBACtB,CACD,YACE,kFACH,CAED,SAAgB,EACd,EACwB,CACxB,OAAO,EAAS,SAAS,EAA2B"}
|
|
1
|
+
{"version":3,"file":"product-canon.js","names":["productCanonKnowledgeSpace: KnowledgeSpaceSpec"],"sources":["../../../src/knowledge/spaces/product-canon.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { KnowledgeSpaceRegistry, KnowledgeSpaceSpec } from '../spec';\n\nexport const productCanonKnowledgeSpace: KnowledgeSpaceSpec = {\n meta: {\n key: 'knowledge.product-canon',\n version: 1,\n category: 'canonical',\n displayName: 'Product Canon',\n title: 'Product Canon Knowledge Space',\n description:\n 'Authoritative product knowledge covering strategy, roadmap, and delivery canon.',\n domain: 'product',\n owners: ['platform.product'],\n tags: ['knowledge', 'product'],\n stability: StabilityEnum.Stable,\n },\n retention: {\n ttlDays: null,\n },\n access: {\n policy: { name: 'knowledge.access.product-canon', version: 1 },\n trustLevel: 'high',\n automationWritable: false,\n },\n indexing: {\n embeddingModel: 'text-embedding-3-large',\n chunkSize: 800,\n vectorDbIntegration: 'vectordb.qdrant',\n },\n description:\n 'Single source of truth for product canon, principles, and strategic narratives.',\n};\n\nexport function registerProductCanonKnowledgeSpace(\n registry: KnowledgeSpaceRegistry\n): KnowledgeSpaceRegistry {\n return registry.register(productCanonKnowledgeSpace);\n}\n\n\n\n\n\n\n"],"mappings":"mDAGA,MAAaA,EAAiD,CAC5D,KAAM,CACJ,IAAK,0BACL,QAAS,EACT,SAAU,YACV,YAAa,gBACb,MAAO,gCACP,YACE,kFACF,OAAQ,UACR,OAAQ,CAAC,mBAAmB,CAC5B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,EAAc,OAC1B,CACD,UAAW,CACT,QAAS,KACV,CACD,OAAQ,CACN,OAAQ,CAAE,KAAM,iCAAkC,QAAS,EAAG,CAC9D,WAAY,OACZ,mBAAoB,GACrB,CACD,SAAU,CACR,eAAgB,yBAChB,UAAW,IACX,oBAAqB,kBACtB,CACD,YACE,kFACH,CAED,SAAgB,EACd,EACwB,CACxB,OAAO,EAAS,SAAS,EAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-faq.js","names":["supportFaqKnowledgeSpace: KnowledgeSpaceSpec"],"sources":["../../../src/knowledge/spaces/support-faq.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { KnowledgeSpaceRegistry, KnowledgeSpaceSpec } from '../spec';\n\nexport const supportFaqKnowledgeSpace: KnowledgeSpaceSpec = {\n meta: {\n key: 'knowledge.support-faq',\n version: 1,\n category: 'operational',\n displayName: 'Support FAQ',\n title: 'Support & Success FAQ',\n description: 'Operational knowledge base for customer support and success.',\n domain: 'support',\n owners: ['platform.support'],\n tags: ['knowledge', 'support'],\n stability: StabilityEnum.Beta,\n },\n retention: {\n ttlDays: 365,\n archiveAfterDays: 180,\n },\n access: {\n policy: { name: 'knowledge.access.support', version: 1 },\n trustLevel: 'medium',\n automationWritable: true,\n },\n indexing: {\n embeddingModel: 'text-embedding-3-small',\n chunkSize: 700,\n vectorDbIntegration: 'vectordb.qdrant',\n },\n description:\n 'Operational FAQs, runbooks, and customer success playbooks augmented with automation updates.',\n};\n\nexport function registerSupportFaqKnowledgeSpace(\n registry: KnowledgeSpaceRegistry\n): KnowledgeSpaceRegistry {\n return registry.register(supportFaqKnowledgeSpace);\n}\n\n\n\n\n"],"mappings":"mDAGA,MAAaA,EAA+C,CAC1D,KAAM,CACJ,IAAK,wBACL,QAAS,EACT,SAAU,cACV,YAAa,cACb,MAAO,wBACP,YAAa,+DACb,OAAQ,UACR,OAAQ,CAAC,mBAAmB,CAC5B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,EAAc,KAC1B,CACD,UAAW,CACT,QAAS,IACT,iBAAkB,IACnB,CACD,OAAQ,CACN,OAAQ,CAAE,KAAM,2BAA4B,QAAS,EAAG,CACxD,WAAY,SACZ,mBAAoB,GACrB,CACD,SAAU,CACR,eAAgB,yBAChB,UAAW,IACX,oBAAqB,kBACtB,CACD,YACE,gGACH,CAED,SAAgB,EACd,EACwB,CACxB,OAAO,EAAS,SAAS,EAAyB"}
|
|
1
|
+
{"version":3,"file":"support-faq.js","names":["supportFaqKnowledgeSpace: KnowledgeSpaceSpec"],"sources":["../../../src/knowledge/spaces/support-faq.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { KnowledgeSpaceRegistry, KnowledgeSpaceSpec } from '../spec';\n\nexport const supportFaqKnowledgeSpace: KnowledgeSpaceSpec = {\n meta: {\n key: 'knowledge.support-faq',\n version: 1,\n category: 'operational',\n displayName: 'Support FAQ',\n title: 'Support & Success FAQ',\n description: 'Operational knowledge base for customer support and success.',\n domain: 'support',\n owners: ['platform.support'],\n tags: ['knowledge', 'support'],\n stability: StabilityEnum.Beta,\n },\n retention: {\n ttlDays: 365,\n archiveAfterDays: 180,\n },\n access: {\n policy: { name: 'knowledge.access.support', version: 1 },\n trustLevel: 'medium',\n automationWritable: true,\n },\n indexing: {\n embeddingModel: 'text-embedding-3-small',\n chunkSize: 700,\n vectorDbIntegration: 'vectordb.qdrant',\n },\n description:\n 'Operational FAQs, runbooks, and customer success playbooks augmented with automation updates.',\n};\n\nexport function registerSupportFaqKnowledgeSpace(\n registry: KnowledgeSpaceRegistry\n): KnowledgeSpaceRegistry {\n return registry.register(supportFaqKnowledgeSpace);\n}\n\n\n\n\n\n\n"],"mappings":"mDAGA,MAAaA,EAA+C,CAC1D,KAAM,CACJ,IAAK,wBACL,QAAS,EACT,SAAU,cACV,YAAa,cACb,MAAO,wBACP,YAAa,+DACb,OAAQ,UACR,OAAQ,CAAC,mBAAmB,CAC5B,KAAM,CAAC,YAAa,UAAU,CAC9B,UAAW,EAAc,KAC1B,CACD,UAAW,CACT,QAAS,IACT,iBAAkB,IACnB,CACD,OAAQ,CACN,OAAQ,CAAE,KAAM,2BAA4B,QAAS,EAAG,CACxD,WAAY,SACZ,mBAAoB,GACrB,CACD,SAAU,CACR,eAAgB,yBAChB,UAAW,IACX,oBAAqB,kBACtB,CACD,YACE,gGACH,CAED,SAAgB,EACd,EACwB,CACxB,OAAO,EAAS,SAAS,EAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","names":["latest: KnowledgeSpaceSpec | undefined"],"sources":["../../src/knowledge/spec.ts"],"sourcesContent":["import type { OwnerShipMeta } from '../ownership';\nimport type { PolicyRef } from '../policy/spec';\n\nexport type KnowledgeCategory =\n | 'canonical'\n | 'operational'\n | 'external'\n | 'ephemeral';\n\nexport interface KnowledgeSpaceMeta extends OwnerShipMeta {\n /** Stable space identifier (e.g., \"product-canon\", \"support-faq\"). */\n key: string;\n version: number;\n category: KnowledgeCategory;\n displayName: string;\n}\n\nexport interface KnowledgeRetentionPolicy {\n /** TTL in days (null = indefinite). */\n ttlDays?: number | null;\n /** Auto-archive after inactivity. */\n archiveAfterDays?: number;\n}\n\nexport interface KnowledgeAccessPolicy {\n /** Which PolicySpec governs access. */\n policy?: PolicyRef;\n /** Trust level for agent/workflow consumption. */\n trustLevel: 'high' | 'medium' | 'low';\n /** Can this space be mutated by automation? */\n automationWritable: boolean;\n}\n\nexport interface KnowledgeIndexingConfig {\n embeddingModel?: string;\n chunkSize?: number;\n vectorDbIntegration?: string;\n}\n\nexport interface KnowledgeSpaceSpec {\n meta: KnowledgeSpaceMeta;\n /** Retention and cleanup rules. */\n retention: KnowledgeRetentionPolicy;\n /** Access control and trust. */\n access: KnowledgeAccessPolicy;\n /** Optional embedding/indexing config. */\n indexing?: KnowledgeIndexingConfig;\n /** Documentation. */\n description?: string;\n}\n\nconst knowledgeKey = (meta: Pick<KnowledgeSpaceMeta, 'key' | 'version'>) =>\n `${meta.key}.v${meta.version}`;\n\nexport class KnowledgeSpaceRegistry {\n private readonly items = new Map<string, KnowledgeSpaceSpec>();\n\n register(spec: KnowledgeSpaceSpec): this {\n const key = knowledgeKey(spec.meta);\n if (this.items.has(key)) {\n throw new Error(`Duplicate KnowledgeSpaceSpec ${key}`);\n }\n this.items.set(key, spec);\n return this;\n }\n\n list(): KnowledgeSpaceSpec[] {\n return [...this.items.values()];\n }\n\n get(key: string, version?: number): KnowledgeSpaceSpec | undefined {\n if (version != null) {\n return this.items.get(knowledgeKey({ key, version }));\n }\n let latest: KnowledgeSpaceSpec | undefined;\n let maxVersion = -Infinity;\n for (const spec of this.items.values()) {\n if (spec.meta.key !== key) continue;\n if (spec.meta.version > maxVersion) {\n maxVersion = spec.meta.version;\n latest = spec;\n }\n }\n return latest;\n }\n\n getByCategory(category: KnowledgeCategory): KnowledgeSpaceSpec[] {\n return this.list().filter((spec) => spec.meta.category === category);\n }\n}\n\nexport function makeKnowledgeSpaceKey(meta: KnowledgeSpaceMeta) {\n return knowledgeKey(meta);\n}\n\n\n\n\n"],"mappings":"AAmDA,MAAM,EAAgB,GACpB,GAAG,EAAK,IAAI,IAAI,EAAK,UAEvB,IAAa,EAAb,KAAoC,CAClC,MAAyB,IAAI,IAE7B,SAAS,EAAgC,CACvC,IAAM,EAAM,EAAa,EAAK,KAAK,CACnC,GAAI,KAAK,MAAM,IAAI,EAAI,CACrB,MAAU,MAAM,gCAAgC,IAAM,CAGxD,OADA,KAAK,MAAM,IAAI,EAAK,EAAK,CAClB,KAGT,MAA6B,CAC3B,MAAO,CAAC,GAAG,KAAK,MAAM,QAAQ,CAAC,CAGjC,IAAI,EAAa,EAAkD,CACjE,GAAI,GAAW,KACb,OAAO,KAAK,MAAM,IAAI,EAAa,CAAE,MAAK,UAAS,CAAC,CAAC,CAEvD,IAAIA,EACA,EAAa,KACjB,IAAK,IAAM,KAAQ,KAAK,MAAM,QAAQ,CAChC,EAAK,KAAK,MAAQ,GAClB,EAAK,KAAK,QAAU,IACtB,EAAa,EAAK,KAAK,QACvB,EAAS,GAGb,OAAO,EAGT,cAAc,EAAmD,CAC/D,OAAO,KAAK,MAAM,CAAC,OAAQ,GAAS,EAAK,KAAK,WAAa,EAAS,GAIxE,SAAgB,EAAsB,EAA0B,CAC9D,OAAO,EAAa,EAAK"}
|
|
1
|
+
{"version":3,"file":"spec.js","names":["latest: KnowledgeSpaceSpec | undefined"],"sources":["../../src/knowledge/spec.ts"],"sourcesContent":["import type { OwnerShipMeta } from '../ownership';\nimport type { PolicyRef } from '../policy/spec';\n\nexport type KnowledgeCategory =\n | 'canonical'\n | 'operational'\n | 'external'\n | 'ephemeral';\n\nexport interface KnowledgeSpaceMeta extends OwnerShipMeta {\n /** Stable space identifier (e.g., \"product-canon\", \"support-faq\"). */\n key: string;\n version: number;\n category: KnowledgeCategory;\n displayName: string;\n}\n\nexport interface KnowledgeRetentionPolicy {\n /** TTL in days (null = indefinite). */\n ttlDays?: number | null;\n /** Auto-archive after inactivity. */\n archiveAfterDays?: number;\n}\n\nexport interface KnowledgeAccessPolicy {\n /** Which PolicySpec governs access. */\n policy?: PolicyRef;\n /** Trust level for agent/workflow consumption. */\n trustLevel: 'high' | 'medium' | 'low';\n /** Can this space be mutated by automation? */\n automationWritable: boolean;\n}\n\nexport interface KnowledgeIndexingConfig {\n embeddingModel?: string;\n chunkSize?: number;\n vectorDbIntegration?: string;\n}\n\nexport interface KnowledgeSpaceSpec {\n meta: KnowledgeSpaceMeta;\n /** Retention and cleanup rules. */\n retention: KnowledgeRetentionPolicy;\n /** Access control and trust. */\n access: KnowledgeAccessPolicy;\n /** Optional embedding/indexing config. */\n indexing?: KnowledgeIndexingConfig;\n /** Documentation. */\n description?: string;\n}\n\nconst knowledgeKey = (meta: Pick<KnowledgeSpaceMeta, 'key' | 'version'>) =>\n `${meta.key}.v${meta.version}`;\n\nexport class KnowledgeSpaceRegistry {\n private readonly items = new Map<string, KnowledgeSpaceSpec>();\n\n register(spec: KnowledgeSpaceSpec): this {\n const key = knowledgeKey(spec.meta);\n if (this.items.has(key)) {\n throw new Error(`Duplicate KnowledgeSpaceSpec ${key}`);\n }\n this.items.set(key, spec);\n return this;\n }\n\n list(): KnowledgeSpaceSpec[] {\n return [...this.items.values()];\n }\n\n get(key: string, version?: number): KnowledgeSpaceSpec | undefined {\n if (version != null) {\n return this.items.get(knowledgeKey({ key, version }));\n }\n let latest: KnowledgeSpaceSpec | undefined;\n let maxVersion = -Infinity;\n for (const spec of this.items.values()) {\n if (spec.meta.key !== key) continue;\n if (spec.meta.version > maxVersion) {\n maxVersion = spec.meta.version;\n latest = spec;\n }\n }\n return latest;\n }\n\n getByCategory(category: KnowledgeCategory): KnowledgeSpaceSpec[] {\n return this.list().filter((spec) => spec.meta.category === category);\n }\n}\n\nexport function makeKnowledgeSpaceKey(meta: KnowledgeSpaceMeta) {\n return knowledgeKey(meta);\n}\n\n\n\n\n\n\n"],"mappings":"AAmDA,MAAM,EAAgB,GACpB,GAAG,EAAK,IAAI,IAAI,EAAK,UAEvB,IAAa,EAAb,KAAoC,CAClC,MAAyB,IAAI,IAE7B,SAAS,EAAgC,CACvC,IAAM,EAAM,EAAa,EAAK,KAAK,CACnC,GAAI,KAAK,MAAM,IAAI,EAAI,CACrB,MAAU,MAAM,gCAAgC,IAAM,CAGxD,OADA,KAAK,MAAM,IAAI,EAAK,EAAK,CAClB,KAGT,MAA6B,CAC3B,MAAO,CAAC,GAAG,KAAK,MAAM,QAAQ,CAAC,CAGjC,IAAI,EAAa,EAAkD,CACjE,GAAI,GAAW,KACb,OAAO,KAAK,MAAM,IAAI,EAAa,CAAE,MAAK,UAAS,CAAC,CAAC,CAEvD,IAAIA,EACA,EAAa,KACjB,IAAK,IAAM,KAAQ,KAAK,MAAM,QAAQ,CAChC,EAAK,KAAK,MAAQ,GAClB,EAAK,KAAK,QAAU,IACtB,EAAa,EAAK,KAAK,QACvB,EAAS,GAGb,OAAO,EAGT,cAAc,EAAmD,CAC/D,OAAO,KAAK,MAAM,CAAC,OAAQ,GAAS,EAAK,KAAK,WAAa,EAAS,GAIxE,SAAgB,EAAsB,EAA0B,CAC9D,OAAO,EAAa,EAAK"}
|