@lssm/lib.contracts 0.0.0-canary-20251221132705 → 0.0.0-canary-20251221144710
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 +56 -55
- package/dist/app-config/contracts.js +5 -4
- package/dist/app-config/docs/app-config.docblock.js +0 -1
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +83 -82
- package/dist/app-config/lifecycle-contracts.js +2 -1
- package/dist/app-config/runtime.d.ts +4 -2
- package/dist/app-config/spec.d.ts +2 -1
- package/dist/app-config/validation.d.ts +4 -2
- package/dist/{capabilities.d.ts → capabilities/capabilities.d.ts} +3 -3
- package/dist/{capabilities.js → capabilities/capabilities.js} +1 -1
- package/dist/capabilities/docs/capabilities.docblock.js +0 -1
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +4 -0
- package/dist/capabilities/openbanking.d.ts +2 -1
- package/dist/client/react/feature-render.d.ts +3 -1
- package/dist/client/react/feature-render.js +2 -1
- package/dist/client/react/form-render.d.ts +1 -1
- package/dist/client/react/form-render.js +1 -1
- package/dist/{data-views.d.ts → data-views/data-views.d.ts} +5 -5
- package/dist/{data-views.js → data-views/data-views.js} +3 -3
- package/dist/data-views/docs/data-views.docblock.js +0 -1
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +5 -0
- package/dist/data-views/query-generator.d.ts +2 -1
- package/dist/data-views/runtime.d.ts +2 -1
- package/dist/docs/presentations.d.ts +3 -2
- package/dist/docs/registry.d.ts +3 -2
- package/dist/docs/tech/llm/llm-integration.docblock.js +2 -2
- package/dist/experiments/docs/experiments.docblock.js +0 -1
- package/dist/experiments/spec-resolver.d.ts +2 -1
- package/dist/features.d.ts +8 -5
- package/dist/forms/docs/forms.docblock.js +0 -1
- package/dist/{forms.d.ts → forms/forms.d.ts} +3 -3
- package/dist/{forms.js → forms/forms.js} +3 -3
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +3 -0
- package/dist/index.d.ts +19 -12
- package/dist/index.js +20 -15
- package/dist/install.d.ts +3 -2
- package/dist/install.js +1 -1
- package/dist/integrations/docs/integrations.docblock.js +0 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +69 -68
- package/dist/integrations/openbanking/contracts/accounts.js +2 -1
- package/dist/integrations/openbanking/contracts/balances.d.ts +37 -36
- package/dist/integrations/openbanking/contracts/balances.js +2 -1
- package/dist/integrations/openbanking/contracts/index.d.ts +1 -1
- package/dist/integrations/openbanking/contracts/transactions.d.ts +51 -50
- package/dist/integrations/openbanking/contracts/transactions.js +2 -1
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +437 -0
- package/dist/integrations/{contracts.js → operations.js} +3 -2
- package/dist/integrations/spec.d.ts +2 -1
- package/dist/jsonschema.d.ts +5 -4
- package/dist/knowledge/docs/knowledge.docblock.js +0 -1
- package/dist/knowledge/{contracts.d.ts → operations.d.ts} +70 -69
- package/dist/knowledge/{contracts.js → operations.js} +3 -2
- package/dist/llm/exporters.d.ts +10 -8
- package/dist/llm/exporters.js +11 -10
- package/dist/llm/index.d.ts +2 -2
- package/dist/llm/index.js +2 -2
- package/dist/llm/prompts.d.ts +2 -1
- package/dist/llm/prompts.js +8 -8
- package/dist/llm/types.d.ts +3 -2
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.js +6 -5
- package/dist/onboarding-base.d.ts +31 -30
- package/dist/onboarding-base.js +2 -1
- package/dist/openapi.d.ts +1 -1
- package/dist/operations/index.d.ts +3 -0
- package/dist/operations/index.js +4 -0
- package/dist/{operation.d.ts → operations/operation.d.ts} +7 -7
- package/dist/{operation.js → operations/operation.js} +1 -1
- package/dist/{registry.d.ts → operations/registry.d.ts} +6 -7
- package/dist/{registry.js → operations/registry.js} +5 -6
- package/dist/policy/docs/policy.docblock.js +0 -1
- package/dist/presentations/docs/presentations-conventions.docblock.js +0 -1
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +4 -0
- package/dist/{presentations.d.ts → presentations/presentations.d.ts} +6 -6
- package/dist/{presentations.js → presentations/presentations.js} +3 -3
- package/dist/presentations/presentations.v2.d.ts +54 -0
- package/dist/presentations/presentations.v2.js +0 -0
- package/dist/{presentations.v2.d.ts → presentations/transform-engine.d.ts} +3 -51
- package/dist/{presentations.v2.js → presentations/transform-engine.js} +2 -2
- package/dist/regenerator/docs/regenerator.docblock.js +0 -1
- package/dist/{contracts-adapter-hydration.d.ts → server/contracts-adapter-hydration.d.ts} +2 -2
- package/dist/{contracts-adapter-hydration.js → server/contracts-adapter-hydration.js} +1 -1
- package/dist/{contracts-adapter-input.d.ts → server/contracts-adapter-input.d.ts} +2 -3
- package/dist/{contracts-adapter-input.js → server/contracts-adapter-input.js} +2 -2
- package/dist/server/graphql-pothos.d.ts +1 -1
- package/dist/server/graphql-pothos.js +2 -2
- package/dist/server/mcp/createMcpServer.d.ts +1 -1
- package/dist/server/mcp/mcpTypes.d.ts +3 -2
- package/dist/server/mcp/registerPresentations.js +3 -2
- package/dist/server/mcp/registerTools.d.ts +1 -1
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-express.d.ts +1 -1
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-next-app.d.ts +1 -1
- package/dist/server/rest-next-mcp.d.ts +1 -1
- package/dist/server/rest-next-pages.d.ts +1 -1
- package/dist/telemetry/docs/telemetry.docblock.js +0 -1
- package/dist/tests/runner.d.ts +1 -1
- package/dist/workflow/spec.d.ts +2 -1
- package/dist/workflow/validation.d.ts +2 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +1 -1
- package/package.json +22 -17
- package/dist/integrations/contracts.d.ts +0 -436
- package/dist/openbanking/docs/openbanking.docblock.d.ts +0 -6
- package/dist/openbanking/docs/openbanking.docblock.js +0 -22
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { AnyOperationSpec, OperationSpec } from "../operations/operation.js";
|
|
2
|
+
import "../operations/index.js";
|
|
3
|
+
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
4
|
+
import "../index.js";
|
|
5
|
+
import * as _lssm_lib_schema316 from "@lssm/lib.schema";
|
|
6
|
+
import { SchemaModel } from "@lssm/lib.schema";
|
|
7
|
+
|
|
8
|
+
//#region src/integrations/operations.d.ts
|
|
9
|
+
declare const CreateIntegrationConnection: OperationSpec<SchemaModel<{
|
|
10
|
+
tenantId: {
|
|
11
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
integrationKey: {
|
|
15
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
integrationVersion: {
|
|
19
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
ownershipMode: {
|
|
27
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
externalAccountId: {
|
|
31
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
32
|
+
isOptional: true;
|
|
33
|
+
};
|
|
34
|
+
secretProvider: {
|
|
35
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
secretRef: {
|
|
39
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
environment: {
|
|
43
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
44
|
+
isOptional: true;
|
|
45
|
+
};
|
|
46
|
+
config: {
|
|
47
|
+
type: _lssm_lib_schema316.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
}>, SchemaModel<{
|
|
51
|
+
id: {
|
|
52
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
53
|
+
isOptional: false;
|
|
54
|
+
};
|
|
55
|
+
tenantId: {
|
|
56
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
57
|
+
isOptional: false;
|
|
58
|
+
};
|
|
59
|
+
integrationKey: {
|
|
60
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
61
|
+
isOptional: false;
|
|
62
|
+
};
|
|
63
|
+
integrationVersion: {
|
|
64
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
65
|
+
isOptional: false;
|
|
66
|
+
};
|
|
67
|
+
label: {
|
|
68
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
70
|
+
};
|
|
71
|
+
ownershipMode: {
|
|
72
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
externalAccountId: {
|
|
76
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
77
|
+
isOptional: true;
|
|
78
|
+
};
|
|
79
|
+
secretProvider: {
|
|
80
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
secretRef: {
|
|
84
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
85
|
+
isOptional: false;
|
|
86
|
+
};
|
|
87
|
+
status: {
|
|
88
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
environment: {
|
|
92
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
93
|
+
isOptional: true;
|
|
94
|
+
};
|
|
95
|
+
healthStatus: {
|
|
96
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
97
|
+
isOptional: true;
|
|
98
|
+
};
|
|
99
|
+
healthCheckedAt: {
|
|
100
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
101
|
+
isOptional: true;
|
|
102
|
+
};
|
|
103
|
+
healthLatencyMs: {
|
|
104
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
105
|
+
isOptional: true;
|
|
106
|
+
};
|
|
107
|
+
healthErrorCode: {
|
|
108
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
109
|
+
isOptional: true;
|
|
110
|
+
};
|
|
111
|
+
healthErrorMessage: {
|
|
112
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
113
|
+
isOptional: true;
|
|
114
|
+
};
|
|
115
|
+
usageRequestCount: {
|
|
116
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
117
|
+
isOptional: true;
|
|
118
|
+
};
|
|
119
|
+
usageSuccessCount: {
|
|
120
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
121
|
+
isOptional: true;
|
|
122
|
+
};
|
|
123
|
+
usageErrorCount: {
|
|
124
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
125
|
+
isOptional: true;
|
|
126
|
+
};
|
|
127
|
+
usageLastUsedAt: {
|
|
128
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
usageLastErrorAt: {
|
|
132
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
usageLastErrorCode: {
|
|
136
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
};
|
|
139
|
+
createdAt: {
|
|
140
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
141
|
+
isOptional: true;
|
|
142
|
+
};
|
|
143
|
+
updatedAt: {
|
|
144
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
145
|
+
isOptional: true;
|
|
146
|
+
};
|
|
147
|
+
}>, undefined>;
|
|
148
|
+
declare const UpdateIntegrationConnection: OperationSpec<SchemaModel<{
|
|
149
|
+
connectionId: {
|
|
150
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
151
|
+
isOptional: false;
|
|
152
|
+
};
|
|
153
|
+
label: {
|
|
154
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
155
|
+
isOptional: true;
|
|
156
|
+
};
|
|
157
|
+
status: {
|
|
158
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
159
|
+
isOptional: true;
|
|
160
|
+
};
|
|
161
|
+
ownershipMode: {
|
|
162
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
163
|
+
isOptional: true;
|
|
164
|
+
};
|
|
165
|
+
externalAccountId: {
|
|
166
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
167
|
+
isOptional: true;
|
|
168
|
+
};
|
|
169
|
+
secretProvider: {
|
|
170
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
171
|
+
isOptional: true;
|
|
172
|
+
};
|
|
173
|
+
secretRef: {
|
|
174
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
175
|
+
isOptional: true;
|
|
176
|
+
};
|
|
177
|
+
config: {
|
|
178
|
+
type: _lssm_lib_schema316.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
179
|
+
isOptional: true;
|
|
180
|
+
};
|
|
181
|
+
}>, SchemaModel<{
|
|
182
|
+
id: {
|
|
183
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
184
|
+
isOptional: false;
|
|
185
|
+
};
|
|
186
|
+
tenantId: {
|
|
187
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
};
|
|
190
|
+
integrationKey: {
|
|
191
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
integrationVersion: {
|
|
195
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
196
|
+
isOptional: false;
|
|
197
|
+
};
|
|
198
|
+
label: {
|
|
199
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
200
|
+
isOptional: false;
|
|
201
|
+
};
|
|
202
|
+
ownershipMode: {
|
|
203
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
204
|
+
isOptional: false;
|
|
205
|
+
};
|
|
206
|
+
externalAccountId: {
|
|
207
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
208
|
+
isOptional: true;
|
|
209
|
+
};
|
|
210
|
+
secretProvider: {
|
|
211
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
212
|
+
isOptional: false;
|
|
213
|
+
};
|
|
214
|
+
secretRef: {
|
|
215
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
216
|
+
isOptional: false;
|
|
217
|
+
};
|
|
218
|
+
status: {
|
|
219
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
220
|
+
isOptional: false;
|
|
221
|
+
};
|
|
222
|
+
environment: {
|
|
223
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
224
|
+
isOptional: true;
|
|
225
|
+
};
|
|
226
|
+
healthStatus: {
|
|
227
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
228
|
+
isOptional: true;
|
|
229
|
+
};
|
|
230
|
+
healthCheckedAt: {
|
|
231
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
232
|
+
isOptional: true;
|
|
233
|
+
};
|
|
234
|
+
healthLatencyMs: {
|
|
235
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
236
|
+
isOptional: true;
|
|
237
|
+
};
|
|
238
|
+
healthErrorCode: {
|
|
239
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
240
|
+
isOptional: true;
|
|
241
|
+
};
|
|
242
|
+
healthErrorMessage: {
|
|
243
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
244
|
+
isOptional: true;
|
|
245
|
+
};
|
|
246
|
+
usageRequestCount: {
|
|
247
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
248
|
+
isOptional: true;
|
|
249
|
+
};
|
|
250
|
+
usageSuccessCount: {
|
|
251
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
252
|
+
isOptional: true;
|
|
253
|
+
};
|
|
254
|
+
usageErrorCount: {
|
|
255
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
256
|
+
isOptional: true;
|
|
257
|
+
};
|
|
258
|
+
usageLastUsedAt: {
|
|
259
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
260
|
+
isOptional: true;
|
|
261
|
+
};
|
|
262
|
+
usageLastErrorAt: {
|
|
263
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
264
|
+
isOptional: true;
|
|
265
|
+
};
|
|
266
|
+
usageLastErrorCode: {
|
|
267
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
268
|
+
isOptional: true;
|
|
269
|
+
};
|
|
270
|
+
createdAt: {
|
|
271
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
272
|
+
isOptional: true;
|
|
273
|
+
};
|
|
274
|
+
updatedAt: {
|
|
275
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
276
|
+
isOptional: true;
|
|
277
|
+
};
|
|
278
|
+
}>, undefined>;
|
|
279
|
+
declare const DeleteIntegrationConnection: OperationSpec<SchemaModel<{
|
|
280
|
+
connectionId: {
|
|
281
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
282
|
+
isOptional: false;
|
|
283
|
+
};
|
|
284
|
+
}>, SchemaModel<{
|
|
285
|
+
success: {
|
|
286
|
+
type: _lssm_lib_schema316.FieldType<boolean, boolean>;
|
|
287
|
+
isOptional: false;
|
|
288
|
+
};
|
|
289
|
+
}>, undefined>;
|
|
290
|
+
declare const ListIntegrationConnections: OperationSpec<SchemaModel<{
|
|
291
|
+
tenantId: {
|
|
292
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
293
|
+
isOptional: false;
|
|
294
|
+
};
|
|
295
|
+
category: {
|
|
296
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
297
|
+
isOptional: true;
|
|
298
|
+
};
|
|
299
|
+
status: {
|
|
300
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
301
|
+
isOptional: true;
|
|
302
|
+
};
|
|
303
|
+
}>, SchemaModel<{
|
|
304
|
+
connections: {
|
|
305
|
+
type: SchemaModel<{
|
|
306
|
+
id: {
|
|
307
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
308
|
+
isOptional: false;
|
|
309
|
+
};
|
|
310
|
+
tenantId: {
|
|
311
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
312
|
+
isOptional: false;
|
|
313
|
+
};
|
|
314
|
+
integrationKey: {
|
|
315
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
316
|
+
isOptional: false;
|
|
317
|
+
};
|
|
318
|
+
integrationVersion: {
|
|
319
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
320
|
+
isOptional: false;
|
|
321
|
+
};
|
|
322
|
+
label: {
|
|
323
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
324
|
+
isOptional: false;
|
|
325
|
+
};
|
|
326
|
+
ownershipMode: {
|
|
327
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
328
|
+
isOptional: false;
|
|
329
|
+
};
|
|
330
|
+
externalAccountId: {
|
|
331
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
332
|
+
isOptional: true;
|
|
333
|
+
};
|
|
334
|
+
secretProvider: {
|
|
335
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
336
|
+
isOptional: false;
|
|
337
|
+
};
|
|
338
|
+
secretRef: {
|
|
339
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
340
|
+
isOptional: false;
|
|
341
|
+
};
|
|
342
|
+
status: {
|
|
343
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
344
|
+
isOptional: false;
|
|
345
|
+
};
|
|
346
|
+
environment: {
|
|
347
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
348
|
+
isOptional: true;
|
|
349
|
+
};
|
|
350
|
+
healthStatus: {
|
|
351
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
352
|
+
isOptional: true;
|
|
353
|
+
};
|
|
354
|
+
healthCheckedAt: {
|
|
355
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
356
|
+
isOptional: true;
|
|
357
|
+
};
|
|
358
|
+
healthLatencyMs: {
|
|
359
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
360
|
+
isOptional: true;
|
|
361
|
+
};
|
|
362
|
+
healthErrorCode: {
|
|
363
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
364
|
+
isOptional: true;
|
|
365
|
+
};
|
|
366
|
+
healthErrorMessage: {
|
|
367
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
368
|
+
isOptional: true;
|
|
369
|
+
};
|
|
370
|
+
usageRequestCount: {
|
|
371
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
372
|
+
isOptional: true;
|
|
373
|
+
};
|
|
374
|
+
usageSuccessCount: {
|
|
375
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
376
|
+
isOptional: true;
|
|
377
|
+
};
|
|
378
|
+
usageErrorCount: {
|
|
379
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
380
|
+
isOptional: true;
|
|
381
|
+
};
|
|
382
|
+
usageLastUsedAt: {
|
|
383
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
384
|
+
isOptional: true;
|
|
385
|
+
};
|
|
386
|
+
usageLastErrorAt: {
|
|
387
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
388
|
+
isOptional: true;
|
|
389
|
+
};
|
|
390
|
+
usageLastErrorCode: {
|
|
391
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
392
|
+
isOptional: true;
|
|
393
|
+
};
|
|
394
|
+
createdAt: {
|
|
395
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
396
|
+
isOptional: true;
|
|
397
|
+
};
|
|
398
|
+
updatedAt: {
|
|
399
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
400
|
+
isOptional: true;
|
|
401
|
+
};
|
|
402
|
+
}>;
|
|
403
|
+
isOptional: false;
|
|
404
|
+
isArray: true;
|
|
405
|
+
};
|
|
406
|
+
}>, undefined>;
|
|
407
|
+
declare const TestIntegrationConnection: OperationSpec<SchemaModel<{
|
|
408
|
+
connectionId: {
|
|
409
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
410
|
+
isOptional: false;
|
|
411
|
+
};
|
|
412
|
+
}>, SchemaModel<{
|
|
413
|
+
success: {
|
|
414
|
+
type: _lssm_lib_schema316.FieldType<boolean, boolean>;
|
|
415
|
+
isOptional: false;
|
|
416
|
+
};
|
|
417
|
+
status: {
|
|
418
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
419
|
+
isOptional: true;
|
|
420
|
+
};
|
|
421
|
+
latencyMs: {
|
|
422
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
423
|
+
isOptional: true;
|
|
424
|
+
};
|
|
425
|
+
error: {
|
|
426
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
427
|
+
isOptional: true;
|
|
428
|
+
};
|
|
429
|
+
errorCode: {
|
|
430
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
431
|
+
isOptional: true;
|
|
432
|
+
};
|
|
433
|
+
}>, undefined>;
|
|
434
|
+
declare const integrationContracts: Record<string, AnyOperationSpec>;
|
|
435
|
+
declare function registerIntegrationContracts(registry: OperationSpecRegistry): OperationSpecRegistry;
|
|
436
|
+
//#endregion
|
|
437
|
+
export { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { E5, x8 } from "../schema/dist/index.js";
|
|
2
|
-
import { defineCommand, defineQuery } from "../operation.js";
|
|
2
|
+
import { defineCommand, defineQuery } from "../operations/operation.js";
|
|
3
|
+
import "../operations/index.js";
|
|
3
4
|
|
|
4
|
-
//#region src/integrations/
|
|
5
|
+
//#region src/integrations/operations.ts
|
|
5
6
|
const IntegrationConnectionRecord = new x8({
|
|
6
7
|
name: "IntegrationConnectionRecord",
|
|
7
8
|
fields: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OwnerShipMeta } from "../ownership.js";
|
|
2
|
-
import { CapabilityRef, CapabilityRequirement } from "../capabilities.js";
|
|
2
|
+
import { CapabilityRef, CapabilityRequirement } from "../capabilities/capabilities.js";
|
|
3
|
+
import "../capabilities/index.js";
|
|
3
4
|
|
|
4
5
|
//#region src/integrations/spec.d.ts
|
|
5
6
|
type IntegrationCategory = 'payments' | 'email' | 'calendar' | 'sms' | 'ai-llm' | 'ai-voice' | 'speech-to-text' | 'vector-db' | 'storage' | 'accounting' | 'crm' | 'helpdesk' | 'open-banking' | 'custom';
|
package/dist/jsonschema.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Stability, Tag } from "./ownership.js";
|
|
2
|
-
import { OpKind, OperationSpec } from "./operation.js";
|
|
2
|
+
import { OpKind, OperationSpec } from "./operations/operation.js";
|
|
3
|
+
import "./operations/index.js";
|
|
3
4
|
import z from "zod";
|
|
4
|
-
import * as
|
|
5
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
5
6
|
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
6
7
|
|
|
7
8
|
//#region src/jsonschema.d.ts
|
|
8
9
|
declare function jsonSchemaForSpec(spec: OperationSpec<AnySchemaModel, AnySchemaModel>): {
|
|
9
|
-
input: z.core.ZodStandardJSONSchemaPayload<
|
|
10
|
-
output: z.core.ZodStandardJSONSchemaPayload<
|
|
10
|
+
input: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema0.TopLevelZodFromModel<_lssm_lib_schema0.SchemaModelFieldsAnyConfig<AnySchemaModel | _lssm_lib_schema0.AnyFieldType | _lssm_lib_schema0.AnyEnumType>>> | null;
|
|
11
|
+
output: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema0.TopLevelZodFromModel<_lssm_lib_schema0.SchemaModelFieldsAnyConfig<AnySchemaModel | _lssm_lib_schema0.AnyFieldType | _lssm_lib_schema0.AnyEnumType>>> | null;
|
|
11
12
|
meta: {
|
|
12
13
|
name: string;
|
|
13
14
|
version: number;
|