@contractspec/lib.contracts 1.44.0 → 1.45.0
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/README.md +1 -1
- package/dist/app-config/app-config.feature.js +6 -6
- package/dist/app-config/contracts.d.ts +50 -50
- package/dist/app-config/contracts.js +13 -13
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/events.js +12 -12
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/app-config/lifecycle-contracts.js +19 -19
- package/dist/app-config/lifecycle.d.ts +2 -2
- package/dist/app-config/runtime.d.ts +3 -3
- package/dist/app-config/spec.d.ts +10 -12
- package/dist/app-config/spec.js +5 -26
- package/dist/capabilities/capabilities.d.ts +4 -11
- package/dist/capabilities/capabilities.js +3 -5
- package/dist/capabilities/openbanking.js +10 -10
- package/dist/client/react/form-render.js +1 -0
- package/dist/contract-registry/schemas.d.ts +8 -8
- package/dist/contract-registry/schemas.js +1 -1
- package/dist/contract-registry/types.d.ts +1 -1
- package/dist/data-views/data-views.js +1 -0
- package/dist/data-views/registry.d.ts +3 -37
- package/dist/data-views/registry.js +4 -66
- package/dist/data-views/runtime.d.ts +1 -1
- package/dist/data-views/runtime.js +2 -0
- package/dist/data-views/spec.d.ts +2 -2
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/index.js +2 -2
- package/dist/docs/presentations.d.ts +2 -4
- package/dist/docs/presentations.js +2 -4
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +1 -1
- package/dist/docs/tech/contracts/tests.docblock.js +1 -1
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +1 -1
- package/dist/docs/tech-contracts.docs.js +1 -1
- package/dist/docs/types.d.ts +1 -1
- package/dist/events.d.ts +3 -3
- package/dist/examples/docs/examples.docblock.d.ts +6 -0
- package/dist/examples/docs/examples.docblock.js +165 -0
- package/dist/examples/index.d.ts +5 -0
- package/dist/examples/index.js +6 -0
- package/dist/examples/registry.d.ts +65 -0
- package/dist/examples/registry.js +144 -0
- package/dist/examples/schema.d.ts +282 -0
- package/dist/examples/schema.js +125 -0
- package/dist/examples/types.d.ts +167 -0
- package/dist/examples/types.js +43 -0
- package/dist/examples/validation.d.ts +65 -0
- package/dist/examples/validation.js +144 -0
- package/dist/experiments/docs/experiments.docblock.js +1 -1
- package/dist/experiments/evaluator.d.ts +1 -1
- package/dist/experiments/spec-resolver.d.ts +2 -2
- package/dist/experiments/spec.d.ts +6 -8
- package/dist/experiments/spec.js +5 -23
- package/dist/features/index.d.ts +9 -1
- package/dist/features/index.js +8 -1
- package/dist/features/install.js +2 -2
- package/dist/features/types.d.ts +7 -7
- package/dist/forms/forms.d.ts +2 -2
- package/dist/forms/forms.js +3 -6
- package/dist/index.d.ts +13 -8
- package/dist/index.js +11 -2
- package/dist/install.d.ts +9 -9
- package/dist/integrations/connection.d.ts +1 -1
- package/dist/integrations/docs/integrations.docblock.js +1 -1
- package/dist/integrations/integrations.feature.js +8 -8
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/accounts.js +3 -3
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/balances.js +2 -2
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/contracts/transactions.js +2 -2
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/openbanking/openbanking.feature.js +10 -10
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/operations.js +10 -10
- package/dist/integrations/providers/elevenlabs.js +2 -2
- package/dist/integrations/providers/gcs-storage.js +2 -2
- package/dist/integrations/providers/gmail.js +3 -3
- package/dist/integrations/providers/google-calendar.js +2 -2
- package/dist/integrations/providers/mistral.js +3 -3
- package/dist/integrations/providers/postmark.js +2 -2
- package/dist/integrations/providers/powens.js +4 -4
- package/dist/integrations/providers/qdrant.js +3 -3
- package/dist/integrations/providers/stripe.js +2 -2
- package/dist/integrations/providers/twilio-sms.js +2 -2
- package/dist/integrations/runtime.d.ts +5 -5
- package/dist/integrations/spec.d.ts +3 -5
- package/dist/integrations/spec.js +5 -26
- package/dist/jobs/gcp-cloud-tasks.js +1 -1
- package/dist/jobs/gcp-pubsub.js +1 -1
- package/dist/jobs/handlers/ping-handler.d.ts +3 -3
- package/dist/jobs/handlers/ping-handler.js +2 -2
- package/dist/jobs/memory-queue.js +1 -1
- package/dist/jobs/queue.d.ts +4 -4
- package/dist/jobs/scaleway-sqs-queue.js +2 -2
- package/dist/jsonschema.d.ts +4 -4
- package/dist/knowledge/binding.d.ts +1 -1
- package/dist/knowledge/knowledge.feature.js +8 -8
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/knowledge/operations.js +12 -12
- package/dist/knowledge/source.d.ts +1 -1
- package/dist/knowledge/spaces/email-threads.js +2 -2
- package/dist/knowledge/spaces/financial-docs.js +2 -2
- package/dist/knowledge/spaces/financial-overview.js +2 -2
- package/dist/knowledge/spaces/product-canon.js +2 -2
- package/dist/knowledge/spaces/support-faq.js +2 -2
- package/dist/knowledge/spaces/uploaded-docs.js +2 -2
- package/dist/knowledge/spec.d.ts +3 -5
- package/dist/knowledge/spec.js +6 -28
- package/dist/llm/exporters.js +2 -2
- package/dist/llm/types.d.ts +4 -4
- package/dist/markdown.js +1 -1
- package/dist/migrations.d.ts +2 -2
- package/dist/migrations.js +7 -9
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/onboarding-base.js +4 -4
- package/dist/openapi.js +9 -2
- package/dist/operations/operation.d.ts +3 -3
- package/dist/operations/registry.d.ts +9 -58
- package/dist/operations/registry.js +17 -93
- package/dist/ownership.d.ts +1 -1
- package/dist/policy/docs/policy.docblock.js +1 -1
- package/dist/policy/engine.js +2 -0
- package/dist/policy/spec.d.ts +1 -1
- package/dist/prompt.d.ts +6 -6
- package/dist/promptRegistry.d.ts +4 -4
- package/dist/promptRegistry.js +2 -5
- package/dist/regenerator/docs/regenerator.docblock.js +1 -1
- package/dist/regenerator/types.d.ts +1 -1
- package/dist/registry.d.ts +3 -2
- package/dist/registry.js +5 -5
- package/dist/resources.d.ts +5 -5
- package/dist/server/graphql-pothos.js +2 -2
- package/dist/server/mcp/registerTools.js +1 -1
- package/dist/server/rest-elysia.d.ts +1 -1
- package/dist/server/rest-elysia.js +1 -1
- package/dist/server/rest-express.d.ts +1 -1
- package/dist/server/rest-express.js +1 -1
- package/dist/server/rest-generic.d.ts +1 -1
- package/dist/server/rest-generic.js +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-mcp.js +1 -1
- package/dist/server/rest-next-pages.d.ts +1 -1
- package/dist/telemetry/docs/telemetry.docblock.js +1 -1
- package/dist/telemetry/spec.d.ts +7 -7
- package/dist/telemetry/spec.js +17 -44
- package/dist/telemetry/tracker.d.ts +2 -2
- package/dist/tests/runner.d.ts +1 -1
- package/dist/tests/spec.d.ts +5 -5
- package/dist/tests/spec.js +3 -5
- package/dist/themes.d.ts +4 -6
- package/dist/themes.js +5 -27
- package/dist/translations/catalog.d.ts +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/workflow/adapters/db-adapter.js +3 -3
- package/dist/workflow/runner.d.ts +4 -2
- package/dist/workflow/spec.d.ts +4 -17
- package/dist/workflow/spec.js +4 -48
- package/dist/workflow/state.d.ts +1 -1
- package/dist/workflow/validation.js +1 -1
- package/dist/workspace-config/contractsrc-schema.d.ts +419 -419
- package/dist/workspace-config/contractsrc-schema.js +86 -86
- package/package.json +28 -12
|
@@ -2,124 +2,124 @@ import { AnyOperationSpec, OperationSpec } from "../../../operations/operation.j
|
|
|
2
2
|
import { OperationSpecRegistry } from "../../../operations/registry.js";
|
|
3
3
|
import "../../../operations/index.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _contractspec_lib_schema182 from "@contractspec/lib.schema";
|
|
6
6
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/integrations/openbanking/contracts/accounts.d.ts
|
|
9
9
|
declare const OpenBankingListAccounts: OperationSpec<SchemaModel<{
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
userId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
connectionId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
includeBalances: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
institutionId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
30
|
cursor: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
pageSize: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
}>, SchemaModel<{
|
|
39
39
|
accounts: {
|
|
40
40
|
type: SchemaModel<{
|
|
41
41
|
id: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
tenantId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
userId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
connectionId: {
|
|
54
|
-
type:
|
|
54
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
externalId: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
institutionId: {
|
|
62
|
-
type:
|
|
62
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
institutionName: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
institutionLogoUrl: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
iban: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
75
75
|
isOptional: true;
|
|
76
76
|
};
|
|
77
77
|
bic: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
79
79
|
isOptional: true;
|
|
80
80
|
};
|
|
81
81
|
accountType: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
currency: {
|
|
86
|
-
type:
|
|
86
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
displayName: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
accountNumberMasked: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
productCode: {
|
|
98
|
-
type:
|
|
98
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
balance: {
|
|
102
|
-
type:
|
|
102
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
};
|
|
105
105
|
availableBalance: {
|
|
106
|
-
type:
|
|
106
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
109
|
lastSyncedAt: {
|
|
110
|
-
type:
|
|
110
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
111
111
|
isOptional: false;
|
|
112
112
|
};
|
|
113
113
|
createdAt: {
|
|
114
|
-
type:
|
|
114
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
115
115
|
isOptional: false;
|
|
116
116
|
};
|
|
117
117
|
updatedAt: {
|
|
118
|
-
type:
|
|
118
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
metadata: {
|
|
122
|
-
type:
|
|
122
|
+
type: _contractspec_lib_schema182.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
123
123
|
isOptional: true;
|
|
124
124
|
};
|
|
125
125
|
}>;
|
|
@@ -127,159 +127,159 @@ declare const OpenBankingListAccounts: OperationSpec<SchemaModel<{
|
|
|
127
127
|
isArray: true;
|
|
128
128
|
};
|
|
129
129
|
nextCursor: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
131
131
|
isOptional: true;
|
|
132
132
|
};
|
|
133
133
|
hasMore: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
}>, undefined>;
|
|
138
138
|
declare const OpenBankingGetAccount: OperationSpec<SchemaModel<{
|
|
139
139
|
tenantId: {
|
|
140
|
-
type:
|
|
140
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
141
141
|
isOptional: false;
|
|
142
142
|
};
|
|
143
143
|
accountId: {
|
|
144
|
-
type:
|
|
144
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
145
145
|
isOptional: false;
|
|
146
146
|
};
|
|
147
147
|
includeBalances: {
|
|
148
|
-
type:
|
|
148
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
includeLatestTransactions: {
|
|
152
|
-
type:
|
|
152
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
153
153
|
isOptional: true;
|
|
154
154
|
};
|
|
155
155
|
}>, SchemaModel<{
|
|
156
156
|
id: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
tenantId: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
userId: {
|
|
165
|
-
type:
|
|
165
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
connectionId: {
|
|
169
|
-
type:
|
|
169
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
externalId: {
|
|
173
|
-
type:
|
|
173
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
institutionId: {
|
|
177
|
-
type:
|
|
177
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
institutionName: {
|
|
181
|
-
type:
|
|
181
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
institutionLogoUrl: {
|
|
185
|
-
type:
|
|
185
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
186
186
|
isOptional: true;
|
|
187
187
|
};
|
|
188
188
|
iban: {
|
|
189
|
-
type:
|
|
189
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
190
190
|
isOptional: true;
|
|
191
191
|
};
|
|
192
192
|
bic: {
|
|
193
|
-
type:
|
|
193
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
194
194
|
isOptional: true;
|
|
195
195
|
};
|
|
196
196
|
accountType: {
|
|
197
|
-
type:
|
|
197
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
198
198
|
isOptional: false;
|
|
199
199
|
};
|
|
200
200
|
currency: {
|
|
201
|
-
type:
|
|
201
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
202
202
|
isOptional: false;
|
|
203
203
|
};
|
|
204
204
|
displayName: {
|
|
205
|
-
type:
|
|
205
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
206
206
|
isOptional: false;
|
|
207
207
|
};
|
|
208
208
|
accountNumberMasked: {
|
|
209
|
-
type:
|
|
209
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
210
210
|
isOptional: true;
|
|
211
211
|
};
|
|
212
212
|
productCode: {
|
|
213
|
-
type:
|
|
213
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
214
214
|
isOptional: true;
|
|
215
215
|
};
|
|
216
216
|
balance: {
|
|
217
|
-
type:
|
|
217
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
218
218
|
isOptional: true;
|
|
219
219
|
};
|
|
220
220
|
availableBalance: {
|
|
221
|
-
type:
|
|
221
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
222
222
|
isOptional: true;
|
|
223
223
|
};
|
|
224
224
|
lastSyncedAt: {
|
|
225
|
-
type:
|
|
225
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
226
226
|
isOptional: false;
|
|
227
227
|
};
|
|
228
228
|
createdAt: {
|
|
229
|
-
type:
|
|
229
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
230
230
|
isOptional: false;
|
|
231
231
|
};
|
|
232
232
|
updatedAt: {
|
|
233
|
-
type:
|
|
233
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
234
234
|
isOptional: false;
|
|
235
235
|
};
|
|
236
236
|
metadata: {
|
|
237
|
-
type:
|
|
237
|
+
type: _contractspec_lib_schema182.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
238
238
|
isOptional: true;
|
|
239
239
|
};
|
|
240
240
|
}>, undefined>;
|
|
241
241
|
declare const OpenBankingSyncAccounts: OperationSpec<SchemaModel<{
|
|
242
242
|
tenantId: {
|
|
243
|
-
type:
|
|
243
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
244
244
|
isOptional: false;
|
|
245
245
|
};
|
|
246
246
|
userId: {
|
|
247
|
-
type:
|
|
247
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
248
248
|
isOptional: true;
|
|
249
249
|
};
|
|
250
250
|
connectionId: {
|
|
251
|
-
type:
|
|
251
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
accountIds: {
|
|
255
|
-
type:
|
|
255
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
256
256
|
isArray: true;
|
|
257
257
|
isOptional: true;
|
|
258
258
|
};
|
|
259
259
|
forceFullRefresh: {
|
|
260
|
-
type:
|
|
260
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
261
261
|
isOptional: true;
|
|
262
262
|
};
|
|
263
263
|
triggerWorkflows: {
|
|
264
|
-
type:
|
|
264
|
+
type: _contractspec_lib_schema182.FieldType<boolean, boolean>;
|
|
265
265
|
isOptional: true;
|
|
266
266
|
};
|
|
267
267
|
}>, SchemaModel<{
|
|
268
268
|
synced: {
|
|
269
|
-
type:
|
|
269
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
270
270
|
isOptional: false;
|
|
271
271
|
};
|
|
272
272
|
failed: {
|
|
273
|
-
type:
|
|
273
|
+
type: _contractspec_lib_schema182.FieldType<number, number>;
|
|
274
274
|
isOptional: false;
|
|
275
275
|
};
|
|
276
276
|
errors: {
|
|
277
|
-
type:
|
|
277
|
+
type: _contractspec_lib_schema182.FieldType<string, string>;
|
|
278
278
|
isArray: true;
|
|
279
279
|
isOptional: true;
|
|
280
280
|
};
|
|
281
281
|
nextSyncSuggestedAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _contractspec_lib_schema182.FieldType<Date, string>;
|
|
283
283
|
isOptional: true;
|
|
284
284
|
};
|
|
285
285
|
}>, undefined>;
|
|
@@ -137,7 +137,7 @@ const OpenBankingSyncAccountsOutput = new SchemaModel({
|
|
|
137
137
|
const OpenBankingListAccounts = defineQuery({
|
|
138
138
|
meta: {
|
|
139
139
|
key: "openbanking.accounts.list",
|
|
140
|
-
version: 1,
|
|
140
|
+
version: "1.0.0",
|
|
141
141
|
description: "List bank accounts available to a tenant/user via Powens Open Banking.",
|
|
142
142
|
goal: "Provide downstream workflows with the set of accounts accessible via the configured open banking connection.",
|
|
143
143
|
context: "Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.",
|
|
@@ -158,7 +158,7 @@ const OpenBankingListAccounts = defineQuery({
|
|
|
158
158
|
const OpenBankingGetAccount = defineQuery({
|
|
159
159
|
meta: {
|
|
160
160
|
key: "openbanking.accounts.get",
|
|
161
|
-
version: 1,
|
|
161
|
+
version: "1.0.0",
|
|
162
162
|
description: "Retrieve the canonical bank account record for the given account identifier.",
|
|
163
163
|
goal: "Allow user-facing experiences and automations to display up-to-date account metadata.",
|
|
164
164
|
context: "Invoked by UI surfaces and workflow automation steps that require detailed metadata for a specific bank account.",
|
|
@@ -179,7 +179,7 @@ const OpenBankingGetAccount = defineQuery({
|
|
|
179
179
|
const OpenBankingSyncAccounts = defineCommand({
|
|
180
180
|
meta: {
|
|
181
181
|
key: "openbanking.accounts.sync",
|
|
182
|
-
version: 1,
|
|
182
|
+
version: "1.0.0",
|
|
183
183
|
description: "Initiate a synchronisation run to refresh bank account metadata from Powens.",
|
|
184
184
|
goal: "Keep canonical bank account records aligned with the external open banking provider.",
|
|
185
185
|
context: "Triggered by scheduled workflows or manual operator actions to reconcile account metadata prior to transaction/balance syncs.",
|
|
@@ -2,21 +2,21 @@ import { AnyOperationSpec, OperationSpec } from "../../../operations/operation.j
|
|
|
2
2
|
import { OperationSpecRegistry } from "../../../operations/registry.js";
|
|
3
3
|
import "../../../operations/index.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _contractspec_lib_schema247 from "@contractspec/lib.schema";
|
|
6
6
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/integrations/openbanking/contracts/balances.d.ts
|
|
9
9
|
declare const OpenBankingGetBalances: OperationSpec<SchemaModel<{
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
accountId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
balanceTypes: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
20
20
|
isArray: true;
|
|
21
21
|
isOptional: true;
|
|
22
22
|
};
|
|
@@ -24,47 +24,47 @@ declare const OpenBankingGetBalances: OperationSpec<SchemaModel<{
|
|
|
24
24
|
balances: {
|
|
25
25
|
type: SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
accountId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
tenantId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
connectionId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
balanceType: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
currentBalance: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema247.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
availableBalance: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema247.FieldType<number, number>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
currency: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
lastUpdatedAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
createdAt: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
metadata: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema247.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
}>;
|
|
@@ -72,77 +72,77 @@ declare const OpenBankingGetBalances: OperationSpec<SchemaModel<{
|
|
|
72
72
|
isArray: true;
|
|
73
73
|
};
|
|
74
74
|
asOf: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
}>, undefined>;
|
|
79
79
|
declare const OpenBankingRefreshBalances: OperationSpec<SchemaModel<{
|
|
80
80
|
tenantId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
accountId: {
|
|
85
|
-
type:
|
|
85
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
connectionId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
90
90
|
isOptional: true;
|
|
91
91
|
};
|
|
92
92
|
balanceTypes: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
94
94
|
isArray: true;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
forceRefresh: {
|
|
98
|
-
type:
|
|
98
|
+
type: _contractspec_lib_schema247.FieldType<boolean, boolean>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
}>, SchemaModel<{
|
|
102
102
|
balances: {
|
|
103
103
|
type: SchemaModel<{
|
|
104
104
|
id: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
accountId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
tenantId: {
|
|
113
|
-
type:
|
|
113
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
connectionId: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
balanceType: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
currentBalance: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema247.FieldType<number, number>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
availableBalance: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema247.FieldType<number, number>;
|
|
130
130
|
isOptional: true;
|
|
131
131
|
};
|
|
132
132
|
currency: {
|
|
133
|
-
type:
|
|
133
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
lastUpdatedAt: {
|
|
137
|
-
type:
|
|
137
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
createdAt: {
|
|
141
|
-
type:
|
|
141
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
metadata: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema247.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
}>;
|
|
@@ -150,11 +150,11 @@ declare const OpenBankingRefreshBalances: OperationSpec<SchemaModel<{
|
|
|
150
150
|
isArray: true;
|
|
151
151
|
};
|
|
152
152
|
refreshedAt: {
|
|
153
|
-
type:
|
|
153
|
+
type: _contractspec_lib_schema247.FieldType<Date, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
errors: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema247.FieldType<string, string>;
|
|
158
158
|
isArray: true;
|
|
159
159
|
isOptional: true;
|
|
160
160
|
};
|
|
@@ -89,7 +89,7 @@ const OpenBankingRefreshBalancesOutput = new SchemaModel({
|
|
|
89
89
|
const OpenBankingGetBalances = defineQuery({
|
|
90
90
|
meta: {
|
|
91
91
|
key: "openbanking.balances.get",
|
|
92
|
-
version: 1,
|
|
92
|
+
version: "1.0.0",
|
|
93
93
|
description: "Retrieve the latest cached balances for a bank account.",
|
|
94
94
|
goal: "Expose current and available balances required by dashboards and analytics.",
|
|
95
95
|
context: "Used by Pocket Family Office UI surfaces and automation steps that require balance totals prior to generating summaries.",
|
|
@@ -110,7 +110,7 @@ const OpenBankingGetBalances = defineQuery({
|
|
|
110
110
|
const OpenBankingRefreshBalances = defineCommand({
|
|
111
111
|
meta: {
|
|
112
112
|
key: "openbanking.balances.refresh",
|
|
113
|
-
version: 1,
|
|
113
|
+
version: "1.0.0",
|
|
114
114
|
description: "Refresh balances for a bank account via the configured open banking provider.",
|
|
115
115
|
goal: "Ensure canonical balance records reflect the latest values from Powens.",
|
|
116
116
|
context: "Triggered by scheduled workflows before generating summaries or forecasting cashflow.",
|