@lssm/lib.contracts 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821
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/LICENSE +21 -0
- package/dist/app-config/contracts.d.ts +50 -50
- package/dist/app-config/contracts.js +54 -56
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/events.js +31 -33
- package/dist/app-config/lifecycle-contracts.d.ts +80 -80
- package/dist/app-config/lifecycle-contracts.js +66 -68
- package/dist/client/react/form-render.d.ts +6 -6
- package/dist/client/react/form-render.js +15 -15
- package/dist/contracts-adapter-hydration.js +2 -2
- package/dist/data-views/query-generator.d.ts +2 -2
- package/dist/data-views/query-generator.js +1 -1
- package/dist/data-views/runtime.d.ts +2 -2
- package/dist/data-views/runtime.js +2 -2
- package/dist/docs/index.js +0 -6
- package/dist/docs/meta.docs.js +3 -0
- package/dist/docs/tech-contracts.docs.js +3 -0
- package/dist/forms.d.ts +4 -4
- package/dist/forms.js +3 -2
- package/dist/index.js +2 -3
- package/dist/integrations/contracts.d.ts +105 -104
- package/dist/integrations/contracts.js +63 -65
- package/dist/integrations/openbanking/contracts/accounts.d.ts +69 -68
- package/dist/integrations/openbanking/contracts/accounts.js +29 -31
- package/dist/integrations/openbanking/contracts/balances.d.ts +37 -36
- package/dist/integrations/openbanking/contracts/balances.js +16 -18
- package/dist/integrations/openbanking/contracts/transactions.d.ts +51 -50
- package/dist/integrations/openbanking/contracts/transactions.js +30 -32
- package/dist/integrations/openbanking/guards.js +1 -0
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/openbanking/models.js +58 -60
- package/dist/integrations/providers/impls/gmail-inbound.js +1 -1
- package/dist/integrations/providers/impls/gmail-outbound.js +4 -4
- package/dist/integrations/providers/impls/mistral-llm.d.ts +1 -1
- package/dist/integrations/providers/impls/mistral-llm.js +1 -1
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +1 -1
- package/dist/integrations/providers/impls/provider-factory.js +4 -1
- package/dist/integrations/providers/impls/qdrant-vector.js +2 -2
- package/dist/integrations/runtime.d.ts +1 -1
- package/dist/integrations/runtime.js +1 -1
- package/dist/integrations/secrets/manager.js +1 -1
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +1 -1
- package/dist/jsonschema.d.ts +3 -3
- package/dist/knowledge/contracts.d.ts +69 -68
- package/dist/knowledge/contracts.js +42 -44
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +1 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/onboarding-base.js +20 -22
- package/dist/ownership.d.ts +4 -6
- package/dist/ownership.js +4 -5
- package/dist/presentations.d.ts +3 -3
- package/dist/presentations.v2.js +5 -2
- package/dist/promptRegistry.d.ts +2 -2
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +1 -0
- package/dist/resources.js +4 -1
- package/dist/schema/dist/index.js +4683 -6
- package/dist/schema-to-markdown.d.ts +1 -1
- package/dist/schema-to-markdown.js +1 -1
- package/dist/server/graphql-pothos.js +0 -1
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-express.js +0 -3
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-generic.js +0 -1
- package/dist/server/rest-next-mcp.js +1 -1
- package/dist/server/rest-next-pages.js +0 -3
- package/dist/workflow/adapters/db-adapter.d.ts +19 -7
- package/dist/workflow/adapters/db-adapter.js +3 -3
- package/dist/workflow/expression.js +3 -2
- package/dist/workflow/validation.js +1 -0
- package/package.json +19 -18
- package/dist/docs/PUBLISHING.docblock.d.ts +0 -6
- package/dist/docs/PUBLISHING.docblock.js +0 -17
- package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts +0 -6
- package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -17
- package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts +0 -6
- package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -17
- package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts +0 -6
- package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -17
- package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts +0 -6
- package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -17
- package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts +0 -6
- package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -17
- package/dist/schema/dist/EnumType.js +0 -2
- package/dist/schema/dist/FieldType.js +0 -49
- package/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/schema/dist/entity/index.js +0 -2
- package/dist/schema/dist/entity/types.js +0 -1
|
@@ -1,226 +1,226 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/integrations/openbanking/models.d.ts
|
|
5
5
|
declare const BankAccountRecord: SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
userId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
connectionId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
externalId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
institutionId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
institutionName: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
institutionLogoUrl: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
iban: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
42
|
bic: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
accountType: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
currency: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
displayName: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
accountNumberMasked: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
productCode: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
balance: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
availableBalance: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
72
72
|
isOptional: true;
|
|
73
73
|
};
|
|
74
74
|
lastSyncedAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
createdAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
updatedAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
metadata: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
declare const BankTransactionRecord: SchemaModel<{
|
|
92
92
|
id: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
accountId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
tenantId: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
connectionId: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
externalId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
amount: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
currency: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
date: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
bookingDate: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
126
126
|
isOptional: true;
|
|
127
127
|
};
|
|
128
128
|
valueDate: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
description: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
counterpartyName: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
counterpartyAccount: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
142
142
|
isOptional: true;
|
|
143
143
|
};
|
|
144
144
|
merchantCategoryCode: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
rawCategory: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
150
150
|
isOptional: true;
|
|
151
151
|
};
|
|
152
152
|
standardizedCategory: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
154
154
|
isOptional: true;
|
|
155
155
|
};
|
|
156
156
|
transactionType: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
status: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
runningBalance: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
166
166
|
isOptional: true;
|
|
167
167
|
};
|
|
168
168
|
metadata: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
170
170
|
isOptional: true;
|
|
171
171
|
};
|
|
172
172
|
createdAt: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
updatedAt: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
}>;
|
|
181
181
|
declare const AccountBalanceRecord: SchemaModel<{
|
|
182
182
|
id: {
|
|
183
|
-
type:
|
|
183
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
184
184
|
isOptional: false;
|
|
185
185
|
};
|
|
186
186
|
accountId: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
tenantId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
connectionId: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
balanceType: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
200
200
|
isOptional: false;
|
|
201
201
|
};
|
|
202
202
|
currentBalance: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
204
204
|
isOptional: false;
|
|
205
205
|
};
|
|
206
206
|
availableBalance: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
currency: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
lastUpdatedAt: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
createdAt: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
metadata: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
224
224
|
isOptional: true;
|
|
225
225
|
};
|
|
226
226
|
}>;
|
|
@@ -1,238 +1,236 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SchemaModel } from "../../schema/dist/SchemaModel.js";
|
|
3
|
-
import "../../schema/dist/index.js";
|
|
1
|
+
import { E5, x8 } from "../../schema/dist/index.js";
|
|
4
2
|
|
|
5
3
|
//#region src/integrations/openbanking/models.ts
|
|
6
|
-
const BankAccountRecord = new
|
|
4
|
+
const BankAccountRecord = new x8({
|
|
7
5
|
name: "BankAccountRecord",
|
|
8
6
|
description: "Canonical representation of a bank account synced from an open banking provider.",
|
|
9
7
|
fields: {
|
|
10
8
|
id: {
|
|
11
|
-
type:
|
|
9
|
+
type: E5.ID(),
|
|
12
10
|
isOptional: false
|
|
13
11
|
},
|
|
14
12
|
tenantId: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.ID(),
|
|
16
14
|
isOptional: false
|
|
17
15
|
},
|
|
18
16
|
userId: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.ID(),
|
|
20
18
|
isOptional: false
|
|
21
19
|
},
|
|
22
20
|
connectionId: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.ID(),
|
|
24
22
|
isOptional: false
|
|
25
23
|
},
|
|
26
24
|
externalId: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.NonEmptyString(),
|
|
28
26
|
isOptional: false
|
|
29
27
|
},
|
|
30
28
|
institutionId: {
|
|
31
|
-
type:
|
|
29
|
+
type: E5.NonEmptyString(),
|
|
32
30
|
isOptional: false
|
|
33
31
|
},
|
|
34
32
|
institutionName: {
|
|
35
|
-
type:
|
|
33
|
+
type: E5.NonEmptyString(),
|
|
36
34
|
isOptional: false
|
|
37
35
|
},
|
|
38
36
|
institutionLogoUrl: {
|
|
39
|
-
type:
|
|
37
|
+
type: E5.URL(),
|
|
40
38
|
isOptional: true
|
|
41
39
|
},
|
|
42
40
|
iban: {
|
|
43
|
-
type:
|
|
41
|
+
type: E5.String_unsecure(),
|
|
44
42
|
isOptional: true
|
|
45
43
|
},
|
|
46
44
|
bic: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.String_unsecure(),
|
|
48
46
|
isOptional: true
|
|
49
47
|
},
|
|
50
48
|
accountType: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.NonEmptyString(),
|
|
52
50
|
isOptional: false
|
|
53
51
|
},
|
|
54
52
|
currency: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.Currency(),
|
|
56
54
|
isOptional: false
|
|
57
55
|
},
|
|
58
56
|
displayName: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.NonEmptyString(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
},
|
|
62
60
|
accountNumberMasked: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.String_unsecure(),
|
|
64
62
|
isOptional: true
|
|
65
63
|
},
|
|
66
64
|
productCode: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.String_unsecure(),
|
|
68
66
|
isOptional: true
|
|
69
67
|
},
|
|
70
68
|
balance: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.Float_unsecure(),
|
|
72
70
|
isOptional: true
|
|
73
71
|
},
|
|
74
72
|
availableBalance: {
|
|
75
|
-
type:
|
|
73
|
+
type: E5.Float_unsecure(),
|
|
76
74
|
isOptional: true
|
|
77
75
|
},
|
|
78
76
|
lastSyncedAt: {
|
|
79
|
-
type:
|
|
77
|
+
type: E5.DateTime(),
|
|
80
78
|
isOptional: false
|
|
81
79
|
},
|
|
82
80
|
createdAt: {
|
|
83
|
-
type:
|
|
81
|
+
type: E5.DateTime(),
|
|
84
82
|
isOptional: false
|
|
85
83
|
},
|
|
86
84
|
updatedAt: {
|
|
87
|
-
type:
|
|
85
|
+
type: E5.DateTime(),
|
|
88
86
|
isOptional: false
|
|
89
87
|
},
|
|
90
88
|
metadata: {
|
|
91
|
-
type:
|
|
89
|
+
type: E5.JSONObject(),
|
|
92
90
|
isOptional: true
|
|
93
91
|
}
|
|
94
92
|
}
|
|
95
93
|
});
|
|
96
|
-
const BankTransactionRecord = new
|
|
94
|
+
const BankTransactionRecord = new x8({
|
|
97
95
|
name: "BankTransactionRecord",
|
|
98
96
|
description: "Canonical transaction entry mapped from Powens into the open banking ledger.",
|
|
99
97
|
fields: {
|
|
100
98
|
id: {
|
|
101
|
-
type:
|
|
99
|
+
type: E5.ID(),
|
|
102
100
|
isOptional: false
|
|
103
101
|
},
|
|
104
102
|
accountId: {
|
|
105
|
-
type:
|
|
103
|
+
type: E5.ID(),
|
|
106
104
|
isOptional: false
|
|
107
105
|
},
|
|
108
106
|
tenantId: {
|
|
109
|
-
type:
|
|
107
|
+
type: E5.ID(),
|
|
110
108
|
isOptional: false
|
|
111
109
|
},
|
|
112
110
|
connectionId: {
|
|
113
|
-
type:
|
|
111
|
+
type: E5.ID(),
|
|
114
112
|
isOptional: false
|
|
115
113
|
},
|
|
116
114
|
externalId: {
|
|
117
|
-
type:
|
|
115
|
+
type: E5.NonEmptyString(),
|
|
118
116
|
isOptional: false
|
|
119
117
|
},
|
|
120
118
|
amount: {
|
|
121
|
-
type:
|
|
119
|
+
type: E5.Float_unsecure(),
|
|
122
120
|
isOptional: false
|
|
123
121
|
},
|
|
124
122
|
currency: {
|
|
125
|
-
type:
|
|
123
|
+
type: E5.Currency(),
|
|
126
124
|
isOptional: false
|
|
127
125
|
},
|
|
128
126
|
date: {
|
|
129
|
-
type:
|
|
127
|
+
type: E5.DateTime(),
|
|
130
128
|
isOptional: false
|
|
131
129
|
},
|
|
132
130
|
bookingDate: {
|
|
133
|
-
type:
|
|
131
|
+
type: E5.DateTime(),
|
|
134
132
|
isOptional: true
|
|
135
133
|
},
|
|
136
134
|
valueDate: {
|
|
137
|
-
type:
|
|
135
|
+
type: E5.DateTime(),
|
|
138
136
|
isOptional: true
|
|
139
137
|
},
|
|
140
138
|
description: {
|
|
141
|
-
type:
|
|
139
|
+
type: E5.String_unsecure(),
|
|
142
140
|
isOptional: true
|
|
143
141
|
},
|
|
144
142
|
counterpartyName: {
|
|
145
|
-
type:
|
|
143
|
+
type: E5.String_unsecure(),
|
|
146
144
|
isOptional: true
|
|
147
145
|
},
|
|
148
146
|
counterpartyAccount: {
|
|
149
|
-
type:
|
|
147
|
+
type: E5.String_unsecure(),
|
|
150
148
|
isOptional: true
|
|
151
149
|
},
|
|
152
150
|
merchantCategoryCode: {
|
|
153
|
-
type:
|
|
151
|
+
type: E5.String_unsecure(),
|
|
154
152
|
isOptional: true
|
|
155
153
|
},
|
|
156
154
|
rawCategory: {
|
|
157
|
-
type:
|
|
155
|
+
type: E5.String_unsecure(),
|
|
158
156
|
isOptional: true
|
|
159
157
|
},
|
|
160
158
|
standardizedCategory: {
|
|
161
|
-
type:
|
|
159
|
+
type: E5.String_unsecure(),
|
|
162
160
|
isOptional: true
|
|
163
161
|
},
|
|
164
162
|
transactionType: {
|
|
165
|
-
type:
|
|
163
|
+
type: E5.NonEmptyString(),
|
|
166
164
|
isOptional: false
|
|
167
165
|
},
|
|
168
166
|
status: {
|
|
169
|
-
type:
|
|
167
|
+
type: E5.NonEmptyString(),
|
|
170
168
|
isOptional: false
|
|
171
169
|
},
|
|
172
170
|
runningBalance: {
|
|
173
|
-
type:
|
|
171
|
+
type: E5.Float_unsecure(),
|
|
174
172
|
isOptional: true
|
|
175
173
|
},
|
|
176
174
|
metadata: {
|
|
177
|
-
type:
|
|
175
|
+
type: E5.JSONObject(),
|
|
178
176
|
isOptional: true
|
|
179
177
|
},
|
|
180
178
|
createdAt: {
|
|
181
|
-
type:
|
|
179
|
+
type: E5.DateTime(),
|
|
182
180
|
isOptional: false
|
|
183
181
|
},
|
|
184
182
|
updatedAt: {
|
|
185
|
-
type:
|
|
183
|
+
type: E5.DateTime(),
|
|
186
184
|
isOptional: false
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
187
|
});
|
|
190
|
-
const AccountBalanceRecord = new
|
|
188
|
+
const AccountBalanceRecord = new x8({
|
|
191
189
|
name: "AccountBalanceRecord",
|
|
192
190
|
description: "Canonical balance snapshot computed from Powens balance payloads.",
|
|
193
191
|
fields: {
|
|
194
192
|
id: {
|
|
195
|
-
type:
|
|
193
|
+
type: E5.ID(),
|
|
196
194
|
isOptional: false
|
|
197
195
|
},
|
|
198
196
|
accountId: {
|
|
199
|
-
type:
|
|
197
|
+
type: E5.ID(),
|
|
200
198
|
isOptional: false
|
|
201
199
|
},
|
|
202
200
|
tenantId: {
|
|
203
|
-
type:
|
|
201
|
+
type: E5.ID(),
|
|
204
202
|
isOptional: false
|
|
205
203
|
},
|
|
206
204
|
connectionId: {
|
|
207
|
-
type:
|
|
205
|
+
type: E5.ID(),
|
|
208
206
|
isOptional: false
|
|
209
207
|
},
|
|
210
208
|
balanceType: {
|
|
211
|
-
type:
|
|
209
|
+
type: E5.NonEmptyString(),
|
|
212
210
|
isOptional: false
|
|
213
211
|
},
|
|
214
212
|
currentBalance: {
|
|
215
|
-
type:
|
|
213
|
+
type: E5.Float_unsecure(),
|
|
216
214
|
isOptional: false
|
|
217
215
|
},
|
|
218
216
|
availableBalance: {
|
|
219
|
-
type:
|
|
217
|
+
type: E5.Float_unsecure(),
|
|
220
218
|
isOptional: true
|
|
221
219
|
},
|
|
222
220
|
currency: {
|
|
223
|
-
type:
|
|
221
|
+
type: E5.Currency(),
|
|
224
222
|
isOptional: false
|
|
225
223
|
},
|
|
226
224
|
lastUpdatedAt: {
|
|
227
|
-
type:
|
|
225
|
+
type: E5.DateTime(),
|
|
228
226
|
isOptional: false
|
|
229
227
|
},
|
|
230
228
|
createdAt: {
|
|
231
|
-
type:
|
|
229
|
+
type: E5.DateTime(),
|
|
232
230
|
isOptional: false
|
|
233
231
|
},
|
|
234
232
|
metadata: {
|
|
235
|
-
type:
|
|
233
|
+
type: E5.JSONObject(),
|
|
236
234
|
isOptional: true
|
|
237
235
|
}
|
|
238
236
|
}
|
|
@@ -131,7 +131,7 @@ function headerValue(headers, name) {
|
|
|
131
131
|
function parseAddress(header) {
|
|
132
132
|
const addresses = parseAddressList(header);
|
|
133
133
|
if (addresses.length === 0) return null;
|
|
134
|
-
return addresses[0];
|
|
134
|
+
return addresses[0] ?? null;
|
|
135
135
|
}
|
|
136
136
|
function inferFallbackAddress(field, messageId) {
|
|
137
137
|
return { email: `${field}-${messageId ? messageId.replace(/[^\w]/g, "").slice(-8) || "unknown" : "unknown"}@mail.local` };
|
|
@@ -56,9 +56,9 @@ function encodeMessage(message) {
|
|
|
56
56
|
} else if (hasText && hasHtml) {
|
|
57
57
|
headers.push(`Content-Type: multipart/alternative; boundary="${boundaryAlt}"`);
|
|
58
58
|
body += `\r\n--${boundaryAlt}\r\n`;
|
|
59
|
-
body += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody);
|
|
59
|
+
body += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody ?? "");
|
|
60
60
|
body += `\r\n--${boundaryAlt}\r\n`;
|
|
61
|
-
body += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody);
|
|
61
|
+
body += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody ?? "");
|
|
62
62
|
body += `\r\n--${boundaryAlt}--`;
|
|
63
63
|
} else if (hasHtml) {
|
|
64
64
|
headers.push("Content-Type: text/html; charset=\"utf-8\"");
|
|
@@ -76,11 +76,11 @@ function buildAlternativePart(hasText, hasHtml, boundary, message) {
|
|
|
76
76
|
content += "\r\n";
|
|
77
77
|
if (hasText) {
|
|
78
78
|
content += `--${boundary}\r\n`;
|
|
79
|
-
content += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody);
|
|
79
|
+
content += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody ?? "");
|
|
80
80
|
}
|
|
81
81
|
if (hasHtml) {
|
|
82
82
|
content += `\r\n--${boundary}\r\n`;
|
|
83
|
-
content += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody);
|
|
83
|
+
content += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody ?? "");
|
|
84
84
|
}
|
|
85
85
|
content += `\r\n--${boundary}--`;
|
|
86
86
|
return content;
|
|
@@ -15,7 +15,7 @@ declare class MistralLLMProvider implements LLMProvider {
|
|
|
15
15
|
constructor(options: MistralLLMProviderOptions);
|
|
16
16
|
chat(messages: LLMMessage[], options?: LLMChatOptions): Promise<LLMResponse>;
|
|
17
17
|
stream(messages: LLMMessage[], options?: LLMChatOptions): AsyncIterable<LLMStreamChunk>;
|
|
18
|
-
countTokens(
|
|
18
|
+
countTokens(_messages: LLMMessage[]): Promise<{
|
|
19
19
|
promptTokens: number;
|
|
20
20
|
}>;
|
|
21
21
|
private buildChatRequest;
|
|
@@ -2,7 +2,7 @@ import { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingConnec
|
|
|
2
2
|
import { PowensClientOptions } from "./powens-client.js";
|
|
3
3
|
|
|
4
4
|
//#region src/integrations/providers/impls/powens-openbanking.d.ts
|
|
5
|
-
|
|
5
|
+
type PowensOpenBankingProviderOptions = PowensClientOptions;
|
|
6
6
|
declare class PowensOpenBankingProvider implements OpenBankingProvider {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly logger?;
|
|
@@ -112,7 +112,10 @@ var IntegrationProviderFactory = class {
|
|
|
112
112
|
}
|
|
113
113
|
async loadSecrets(context) {
|
|
114
114
|
const cacheKey = context.connection.meta.id;
|
|
115
|
-
if (SECRET_CACHE.has(cacheKey))
|
|
115
|
+
if (SECRET_CACHE.has(cacheKey)) {
|
|
116
|
+
const cached = SECRET_CACHE.get(cacheKey);
|
|
117
|
+
if (cached) return cached;
|
|
118
|
+
}
|
|
116
119
|
const value = parseSecret(await context.secretProvider.getSecret(context.secretReference));
|
|
117
120
|
SECRET_CACHE.set(cacheKey, value);
|
|
118
121
|
return value;
|
|
@@ -16,7 +16,7 @@ var QdrantVectorProvider = class {
|
|
|
16
16
|
}
|
|
17
17
|
async upsert(request) {
|
|
18
18
|
if (request.documents.length === 0) return;
|
|
19
|
-
const vectorSize = request.documents[0]
|
|
19
|
+
const vectorSize = request.documents[0]?.vector.length ?? 0;
|
|
20
20
|
if (this.createCollectionIfMissing) await this.ensureCollection(request.collection, vectorSize);
|
|
21
21
|
const points = request.documents.map((document) => ({
|
|
22
22
|
id: document.id,
|
|
@@ -56,7 +56,7 @@ var QdrantVectorProvider = class {
|
|
|
56
56
|
async ensureCollection(collectionName, vectorSize) {
|
|
57
57
|
try {
|
|
58
58
|
await this.client.getCollection(collectionName);
|
|
59
|
-
} catch
|
|
59
|
+
} catch {
|
|
60
60
|
await this.client.createCollection(collectionName, { vectors: {
|
|
61
61
|
size: vectorSize,
|
|
62
62
|
distance: this.distance
|