@contractspec/lib.contracts 0.0.0-canary-20260119225944 → 0.0.0-canary-20260128200020

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