@aikdna/kdna-core 0.36.0 → 0.37.1-rc.browser.1
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 +12 -2
- package/package.json +11 -1
- package/schema/manifest.schema.json +2 -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-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 +9 -9
- package/src/public-contract/execution06/contract.json +2 -2
- package/src/public-contract/execution06/generation-manifest.json +9 -9
- 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 +9 -9
- 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-browser.d.ts +17 -0
- package/src/public-contract/protected-browser.js +4 -0
- package/src/public-contract/protected-browser.mjs +2 -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 +132 -0
- package/src/public-contract/protection-contract.generated.json +14 -13
- package/src/public-contract/protection-crypto.js +7 -17
- package/src/public-contract/protection-envelope-codec.js +76 -13
- package/src/public-contract/protection-node.d.ts +2 -2
- package/src/public-contract/protection-validators.generated.js +5 -5
- package/src/public-contract/retained/contract.json +2 -2
- package/src/public-contract/retained/generation-manifest.json +9 -9
- 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 +9 -9
- package/src/public-contract/sections/contract.json +2 -2
- package/src/public-contract/sections/generation-manifest.json +9 -9
- package/src/public-contract/source-validators.generated.js +6 -6
- package/src/public-contract/source06/contract.json +2 -2
package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostObservation.json
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:kdna:candidate:protected-browser:BrowserProtectedHostObservation",
|
|
4
|
+
"title": "BrowserProtectedHostObservation",
|
|
5
|
+
"description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
|
|
6
|
+
"$ref": "#/$defs/BrowserProtectedHostObservation",
|
|
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
|
+
"BrowserProtectedHostObservation": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"host_id": {
|
|
32
|
+
"$ref": "#/$defs/Identifier"
|
|
33
|
+
},
|
|
34
|
+
"host_epoch": {
|
|
35
|
+
"$ref": "#/$defs/Identifier"
|
|
36
|
+
},
|
|
37
|
+
"decision_id": {
|
|
38
|
+
"$ref": "#/$defs/Identifier"
|
|
39
|
+
},
|
|
40
|
+
"request_id": {
|
|
41
|
+
"$ref": "#/$defs/Identifier"
|
|
42
|
+
},
|
|
43
|
+
"snapshot_id": {
|
|
44
|
+
"$ref": "#/$defs/Identifier"
|
|
45
|
+
},
|
|
46
|
+
"A": {
|
|
47
|
+
"$ref": "#/$defs/Digest"
|
|
48
|
+
},
|
|
49
|
+
"C": {
|
|
50
|
+
"$ref": "#/$defs/Digest"
|
|
51
|
+
},
|
|
52
|
+
"scope": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"$ref": "#/$defs/Identifier"
|
|
56
|
+
},
|
|
57
|
+
"minItems": 0,
|
|
58
|
+
"uniqueItems": true
|
|
59
|
+
},
|
|
60
|
+
"issued_at": {
|
|
61
|
+
"$ref": "#/$defs/UInt"
|
|
62
|
+
},
|
|
63
|
+
"expires_at": {
|
|
64
|
+
"$ref": "#/$defs/UInt"
|
|
65
|
+
},
|
|
66
|
+
"decision": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"allow",
|
|
70
|
+
"deny"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"policy_id": {
|
|
74
|
+
"$ref": "#/$defs/Identifier"
|
|
75
|
+
},
|
|
76
|
+
"operation_id": {
|
|
77
|
+
"$ref": "#/$defs/Identifier"
|
|
78
|
+
},
|
|
79
|
+
"capture_id": {
|
|
80
|
+
"$ref": "#/$defs/Identifier"
|
|
81
|
+
},
|
|
82
|
+
"request_digest": {
|
|
83
|
+
"$ref": "#/$defs/Digest"
|
|
84
|
+
},
|
|
85
|
+
"read_intent_digest": {
|
|
86
|
+
"$ref": "#/$defs/Digest"
|
|
87
|
+
},
|
|
88
|
+
"tuple": {
|
|
89
|
+
"$ref": "#/$defs/VersionTuple"
|
|
90
|
+
},
|
|
91
|
+
"asset": {
|
|
92
|
+
"$ref": "#/$defs/AssetIdentity"
|
|
93
|
+
},
|
|
94
|
+
"E": {
|
|
95
|
+
"$ref": "#/$defs/Digest"
|
|
96
|
+
},
|
|
97
|
+
"current_ms": {
|
|
98
|
+
"$ref": "#/$defs/UInt"
|
|
99
|
+
},
|
|
100
|
+
"revoked": {
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"lift_denial": {
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"host_id",
|
|
109
|
+
"host_epoch",
|
|
110
|
+
"decision_id",
|
|
111
|
+
"request_id",
|
|
112
|
+
"snapshot_id",
|
|
113
|
+
"A",
|
|
114
|
+
"C",
|
|
115
|
+
"scope",
|
|
116
|
+
"issued_at",
|
|
117
|
+
"expires_at",
|
|
118
|
+
"decision",
|
|
119
|
+
"policy_id",
|
|
120
|
+
"operation_id",
|
|
121
|
+
"capture_id",
|
|
122
|
+
"request_digest",
|
|
123
|
+
"read_intent_digest",
|
|
124
|
+
"tuple",
|
|
125
|
+
"asset",
|
|
126
|
+
"E",
|
|
127
|
+
"current_ms"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
},
|
|
131
|
+
"Digest": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
134
|
+
},
|
|
135
|
+
"Identifier": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1,
|
|
138
|
+
"maxLength": 256,
|
|
139
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\ud800-\\udfff]+$"
|
|
140
|
+
},
|
|
141
|
+
"UInt": {
|
|
142
|
+
"type": "integer",
|
|
143
|
+
"minimum": 0,
|
|
144
|
+
"maximum": 9007199254740991
|
|
145
|
+
},
|
|
146
|
+
"VersionLabel": {
|
|
147
|
+
"$ref": "#/$defs/Identifier"
|
|
148
|
+
},
|
|
149
|
+
"VersionTuple": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"container": {
|
|
153
|
+
"const": "0.5.0",
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"payload_profile": {
|
|
157
|
+
"const": "kdna.payload.judgment",
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"payload_version": {
|
|
161
|
+
"const": "0.5.1",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"core": {
|
|
165
|
+
"const": "kdna.core/0.8.2",
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"ir": {
|
|
169
|
+
"const": "kdna.canonical-ir/0.6.1",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"runtime": {
|
|
173
|
+
"const": "kdna.runtime-capsule/0.3.1",
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"plan": {
|
|
177
|
+
"const": "kdna.consumption-plan/0.3.1",
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"host": {
|
|
181
|
+
"const": "kdna.agent-host/0.3.1",
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"trace": {
|
|
185
|
+
"const": "kdna.judgment-trace/0.3.1",
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"read": {
|
|
189
|
+
"const": "kdna.read/0.6.4",
|
|
190
|
+
"type": "string"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"container",
|
|
195
|
+
"payload_profile",
|
|
196
|
+
"payload_version",
|
|
197
|
+
"core",
|
|
198
|
+
"ir",
|
|
199
|
+
"runtime",
|
|
200
|
+
"plan",
|
|
201
|
+
"host",
|
|
202
|
+
"trace",
|
|
203
|
+
"read"
|
|
204
|
+
],
|
|
205
|
+
"additionalProperties": false
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadAuthority.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:kdna:candidate:protected-browser:BrowserProtectedReadAuthority",
|
|
4
|
+
"title": "BrowserProtectedReadAuthority",
|
|
5
|
+
"description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
|
|
6
|
+
"$ref": "#/$defs/BrowserProtectedReadAuthority",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"BrowserProtectedReadAuthority": false
|
|
9
|
+
}
|
|
10
|
+
}
|