@contractspec/lib.contracts 1.51.0 → 1.53.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/dist/app-config/{contracts.d.ts → app-config.contracts.d.ts} +51 -51
- package/dist/app-config/{contracts.js → app-config.contracts.js} +1 -1
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/app-config/runtime.d.ts +4 -4
- package/dist/app-config/spec.d.ts +3 -3
- package/dist/capabilities/guards.d.ts +1 -1
- package/dist/capabilities/validation.d.ts +1 -1
- package/dist/data-views/data-views.d.ts +1 -1
- package/dist/data-views/index.d.ts +1 -1
- package/dist/data-views/registry.d.ts +1 -1
- package/dist/data-views/report/contractVerificationTable.d.ts +10 -0
- package/dist/data-views/report/contractVerificationTable.js +95 -0
- package/dist/data-views/runtime.d.ts +2 -2
- package/dist/data-views/spec.d.ts +1 -1
- package/dist/data-views/types.d.ts +1 -1
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +7 -0
- package/dist/docs/capabilities/documentationSystem.capability.js +71 -0
- package/dist/docs/capabilities/index.d.ts +2 -0
- package/dist/docs/capabilities/index.js +3 -0
- package/dist/docs/commands/docsGenerate.command.d.ts +95 -0
- package/dist/docs/commands/docsGenerate.command.js +142 -0
- package/dist/docs/commands/docsPublish.command.d.ts +64 -0
- package/dist/docs/commands/docsPublish.command.js +107 -0
- package/dist/docs/commands/index.d.ts +3 -0
- package/dist/docs/commands/index.js +4 -0
- package/dist/docs/constants.d.ts +7 -0
- package/dist/docs/constants.js +10 -0
- package/dist/docs/contracts.d.ts +442 -0
- package/dist/docs/contracts.js +58 -0
- package/dist/docs/ensure-docblocks.d.ts +1 -0
- package/dist/docs/ensure-docblocks.js +1 -0
- package/dist/docs/events/docsGenerated.event.d.ts +62 -0
- package/dist/docs/events/docsGenerated.event.js +53 -0
- package/dist/docs/events/docsPublished.event.d.ts +70 -0
- package/dist/docs/events/docsPublished.event.js +57 -0
- package/dist/docs/events/index.d.ts +3 -0
- package/dist/docs/events/index.js +4 -0
- package/dist/docs/forms/docsSearch.form.d.ts +22 -0
- package/dist/docs/forms/docsSearch.form.js +113 -0
- package/dist/docs/forms/index.d.ts +2 -0
- package/dist/docs/forms/index.js +3 -0
- package/dist/docs/index.d.ts +23 -1
- package/dist/docs/index.js +25 -1
- package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsLayout.presentation.js +35 -0
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +35 -0
- package/dist/docs/presentations/index.d.ts +3 -0
- package/dist/docs/presentations/index.js +4 -0
- package/dist/docs/queries/contractReference.query.d.ts +217 -0
- package/dist/docs/queries/contractReference.query.js +125 -0
- package/dist/docs/queries/docsIndex.query.d.ts +272 -0
- package/dist/docs/queries/docsIndex.query.js +133 -0
- package/dist/docs/queries/index.d.ts +3 -0
- package/dist/docs/queries/index.js +4 -0
- package/dist/docs/tech/cli.docblock.js +10 -0
- package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
- package/dist/docs/tech/docs-system.docblock.js +128 -0
- package/dist/docs/tech/report-verification-table.docblock.d.ts +1 -0
- package/dist/docs/tech/report-verification-table.docblock.js +50 -0
- package/dist/docs/views/contractReference.dataView.d.ts +7 -0
- package/dist/docs/views/contractReference.dataView.js +80 -0
- package/dist/docs/views/docsIndex.dataView.d.ts +7 -0
- package/dist/docs/views/docsIndex.dataView.js +136 -0
- package/dist/docs/views/exampleCatalog.dataView.d.ts +7 -0
- package/dist/docs/views/exampleCatalog.dataView.js +91 -0
- package/dist/docs/views/index.d.ts +4 -0
- package/dist/docs/views/index.js +5 -0
- package/dist/events.d.ts +1 -1
- package/dist/examples/schema.d.ts +7 -7
- package/dist/examples/types.d.ts +1 -1
- package/dist/experiments/spec.d.ts +2 -2
- package/dist/features/install.d.ts +1 -1
- package/dist/features/types.d.ts +3 -3
- package/dist/forms/forms.d.ts +1 -1
- package/dist/index.d.ts +40 -22
- package/dist/index.js +20 -2
- package/dist/install.d.ts +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/spec.d.ts +2 -2
- package/dist/jsonschema.d.ts +1 -1
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/knowledge/spec.d.ts +1 -1
- package/dist/llm/exporters.d.ts +3 -3
- package/dist/llm/types.d.ts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/operations/index.d.ts +4 -1
- package/dist/operations/index.js +4 -1
- package/dist/operations/operation.d.ts +3 -3
- package/dist/operations/registry.d.ts +1 -1
- package/dist/operations/report/getContractVerificationStatus.d.ts +75 -0
- package/dist/operations/report/getContractVerificationStatus.js +96 -0
- package/dist/operations/report/index.d.ts +13 -0
- package/dist/operations/report/index.js +45 -0
- package/dist/policy/validation.d.ts +1 -1
- package/dist/presentations/registry.d.ts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/serialization/serializers.d.ts +3 -3
- 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/spec.d.ts +1 -1
- package/dist/telemetry/tracker.d.ts +3 -2
- package/dist/tests/runner.d.ts +1 -1
- package/dist/themes.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/workflow/spec.d.ts +2 -2
- package/dist/workflow/validation.d.ts +2 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +3 -3
- package/dist/workspace-config/contractsrc-schema.js +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +7 -8
- package/dist/workspace-config/index.d.ts +2 -2
- package/package.json +35 -8
|
@@ -3,50 +3,50 @@ import "../operations/index.js";
|
|
|
3
3
|
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
4
4
|
import { EventSpecMeta } from "../events.js";
|
|
5
5
|
import "../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _contractspec_lib_schema540 from "@contractspec/lib.schema";
|
|
7
7
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
8
8
|
|
|
9
9
|
//#region src/app-config/lifecycle-contracts.d.ts
|
|
10
10
|
declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
|
|
11
11
|
tenantId: {
|
|
12
|
-
type:
|
|
12
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
13
13
|
isOptional: false;
|
|
14
14
|
};
|
|
15
15
|
appId: {
|
|
16
|
-
type:
|
|
16
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
17
17
|
isOptional: false;
|
|
18
18
|
};
|
|
19
19
|
blueprintName: {
|
|
20
|
-
type:
|
|
20
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
21
21
|
isOptional: false;
|
|
22
22
|
};
|
|
23
23
|
blueprintVersion: {
|
|
24
|
-
type:
|
|
24
|
+
type: _contractspec_lib_schema540.FieldType<number, number>;
|
|
25
25
|
isOptional: false;
|
|
26
26
|
};
|
|
27
27
|
environment: {
|
|
28
|
-
type:
|
|
28
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
29
29
|
isOptional: true;
|
|
30
30
|
};
|
|
31
31
|
fromVersion: {
|
|
32
|
-
type:
|
|
32
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
33
33
|
isOptional: true;
|
|
34
34
|
};
|
|
35
35
|
createdBy: {
|
|
36
|
-
type:
|
|
36
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
}>, SchemaModel<{
|
|
40
40
|
version: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
status: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
createdAt: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema540.FieldType<Date, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
}>, {
|
|
@@ -55,32 +55,32 @@ declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
|
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
|
|
57
57
|
tenantId: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
appId: {
|
|
62
|
-
type:
|
|
62
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
version: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
promotedBy: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
}>, SchemaModel<{
|
|
74
74
|
version: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
status: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
warnings: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
84
84
|
isOptional: true;
|
|
85
85
|
isArray: true;
|
|
86
86
|
};
|
|
@@ -90,44 +90,44 @@ declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
|
|
|
90
90
|
}[]>;
|
|
91
91
|
declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
|
|
92
92
|
tenantId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
appId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
version: {
|
|
101
|
-
type:
|
|
101
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
environment: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
publishedBy: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
changeSummary: {
|
|
113
|
-
type:
|
|
113
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
114
114
|
isOptional: true;
|
|
115
115
|
};
|
|
116
116
|
}>, SchemaModel<{
|
|
117
117
|
version: {
|
|
118
|
-
type:
|
|
118
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
status: {
|
|
122
|
-
type:
|
|
122
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
previousVersion: {
|
|
126
|
-
type:
|
|
126
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
127
127
|
isOptional: true;
|
|
128
128
|
};
|
|
129
129
|
publishedAt: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema540.FieldType<Date, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
}>, {
|
|
@@ -136,40 +136,40 @@ declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
|
|
|
136
136
|
}[]>;
|
|
137
137
|
declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
|
|
138
138
|
tenantId: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
appId: {
|
|
143
|
-
type:
|
|
143
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
toVersion: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
environment: {
|
|
151
|
-
type:
|
|
151
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
152
152
|
isOptional: true;
|
|
153
153
|
};
|
|
154
154
|
rolledBackBy: {
|
|
155
|
-
type:
|
|
155
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
reason: {
|
|
159
|
-
type:
|
|
159
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
}>, SchemaModel<{
|
|
163
163
|
newVersion: {
|
|
164
|
-
type:
|
|
164
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
status: {
|
|
168
|
-
type:
|
|
168
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
169
169
|
isOptional: false;
|
|
170
170
|
};
|
|
171
171
|
rolledBackFrom: {
|
|
172
|
-
type:
|
|
172
|
+
type: _contractspec_lib_schema540.FieldType<number, number>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
}>, {
|
|
@@ -178,22 +178,22 @@ declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
|
|
|
178
178
|
}[]>;
|
|
179
179
|
declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
|
|
180
180
|
tenantId: {
|
|
181
|
-
type:
|
|
181
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
appId: {
|
|
185
|
-
type:
|
|
185
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
}>, SchemaModel<{
|
|
189
189
|
versions: {
|
|
190
190
|
type: SchemaModel<{
|
|
191
191
|
meta: {
|
|
192
|
-
type:
|
|
192
|
+
type: _contractspec_lib_schema540.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
config: {
|
|
196
|
-
type:
|
|
196
|
+
type: _contractspec_lib_schema540.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
}>;
|
|
@@ -203,35 +203,35 @@ declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
|
|
|
203
203
|
transitions: {
|
|
204
204
|
type: SchemaModel<{
|
|
205
205
|
tenantId: {
|
|
206
|
-
type:
|
|
206
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
appId: {
|
|
210
|
-
type:
|
|
210
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
fromStatus: {
|
|
214
|
-
type:
|
|
214
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
toStatus: {
|
|
218
|
-
type:
|
|
218
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
version: {
|
|
222
|
-
type:
|
|
222
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
223
223
|
isOptional: false;
|
|
224
224
|
};
|
|
225
225
|
timestamp: {
|
|
226
|
-
type:
|
|
226
|
+
type: _contractspec_lib_schema540.FieldType<Date, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
actor: {
|
|
230
|
-
type:
|
|
230
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
231
231
|
isOptional: false;
|
|
232
232
|
};
|
|
233
233
|
reason: {
|
|
234
|
-
type:
|
|
234
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
235
235
|
isOptional: true;
|
|
236
236
|
};
|
|
237
237
|
}>;
|
|
@@ -241,26 +241,26 @@ declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
|
|
|
241
241
|
}>, undefined>;
|
|
242
242
|
declare const GetTenantConfigVersionQuery: OperationSpec<SchemaModel<{
|
|
243
243
|
tenantId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
appId: {
|
|
248
|
-
type:
|
|
248
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
version: {
|
|
252
|
-
type:
|
|
252
|
+
type: _contractspec_lib_schema540.FieldType<string, string>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
255
|
}>, SchemaModel<{
|
|
256
256
|
version: {
|
|
257
257
|
type: SchemaModel<{
|
|
258
258
|
meta: {
|
|
259
|
-
type:
|
|
259
|
+
type: _contractspec_lib_schema540.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
config: {
|
|
263
|
-
type:
|
|
263
|
+
type: _contractspec_lib_schema540.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CapabilityRef, CapabilityRegistry, CapabilitySpec } from "../capabilities/capabilities.js";
|
|
2
1
|
import { PolicyRef, PolicySpec } from "../policy/spec.js";
|
|
2
|
+
import { CapabilityRef, CapabilityRegistry, CapabilitySpec } from "../capabilities/capabilities.js";
|
|
3
3
|
import { TelemetryRegistry, TelemetrySpec } from "../telemetry/spec.js";
|
|
4
4
|
import "../capabilities/index.js";
|
|
5
5
|
import { ExperimentRef, ExperimentRegistry, ExperimentSpec } from "../experiments/spec.js";
|
|
6
|
-
import { FeatureModuleSpec, FeatureRef } from "../features/types.js";
|
|
7
|
-
import { FeatureRegistry } from "../features/registry.js";
|
|
8
|
-
import "../features/index.js";
|
|
9
6
|
import { DataViewSpec } from "../data-views/spec.js";
|
|
10
7
|
import { DataViewRegistry } from "../data-views/registry.js";
|
|
11
8
|
import "../data-views/index.js";
|
|
9
|
+
import { FeatureModuleSpec, FeatureRef } from "../features/types.js";
|
|
10
|
+
import { FeatureRegistry } from "../features/registry.js";
|
|
11
|
+
import "../features/index.js";
|
|
12
12
|
import { WorkflowRegistry, WorkflowSpec } from "../workflow/spec.js";
|
|
13
13
|
import { PolicyRegistry } from "../policy/registry.js";
|
|
14
14
|
import { ThemeRegistry, ThemeSpec } from "../themes.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CapabilityRef } from "../capabilities/capabilities.js";
|
|
2
|
-
import { OwnerShipMeta } from "../ownership.js";
|
|
3
1
|
import { PolicyRef } from "../policy/spec.js";
|
|
2
|
+
import { CapabilityRef } from "../capabilities/capabilities.js";
|
|
3
|
+
import { SpecContractRegistry } from "../registry.js";
|
|
4
4
|
import "../capabilities/index.js";
|
|
5
5
|
import { ExperimentRef } from "../experiments/spec.js";
|
|
6
6
|
import { FeatureModuleSpec, FeatureRef } from "../features/types.js";
|
|
@@ -12,7 +12,7 @@ import { AppKnowledgeBinding } from "../knowledge/binding.js";
|
|
|
12
12
|
import { BrandingDefaults, TenantBrandingConfig } from "./branding.js";
|
|
13
13
|
import { Locale, TranslationEntry } from "../translations/catalog.js";
|
|
14
14
|
import { ConfigStatus } from "./lifecycle.js";
|
|
15
|
-
import {
|
|
15
|
+
import { OwnerShipMeta } from "../ownership.js";
|
|
16
16
|
|
|
17
17
|
//#region src/app-config/spec.d.ts
|
|
18
18
|
interface SpecPointer {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PresentationSpec } from "../presentations/presentations.js";
|
|
2
1
|
import { AnyOperationSpec } from "../operations/operation.js";
|
|
2
|
+
import { PresentationSpec } from "../presentations/presentations.js";
|
|
3
3
|
import { CapabilityContext } from "./context.js";
|
|
4
4
|
import { AnyEventSpec } from "../events.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CapabilityRegistry, CapabilitySurface } from "./capabilities.js";
|
|
2
|
-
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
3
2
|
import { PresentationRegistry } from "../presentations/registry.js";
|
|
4
3
|
import "../presentations/index.js";
|
|
4
|
+
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
5
5
|
import { EventRegistry } from "../events.js";
|
|
6
6
|
|
|
7
7
|
//#region src/capabilities/validation.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataViewRef } from "../features/types.js";
|
|
2
1
|
import { DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewSections, DataViewSource, DataViewStates, DataViewTableColumn, DataViewTableConfig } from "./types.js";
|
|
3
2
|
import { DataViewSpec, defineDataView } from "./spec.js";
|
|
4
3
|
import { DataViewRegistry, dataViewKey } from "./registry.js";
|
|
5
4
|
import "./index.js";
|
|
5
|
+
import { DataViewRef } from "../features/types.js";
|
|
6
6
|
export { DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewRef, DataViewRegistry, DataViewSections, DataViewSource, DataViewSpec, DataViewStates, DataViewTableColumn, DataViewTableConfig, dataViewKey, defineDataView };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataViewRef } from "../features/types.js";
|
|
2
1
|
import { DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewSections, DataViewSource, DataViewStates, DataViewTableColumn, DataViewTableConfig } from "./types.js";
|
|
3
2
|
import { DataViewSpec, defineDataView } from "./spec.js";
|
|
4
3
|
import { DataViewRegistry, dataViewKey } from "./registry.js";
|
|
4
|
+
import { DataViewRef } from "../features/types.js";
|
|
5
5
|
export { type DataViewAction, type DataViewBaseConfig, type DataViewConfig, type DataViewDetailConfig, type DataViewField, type DataViewFieldFormat, type DataViewFilter, type DataViewGridConfig, type DataViewKind, type DataViewListConfig, type DataViewMeta, type DataViewRef, DataViewRegistry, type DataViewSections, type DataViewSource, type DataViewSpec, type DataViewStates, type DataViewTableColumn, type DataViewTableConfig, dataViewKey, defineDataView };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataViewSpec } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/data-views/report/contractVerificationTable.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Data view for the contract verification status table rendered in reports.
|
|
7
|
+
*/
|
|
8
|
+
declare const ContractVerificationTableDataView: DataViewSpec;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ContractVerificationTableDataView };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { GetContractVerificationStatusQuery } from "../../operations/report/getContractVerificationStatus.js";
|
|
3
|
+
import { defineDataView } from "../spec.js";
|
|
4
|
+
|
|
5
|
+
//#region src/data-views/report/contractVerificationTable.ts
|
|
6
|
+
/**
|
|
7
|
+
* Data view for the contract verification status table rendered in reports.
|
|
8
|
+
*/
|
|
9
|
+
const ContractVerificationTableDataView = defineDataView({
|
|
10
|
+
meta: {
|
|
11
|
+
key: "report.contractVerificationTable",
|
|
12
|
+
title: "Contract Verification Table",
|
|
13
|
+
version: "1.0.0",
|
|
14
|
+
description: "Table view of per-contract verification status for the impact report.",
|
|
15
|
+
domain: "report",
|
|
16
|
+
owners: ["platform.core"],
|
|
17
|
+
tags: [
|
|
18
|
+
"report",
|
|
19
|
+
"data-view",
|
|
20
|
+
"verification"
|
|
21
|
+
],
|
|
22
|
+
stability: StabilityEnum.Experimental,
|
|
23
|
+
entity: "contract-verification"
|
|
24
|
+
},
|
|
25
|
+
source: { primary: {
|
|
26
|
+
key: GetContractVerificationStatusQuery.meta.key,
|
|
27
|
+
version: GetContractVerificationStatusQuery.meta.version
|
|
28
|
+
} },
|
|
29
|
+
view: {
|
|
30
|
+
kind: "table",
|
|
31
|
+
fields: [
|
|
32
|
+
{
|
|
33
|
+
key: "name",
|
|
34
|
+
label: "Contract / Endpoint / Event",
|
|
35
|
+
dataPath: "name"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "timeSinceVerified",
|
|
39
|
+
label: "Time since verified",
|
|
40
|
+
dataPath: "lastVerifiedDate"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "driftMismatches",
|
|
44
|
+
label: "Drift debt",
|
|
45
|
+
dataPath: "driftMismatches",
|
|
46
|
+
format: "number",
|
|
47
|
+
sortable: true
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: "surfaces",
|
|
51
|
+
label: "Surfaces covered",
|
|
52
|
+
dataPath: "surfaces",
|
|
53
|
+
format: "badge"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "lastVerifiedSha",
|
|
57
|
+
label: "Last verified commit",
|
|
58
|
+
dataPath: "lastVerifiedSha",
|
|
59
|
+
width: "sm"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
primaryField: "name",
|
|
63
|
+
secondaryFields: ["driftMismatches", "timeSinceVerified"],
|
|
64
|
+
columns: [
|
|
65
|
+
{
|
|
66
|
+
field: "name",
|
|
67
|
+
width: "lg"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
field: "lastVerifiedSha",
|
|
71
|
+
width: "sm"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
field: "timeSinceVerified",
|
|
75
|
+
width: "sm"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
field: "surfaces",
|
|
79
|
+
width: "md"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
field: "driftMismatches",
|
|
83
|
+
width: "xs",
|
|
84
|
+
align: "right"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
policy: {
|
|
89
|
+
flags: [],
|
|
90
|
+
pii: []
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
export { ContractVerificationTableDataView };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../operations/index.js";
|
|
2
|
-
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
3
1
|
import { DataViewSpec } from "./spec.js";
|
|
4
2
|
import { DataViewRegistry } from "./registry.js";
|
|
5
3
|
import "./index.js";
|
|
4
|
+
import "../operations/index.js";
|
|
6
5
|
import { HandlerCtx } from "../types.js";
|
|
6
|
+
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
7
7
|
|
|
8
8
|
//#region src/data-views/runtime.d.ts
|
|
9
9
|
interface DataViewRuntimeConfig {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExperimentRef } from "../experiments/spec.js";
|
|
2
|
-
import { DataViewRef } from "../features/types.js";
|
|
3
2
|
import { DataViewConfig, DataViewMeta, DataViewSource, DataViewStates } from "./types.js";
|
|
3
|
+
import { DataViewRef } from "../features/types.js";
|
|
4
4
|
|
|
5
5
|
//#region src/data-views/spec.d.ts
|
|
6
6
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CapabilitySpec } from "../../capabilities/capabilities.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/docs/capabilities/documentationSystem.capability.d.ts
|
|
5
|
+
declare const DocumentationSystemCapability: CapabilitySpec;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DocumentationSystemCapability };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineCapability } from "../../capabilities/capabilities.js";
|
|
2
|
+
import "../../capabilities/index.js";
|
|
3
|
+
import { DOCS_DOMAIN, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
|
|
4
|
+
|
|
5
|
+
//#region src/docs/capabilities/documentationSystem.capability.ts
|
|
6
|
+
const DocumentationSystemCapability = defineCapability({
|
|
7
|
+
meta: {
|
|
8
|
+
key: "docs.system",
|
|
9
|
+
version: "1.0.0",
|
|
10
|
+
kind: "ui",
|
|
11
|
+
title: "Documentation System",
|
|
12
|
+
description: "End-to-end docs generation, indexing, and presentation.",
|
|
13
|
+
domain: DOCS_DOMAIN,
|
|
14
|
+
owners: DOCS_OWNERS,
|
|
15
|
+
tags: [...DOCS_TAGS, "system"],
|
|
16
|
+
stability: DOCS_STABILITY
|
|
17
|
+
},
|
|
18
|
+
provides: [
|
|
19
|
+
{
|
|
20
|
+
surface: "operation",
|
|
21
|
+
key: "docs.generate",
|
|
22
|
+
version: "1.0.0",
|
|
23
|
+
description: "Generate documentation artifacts."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
surface: "operation",
|
|
27
|
+
key: "docs.publish",
|
|
28
|
+
version: "1.0.0",
|
|
29
|
+
description: "Publish documentation artifacts."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
surface: "operation",
|
|
33
|
+
key: "docs.search",
|
|
34
|
+
version: "1.0.0",
|
|
35
|
+
description: "Index and search DocBlocks."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
surface: "operation",
|
|
39
|
+
key: "docs.contract.reference",
|
|
40
|
+
version: "1.0.0",
|
|
41
|
+
description: "Resolve contract references for docs."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
surface: "event",
|
|
45
|
+
key: "docs.generated",
|
|
46
|
+
version: "1.0.0",
|
|
47
|
+
description: "Docs generation completed."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
surface: "event",
|
|
51
|
+
key: "docs.published",
|
|
52
|
+
version: "1.0.0",
|
|
53
|
+
description: "Docs publish completed."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
surface: "presentation",
|
|
57
|
+
key: "docs.layout",
|
|
58
|
+
version: "1.0.0",
|
|
59
|
+
description: "Docs layout presentation."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
surface: "presentation",
|
|
63
|
+
key: "docs.reference.page",
|
|
64
|
+
version: "1.0.0",
|
|
65
|
+
description: "Docs reference page presentation."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { DocumentationSystemCapability };
|