@aipt/platform-kernel 0.1.5

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 (182) hide show
  1. package/README.md +25 -0
  2. package/dist/adoption-contracts.d.ts +140 -0
  3. package/dist/adoption-contracts.d.ts.map +1 -0
  4. package/dist/adoption-contracts.js +2 -0
  5. package/dist/adoption-contracts.js.map +1 -0
  6. package/dist/adoption-metadata.d.ts +72 -0
  7. package/dist/adoption-metadata.d.ts.map +1 -0
  8. package/dist/adoption-metadata.js +408 -0
  9. package/dist/adoption-metadata.js.map +1 -0
  10. package/dist/adoption-schemas.d.ts +1608 -0
  11. package/dist/adoption-schemas.d.ts.map +1 -0
  12. package/dist/adoption-schemas.js +319 -0
  13. package/dist/adoption-schemas.js.map +1 -0
  14. package/dist/application-config-binding.d.ts +54 -0
  15. package/dist/application-config-binding.d.ts.map +1 -0
  16. package/dist/application-config-binding.js +139 -0
  17. package/dist/application-config-binding.js.map +1 -0
  18. package/dist/application-config-contract.d.ts +159 -0
  19. package/dist/application-config-contract.d.ts.map +1 -0
  20. package/dist/application-config-contract.js +142 -0
  21. package/dist/application-config-contract.js.map +1 -0
  22. package/dist/blank-profile.d.ts +60 -0
  23. package/dist/blank-profile.d.ts.map +1 -0
  24. package/dist/blank-profile.js +182 -0
  25. package/dist/blank-profile.js.map +1 -0
  26. package/dist/catalog-source.d.ts +167 -0
  27. package/dist/catalog-source.d.ts.map +1 -0
  28. package/dist/catalog-source.js +252 -0
  29. package/dist/catalog-source.js.map +1 -0
  30. package/dist/code-module-publication.d.ts +113 -0
  31. package/dist/code-module-publication.d.ts.map +1 -0
  32. package/dist/code-module-publication.js +71 -0
  33. package/dist/code-module-publication.js.map +1 -0
  34. package/dist/contracts.d.ts +150 -0
  35. package/dist/contracts.d.ts.map +1 -0
  36. package/dist/contracts.js +3 -0
  37. package/dist/contracts.js.map +1 -0
  38. package/dist/delivery.d.ts +201 -0
  39. package/dist/delivery.d.ts.map +1 -0
  40. package/dist/delivery.js +364 -0
  41. package/dist/delivery.js.map +1 -0
  42. package/dist/dependency-resolution.d.ts +46 -0
  43. package/dist/dependency-resolution.d.ts.map +1 -0
  44. package/dist/dependency-resolution.js +35 -0
  45. package/dist/dependency-resolution.js.map +1 -0
  46. package/dist/doctor.d.ts +50 -0
  47. package/dist/doctor.d.ts.map +1 -0
  48. package/dist/doctor.js +62 -0
  49. package/dist/doctor.js.map +1 -0
  50. package/dist/durability-trace.d.ts +31 -0
  51. package/dist/durability-trace.d.ts.map +1 -0
  52. package/dist/durability-trace.js +45 -0
  53. package/dist/durability-trace.js.map +1 -0
  54. package/dist/engineering-operations.d.ts +43 -0
  55. package/dist/engineering-operations.d.ts.map +1 -0
  56. package/dist/engineering-operations.js +19 -0
  57. package/dist/engineering-operations.js.map +1 -0
  58. package/dist/engineering-product.d.ts +261 -0
  59. package/dist/engineering-product.d.ts.map +1 -0
  60. package/dist/engineering-product.js +61 -0
  61. package/dist/engineering-product.js.map +1 -0
  62. package/dist/example-recipe.d.ts +147 -0
  63. package/dist/example-recipe.d.ts.map +1 -0
  64. package/dist/example-recipe.js +58 -0
  65. package/dist/example-recipe.js.map +1 -0
  66. package/dist/feature-planner.d.ts +59 -0
  67. package/dist/feature-planner.d.ts.map +1 -0
  68. package/dist/feature-planner.js +160 -0
  69. package/dist/feature-planner.js.map +1 -0
  70. package/dist/filesystem-contracts.d.ts +77 -0
  71. package/dist/filesystem-contracts.d.ts.map +1 -0
  72. package/dist/filesystem-contracts.js +2 -0
  73. package/dist/filesystem-contracts.js.map +1 -0
  74. package/dist/filesystem-transaction.d.ts +52 -0
  75. package/dist/filesystem-transaction.d.ts.map +1 -0
  76. package/dist/filesystem-transaction.js +749 -0
  77. package/dist/filesystem-transaction.js.map +1 -0
  78. package/dist/index.d.ts +44 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +42 -0
  81. package/dist/index.js.map +1 -0
  82. package/dist/integrity.d.ts +3 -0
  83. package/dist/integrity.d.ts.map +1 -0
  84. package/dist/integrity.js +17 -0
  85. package/dist/integrity.js.map +1 -0
  86. package/dist/local-artifact-registry.d.ts +55 -0
  87. package/dist/local-artifact-registry.d.ts.map +1 -0
  88. package/dist/local-artifact-registry.js +87 -0
  89. package/dist/local-artifact-registry.js.map +1 -0
  90. package/dist/locked-repository-state.d.ts +21 -0
  91. package/dist/locked-repository-state.d.ts.map +1 -0
  92. package/dist/locked-repository-state.js +62 -0
  93. package/dist/locked-repository-state.js.map +1 -0
  94. package/dist/managed-region.d.ts +11 -0
  95. package/dist/managed-region.d.ts.map +1 -0
  96. package/dist/managed-region.js +45 -0
  97. package/dist/managed-region.js.map +1 -0
  98. package/dist/package-adoption.d.ts +179 -0
  99. package/dist/package-adoption.d.ts.map +1 -0
  100. package/dist/package-adoption.js +332 -0
  101. package/dist/package-adoption.js.map +1 -0
  102. package/dist/package-release.d.ts +42 -0
  103. package/dist/package-release.d.ts.map +1 -0
  104. package/dist/package-release.js +85 -0
  105. package/dist/package-release.js.map +1 -0
  106. package/dist/plan-state.d.ts +10 -0
  107. package/dist/plan-state.d.ts.map +1 -0
  108. package/dist/plan-state.js +33 -0
  109. package/dist/plan-state.js.map +1 -0
  110. package/dist/planner.d.ts +19 -0
  111. package/dist/planner.d.ts.map +1 -0
  112. package/dist/planner.js +111 -0
  113. package/dist/planner.js.map +1 -0
  114. package/dist/platform-package-sources.d.ts +49 -0
  115. package/dist/platform-package-sources.d.ts.map +1 -0
  116. package/dist/platform-package-sources.js +98 -0
  117. package/dist/platform-package-sources.js.map +1 -0
  118. package/dist/project-bootstrap.d.ts +42 -0
  119. package/dist/project-bootstrap.d.ts.map +1 -0
  120. package/dist/project-bootstrap.js +270 -0
  121. package/dist/project-bootstrap.js.map +1 -0
  122. package/dist/project-control.d.ts +149 -0
  123. package/dist/project-control.d.ts.map +1 -0
  124. package/dist/project-control.js +46 -0
  125. package/dist/project-control.js.map +1 -0
  126. package/dist/project-maintenance.d.ts +30 -0
  127. package/dist/project-maintenance.d.ts.map +1 -0
  128. package/dist/project-maintenance.js +29 -0
  129. package/dist/project-maintenance.js.map +1 -0
  130. package/dist/project-recovery.d.ts +31 -0
  131. package/dist/project-recovery.d.ts.map +1 -0
  132. package/dist/project-recovery.js +80 -0
  133. package/dist/project-recovery.js.map +1 -0
  134. package/dist/recovery-override.d.ts +20 -0
  135. package/dist/recovery-override.d.ts.map +1 -0
  136. package/dist/recovery-override.js +27 -0
  137. package/dist/recovery-override.js.map +1 -0
  138. package/dist/release-loader.d.ts +9 -0
  139. package/dist/release-loader.d.ts.map +1 -0
  140. package/dist/release-loader.js +86 -0
  141. package/dist/release-loader.js.map +1 -0
  142. package/dist/resolution-evidence.d.ts +67 -0
  143. package/dist/resolution-evidence.d.ts.map +1 -0
  144. package/dist/resolution-evidence.js +98 -0
  145. package/dist/resolution-evidence.js.map +1 -0
  146. package/dist/resolution-worker-build.d.ts +33 -0
  147. package/dist/resolution-worker-build.d.ts.map +1 -0
  148. package/dist/resolution-worker-build.js +42 -0
  149. package/dist/resolution-worker-build.js.map +1 -0
  150. package/dist/runtime-observability.d.ts +147 -0
  151. package/dist/runtime-observability.d.ts.map +1 -0
  152. package/dist/runtime-observability.js +264 -0
  153. package/dist/runtime-observability.js.map +1 -0
  154. package/dist/schemas.d.ts +740 -0
  155. package/dist/schemas.d.ts.map +1 -0
  156. package/dist/schemas.js +348 -0
  157. package/dist/schemas.js.map +1 -0
  158. package/dist/solution-catalog.d.ts +169 -0
  159. package/dist/solution-catalog.d.ts.map +1 -0
  160. package/dist/solution-catalog.js +60 -0
  161. package/dist/solution-catalog.js.map +1 -0
  162. package/dist/standalone-npm-profile.d.ts +146 -0
  163. package/dist/standalone-npm-profile.d.ts.map +1 -0
  164. package/dist/standalone-npm-profile.js +425 -0
  165. package/dist/standalone-npm-profile.js.map +1 -0
  166. package/dist/testing.d.ts +5 -0
  167. package/dist/testing.d.ts.map +1 -0
  168. package/dist/testing.js +3 -0
  169. package/dist/testing.js.map +1 -0
  170. package/dist/upgrade-planner.d.ts +45 -0
  171. package/dist/upgrade-planner.d.ts.map +1 -0
  172. package/dist/upgrade-planner.js +207 -0
  173. package/dist/upgrade-planner.js.map +1 -0
  174. package/dist/workspace-publication.d.ts +18 -0
  175. package/dist/workspace-publication.d.ts.map +1 -0
  176. package/dist/workspace-publication.js +33 -0
  177. package/dist/workspace-publication.js.map +1 -0
  178. package/dist/workspace-topology.d.ts +22 -0
  179. package/dist/workspace-topology.d.ts.map +1 -0
  180. package/dist/workspace-topology.js +117 -0
  181. package/dist/workspace-topology.js.map +1 -0
  182. package/package.json +46 -0
