@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.
- package/dist/app-config/contracts.d.ts +51 -51
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +55 -55
- package/dist/app-config/runtime.d.ts +1 -1
- package/dist/app-config/spec.d.ts +2 -2
- package/dist/capabilities/capabilities.d.ts +64 -5
- package/dist/capabilities/capabilities.js +125 -0
- package/dist/capabilities/context.d.ts +88 -0
- package/dist/capabilities/context.js +87 -0
- package/dist/capabilities/docs/capabilities.docblock.js +191 -2
- package/dist/capabilities/guards.d.ts +110 -0
- package/dist/capabilities/guards.js +146 -0
- package/dist/capabilities/index.d.ts +4 -1
- package/dist/capabilities/index.js +4 -1
- package/dist/capabilities/validation.d.ts +76 -0
- package/dist/capabilities/validation.js +141 -0
- package/dist/client/react/feature-render.d.ts +2 -2
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/data-views.d.ts +2 -1
- package/dist/data-views/index.d.ts +2 -1
- package/dist/data-views/registry.d.ts +1 -1
- package/dist/data-views/runtime.d.ts +1 -1
- package/dist/data-views/spec.d.ts +2 -8
- 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 +139 -0
- package/dist/docs/commands/docsPublish.command.d.ts +64 -0
- package/dist/docs/commands/docsPublish.command.js +104 -0
- package/dist/docs/commands/index.d.ts +3 -0
- package/dist/docs/commands/index.js +4 -0
- package/dist/docs/constants.d.ts +15 -0
- package/dist/docs/constants.js +18 -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 -2
- package/dist/docs/index.js +24 -1
- package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsLayout.presentation.js +32 -0
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +32 -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 +122 -0
- package/dist/docs/queries/docsIndex.query.d.ts +272 -0
- package/dist/docs/queries/docsIndex.query.js +130 -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/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 +80 -14
- package/dist/events.js +33 -3
- package/dist/examples/schema.d.ts +19 -19
- package/dist/examples/types.d.ts +1 -1
- package/dist/experiments/spec.d.ts +9 -6
- package/dist/features/index.d.ts +2 -2
- package/dist/features/install.d.ts +4 -4
- package/dist/features/types.d.ts +28 -32
- package/dist/forms/forms.d.ts +1 -1
- package/dist/index.d.ts +54 -28
- package/dist/index.js +28 -3
- package/dist/install.d.ts +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +67 -67
- package/dist/integrations/openbanking/contracts/balances.d.ts +35 -35
- package/dist/integrations/openbanking/contracts/transactions.d.ts +49 -49
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +103 -103
- package/dist/integrations/spec.d.ts +2 -2
- package/dist/jsonschema.d.ts +1 -1
- package/dist/knowledge/operations.d.ts +67 -67
- package/dist/knowledge/spec.d.ts +1 -1
- package/dist/llm/exporters.d.ts +4 -4
- package/dist/llm/types.d.ts +1 -1
- package/dist/markdown.d.ts +2 -2
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/operations/operation.d.ts +8 -2
- package/dist/operations/registry.d.ts +2 -2
- package/dist/ownership.d.ts +133 -8
- package/dist/ownership.js +25 -0
- package/dist/policy/context.d.ts +237 -0
- package/dist/policy/context.js +227 -0
- package/dist/policy/guards.d.ts +145 -0
- package/dist/policy/guards.js +254 -0
- package/dist/policy/index.d.ts +12 -1
- package/dist/policy/index.js +11 -1
- package/dist/policy/spec.d.ts +7 -4
- package/dist/policy/validation.d.ts +67 -0
- package/dist/policy/validation.js +307 -0
- package/dist/presentations/presentations.d.ts +6 -0
- package/dist/presentations/registry.d.ts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/serialization/index.d.ts +3 -0
- package/dist/serialization/index.js +3 -0
- package/dist/serialization/serializers.d.ts +40 -0
- package/dist/serialization/serializers.js +148 -0
- package/dist/serialization/types.d.ts +103 -0
- package/dist/serialization/types.js +0 -0
- 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/tests/runner.d.ts +1 -1
- package/dist/tests/spec.d.ts +17 -12
- package/dist/themes.d.ts +8 -5
- package/dist/translations/index.d.ts +6 -0
- package/dist/translations/index.js +5 -0
- package/dist/translations/registry.d.ts +144 -0
- package/dist/translations/registry.js +223 -0
- package/dist/translations/spec.d.ts +126 -0
- package/dist/translations/spec.js +31 -0
- package/dist/translations/validation.d.ts +85 -0
- package/dist/translations/validation.js +328 -0
- package/dist/types.d.ts +140 -14
- package/dist/versioning/index.d.ts +2 -1
- package/dist/versioning/index.js +2 -1
- package/dist/versioning/refs.d.ts +179 -0
- package/dist/versioning/refs.js +161 -0
- package/dist/workflow/context.d.ts +191 -0
- package/dist/workflow/context.js +227 -0
- package/dist/workflow/index.d.ts +6 -3
- package/dist/workflow/index.js +4 -2
- package/dist/workflow/spec.d.ts +4 -11
- package/dist/workflow/validation.d.ts +64 -2
- package/dist/workflow/validation.js +194 -1
- package/dist/workspace-config/contractsrc-schema.js +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +3 -3
- package/package.json +47 -8
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { OperationSpec } from "../../operations/operation.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
import * as _contractspec_lib_schema326 from "@contractspec/lib.schema";
|
|
4
|
+
import { SchemaModel } from "@contractspec/lib.schema";
|
|
5
|
+
|
|
6
|
+
//#region src/docs/queries/contractReference.query.d.ts
|
|
7
|
+
declare const ContractReferenceInput: SchemaModel<{
|
|
8
|
+
key: {
|
|
9
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
version: {
|
|
13
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
14
|
+
isOptional: true;
|
|
15
|
+
};
|
|
16
|
+
type: {
|
|
17
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
18
|
+
isOptional: true;
|
|
19
|
+
};
|
|
20
|
+
format: {
|
|
21
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
22
|
+
isOptional: true;
|
|
23
|
+
};
|
|
24
|
+
includeSchema: {
|
|
25
|
+
type: _contractspec_lib_schema326.FieldType<boolean, boolean>;
|
|
26
|
+
isOptional: true;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
declare const ContractReferenceModel: SchemaModel<{
|
|
30
|
+
key: {
|
|
31
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
version: {
|
|
35
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
type: {
|
|
39
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
44
|
+
isOptional: true;
|
|
45
|
+
};
|
|
46
|
+
description: {
|
|
47
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
48
|
+
isOptional: true;
|
|
49
|
+
};
|
|
50
|
+
markdown: {
|
|
51
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
52
|
+
isOptional: true;
|
|
53
|
+
};
|
|
54
|
+
route: {
|
|
55
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
56
|
+
isOptional: true;
|
|
57
|
+
};
|
|
58
|
+
schema: {
|
|
59
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
60
|
+
isOptional: true;
|
|
61
|
+
};
|
|
62
|
+
policy: {
|
|
63
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
64
|
+
isOptional: true;
|
|
65
|
+
};
|
|
66
|
+
tags: {
|
|
67
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
68
|
+
isOptional: true;
|
|
69
|
+
isArray: true;
|
|
70
|
+
};
|
|
71
|
+
owners: {
|
|
72
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
73
|
+
isOptional: true;
|
|
74
|
+
isArray: true;
|
|
75
|
+
};
|
|
76
|
+
stability: {
|
|
77
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
78
|
+
isOptional: true;
|
|
79
|
+
};
|
|
80
|
+
}>;
|
|
81
|
+
declare const ContractReferenceOutput: SchemaModel<{
|
|
82
|
+
reference: {
|
|
83
|
+
type: SchemaModel<{
|
|
84
|
+
key: {
|
|
85
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
version: {
|
|
89
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
type: {
|
|
93
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
title: {
|
|
97
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
description: {
|
|
101
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
markdown: {
|
|
105
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
106
|
+
isOptional: true;
|
|
107
|
+
};
|
|
108
|
+
route: {
|
|
109
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
110
|
+
isOptional: true;
|
|
111
|
+
};
|
|
112
|
+
schema: {
|
|
113
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
114
|
+
isOptional: true;
|
|
115
|
+
};
|
|
116
|
+
policy: {
|
|
117
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
118
|
+
isOptional: true;
|
|
119
|
+
};
|
|
120
|
+
tags: {
|
|
121
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
122
|
+
isOptional: true;
|
|
123
|
+
isArray: true;
|
|
124
|
+
};
|
|
125
|
+
owners: {
|
|
126
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
127
|
+
isOptional: true;
|
|
128
|
+
isArray: true;
|
|
129
|
+
};
|
|
130
|
+
stability: {
|
|
131
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
132
|
+
isOptional: true;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
isOptional: false;
|
|
136
|
+
};
|
|
137
|
+
}>;
|
|
138
|
+
declare const ContractReferenceQuery: OperationSpec<SchemaModel<{
|
|
139
|
+
key: {
|
|
140
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
version: {
|
|
144
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
145
|
+
isOptional: true;
|
|
146
|
+
};
|
|
147
|
+
type: {
|
|
148
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
149
|
+
isOptional: true;
|
|
150
|
+
};
|
|
151
|
+
format: {
|
|
152
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
153
|
+
isOptional: true;
|
|
154
|
+
};
|
|
155
|
+
includeSchema: {
|
|
156
|
+
type: _contractspec_lib_schema326.FieldType<boolean, boolean>;
|
|
157
|
+
isOptional: true;
|
|
158
|
+
};
|
|
159
|
+
}>, SchemaModel<{
|
|
160
|
+
reference: {
|
|
161
|
+
type: SchemaModel<{
|
|
162
|
+
key: {
|
|
163
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
164
|
+
isOptional: false;
|
|
165
|
+
};
|
|
166
|
+
version: {
|
|
167
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
169
|
+
};
|
|
170
|
+
type: {
|
|
171
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
173
|
+
};
|
|
174
|
+
title: {
|
|
175
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
176
|
+
isOptional: true;
|
|
177
|
+
};
|
|
178
|
+
description: {
|
|
179
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
180
|
+
isOptional: true;
|
|
181
|
+
};
|
|
182
|
+
markdown: {
|
|
183
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
184
|
+
isOptional: true;
|
|
185
|
+
};
|
|
186
|
+
route: {
|
|
187
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
188
|
+
isOptional: true;
|
|
189
|
+
};
|
|
190
|
+
schema: {
|
|
191
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
192
|
+
isOptional: true;
|
|
193
|
+
};
|
|
194
|
+
policy: {
|
|
195
|
+
type: _contractspec_lib_schema326.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
tags: {
|
|
199
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
isArray: true;
|
|
202
|
+
};
|
|
203
|
+
owners: {
|
|
204
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
205
|
+
isOptional: true;
|
|
206
|
+
isArray: true;
|
|
207
|
+
};
|
|
208
|
+
stability: {
|
|
209
|
+
type: _contractspec_lib_schema326.FieldType<string, string>;
|
|
210
|
+
isOptional: true;
|
|
211
|
+
};
|
|
212
|
+
}>;
|
|
213
|
+
isOptional: false;
|
|
214
|
+
};
|
|
215
|
+
}>, undefined>;
|
|
216
|
+
//#endregion
|
|
217
|
+
export { ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { defineQuery } 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 { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
|
|
7
|
+
|
|
8
|
+
//#region src/docs/queries/contractReference.query.ts
|
|
9
|
+
const ContractReferenceInput = new SchemaModel({
|
|
10
|
+
name: "ContractReferenceInput",
|
|
11
|
+
fields: {
|
|
12
|
+
key: {
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
|
+
isOptional: false
|
|
15
|
+
},
|
|
16
|
+
version: {
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
|
+
isOptional: true
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
22
|
+
isOptional: true
|
|
23
|
+
},
|
|
24
|
+
format: {
|
|
25
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
26
|
+
isOptional: true
|
|
27
|
+
},
|
|
28
|
+
includeSchema: {
|
|
29
|
+
type: ScalarTypeEnum.Boolean(),
|
|
30
|
+
isOptional: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const ContractReferenceModel = new SchemaModel({
|
|
35
|
+
name: "ContractReference",
|
|
36
|
+
fields: {
|
|
37
|
+
key: {
|
|
38
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
39
|
+
isOptional: false
|
|
40
|
+
},
|
|
41
|
+
version: {
|
|
42
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
43
|
+
isOptional: false
|
|
44
|
+
},
|
|
45
|
+
type: {
|
|
46
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
47
|
+
isOptional: false
|
|
48
|
+
},
|
|
49
|
+
title: {
|
|
50
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
51
|
+
isOptional: true
|
|
52
|
+
},
|
|
53
|
+
description: {
|
|
54
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
55
|
+
isOptional: true
|
|
56
|
+
},
|
|
57
|
+
markdown: {
|
|
58
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
59
|
+
isOptional: true
|
|
60
|
+
},
|
|
61
|
+
route: {
|
|
62
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
63
|
+
isOptional: true
|
|
64
|
+
},
|
|
65
|
+
schema: {
|
|
66
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
67
|
+
isOptional: true
|
|
68
|
+
},
|
|
69
|
+
policy: {
|
|
70
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
71
|
+
isOptional: true
|
|
72
|
+
},
|
|
73
|
+
tags: {
|
|
74
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
75
|
+
isOptional: true,
|
|
76
|
+
isArray: true
|
|
77
|
+
},
|
|
78
|
+
owners: {
|
|
79
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
80
|
+
isOptional: true,
|
|
81
|
+
isArray: true
|
|
82
|
+
},
|
|
83
|
+
stability: {
|
|
84
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
85
|
+
isOptional: true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const ContractReferenceOutput = new SchemaModel({
|
|
90
|
+
name: "ContractReferenceOutput",
|
|
91
|
+
fields: { reference: {
|
|
92
|
+
type: ContractReferenceModel,
|
|
93
|
+
isOptional: false
|
|
94
|
+
} }
|
|
95
|
+
});
|
|
96
|
+
const ContractReferenceQuery = defineQuery({
|
|
97
|
+
meta: {
|
|
98
|
+
key: "docs.contract.reference",
|
|
99
|
+
title: "Contract Reference",
|
|
100
|
+
version: "1.0.0",
|
|
101
|
+
description: "Resolve a contract into a documentation-ready reference.",
|
|
102
|
+
goal: "Expose a canonical reference view for any ContractSpec surface.",
|
|
103
|
+
context: "Used by docs generators and UI to render consistent reference pages.",
|
|
104
|
+
domain: DOCS_DOMAIN,
|
|
105
|
+
owners: DOCS_OWNERS,
|
|
106
|
+
tags: [...DOCS_TAGS, "reference"],
|
|
107
|
+
stability: DOCS_STABILITY,
|
|
108
|
+
docId: [docId("docs.tech.docs-reference")]
|
|
109
|
+
},
|
|
110
|
+
capability: DOCS_CAPABILITY_REF,
|
|
111
|
+
io: {
|
|
112
|
+
input: ContractReferenceInput,
|
|
113
|
+
output: ContractReferenceOutput
|
|
114
|
+
},
|
|
115
|
+
policy: {
|
|
116
|
+
auth: "anonymous",
|
|
117
|
+
pii: []
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
//#endregion
|
|
122
|
+
export { ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery };
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { OperationSpec } from "../../operations/operation.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
import * as _contractspec_lib_schema372 from "@contractspec/lib.schema";
|
|
4
|
+
import { SchemaModel } from "@contractspec/lib.schema";
|
|
5
|
+
|
|
6
|
+
//#region src/docs/queries/docsIndex.query.d.ts
|
|
7
|
+
declare const DocSummaryModel: SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
summary: {
|
|
17
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
18
|
+
isOptional: true;
|
|
19
|
+
};
|
|
20
|
+
route: {
|
|
21
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
22
|
+
isOptional: true;
|
|
23
|
+
};
|
|
24
|
+
visibility: {
|
|
25
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
26
|
+
isOptional: true;
|
|
27
|
+
};
|
|
28
|
+
kind: {
|
|
29
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
30
|
+
isOptional: true;
|
|
31
|
+
};
|
|
32
|
+
version: {
|
|
33
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
34
|
+
isOptional: true;
|
|
35
|
+
};
|
|
36
|
+
tags: {
|
|
37
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
isArray: true;
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
declare const DocsIndexInput: SchemaModel<{
|
|
43
|
+
query: {
|
|
44
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
45
|
+
isOptional: true;
|
|
46
|
+
};
|
|
47
|
+
tag: {
|
|
48
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
49
|
+
isOptional: true;
|
|
50
|
+
isArray: true;
|
|
51
|
+
};
|
|
52
|
+
visibility: {
|
|
53
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
54
|
+
isOptional: true;
|
|
55
|
+
};
|
|
56
|
+
kind: {
|
|
57
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
58
|
+
isOptional: true;
|
|
59
|
+
};
|
|
60
|
+
limit: {
|
|
61
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
62
|
+
isOptional: true;
|
|
63
|
+
};
|
|
64
|
+
offset: {
|
|
65
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
66
|
+
isOptional: true;
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
declare const DocsIndexOutput: SchemaModel<{
|
|
70
|
+
items: {
|
|
71
|
+
type: SchemaModel<{
|
|
72
|
+
id: {
|
|
73
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
74
|
+
isOptional: false;
|
|
75
|
+
};
|
|
76
|
+
title: {
|
|
77
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
78
|
+
isOptional: false;
|
|
79
|
+
};
|
|
80
|
+
summary: {
|
|
81
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
82
|
+
isOptional: true;
|
|
83
|
+
};
|
|
84
|
+
route: {
|
|
85
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
86
|
+
isOptional: true;
|
|
87
|
+
};
|
|
88
|
+
visibility: {
|
|
89
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
90
|
+
isOptional: true;
|
|
91
|
+
};
|
|
92
|
+
kind: {
|
|
93
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
95
|
+
};
|
|
96
|
+
version: {
|
|
97
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
tags: {
|
|
101
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
isArray: true;
|
|
104
|
+
};
|
|
105
|
+
}>;
|
|
106
|
+
isOptional: true;
|
|
107
|
+
isArray: true;
|
|
108
|
+
};
|
|
109
|
+
docs: {
|
|
110
|
+
type: SchemaModel<{
|
|
111
|
+
id: {
|
|
112
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
title: {
|
|
116
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
summary: {
|
|
120
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
121
|
+
isOptional: true;
|
|
122
|
+
};
|
|
123
|
+
route: {
|
|
124
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
125
|
+
isOptional: true;
|
|
126
|
+
};
|
|
127
|
+
visibility: {
|
|
128
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
kind: {
|
|
132
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
version: {
|
|
136
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
};
|
|
139
|
+
tags: {
|
|
140
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
141
|
+
isOptional: true;
|
|
142
|
+
isArray: true;
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
isArray: true;
|
|
147
|
+
};
|
|
148
|
+
total: {
|
|
149
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
150
|
+
isOptional: true;
|
|
151
|
+
};
|
|
152
|
+
nextOffset: {
|
|
153
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
154
|
+
isOptional: true;
|
|
155
|
+
};
|
|
156
|
+
}>;
|
|
157
|
+
declare const DocsIndexQuery: OperationSpec<SchemaModel<{
|
|
158
|
+
query: {
|
|
159
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
160
|
+
isOptional: true;
|
|
161
|
+
};
|
|
162
|
+
tag: {
|
|
163
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
164
|
+
isOptional: true;
|
|
165
|
+
isArray: true;
|
|
166
|
+
};
|
|
167
|
+
visibility: {
|
|
168
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
169
|
+
isOptional: true;
|
|
170
|
+
};
|
|
171
|
+
kind: {
|
|
172
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
173
|
+
isOptional: true;
|
|
174
|
+
};
|
|
175
|
+
limit: {
|
|
176
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
177
|
+
isOptional: true;
|
|
178
|
+
};
|
|
179
|
+
offset: {
|
|
180
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
181
|
+
isOptional: true;
|
|
182
|
+
};
|
|
183
|
+
}>, SchemaModel<{
|
|
184
|
+
items: {
|
|
185
|
+
type: SchemaModel<{
|
|
186
|
+
id: {
|
|
187
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
};
|
|
190
|
+
title: {
|
|
191
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
192
|
+
isOptional: false;
|
|
193
|
+
};
|
|
194
|
+
summary: {
|
|
195
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
route: {
|
|
199
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
visibility: {
|
|
203
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
204
|
+
isOptional: true;
|
|
205
|
+
};
|
|
206
|
+
kind: {
|
|
207
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
208
|
+
isOptional: true;
|
|
209
|
+
};
|
|
210
|
+
version: {
|
|
211
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
212
|
+
isOptional: true;
|
|
213
|
+
};
|
|
214
|
+
tags: {
|
|
215
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
216
|
+
isOptional: true;
|
|
217
|
+
isArray: true;
|
|
218
|
+
};
|
|
219
|
+
}>;
|
|
220
|
+
isOptional: true;
|
|
221
|
+
isArray: true;
|
|
222
|
+
};
|
|
223
|
+
docs: {
|
|
224
|
+
type: SchemaModel<{
|
|
225
|
+
id: {
|
|
226
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
227
|
+
isOptional: false;
|
|
228
|
+
};
|
|
229
|
+
title: {
|
|
230
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
231
|
+
isOptional: false;
|
|
232
|
+
};
|
|
233
|
+
summary: {
|
|
234
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
235
|
+
isOptional: true;
|
|
236
|
+
};
|
|
237
|
+
route: {
|
|
238
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
239
|
+
isOptional: true;
|
|
240
|
+
};
|
|
241
|
+
visibility: {
|
|
242
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
243
|
+
isOptional: true;
|
|
244
|
+
};
|
|
245
|
+
kind: {
|
|
246
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
247
|
+
isOptional: true;
|
|
248
|
+
};
|
|
249
|
+
version: {
|
|
250
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
251
|
+
isOptional: true;
|
|
252
|
+
};
|
|
253
|
+
tags: {
|
|
254
|
+
type: _contractspec_lib_schema372.FieldType<string, string>;
|
|
255
|
+
isOptional: true;
|
|
256
|
+
isArray: true;
|
|
257
|
+
};
|
|
258
|
+
}>;
|
|
259
|
+
isOptional: false;
|
|
260
|
+
isArray: true;
|
|
261
|
+
};
|
|
262
|
+
total: {
|
|
263
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
264
|
+
isOptional: true;
|
|
265
|
+
};
|
|
266
|
+
nextOffset: {
|
|
267
|
+
type: _contractspec_lib_schema372.FieldType<number, number>;
|
|
268
|
+
isOptional: true;
|
|
269
|
+
};
|
|
270
|
+
}>, undefined>;
|
|
271
|
+
//#endregion
|
|
272
|
+
export { DocSummaryModel, DocsIndexInput, DocsIndexOutput, DocsIndexQuery };
|