@lssm/lib.contracts 0.0.0-canary-20251221165922 → 0.0.0-canary-20251221193616
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 +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +80 -80
- package/dist/data-views/data-views.js +2 -5
- package/dist/features.js +2 -5
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/jsonschema.d.ts +3 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/operations/registry.d.ts +0 -1
- package/dist/operations/registry.js +2 -16
- package/dist/presentations/presentations.d.ts +3 -3
- package/dist/presentations/presentations.js +2 -5
- package/dist/workflow/spec.js +2 -5
- package/dist/workspace-config/contractsrc-schema.d.ts +1 -1
- package/package.json +5 -5
|
@@ -2,47 +2,47 @@ import { AnyOperationSpec, OperationSpec } from "../operations/operation.js";
|
|
|
2
2
|
import "../operations/index.js";
|
|
3
3
|
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
4
4
|
import "../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _lssm_lib_schema89 from "@lssm/lib.schema";
|
|
6
6
|
import { SchemaModel } from "@lssm/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/knowledge/operations.d.ts
|
|
9
9
|
declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
spaceKey: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
spaceVersion: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
label: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
sourceType: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
config: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema89.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
syncSchedule: {
|
|
35
35
|
type: SchemaModel<{
|
|
36
36
|
enabled: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
cron: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
intervalMs: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
}>;
|
|
@@ -50,92 +50,92 @@ declare const CreateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
50
50
|
};
|
|
51
51
|
}>, SchemaModel<{
|
|
52
52
|
id: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
tenantId: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
spaceKey: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
spaceVersion: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
label: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
sourceType: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
syncSchedule: {
|
|
77
77
|
type: SchemaModel<{
|
|
78
78
|
enabled: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
cron: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
};
|
|
86
86
|
intervalMs: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
lastSyncStatus: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
lastSyncAt: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
itemsProcessed: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
};
|
|
105
105
|
createdAt: {
|
|
106
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
109
|
updatedAt: {
|
|
110
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
111
111
|
isOptional: true;
|
|
112
112
|
};
|
|
113
113
|
}>, undefined>;
|
|
114
114
|
declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
115
115
|
sourceId: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
label: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
config: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema89.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
syncSchedule: {
|
|
128
128
|
type: SchemaModel<{
|
|
129
129
|
enabled: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
cron: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
intervalMs: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
139
139
|
isOptional: true;
|
|
140
140
|
};
|
|
141
141
|
}>;
|
|
@@ -143,149 +143,149 @@ declare const UpdateKnowledgeSource: OperationSpec<SchemaModel<{
|
|
|
143
143
|
};
|
|
144
144
|
}>, SchemaModel<{
|
|
145
145
|
id: {
|
|
146
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
147
147
|
isOptional: false;
|
|
148
148
|
};
|
|
149
149
|
tenantId: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
spaceKey: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
spaceVersion: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
label: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
sourceType: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
syncSchedule: {
|
|
170
170
|
type: SchemaModel<{
|
|
171
171
|
enabled: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
cron: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
177
177
|
isOptional: true;
|
|
178
178
|
};
|
|
179
179
|
intervalMs: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
}>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
lastSyncStatus: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
188
188
|
isOptional: true;
|
|
189
189
|
};
|
|
190
190
|
lastSyncAt: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
192
192
|
isOptional: true;
|
|
193
193
|
};
|
|
194
194
|
itemsProcessed: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
createdAt: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
updatedAt: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
}>, undefined>;
|
|
207
207
|
declare const DeleteKnowledgeSource: OperationSpec<SchemaModel<{
|
|
208
208
|
sourceId: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
210
210
|
isOptional: false;
|
|
211
211
|
};
|
|
212
212
|
}>, SchemaModel<{
|
|
213
213
|
success: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
}>, undefined>;
|
|
218
218
|
declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
219
219
|
tenantId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
spaceKey: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
225
225
|
isOptional: true;
|
|
226
226
|
};
|
|
227
227
|
}>, SchemaModel<{
|
|
228
228
|
sources: {
|
|
229
229
|
type: SchemaModel<{
|
|
230
230
|
id: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
tenantId: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
spaceKey: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
};
|
|
242
242
|
spaceVersion: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
244
244
|
isOptional: false;
|
|
245
245
|
};
|
|
246
246
|
label: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
248
248
|
isOptional: false;
|
|
249
249
|
};
|
|
250
250
|
sourceType: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
syncSchedule: {
|
|
255
255
|
type: SchemaModel<{
|
|
256
256
|
enabled: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
cron: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
262
262
|
isOptional: true;
|
|
263
263
|
};
|
|
264
264
|
intervalMs: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
266
266
|
isOptional: true;
|
|
267
267
|
};
|
|
268
268
|
}>;
|
|
269
269
|
isOptional: true;
|
|
270
270
|
};
|
|
271
271
|
lastSyncStatus: {
|
|
272
|
-
type:
|
|
272
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
273
273
|
isOptional: true;
|
|
274
274
|
};
|
|
275
275
|
lastSyncAt: {
|
|
276
|
-
type:
|
|
276
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
277
277
|
isOptional: true;
|
|
278
278
|
};
|
|
279
279
|
itemsProcessed: {
|
|
280
|
-
type:
|
|
280
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
281
281
|
isOptional: true;
|
|
282
282
|
};
|
|
283
283
|
createdAt: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
285
285
|
isOptional: true;
|
|
286
286
|
};
|
|
287
287
|
updatedAt: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema89.FieldType<Date, string>;
|
|
289
289
|
isOptional: true;
|
|
290
290
|
};
|
|
291
291
|
}>;
|
|
@@ -295,20 +295,20 @@ declare const ListKnowledgeSources: OperationSpec<SchemaModel<{
|
|
|
295
295
|
}>, undefined>;
|
|
296
296
|
declare const TriggerKnowledgeSourceSync: OperationSpec<SchemaModel<{
|
|
297
297
|
sourceId: {
|
|
298
|
-
type:
|
|
298
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
299
299
|
isOptional: false;
|
|
300
300
|
};
|
|
301
301
|
}>, SchemaModel<{
|
|
302
302
|
success: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema89.FieldType<boolean, boolean>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
itemsProcessed: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema89.FieldType<number, number>;
|
|
308
308
|
isOptional: true;
|
|
309
309
|
};
|
|
310
310
|
error: {
|
|
311
|
-
type:
|
|
311
|
+
type: _lssm_lib_schema89.FieldType<string, string>;
|
|
312
312
|
isOptional: true;
|
|
313
313
|
};
|
|
314
314
|
}>, undefined>;
|
|
@@ -1,136 +1,136 @@
|
|
|
1
1
|
import { OperationSpec } from "./operations/operation.js";
|
|
2
2
|
import "./index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _lssm_lib_schema61 from "@lssm/lib.schema";
|
|
4
4
|
import { SchemaModel } from "@lssm/lib.schema";
|
|
5
5
|
|
|
6
6
|
//#region src/onboarding-base.d.ts
|
|
7
7
|
/** Save/update onboarding draft (auto-save during flow) */
|
|
8
8
|
declare const SaveOnboardingDraftInput: SchemaModel<{
|
|
9
9
|
data: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
14
|
declare const SaveOnboardingDraftOutput: SchemaModel<{
|
|
15
15
|
id: {
|
|
16
|
-
type:
|
|
16
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
17
17
|
isOptional: false;
|
|
18
18
|
};
|
|
19
19
|
organizationId: {
|
|
20
|
-
type:
|
|
20
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
21
21
|
isOptional: false;
|
|
22
22
|
};
|
|
23
23
|
}>;
|
|
24
24
|
declare const SaveOnboardingDraftBaseSpec: OperationSpec<SchemaModel<{
|
|
25
25
|
data: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
}>, SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
organizationId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>, undefined>;
|
|
39
39
|
/** Get current onboarding draft (on mount/restore) */
|
|
40
40
|
declare const GetOnboardingDraftOutput: SchemaModel<{
|
|
41
41
|
id: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
43
43
|
isOptional: true;
|
|
44
44
|
};
|
|
45
45
|
organizationId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
47
47
|
isOptional: true;
|
|
48
48
|
};
|
|
49
49
|
data: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
51
51
|
isOptional: true;
|
|
52
52
|
};
|
|
53
53
|
createdAt: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema61.FieldType<Date, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
updatedAt: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema61.FieldType<Date, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
|
62
|
-
declare const GetOnboardingDraftBaseSpec: OperationSpec<
|
|
62
|
+
declare const GetOnboardingDraftBaseSpec: OperationSpec<_lssm_lib_schema61.AnySchemaModel, SchemaModel<{
|
|
63
63
|
id: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
organizationId: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
69
69
|
isOptional: true;
|
|
70
70
|
};
|
|
71
71
|
data: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
73
73
|
isOptional: true;
|
|
74
74
|
};
|
|
75
75
|
createdAt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema61.FieldType<Date, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
updatedAt: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema61.FieldType<Date, string>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
}>, undefined>;
|
|
84
84
|
/** Delete onboarding draft (cleanup after completion or cancel) */
|
|
85
85
|
declare const DeleteOnboardingDraftOutput: SchemaModel<{
|
|
86
86
|
ok: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema61.FieldType<boolean, boolean>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
|
-
declare const DeleteOnboardingDraftBaseSpec: OperationSpec<
|
|
91
|
+
declare const DeleteOnboardingDraftBaseSpec: OperationSpec<_lssm_lib_schema61.AnySchemaModel, SchemaModel<{
|
|
92
92
|
ok: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema61.FieldType<boolean, boolean>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
}>, undefined>;
|
|
97
97
|
/** Complete onboarding (final submit, creates entities) */
|
|
98
98
|
declare const CompleteOnboardingBaseInput: SchemaModel<{
|
|
99
99
|
data: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
104
104
|
declare const CompleteOnboardingBaseOutput: SchemaModel<{
|
|
105
105
|
success: {
|
|
106
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema61.FieldType<boolean, boolean>;
|
|
107
107
|
isOptional: false;
|
|
108
108
|
};
|
|
109
109
|
userId: {
|
|
110
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
111
111
|
isOptional: true;
|
|
112
112
|
};
|
|
113
113
|
organizationId: {
|
|
114
|
-
type:
|
|
114
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
115
115
|
isOptional: true;
|
|
116
116
|
};
|
|
117
117
|
}>;
|
|
118
118
|
declare const CompleteOnboardingBaseSpec: OperationSpec<SchemaModel<{
|
|
119
119
|
data: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema61.FieldType<unknown, unknown>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
}>, SchemaModel<{
|
|
124
124
|
success: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema61.FieldType<boolean, boolean>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
userId: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
organizationId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema61.FieldType<string, string>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
}>, undefined>;
|
|
@@ -6,7 +6,6 @@ import { HandlerForOperationSpec } from "../install.js";
|
|
|
6
6
|
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/operations/registry.d.ts
|
|
9
|
-
|
|
10
9
|
type OperationKey = `${string}.v${number}`;
|
|
11
10
|
declare function opKey(name: string, version: number): OperationKey;
|
|
12
11
|
type AnyOperationHandler = (args: unknown, ctx: HandlerCtx) => Promise<unknown>;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { __toCommonJS } from "../_virtual/rolldown_runtime.js";
|
|
2
1
|
import { eventKey } from "../events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { GroupingStrategies, filterBy, getUniqueOwners, getUniqueTags, groupBy, init_registry_utils } from "../registry-utils.js";
|
|
4
3
|
import { isEmitDeclRef } from "./operation.js";
|
|
5
4
|
|
|
6
5
|
//#region src/operations/registry.ts
|
|
7
|
-
|
|
8
|
-
* OperationSpecRegistry:
|
|
9
|
-
* - Registers ContractSpecs (unique by name+version)
|
|
10
|
-
* - Binds runtime handlers to specs
|
|
11
|
-
* - Provides lookup, iteration, and a safe execute() with validation/policy/enforcement
|
|
12
|
-
*
|
|
13
|
-
* Includes a minimal OpRegistry shim for backward-compat (deprecated).
|
|
14
|
-
*/
|
|
6
|
+
init_registry_utils();
|
|
15
7
|
function opKey(name, version) {
|
|
16
8
|
return `${name}.v${version}`;
|
|
17
9
|
}
|
|
@@ -98,7 +90,6 @@ var OperationSpecRegistry = class {
|
|
|
98
90
|
* Filter specs by criteria.
|
|
99
91
|
*/
|
|
100
92
|
filter(criteria) {
|
|
101
|
-
const { filterBy } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
102
93
|
return filterBy(this.listSpecs(), criteria);
|
|
103
94
|
}
|
|
104
95
|
/**
|
|
@@ -117,35 +108,30 @@ var OperationSpecRegistry = class {
|
|
|
117
108
|
* Group specs by key function.
|
|
118
109
|
*/
|
|
119
110
|
groupBy(keyFn) {
|
|
120
|
-
const { groupBy } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
121
111
|
return groupBy(this.listSpecs(), keyFn);
|
|
122
112
|
}
|
|
123
113
|
/**
|
|
124
114
|
* Group by domain (first segment of name).
|
|
125
115
|
*/
|
|
126
116
|
groupByDomain() {
|
|
127
|
-
const { GroupingStrategies } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
128
117
|
return this.groupBy(GroupingStrategies.byDomain);
|
|
129
118
|
}
|
|
130
119
|
/**
|
|
131
120
|
* Group by tag.
|
|
132
121
|
*/
|
|
133
122
|
groupByTag() {
|
|
134
|
-
const { GroupingStrategies } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
135
123
|
return this.groupBy(GroupingStrategies.byTag);
|
|
136
124
|
}
|
|
137
125
|
/**
|
|
138
126
|
* Get unique tags from all specs.
|
|
139
127
|
*/
|
|
140
128
|
getUniqueTags() {
|
|
141
|
-
const { getUniqueTags } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
142
129
|
return getUniqueTags(this.listSpecs());
|
|
143
130
|
}
|
|
144
131
|
/**
|
|
145
132
|
* Get unique owners from all specs.
|
|
146
133
|
*/
|
|
147
134
|
getUniqueOwners() {
|
|
148
|
-
const { getUniqueOwners } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
149
135
|
return getUniqueOwners(this.listSpecs());
|
|
150
136
|
}
|
|
151
137
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stability } from "../ownership.js";
|
|
2
2
|
import { GroupKeyFn, RegistryFilter } from "../registry-utils.js";
|
|
3
3
|
import z from "zod";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _lssm_lib_schema154 from "@lssm/lib.schema";
|
|
5
5
|
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
6
6
|
|
|
7
7
|
//#region src/presentations/presentations.d.ts
|
|
@@ -73,7 +73,7 @@ declare class PresentationRegistry {
|
|
|
73
73
|
declare function jsonSchemaForPresentation(p: PresentationSpec): {
|
|
74
74
|
framework: "react";
|
|
75
75
|
componentKey: string;
|
|
76
|
-
props: z.core.ZodStandardJSONSchemaPayload<
|
|
76
|
+
props: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema154.TopLevelZodFromModel<_lssm_lib_schema154.SchemaModelFieldsAnyConfig<_lssm_lib_schema154.AnyFieldType | _lssm_lib_schema154.AnyEnumType | AnySchemaModel>>>;
|
|
77
77
|
meta: {
|
|
78
78
|
readonly name: string;
|
|
79
79
|
readonly version: number;
|
|
@@ -95,7 +95,7 @@ declare function jsonSchemaForPresentation(p: PresentationSpec): {
|
|
|
95
95
|
kind: PresentationKind;
|
|
96
96
|
} | {
|
|
97
97
|
mimeType: string;
|
|
98
|
-
model: z.core.ZodStandardJSONSchemaPayload<
|
|
98
|
+
model: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema154.TopLevelZodFromModel<_lssm_lib_schema154.SchemaModelFieldsAnyConfig<_lssm_lib_schema154.AnyFieldType | _lssm_lib_schema154.AnyEnumType | AnySchemaModel>>>;
|
|
99
99
|
meta: {
|
|
100
100
|
readonly name: string;
|
|
101
101
|
readonly version: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { init_registry_utils, registry_utils_exports } from "../registry-utils.js";
|
|
1
|
+
import { filterBy, getUniqueTags, groupBy, init_registry_utils } from "../registry-utils.js";
|
|
3
2
|
import z from "zod";
|
|
4
3
|
|
|
5
4
|
//#region src/presentations/presentations.ts
|
|
5
|
+
init_registry_utils();
|
|
6
6
|
function keyOf(p) {
|
|
7
7
|
return `${p.meta.name}.v${p.meta.version}`;
|
|
8
8
|
}
|
|
@@ -36,7 +36,6 @@ var PresentationRegistry = class {
|
|
|
36
36
|
}
|
|
37
37
|
/** Filter presentations by criteria. */
|
|
38
38
|
filter(criteria) {
|
|
39
|
-
const { filterBy } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
40
39
|
return filterBy(this.list(), criteria);
|
|
41
40
|
}
|
|
42
41
|
/** List presentations with specific tag. */
|
|
@@ -49,12 +48,10 @@ var PresentationRegistry = class {
|
|
|
49
48
|
}
|
|
50
49
|
/** Group presentations by key function. */
|
|
51
50
|
groupBy(keyFn) {
|
|
52
|
-
const { groupBy } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
53
51
|
return groupBy(this.list(), keyFn);
|
|
54
52
|
}
|
|
55
53
|
/** Get unique tags from all presentations. */
|
|
56
54
|
getUniqueTags() {
|
|
57
|
-
const { getUniqueTags } = (init_registry_utils(), __toCommonJS(registry_utils_exports));
|
|
58
55
|
return getUniqueTags(this.list());
|
|
59
56
|
}
|
|
60
57
|
};
|