@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.
Files changed (122) hide show
  1. package/dist/app-config/{contracts.d.ts → app-config.contracts.d.ts} +51 -51
  2. package/dist/app-config/{contracts.js → app-config.contracts.js} +1 -1
  3. package/dist/app-config/events.d.ts +27 -27
  4. package/dist/app-config/lifecycle-contracts.d.ts +54 -54
  5. package/dist/app-config/runtime.d.ts +4 -4
  6. package/dist/app-config/spec.d.ts +3 -3
  7. package/dist/capabilities/guards.d.ts +1 -1
  8. package/dist/capabilities/validation.d.ts +1 -1
  9. package/dist/data-views/data-views.d.ts +1 -1
  10. package/dist/data-views/index.d.ts +1 -1
  11. package/dist/data-views/registry.d.ts +1 -1
  12. package/dist/data-views/report/contractVerificationTable.d.ts +10 -0
  13. package/dist/data-views/report/contractVerificationTable.js +95 -0
  14. package/dist/data-views/runtime.d.ts +2 -2
  15. package/dist/data-views/spec.d.ts +1 -1
  16. package/dist/data-views/types.d.ts +1 -1
  17. package/dist/docs/capabilities/documentationSystem.capability.d.ts +7 -0
  18. package/dist/docs/capabilities/documentationSystem.capability.js +71 -0
  19. package/dist/docs/capabilities/index.d.ts +2 -0
  20. package/dist/docs/capabilities/index.js +3 -0
  21. package/dist/docs/commands/docsGenerate.command.d.ts +95 -0
  22. package/dist/docs/commands/docsGenerate.command.js +142 -0
  23. package/dist/docs/commands/docsPublish.command.d.ts +64 -0
  24. package/dist/docs/commands/docsPublish.command.js +107 -0
  25. package/dist/docs/commands/index.d.ts +3 -0
  26. package/dist/docs/commands/index.js +4 -0
  27. package/dist/docs/constants.d.ts +7 -0
  28. package/dist/docs/constants.js +10 -0
  29. package/dist/docs/contracts.d.ts +442 -0
  30. package/dist/docs/contracts.js +58 -0
  31. package/dist/docs/ensure-docblocks.d.ts +1 -0
  32. package/dist/docs/ensure-docblocks.js +1 -0
  33. package/dist/docs/events/docsGenerated.event.d.ts +62 -0
  34. package/dist/docs/events/docsGenerated.event.js +53 -0
  35. package/dist/docs/events/docsPublished.event.d.ts +70 -0
  36. package/dist/docs/events/docsPublished.event.js +57 -0
  37. package/dist/docs/events/index.d.ts +3 -0
  38. package/dist/docs/events/index.js +4 -0
  39. package/dist/docs/forms/docsSearch.form.d.ts +22 -0
  40. package/dist/docs/forms/docsSearch.form.js +113 -0
  41. package/dist/docs/forms/index.d.ts +2 -0
  42. package/dist/docs/forms/index.js +3 -0
  43. package/dist/docs/index.d.ts +23 -1
  44. package/dist/docs/index.js +25 -1
  45. package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
  46. package/dist/docs/presentations/docsLayout.presentation.js +35 -0
  47. package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
  48. package/dist/docs/presentations/docsReferencePage.presentation.js +35 -0
  49. package/dist/docs/presentations/index.d.ts +3 -0
  50. package/dist/docs/presentations/index.js +4 -0
  51. package/dist/docs/queries/contractReference.query.d.ts +217 -0
  52. package/dist/docs/queries/contractReference.query.js +125 -0
  53. package/dist/docs/queries/docsIndex.query.d.ts +272 -0
  54. package/dist/docs/queries/docsIndex.query.js +133 -0
  55. package/dist/docs/queries/index.d.ts +3 -0
  56. package/dist/docs/queries/index.js +4 -0
  57. package/dist/docs/tech/cli.docblock.js +10 -0
  58. package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
  59. package/dist/docs/tech/docs-system.docblock.js +128 -0
  60. package/dist/docs/tech/report-verification-table.docblock.d.ts +1 -0
  61. package/dist/docs/tech/report-verification-table.docblock.js +50 -0
  62. package/dist/docs/views/contractReference.dataView.d.ts +7 -0
  63. package/dist/docs/views/contractReference.dataView.js +80 -0
  64. package/dist/docs/views/docsIndex.dataView.d.ts +7 -0
  65. package/dist/docs/views/docsIndex.dataView.js +136 -0
  66. package/dist/docs/views/exampleCatalog.dataView.d.ts +7 -0
  67. package/dist/docs/views/exampleCatalog.dataView.js +91 -0
  68. package/dist/docs/views/index.d.ts +4 -0
  69. package/dist/docs/views/index.js +5 -0
  70. package/dist/events.d.ts +1 -1
  71. package/dist/examples/schema.d.ts +7 -7
  72. package/dist/examples/types.d.ts +1 -1
  73. package/dist/experiments/spec.d.ts +2 -2
  74. package/dist/features/install.d.ts +1 -1
  75. package/dist/features/types.d.ts +3 -3
  76. package/dist/forms/forms.d.ts +1 -1
  77. package/dist/index.d.ts +40 -22
  78. package/dist/index.js +20 -2
  79. package/dist/install.d.ts +1 -1
  80. package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
  81. package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
  82. package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
  83. package/dist/integrations/openbanking/models.d.ts +55 -55
  84. package/dist/integrations/operations.d.ts +102 -102
  85. package/dist/integrations/spec.d.ts +2 -2
  86. package/dist/jsonschema.d.ts +1 -1
  87. package/dist/knowledge/operations.d.ts +66 -66
  88. package/dist/knowledge/spec.d.ts +1 -1
  89. package/dist/llm/exporters.d.ts +3 -3
  90. package/dist/llm/types.d.ts +1 -1
  91. package/dist/markdown.d.ts +1 -1
  92. package/dist/onboarding-base.d.ts +29 -29
  93. package/dist/operations/index.d.ts +4 -1
  94. package/dist/operations/index.js +4 -1
  95. package/dist/operations/operation.d.ts +3 -3
  96. package/dist/operations/registry.d.ts +1 -1
  97. package/dist/operations/report/getContractVerificationStatus.d.ts +75 -0
  98. package/dist/operations/report/getContractVerificationStatus.js +96 -0
  99. package/dist/operations/report/index.d.ts +13 -0
  100. package/dist/operations/report/index.js +45 -0
  101. package/dist/policy/validation.d.ts +1 -1
  102. package/dist/presentations/registry.d.ts +1 -1
  103. package/dist/registry.d.ts +1 -1
  104. package/dist/serialization/serializers.d.ts +3 -3
  105. package/dist/server/rest-elysia.d.ts +1 -1
  106. package/dist/server/rest-express.d.ts +1 -1
  107. package/dist/server/rest-generic.d.ts +1 -1
  108. package/dist/server/rest-next-app.d.ts +1 -1
  109. package/dist/server/rest-next-mcp.d.ts +1 -1
  110. package/dist/server/rest-next-pages.d.ts +1 -1
  111. package/dist/telemetry/spec.d.ts +1 -1
  112. package/dist/telemetry/tracker.d.ts +3 -2
  113. package/dist/tests/runner.d.ts +1 -1
  114. package/dist/themes.d.ts +1 -1
  115. package/dist/types.d.ts +2 -2
  116. package/dist/workflow/spec.d.ts +2 -2
  117. package/dist/workflow/validation.d.ts +2 -2
  118. package/dist/workspace-config/contractsrc-schema.d.ts +3 -3
  119. package/dist/workspace-config/contractsrc-schema.js +1 -0
  120. package/dist/workspace-config/contractsrc-types.d.ts +7 -8
  121. package/dist/workspace-config/index.d.ts +2 -2
  122. package/package.json +35 -8
