@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.
Files changed (65) hide show
  1. package/README.md +28 -7
  2. package/package.json +11 -1
  3. package/src/public-contract/browser-native/generated-contract.json +3 -3
  4. package/src/public-contract/browser-native/sections/contract.json +2 -2
  5. package/src/public-contract/browser-native/whole.js +30 -1
  6. package/src/public-contract/browser-protected/request.js +77 -0
  7. package/src/public-contract/browser-protected/state.js +200 -0
  8. package/src/public-contract/browserwhole06/contract.json +2 -2
  9. package/src/public-contract/creation06/contract.json +2 -2
  10. package/src/public-contract/creation06/generation-manifest.json +8 -8
  11. package/src/public-contract/execution06/contract.json +2 -2
  12. package/src/public-contract/execution06/generation-manifest.json +8 -8
  13. package/src/public-contract/generated-contract.json +3 -3
  14. package/src/public-contract/issuer-contract.generated.json +6 -6
  15. package/src/public-contract/issuer-validators.generated.js +7 -7
  16. package/src/public-contract/key-grant-issuer-node.d.ts +1 -1
  17. package/src/public-contract/package-set-contract.generated.json +5 -5
  18. package/src/public-contract/package-set-node.d.ts +1 -1
  19. package/src/public-contract/package-set-validators.generated.js +9 -9
  20. package/src/public-contract/packageset06/contract.json +2 -2
  21. package/src/public-contract/packageset06/generation-manifest.json +8 -8
  22. package/src/public-contract/protected-browser-contract/contract.json +11824 -0
  23. package/src/public-contract/protected-browser-contract/descriptor.json +5 -0
  24. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAdmissionResult.json +443 -0
  25. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAuthorityContext.json +939 -0
  26. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedBinding.json +156 -0
  27. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedCallResult.json +10489 -0
  28. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedDeliveryToken.json +10 -0
  29. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedExpansionHandle.json +320 -0
  30. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostContext.json +677 -0
  31. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostObservation.json +208 -0
  32. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadAuthority.json +10 -0
  33. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadResult.json +10795 -0
  34. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequest.json +539 -0
  35. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequestAdmission.json +1016 -0
  36. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSignaturePolicy.json +35 -0
  37. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSnapshotData.json +8451 -0
  38. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedTransportCommitResult.json +304 -0
  39. package/src/public-contract/protected-browser-contract/schemas/TrustedBrowserProtectedHost.json +10 -0
  40. package/src/public-contract/protected-browser-contract/types.d.ts +389 -0
  41. package/src/public-contract/protected-browser-contract/validators.cjs +223756 -0
  42. package/src/public-contract/protected-sections-browser.d.ts +11 -0
  43. package/src/public-contract/protected-sections-browser.js +22 -0
  44. package/src/public-contract/protected-sections-browser.mjs +2 -0
  45. package/src/public-contract/protected-source-contract.generated.json +8 -8
  46. package/src/public-contract/protected-source-node.d.ts +1 -1
  47. package/src/public-contract/protection-admission-browser.js +21 -3
  48. package/src/public-contract/protection-contract.generated.json +9 -9
  49. package/src/public-contract/protection-envelope-codec.js +16 -12
  50. package/src/public-contract/protection-node.d.ts +2 -2
  51. package/src/public-contract/protection-validators.generated.js +5 -5
  52. package/src/public-contract/public-contract.d.ts +13 -0
  53. package/src/public-contract/public-contract.js +32 -0
  54. package/src/public-contract/public-contract.mjs +2 -0
  55. package/src/public-contract/retained/contract.json +2 -2
  56. package/src/public-contract/retained/generation-manifest.json +8 -8
  57. package/src/public-contract/retained-browser06/contract.json +2 -2
  58. package/src/public-contract/sectionbytes/contract.json +2 -2
  59. package/src/public-contract/sectionbytes/generation-manifest.json +8 -8
  60. package/src/public-contract/sections/contract.json +2 -2
  61. package/src/public-contract/sections/generation-manifest.json +8 -8
  62. package/src/public-contract/sections-bytes-node.js +31 -0
  63. package/src/public-contract/sections-node.js +36 -1
  64. package/src/public-contract/source-validators.generated.js +6 -6
  65. package/src/public-contract/source06/contract.json +2 -2
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:kdna:candidate:protected-browser:BrowserProtectedDeliveryToken",
4
+ "title": "BrowserProtectedDeliveryToken",
5
+ "description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
6
+ "$ref": "#/$defs/BrowserProtectedDeliveryToken",
7
+ "$defs": {
8
+ "BrowserProtectedDeliveryToken": false
9
+ }
10
+ }
@@ -0,0 +1,320 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:kdna:candidate:protected-browser:BrowserProtectedExpansionHandle",
4
+ "title": "BrowserProtectedExpansionHandle",
5
+ "description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
6
+ "$ref": "#/$defs/BrowserProtectedExpansionHandle",
7
+ "$defs": {
8
+ "AssetIdentity": {
9
+ "type": "object",
10
+ "properties": {
11
+ "asset_id": {
12
+ "$ref": "#/$defs/Identifier"
13
+ },
14
+ "asset_version": {
15
+ "$ref": "#/$defs/VersionLabel"
16
+ },
17
+ "judgment_version": {
18
+ "$ref": "#/$defs/VersionLabel"
19
+ }
20
+ },
21
+ "required": [
22
+ "asset_id",
23
+ "asset_version",
24
+ "judgment_version"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "BrowserProtectedExpansionHandle": {
29
+ "oneOf": [
30
+ {
31
+ "$ref": "#/$defs/BrowserProtectedWholeHandle"
32
+ },
33
+ {
34
+ "$ref": "#/$defs/BrowserProtectedSetHandle"
35
+ }
36
+ ]
37
+ },
38
+ "BrowserProtectedSelection": {
39
+ "type": "object",
40
+ "properties": {
41
+ "asset_id": {
42
+ "$ref": "#/$defs/Identifier"
43
+ },
44
+ "asset_version": {
45
+ "$ref": "#/$defs/VersionLabel"
46
+ },
47
+ "judgment_ids": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/$defs/Identifier"
51
+ },
52
+ "minItems": 1
53
+ }
54
+ },
55
+ "required": [
56
+ "asset_id",
57
+ "asset_version",
58
+ "judgment_ids"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "BrowserProtectedSetHandle": {
63
+ "type": "object",
64
+ "properties": {
65
+ "handle_id": {
66
+ "$ref": "#/$defs/Identifier"
67
+ },
68
+ "asset_id": {
69
+ "$ref": "#/$defs/Identifier"
70
+ },
71
+ "asset_version": {
72
+ "$ref": "#/$defs/VersionLabel"
73
+ },
74
+ "A": {
75
+ "$ref": "#/$defs/Digest"
76
+ },
77
+ "C": {
78
+ "$ref": "#/$defs/Digest"
79
+ },
80
+ "snapshot_id": {
81
+ "$ref": "#/$defs/Identifier"
82
+ },
83
+ "core_version": {
84
+ "$ref": "#/$defs/Identifier"
85
+ },
86
+ "ir_version": {
87
+ "$ref": "#/$defs/Identifier"
88
+ },
89
+ "read_version": {
90
+ "$ref": "#/$defs/Identifier"
91
+ },
92
+ "target": {
93
+ "$ref": "#/$defs/Ref"
94
+ },
95
+ "scope": {
96
+ "type": "array",
97
+ "items": {
98
+ "$ref": "#/$defs/Identifier"
99
+ },
100
+ "minItems": 1,
101
+ "uniqueItems": true
102
+ },
103
+ "issued_at": {
104
+ "$ref": "#/$defs/UInt"
105
+ },
106
+ "expires_at": {
107
+ "$ref": "#/$defs/UInt"
108
+ },
109
+ "host_id": {
110
+ "$ref": "#/$defs/Identifier"
111
+ },
112
+ "host_epoch": {
113
+ "$ref": "#/$defs/Identifier"
114
+ },
115
+ "anchor": {
116
+ "type": "object",
117
+ "properties": {
118
+ "kind": {
119
+ "type": "string",
120
+ "const": "selection_set"
121
+ },
122
+ "selection": {
123
+ "$ref": "#/$defs/BrowserProtectedSelection"
124
+ }
125
+ },
126
+ "required": [
127
+ "kind",
128
+ "selection"
129
+ ],
130
+ "additionalProperties": false
131
+ },
132
+ "binding_kind": {
133
+ "type": "string",
134
+ "const": "protected_selection_set"
135
+ },
136
+ "operation_id": {
137
+ "$ref": "#/$defs/Identifier"
138
+ },
139
+ "capture_id": {
140
+ "$ref": "#/$defs/Identifier"
141
+ }
142
+ },
143
+ "required": [
144
+ "handle_id",
145
+ "asset_id",
146
+ "asset_version",
147
+ "A",
148
+ "C",
149
+ "snapshot_id",
150
+ "core_version",
151
+ "ir_version",
152
+ "read_version",
153
+ "anchor",
154
+ "target",
155
+ "scope",
156
+ "issued_at",
157
+ "expires_at",
158
+ "host_id",
159
+ "host_epoch",
160
+ "binding_kind",
161
+ "operation_id",
162
+ "capture_id"
163
+ ],
164
+ "additionalProperties": false
165
+ },
166
+ "BrowserProtectedWholeHandle": {
167
+ "type": "object",
168
+ "properties": {
169
+ "handle_id": {
170
+ "$ref": "#/$defs/Identifier"
171
+ },
172
+ "asset_id": {
173
+ "$ref": "#/$defs/Identifier"
174
+ },
175
+ "asset_version": {
176
+ "$ref": "#/$defs/VersionLabel"
177
+ },
178
+ "A": {
179
+ "$ref": "#/$defs/Digest"
180
+ },
181
+ "C": {
182
+ "$ref": "#/$defs/Digest"
183
+ },
184
+ "snapshot_id": {
185
+ "$ref": "#/$defs/Identifier"
186
+ },
187
+ "core_version": {
188
+ "$ref": "#/$defs/Identifier"
189
+ },
190
+ "ir_version": {
191
+ "$ref": "#/$defs/Identifier"
192
+ },
193
+ "read_version": {
194
+ "$ref": "#/$defs/Identifier"
195
+ },
196
+ "target": {
197
+ "$ref": "#/$defs/Ref"
198
+ },
199
+ "scope": {
200
+ "type": "array",
201
+ "items": {
202
+ "$ref": "#/$defs/Identifier"
203
+ },
204
+ "minItems": 1,
205
+ "uniqueItems": true
206
+ },
207
+ "issued_at": {
208
+ "$ref": "#/$defs/UInt"
209
+ },
210
+ "expires_at": {
211
+ "$ref": "#/$defs/UInt"
212
+ },
213
+ "host_id": {
214
+ "$ref": "#/$defs/Identifier"
215
+ },
216
+ "host_epoch": {
217
+ "$ref": "#/$defs/Identifier"
218
+ },
219
+ "anchor": {
220
+ "type": "object",
221
+ "properties": {
222
+ "kind": {
223
+ "type": "string",
224
+ "const": "asset"
225
+ }
226
+ },
227
+ "required": [
228
+ "kind"
229
+ ],
230
+ "additionalProperties": false
231
+ }
232
+ },
233
+ "required": [
234
+ "handle_id",
235
+ "asset_id",
236
+ "asset_version",
237
+ "A",
238
+ "C",
239
+ "snapshot_id",
240
+ "core_version",
241
+ "ir_version",
242
+ "read_version",
243
+ "anchor",
244
+ "target",
245
+ "scope",
246
+ "issued_at",
247
+ "expires_at",
248
+ "host_id",
249
+ "host_epoch"
250
+ ],
251
+ "additionalProperties": false
252
+ },
253
+ "Digest": {
254
+ "type": "string",
255
+ "pattern": "^sha256:[0-9a-f]{64}$"
256
+ },
257
+ "Identifier": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 256,
261
+ "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\ud800-\\udfff]+$"
262
+ },
263
+ "Ref": {
264
+ "type": "object",
265
+ "properties": {
266
+ "kind": {
267
+ "type": "string",
268
+ "enum": [
269
+ "asset",
270
+ "judgment",
271
+ "result",
272
+ "contract",
273
+ "condition",
274
+ "component",
275
+ "unit",
276
+ "plan",
277
+ "plan_node",
278
+ "policy",
279
+ "branch_entry",
280
+ "candidate",
281
+ "material",
282
+ "shared_declaration",
283
+ "boundary",
284
+ "exception",
285
+ "misuse",
286
+ "reason",
287
+ "source",
288
+ "source_use",
289
+ "resource",
290
+ "relationship",
291
+ "dependency",
292
+ "example",
293
+ "example_result",
294
+ "revision",
295
+ "actor"
296
+ ]
297
+ },
298
+ "id": {
299
+ "$ref": "#/$defs/Identifier"
300
+ },
301
+ "asset": {
302
+ "$ref": "#/$defs/AssetIdentity"
303
+ }
304
+ },
305
+ "required": [
306
+ "kind",
307
+ "id"
308
+ ],
309
+ "additionalProperties": false
310
+ },
311
+ "UInt": {
312
+ "type": "integer",
313
+ "minimum": 0,
314
+ "maximum": 9007199254740991
315
+ },
316
+ "VersionLabel": {
317
+ "$ref": "#/$defs/Identifier"
318
+ }
319
+ }
320
+ }