@@ -0,0 +1,1608 @@
1
+ import { type ErrorObject, type ValidateFunction } from "ajv/dist/2020.js";
2
+ import type { AdoptionEvidence, CapabilityBundleRelease, ProjectAdoptionLock, VerificationResult } from "./adoption-contracts.js";
3
+ export declare const capabilityBundleReleaseV1Schema: {
4
+ readonly $id: "https://schemas.dyyto.dev/platform/capability-bundle-release-v1.json";
5
+ readonly type: "object";
6
+ readonly additionalProperties: false;
7
+ readonly required: readonly ["schemaVersion", "capabilityId", "version", "integrity", "consumerProfile", "compatibility", "assets", "verifiers", "exit"];
8
+ readonly properties: {
9
+ readonly schemaVersion: {
10
+ readonly const: 1;
11
+ };
12
+ readonly capabilityId: {
13
+ readonly type: "string";
14
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
15
+ };
16
+ readonly version: {
17
+ readonly type: "string";
18
+ readonly minLength: 1;
19
+ readonly maxLength: 128;
20
+ };
21
+ readonly integrity: {
22
+ readonly type: "string";
23
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
24
+ };
25
+ readonly consumerProfile: {
26
+ readonly enum: readonly ["blank-typescript-library", "standalone-npm-package", "react-component-library", "nextjs-full-stack-application", "workspace-root", "workspace-npm-package", "workspace-node-application", "workspace-web-application", "workspace-expo-application", "any-project"];
27
+ };
28
+ readonly kind: {
29
+ readonly enum: readonly ["profile", "engineering-feature", "integration-feature", "domain-extension"];
30
+ };
31
+ readonly dependencies: {
32
+ readonly type: "object";
33
+ readonly additionalProperties: false;
34
+ readonly required: readonly ["profiles"];
35
+ readonly properties: {
36
+ readonly profiles: {
37
+ readonly type: "array";
38
+ readonly minItems: 1;
39
+ readonly uniqueItems: true;
40
+ readonly items: {
41
+ readonly type: "string";
42
+ readonly minLength: 1;
43
+ readonly maxLength: 128;
44
+ };
45
+ };
46
+ readonly capabilities: {
47
+ readonly type: "array";
48
+ readonly minItems: 1;
49
+ readonly uniqueItems: true;
50
+ readonly items: {
51
+ readonly type: "string";
52
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
53
+ };
54
+ };
55
+ };
56
+ };
57
+ readonly compatibility: {
58
+ readonly type: "object";
59
+ readonly additionalProperties: false;
60
+ readonly required: readonly ["node", "pnpm", "typescript"];
61
+ readonly properties: {
62
+ readonly node: {
63
+ readonly type: "string";
64
+ readonly minLength: 1;
65
+ readonly maxLength: 64;
66
+ };
67
+ readonly pnpm: {
68
+ readonly type: "string";
69
+ readonly minLength: 1;
70
+ readonly maxLength: 64;
71
+ };
72
+ readonly typescript: {
73
+ readonly type: "string";
74
+ readonly minLength: 1;
75
+ readonly maxLength: 64;
76
+ };
77
+ };
78
+ };
79
+ readonly integration: {
80
+ readonly type: "object";
81
+ readonly additionalProperties: false;
82
+ readonly required: readonly ["title", "purpose", "packages", "codeAssets"];
83
+ readonly properties: {
84
+ readonly title: {
85
+ readonly type: "string";
86
+ readonly minLength: 1;
87
+ readonly maxLength: 128;
88
+ };
89
+ readonly purpose: {
90
+ readonly type: "string";
91
+ readonly minLength: 1;
92
+ readonly maxLength: 512;
93
+ };
94
+ readonly packages: {
95
+ readonly type: "array";
96
+ readonly items: {
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["packageName", "version", "usage", "imports"];
100
+ readonly properties: {
101
+ readonly packageName: {
102
+ readonly type: "string";
103
+ readonly minLength: 1;
104
+ readonly maxLength: 214;
105
+ };
106
+ readonly version: {
107
+ readonly type: "string";
108
+ readonly minLength: 1;
109
+ readonly maxLength: 128;
110
+ };
111
+ readonly usage: {
112
+ readonly enum: readonly ["runtime", "development", "build", "test"];
113
+ };
114
+ readonly imports: {
115
+ readonly type: "array";
116
+ readonly items: {
117
+ readonly type: "object";
118
+ readonly additionalProperties: false;
119
+ readonly required: readonly ["importFrom", "symbol"];
120
+ readonly properties: {
121
+ readonly importFrom: {
122
+ readonly type: "string";
123
+ readonly minLength: 1;
124
+ readonly maxLength: 214;
125
+ };
126
+ readonly symbol: {
127
+ readonly type: "string";
128
+ readonly minLength: 1;
129
+ readonly maxLength: 128;
130
+ };
131
+ readonly referencePath: {
132
+ readonly type: "string";
133
+ readonly minLength: 1;
134
+ readonly maxLength: 512;
135
+ };
136
+ };
137
+ };
138
+ };
139
+ };
140
+ };
141
+ };
142
+ readonly codeAssets: {
143
+ readonly type: "array";
144
+ readonly items: {
145
+ readonly type: "object";
146
+ readonly additionalProperties: false;
147
+ readonly required: readonly ["sourcePath", "targetPath", "ownership"];
148
+ readonly properties: {
149
+ readonly sourcePath: {
150
+ readonly type: "string";
151
+ readonly minLength: 1;
152
+ readonly maxLength: 512;
153
+ };
154
+ readonly targetPath: {
155
+ readonly type: "string";
156
+ readonly minLength: 1;
157
+ readonly maxLength: 512;
158
+ };
159
+ readonly ownership: {
160
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
161
+ };
162
+ };
163
+ };
164
+ };
165
+ };
166
+ };
167
+ readonly assets: {
168
+ readonly type: "array";
169
+ readonly minItems: 1;
170
+ readonly items: {
171
+ readonly type: "object";
172
+ readonly additionalProperties: false;
173
+ readonly required: readonly ["path", "ownership", "digest", "mode"];
174
+ readonly properties: {
175
+ readonly path: {
176
+ readonly type: "string";
177
+ readonly minLength: 1;
178
+ readonly maxLength: 512;
179
+ };
180
+ readonly ownership: {
181
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
182
+ };
183
+ readonly digest: {
184
+ readonly type: "string";
185
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
186
+ };
187
+ readonly mode: {
188
+ readonly type: "integer";
189
+ readonly minimum: 0;
190
+ readonly maximum: 511;
191
+ };
192
+ readonly regionId: {
193
+ readonly type: "string";
194
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
195
+ };
196
+ readonly renderer: {
197
+ readonly enum: readonly ["npm-package-json-v1", "npm-package-json-v2", "react-component-package-json-v1", "nextjs-application-package-json-v1", "workspace-root-package-json-v1", "node-application-package-json-v1", "web-application-package-json-v1", "expo-application-package-json-v1", "application-config-contract-v1", "application-config-binding-v1"];
198
+ };
199
+ };
200
+ readonly allOf: readonly [{
201
+ readonly if: {
202
+ readonly properties: {
203
+ readonly ownership: {
204
+ readonly const: "managed-region";
205
+ };
206
+ };
207
+ readonly required: readonly ["ownership"];
208
+ };
209
+ readonly then: {
210
+ readonly properties: {
211
+ readonly regionId: {
212
+ readonly type: "string";
213
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
214
+ };
215
+ };
216
+ readonly required: readonly ["regionId"];
217
+ };
218
+ readonly else: {
219
+ readonly not: {
220
+ readonly required: readonly ["regionId"];
221
+ };
222
+ };
223
+ }];
224
+ };
225
+ };
226
+ readonly verifiers: {
227
+ readonly type: "array";
228
+ readonly minItems: 1;
229
+ readonly items: {
230
+ readonly type: "object";
231
+ readonly additionalProperties: false;
232
+ readonly required: readonly ["id"];
233
+ readonly properties: {
234
+ readonly id: {
235
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
236
+ };
237
+ };
238
+ };
239
+ };
240
+ readonly exit: {
241
+ readonly type: "object";
242
+ readonly additionalProperties: false;
243
+ readonly required: readonly ["ownedAssets"];
244
+ readonly properties: {
245
+ readonly ownedAssets: {
246
+ readonly type: "array";
247
+ readonly items: {
248
+ readonly type: "string";
249
+ readonly minLength: 1;
250
+ readonly maxLength: 512;
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ };
257
+ export declare const capabilityBundleReleaseV2Schema: {
258
+ readonly $id: "https://schemas.dyyto.dev/platform/capability-bundle-release-v2.json";
259
+ readonly required: readonly ["schemaVersion", "capabilityId", "version", "integrity", "consumerProfile", "compatibility", "assets", "verifiers", "exit", "availability", "packageSources"];
260
+ readonly properties: {
261
+ readonly schemaVersion: {
262
+ readonly const: 2;
263
+ };
264
+ readonly availability: {
265
+ readonly oneOf: readonly [{
266
+ readonly type: "object";
267
+ readonly additionalProperties: false;
268
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
269
+ readonly properties: {
270
+ readonly maturity: {
271
+ readonly const: "candidate";
272
+ };
273
+ readonly visibility: {
274
+ readonly const: "maintainers-only";
275
+ };
276
+ readonly sourceState: {
277
+ readonly const: "local-artifact";
278
+ };
279
+ };
280
+ }, {
281
+ readonly type: "object";
282
+ readonly additionalProperties: false;
283
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
284
+ readonly properties: {
285
+ readonly maturity: {
286
+ readonly const: "candidate";
287
+ };
288
+ readonly visibility: {
289
+ readonly const: "maintainers-only";
290
+ };
291
+ readonly sourceState: {
292
+ readonly const: "development-registry";
293
+ };
294
+ };
295
+ }, {
296
+ readonly type: "object";
297
+ readonly additionalProperties: false;
298
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
299
+ readonly properties: {
300
+ readonly maturity: {
301
+ readonly const: "available";
302
+ };
303
+ readonly visibility: {
304
+ readonly const: "catalog-consumers";
305
+ };
306
+ readonly sourceState: {
307
+ readonly const: "registry-verified";
308
+ };
309
+ };
310
+ }, {
311
+ readonly type: "object";
312
+ readonly additionalProperties: false;
313
+ readonly required: readonly ["maturity", "visibility", "reasonCode"];
314
+ readonly properties: {
315
+ readonly maturity: {
316
+ readonly const: "withdrawn";
317
+ };
318
+ readonly visibility: {
319
+ readonly const: "existing-locks-only";
320
+ };
321
+ readonly reasonCode: {
322
+ readonly type: "string";
323
+ readonly pattern: "^[A-Z][A-Z0-9_]{2,63}$";
324
+ };
325
+ };
326
+ }];
327
+ };
328
+ readonly packageSources: {
329
+ readonly type: "array";
330
+ readonly maxItems: 128;
331
+ readonly items: {
332
+ readonly type: "object";
333
+ readonly additionalProperties: false;
334
+ readonly required: readonly ["registryId", "packageName", "version", "integrity", "tarballDigest", "deliveryReceiptId", "usage"];
335
+ readonly properties: {
336
+ readonly registryId: {
337
+ readonly type: "string";
338
+ readonly pattern: "^registry\\.[a-z0-9][a-z0-9.-]{1,126}$";
339
+ };
340
+ readonly packageName: {
341
+ readonly type: "string";
342
+ readonly pattern: "^@[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$";
343
+ readonly maxLength: 214;
344
+ };
345
+ readonly version: {
346
+ readonly type: "string";
347
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
348
+ readonly maxLength: 64;
349
+ };
350
+ readonly integrity: {
351
+ readonly type: "string";
352
+ readonly pattern: "^sha512-[A-Za-z0-9+/]{86}==$";
353
+ };
354
+ readonly tarballDigest: {
355
+ readonly type: "string";
356
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
357
+ };
358
+ readonly deliveryReceiptId: {
359
+ readonly type: "string";
360
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
361
+ };
362
+ readonly usage: {
363
+ readonly enum: readonly ["runtime", "development"];
364
+ };
365
+ };
366
+ };
367
+ };
368
+ readonly capabilityId: {
369
+ readonly type: "string";
370
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
371
+ };
372
+ readonly version: {
373
+ readonly type: "string";
374
+ readonly minLength: 1;
375
+ readonly maxLength: 128;
376
+ };
377
+ readonly integrity: {
378
+ readonly type: "string";
379
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
380
+ };
381
+ readonly consumerProfile: {
382
+ readonly enum: readonly ["blank-typescript-library", "standalone-npm-package", "react-component-library", "nextjs-full-stack-application", "workspace-root", "workspace-npm-package", "workspace-node-application", "workspace-web-application", "workspace-expo-application", "any-project"];
383
+ };
384
+ readonly kind: {
385
+ readonly enum: readonly ["profile", "engineering-feature", "integration-feature", "domain-extension"];
386
+ };
387
+ readonly dependencies: {
388
+ readonly type: "object";
389
+ readonly additionalProperties: false;
390
+ readonly required: readonly ["profiles"];
391
+ readonly properties: {
392
+ readonly profiles: {
393
+ readonly type: "array";
394
+ readonly minItems: 1;
395
+ readonly uniqueItems: true;
396
+ readonly items: {
397
+ readonly type: "string";
398
+ readonly minLength: 1;
399
+ readonly maxLength: 128;
400
+ };
401
+ };
402
+ readonly capabilities: {
403
+ readonly type: "array";
404
+ readonly minItems: 1;
405
+ readonly uniqueItems: true;
406
+ readonly items: {
407
+ readonly type: "string";
408
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
409
+ };
410
+ };
411
+ };
412
+ };
413
+ readonly compatibility: {
414
+ readonly type: "object";
415
+ readonly additionalProperties: false;
416
+ readonly required: readonly ["node", "pnpm", "typescript"];
417
+ readonly properties: {
418
+ readonly node: {
419
+ readonly type: "string";
420
+ readonly minLength: 1;
421
+ readonly maxLength: 64;
422
+ };
423
+ readonly pnpm: {
424
+ readonly type: "string";
425
+ readonly minLength: 1;
426
+ readonly maxLength: 64;
427
+ };
428
+ readonly typescript: {
429
+ readonly type: "string";
430
+ readonly minLength: 1;
431
+ readonly maxLength: 64;
432
+ };
433
+ };
434
+ };
435
+ readonly integration: {
436
+ readonly type: "object";
437
+ readonly additionalProperties: false;
438
+ readonly required: readonly ["title", "purpose", "packages", "codeAssets"];
439
+ readonly properties: {
440
+ readonly title: {
441
+ readonly type: "string";
442
+ readonly minLength: 1;
443
+ readonly maxLength: 128;
444
+ };
445
+ readonly purpose: {
446
+ readonly type: "string";
447
+ readonly minLength: 1;
448
+ readonly maxLength: 512;
449
+ };
450
+ readonly packages: {
451
+ readonly type: "array";
452
+ readonly items: {
453
+ readonly type: "object";
454
+ readonly additionalProperties: false;
455
+ readonly required: readonly ["packageName", "version", "usage", "imports"];
456
+ readonly properties: {
457
+ readonly packageName: {
458
+ readonly type: "string";
459
+ readonly minLength: 1;
460
+ readonly maxLength: 214;
461
+ };
462
+ readonly version: {
463
+ readonly type: "string";
464
+ readonly minLength: 1;
465
+ readonly maxLength: 128;
466
+ };
467
+ readonly usage: {
468
+ readonly enum: readonly ["runtime", "development", "build", "test"];
469
+ };
470
+ readonly imports: {
471
+ readonly type: "array";
472
+ readonly items: {
473
+ readonly type: "object";
474
+ readonly additionalProperties: false;
475
+ readonly required: readonly ["importFrom", "symbol"];
476
+ readonly properties: {
477
+ readonly importFrom: {
478
+ readonly type: "string";
479
+ readonly minLength: 1;
480
+ readonly maxLength: 214;
481
+ };
482
+ readonly symbol: {
483
+ readonly type: "string";
484
+ readonly minLength: 1;
485
+ readonly maxLength: 128;
486
+ };
487
+ readonly referencePath: {
488
+ readonly type: "string";
489
+ readonly minLength: 1;
490
+ readonly maxLength: 512;
491
+ };
492
+ };
493
+ };
494
+ };
495
+ };
496
+ };
497
+ };
498
+ readonly codeAssets: {
499
+ readonly type: "array";
500
+ readonly items: {
501
+ readonly type: "object";
502
+ readonly additionalProperties: false;
503
+ readonly required: readonly ["sourcePath", "targetPath", "ownership"];
504
+ readonly properties: {
505
+ readonly sourcePath: {
506
+ readonly type: "string";
507
+ readonly minLength: 1;
508
+ readonly maxLength: 512;
509
+ };
510
+ readonly targetPath: {
511
+ readonly type: "string";
512
+ readonly minLength: 1;
513
+ readonly maxLength: 512;
514
+ };
515
+ readonly ownership: {
516
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
517
+ };
518
+ };
519
+ };
520
+ };
521
+ };
522
+ };
523
+ readonly assets: {
524
+ readonly type: "array";
525
+ readonly minItems: 1;
526
+ readonly items: {
527
+ readonly type: "object";
528
+ readonly additionalProperties: false;
529
+ readonly required: readonly ["path", "ownership", "digest", "mode"];
530
+ readonly properties: {
531
+ readonly path: {
532
+ readonly type: "string";
533
+ readonly minLength: 1;
534
+ readonly maxLength: 512;
535
+ };
536
+ readonly ownership: {
537
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
538
+ };
539
+ readonly digest: {
540
+ readonly type: "string";
541
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
542
+ };
543
+ readonly mode: {
544
+ readonly type: "integer";
545
+ readonly minimum: 0;
546
+ readonly maximum: 511;
547
+ };
548
+ readonly regionId: {
549
+ readonly type: "string";
550
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
551
+ };
552
+ readonly renderer: {
553
+ readonly enum: readonly ["npm-package-json-v1", "npm-package-json-v2", "react-component-package-json-v1", "nextjs-application-package-json-v1", "workspace-root-package-json-v1", "node-application-package-json-v1", "web-application-package-json-v1", "expo-application-package-json-v1", "application-config-contract-v1", "application-config-binding-v1"];
554
+ };
555
+ };
556
+ readonly allOf: readonly [{
557
+ readonly if: {
558
+ readonly properties: {
559
+ readonly ownership: {
560
+ readonly const: "managed-region";
561
+ };
562
+ };
563
+ readonly required: readonly ["ownership"];
564
+ };
565
+ readonly then: {
566
+ readonly properties: {
567
+ readonly regionId: {
568
+ readonly type: "string";
569
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
570
+ };
571
+ };
572
+ readonly required: readonly ["regionId"];
573
+ };
574
+ readonly else: {
575
+ readonly not: {
576
+ readonly required: readonly ["regionId"];
577
+ };
578
+ };
579
+ }];
580
+ };
581
+ };
582
+ readonly verifiers: {
583
+ readonly type: "array";
584
+ readonly minItems: 1;
585
+ readonly items: {
586
+ readonly type: "object";
587
+ readonly additionalProperties: false;
588
+ readonly required: readonly ["id"];
589
+ readonly properties: {
590
+ readonly id: {
591
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
592
+ };
593
+ };
594
+ };
595
+ };
596
+ readonly exit: {
597
+ readonly type: "object";
598
+ readonly additionalProperties: false;
599
+ readonly required: readonly ["ownedAssets"];
600
+ readonly properties: {
601
+ readonly ownedAssets: {
602
+ readonly type: "array";
603
+ readonly items: {
604
+ readonly type: "string";
605
+ readonly minLength: 1;
606
+ readonly maxLength: 512;
607
+ };
608
+ };
609
+ };
610
+ };
611
+ };
612
+ readonly type: "object";
613
+ readonly additionalProperties: false;
614
+ };
615
+ export declare const capabilityBundleReleaseSchema: {
616
+ readonly $id: "https://schemas.dyyto.dev/platform/capability-bundle-release.json";
617
+ readonly oneOf: readonly [{
618
+ type: "object";
619
+ additionalProperties: false;
620
+ required: readonly ["schemaVersion", "capabilityId", "version", "integrity", "consumerProfile", "compatibility", "assets", "verifiers", "exit"];
621
+ properties: {
622
+ readonly schemaVersion: {
623
+ readonly const: 1;
624
+ };
625
+ readonly capabilityId: {
626
+ readonly type: "string";
627
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
628
+ };
629
+ readonly version: {
630
+ readonly type: "string";
631
+ readonly minLength: 1;
632
+ readonly maxLength: 128;
633
+ };
634
+ readonly integrity: {
635
+ readonly type: "string";
636
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
637
+ };
638
+ readonly consumerProfile: {
639
+ readonly enum: readonly ["blank-typescript-library", "standalone-npm-package", "react-component-library", "nextjs-full-stack-application", "workspace-root", "workspace-npm-package", "workspace-node-application", "workspace-web-application", "workspace-expo-application", "any-project"];
640
+ };
641
+ readonly kind: {
642
+ readonly enum: readonly ["profile", "engineering-feature", "integration-feature", "domain-extension"];
643
+ };
644
+ readonly dependencies: {
645
+ readonly type: "object";
646
+ readonly additionalProperties: false;
647
+ readonly required: readonly ["profiles"];
648
+ readonly properties: {
649
+ readonly profiles: {
650
+ readonly type: "array";
651
+ readonly minItems: 1;
652
+ readonly uniqueItems: true;
653
+ readonly items: {
654
+ readonly type: "string";
655
+ readonly minLength: 1;
656
+ readonly maxLength: 128;
657
+ };
658
+ };
659
+ readonly capabilities: {
660
+ readonly type: "array";
661
+ readonly minItems: 1;
662
+ readonly uniqueItems: true;
663
+ readonly items: {
664
+ readonly type: "string";
665
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
666
+ };
667
+ };
668
+ };
669
+ };
670
+ readonly compatibility: {
671
+ readonly type: "object";
672
+ readonly additionalProperties: false;
673
+ readonly required: readonly ["node", "pnpm", "typescript"];
674
+ readonly properties: {
675
+ readonly node: {
676
+ readonly type: "string";
677
+ readonly minLength: 1;
678
+ readonly maxLength: 64;
679
+ };
680
+ readonly pnpm: {
681
+ readonly type: "string";
682
+ readonly minLength: 1;
683
+ readonly maxLength: 64;
684
+ };
685
+ readonly typescript: {
686
+ readonly type: "string";
687
+ readonly minLength: 1;
688
+ readonly maxLength: 64;
689
+ };
690
+ };
691
+ };
692
+ readonly integration: {
693
+ readonly type: "object";
694
+ readonly additionalProperties: false;
695
+ readonly required: readonly ["title", "purpose", "packages", "codeAssets"];
696
+ readonly properties: {
697
+ readonly title: {
698
+ readonly type: "string";
699
+ readonly minLength: 1;
700
+ readonly maxLength: 128;
701
+ };
702
+ readonly purpose: {
703
+ readonly type: "string";
704
+ readonly minLength: 1;
705
+ readonly maxLength: 512;
706
+ };
707
+ readonly packages: {
708
+ readonly type: "array";
709
+ readonly items: {
710
+ readonly type: "object";
711
+ readonly additionalProperties: false;
712
+ readonly required: readonly ["packageName", "version", "usage", "imports"];
713
+ readonly properties: {
714
+ readonly packageName: {
715
+ readonly type: "string";
716
+ readonly minLength: 1;
717
+ readonly maxLength: 214;
718
+ };
719
+ readonly version: {
720
+ readonly type: "string";
721
+ readonly minLength: 1;
722
+ readonly maxLength: 128;
723
+ };
724
+ readonly usage: {
725
+ readonly enum: readonly ["runtime", "development", "build", "test"];
726
+ };
727
+ readonly imports: {
728
+ readonly type: "array";
729
+ readonly items: {
730
+ readonly type: "object";
731
+ readonly additionalProperties: false;
732
+ readonly required: readonly ["importFrom", "symbol"];
733
+ readonly properties: {
734
+ readonly importFrom: {
735
+ readonly type: "string";
736
+ readonly minLength: 1;
737
+ readonly maxLength: 214;
738
+ };
739
+ readonly symbol: {
740
+ readonly type: "string";
741
+ readonly minLength: 1;
742
+ readonly maxLength: 128;
743
+ };
744
+ readonly referencePath: {
745
+ readonly type: "string";
746
+ readonly minLength: 1;
747
+ readonly maxLength: 512;
748
+ };
749
+ };
750
+ };
751
+ };
752
+ };
753
+ };
754
+ };
755
+ readonly codeAssets: {
756
+ readonly type: "array";
757
+ readonly items: {
758
+ readonly type: "object";
759
+ readonly additionalProperties: false;
760
+ readonly required: readonly ["sourcePath", "targetPath", "ownership"];
761
+ readonly properties: {
762
+ readonly sourcePath: {
763
+ readonly type: "string";
764
+ readonly minLength: 1;
765
+ readonly maxLength: 512;
766
+ };
767
+ readonly targetPath: {
768
+ readonly type: "string";
769
+ readonly minLength: 1;
770
+ readonly maxLength: 512;
771
+ };
772
+ readonly ownership: {
773
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
774
+ };
775
+ };
776
+ };
777
+ };
778
+ };
779
+ };
780
+ readonly assets: {
781
+ readonly type: "array";
782
+ readonly minItems: 1;
783
+ readonly items: {
784
+ readonly type: "object";
785
+ readonly additionalProperties: false;
786
+ readonly required: readonly ["path", "ownership", "digest", "mode"];
787
+ readonly properties: {
788
+ readonly path: {
789
+ readonly type: "string";
790
+ readonly minLength: 1;
791
+ readonly maxLength: 512;
792
+ };
793
+ readonly ownership: {
794
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
795
+ };
796
+ readonly digest: {
797
+ readonly type: "string";
798
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
799
+ };
800
+ readonly mode: {
801
+ readonly type: "integer";
802
+ readonly minimum: 0;
803
+ readonly maximum: 511;
804
+ };
805
+ readonly regionId: {
806
+ readonly type: "string";
807
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
808
+ };
809
+ readonly renderer: {
810
+ readonly enum: readonly ["npm-package-json-v1", "npm-package-json-v2", "react-component-package-json-v1", "nextjs-application-package-json-v1", "workspace-root-package-json-v1", "node-application-package-json-v1", "web-application-package-json-v1", "expo-application-package-json-v1", "application-config-contract-v1", "application-config-binding-v1"];
811
+ };
812
+ };
813
+ readonly allOf: readonly [{
814
+ readonly if: {
815
+ readonly properties: {
816
+ readonly ownership: {
817
+ readonly const: "managed-region";
818
+ };
819
+ };
820
+ readonly required: readonly ["ownership"];
821
+ };
822
+ readonly then: {
823
+ readonly properties: {
824
+ readonly regionId: {
825
+ readonly type: "string";
826
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
827
+ };
828
+ };
829
+ readonly required: readonly ["regionId"];
830
+ };
831
+ readonly else: {
832
+ readonly not: {
833
+ readonly required: readonly ["regionId"];
834
+ };
835
+ };
836
+ }];
837
+ };
838
+ };
839
+ readonly verifiers: {
840
+ readonly type: "array";
841
+ readonly minItems: 1;
842
+ readonly items: {
843
+ readonly type: "object";
844
+ readonly additionalProperties: false;
845
+ readonly required: readonly ["id"];
846
+ readonly properties: {
847
+ readonly id: {
848
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
849
+ };
850
+ };
851
+ };
852
+ };
853
+ readonly exit: {
854
+ readonly type: "object";
855
+ readonly additionalProperties: false;
856
+ readonly required: readonly ["ownedAssets"];
857
+ readonly properties: {
858
+ readonly ownedAssets: {
859
+ readonly type: "array";
860
+ readonly items: {
861
+ readonly type: "string";
862
+ readonly minLength: 1;
863
+ readonly maxLength: 512;
864
+ };
865
+ };
866
+ };
867
+ };
868
+ };
869
+ }, {
870
+ required: readonly ["schemaVersion", "capabilityId", "version", "integrity", "consumerProfile", "compatibility", "assets", "verifiers", "exit", "availability", "packageSources"];
871
+ properties: {
872
+ readonly schemaVersion: {
873
+ readonly const: 2;
874
+ };
875
+ readonly availability: {
876
+ readonly oneOf: readonly [{
877
+ readonly type: "object";
878
+ readonly additionalProperties: false;
879
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
880
+ readonly properties: {
881
+ readonly maturity: {
882
+ readonly const: "candidate";
883
+ };
884
+ readonly visibility: {
885
+ readonly const: "maintainers-only";
886
+ };
887
+ readonly sourceState: {
888
+ readonly const: "local-artifact";
889
+ };
890
+ };
891
+ }, {
892
+ readonly type: "object";
893
+ readonly additionalProperties: false;
894
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
895
+ readonly properties: {
896
+ readonly maturity: {
897
+ readonly const: "candidate";
898
+ };
899
+ readonly visibility: {
900
+ readonly const: "maintainers-only";
901
+ };
902
+ readonly sourceState: {
903
+ readonly const: "development-registry";
904
+ };
905
+ };
906
+ }, {
907
+ readonly type: "object";
908
+ readonly additionalProperties: false;
909
+ readonly required: readonly ["maturity", "visibility", "sourceState"];
910
+ readonly properties: {
911
+ readonly maturity: {
912
+ readonly const: "available";
913
+ };
914
+ readonly visibility: {
915
+ readonly const: "catalog-consumers";
916
+ };
917
+ readonly sourceState: {
918
+ readonly const: "registry-verified";
919
+ };
920
+ };
921
+ }, {
922
+ readonly type: "object";
923
+ readonly additionalProperties: false;
924
+ readonly required: readonly ["maturity", "visibility", "reasonCode"];
925
+ readonly properties: {
926
+ readonly maturity: {
927
+ readonly const: "withdrawn";
928
+ };
929
+ readonly visibility: {
930
+ readonly const: "existing-locks-only";
931
+ };
932
+ readonly reasonCode: {
933
+ readonly type: "string";
934
+ readonly pattern: "^[A-Z][A-Z0-9_]{2,63}$";
935
+ };
936
+ };
937
+ }];
938
+ };
939
+ readonly packageSources: {
940
+ readonly type: "array";
941
+ readonly maxItems: 128;
942
+ readonly items: {
943
+ readonly type: "object";
944
+ readonly additionalProperties: false;
945
+ readonly required: readonly ["registryId", "packageName", "version", "integrity", "tarballDigest", "deliveryReceiptId", "usage"];
946
+ readonly properties: {
947
+ readonly registryId: {
948
+ readonly type: "string";
949
+ readonly pattern: "^registry\\.[a-z0-9][a-z0-9.-]{1,126}$";
950
+ };
951
+ readonly packageName: {
952
+ readonly type: "string";
953
+ readonly pattern: "^@[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$";
954
+ readonly maxLength: 214;
955
+ };
956
+ readonly version: {
957
+ readonly type: "string";
958
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
959
+ readonly maxLength: 64;
960
+ };
961
+ readonly integrity: {
962
+ readonly type: "string";
963
+ readonly pattern: "^sha512-[A-Za-z0-9+/]{86}==$";
964
+ };
965
+ readonly tarballDigest: {
966
+ readonly type: "string";
967
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
968
+ };
969
+ readonly deliveryReceiptId: {
970
+ readonly type: "string";
971
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
972
+ };
973
+ readonly usage: {
974
+ readonly enum: readonly ["runtime", "development"];
975
+ };
976
+ };
977
+ };
978
+ };
979
+ readonly capabilityId: {
980
+ readonly type: "string";
981
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
982
+ };
983
+ readonly version: {
984
+ readonly type: "string";
985
+ readonly minLength: 1;
986
+ readonly maxLength: 128;
987
+ };
988
+ readonly integrity: {
989
+ readonly type: "string";
990
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
991
+ };
992
+ readonly consumerProfile: {
993
+ readonly enum: readonly ["blank-typescript-library", "standalone-npm-package", "react-component-library", "nextjs-full-stack-application", "workspace-root", "workspace-npm-package", "workspace-node-application", "workspace-web-application", "workspace-expo-application", "any-project"];
994
+ };
995
+ readonly kind: {
996
+ readonly enum: readonly ["profile", "engineering-feature", "integration-feature", "domain-extension"];
997
+ };
998
+ readonly dependencies: {
999
+ readonly type: "object";
1000
+ readonly additionalProperties: false;
1001
+ readonly required: readonly ["profiles"];
1002
+ readonly properties: {
1003
+ readonly profiles: {
1004
+ readonly type: "array";
1005
+ readonly minItems: 1;
1006
+ readonly uniqueItems: true;
1007
+ readonly items: {
1008
+ readonly type: "string";
1009
+ readonly minLength: 1;
1010
+ readonly maxLength: 128;
1011
+ };
1012
+ };
1013
+ readonly capabilities: {
1014
+ readonly type: "array";
1015
+ readonly minItems: 1;
1016
+ readonly uniqueItems: true;
1017
+ readonly items: {
1018
+ readonly type: "string";
1019
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1020
+ };
1021
+ };
1022
+ };
1023
+ };
1024
+ readonly compatibility: {
1025
+ readonly type: "object";
1026
+ readonly additionalProperties: false;
1027
+ readonly required: readonly ["node", "pnpm", "typescript"];
1028
+ readonly properties: {
1029
+ readonly node: {
1030
+ readonly type: "string";
1031
+ readonly minLength: 1;
1032
+ readonly maxLength: 64;
1033
+ };
1034
+ readonly pnpm: {
1035
+ readonly type: "string";
1036
+ readonly minLength: 1;
1037
+ readonly maxLength: 64;
1038
+ };
1039
+ readonly typescript: {
1040
+ readonly type: "string";
1041
+ readonly minLength: 1;
1042
+ readonly maxLength: 64;
1043
+ };
1044
+ };
1045
+ };
1046
+ readonly integration: {
1047
+ readonly type: "object";
1048
+ readonly additionalProperties: false;
1049
+ readonly required: readonly ["title", "purpose", "packages", "codeAssets"];
1050
+ readonly properties: {
1051
+ readonly title: {
1052
+ readonly type: "string";
1053
+ readonly minLength: 1;
1054
+ readonly maxLength: 128;
1055
+ };
1056
+ readonly purpose: {
1057
+ readonly type: "string";
1058
+ readonly minLength: 1;
1059
+ readonly maxLength: 512;
1060
+ };
1061
+ readonly packages: {
1062
+ readonly type: "array";
1063
+ readonly items: {
1064
+ readonly type: "object";
1065
+ readonly additionalProperties: false;
1066
+ readonly required: readonly ["packageName", "version", "usage", "imports"];
1067
+ readonly properties: {
1068
+ readonly packageName: {
1069
+ readonly type: "string";
1070
+ readonly minLength: 1;
1071
+ readonly maxLength: 214;
1072
+ };
1073
+ readonly version: {
1074
+ readonly type: "string";
1075
+ readonly minLength: 1;
1076
+ readonly maxLength: 128;
1077
+ };
1078
+ readonly usage: {
1079
+ readonly enum: readonly ["runtime", "development", "build", "test"];
1080
+ };
1081
+ readonly imports: {
1082
+ readonly type: "array";
1083
+ readonly items: {
1084
+ readonly type: "object";
1085
+ readonly additionalProperties: false;
1086
+ readonly required: readonly ["importFrom", "symbol"];
1087
+ readonly properties: {
1088
+ readonly importFrom: {
1089
+ readonly type: "string";
1090
+ readonly minLength: 1;
1091
+ readonly maxLength: 214;
1092
+ };
1093
+ readonly symbol: {
1094
+ readonly type: "string";
1095
+ readonly minLength: 1;
1096
+ readonly maxLength: 128;
1097
+ };
1098
+ readonly referencePath: {
1099
+ readonly type: "string";
1100
+ readonly minLength: 1;
1101
+ readonly maxLength: 512;
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ readonly codeAssets: {
1110
+ readonly type: "array";
1111
+ readonly items: {
1112
+ readonly type: "object";
1113
+ readonly additionalProperties: false;
1114
+ readonly required: readonly ["sourcePath", "targetPath", "ownership"];
1115
+ readonly properties: {
1116
+ readonly sourcePath: {
1117
+ readonly type: "string";
1118
+ readonly minLength: 1;
1119
+ readonly maxLength: 512;
1120
+ };
1121
+ readonly targetPath: {
1122
+ readonly type: "string";
1123
+ readonly minLength: 1;
1124
+ readonly maxLength: 512;
1125
+ };
1126
+ readonly ownership: {
1127
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
1128
+ };
1129
+ };
1130
+ };
1131
+ };
1132
+ };
1133
+ };
1134
+ readonly assets: {
1135
+ readonly type: "array";
1136
+ readonly minItems: 1;
1137
+ readonly items: {
1138
+ readonly type: "object";
1139
+ readonly additionalProperties: false;
1140
+ readonly required: readonly ["path", "ownership", "digest", "mode"];
1141
+ readonly properties: {
1142
+ readonly path: {
1143
+ readonly type: "string";
1144
+ readonly minLength: 1;
1145
+ readonly maxLength: 512;
1146
+ };
1147
+ readonly ownership: {
1148
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
1149
+ };
1150
+ readonly digest: {
1151
+ readonly type: "string";
1152
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1153
+ };
1154
+ readonly mode: {
1155
+ readonly type: "integer";
1156
+ readonly minimum: 0;
1157
+ readonly maximum: 511;
1158
+ };
1159
+ readonly regionId: {
1160
+ readonly type: "string";
1161
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1162
+ };
1163
+ readonly renderer: {
1164
+ readonly enum: readonly ["npm-package-json-v1", "npm-package-json-v2", "react-component-package-json-v1", "nextjs-application-package-json-v1", "workspace-root-package-json-v1", "node-application-package-json-v1", "web-application-package-json-v1", "expo-application-package-json-v1", "application-config-contract-v1", "application-config-binding-v1"];
1165
+ };
1166
+ };
1167
+ readonly allOf: readonly [{
1168
+ readonly if: {
1169
+ readonly properties: {
1170
+ readonly ownership: {
1171
+ readonly const: "managed-region";
1172
+ };
1173
+ };
1174
+ readonly required: readonly ["ownership"];
1175
+ };
1176
+ readonly then: {
1177
+ readonly properties: {
1178
+ readonly regionId: {
1179
+ readonly type: "string";
1180
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1181
+ };
1182
+ };
1183
+ readonly required: readonly ["regionId"];
1184
+ };
1185
+ readonly else: {
1186
+ readonly not: {
1187
+ readonly required: readonly ["regionId"];
1188
+ };
1189
+ };
1190
+ }];
1191
+ };
1192
+ };
1193
+ readonly verifiers: {
1194
+ readonly type: "array";
1195
+ readonly minItems: 1;
1196
+ readonly items: {
1197
+ readonly type: "object";
1198
+ readonly additionalProperties: false;
1199
+ readonly required: readonly ["id"];
1200
+ readonly properties: {
1201
+ readonly id: {
1202
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
1203
+ };
1204
+ };
1205
+ };
1206
+ };
1207
+ readonly exit: {
1208
+ readonly type: "object";
1209
+ readonly additionalProperties: false;
1210
+ readonly required: readonly ["ownedAssets"];
1211
+ readonly properties: {
1212
+ readonly ownedAssets: {
1213
+ readonly type: "array";
1214
+ readonly items: {
1215
+ readonly type: "string";
1216
+ readonly minLength: 1;
1217
+ readonly maxLength: 512;
1218
+ };
1219
+ };
1220
+ };
1221
+ };
1222
+ };
1223
+ type: "object";
1224
+ additionalProperties: false;
1225
+ }];
1226
+ };
1227
+ export declare const verificationResultSchema: {
1228
+ readonly $id: "https://schemas.dyyto.dev/platform/verification-result-v1.json";
1229
+ readonly type: "object";
1230
+ readonly additionalProperties: false;
1231
+ readonly required: readonly ["schemaVersion", "verifierId", "result", "issuer", "commandId", "exitCode", "stdoutDigest", "stderrDigest", "startedAt", "completedAt", "projectStateDigest", "runtime"];
1232
+ readonly properties: {
1233
+ readonly schemaVersion: {
1234
+ readonly const: 1;
1235
+ };
1236
+ readonly verifierId: {
1237
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
1238
+ };
1239
+ readonly result: {
1240
+ readonly enum: readonly ["passed", "failed"];
1241
+ };
1242
+ readonly issuer: {
1243
+ readonly enum: readonly ["dyyto-cli", "test-harness", "external-ci"];
1244
+ };
1245
+ readonly commandId: {
1246
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
1247
+ };
1248
+ readonly exitCode: {
1249
+ readonly type: "integer";
1250
+ readonly minimum: 0;
1251
+ readonly maximum: 255;
1252
+ };
1253
+ readonly stdoutDigest: {
1254
+ readonly type: "string";
1255
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1256
+ };
1257
+ readonly stderrDigest: {
1258
+ readonly type: "string";
1259
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1260
+ };
1261
+ readonly startedAt: {
1262
+ readonly type: "string";
1263
+ readonly format: "date-time";
1264
+ };
1265
+ readonly completedAt: {
1266
+ readonly type: "string";
1267
+ readonly format: "date-time";
1268
+ };
1269
+ readonly projectStateDigest: {
1270
+ readonly type: "string";
1271
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1272
+ };
1273
+ readonly runtime: {
1274
+ readonly type: "object";
1275
+ readonly additionalProperties: false;
1276
+ readonly required: readonly ["node", "pnpm", "typescript"];
1277
+ readonly properties: {
1278
+ readonly node: {
1279
+ readonly type: "string";
1280
+ readonly minLength: 1;
1281
+ readonly maxLength: 64;
1282
+ };
1283
+ readonly pnpm: {
1284
+ readonly type: "string";
1285
+ readonly minLength: 1;
1286
+ readonly maxLength: 64;
1287
+ };
1288
+ readonly typescript: {
1289
+ readonly type: "string";
1290
+ readonly minLength: 1;
1291
+ readonly maxLength: 64;
1292
+ };
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ export declare const adoptionEvidenceSchema: {
1298
+ readonly $id: "https://schemas.dyyto.dev/platform/adoption-evidence-v1.json";
1299
+ readonly required: readonly ["schemaVersion", "verifierId", "result", "issuer", "commandId", "exitCode", "stdoutDigest", "stderrDigest", "startedAt", "completedAt", "projectStateDigest", "runtime", "evidenceId", "capabilityId", "capabilityVersion", "capabilityIntegrity"];
1300
+ readonly properties: {
1301
+ readonly evidenceId: {
1302
+ readonly type: "string";
1303
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1304
+ };
1305
+ readonly capabilityId: {
1306
+ readonly type: "string";
1307
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1308
+ };
1309
+ readonly capabilityVersion: {
1310
+ readonly type: "string";
1311
+ readonly minLength: 1;
1312
+ readonly maxLength: 128;
1313
+ };
1314
+ readonly capabilityIntegrity: {
1315
+ readonly type: "string";
1316
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1317
+ };
1318
+ readonly schemaVersion: {
1319
+ readonly const: 1;
1320
+ };
1321
+ readonly verifierId: {
1322
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
1323
+ };
1324
+ readonly result: {
1325
+ readonly enum: readonly ["passed", "failed"];
1326
+ };
1327
+ readonly issuer: {
1328
+ readonly enum: readonly ["dyyto-cli", "test-harness", "external-ci"];
1329
+ };
1330
+ readonly commandId: {
1331
+ readonly enum: readonly ["typescript.typecheck", "vitest.run", "typescript.build", "npm.pack-dry-run", "workspace.structure", "capability.assets", "node.application-smoke", "web.application-build", "web.application-smoke", "expo.application-config", "expo.application-export", "react.library-build", "next.application-test", "next.application-build", "next.application-package", "next.application-smoke", "application.config-contract"];
1332
+ };
1333
+ readonly exitCode: {
1334
+ readonly type: "integer";
1335
+ readonly minimum: 0;
1336
+ readonly maximum: 255;
1337
+ };
1338
+ readonly stdoutDigest: {
1339
+ readonly type: "string";
1340
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1341
+ };
1342
+ readonly stderrDigest: {
1343
+ readonly type: "string";
1344
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1345
+ };
1346
+ readonly startedAt: {
1347
+ readonly type: "string";
1348
+ readonly format: "date-time";
1349
+ };
1350
+ readonly completedAt: {
1351
+ readonly type: "string";
1352
+ readonly format: "date-time";
1353
+ };
1354
+ readonly projectStateDigest: {
1355
+ readonly type: "string";
1356
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1357
+ };
1358
+ readonly runtime: {
1359
+ readonly type: "object";
1360
+ readonly additionalProperties: false;
1361
+ readonly required: readonly ["node", "pnpm", "typescript"];
1362
+ readonly properties: {
1363
+ readonly node: {
1364
+ readonly type: "string";
1365
+ readonly minLength: 1;
1366
+ readonly maxLength: 64;
1367
+ };
1368
+ readonly pnpm: {
1369
+ readonly type: "string";
1370
+ readonly minLength: 1;
1371
+ readonly maxLength: 64;
1372
+ };
1373
+ readonly typescript: {
1374
+ readonly type: "string";
1375
+ readonly minLength: 1;
1376
+ readonly maxLength: 64;
1377
+ };
1378
+ };
1379
+ };
1380
+ };
1381
+ readonly type: "object";
1382
+ readonly additionalProperties: false;
1383
+ };
1384
+ export declare const projectAdoptionLockSchema: {
1385
+ readonly $id: "https://schemas.dyyto.dev/platform/project-adoption-lock.json";
1386
+ readonly type: "object";
1387
+ readonly additionalProperties: false;
1388
+ readonly required: readonly ["schemaVersion", "capabilities"];
1389
+ readonly properties: {
1390
+ readonly schemaVersion: {
1391
+ readonly enum: readonly [1, 2];
1392
+ };
1393
+ readonly capabilities: {
1394
+ readonly type: "array";
1395
+ readonly items: {
1396
+ readonly type: "object";
1397
+ readonly additionalProperties: false;
1398
+ readonly required: readonly ["capabilityId", "version", "integrity", "consumerProfile", "appliedPlanId", "projectStateDigest", "assets", "evidenceIds", "committedAt"];
1399
+ readonly properties: {
1400
+ readonly capabilityId: {
1401
+ readonly type: "string";
1402
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1403
+ };
1404
+ readonly version: {
1405
+ readonly type: "string";
1406
+ readonly minLength: 1;
1407
+ readonly maxLength: 128;
1408
+ };
1409
+ readonly integrity: {
1410
+ readonly type: "string";
1411
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1412
+ };
1413
+ readonly consumerProfile: {
1414
+ readonly type: "string";
1415
+ readonly minLength: 1;
1416
+ readonly maxLength: 128;
1417
+ };
1418
+ readonly appliedPlanId: {
1419
+ readonly type: "string";
1420
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1421
+ };
1422
+ readonly projectStateDigest: {
1423
+ readonly type: "string";
1424
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1425
+ };
1426
+ readonly assets: {
1427
+ readonly type: "array";
1428
+ readonly items: {
1429
+ readonly type: "object";
1430
+ readonly additionalProperties: false;
1431
+ readonly required: readonly ["path", "digest"];
1432
+ readonly properties: {
1433
+ readonly path: {
1434
+ readonly type: "string";
1435
+ readonly minLength: 1;
1436
+ readonly maxLength: 512;
1437
+ };
1438
+ readonly digest: {
1439
+ readonly type: "string";
1440
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1441
+ };
1442
+ readonly ownership: {
1443
+ readonly enum: readonly ["owned-file", "managed-region", "seed-file"];
1444
+ };
1445
+ readonly regionId: {
1446
+ readonly type: "string";
1447
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1448
+ };
1449
+ };
1450
+ readonly allOf: readonly [{
1451
+ readonly if: {
1452
+ readonly properties: {
1453
+ readonly ownership: {
1454
+ readonly const: "managed-region";
1455
+ };
1456
+ };
1457
+ readonly required: readonly ["ownership"];
1458
+ };
1459
+ readonly then: {
1460
+ readonly properties: {
1461
+ readonly regionId: {
1462
+ readonly type: "string";
1463
+ readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
1464
+ };
1465
+ };
1466
+ readonly required: readonly ["regionId"];
1467
+ };
1468
+ }];
1469
+ };
1470
+ };
1471
+ readonly evidenceIds: {
1472
+ readonly type: "array";
1473
+ readonly items: {
1474
+ readonly type: "string";
1475
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1476
+ };
1477
+ };
1478
+ readonly committedAt: {
1479
+ readonly type: "string";
1480
+ readonly format: "date-time";
1481
+ };
1482
+ readonly packageAdoption: {
1483
+ readonly type: "object";
1484
+ readonly additionalProperties: false;
1485
+ readonly required: readonly ["registryRevisions", "sources", "packageJsonDigest", "lockfileDigest"];
1486
+ readonly properties: {
1487
+ readonly sourceChannel: {
1488
+ readonly enum: readonly ["production", "development"];
1489
+ };
1490
+ readonly registryRevisions: {
1491
+ readonly type: "array";
1492
+ readonly items: {
1493
+ readonly type: "object";
1494
+ readonly additionalProperties: false;
1495
+ readonly required: readonly ["registryId", "revision"];
1496
+ readonly properties: {
1497
+ readonly registryId: {
1498
+ readonly type: "string";
1499
+ readonly pattern: "^[a-z][a-z0-9.-]{2,127}$";
1500
+ };
1501
+ readonly revision: {
1502
+ readonly type: "string";
1503
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1504
+ };
1505
+ };
1506
+ };
1507
+ };
1508
+ readonly sources: {
1509
+ readonly type: "array";
1510
+ readonly minItems: 1;
1511
+ readonly maxItems: 128;
1512
+ readonly items: {
1513
+ readonly type: "object";
1514
+ readonly additionalProperties: false;
1515
+ readonly required: readonly ["registryId", "packageName", "version", "integrity", "tarballDigest", "deliveryReceiptId", "usage"];
1516
+ readonly properties: {
1517
+ readonly registryId: {
1518
+ readonly type: "string";
1519
+ readonly pattern: "^registry\\.[a-z0-9][a-z0-9.-]{1,126}$";
1520
+ };
1521
+ readonly packageName: {
1522
+ readonly type: "string";
1523
+ readonly pattern: "^@[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$";
1524
+ readonly maxLength: 214;
1525
+ };
1526
+ readonly version: {
1527
+ readonly type: "string";
1528
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
1529
+ readonly maxLength: 64;
1530
+ };
1531
+ readonly integrity: {
1532
+ readonly type: "string";
1533
+ readonly pattern: "^sha512-[A-Za-z0-9+/]{86}==$";
1534
+ };
1535
+ readonly tarballDigest: {
1536
+ readonly type: "string";
1537
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1538
+ };
1539
+ readonly deliveryReceiptId: {
1540
+ readonly type: "string";
1541
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1542
+ };
1543
+ readonly usage: {
1544
+ readonly enum: readonly ["runtime", "development"];
1545
+ };
1546
+ };
1547
+ };
1548
+ };
1549
+ readonly packageJsonDigest: {
1550
+ readonly type: "string";
1551
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1552
+ };
1553
+ readonly lockfileDigest: {
1554
+ readonly type: "string";
1555
+ readonly pattern: "^sha256:[a-f0-9]{64}$";
1556
+ };
1557
+ };
1558
+ };
1559
+ };
1560
+ };
1561
+ };
1562
+ };
1563
+ readonly allOf: readonly [{
1564
+ readonly if: {
1565
+ readonly properties: {
1566
+ readonly schemaVersion: {
1567
+ readonly const: 1;
1568
+ };
1569
+ };
1570
+ readonly required: readonly ["schemaVersion"];
1571
+ };
1572
+ readonly then: {
1573
+ readonly properties: {
1574
+ readonly capabilities: {
1575
+ readonly type: "array";
1576
+ readonly items: {
1577
+ readonly type: "object";
1578
+ readonly not: {
1579
+ readonly type: "object";
1580
+ readonly properties: {
1581
+ readonly packageAdoption: {};
1582
+ };
1583
+ readonly required: readonly ["packageAdoption"];
1584
+ };
1585
+ };
1586
+ };
1587
+ };
1588
+ };
1589
+ }];
1590
+ };
1591
+ declare const validators: {
1592
+ capabilityBundleRelease: ValidateFunction<CapabilityBundleRelease>;
1593
+ verificationResult: ValidateFunction<VerificationResult>;
1594
+ adoptionEvidence: ValidateFunction<AdoptionEvidence>;
1595
+ projectAdoptionLock: ValidateFunction<ProjectAdoptionLock>;
1596
+ };
1597
+ export declare class AdoptionContractError extends Error {
1598
+ readonly contract: keyof typeof validators;
1599
+ readonly issues: ErrorObject[];
1600
+ readonly code = "ADOPTION_CONTRACT_INVALID";
1601
+ constructor(contract: keyof typeof validators, issues: ErrorObject[]);
1602
+ }
1603
+ export declare const parseCapabilityBundleRelease: (value: unknown) => CapabilityBundleRelease;
1604
+ export declare const parseVerificationResult: (value: unknown) => VerificationResult;
1605
+ export declare const parseAdoptionEvidence: (value: unknown) => AdoptionEvidence;
1606
+ export declare const parseProjectAdoptionLock: (value: unknown) => ProjectAdoptionLock;
1607
+ export {};
1608
+ //# sourceMappingURL=adoption-schemas.d.ts.map