@@ -0,0 +1,442 @@
1
+ import { OperationSpec } from "../operations/operation.js";
2
+ import { PresentationSpec } from "../presentations/presentations.js";
3
+ import { PresentationRegistry } from "../presentations/registry.js";
4
+ import "../presentations/index.js";
5
+ import { DataViewSpec } from "../data-views/spec.js";
6
+ import { DataViewRegistry } from "../data-views/registry.js";
7
+ import "../data-views/index.js";
8
+ import { OperationSpecRegistry } from "../operations/registry.js";
9
+ import { FormRegistry, FormSpec } from "../forms/forms.js";
10
+ import "../forms/index.js";
11
+ import { EventRegistry, EventSpec, EventSpecMeta } from "../events.js";
12
+ import "../index.js";
13
+ import * as _contractspec_lib_schema438 from "@contractspec/lib.schema";
14
+
15
+ //#region src/docs/contracts.d.ts
16
+ declare const docsOperationContracts: {
17
+ DocsIndexQuery: OperationSpec<_contractspec_lib_schema438.SchemaModel<{
18
+ query: {
19
+ type: _contractspec_lib_schema438.FieldType<string, string>;
20
+ isOptional: true;
21
+ };
22
+ tag: {
23
+ type: _contractspec_lib_schema438.FieldType<string, string>;
24
+ isOptional: true;
25
+ isArray: true;
26
+ };
27
+ visibility: {
28
+ type: _contractspec_lib_schema438.FieldType<string, string>;
29
+ isOptional: true;
30
+ };
31
+ kind: {
32
+ type: _contractspec_lib_schema438.FieldType<string, string>;
33
+ isOptional: true;
34
+ };
35
+ limit: {
36
+ type: _contractspec_lib_schema438.FieldType<number, number>;
37
+ isOptional: true;
38
+ };
39
+ offset: {
40
+ type: _contractspec_lib_schema438.FieldType<number, number>;
41
+ isOptional: true;
42
+ };
43
+ }>, _contractspec_lib_schema438.SchemaModel<{
44
+ items: {
45
+ type: _contractspec_lib_schema438.SchemaModel<{
46
+ id: {
47
+ type: _contractspec_lib_schema438.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ title: {
51
+ type: _contractspec_lib_schema438.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ summary: {
55
+ type: _contractspec_lib_schema438.FieldType<string, string>;
56
+ isOptional: true;
57
+ };
58
+ route: {
59
+ type: _contractspec_lib_schema438.FieldType<string, string>;
60
+ isOptional: true;
61
+ };
62
+ visibility: {
63
+ type: _contractspec_lib_schema438.FieldType<string, string>;
64
+ isOptional: true;
65
+ };
66
+ kind: {
67
+ type: _contractspec_lib_schema438.FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ version: {
71
+ type: _contractspec_lib_schema438.FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ tags: {
75
+ type: _contractspec_lib_schema438.FieldType<string, string>;
76
+ isOptional: true;
77
+ isArray: true;
78
+ };
79
+ }>;
80
+ isOptional: true;
81
+ isArray: true;
82
+ };
83
+ docs: {
84
+ type: _contractspec_lib_schema438.SchemaModel<{
85
+ id: {
86
+ type: _contractspec_lib_schema438.FieldType<string, string>;
87
+ isOptional: false;
88
+ };
89
+ title: {
90
+ type: _contractspec_lib_schema438.FieldType<string, string>;
91
+ isOptional: false;
92
+ };
93
+ summary: {
94
+ type: _contractspec_lib_schema438.FieldType<string, string>;
95
+ isOptional: true;
96
+ };
97
+ route: {
98
+ type: _contractspec_lib_schema438.FieldType<string, string>;
99
+ isOptional: true;
100
+ };
101
+ visibility: {
102
+ type: _contractspec_lib_schema438.FieldType<string, string>;
103
+ isOptional: true;
104
+ };
105
+ kind: {
106
+ type: _contractspec_lib_schema438.FieldType<string, string>;
107
+ isOptional: true;
108
+ };
109
+ version: {
110
+ type: _contractspec_lib_schema438.FieldType<string, string>;
111
+ isOptional: true;
112
+ };
113
+ tags: {
114
+ type: _contractspec_lib_schema438.FieldType<string, string>;
115
+ isOptional: true;
116
+ isArray: true;
117
+ };
118
+ }>;
119
+ isOptional: false;
120
+ isArray: true;
121
+ };
122
+ total: {
123
+ type: _contractspec_lib_schema438.FieldType<number, number>;
124
+ isOptional: true;
125
+ };
126
+ nextOffset: {
127
+ type: _contractspec_lib_schema438.FieldType<number, number>;
128
+ isOptional: true;
129
+ };
130
+ }>, undefined>;
131
+ ContractReferenceQuery: OperationSpec<_contractspec_lib_schema438.SchemaModel<{
132
+ key: {
133
+ type: _contractspec_lib_schema438.FieldType<string, string>;
134
+ isOptional: false;
135
+ };
136
+ version: {
137
+ type: _contractspec_lib_schema438.FieldType<string, string>;
138
+ isOptional: true;
139
+ };
140
+ type: {
141
+ type: _contractspec_lib_schema438.FieldType<string, string>;
142
+ isOptional: true;
143
+ };
144
+ format: {
145
+ type: _contractspec_lib_schema438.FieldType<string, string>;
146
+ isOptional: true;
147
+ };
148
+ includeSchema: {
149
+ type: _contractspec_lib_schema438.FieldType<boolean, boolean>;
150
+ isOptional: true;
151
+ };
152
+ }>, _contractspec_lib_schema438.SchemaModel<{
153
+ reference: {
154
+ type: _contractspec_lib_schema438.SchemaModel<{
155
+ key: {
156
+ type: _contractspec_lib_schema438.FieldType<string, string>;
157
+ isOptional: false;
158
+ };
159
+ version: {
160
+ type: _contractspec_lib_schema438.FieldType<string, string>;
161
+ isOptional: false;
162
+ };
163
+ type: {
164
+ type: _contractspec_lib_schema438.FieldType<string, string>;
165
+ isOptional: false;
166
+ };
167
+ title: {
168
+ type: _contractspec_lib_schema438.FieldType<string, string>;
169
+ isOptional: true;
170
+ };
171
+ description: {
172
+ type: _contractspec_lib_schema438.FieldType<string, string>;
173
+ isOptional: true;
174
+ };
175
+ markdown: {
176
+ type: _contractspec_lib_schema438.FieldType<string, string>;
177
+ isOptional: true;
178
+ };
179
+ route: {
180
+ type: _contractspec_lib_schema438.FieldType<string, string>;
181
+ isOptional: true;
182
+ };
183
+ schema: {
184
+ type: _contractspec_lib_schema438.FieldType<Record<string, unknown>, Record<string, unknown>>;
185
+ isOptional: true;
186
+ };
187
+ policy: {
188
+ type: _contractspec_lib_schema438.FieldType<Record<string, unknown>, Record<string, unknown>>;
189
+ isOptional: true;
190
+ };
191
+ tags: {
192
+ type: _contractspec_lib_schema438.FieldType<string, string>;
193
+ isOptional: true;
194
+ isArray: true;
195
+ };
196
+ owners: {
197
+ type: _contractspec_lib_schema438.FieldType<string, string>;
198
+ isOptional: true;
199
+ isArray: true;
200
+ };
201
+ stability: {
202
+ type: _contractspec_lib_schema438.FieldType<string, string>;
203
+ isOptional: true;
204
+ };
205
+ }>;
206
+ isOptional: false;
207
+ };
208
+ }>, undefined>;
209
+ DocsGenerateCommand: OperationSpec<_contractspec_lib_schema438.SchemaModel<{
210
+ workspaceRoot: {
211
+ type: _contractspec_lib_schema438.FieldType<string, string>;
212
+ isOptional: true;
213
+ };
214
+ outputDir: {
215
+ type: _contractspec_lib_schema438.FieldType<string, string>;
216
+ isOptional: true;
217
+ };
218
+ version: {
219
+ type: _contractspec_lib_schema438.FieldType<string, string>;
220
+ isOptional: true;
221
+ };
222
+ formats: {
223
+ type: _contractspec_lib_schema438.FieldType<string, string>;
224
+ isOptional: true;
225
+ isArray: true;
226
+ };
227
+ includeInternal: {
228
+ type: _contractspec_lib_schema438.FieldType<boolean, boolean>;
229
+ isOptional: true;
230
+ };
231
+ includeExperimental: {
232
+ type: _contractspec_lib_schema438.FieldType<boolean, boolean>;
233
+ isOptional: true;
234
+ };
235
+ contractFilter: {
236
+ type: _contractspec_lib_schema438.FieldType<string, string>;
237
+ isOptional: true;
238
+ };
239
+ docblockFilter: {
240
+ type: _contractspec_lib_schema438.FieldType<string, string>;
241
+ isOptional: true;
242
+ };
243
+ dryRun: {
244
+ type: _contractspec_lib_schema438.FieldType<boolean, boolean>;
245
+ isOptional: true;
246
+ };
247
+ }>, _contractspec_lib_schema438.SchemaModel<{
248
+ buildId: {
249
+ type: _contractspec_lib_schema438.FieldType<string, string>;
250
+ isOptional: false;
251
+ };
252
+ version: {
253
+ type: _contractspec_lib_schema438.FieldType<string, string>;
254
+ isOptional: true;
255
+ };
256
+ generatedAt: {
257
+ type: _contractspec_lib_schema438.FieldType<Date, string>;
258
+ isOptional: false;
259
+ };
260
+ outputDir: {
261
+ type: _contractspec_lib_schema438.FieldType<string, string>;
262
+ isOptional: true;
263
+ };
264
+ artifacts: {
265
+ type: _contractspec_lib_schema438.SchemaModel<{
266
+ path: {
267
+ type: _contractspec_lib_schema438.FieldType<string, string>;
268
+ isOptional: false;
269
+ };
270
+ format: {
271
+ type: _contractspec_lib_schema438.FieldType<string, string>;
272
+ isOptional: true;
273
+ };
274
+ bytes: {
275
+ type: _contractspec_lib_schema438.FieldType<number, number>;
276
+ isOptional: true;
277
+ };
278
+ kind: {
279
+ type: _contractspec_lib_schema438.FieldType<string, string>;
280
+ isOptional: true;
281
+ };
282
+ }>;
283
+ isOptional: true;
284
+ isArray: true;
285
+ };
286
+ warnings: {
287
+ type: _contractspec_lib_schema438.FieldType<string, string>;
288
+ isOptional: true;
289
+ isArray: true;
290
+ };
291
+ }>, {
292
+ ref: EventSpecMeta;
293
+ when: string;
294
+ }[]>;
295
+ DocsPublishCommand: OperationSpec<_contractspec_lib_schema438.SchemaModel<{
296
+ buildId: {
297
+ type: _contractspec_lib_schema438.FieldType<string, string>;
298
+ isOptional: false;
299
+ };
300
+ version: {
301
+ type: _contractspec_lib_schema438.FieldType<string, string>;
302
+ isOptional: true;
303
+ };
304
+ environment: {
305
+ type: _contractspec_lib_schema438.FieldType<string, string>;
306
+ isOptional: true;
307
+ };
308
+ deployTarget: {
309
+ type: _contractspec_lib_schema438.FieldType<string, string>;
310
+ isOptional: true;
311
+ };
312
+ artifactPath: {
313
+ type: _contractspec_lib_schema438.FieldType<string, string>;
314
+ isOptional: true;
315
+ };
316
+ dryRun: {
317
+ type: _contractspec_lib_schema438.FieldType<boolean, boolean>;
318
+ isOptional: true;
319
+ };
320
+ notes: {
321
+ type: _contractspec_lib_schema438.FieldType<string, string>;
322
+ isOptional: true;
323
+ };
324
+ }>, _contractspec_lib_schema438.SchemaModel<{
325
+ publishId: {
326
+ type: _contractspec_lib_schema438.FieldType<string, string>;
327
+ isOptional: false;
328
+ };
329
+ publishedAt: {
330
+ type: _contractspec_lib_schema438.FieldType<Date, string>;
331
+ isOptional: false;
332
+ };
333
+ url: {
334
+ type: _contractspec_lib_schema438.FieldType<string, string>;
335
+ isOptional: true;
336
+ };
337
+ status: {
338
+ type: _contractspec_lib_schema438.FieldType<string, string>;
339
+ isOptional: true;
340
+ };
341
+ warnings: {
342
+ type: _contractspec_lib_schema438.FieldType<string, string>;
343
+ isOptional: true;
344
+ isArray: true;
345
+ };
346
+ }>, {
347
+ ref: EventSpecMeta;
348
+ when: string;
349
+ }[]>;
350
+ };
351
+ declare const docsEventContracts: {
352
+ DocsGeneratedEvent: EventSpec<_contractspec_lib_schema438.SchemaModel<{
353
+ buildId: {
354
+ type: _contractspec_lib_schema438.FieldType<string, string>;
355
+ isOptional: false;
356
+ };
357
+ version: {
358
+ type: _contractspec_lib_schema438.FieldType<string, string>;
359
+ isOptional: true;
360
+ };
361
+ generatedAt: {
362
+ type: _contractspec_lib_schema438.FieldType<Date, string>;
363
+ isOptional: false;
364
+ };
365
+ outputDir: {
366
+ type: _contractspec_lib_schema438.FieldType<string, string>;
367
+ isOptional: true;
368
+ };
369
+ artifactCount: {
370
+ type: _contractspec_lib_schema438.FieldType<number, number>;
371
+ isOptional: true;
372
+ };
373
+ warnings: {
374
+ type: _contractspec_lib_schema438.FieldType<string, string>;
375
+ isOptional: true;
376
+ isArray: true;
377
+ };
378
+ }>>;
379
+ DocsPublishedEvent: EventSpec<_contractspec_lib_schema438.SchemaModel<{
380
+ publishId: {
381
+ type: _contractspec_lib_schema438.FieldType<string, string>;
382
+ isOptional: false;
383
+ };
384
+ version: {
385
+ type: _contractspec_lib_schema438.FieldType<string, string>;
386
+ isOptional: true;
387
+ };
388
+ environment: {
389
+ type: _contractspec_lib_schema438.FieldType<string, string>;
390
+ isOptional: true;
391
+ };
392
+ url: {
393
+ type: _contractspec_lib_schema438.FieldType<string, string>;
394
+ isOptional: true;
395
+ };
396
+ publishedAt: {
397
+ type: _contractspec_lib_schema438.FieldType<Date, string>;
398
+ isOptional: false;
399
+ };
400
+ status: {
401
+ type: _contractspec_lib_schema438.FieldType<string, string>;
402
+ isOptional: true;
403
+ };
404
+ warnings: {
405
+ type: _contractspec_lib_schema438.FieldType<string, string>;
406
+ isOptional: true;
407
+ isArray: true;
408
+ };
409
+ }>>;
410
+ };
411
+ declare const docsPresentationContracts: {
412
+ DocsLayoutPresentation: PresentationSpec;
413
+ DocsReferencePagePresentation: PresentationSpec;
414
+ };
415
+ declare const docsFormContracts: {
416
+ DocsSearchForm: FormSpec<_contractspec_lib_schema438.SchemaModel<{
417
+ query: {
418
+ type: _contractspec_lib_schema438.FieldType<string, string>;
419
+ isOptional: true;
420
+ };
421
+ visibility: {
422
+ type: _contractspec_lib_schema438.FieldType<string, string>;
423
+ isOptional: true;
424
+ };
425
+ kind: {
426
+ type: _contractspec_lib_schema438.FieldType<string, string>;
427
+ isOptional: true;
428
+ };
429
+ }>>;
430
+ };
431
+ declare const docsDataViewContracts: {
432
+ DocsIndexDataView: DataViewSpec;
433
+ ContractReferenceDataView: DataViewSpec;
434
+ ExampleCatalogDataView: DataViewSpec;
435
+ };
436
+ declare function registerDocsOperations(registry: OperationSpecRegistry): OperationSpecRegistry;
437
+ declare function registerDocsEvents(registry: EventRegistry): EventRegistry;
438
+ declare function registerDocsPresentations(registry: PresentationRegistry): PresentationRegistry;
439
+ declare function registerDocsForms(registry: FormRegistry): FormRegistry;
440
+ declare function registerDocsDataViews(registry: DataViewRegistry): DataViewRegistry;
441
+ //#endregion
442
+ export { docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations };
@@ -0,0 +1,58 @@
1
+ import { DocsGeneratedEvent } from "./events/docsGenerated.event.js";
2
+ import { DocsGenerateCommand } from "./commands/docsGenerate.command.js";
3
+ import { DocsPublishedEvent } from "./events/docsPublished.event.js";
4
+ import { DocsPublishCommand } from "./commands/docsPublish.command.js";
5
+ import "./commands/index.js";
6
+ import { DocsIndexQuery } from "./queries/docsIndex.query.js";
7
+ import { ContractReferenceQuery } from "./queries/contractReference.query.js";
8
+ import "./queries/index.js";
9
+ import "./events/index.js";
10
+ import { DocsLayoutPresentation } from "./presentations/docsLayout.presentation.js";
11
+ import { DocsReferencePagePresentation } from "./presentations/docsReferencePage.presentation.js";
12
+ import "./presentations/index.js";
13
+ import { DocsSearchForm } from "./forms/docsSearch.form.js";
14
+ import "./forms/index.js";
15
+ import { DocsIndexDataView } from "./views/docsIndex.dataView.js";
16
+ import { ContractReferenceDataView } from "./views/contractReference.dataView.js";
17
+ import { ExampleCatalogDataView } from "./views/exampleCatalog.dataView.js";
18
+ import "./views/index.js";
19
+
20
+ //#region src/docs/contracts.ts
21
+ const docsOperationContracts = {
22
+ DocsIndexQuery,
23
+ ContractReferenceQuery,
24
+ DocsGenerateCommand,
25
+ DocsPublishCommand
26
+ };
27
+ const docsEventContracts = {
28
+ DocsGeneratedEvent,
29
+ DocsPublishedEvent
30
+ };
31
+ const docsPresentationContracts = {
32
+ DocsLayoutPresentation,
33
+ DocsReferencePagePresentation
34
+ };
35
+ const docsFormContracts = { DocsSearchForm };
36
+ const docsDataViewContracts = {
37
+ DocsIndexDataView,
38
+ ContractReferenceDataView,
39
+ ExampleCatalogDataView
40
+ };
41
+ function registerDocsOperations(registry) {
42
+ return registry.register(DocsIndexQuery).register(ContractReferenceQuery).register(DocsGenerateCommand).register(DocsPublishCommand);
43
+ }
44
+ function registerDocsEvents(registry) {
45
+ return registry.register(DocsGeneratedEvent).register(DocsPublishedEvent);
46
+ }
47
+ function registerDocsPresentations(registry) {
48
+ return registry.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
49
+ }
50
+ function registerDocsForms(registry) {
51
+ return registry.register(DocsSearchForm);
52
+ }
53
+ function registerDocsDataViews(registry) {
54
+ return registry.register(DocsIndexDataView).register(ContractReferenceDataView).register(ExampleCatalogDataView);
55
+ }
56
+
57
+ //#endregion
58
+ export { docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./tech/docs-system.docblock.js";
@@ -0,0 +1,62 @@
1
+ import { EventSpec } from "../../events.js";
2
+ import "../../index.js";
3
+ import * as _contractspec_lib_schema29 from "@contractspec/lib.schema";
4
+ import { SchemaModel } from "@contractspec/lib.schema";
5
+
6
+ //#region src/docs/events/docsGenerated.event.d.ts
7
+ declare const DocsGeneratedPayload: SchemaModel<{
8
+ buildId: {
9
+ type: _contractspec_lib_schema29.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ version: {
13
+ type: _contractspec_lib_schema29.FieldType<string, string>;
14
+ isOptional: true;
15
+ };
16
+ generatedAt: {
17
+ type: _contractspec_lib_schema29.FieldType<Date, string>;
18
+ isOptional: false;
19
+ };
20
+ outputDir: {
21
+ type: _contractspec_lib_schema29.FieldType<string, string>;
22
+ isOptional: true;
23
+ };
24
+ artifactCount: {
25
+ type: _contractspec_lib_schema29.FieldType<number, number>;
26
+ isOptional: true;
27
+ };
28
+ warnings: {
29
+ type: _contractspec_lib_schema29.FieldType<string, string>;
30
+ isOptional: true;
31
+ isArray: true;
32
+ };
33
+ }>;
34
+ declare const DocsGeneratedEvent: EventSpec<SchemaModel<{
35
+ buildId: {
36
+ type: _contractspec_lib_schema29.FieldType<string, string>;
37
+ isOptional: false;
38
+ };
39
+ version: {
40
+ type: _contractspec_lib_schema29.FieldType<string, string>;
41
+ isOptional: true;
42
+ };
43
+ generatedAt: {
44
+ type: _contractspec_lib_schema29.FieldType<Date, string>;
45
+ isOptional: false;
46
+ };
47
+ outputDir: {
48
+ type: _contractspec_lib_schema29.FieldType<string, string>;
49
+ isOptional: true;
50
+ };
51
+ artifactCount: {
52
+ type: _contractspec_lib_schema29.FieldType<number, number>;
53
+ isOptional: true;
54
+ };
55
+ warnings: {
56
+ type: _contractspec_lib_schema29.FieldType<string, string>;
57
+ isOptional: true;
58
+ isArray: true;
59
+ };
60
+ }>>;
61
+ //#endregion
62
+ export { DocsGeneratedEvent, DocsGeneratedPayload };
@@ -0,0 +1,53 @@
1
+ import { defineEvent } from "../../events.js";
2
+ import { DOCS_DOMAIN, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
3
+ import { docId } from "../registry.js";
4
+ import "../ensure-docblocks.js";
5
+ import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
6
+
7
+ //#region src/docs/events/docsGenerated.event.ts
8
+ const DocsGeneratedPayload = new SchemaModel({
9
+ name: "DocsGeneratedPayload",
10
+ fields: {
11
+ buildId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ version: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ generatedAt: {
20
+ type: ScalarTypeEnum.DateTime(),
21
+ isOptional: false
22
+ },
23
+ outputDir: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: true
26
+ },
27
+ artifactCount: {
28
+ type: ScalarTypeEnum.Int_unsecure(),
29
+ isOptional: true
30
+ },
31
+ warnings: {
32
+ type: ScalarTypeEnum.String_unsecure(),
33
+ isOptional: true,
34
+ isArray: true
35
+ }
36
+ }
37
+ });
38
+ const DocsGeneratedEvent = defineEvent({
39
+ meta: {
40
+ key: "docs.generated",
41
+ version: "1.0.0",
42
+ description: "Emitted when documentation artifacts are generated.",
43
+ domain: DOCS_DOMAIN,
44
+ owners: DOCS_OWNERS,
45
+ tags: [...DOCS_TAGS, "generation"],
46
+ stability: DOCS_STABILITY,
47
+ docId: [docId("docs.tech.docs-generator")]
48
+ },
49
+ payload: DocsGeneratedPayload
50
+ });
51
+
52
+ //#endregion
53
+ export { DocsGeneratedEvent, DocsGeneratedPayload };
@@ -0,0 +1,70 @@
1
+ import { EventSpec } from "../../events.js";
2
+ import "../../index.js";
3
+ import * as _contractspec_lib_schema41 from "@contractspec/lib.schema";
4
+ import { SchemaModel } from "@contractspec/lib.schema";
5
+
6
+ //#region src/docs/events/docsPublished.event.d.ts
7
+ declare const DocsPublishedPayload: SchemaModel<{
8
+ publishId: {
9
+ type: _contractspec_lib_schema41.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ version: {
13
+ type: _contractspec_lib_schema41.FieldType<string, string>;
14
+ isOptional: true;
15
+ };
16
+ environment: {
17
+ type: _contractspec_lib_schema41.FieldType<string, string>;
18
+ isOptional: true;
19
+ };
20
+ url: {
21
+ type: _contractspec_lib_schema41.FieldType<string, string>;
22
+ isOptional: true;
23
+ };
24
+ publishedAt: {
25
+ type: _contractspec_lib_schema41.FieldType<Date, string>;
26
+ isOptional: false;
27
+ };
28
+ status: {
29
+ type: _contractspec_lib_schema41.FieldType<string, string>;
30
+ isOptional: true;
31
+ };
32
+ warnings: {
33
+ type: _contractspec_lib_schema41.FieldType<string, string>;
34
+ isOptional: true;
35
+ isArray: true;
36
+ };
37
+ }>;
38
+ declare const DocsPublishedEvent: EventSpec<SchemaModel<{
39
+ publishId: {
40
+ type: _contractspec_lib_schema41.FieldType<string, string>;
41
+ isOptional: false;
42
+ };
43
+ version: {
44
+ type: _contractspec_lib_schema41.FieldType<string, string>;
45
+ isOptional: true;
46
+ };
47
+ environment: {
48
+ type: _contractspec_lib_schema41.FieldType<string, string>;
49
+ isOptional: true;
50
+ };
51
+ url: {
52
+ type: _contractspec_lib_schema41.FieldType<string, string>;
53
+ isOptional: true;
54
+ };
55
+ publishedAt: {
56
+ type: _contractspec_lib_schema41.FieldType<Date, string>;
57
+ isOptional: false;
58
+ };
59
+ status: {
60
+ type: _contractspec_lib_schema41.FieldType<string, string>;
61
+ isOptional: true;
62
+ };
63
+ warnings: {
64
+ type: _contractspec_lib_schema41.FieldType<string, string>;
65
+ isOptional: true;
66
+ isArray: true;
67
+ };
68
+ }>>;
69
+ //#endregion
70
+ export { DocsPublishedEvent, DocsPublishedPayload };