@astrale-os/kernel-protocol 0.5.0-beta.71 → 0.5.0-beta.73
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/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/invocation/binding-codecs.d.ts +3 -2
- package/dist/invocation/delegate.js +1 -2
- package/dist/invocation/index.d.ts +0 -3
- package/dist/invocation/index.js +0 -2
- package/dist/invocation/redirect.d.ts +3 -8
- package/dist/invocation/redirect.js +4 -4
- package/dist/invocation/routing.d.ts +8 -12
- package/dist/invocation/routing.js +7 -22
- package/dist/invocation/stale-route.d.ts +3 -3
- package/dist/release/bindings/index.d.ts +1 -1
- package/dist/release/bindings/view.d.ts +0 -5
- package/dist/release/bindings/view.js +2 -96
- package/dist/release/bundle-admission.js +0 -6
- package/dist/release/delivery/index.d.ts +1 -2
- package/dist/release/delivery/index.js +1 -2
- package/dist/release/delivery/request.d.ts +2 -7
- package/dist/release/delivery/request.js +1 -10
- package/dist/release/index.d.ts +2 -6
- package/dist/release/index.js +0 -4
- package/dist/release/manifest.d.ts +2 -6
- package/dist/release/manifest.js +12 -56
- package/dist/release/release.js +2 -0
- package/dist/release/requirements.d.ts +1 -1
- package/dist/release/requirements.js +1 -1
- package/dist/release/served.d.ts +2 -1
- package/dist/release/served.js +1 -10
- package/dist/routes/compiler.js +1 -2
- package/dist/routes/credential.d.ts +0 -1
- package/dist/routes/credential.js +0 -3
- package/dist/routes/index.d.ts +0 -3
- package/dist/routes/index.js +0 -3
- package/dist/routes/request.d.ts +2 -2
- package/dist/routes/reservation.d.ts +2 -2
- package/dist/routes/reservation.js +8 -9
- package/dist/routes/routing.d.ts +4 -16
- package/dist/routes/routing.js +5 -11
- package/dist/routes/template.d.ts +0 -1
- package/dist/routes/template.js +0 -3
- package/dist/runtime/artifact.d.ts +2 -3
- package/dist/runtime/artifact.js +7 -17
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +1 -1
- package/dist/schema/installation/codec.d.ts +1 -6
- package/dist/schema/installation/codec.js +2 -6
- package/dist/schema/installation/introspection/codec.d.ts +2 -11
- package/dist/schema/installation/introspection/codec.js +20 -38
- package/dist/schema/installation/introspection/result.d.ts +9 -36
- package/package.json +4 -88
- package/dist/invocation/legacy/delegate.d.ts +0 -17
- package/dist/invocation/legacy/delegate.js +0 -37
- package/dist/invocation/legacy/index.d.ts +0 -29
- package/dist/invocation/legacy/index.js +0 -28
- package/dist/invocation/legacy/route.d.ts +0 -14
- package/dist/invocation/legacy/route.js +0 -25
- package/dist/invocation/legacy/via.d.ts +0 -30
- package/dist/invocation/legacy/via.js +0 -15
- package/dist/release/legacy/bindings.d.ts +0 -14
- package/dist/release/legacy/bindings.js +0 -11
- package/dist/release/legacy/bundle-admission.d.ts +0 -6
- package/dist/release/legacy/bundle-admission.js +0 -10
- package/dist/release/legacy/bundle-evidence.d.ts +0 -8
- package/dist/release/legacy/bundle-evidence.js +0 -11
- package/dist/release/legacy/bundle.d.ts +0 -24
- package/dist/release/legacy/bundle.js +0 -31
- package/dist/release/legacy/delivery/attestation.d.ts +0 -6
- package/dist/release/legacy/delivery/attestation.js +0 -1
- package/dist/release/legacy/delivery/claims.d.ts +0 -25
- package/dist/release/legacy/delivery/claims.js +0 -66
- package/dist/release/legacy/delivery/delivery.d.ts +0 -18
- package/dist/release/legacy/delivery/delivery.js +0 -33
- package/dist/release/legacy/delivery/error.d.ts +0 -16
- package/dist/release/legacy/delivery/error.js +0 -6
- package/dist/release/legacy/delivery/index.d.ts +0 -13
- package/dist/release/legacy/delivery/index.js +0 -13
- package/dist/release/legacy/delivery/limits.d.ts +0 -21
- package/dist/release/legacy/delivery/limits.js +0 -22
- package/dist/release/legacy/delivery/request.d.ts +0 -26
- package/dist/release/legacy/delivery/request.js +0 -57
- package/dist/release/legacy/delivery-declaration.d.ts +0 -9
- package/dist/release/legacy/delivery-declaration.js +0 -11
- package/dist/release/legacy/error.d.ts +0 -26
- package/dist/release/legacy/error.js +0 -114
- package/dist/release/legacy/etag.d.ts +0 -12
- package/dist/release/legacy/etag.js +0 -14
- package/dist/release/legacy/index.d.ts +0 -75
- package/dist/release/legacy/index.js +0 -15
- package/dist/release/legacy/profiles.d.ts +0 -23
- package/dist/release/legacy/profiles.js +0 -36
- package/dist/release/legacy/projection.d.ts +0 -13
- package/dist/release/legacy/projection.js +0 -25
- package/dist/release/legacy/publication.d.ts +0 -90
- package/dist/release/legacy/publication.js +0 -124
- package/dist/release/legacy/reference.d.ts +0 -47
- package/dist/release/legacy/reference.js +0 -92
- package/dist/release/legacy/requirements.d.ts +0 -30
- package/dist/release/legacy/requirements.js +0 -20
- package/dist/routes/legacy/index.d.ts +0 -29
- package/dist/routes/legacy/index.js +0 -29
- package/dist/routes/legacy/routing.d.ts +0 -24
- package/dist/routes/legacy/routing.js +0 -45
- package/dist/routes/legacy/table.d.ts +0 -34
- package/dist/routes/legacy/table.js +0 -50
- package/dist/schema/installation/legacy/index.d.ts +0 -39
- package/dist/schema/installation/legacy/index.js +0 -39
- package/dist/schema/installation/legacy/installation.d.ts +0 -9
- package/dist/schema/installation/legacy/installation.js +0 -28
- package/dist/schema/installation/legacy/introspection.d.ts +0 -10
- package/dist/schema/installation/legacy/introspection.js +0 -70
- package/dist/schema/installation/legacy/msgpack.d.ts +0 -1
- package/dist/schema/installation/legacy/msgpack.js +0 -143
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-protocol",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
4
|
-
"description": "Portable Astrale invocation,
|
|
3
|
+
"version": "0.5.0-beta.73",
|
|
4
|
+
"description": "Portable Astrale invocation, Release, installation, routing, and issuer protocols",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -59,70 +59,18 @@
|
|
|
59
59
|
"types": "./dist/invocation/index.d.ts",
|
|
60
60
|
"import": "./dist/invocation/index.js"
|
|
61
61
|
},
|
|
62
|
-
"./invocation/service-reason": {
|
|
63
|
-
"types": "./dist/invocation/service-reason.d.ts",
|
|
64
|
-
"import": "./dist/invocation/service-reason.js"
|
|
65
|
-
},
|
|
66
62
|
"./artifact": {
|
|
67
63
|
"types": "./dist/artifact/index.d.ts",
|
|
68
64
|
"import": "./dist/artifact/index.js"
|
|
69
65
|
},
|
|
70
|
-
"./publication": {
|
|
71
|
-
"types": "./dist/release/legacy/index.d.ts",
|
|
72
|
-
"import": "./dist/release/legacy/index.js"
|
|
73
|
-
},
|
|
74
|
-
"./publication/publication": {
|
|
75
|
-
"types": "./dist/release/legacy/publication.d.ts",
|
|
76
|
-
"import": "./dist/release/legacy/publication.js"
|
|
77
|
-
},
|
|
78
|
-
"./publication/reference": {
|
|
79
|
-
"types": "./dist/release/legacy/reference.d.ts",
|
|
80
|
-
"import": "./dist/release/legacy/reference.js"
|
|
81
|
-
},
|
|
82
|
-
"./publication/requirements": {
|
|
83
|
-
"types": "./dist/release/legacy/requirements.d.ts",
|
|
84
|
-
"import": "./dist/release/legacy/requirements.js"
|
|
85
|
-
},
|
|
86
|
-
"./publication/legacy-requirements": {
|
|
87
|
-
"types": "./dist/release/legacy/profiles.d.ts",
|
|
88
|
-
"import": "./dist/release/legacy/profiles.js"
|
|
89
|
-
},
|
|
90
|
-
"./publication/bundle": {
|
|
91
|
-
"types": "./dist/release/legacy/bundle.d.ts",
|
|
92
|
-
"import": "./dist/release/legacy/bundle.js"
|
|
93
|
-
},
|
|
94
|
-
"./publication/bundle-evidence": {
|
|
95
|
-
"types": "./dist/release/legacy/bundle-evidence.d.ts",
|
|
96
|
-
"import": "./dist/release/legacy/bundle-evidence.js"
|
|
97
|
-
},
|
|
98
66
|
"./release": {
|
|
99
67
|
"types": "./dist/release/index.d.ts",
|
|
100
68
|
"import": "./dist/release/index.js"
|
|
101
69
|
},
|
|
102
|
-
"./release/bundle": {
|
|
103
|
-
"types": "./dist/release/bundle.d.ts",
|
|
104
|
-
"import": "./dist/release/bundle.js"
|
|
105
|
-
},
|
|
106
|
-
"./release/bundle-evidence": {
|
|
107
|
-
"types": "./dist/release/bundle-evidence.d.ts",
|
|
108
|
-
"import": "./dist/release/bundle-evidence.js"
|
|
109
|
-
},
|
|
110
70
|
"./release/delivery": {
|
|
111
71
|
"types": "./dist/release/delivery/index.d.ts",
|
|
112
72
|
"import": "./dist/release/delivery/index.js"
|
|
113
73
|
},
|
|
114
|
-
"./release/delivery-declaration": {
|
|
115
|
-
"types": "./dist/release/delivery-declaration.d.ts",
|
|
116
|
-
"import": "./dist/release/delivery-declaration.js"
|
|
117
|
-
},
|
|
118
|
-
"./release/legacy": {
|
|
119
|
-
"types": "./dist/release/legacy/index.d.ts",
|
|
120
|
-
"import": "./dist/release/legacy/index.js"
|
|
121
|
-
},
|
|
122
|
-
"./release/requirements": {
|
|
123
|
-
"types": "./dist/release/requirements.d.ts",
|
|
124
|
-
"import": "./dist/release/requirements.js"
|
|
125
|
-
},
|
|
126
74
|
"./routes": {
|
|
127
75
|
"types": "./dist/routes/index.d.ts",
|
|
128
76
|
"import": "./dist/routes/index.js"
|
|
@@ -131,38 +79,6 @@
|
|
|
131
79
|
"types": "./dist/schema/index.d.ts",
|
|
132
80
|
"import": "./dist/schema/index.js"
|
|
133
81
|
},
|
|
134
|
-
"./schema/installation/legacy": {
|
|
135
|
-
"types": "./dist/schema/installation/legacy/index.d.ts",
|
|
136
|
-
"import": "./dist/schema/installation/legacy/index.js"
|
|
137
|
-
},
|
|
138
|
-
"./routes/admission": {
|
|
139
|
-
"types": "./dist/routes/admission.d.ts",
|
|
140
|
-
"import": "./dist/routes/admission.js"
|
|
141
|
-
},
|
|
142
|
-
"./routes/binding": {
|
|
143
|
-
"types": "./dist/routes/binding.d.ts",
|
|
144
|
-
"import": "./dist/routes/binding.js"
|
|
145
|
-
},
|
|
146
|
-
"./routes/evidence": {
|
|
147
|
-
"types": "./dist/routes/evidence.d.ts",
|
|
148
|
-
"import": "./dist/routes/evidence.js"
|
|
149
|
-
},
|
|
150
|
-
"./routes/placement": {
|
|
151
|
-
"types": "./dist/routes/placement.d.ts",
|
|
152
|
-
"import": "./dist/routes/placement.js"
|
|
153
|
-
},
|
|
154
|
-
"./routes/deployment-retired": {
|
|
155
|
-
"types": "./dist/routes/deployment-retired.d.ts",
|
|
156
|
-
"import": "./dist/routes/deployment-retired.js"
|
|
157
|
-
},
|
|
158
|
-
"./routes/legacy": {
|
|
159
|
-
"types": "./dist/routes/legacy/index.d.ts",
|
|
160
|
-
"import": "./dist/routes/legacy/index.js"
|
|
161
|
-
},
|
|
162
|
-
"./routes/routing": {
|
|
163
|
-
"types": "./dist/routes/routing.d.ts",
|
|
164
|
-
"import": "./dist/routes/routing.js"
|
|
165
|
-
},
|
|
166
82
|
"./runtime": {
|
|
167
83
|
"types": "./dist/runtime/index.d.ts",
|
|
168
84
|
"import": "./dist/runtime/index.js"
|
|
@@ -173,8 +89,8 @@
|
|
|
173
89
|
"access": "public"
|
|
174
90
|
},
|
|
175
91
|
"dependencies": {
|
|
176
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
177
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
92
|
+
"@astrale-os/kernel-core": "0.9.0-beta.67",
|
|
93
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.49",
|
|
178
94
|
"@noble/hashes": "2.3.0"
|
|
179
95
|
},
|
|
180
96
|
"devDependencies": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A source `Delegate` may still carry `attenuation` with the self expression
|
|
3
|
-
* `{ kind: 'identity', self: true }`, the one value published Clients and SDK Workers send. It names
|
|
4
|
-
* the caller every Delegate preserves anyway, so `acceptDelegate` drops it and returns the same
|
|
5
|
-
* `Delegate` as without it. Every other value, `undefined` and `null` included, stays refused.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated Omit `attenuation`; a Delegate always preserves the authenticated caller (ADR-3).
|
|
8
|
-
*
|
|
9
|
-
* Short-term consumers: Domain Workers built with `@astrale-os/sdk` 0.6.0-beta.0 to beta.3, whose
|
|
10
|
-
* `Function.admit` callback sends it (the Shell v3 Worker included), and callers that pass it in
|
|
11
|
-
* `delegate` to `@astrale-os/kernel-client` 0.6.0-beta.85 or earlier.
|
|
12
|
-
*
|
|
13
|
-
* Removal, in a separate breaking release, once those Workers are redeployed with a later SDK and
|
|
14
|
-
* every consumer runs a Client that omits the field: delete this file, its call in `../delegate.ts`
|
|
15
|
-
* and its vectors in INVOCATION-DELEGATE-OMISSION-EVIDENCE.
|
|
16
|
-
*/
|
|
17
|
-
export declare function withoutSelfAttenuation(object: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A source `Delegate` may still carry `attenuation` with the self expression
|
|
3
|
-
* `{ kind: 'identity', self: true }`, the one value published Clients and SDK Workers send. It names
|
|
4
|
-
* the caller every Delegate preserves anyway, so `acceptDelegate` drops it and returns the same
|
|
5
|
-
* `Delegate` as without it. Every other value, `undefined` and `null` included, stays refused.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated Omit `attenuation`; a Delegate always preserves the authenticated caller (ADR-3).
|
|
8
|
-
*
|
|
9
|
-
* Short-term consumers: Domain Workers built with `@astrale-os/sdk` 0.6.0-beta.0 to beta.3, whose
|
|
10
|
-
* `Function.admit` callback sends it (the Shell v3 Worker included), and callers that pass it in
|
|
11
|
-
* `delegate` to `@astrale-os/kernel-client` 0.6.0-beta.85 or earlier.
|
|
12
|
-
*
|
|
13
|
-
* Removal, in a separate breaking release, once those Workers are redeployed with a later SDK and
|
|
14
|
-
* every consumer runs a Client that omits the field: delete this file, its call in `../delegate.ts`
|
|
15
|
-
* and its vectors in INVOCATION-DELEGATE-OMISSION-EVIDENCE.
|
|
16
|
-
*/
|
|
17
|
-
export function withoutSelfAttenuation(object) {
|
|
18
|
-
if (!Object.hasOwn(object, 'attenuation') || !isSelf(object.attenuation))
|
|
19
|
-
return object;
|
|
20
|
-
const { attenuation: _self, ...rest } = object;
|
|
21
|
-
return rest;
|
|
22
|
-
}
|
|
23
|
-
function isSelf(value) {
|
|
24
|
-
if (value === null || typeof value !== 'object' || Array.isArray(value))
|
|
25
|
-
return false;
|
|
26
|
-
const prototype = Object.getPrototypeOf(value);
|
|
27
|
-
if (prototype !== Object.prototype && prototype !== null)
|
|
28
|
-
return false;
|
|
29
|
-
if (Reflect.ownKeys(value).length !== 2)
|
|
30
|
-
return false;
|
|
31
|
-
const kind = Object.getOwnPropertyDescriptor(value, 'kind');
|
|
32
|
-
const self = Object.getOwnPropertyDescriptor(value, 'self');
|
|
33
|
-
return (kind?.enumerable === true &&
|
|
34
|
-
kind.value === 'identity' &&
|
|
35
|
-
self?.enumerable === true &&
|
|
36
|
-
self.value === true);
|
|
37
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Publication-based routing, retained for v2/v3 pins and frozen v3 projections of v4 pins.
|
|
3
|
-
* The Kernel emits this shape while decoders also accept release-based `Via`.
|
|
4
|
-
* Superseded by `Via` and `remoteRoute` from `@astrale-os/kernel-protocol/invocation`.
|
|
5
|
-
*
|
|
6
|
-
* Short-term consumers:
|
|
7
|
-
* - the Runtime redirect (`runtime/functions/runtime.ts`), the Kernel's only emitter until the
|
|
8
|
-
* breaking release (AM-1, CT5-E), because every client and View built before K5 decodes only
|
|
9
|
-
* this shape: the pinned document's own reference for a v2/v3 pin, the frozen v3 projection's
|
|
10
|
-
* for a v4 pin. The breaking release switches v4 pins to `remoteRoute`; v2/v3 pins keep this;
|
|
11
|
-
* - servers built from a v2/v3 Publication, which admit only this shape (the SDK's `requireVia`,
|
|
12
|
-
* the Server's `HandlerRequest.via`).
|
|
13
|
-
*
|
|
14
|
-
* Removal, in a separate breaking release: the conditions of `protocol/release/legacy/index.ts`
|
|
15
|
-
* hold (no installation pins a v2/v3 document) and every supported client relays `Via`. Then
|
|
16
|
-
* delete, in the same PR:
|
|
17
|
-
* - this folder, the `legacy` namespace of `invocation/index.ts` and its `PublicationVia` and
|
|
18
|
-
* `PublicationBindingInput` type exports;
|
|
19
|
-
* - the `publication` branch of `acceptVia` and of `routedRevision`/`routedDigest` in `routing.ts`;
|
|
20
|
-
* - the `PublicationVia` member of `Routing` (`routing.ts`) and of `Route.via` (`redirect.ts`);
|
|
21
|
-
* - the `PublicationVia` member of `routes.Invocation.routing` (`routes/request.ts`) and of the
|
|
22
|
-
* Server's `HandlerRequest.via` (`server/invocation/types.ts`), with the refusal of a release
|
|
23
|
-
* `Via` at a Publication-backed destination (law SV-PUBLICATION-ADMITS-LEGACY-VIA);
|
|
24
|
-
* - the legacy vectors of TEST-VIA-NAMES-EXACTLY-ONE-REFERENCE, and the Runtime redirect's last
|
|
25
|
-
* `legacy.remoteRoute` call with its dispatch test;
|
|
26
|
-
* - `PublicationVia` and `Route.via` from law PROTOCOL-LEGACY-WIRE-FIELDS and its test.
|
|
27
|
-
*/
|
|
28
|
-
export { remoteRoute } from './route.js';
|
|
29
|
-
export type { PublicationBindingInput, PublicationVia } from './via.js';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Publication-based routing, retained for v2/v3 pins and frozen v3 projections of v4 pins.
|
|
3
|
-
* The Kernel emits this shape while decoders also accept release-based `Via`.
|
|
4
|
-
* Superseded by `Via` and `remoteRoute` from `@astrale-os/kernel-protocol/invocation`.
|
|
5
|
-
*
|
|
6
|
-
* Short-term consumers:
|
|
7
|
-
* - the Runtime redirect (`runtime/functions/runtime.ts`), the Kernel's only emitter until the
|
|
8
|
-
* breaking release (AM-1, CT5-E), because every client and View built before K5 decodes only
|
|
9
|
-
* this shape: the pinned document's own reference for a v2/v3 pin, the frozen v3 projection's
|
|
10
|
-
* for a v4 pin. The breaking release switches v4 pins to `remoteRoute`; v2/v3 pins keep this;
|
|
11
|
-
* - servers built from a v2/v3 Publication, which admit only this shape (the SDK's `requireVia`,
|
|
12
|
-
* the Server's `HandlerRequest.via`).
|
|
13
|
-
*
|
|
14
|
-
* Removal, in a separate breaking release: the conditions of `protocol/release/legacy/index.ts`
|
|
15
|
-
* hold (no installation pins a v2/v3 document) and every supported client relays `Via`. Then
|
|
16
|
-
* delete, in the same PR:
|
|
17
|
-
* - this folder, the `legacy` namespace of `invocation/index.ts` and its `PublicationVia` and
|
|
18
|
-
* `PublicationBindingInput` type exports;
|
|
19
|
-
* - the `publication` branch of `acceptVia` and of `routedRevision`/`routedDigest` in `routing.ts`;
|
|
20
|
-
* - the `PublicationVia` member of `Routing` (`routing.ts`) and of `Route.via` (`redirect.ts`);
|
|
21
|
-
* - the `PublicationVia` member of `routes.Invocation.routing` (`routes/request.ts`) and of the
|
|
22
|
-
* Server's `HandlerRequest.via` (`server/invocation/types.ts`), with the refusal of a release
|
|
23
|
-
* `Via` at a Publication-backed destination (law SV-PUBLICATION-ADMITS-LEGACY-VIA);
|
|
24
|
-
* - the legacy vectors of TEST-VIA-NAMES-EXACTLY-ONE-REFERENCE, and the Runtime redirect's last
|
|
25
|
-
* `legacy.remoteRoute` call with its dispatch test;
|
|
26
|
-
* - `PublicationVia` and `Route.via` from law PROTOCOL-LEGACY-WIRE-FIELDS and its test.
|
|
27
|
-
*/
|
|
28
|
-
export { remoteRoute } from './route.js';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IssuerId } from '@astrale-os/kernel-core/auth/issuer';
|
|
2
|
-
import type { Key } from '@astrale-os/kernel-dsl/v1';
|
|
3
|
-
import type { Route } from '../redirect.js';
|
|
4
|
-
import type { PublicationBindingInput } from './via.js';
|
|
5
|
-
/**
|
|
6
|
-
* Project one remote binding into the route every Kernel emits until the breaking release (AM-1):
|
|
7
|
-
* a `PublicationVia` naming the v3 reference, the pinned document's own for a legacy pin and the
|
|
8
|
-
* frozen projection's for a v4 pin. It reads only the binding's Publication coordinates, so a
|
|
9
|
-
* binding that also carries a release digest still projects to its v3 reference.
|
|
10
|
-
*
|
|
11
|
-
* @deprecated Successor: `remoteRoute`, which projects a release binding to `Via`; the breaking
|
|
12
|
-
* release calls it instead.
|
|
13
|
-
*/
|
|
14
|
-
export declare function remoteRoute(origin: Key.Origin, binding: PublicationBindingInput, issuer: IssuerId): Route;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { acceptRoute } from '../redirect.js';
|
|
2
|
-
/**
|
|
3
|
-
* Project one remote binding into the route every Kernel emits until the breaking release (AM-1):
|
|
4
|
-
* a `PublicationVia` naming the v3 reference, the pinned document's own for a legacy pin and the
|
|
5
|
-
* frozen projection's for a v4 pin. It reads only the binding's Publication coordinates, so a
|
|
6
|
-
* binding that also carries a release digest still projects to its v3 reference.
|
|
7
|
-
*
|
|
8
|
-
* @deprecated Successor: `remoteRoute`, which projects a release binding to `Via`; the breaking
|
|
9
|
-
* release calls it instead.
|
|
10
|
-
*/
|
|
11
|
-
export function remoteRoute(origin, binding, issuer) {
|
|
12
|
-
return acceptRoute({
|
|
13
|
-
endpoint: binding.endpoint,
|
|
14
|
-
via: {
|
|
15
|
-
kind: 'via',
|
|
16
|
-
publication: {
|
|
17
|
-
origin,
|
|
18
|
-
identity: { issuer: binding.issuer, subject: binding.subject },
|
|
19
|
-
revision: binding.revision,
|
|
20
|
-
etag: binding.etag,
|
|
21
|
-
},
|
|
22
|
-
issuer,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { IssuerId } from '@astrale-os/kernel-core/auth/issuer';
|
|
2
|
-
import type { InvocationEndpoints } from '../../release/bindings/invocation.js';
|
|
3
|
-
import type { Etag } from '../../release/legacy/etag.js';
|
|
4
|
-
import type { PublicationRef } from '../../release/legacy/reference.js';
|
|
5
|
-
/**
|
|
6
|
-
* Routed witness of a legacy pin, or of the v3 projection of a v4 pin: the reference keeps its
|
|
7
|
-
* Publication meaning (origin, identity, schema revision, Publication ETag).
|
|
8
|
-
*
|
|
9
|
-
* @deprecated Successor: `Via.release`, emitted by the breaking release (AM-1).
|
|
10
|
-
*/
|
|
11
|
-
export interface PublicationVia {
|
|
12
|
-
readonly kind: 'via';
|
|
13
|
-
readonly publication: PublicationRef;
|
|
14
|
-
readonly issuer: IssuerId;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Remote binding of a legacy pin, or of a v4 pin projected to its v3 Publication: the endpoint
|
|
18
|
-
* and the Publication reference coordinates the Kernel routes it with.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated Successor: `RemoteBindingInput`, which carries the release digest.
|
|
21
|
-
*/
|
|
22
|
-
export interface PublicationBindingInput {
|
|
23
|
-
readonly endpoint: InvocationEndpoints;
|
|
24
|
-
readonly issuer: IssuerId;
|
|
25
|
-
readonly subject: string;
|
|
26
|
-
readonly revision: PublicationRef['revision'];
|
|
27
|
-
readonly etag: Etag;
|
|
28
|
-
}
|
|
29
|
-
/** Admit the Publication reference of one received `PublicationVia`. */
|
|
30
|
-
export declare function acceptPublicationReference(input: unknown, label: string): PublicationRef;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PublicationError } from '../../release/legacy/error.js';
|
|
2
|
-
import { acceptReference } from '../../release/legacy/reference.js';
|
|
3
|
-
import { invalid } from '../admission.js';
|
|
4
|
-
/** Admit the Publication reference of one received `PublicationVia`. */
|
|
5
|
-
export function acceptPublicationReference(input, label) {
|
|
6
|
-
try {
|
|
7
|
-
return acceptReference(input);
|
|
8
|
-
}
|
|
9
|
-
catch (cause) {
|
|
10
|
-
if (cause instanceof PublicationError) {
|
|
11
|
-
return invalid(`${label} is invalid: ${cause.message}`);
|
|
12
|
-
}
|
|
13
|
-
throw cause;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as bindings from '../bindings/index.js';
|
|
2
|
-
/** @deprecated Use `CallableBinding` from `@astrale-os/kernel-protocol/release`. */
|
|
3
|
-
export type CallableBinding = bindings.CallableBinding;
|
|
4
|
-
/** @deprecated Use `ViewBinding` from `@astrale-os/kernel-protocol/release`. */
|
|
5
|
-
export type ViewBinding = bindings.ViewBinding;
|
|
6
|
-
/** @deprecated Use `InvocationEndpoints` from `@astrale-os/kernel-protocol/release`. */
|
|
7
|
-
export type InvocationEndpoints = bindings.InvocationEndpoints;
|
|
8
|
-
/**
|
|
9
|
-
* Admit the complete HTTP/WebSocket endpoint pair shared by Publication and redirect routing.
|
|
10
|
-
*
|
|
11
|
-
* @deprecated Use `acceptInvocationEndpoints` from `@astrale-os/kernel-protocol/release`, which
|
|
12
|
-
* reports `ReleaseError`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function acceptInvocationEndpoints(input: unknown): InvocationEndpoints;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as bindings from '../bindings/index.js';
|
|
2
|
-
import { withPublicationError } from './error.js';
|
|
3
|
-
/**
|
|
4
|
-
* Admit the complete HTTP/WebSocket endpoint pair shared by Publication and redirect routing.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Use `acceptInvocationEndpoints` from `@astrale-os/kernel-protocol/release`, which
|
|
7
|
-
* reports `ReleaseError`.
|
|
8
|
-
*/
|
|
9
|
-
export function acceptInvocationEndpoints(input) {
|
|
10
|
-
return withPublicationError(() => bindings.acceptInvocationEndpoints(input));
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type * as dslBundle from '@astrale-os/kernel-dsl/v1/bundle';
|
|
2
|
-
import type { Publication } from './publication.js';
|
|
3
|
-
/** @deprecated Use `acceptBundle` from `@astrale-os/kernel-protocol/release`, which reports `ReleaseError`. */
|
|
4
|
-
export declare function acceptBundle(input: Publication, artifact: unknown): dslBundle.Bundle;
|
|
5
|
-
/** @deprecated Use `decodeBundle` from `@astrale-os/kernel-protocol/release`, which reports `ReleaseError`. */
|
|
6
|
-
export declare function decodeBundle(input: Publication, bytes: Uint8Array): dslBundle.Bundle;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as admission from '../bundle-admission.js';
|
|
2
|
-
import { withPublicationError } from './error.js';
|
|
3
|
-
/** @deprecated Use `acceptBundle` from `@astrale-os/kernel-protocol/release`, which reports `ReleaseError`. */
|
|
4
|
-
export function acceptBundle(input, artifact) {
|
|
5
|
-
return withPublicationError(() => admission.acceptBundle(input, artifact));
|
|
6
|
-
}
|
|
7
|
-
/** @deprecated Use `decodeBundle` from `@astrale-os/kernel-protocol/release`, which reports `ReleaseError`. */
|
|
8
|
-
export function decodeBundle(input, bytes) {
|
|
9
|
-
return withPublicationError(() => admission.decodeBundle(input, bytes));
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Publication } from './publication.js';
|
|
2
|
-
/**
|
|
3
|
-
* Verify exact artifact bytes without decoding an authored Schema Bundle.
|
|
4
|
-
*
|
|
5
|
-
* @deprecated Use `verifyBundleBytes` from `@astrale-os/kernel-protocol/release/bundle-evidence`,
|
|
6
|
-
* which reports `ReleaseError`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function verifyBundleBytes(publication: Publication, bytes: Uint8Array): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as evidence from '../bundle-evidence.js';
|
|
2
|
-
import { withPublicationError } from './error.js';
|
|
3
|
-
/**
|
|
4
|
-
* Verify exact artifact bytes without decoding an authored Schema Bundle.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Use `verifyBundleBytes` from `@astrale-os/kernel-protocol/release/bundle-evidence`,
|
|
7
|
-
* which reports `ReleaseError`.
|
|
8
|
-
*/
|
|
9
|
-
export function verifyBundleBytes(publication, bytes) {
|
|
10
|
-
withPublicationError(() => evidence.verifyBundleBytes(publication, bytes));
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type * as transport from '@astrale-os/kernel-dsl/v1/bundle/transport';
|
|
2
|
-
import type * as artifact from '../../artifact/index.js';
|
|
3
|
-
import type { Publication } from './publication.js';
|
|
4
|
-
import * as descriptor from '../bundle-descriptor.js';
|
|
5
|
-
export { verifyBundleBytes } from './bundle-evidence.js';
|
|
6
|
-
/** @deprecated Use `BUNDLE_MEDIA_TYPE` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
7
|
-
export declare const BUNDLE_MEDIA_TYPE: "application/vnd.astrale.domain-bundle+json;v=1";
|
|
8
|
-
/** @deprecated Use `BundleDescriptor` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
9
|
-
export type BundleDescriptor = descriptor.BundleDescriptor;
|
|
10
|
-
/**
|
|
11
|
-
* Resolve immutable bundle bytes beneath the exact serving issuer.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated Use `bundleUrl` from `@astrale-os/kernel-protocol/release/bundle`, which reports
|
|
14
|
-
* `ReleaseError`.
|
|
15
|
-
*/
|
|
16
|
-
export declare function bundleUrl(issuer: string, ref: artifact.Ref): string;
|
|
17
|
-
/** @deprecated Use `describeBundle` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
18
|
-
export declare function describeBundle(input: transport.Bundle, href: string): BundleDescriptor;
|
|
19
|
-
/** @deprecated Use `acceptBundleValue` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
20
|
-
export declare function acceptBundleValue(input: unknown): transport.Bundle;
|
|
21
|
-
/** @deprecated Use `decodeBundleValue` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
22
|
-
export declare function decodeBundleValue(publication: Publication, bytes: Uint8Array): transport.Bundle;
|
|
23
|
-
/** @deprecated Use `admitBundleDescriptor` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
24
|
-
export declare function admitBundleDescriptor(input: unknown): BundleDescriptor;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as descriptor from '../bundle-descriptor.js';
|
|
2
|
-
import * as bundle from '../bundle.js';
|
|
3
|
-
import { withPublicationError } from './error.js';
|
|
4
|
-
export { verifyBundleBytes } from './bundle-evidence.js';
|
|
5
|
-
/** @deprecated Use `BUNDLE_MEDIA_TYPE` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
6
|
-
export const BUNDLE_MEDIA_TYPE = descriptor.BUNDLE_MEDIA_TYPE;
|
|
7
|
-
/**
|
|
8
|
-
* Resolve immutable bundle bytes beneath the exact serving issuer.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated Use `bundleUrl` from `@astrale-os/kernel-protocol/release/bundle`, which reports
|
|
11
|
-
* `ReleaseError`.
|
|
12
|
-
*/
|
|
13
|
-
export function bundleUrl(issuer, ref) {
|
|
14
|
-
return withPublicationError(() => bundle.bundleUrl(issuer, ref));
|
|
15
|
-
}
|
|
16
|
-
/** @deprecated Use `describeBundle` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
17
|
-
export function describeBundle(input, href) {
|
|
18
|
-
return withPublicationError(() => bundle.describeBundle(input, href));
|
|
19
|
-
}
|
|
20
|
-
/** @deprecated Use `acceptBundleValue` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
21
|
-
export function acceptBundleValue(input) {
|
|
22
|
-
return withPublicationError(() => bundle.acceptBundleValue(input));
|
|
23
|
-
}
|
|
24
|
-
/** @deprecated Use `decodeBundleValue` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
25
|
-
export function decodeBundleValue(publication, bytes) {
|
|
26
|
-
return withPublicationError(() => bundle.decodeBundleValue(publication, bytes));
|
|
27
|
-
}
|
|
28
|
-
/** @deprecated Use `admitBundleDescriptor` from `@astrale-os/kernel-protocol/release/bundle`. */
|
|
29
|
-
export function admitBundleDescriptor(input) {
|
|
30
|
-
return withPublicationError(() => bundle.admitBundleDescriptor(input));
|
|
31
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Attestation as ReleaseAttestation } from '../../delivery/attestation.js';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Delivery v1 attestation, the one Delivery v2 carries; use `Attestation` of
|
|
4
|
-
* `@astrale-os/kernel-protocol/release/delivery`.
|
|
5
|
-
*/
|
|
6
|
-
export type Attestation = ReleaseAttestation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Subject } from '@astrale-os/kernel-core/auth/identity';
|
|
2
|
-
import type { Revision } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
3
|
-
import { type IssuerId } from '@astrale-os/kernel-core/auth/issuer';
|
|
4
|
-
import type { Etag } from '../etag.js';
|
|
5
|
-
import { PURPOSE } from './limits.js';
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Delivery v1 claims bind a Publication ETag; use the Delivery v2 `Claims` of
|
|
8
|
-
* `@astrale-os/kernel-protocol/release/delivery` (added with `DomainRelease` v4), which bind a
|
|
9
|
-
* release digest.
|
|
10
|
-
*/
|
|
11
|
-
export interface Claims {
|
|
12
|
-
readonly purpose: typeof PURPOSE;
|
|
13
|
-
readonly iss: IssuerId;
|
|
14
|
-
readonly sub: Subject;
|
|
15
|
-
readonly aud: IssuerId;
|
|
16
|
-
readonly nonce: string;
|
|
17
|
-
readonly etag: Etag;
|
|
18
|
-
readonly schemaRevision: Revision;
|
|
19
|
-
readonly exp: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Admits Delivery v1 claims; use `acceptClaims` from
|
|
23
|
-
* `@astrale-os/kernel-protocol/release/delivery` (Delivery v2, added with `DomainRelease` v4).
|
|
24
|
-
*/
|
|
25
|
-
export declare function acceptClaims(input: unknown): Claims;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { AuthValueError } from '@astrale-os/kernel-core/auth/error';
|
|
2
|
-
import { accept as acceptIssuerId } from '@astrale-os/kernel-core/auth/issuer';
|
|
3
|
-
import { patterns } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
4
|
-
import { fail } from '../../delivery/error.js';
|
|
5
|
-
import { NONCE_MAX_LENGTH, NONCE_MIN_LENGTH } from '../../delivery/limits.js';
|
|
6
|
-
import { PURPOSE } from './limits.js';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Admits Delivery v1 claims; use `acceptClaims` from
|
|
9
|
-
* `@astrale-os/kernel-protocol/release/delivery` (Delivery v2, added with `DomainRelease` v4).
|
|
10
|
-
*/
|
|
11
|
-
export function acceptClaims(input) {
|
|
12
|
-
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
13
|
-
fail('DELIVERY_CLAIMS_INVALID', 'Expected delivery claims.');
|
|
14
|
-
}
|
|
15
|
-
const value = input;
|
|
16
|
-
const expected = ['purpose', 'iss', 'sub', 'aud', 'nonce', 'etag', 'schemaRevision', 'exp'];
|
|
17
|
-
if (Object.keys(value).some((field) => !expected.includes(field))) {
|
|
18
|
-
fail('DELIVERY_CLAIMS_INVALID', 'Delivery claims contain unknown fields.');
|
|
19
|
-
}
|
|
20
|
-
if (value.purpose !== PURPOSE ||
|
|
21
|
-
typeof value.sub !== 'string' ||
|
|
22
|
-
value.sub.length === 0 ||
|
|
23
|
-
typeof value.nonce !== 'string' ||
|
|
24
|
-
value.nonce.length < NONCE_MIN_LENGTH ||
|
|
25
|
-
value.nonce.length > NONCE_MAX_LENGTH ||
|
|
26
|
-
typeof value.exp !== 'number' ||
|
|
27
|
-
!Number.isSafeInteger(value.exp)) {
|
|
28
|
-
fail('DELIVERY_CLAIMS_INVALID', 'Delivery claims are invalid.');
|
|
29
|
-
}
|
|
30
|
-
const iss = acceptIssuer(value.iss);
|
|
31
|
-
const aud = acceptIssuer(value.aud);
|
|
32
|
-
if (typeof value.etag !== 'string' || !/^sha256:[0-9a-f]{64}$/u.test(value.etag)) {
|
|
33
|
-
fail('DELIVERY_CLAIMS_INVALID', 'Delivery claims ETag is invalid.');
|
|
34
|
-
}
|
|
35
|
-
if (typeof value.schemaRevision !== 'string' || !patterns.revision.test(value.schemaRevision)) {
|
|
36
|
-
fail('DELIVERY_CLAIMS_INVALID', 'Schema revision is invalid.');
|
|
37
|
-
}
|
|
38
|
-
return deepFreeze({
|
|
39
|
-
purpose: PURPOSE,
|
|
40
|
-
iss,
|
|
41
|
-
sub: value.sub,
|
|
42
|
-
aud,
|
|
43
|
-
nonce: value.nonce,
|
|
44
|
-
etag: value.etag,
|
|
45
|
-
schemaRevision: value.schemaRevision,
|
|
46
|
-
exp: value.exp,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function acceptIssuer(input) {
|
|
50
|
-
try {
|
|
51
|
-
return acceptIssuerId(String(input));
|
|
52
|
-
}
|
|
53
|
-
catch (cause) {
|
|
54
|
-
if (cause instanceof AuthValueError) {
|
|
55
|
-
return fail('DELIVERY_CLAIMS_INVALID', 'Delivery claims issuer is invalid.', cause);
|
|
56
|
-
}
|
|
57
|
-
throw cause;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function deepFreeze(value) {
|
|
61
|
-
if (value === null || typeof value !== 'object' || Object.isFrozen(value))
|
|
62
|
-
return value;
|
|
63
|
-
for (const nested of Object.values(value))
|
|
64
|
-
deepFreeze(nested);
|
|
65
|
-
return Object.freeze(value);
|
|
66
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Attestation } from '../../delivery/attestation.js';
|
|
2
|
-
import type { Publication } from '../publication.js';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Delivery v1 carries a v2/v3 Publication; use the Delivery v2 `Delivery` of
|
|
5
|
-
* `@astrale-os/kernel-protocol/release/delivery` (added with `DomainRelease` v4), which carries a
|
|
6
|
-
* `DomainRelease`.
|
|
7
|
-
*/
|
|
8
|
-
export interface Delivery {
|
|
9
|
-
readonly format: 'astrale.domain.delivery';
|
|
10
|
-
readonly version: 1;
|
|
11
|
-
readonly publication: Publication;
|
|
12
|
-
readonly attestation: Attestation;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Admits Delivery v1; use `accept` from `@astrale-os/kernel-protocol/release/delivery`
|
|
16
|
-
* (Delivery v2, added with `DomainRelease` v4).
|
|
17
|
-
*/
|
|
18
|
-
export declare function accept(input: unknown): Delivery;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { acceptAttestation } from '../../delivery/attestation.js';
|
|
2
|
-
import { fail } from '../../delivery/error.js';
|
|
3
|
-
import { accept as acceptPublication } from '../publication.js';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Admits Delivery v1; use `accept` from `@astrale-os/kernel-protocol/release/delivery`
|
|
6
|
-
* (Delivery v2, added with `DomainRelease` v4).
|
|
7
|
-
*/
|
|
8
|
-
export function accept(input) {
|
|
9
|
-
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
10
|
-
fail('DELIVERY_INVALID', 'Expected a Delivery object.');
|
|
11
|
-
}
|
|
12
|
-
const value = input;
|
|
13
|
-
const expected = new Set(['format', 'version', 'publication', 'attestation']);
|
|
14
|
-
if (Object.keys(value).some((field) => !expected.has(field))) {
|
|
15
|
-
fail('DELIVERY_INVALID', 'Delivery contains unknown fields.');
|
|
16
|
-
}
|
|
17
|
-
if (value.format !== 'astrale.domain.delivery' || value.version !== 1) {
|
|
18
|
-
fail('DELIVERY_INVALID', 'Unsupported Delivery format or version.');
|
|
19
|
-
}
|
|
20
|
-
return deepFreeze({
|
|
21
|
-
format: 'astrale.domain.delivery',
|
|
22
|
-
version: 1,
|
|
23
|
-
publication: acceptPublication(value.publication),
|
|
24
|
-
attestation: acceptAttestation(value.attestation),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function deepFreeze(value) {
|
|
28
|
-
if (value === null || typeof value !== 'object' || Object.isFrozen(value))
|
|
29
|
-
return value;
|
|
30
|
-
for (const nested of Object.values(value))
|
|
31
|
-
deepFreeze(nested);
|
|
32
|
-
return Object.freeze(value);
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DeliveryError as ReleaseDeliveryError, type DeliveryErrorCode as ReleaseDeliveryErrorCode } from '../../delivery/error.js';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Delivery v1 failure code, the one Delivery v2 reports; use `ErrorCode` of
|
|
4
|
-
* `@astrale-os/kernel-protocol/release/delivery`.
|
|
5
|
-
*/
|
|
6
|
-
export type DeliveryErrorCode = ReleaseDeliveryErrorCode;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Delivery v1 failure, the class Delivery v2 reports; use `Error` of
|
|
9
|
-
* `@astrale-os/kernel-protocol/release/delivery`.
|
|
10
|
-
*/
|
|
11
|
-
export declare const DeliveryError: typeof ReleaseDeliveryError;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Delivery v1 failure, the class Delivery v2 reports; use `Error` of
|
|
14
|
-
* `@astrale-os/kernel-protocol/release/delivery`.
|
|
15
|
-
*/
|
|
16
|
-
export type DeliveryError = ReleaseDeliveryError;
|