@aikdna/kdna-core 0.37.0 → 0.37.2
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 +28 -7
- package/package.json +11 -1
- package/src/public-contract/browser-native/generated-contract.json +3 -3
- package/src/public-contract/browser-native/sections/contract.json +2 -2
- package/src/public-contract/browser-native/whole.js +30 -1
- package/src/public-contract/browser-protected/request.js +77 -0
- package/src/public-contract/browser-protected/state.js +200 -0
- package/src/public-contract/browserwhole06/contract.json +2 -2
- package/src/public-contract/creation06/contract.json +2 -2
- package/src/public-contract/creation06/generation-manifest.json +8 -8
- package/src/public-contract/execution06/contract.json +2 -2
- package/src/public-contract/execution06/generation-manifest.json +8 -8
- package/src/public-contract/generated-contract.json +3 -3
- package/src/public-contract/issuer-contract.generated.json +6 -6
- package/src/public-contract/issuer-validators.generated.js +7 -7
- package/src/public-contract/key-grant-issuer-node.d.ts +1 -1
- package/src/public-contract/package-set-contract.generated.json +5 -5
- package/src/public-contract/package-set-node.d.ts +1 -1
- package/src/public-contract/package-set-validators.generated.js +9 -9
- package/src/public-contract/packageset06/contract.json +2 -2
- package/src/public-contract/packageset06/generation-manifest.json +8 -8
- package/src/public-contract/protected-browser-contract/contract.json +11824 -0
- package/src/public-contract/protected-browser-contract/descriptor.json +5 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAdmissionResult.json +443 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAuthorityContext.json +939 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedBinding.json +156 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedCallResult.json +10489 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedDeliveryToken.json +10 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedExpansionHandle.json +320 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostContext.json +677 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostObservation.json +208 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadAuthority.json +10 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadResult.json +10795 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequest.json +539 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequestAdmission.json +1016 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSignaturePolicy.json +35 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSnapshotData.json +8451 -0
- package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedTransportCommitResult.json +304 -0
- package/src/public-contract/protected-browser-contract/schemas/TrustedBrowserProtectedHost.json +10 -0
- package/src/public-contract/protected-browser-contract/types.d.ts +389 -0
- package/src/public-contract/protected-browser-contract/validators.cjs +223756 -0
- package/src/public-contract/protected-sections-browser.d.ts +11 -0
- package/src/public-contract/protected-sections-browser.js +22 -0
- package/src/public-contract/protected-sections-browser.mjs +2 -0
- package/src/public-contract/protected-source-contract.generated.json +8 -8
- package/src/public-contract/protected-source-node.d.ts +1 -1
- package/src/public-contract/protection-admission-browser.js +21 -3
- package/src/public-contract/protection-contract.generated.json +9 -9
- package/src/public-contract/protection-envelope-codec.js +16 -12
- package/src/public-contract/protection-node.d.ts +2 -2
- package/src/public-contract/protection-validators.generated.js +5 -5
- package/src/public-contract/public-contract.d.ts +13 -0
- package/src/public-contract/public-contract.js +32 -0
- package/src/public-contract/public-contract.mjs +2 -0
- package/src/public-contract/retained/contract.json +2 -2
- package/src/public-contract/retained/generation-manifest.json +8 -8
- package/src/public-contract/retained-browser06/contract.json +2 -2
- package/src/public-contract/sectionbytes/contract.json +2 -2
- package/src/public-contract/sectionbytes/generation-manifest.json +8 -8
- package/src/public-contract/sections/contract.json +2 -2
- package/src/public-contract/sections/generation-manifest.json +8 -8
- package/src/public-contract/sections-bytes-node.js +31 -0
- package/src/public-contract/sections-node.js +36 -1
- package/src/public-contract/source-validators.generated.js +6 -6
- package/src/public-contract/source06/contract.json +2 -2
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:kdna:candidate:protected-browser:BrowserProtectedTransportCommitResult",
|
|
4
|
+
"title": "BrowserProtectedTransportCommitResult",
|
|
5
|
+
"description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
|
|
6
|
+
"$ref": "#/$defs/BrowserProtectedTransportCommitResult",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"BrowserProtectedConfirmedDisclosure": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "trusted_host"
|
|
14
|
+
},
|
|
15
|
+
"at_ms": {
|
|
16
|
+
"$ref": "#/$defs/UInt"
|
|
17
|
+
},
|
|
18
|
+
"external_commit": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"state": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "confirmed"
|
|
24
|
+
},
|
|
25
|
+
"attempt_id": {
|
|
26
|
+
"$ref": "#/$defs/Identifier"
|
|
27
|
+
},
|
|
28
|
+
"attempted_at_ms": {
|
|
29
|
+
"$ref": "#/$defs/UInt"
|
|
30
|
+
},
|
|
31
|
+
"confirmed_at_ms": {
|
|
32
|
+
"$ref": "#/$defs/UInt"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"state",
|
|
37
|
+
"attempt_id",
|
|
38
|
+
"attempted_at_ms",
|
|
39
|
+
"confirmed_at_ms"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"kind",
|
|
46
|
+
"at_ms",
|
|
47
|
+
"external_commit"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
"BrowserProtectedDeliveryFailed": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"status": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "delivery_failed"
|
|
57
|
+
},
|
|
58
|
+
"reason": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"host_callback_failed",
|
|
62
|
+
"transport_commit_failed"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"disclosure": {
|
|
66
|
+
"$ref": "#/$defs/BrowserProtectedDisclosure"
|
|
67
|
+
},
|
|
68
|
+
"body": {
|
|
69
|
+
"type": "null",
|
|
70
|
+
"const": null
|
|
71
|
+
},
|
|
72
|
+
"body_bytes": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"const": 0
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"status",
|
|
79
|
+
"reason",
|
|
80
|
+
"disclosure",
|
|
81
|
+
"body",
|
|
82
|
+
"body_bytes"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
},
|
|
86
|
+
"BrowserProtectedDiagnostic": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"code": {
|
|
90
|
+
"$ref": "#/$defs/Identifier"
|
|
91
|
+
},
|
|
92
|
+
"stage": {
|
|
93
|
+
"$ref": "#/$defs/Identifier"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"code",
|
|
98
|
+
"stage"
|
|
99
|
+
],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"BrowserProtectedDisclosure": {
|
|
103
|
+
"oneOf": [
|
|
104
|
+
{
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"kind": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"const": "none"
|
|
110
|
+
},
|
|
111
|
+
"external_commit": {
|
|
112
|
+
"$ref": "#/$defs/BrowserProtectedExternalCommitNotInvoked"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"required": [
|
|
116
|
+
"kind",
|
|
117
|
+
"external_commit"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"kind": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"const": "trusted_host"
|
|
127
|
+
},
|
|
128
|
+
"at_ms": {
|
|
129
|
+
"$ref": "#/$defs/UInt"
|
|
130
|
+
},
|
|
131
|
+
"external_commit": {
|
|
132
|
+
"$ref": "#/$defs/BrowserProtectedExternalCommit"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"kind",
|
|
137
|
+
"at_ms",
|
|
138
|
+
"external_commit"
|
|
139
|
+
],
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"BrowserProtectedExternalCommit": {
|
|
145
|
+
"oneOf": [
|
|
146
|
+
{
|
|
147
|
+
"$ref": "#/$defs/BrowserProtectedExternalCommitNotInvoked"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"$ref": "#/$defs/BrowserProtectedExternalCommitUnknown"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"$ref": "#/$defs/BrowserProtectedExternalCommitConfirmed"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"BrowserProtectedExternalCommitConfirmed": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"state": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"const": "confirmed"
|
|
163
|
+
},
|
|
164
|
+
"attempt_id": {
|
|
165
|
+
"$ref": "#/$defs/Identifier"
|
|
166
|
+
},
|
|
167
|
+
"attempted_at_ms": {
|
|
168
|
+
"$ref": "#/$defs/UInt"
|
|
169
|
+
},
|
|
170
|
+
"confirmed_at_ms": {
|
|
171
|
+
"oneOf": [
|
|
172
|
+
{
|
|
173
|
+
"$ref": "#/$defs/UInt"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "null"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": [
|
|
182
|
+
"state",
|
|
183
|
+
"attempt_id",
|
|
184
|
+
"attempted_at_ms",
|
|
185
|
+
"confirmed_at_ms"
|
|
186
|
+
],
|
|
187
|
+
"additionalProperties": false
|
|
188
|
+
},
|
|
189
|
+
"BrowserProtectedExternalCommitNotInvoked": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"state": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"const": "not_invoked"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"state"
|
|
199
|
+
],
|
|
200
|
+
"additionalProperties": false
|
|
201
|
+
},
|
|
202
|
+
"BrowserProtectedExternalCommitUnknown": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"state": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"const": "outcome_unknown"
|
|
208
|
+
},
|
|
209
|
+
"attempt_id": {
|
|
210
|
+
"$ref": "#/$defs/Identifier"
|
|
211
|
+
},
|
|
212
|
+
"attempted_at_ms": {
|
|
213
|
+
"$ref": "#/$defs/UInt"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"state",
|
|
218
|
+
"attempt_id",
|
|
219
|
+
"attempted_at_ms"
|
|
220
|
+
],
|
|
221
|
+
"additionalProperties": false
|
|
222
|
+
},
|
|
223
|
+
"BrowserProtectedReadFailed": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"properties": {
|
|
226
|
+
"status": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"const": "protection_failed"
|
|
229
|
+
},
|
|
230
|
+
"diagnostic": {
|
|
231
|
+
"$ref": "#/$defs/BrowserProtectedDiagnostic"
|
|
232
|
+
},
|
|
233
|
+
"disclosure": {
|
|
234
|
+
"$ref": "#/$defs/BrowserProtectedDisclosure"
|
|
235
|
+
},
|
|
236
|
+
"body": {
|
|
237
|
+
"type": "null",
|
|
238
|
+
"const": null
|
|
239
|
+
},
|
|
240
|
+
"body_bytes": {
|
|
241
|
+
"type": "integer",
|
|
242
|
+
"const": 0
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"status",
|
|
247
|
+
"diagnostic",
|
|
248
|
+
"disclosure",
|
|
249
|
+
"body",
|
|
250
|
+
"body_bytes"
|
|
251
|
+
],
|
|
252
|
+
"additionalProperties": false
|
|
253
|
+
},
|
|
254
|
+
"BrowserProtectedTransportCommitResult": {
|
|
255
|
+
"oneOf": [
|
|
256
|
+
{
|
|
257
|
+
"$ref": "#/$defs/BrowserProtectedTransportCommitted"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"$ref": "#/$defs/BrowserProtectedReadFailed"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"$ref": "#/$defs/BrowserProtectedDeliveryFailed"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"BrowserProtectedTransportCommitted": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"properties": {
|
|
270
|
+
"status": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"const": "committed"
|
|
273
|
+
},
|
|
274
|
+
"operation_id": {
|
|
275
|
+
"$ref": "#/$defs/Identifier"
|
|
276
|
+
},
|
|
277
|
+
"committed_at_ms": {
|
|
278
|
+
"$ref": "#/$defs/UInt"
|
|
279
|
+
},
|
|
280
|
+
"disclosure": {
|
|
281
|
+
"$ref": "#/$defs/BrowserProtectedConfirmedDisclosure"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": [
|
|
285
|
+
"status",
|
|
286
|
+
"operation_id",
|
|
287
|
+
"committed_at_ms",
|
|
288
|
+
"disclosure"
|
|
289
|
+
],
|
|
290
|
+
"additionalProperties": false
|
|
291
|
+
},
|
|
292
|
+
"Identifier": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"minLength": 1,
|
|
295
|
+
"maxLength": 256,
|
|
296
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\ud800-\\udfff]+$"
|
|
297
|
+
},
|
|
298
|
+
"UInt": {
|
|
299
|
+
"type": "integer",
|
|
300
|
+
"minimum": 0,
|
|
301
|
+
"maximum": 9007199254740991
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
package/src/public-contract/protected-browser-contract/schemas/TrustedBrowserProtectedHost.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:kdna:candidate:protected-browser:TrustedBrowserProtectedHost",
|
|
4
|
+
"title": "TrustedBrowserProtectedHost",
|
|
5
|
+
"description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
|
|
6
|
+
"$ref": "#/$defs/TrustedBrowserProtectedHost",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"TrustedBrowserProtectedHost": false
|
|
9
|
+
}
|
|
10
|
+
}
|