@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.
- package/README.md +25 -0
- package/dist/adoption-contracts.d.ts +140 -0
- package/dist/adoption-contracts.d.ts.map +1 -0
- package/dist/adoption-contracts.js +2 -0
- package/dist/adoption-contracts.js.map +1 -0
- package/dist/adoption-metadata.d.ts +72 -0
- package/dist/adoption-metadata.d.ts.map +1 -0
- package/dist/adoption-metadata.js +408 -0
- package/dist/adoption-metadata.js.map +1 -0
- package/dist/adoption-schemas.d.ts +1608 -0
- package/dist/adoption-schemas.d.ts.map +1 -0
- package/dist/adoption-schemas.js +319 -0
- package/dist/adoption-schemas.js.map +1 -0
- package/dist/application-config-binding.d.ts +54 -0
- package/dist/application-config-binding.d.ts.map +1 -0
- package/dist/application-config-binding.js +139 -0
- package/dist/application-config-binding.js.map +1 -0
- package/dist/application-config-contract.d.ts +159 -0
- package/dist/application-config-contract.d.ts.map +1 -0
- package/dist/application-config-contract.js +142 -0
- package/dist/application-config-contract.js.map +1 -0
- package/dist/blank-profile.d.ts +60 -0
- package/dist/blank-profile.d.ts.map +1 -0
- package/dist/blank-profile.js +182 -0
- package/dist/blank-profile.js.map +1 -0
- package/dist/catalog-source.d.ts +167 -0
- package/dist/catalog-source.d.ts.map +1 -0
- package/dist/catalog-source.js +252 -0
- package/dist/catalog-source.js.map +1 -0
- package/dist/code-module-publication.d.ts +113 -0
- package/dist/code-module-publication.d.ts.map +1 -0
- package/dist/code-module-publication.js +71 -0
- package/dist/code-module-publication.js.map +1 -0
- package/dist/contracts.d.ts +150 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +3 -0
- package/dist/contracts.js.map +1 -0
- package/dist/delivery.d.ts +201 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +364 -0
- package/dist/delivery.js.map +1 -0
- package/dist/dependency-resolution.d.ts +46 -0
- package/dist/dependency-resolution.d.ts.map +1 -0
- package/dist/dependency-resolution.js +35 -0
- package/dist/dependency-resolution.js.map +1 -0
- package/dist/doctor.d.ts +50 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +62 -0
- package/dist/doctor.js.map +1 -0
- package/dist/durability-trace.d.ts +31 -0
- package/dist/durability-trace.d.ts.map +1 -0
- package/dist/durability-trace.js +45 -0
- package/dist/durability-trace.js.map +1 -0
- package/dist/engineering-operations.d.ts +43 -0
- package/dist/engineering-operations.d.ts.map +1 -0
- package/dist/engineering-operations.js +19 -0
- package/dist/engineering-operations.js.map +1 -0
- package/dist/engineering-product.d.ts +261 -0
- package/dist/engineering-product.d.ts.map +1 -0
- package/dist/engineering-product.js +61 -0
- package/dist/engineering-product.js.map +1 -0
- package/dist/example-recipe.d.ts +147 -0
- package/dist/example-recipe.d.ts.map +1 -0
- package/dist/example-recipe.js +58 -0
- package/dist/example-recipe.js.map +1 -0
- package/dist/feature-planner.d.ts +59 -0
- package/dist/feature-planner.d.ts.map +1 -0
- package/dist/feature-planner.js +160 -0
- package/dist/feature-planner.js.map +1 -0
- package/dist/filesystem-contracts.d.ts +77 -0
- package/dist/filesystem-contracts.d.ts.map +1 -0
- package/dist/filesystem-contracts.js +2 -0
- package/dist/filesystem-contracts.js.map +1 -0
- package/dist/filesystem-transaction.d.ts +52 -0
- package/dist/filesystem-transaction.d.ts.map +1 -0
- package/dist/filesystem-transaction.js +749 -0
- package/dist/filesystem-transaction.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/integrity.d.ts +3 -0
- package/dist/integrity.d.ts.map +1 -0
- package/dist/integrity.js +17 -0
- package/dist/integrity.js.map +1 -0
- package/dist/local-artifact-registry.d.ts +55 -0
- package/dist/local-artifact-registry.d.ts.map +1 -0
- package/dist/local-artifact-registry.js +87 -0
- package/dist/local-artifact-registry.js.map +1 -0
- package/dist/locked-repository-state.d.ts +21 -0
- package/dist/locked-repository-state.d.ts.map +1 -0
- package/dist/locked-repository-state.js +62 -0
- package/dist/locked-repository-state.js.map +1 -0
- package/dist/managed-region.d.ts +11 -0
- package/dist/managed-region.d.ts.map +1 -0
- package/dist/managed-region.js +45 -0
- package/dist/managed-region.js.map +1 -0
- package/dist/package-adoption.d.ts +179 -0
- package/dist/package-adoption.d.ts.map +1 -0
- package/dist/package-adoption.js +332 -0
- package/dist/package-adoption.js.map +1 -0
- package/dist/package-release.d.ts +42 -0
- package/dist/package-release.d.ts.map +1 -0
- package/dist/package-release.js +85 -0
- package/dist/package-release.js.map +1 -0
- package/dist/plan-state.d.ts +10 -0
- package/dist/plan-state.d.ts.map +1 -0
- package/dist/plan-state.js +33 -0
- package/dist/plan-state.js.map +1 -0
- package/dist/planner.d.ts +19 -0
- package/dist/planner.d.ts.map +1 -0
- package/dist/planner.js +111 -0
- package/dist/planner.js.map +1 -0
- package/dist/platform-package-sources.d.ts +49 -0
- package/dist/platform-package-sources.d.ts.map +1 -0
- package/dist/platform-package-sources.js +98 -0
- package/dist/platform-package-sources.js.map +1 -0
- package/dist/project-bootstrap.d.ts +42 -0
- package/dist/project-bootstrap.d.ts.map +1 -0
- package/dist/project-bootstrap.js +270 -0
- package/dist/project-bootstrap.js.map +1 -0
- package/dist/project-control.d.ts +149 -0
- package/dist/project-control.d.ts.map +1 -0
- package/dist/project-control.js +46 -0
- package/dist/project-control.js.map +1 -0
- package/dist/project-maintenance.d.ts +30 -0
- package/dist/project-maintenance.d.ts.map +1 -0
- package/dist/project-maintenance.js +29 -0
- package/dist/project-maintenance.js.map +1 -0
- package/dist/project-recovery.d.ts +31 -0
- package/dist/project-recovery.d.ts.map +1 -0
- package/dist/project-recovery.js +80 -0
- package/dist/project-recovery.js.map +1 -0
- package/dist/recovery-override.d.ts +20 -0
- package/dist/recovery-override.d.ts.map +1 -0
- package/dist/recovery-override.js +27 -0
- package/dist/recovery-override.js.map +1 -0
- package/dist/release-loader.d.ts +9 -0
- package/dist/release-loader.d.ts.map +1 -0
- package/dist/release-loader.js +86 -0
- package/dist/release-loader.js.map +1 -0
- package/dist/resolution-evidence.d.ts +67 -0
- package/dist/resolution-evidence.d.ts.map +1 -0
- package/dist/resolution-evidence.js +98 -0
- package/dist/resolution-evidence.js.map +1 -0
- package/dist/resolution-worker-build.d.ts +33 -0
- package/dist/resolution-worker-build.d.ts.map +1 -0
- package/dist/resolution-worker-build.js +42 -0
- package/dist/resolution-worker-build.js.map +1 -0
- package/dist/runtime-observability.d.ts +147 -0
- package/dist/runtime-observability.d.ts.map +1 -0
- package/dist/runtime-observability.js +264 -0
- package/dist/runtime-observability.js.map +1 -0
- package/dist/schemas.d.ts +740 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +348 -0
- package/dist/schemas.js.map +1 -0
- package/dist/solution-catalog.d.ts +169 -0
- package/dist/solution-catalog.d.ts.map +1 -0
- package/dist/solution-catalog.js +60 -0
- package/dist/solution-catalog.js.map +1 -0
- package/dist/standalone-npm-profile.d.ts +146 -0
- package/dist/standalone-npm-profile.d.ts.map +1 -0
- package/dist/standalone-npm-profile.js +425 -0
- package/dist/standalone-npm-profile.js.map +1 -0
- package/dist/testing.d.ts +5 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +3 -0
- package/dist/testing.js.map +1 -0
- package/dist/upgrade-planner.d.ts +45 -0
- package/dist/upgrade-planner.d.ts.map +1 -0
- package/dist/upgrade-planner.js +207 -0
- package/dist/upgrade-planner.js.map +1 -0
- package/dist/workspace-publication.d.ts +18 -0
- package/dist/workspace-publication.d.ts.map +1 -0
- package/dist/workspace-publication.js +33 -0
- package/dist/workspace-publication.js.map +1 -0
- package/dist/workspace-topology.d.ts +22 -0
- package/dist/workspace-topology.d.ts.map +1 -0
- package/dist/workspace-topology.js +117 -0
- package/dist/workspace-topology.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import { type ErrorObject, type ValidateFunction } from "ajv/dist/2020.js";
|
|
2
|
+
import type { CapabilityRelease, ChangePlan, Evidence, ProjectLock, ProjectManifest } from "./contracts.js";
|
|
3
|
+
import type { TransactionJournal } from "./filesystem-contracts.js";
|
|
4
|
+
export declare const capabilityReleaseSchema: {
|
|
5
|
+
readonly $id: "https://schemas.dyyto.dev/platform/capability-release-v1.json";
|
|
6
|
+
readonly type: "object";
|
|
7
|
+
readonly additionalProperties: false;
|
|
8
|
+
readonly required: readonly ["schemaVersion", "capabilityId", "version", "integrity", "assets", "verifiers"];
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly schemaVersion: {
|
|
11
|
+
readonly const: 1;
|
|
12
|
+
};
|
|
13
|
+
readonly capabilityId: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
16
|
+
};
|
|
17
|
+
readonly version: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly minLength: 1;
|
|
20
|
+
readonly maxLength: 128;
|
|
21
|
+
};
|
|
22
|
+
readonly integrity: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
25
|
+
};
|
|
26
|
+
readonly assets: {
|
|
27
|
+
readonly type: "array";
|
|
28
|
+
readonly items: {
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
readonly required: readonly ["path", "ownership"];
|
|
32
|
+
readonly properties: {
|
|
33
|
+
readonly path: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly minLength: 1;
|
|
36
|
+
readonly maxLength: 512;
|
|
37
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
38
|
+
};
|
|
39
|
+
readonly ownership: {
|
|
40
|
+
readonly enum: readonly ["owned-file", "managed-region", "seed-file", "shared-file", "user-file"];
|
|
41
|
+
};
|
|
42
|
+
readonly desiredDigest: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly verifiers: {
|
|
50
|
+
readonly type: "array";
|
|
51
|
+
readonly items: {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly additionalProperties: false;
|
|
54
|
+
readonly required: readonly ["id", "kind"];
|
|
55
|
+
readonly properties: {
|
|
56
|
+
readonly id: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly minLength: 1;
|
|
59
|
+
readonly maxLength: 128;
|
|
60
|
+
};
|
|
61
|
+
readonly kind: {
|
|
62
|
+
readonly enum: readonly ["command", "file-digest"];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare const projectManifestSchema: {
|
|
70
|
+
readonly $id: "https://schemas.dyyto.dev/platform/project-manifest-v1.json";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
readonly required: readonly ["schemaVersion", "capabilities"];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly schemaVersion: {
|
|
76
|
+
readonly const: 1;
|
|
77
|
+
};
|
|
78
|
+
readonly template: {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly additionalProperties: false;
|
|
81
|
+
readonly required: readonly ["id", "version"];
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly id: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
86
|
+
};
|
|
87
|
+
readonly version: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly minLength: 1;
|
|
90
|
+
readonly maxLength: 128;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly profile: {
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
readonly required: readonly ["id", "parameters"];
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly id: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
102
|
+
};
|
|
103
|
+
readonly parameters: {
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly minProperties: 0;
|
|
106
|
+
readonly maxProperties: 32;
|
|
107
|
+
readonly propertyNames: {
|
|
108
|
+
readonly pattern: "^[a-z][A-Za-z0-9]*$";
|
|
109
|
+
};
|
|
110
|
+
readonly additionalProperties: {
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly maxLength: 256;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly capabilities: {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly items: {
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly additionalProperties: false;
|
|
122
|
+
readonly required: readonly ["capabilityId", "version"];
|
|
123
|
+
readonly properties: {
|
|
124
|
+
readonly capabilityId: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
127
|
+
};
|
|
128
|
+
readonly version: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly minLength: 1;
|
|
131
|
+
readonly maxLength: 128;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare const projectLockSchema: {
|
|
139
|
+
readonly $id: "https://schemas.dyyto.dev/platform/project-lock-v1.json";
|
|
140
|
+
readonly type: "object";
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
readonly required: readonly ["schemaVersion", "capabilities"];
|
|
143
|
+
readonly properties: {
|
|
144
|
+
readonly schemaVersion: {
|
|
145
|
+
readonly const: 1;
|
|
146
|
+
};
|
|
147
|
+
readonly capabilities: {
|
|
148
|
+
readonly type: "array";
|
|
149
|
+
readonly items: {
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly additionalProperties: false;
|
|
152
|
+
readonly required: readonly ["capabilityId", "version", "integrity", "appliedPlanId", "assets", "evidenceIds"];
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly capabilityId: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
157
|
+
};
|
|
158
|
+
readonly version: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly minLength: 1;
|
|
161
|
+
readonly maxLength: 128;
|
|
162
|
+
};
|
|
163
|
+
readonly integrity: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
166
|
+
};
|
|
167
|
+
readonly appliedPlanId: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
170
|
+
};
|
|
171
|
+
readonly assets: {
|
|
172
|
+
readonly type: "array";
|
|
173
|
+
readonly items: {
|
|
174
|
+
readonly type: "object";
|
|
175
|
+
readonly additionalProperties: false;
|
|
176
|
+
readonly required: readonly ["path", "digest"];
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly path: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly minLength: 1;
|
|
181
|
+
readonly maxLength: 512;
|
|
182
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
183
|
+
};
|
|
184
|
+
readonly digest: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly evidenceIds: {
|
|
192
|
+
readonly type: "array";
|
|
193
|
+
readonly items: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly minLength: 1;
|
|
196
|
+
readonly maxLength: 256;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
export declare const evidenceSchema: {
|
|
205
|
+
readonly $id: "https://schemas.dyyto.dev/platform/evidence-v1.json";
|
|
206
|
+
readonly type: "object";
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
readonly required: readonly ["schemaVersion", "evidenceId", "capabilityId", "capabilityVersion", "verifierId", "result", "observedAt"];
|
|
209
|
+
readonly properties: {
|
|
210
|
+
readonly schemaVersion: {
|
|
211
|
+
readonly const: 1;
|
|
212
|
+
};
|
|
213
|
+
readonly evidenceId: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly minLength: 1;
|
|
216
|
+
readonly maxLength: 256;
|
|
217
|
+
};
|
|
218
|
+
readonly capabilityId: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
221
|
+
};
|
|
222
|
+
readonly capabilityVersion: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly minLength: 1;
|
|
225
|
+
readonly maxLength: 128;
|
|
226
|
+
};
|
|
227
|
+
readonly verifierId: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly minLength: 1;
|
|
230
|
+
readonly maxLength: 128;
|
|
231
|
+
};
|
|
232
|
+
readonly result: {
|
|
233
|
+
readonly enum: readonly ["passed", "failed"];
|
|
234
|
+
};
|
|
235
|
+
readonly observedAt: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly format: "date-time";
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
export declare const changePlanSchema: {
|
|
242
|
+
readonly $id: "https://schemas.dyyto.dev/platform/change-plan-v1.json";
|
|
243
|
+
readonly type: "object";
|
|
244
|
+
readonly additionalProperties: false;
|
|
245
|
+
readonly required: readonly ["schemaVersion", "planId", "action", "state", "capability", "generatedAt", "expiresAt", "inputDigest", "operations"];
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly schemaVersion: {
|
|
248
|
+
readonly const: 1;
|
|
249
|
+
};
|
|
250
|
+
readonly planId: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
253
|
+
};
|
|
254
|
+
readonly action: {
|
|
255
|
+
readonly enum: readonly ["adopt", "upgrade", "remove"];
|
|
256
|
+
};
|
|
257
|
+
readonly state: {
|
|
258
|
+
readonly enum: readonly ["reviewable", "conflicted"];
|
|
259
|
+
};
|
|
260
|
+
readonly capability: {
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly additionalProperties: false;
|
|
263
|
+
readonly required: readonly ["capabilityId", "version", "integrity"];
|
|
264
|
+
readonly properties: {
|
|
265
|
+
readonly capabilityId: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
268
|
+
};
|
|
269
|
+
readonly version: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly minLength: 1;
|
|
272
|
+
readonly maxLength: 128;
|
|
273
|
+
};
|
|
274
|
+
readonly integrity: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly generatedAt: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly format: "date-time";
|
|
283
|
+
};
|
|
284
|
+
readonly expiresAt: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly format: "date-time";
|
|
287
|
+
};
|
|
288
|
+
readonly inputDigest: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
291
|
+
};
|
|
292
|
+
readonly packageAdoption: {
|
|
293
|
+
readonly type: "object";
|
|
294
|
+
readonly additionalProperties: false;
|
|
295
|
+
readonly required: readonly ["schemaVersion", "packageJsonPreimageDigest", "desiredPackageJsonDigest", "lockfilePreimage", "desiredLockfileDigest", "registryRevisions", "endpointBindings", "sources", "installPolicy"];
|
|
296
|
+
readonly properties: {
|
|
297
|
+
readonly schemaVersion: {
|
|
298
|
+
readonly enum: readonly [1, 2];
|
|
299
|
+
};
|
|
300
|
+
readonly sourceChannel: {
|
|
301
|
+
readonly enum: readonly ["production", "development"];
|
|
302
|
+
};
|
|
303
|
+
readonly packageJsonPreimageDigest: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
306
|
+
};
|
|
307
|
+
readonly desiredPackageJsonDigest: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
310
|
+
};
|
|
311
|
+
readonly lockfilePreimage: {
|
|
312
|
+
readonly oneOf: readonly [{
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly additionalProperties: false;
|
|
315
|
+
readonly required: readonly ["kind"];
|
|
316
|
+
readonly properties: {
|
|
317
|
+
readonly kind: {
|
|
318
|
+
readonly const: "absent";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
}, {
|
|
322
|
+
readonly type: "object";
|
|
323
|
+
readonly additionalProperties: false;
|
|
324
|
+
readonly required: readonly ["kind", "digest"];
|
|
325
|
+
readonly properties: {
|
|
326
|
+
readonly kind: {
|
|
327
|
+
readonly const: "present";
|
|
328
|
+
};
|
|
329
|
+
readonly digest: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
}];
|
|
335
|
+
};
|
|
336
|
+
readonly desiredLockfileDigest: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
339
|
+
};
|
|
340
|
+
readonly registryRevisions: {
|
|
341
|
+
readonly type: "array";
|
|
342
|
+
readonly minItems: 1;
|
|
343
|
+
readonly items: {
|
|
344
|
+
readonly type: "object";
|
|
345
|
+
readonly additionalProperties: false;
|
|
346
|
+
readonly required: readonly ["registryId", "revision"];
|
|
347
|
+
readonly properties: {
|
|
348
|
+
readonly registryId: {
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly minLength: 1;
|
|
351
|
+
readonly maxLength: 128;
|
|
352
|
+
};
|
|
353
|
+
readonly revision: {
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
readonly endpointBindings: {
|
|
361
|
+
readonly type: "array";
|
|
362
|
+
readonly minItems: 1;
|
|
363
|
+
readonly items: {
|
|
364
|
+
readonly type: "object";
|
|
365
|
+
readonly additionalProperties: false;
|
|
366
|
+
readonly required: readonly ["registryId", "registryConfigRevision", "bindingDigest", "expiresAt"];
|
|
367
|
+
readonly properties: {
|
|
368
|
+
readonly registryId: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly minLength: 1;
|
|
371
|
+
readonly maxLength: 128;
|
|
372
|
+
};
|
|
373
|
+
readonly registryConfigRevision: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
376
|
+
};
|
|
377
|
+
readonly bindingDigest: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
380
|
+
};
|
|
381
|
+
readonly expiresAt: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly format: "date-time";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly sources: {
|
|
389
|
+
readonly type: "array";
|
|
390
|
+
readonly minItems: 1;
|
|
391
|
+
readonly items: {
|
|
392
|
+
readonly type: "object";
|
|
393
|
+
readonly additionalProperties: false;
|
|
394
|
+
readonly required: readonly ["registryId", "packageName", "version", "integrity", "tarballDigest", "deliveryReceiptId", "usage"];
|
|
395
|
+
readonly properties: {
|
|
396
|
+
readonly registryId: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly minLength: 1;
|
|
399
|
+
readonly maxLength: 128;
|
|
400
|
+
};
|
|
401
|
+
readonly packageName: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly pattern: "^@[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$";
|
|
404
|
+
};
|
|
405
|
+
readonly version: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly minLength: 1;
|
|
408
|
+
readonly maxLength: 128;
|
|
409
|
+
};
|
|
410
|
+
readonly integrity: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
readonly pattern: "^sha512-[A-Za-z0-9+/]+={0,2}$";
|
|
413
|
+
};
|
|
414
|
+
readonly tarballDigest: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
417
|
+
};
|
|
418
|
+
readonly deliveryReceiptId: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
421
|
+
};
|
|
422
|
+
readonly usage: {
|
|
423
|
+
readonly enum: readonly ["runtime", "development"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
readonly installPolicy: {
|
|
429
|
+
readonly type: "object";
|
|
430
|
+
readonly additionalProperties: false;
|
|
431
|
+
readonly required: readonly ["ignoreScripts", "allowWorkspaceProtocol", "allowPublicRegistryFallback"];
|
|
432
|
+
readonly properties: {
|
|
433
|
+
readonly ignoreScripts: {
|
|
434
|
+
readonly const: true;
|
|
435
|
+
};
|
|
436
|
+
readonly allowWorkspaceProtocol: {
|
|
437
|
+
readonly const: false;
|
|
438
|
+
};
|
|
439
|
+
readonly allowPublicRegistryFallback: {
|
|
440
|
+
readonly const: false;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
readonly topology: {
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly additionalProperties: false;
|
|
447
|
+
readonly required: readonly ["mode", "unitRelativeRoot", "unitImporterId", "lockfilePath"];
|
|
448
|
+
readonly properties: {
|
|
449
|
+
readonly mode: {
|
|
450
|
+
readonly enum: readonly ["standalone", "pnpm-shared-lockfile"];
|
|
451
|
+
};
|
|
452
|
+
readonly unitRelativeRoot: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly minLength: 1;
|
|
455
|
+
readonly maxLength: 512;
|
|
456
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
457
|
+
};
|
|
458
|
+
readonly unitImporterId: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly minLength: 1;
|
|
461
|
+
readonly maxLength: 512;
|
|
462
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
463
|
+
};
|
|
464
|
+
readonly lockfilePath: {
|
|
465
|
+
readonly const: "pnpm-lock.yaml";
|
|
466
|
+
};
|
|
467
|
+
readonly workspaceManifestPath: {
|
|
468
|
+
readonly const: "pnpm-workspace.yaml";
|
|
469
|
+
};
|
|
470
|
+
readonly workspaceManifestDigest: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
readonly preservedDependencies: {
|
|
477
|
+
readonly type: "array";
|
|
478
|
+
readonly items: {
|
|
479
|
+
readonly type: "object";
|
|
480
|
+
readonly additionalProperties: false;
|
|
481
|
+
readonly required: readonly ["section", "packageName", "specifier"];
|
|
482
|
+
readonly properties: {
|
|
483
|
+
readonly section: {
|
|
484
|
+
readonly enum: readonly ["dependencies", "devDependencies", "optionalDependencies"];
|
|
485
|
+
};
|
|
486
|
+
readonly packageName: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly minLength: 1;
|
|
489
|
+
readonly maxLength: 214;
|
|
490
|
+
};
|
|
491
|
+
readonly specifier: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly minLength: 1;
|
|
494
|
+
readonly maxLength: 512;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly preservedImporterDigests: {
|
|
500
|
+
readonly type: "array";
|
|
501
|
+
readonly items: {
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
readonly additionalProperties: false;
|
|
504
|
+
readonly required: readonly ["importerId", "preimageDigest", "desiredDigest"];
|
|
505
|
+
readonly properties: {
|
|
506
|
+
readonly importerId: {
|
|
507
|
+
readonly type: "string";
|
|
508
|
+
readonly minLength: 1;
|
|
509
|
+
readonly maxLength: 512;
|
|
510
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
511
|
+
};
|
|
512
|
+
readonly preimageDigest: {
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
515
|
+
};
|
|
516
|
+
readonly desiredDigest: {
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly allOf: readonly [{
|
|
525
|
+
readonly if: {
|
|
526
|
+
readonly properties: {
|
|
527
|
+
readonly schemaVersion: {
|
|
528
|
+
readonly const: 1;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly required: readonly ["schemaVersion"];
|
|
532
|
+
};
|
|
533
|
+
readonly then: {
|
|
534
|
+
readonly properties: {
|
|
535
|
+
readonly topology: false;
|
|
536
|
+
readonly preservedDependencies: false;
|
|
537
|
+
readonly preservedImporterDigests: false;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
}, {
|
|
541
|
+
readonly if: {
|
|
542
|
+
readonly properties: {
|
|
543
|
+
readonly schemaVersion: {
|
|
544
|
+
readonly const: 2;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
readonly required: readonly ["schemaVersion"];
|
|
548
|
+
};
|
|
549
|
+
readonly then: {
|
|
550
|
+
readonly required: readonly ["topology", "preservedDependencies", "preservedImporterDigests"];
|
|
551
|
+
};
|
|
552
|
+
}];
|
|
553
|
+
};
|
|
554
|
+
readonly operations: {
|
|
555
|
+
readonly type: "array";
|
|
556
|
+
readonly items: {
|
|
557
|
+
readonly type: "object";
|
|
558
|
+
readonly additionalProperties: false;
|
|
559
|
+
readonly required: readonly ["path", "kind", "ownership", "disposition"];
|
|
560
|
+
readonly properties: {
|
|
561
|
+
readonly path: {
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
readonly minLength: 1;
|
|
564
|
+
readonly maxLength: 512;
|
|
565
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
566
|
+
};
|
|
567
|
+
readonly kind: {
|
|
568
|
+
readonly enum: readonly ["create", "replace", "merge", "remove"];
|
|
569
|
+
};
|
|
570
|
+
readonly ownership: {
|
|
571
|
+
readonly enum: readonly ["owned-file", "managed-region", "seed-file", "shared-file", "user-file"];
|
|
572
|
+
};
|
|
573
|
+
readonly desiredDigest: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
576
|
+
};
|
|
577
|
+
readonly baseDigest: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
580
|
+
};
|
|
581
|
+
readonly regionId: {
|
|
582
|
+
readonly type: "string";
|
|
583
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$";
|
|
584
|
+
};
|
|
585
|
+
readonly disposition: {
|
|
586
|
+
readonly enum: readonly ["ready", "noop", "conflict"];
|
|
587
|
+
};
|
|
588
|
+
readonly conflictCode: {
|
|
589
|
+
readonly enum: readonly ["USER_OWNED", "UNEXPECTED_EXISTING", "BASE_DIGEST_MISMATCH"];
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
export declare const transactionJournalSchema: {
|
|
597
|
+
readonly $id: "https://schemas.dyyto.dev/platform/transaction-journal-v1.json";
|
|
598
|
+
readonly type: "object";
|
|
599
|
+
readonly additionalProperties: false;
|
|
600
|
+
readonly required: readonly ["schemaVersion", "transactionId", "planId", "approvedPlanId", "projectRootDigest", "state", "createdAt", "updatedAt", "operations", "journalDigest"];
|
|
601
|
+
readonly properties: {
|
|
602
|
+
readonly schemaVersion: {
|
|
603
|
+
readonly const: 1;
|
|
604
|
+
};
|
|
605
|
+
readonly transactionId: {
|
|
606
|
+
readonly type: "string";
|
|
607
|
+
readonly minLength: 1;
|
|
608
|
+
readonly maxLength: 128;
|
|
609
|
+
};
|
|
610
|
+
readonly planId: {
|
|
611
|
+
readonly type: "string";
|
|
612
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
613
|
+
};
|
|
614
|
+
readonly approvedPlanId: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
617
|
+
};
|
|
618
|
+
readonly projectRootDigest: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
621
|
+
};
|
|
622
|
+
readonly state: {
|
|
623
|
+
readonly enum: readonly ["preparing", "prepared", "applying", "applied", "recovery-required", "recovering", "recovered"];
|
|
624
|
+
};
|
|
625
|
+
readonly createdAt: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
readonly format: "date-time";
|
|
628
|
+
};
|
|
629
|
+
readonly updatedAt: {
|
|
630
|
+
readonly type: "string";
|
|
631
|
+
readonly format: "date-time";
|
|
632
|
+
};
|
|
633
|
+
readonly operations: {
|
|
634
|
+
readonly type: "array";
|
|
635
|
+
readonly items: {
|
|
636
|
+
readonly type: "object";
|
|
637
|
+
readonly additionalProperties: false;
|
|
638
|
+
readonly required: readonly ["index", "path", "kind", "before", "status"];
|
|
639
|
+
readonly properties: {
|
|
640
|
+
readonly index: {
|
|
641
|
+
readonly type: "integer";
|
|
642
|
+
readonly minimum: 0;
|
|
643
|
+
};
|
|
644
|
+
readonly path: {
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
readonly minLength: 1;
|
|
647
|
+
readonly maxLength: 512;
|
|
648
|
+
readonly pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$";
|
|
649
|
+
};
|
|
650
|
+
readonly kind: {
|
|
651
|
+
readonly enum: readonly ["create", "replace", "merge", "remove"];
|
|
652
|
+
};
|
|
653
|
+
readonly before: {
|
|
654
|
+
readonly oneOf: readonly [{
|
|
655
|
+
readonly type: "object";
|
|
656
|
+
readonly additionalProperties: false;
|
|
657
|
+
readonly required: readonly ["kind"];
|
|
658
|
+
readonly properties: {
|
|
659
|
+
readonly kind: {
|
|
660
|
+
readonly const: "absent";
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
}, {
|
|
664
|
+
readonly type: "object";
|
|
665
|
+
readonly additionalProperties: false;
|
|
666
|
+
readonly required: readonly ["kind", "digest", "mode", "preimageDigest"];
|
|
667
|
+
readonly properties: {
|
|
668
|
+
readonly kind: {
|
|
669
|
+
readonly const: "present";
|
|
670
|
+
};
|
|
671
|
+
readonly digest: {
|
|
672
|
+
readonly type: "string";
|
|
673
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
674
|
+
};
|
|
675
|
+
readonly mode: {
|
|
676
|
+
readonly type: "integer";
|
|
677
|
+
readonly minimum: 0;
|
|
678
|
+
readonly maximum: 511;
|
|
679
|
+
};
|
|
680
|
+
readonly preimageDigest: {
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
}];
|
|
686
|
+
};
|
|
687
|
+
readonly desiredDigest: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
690
|
+
};
|
|
691
|
+
readonly status: {
|
|
692
|
+
readonly enum: readonly ["pending", "applied", "restored"];
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly failure: {
|
|
698
|
+
readonly type: "object";
|
|
699
|
+
readonly additionalProperties: false;
|
|
700
|
+
readonly required: readonly ["code"];
|
|
701
|
+
readonly properties: {
|
|
702
|
+
readonly code: {
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
readonly minLength: 1;
|
|
705
|
+
readonly maxLength: 128;
|
|
706
|
+
};
|
|
707
|
+
readonly operationIndex: {
|
|
708
|
+
readonly type: "integer";
|
|
709
|
+
readonly minimum: 0;
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
readonly journalDigest: {
|
|
714
|
+
readonly type: "string";
|
|
715
|
+
readonly pattern: "^sha256:[a-f0-9]{64}$";
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
declare const validators: {
|
|
720
|
+
capabilityRelease: ValidateFunction<CapabilityRelease>;
|
|
721
|
+
projectManifest: ValidateFunction<ProjectManifest>;
|
|
722
|
+
projectLock: ValidateFunction<ProjectLock>;
|
|
723
|
+
evidence: ValidateFunction<Evidence>;
|
|
724
|
+
changePlan: ValidateFunction<ChangePlan>;
|
|
725
|
+
transactionJournal: ValidateFunction<TransactionJournal>;
|
|
726
|
+
};
|
|
727
|
+
export declare class ContractValidationError extends Error {
|
|
728
|
+
readonly contract: keyof typeof validators;
|
|
729
|
+
readonly issues: ErrorObject[];
|
|
730
|
+
readonly code = "CONTRACT_INVALID";
|
|
731
|
+
constructor(contract: keyof typeof validators, issues: ErrorObject[]);
|
|
732
|
+
}
|
|
733
|
+
export declare const parseCapabilityRelease: (value: unknown) => CapabilityRelease;
|
|
734
|
+
export declare const parseProjectManifest: (value: unknown) => ProjectManifest;
|
|
735
|
+
export declare const parseProjectLock: (value: unknown) => ProjectLock;
|
|
736
|
+
export declare const parseEvidence: (value: unknown) => Evidence;
|
|
737
|
+
export declare const parseChangePlan: (value: unknown) => ChangePlan;
|
|
738
|
+
export declare const parseTransactionJournal: (value: unknown) => TransactionJournal;
|
|
739
|
+
export {};
|
|
740
|
+
//# sourceMappingURL=schemas.d.ts.map
|