@astrale-os/kernel-core 0.9.0-beta.64 → 0.9.0-beta.66
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/auth/authority/admission/admission.d.ts +0 -1
- package/dist/auth/authority/admission/admission.js +8 -141
- package/dist/auth/authority/admission/references.d.ts +13 -0
- package/dist/auth/authority/admission/references.js +38 -0
- package/dist/auth/authority/admission/term.d.ts +6 -0
- package/dist/auth/authority/admission/term.js +60 -0
- package/dist/auth/authority/admission/wire.d.ts +8 -0
- package/dist/auth/authority/admission/wire.js +33 -0
- package/dist/graph/graph/index.d.ts +1 -1
- package/dist/graph/graph/index.js +1 -1
- package/dist/graph/graph/model/codec.js +3 -3
- package/dist/graph/graph/model/index.d.ts +1 -1
- package/dist/graph/graph/model/index.js +1 -1
- package/dist/graph/graph/model/model.d.ts +7 -7
- package/dist/graph/graph/model/model.js +6 -6
- package/dist/graph/graph/model/wire.d.ts +0 -20
- package/dist/graph/graph/model/wire.js +2 -2
- package/dist/graph/mutate/authoring/builder.d.ts +2 -2
- package/dist/graph/mutate/authoring/builder.js +2 -2
- package/dist/graph/mutate/index.d.ts +1 -1
- package/dist/graph/mutate/language/codec.js +3 -3
- package/dist/graph/mutate/language/model.d.ts +4 -4
- package/dist/graph/mutate/result/index.d.ts +3 -3
- package/dist/graph/mutate/result/index.js +5 -5
- package/dist/graph/node/identity/id.d.ts +0 -3
- package/dist/graph/node/identity/id.js +0 -4
- package/dist/graph/query/language/codec.js +3 -3
- package/dist/graph/query/language/model.d.ts +3 -3
- package/dist/graph/reconcile/condition/model.d.ts +2 -2
- package/dist/graph/reconcile/condition/references.d.ts +0 -1
- package/dist/graph/reconcile/condition/references.js +4 -4
- package/dist/graph/reconcile/correspondence.d.ts +9 -8
- package/dist/graph/reconcile/evidence.d.ts +2 -2
- package/dist/graph/reconcile/mutation/assess.d.ts +2 -1
- package/dist/graph/reconcile/observation.d.ts +4 -3
- package/dist/graph/reconcile/planning/context.d.ts +3 -3
- package/dist/graph/reconcile/planning/model.d.ts +4 -4
- package/dist/schema/callables/{view-for.d.ts → entrypoint.d.ts} +7 -5
- package/dist/schema/callables/entrypoint.js +12 -0
- package/dist/schema/callables/function.d.ts +0 -90
- package/dist/schema/callables/index.d.ts +1 -1
- package/dist/schema/callables/index.js +1 -1
- package/dist/schema/callables/view.d.ts +2 -24
- package/dist/schema/domain/domain.d.ts +2 -91
- package/dist/schema/domain/domain.js +3 -0
- package/dist/schema/identity/identity.d.ts +0 -6
- package/dist/schema/kernel/projection/core.d.ts +7 -0
- package/dist/schema/kernel/projection/core.js +51 -0
- package/dist/schema/kernel/projection/definitions.d.ts +13 -0
- package/dist/schema/kernel/projection/definitions.js +71 -0
- package/dist/schema/kernel/projection/methods.d.ts +5 -0
- package/dist/schema/kernel/projection/methods.js +41 -0
- package/dist/schema/kernel/projection/part.d.ts +34 -0
- package/dist/schema/kernel/projection/part.js +42 -0
- package/dist/schema/kernel/projection/paths.d.ts +6 -0
- package/dist/schema/kernel/projection/{keys.js → paths.js} +11 -12
- package/dist/schema/kernel/projection/project.d.ts +1 -1
- package/dist/schema/kernel/projection/project.js +16 -290
- package/dist/schema/kernel/projection/properties.d.ts +11 -0
- package/dist/schema/kernel/projection/properties.js +36 -0
- package/dist/schema/kernel/projection/relations.d.ts +7 -0
- package/dist/schema/kernel/projection/relations.js +49 -0
- package/dist/schema/kernel/projection/types.d.ts +4 -4
- package/dist/schema/kernel/schema.d.ts +125 -347
- package/dist/schema/kernel/schema.js +3 -2
- package/dist/schema/kernel/syscalls/contracts/blob.d.ts +12 -2
- package/dist/schema/kernel/syscalls/contracts/blob.js +10 -2
- package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +0 -1
- package/dist/schema/kernel/syscalls/contracts/delegate.js +1 -3
- package/dist/schema/kernel/syscalls/contracts/impersonate.d.ts +0 -1
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/contracts/index.js +1 -1
- package/dist/schema/kernel/syscalls/contracts/install.d.ts +3 -20
- package/dist/schema/kernel/syscalls/contracts/install.js +0 -2
- package/dist/schema/kernel/syscalls/contracts/installation.d.ts +0 -36
- package/dist/schema/kernel/syscalls/contracts/installation.js +3 -3
- package/dist/schema/kernel/syscalls/contracts/mint.d.ts +0 -1
- package/dist/schema/kernel/syscalls/contracts/mint.js +1 -2
- package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +3 -14
- package/dist/schema/kernel/syscalls/contracts/view-resolve.js +3 -18
- package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +0 -1
- package/dist/schema/kernel/syscalls/declarations/download.d.ts +5 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +0 -1
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +6 -23
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +0 -8
- package/dist/schema/kernel/syscalls/declarations/mint.d.ts +0 -1
- package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +1 -12
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +0 -3
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.d.ts +2 -13
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.js +4 -119
- package/dist/schema/kernel/syscalls/descriptors/view.d.ts +1 -12
- package/package.json +2 -2
- package/dist/schema/callables/view-for.js +0 -12
- package/dist/schema/kernel/projection/keys.d.ts +0 -3
- package/dist/schema/kernel/syscalls/contracts/legacy/install.d.ts +0 -22
- package/dist/schema/kernel/syscalls/contracts/legacy/install.js +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineSchema, schema } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
import { AuthorityOperations, CanCreate, CanDelete, CanGrant, CanRead, CanRevoke, CanTraverse, CanUse, CanUpdate, GovernedBy, Operation, Policy, } from '../authority/index.js';
|
|
3
|
-
import { Execution, Function as FunctionClass, MethodOf, View,
|
|
3
|
+
import { Entrypoint, Execution, Function as FunctionClass, MethodOf, View, } from '../callables/index.js';
|
|
4
4
|
import { OperationCore } from '../core/index.js';
|
|
5
5
|
import { Class, Extends, InstanceOf } from '../definitions/index.js';
|
|
6
6
|
import { Domain as DomainClass, OfDomain } from '../domain/index.js';
|
|
@@ -35,6 +35,7 @@ const KernelDefinitions = {
|
|
|
35
35
|
can_use: CanUse,
|
|
36
36
|
constrained_by: ConstrainedBy,
|
|
37
37
|
created_by: CreatedBy,
|
|
38
|
+
entrypoint: Entrypoint,
|
|
38
39
|
excluded_from: ExcludedFrom,
|
|
39
40
|
extends: Extends,
|
|
40
41
|
extends_with: ExtendsWith,
|
|
@@ -42,7 +43,6 @@ const KernelDefinitions = {
|
|
|
42
43
|
instance_of: InstanceOf,
|
|
43
44
|
method_of: MethodOf,
|
|
44
45
|
of_domain: OfDomain,
|
|
45
|
-
view_for: ViewFor,
|
|
46
46
|
},
|
|
47
47
|
policies: { canUseSyscall: CanUseSyscall },
|
|
48
48
|
functions: Functions,
|
|
@@ -52,6 +52,7 @@ const KernelCore = Object.freeze({
|
|
|
52
52
|
edges: OperationCore.edges,
|
|
53
53
|
});
|
|
54
54
|
const KernelSchemaInput = {
|
|
55
|
+
name: 'Kernel',
|
|
55
56
|
...KernelDefinitions,
|
|
56
57
|
core: KernelCore,
|
|
57
58
|
};
|
|
@@ -15,7 +15,17 @@ export declare const uploadOutput: import("zod").ZodObject<{
|
|
|
15
15
|
}, import("zod/v4/core").$strict>;
|
|
16
16
|
expiresAt: import("zod").ZodString;
|
|
17
17
|
}, import("zod/v4/core").$strict>;
|
|
18
|
-
|
|
18
|
+
/** Upper bound of one multi-slot download; a client splits larger slot lists. */
|
|
19
|
+
export declare const MAXIMUM_DOWNLOAD_SLOTS = 256;
|
|
20
|
+
/** Media type of a multi-slot download body: one length-prefixed part per slot, in slot order. */
|
|
21
|
+
export declare const DOWNLOAD_PARTS_MEDIA_TYPE = "application/vnd.astrale.download-parts";
|
|
22
|
+
/** One slot, the original contract, or an ordered slot list answered part by part. */
|
|
23
|
+
export declare const downloadInput: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
19
24
|
node: import("zod").ZodString;
|
|
20
25
|
property: import("zod").ZodString;
|
|
21
|
-
}, import("zod/v4/core").$strict
|
|
26
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
27
|
+
slots: import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
+
node: import("zod").ZodString;
|
|
29
|
+
property: import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strict>>;
|
|
31
|
+
}, import("zod/v4/core").$strict>]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { patterns } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
2
|
import { fullMatch } from '@astrale-os/kernel-dsl/v1/value/full-match';
|
|
3
|
-
import { strictObject, string } from 'zod';
|
|
3
|
+
import { array, strictObject, string, union } from 'zod';
|
|
4
4
|
import { artifactRef } from './installation.js';
|
|
5
5
|
export const MAXIMUM_BLOB_BYTES = 104_857_600;
|
|
6
6
|
export const blobSlot = strictObject({
|
|
@@ -13,4 +13,12 @@ export const uploadOutput = strictObject({
|
|
|
13
13
|
ref: artifactRef,
|
|
14
14
|
expiresAt: string().min(1),
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
/** Upper bound of one multi-slot download; a client splits larger slot lists. */
|
|
17
|
+
export const MAXIMUM_DOWNLOAD_SLOTS = 256;
|
|
18
|
+
/** Media type of a multi-slot download body: one length-prefixed part per slot, in slot order. */
|
|
19
|
+
export const DOWNLOAD_PARTS_MEDIA_TYPE = 'application/vnd.astrale.download-parts';
|
|
20
|
+
/** One slot, the original contract, or an ordered slot list answered part by part. */
|
|
21
|
+
export const downloadInput = union([
|
|
22
|
+
blobSlot,
|
|
23
|
+
strictObject({ slots: array(blobSlot).min(1).max(MAXIMUM_DOWNLOAD_SLOTS) }),
|
|
24
|
+
]);
|
|
@@ -2,6 +2,5 @@ export declare const delegateInput: import("zod").ZodObject<{
|
|
|
2
2
|
principal: import("zod").ZodString;
|
|
3
3
|
audience: import("zod").ZodString;
|
|
4
4
|
ttlSeconds: import("zod").ZodNumber;
|
|
5
|
-
attenuation: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
6
5
|
}, import("zod/v4/core").$strict>;
|
|
7
6
|
export declare const delegateOutput: import("zod").ZodString;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { number, strictObject, string
|
|
1
|
+
import { number, strictObject, string } from 'zod';
|
|
2
2
|
const text = string().min(1);
|
|
3
3
|
export const delegateInput = strictObject({
|
|
4
4
|
principal: text,
|
|
5
5
|
audience: text,
|
|
6
6
|
ttlSeconds: number().int().min(1),
|
|
7
|
-
/** Optional; absence means the self expression. */
|
|
8
|
-
attenuation: unknownSchema().optional(),
|
|
9
7
|
});
|
|
10
8
|
export const delegateOutput = text;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const impersonateInput: import("zod").ZodObject<{
|
|
2
2
|
audience: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
3
|
ttlSeconds: import("zod").ZodNumber;
|
|
4
|
-
grant: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
5
4
|
identity: import("zod").ZodString;
|
|
6
5
|
}, import("zod/v4/core").$strict>;
|
|
7
6
|
export declare const impersonateOutput: import("zod").ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { admitInput, admitOutput } from './admit.js';
|
|
2
|
-
export { blobSlot, downloadInput, MAXIMUM_BLOB_BYTES, uploadInput, uploadOutput } from './blob.js';
|
|
2
|
+
export { blobSlot, DOWNLOAD_PARTS_MEDIA_TYPE, downloadInput, MAXIMUM_BLOB_BYTES, MAXIMUM_DOWNLOAD_SLOTS, uploadInput, uploadOutput, } from './blob.js';
|
|
3
3
|
export { MAXIMUM_CHECKS, canInput, canOutput } from './can.js';
|
|
4
4
|
export { delegateInput, delegateOutput } from './delegate.js';
|
|
5
5
|
export { executionCancelInput, executionDeleteInput, executionDeleteOutput, executionOutcome, executionResultInput, executionResumeInput, executionSignalInput, executionSignalOutput, executionStatus, executionStatusInput, } from './execution.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { admitInput, admitOutput } from './admit.js';
|
|
2
|
-
export { blobSlot, downloadInput, MAXIMUM_BLOB_BYTES, uploadInput, uploadOutput } from './blob.js';
|
|
2
|
+
export { blobSlot, DOWNLOAD_PARTS_MEDIA_TYPE, downloadInput, MAXIMUM_BLOB_BYTES, MAXIMUM_DOWNLOAD_SLOTS, uploadInput, uploadOutput, } from './blob.js';
|
|
3
3
|
export { MAXIMUM_CHECKS, canInput, canOutput } from './can.js';
|
|
4
4
|
export { delegateInput, delegateOutput } from './delegate.js';
|
|
5
5
|
export { executionCancelInput, executionDeleteInput, executionDeleteOutput, executionOutcome, executionResultInput, executionResumeInput, executionSignalInput, executionSignalOutput, executionStatus, executionStatusInput, } from './execution.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { OperationId } from '../../../installation/operation-id.js';
|
|
2
|
-
import type { PublicationRequest } from './legacy/install.js';
|
|
3
2
|
export declare const domainRequest: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
4
3
|
artifact: import("zod").ZodObject<{
|
|
5
4
|
digest: import("zod").ZodString;
|
|
@@ -25,14 +24,6 @@ export declare const domainRequest: import("zod").ZodUnion<readonly [import("zod
|
|
|
25
24
|
}, import("zod/v4/core").$strict>>;
|
|
26
25
|
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
26
|
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
28
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
29
|
-
publication: import("zod").ZodObject<{
|
|
30
|
-
url: import("zod").ZodString;
|
|
31
|
-
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
-
etag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
-
}, import("zod/v4/core").$strict>;
|
|
34
|
-
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
-
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
36
27
|
}, import("zod/v4/core").$strict>]>;
|
|
37
28
|
export declare const installInput: import("zod").ZodObject<{
|
|
38
29
|
operation: import("zod").ZodString;
|
|
@@ -61,14 +52,6 @@ export declare const installInput: import("zod").ZodObject<{
|
|
|
61
52
|
}, import("zod/v4/core").$strict>>;
|
|
62
53
|
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
54
|
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
64
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
65
|
-
publication: import("zod").ZodObject<{
|
|
66
|
-
url: import("zod").ZodString;
|
|
67
|
-
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
-
etag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
-
}, import("zod/v4/core").$strict>;
|
|
70
|
-
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
-
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
72
55
|
}, import("zod/v4/core").$strict>]>>;
|
|
73
56
|
}, import("zod/v4/core").$strict>;
|
|
74
57
|
export declare const installReceipt: import("zod").ZodObject<{
|
|
@@ -176,12 +159,12 @@ export interface TransitionReceipt {
|
|
|
176
159
|
readonly state: 'committed';
|
|
177
160
|
readonly readiness?: ReadinessReceipt;
|
|
178
161
|
}
|
|
179
|
-
/** Installs the
|
|
162
|
+
/** Installs the exact DomainRelease served by the URL. */
|
|
180
163
|
export interface ReleaseRequest {
|
|
181
164
|
readonly release: {
|
|
182
165
|
readonly url: string;
|
|
183
166
|
readonly token?: string;
|
|
184
|
-
/** Requires an exact release digest. Omit to accept
|
|
167
|
+
/** Requires an exact release digest. Omit to accept the served release. */
|
|
185
168
|
readonly digest?: ReleaseDigest;
|
|
186
169
|
};
|
|
187
170
|
/**
|
|
@@ -195,7 +178,7 @@ export interface ReleaseRequest {
|
|
|
195
178
|
export type DomainRequest = {
|
|
196
179
|
readonly artifact: ArtifactRef;
|
|
197
180
|
readonly currentRevision?: string | null;
|
|
198
|
-
} | ReleaseRequest
|
|
181
|
+
} | ReleaseRequest;
|
|
199
182
|
export interface InstallInput {
|
|
200
183
|
readonly operation: OperationId;
|
|
201
184
|
readonly domains: NonEmpty<DomainRequest>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { array, strictObject, union } from 'zod';
|
|
2
2
|
import { artifactRef, installationDigest, installationText, issuerConsent, operationIdSchema, transitionReceipt, } from './installation.js';
|
|
3
|
-
import { publicationRequest } from './legacy/install.js';
|
|
4
3
|
export const domainRequest = union([
|
|
5
4
|
strictObject({
|
|
6
5
|
artifact: artifactRef,
|
|
@@ -16,7 +15,6 @@ export const domainRequest = union([
|
|
|
16
15
|
revision: installationText.optional(),
|
|
17
16
|
currentRevision: installationText.nullable().optional(),
|
|
18
17
|
}),
|
|
19
|
-
publicationRequest,
|
|
20
18
|
]);
|
|
21
19
|
export const installInput = strictObject({
|
|
22
20
|
operation: operationIdSchema,
|
|
@@ -7,17 +7,6 @@ export declare const artifactRef: import("zod").ZodObject<{
|
|
|
7
7
|
mediaType: import("zod").ZodString;
|
|
8
8
|
size: import("zod").ZodNumber;
|
|
9
9
|
}, import("zod/v4/core").$strict>;
|
|
10
|
-
export declare const dependencyReadinessEvidence: import("zod").ZodObject<{
|
|
11
|
-
origin: import("zod").ZodString;
|
|
12
|
-
generation: import("zod").ZodString;
|
|
13
|
-
readiness: import("zod").ZodString;
|
|
14
|
-
meaning: import("zod").ZodString;
|
|
15
|
-
}, import("zod/v4/core").$strict>;
|
|
16
|
-
export declare const domainGeneration: import("zod").ZodObject<{
|
|
17
|
-
origin: import("zod").ZodString;
|
|
18
|
-
revision: import("zod").ZodString;
|
|
19
|
-
generation: import("zod").ZodString;
|
|
20
|
-
}, import("zod/v4/core").$strict>;
|
|
21
10
|
export declare const issuerConsent: import("zod").ZodObject<{
|
|
22
11
|
issuer: import("zod").ZodObject<{
|
|
23
12
|
from: import("zod").ZodString;
|
|
@@ -28,31 +17,6 @@ export declare const issuerConsent: import("zod").ZodObject<{
|
|
|
28
17
|
revoke: "revoke";
|
|
29
18
|
}>>;
|
|
30
19
|
}, import("zod/v4/core").$strict>;
|
|
31
|
-
export declare const transitionIntent: import("zod").ZodObject<{
|
|
32
|
-
transition: import("zod").ZodString;
|
|
33
|
-
operation: import("zod").ZodString;
|
|
34
|
-
origin: import("zod").ZodString;
|
|
35
|
-
previous: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
36
|
-
origin: import("zod").ZodString;
|
|
37
|
-
revision: import("zod").ZodString;
|
|
38
|
-
generation: import("zod").ZodString;
|
|
39
|
-
}, import("zod/v4/core").$strict>>;
|
|
40
|
-
generation: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
41
|
-
origin: import("zod").ZodString;
|
|
42
|
-
revision: import("zod").ZodString;
|
|
43
|
-
generation: import("zod").ZodString;
|
|
44
|
-
}, import("zod/v4/core").$strict>>;
|
|
45
|
-
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
46
|
-
issuer: import("zod").ZodObject<{
|
|
47
|
-
from: import("zod").ZodString;
|
|
48
|
-
to: import("zod").ZodString;
|
|
49
|
-
}, import("zod/v4/core").$strict>;
|
|
50
|
-
previous: import("zod").ZodEnum<{
|
|
51
|
-
drain: "drain";
|
|
52
|
-
revoke: "revoke";
|
|
53
|
-
}>;
|
|
54
|
-
}, import("zod/v4/core").$strict>>;
|
|
55
|
-
}, import("zod/v4/core").$strict>;
|
|
56
20
|
export declare const readinessReceipt: import("zod").ZodObject<{
|
|
57
21
|
generation: import("zod").ZodString;
|
|
58
22
|
transition: import("zod").ZodString;
|
|
@@ -9,13 +9,13 @@ export const artifactRef = strictObject({
|
|
|
9
9
|
mediaType: installationText,
|
|
10
10
|
size: number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
const dependencyReadinessEvidence = strictObject({
|
|
13
13
|
origin: installationText,
|
|
14
14
|
generation: installationDigest,
|
|
15
15
|
readiness: installationDigest,
|
|
16
16
|
meaning: installationDigest,
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
const domainGeneration = strictObject({
|
|
19
19
|
origin: installationText,
|
|
20
20
|
revision: installationText,
|
|
21
21
|
generation: installationDigest,
|
|
@@ -25,7 +25,7 @@ export const issuerConsent = strictObject({
|
|
|
25
25
|
issuer: consentIssuers,
|
|
26
26
|
previous: enumeration(['drain', 'revoke']).optional(),
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
const transitionIntent = strictObject({
|
|
29
29
|
transition: installationText,
|
|
30
30
|
operation: operationIdSchema,
|
|
31
31
|
origin: installationText,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const mintInput: import("zod").ZodObject<{
|
|
2
2
|
audience: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
3
|
ttlSeconds: import("zod").ZodNumber;
|
|
4
|
-
grant: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
5
4
|
}, import("zod/v4/core").$strict>;
|
|
6
5
|
export declare const mintOutput: import("zod").ZodString;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { number, strictObject, string
|
|
1
|
+
import { number, strictObject, string } from 'zod';
|
|
2
2
|
const text = string().min(1);
|
|
3
3
|
export const mintInput = strictObject({
|
|
4
4
|
audience: text.optional(),
|
|
5
5
|
ttlSeconds: number().int().min(1),
|
|
6
|
-
grant: unknownSchema().optional(),
|
|
7
6
|
});
|
|
8
7
|
export const mintOutput = text;
|
|
@@ -7,26 +7,15 @@ export declare const viewResolveOutput: import("zod").ZodObject<{
|
|
|
7
7
|
key: import("zod").ZodString;
|
|
8
8
|
declaration: import("zod").ZodObject<{
|
|
9
9
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
-
target: import("zod").
|
|
10
|
+
target: import("zod").ZodObject<{
|
|
11
11
|
kind: import("zod").ZodLiteral<"domain">;
|
|
12
|
-
}, import("zod/v4/core").$strict
|
|
13
|
-
kind: import("zod").ZodLiteral<"definition">;
|
|
14
|
-
definitions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
15
|
-
origin: import("zod").ZodString;
|
|
16
|
-
kind: import("zod").ZodLiteral<"class">;
|
|
17
|
-
name: import("zod").ZodString;
|
|
18
|
-
}, import("zod/v4/core").$strict>>;
|
|
19
|
-
}, import("zod/v4/core").$strict>], "kind">;
|
|
12
|
+
}, import("zod/v4/core").$strict>;
|
|
20
13
|
}, import("zod/v4/core").$strict>;
|
|
21
14
|
href: import("zod").ZodString;
|
|
22
15
|
handshake: import("zod").ZodEnum<{
|
|
23
16
|
none: "none";
|
|
24
17
|
shell: "shell";
|
|
25
18
|
}>;
|
|
26
|
-
iframe: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
27
|
-
sandbox: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
28
|
-
allow: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
29
|
-
}, import("zod/v4/core").$strict>>;
|
|
30
19
|
host: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
31
20
|
navigation: import("zod").ZodObject<{
|
|
32
21
|
external: import("zod").ZodObject<{
|
|
@@ -35,7 +24,7 @@ export declare const viewResolveOutput: import("zod").ZodObject<{
|
|
|
35
24
|
}, import("zod/v4/core").$strict>;
|
|
36
25
|
}, import("zod/v4/core").$strict>>;
|
|
37
26
|
issuer: import("zod").ZodString;
|
|
38
|
-
|
|
27
|
+
release: import("zod").ZodString;
|
|
39
28
|
revision: import("zod").ZodString;
|
|
40
29
|
}, import("zod/v4/core").$strict>>;
|
|
41
30
|
}, import("zod/v4/core").$strict>;
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { fullMatch } from '@astrale-os/kernel-dsl/v1/value/full-match';
|
|
3
|
-
import { array, discriminatedUnion, enum as enumeration, literal, strictObject, string } from 'zod';
|
|
1
|
+
import { array, enum as enumeration, literal, strictObject, string } from 'zod';
|
|
4
2
|
import { viewHostRequirements } from './view-host-requirements.js';
|
|
5
|
-
const definition = strictObject({
|
|
6
|
-
origin: string().check(fullMatch(patterns.originFullMatch)),
|
|
7
|
-
kind: literal('class'),
|
|
8
|
-
name: string().check(fullMatch(patterns.memberNameFullMatch)),
|
|
9
|
-
});
|
|
10
3
|
const declaration = strictObject({
|
|
11
4
|
description: string().optional(),
|
|
12
|
-
target:
|
|
13
|
-
strictObject({ kind: literal('domain') }),
|
|
14
|
-
strictObject({ kind: literal('definition'), definitions: array(definition).min(1) }),
|
|
15
|
-
]),
|
|
16
|
-
});
|
|
17
|
-
const iframeRequirements = strictObject({
|
|
18
|
-
sandbox: array(string()).optional(),
|
|
19
|
-
allow: array(string()).optional(),
|
|
5
|
+
target: strictObject({ kind: literal('domain') }),
|
|
20
6
|
});
|
|
21
7
|
export const viewResolveInput = strictObject({ target: string().min(1) });
|
|
22
8
|
export const viewResolveOutput = strictObject({
|
|
@@ -26,10 +12,9 @@ export const viewResolveOutput = strictObject({
|
|
|
26
12
|
declaration,
|
|
27
13
|
href: string().min(1),
|
|
28
14
|
handshake: enumeration(['shell', 'none']),
|
|
29
|
-
iframe: iframeRequirements.optional(),
|
|
30
15
|
host: viewHostRequirements.optional(),
|
|
31
16
|
issuer: string().min(1),
|
|
32
|
-
|
|
17
|
+
release: string().min(1),
|
|
33
18
|
revision: string().min(1),
|
|
34
19
|
})),
|
|
35
20
|
});
|
|
@@ -2,6 +2,11 @@ import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
|
2
2
|
export declare const Download: builder.Function<builder.CallableProjection<{
|
|
3
3
|
node: string;
|
|
4
4
|
property: string;
|
|
5
|
+
} | {
|
|
6
|
+
slots: {
|
|
7
|
+
node: string;
|
|
8
|
+
property: string;
|
|
9
|
+
}[];
|
|
5
10
|
}, {
|
|
6
11
|
readonly mode: 'binary';
|
|
7
12
|
}, "authorized", false, false, undefined>>;
|
|
@@ -240,6 +240,11 @@ export declare const Functions: Readonly<{
|
|
|
240
240
|
download: builder.Function<builder.CallableProjection<{
|
|
241
241
|
node: string;
|
|
242
242
|
property: string;
|
|
243
|
+
} | {
|
|
244
|
+
slots: {
|
|
245
|
+
node: string;
|
|
246
|
+
property: string;
|
|
247
|
+
}[];
|
|
243
248
|
}, {
|
|
244
249
|
readonly mode: 'binary';
|
|
245
250
|
}, "authorized", false, false, undefined>>;
|
|
@@ -493,14 +498,6 @@ export declare const Functions: Readonly<{
|
|
|
493
498
|
install: builder.Function<builder.CallableProjection<{
|
|
494
499
|
operation: string;
|
|
495
500
|
domains: ({
|
|
496
|
-
publication: {
|
|
497
|
-
url: string;
|
|
498
|
-
token?: string | undefined;
|
|
499
|
-
etag?: string | undefined;
|
|
500
|
-
};
|
|
501
|
-
revision?: string | undefined;
|
|
502
|
-
currentRevision?: string | null | undefined;
|
|
503
|
-
} | {
|
|
504
501
|
artifact: {
|
|
505
502
|
digest: string;
|
|
506
503
|
mediaType: string;
|
|
@@ -616,7 +613,6 @@ export declare const IdentityMethods: Readonly<{
|
|
|
616
613
|
principal: string;
|
|
617
614
|
audience: string;
|
|
618
615
|
ttlSeconds: number;
|
|
619
|
-
attenuation?: unknown;
|
|
620
616
|
}, {
|
|
621
617
|
readonly mode: 'value';
|
|
622
618
|
readonly value: string;
|
|
@@ -687,7 +683,6 @@ export declare const IdentityMethods: Readonly<{
|
|
|
687
683
|
mint: builder.Method<builder.CallableProjection<{
|
|
688
684
|
audience?: string | undefined;
|
|
689
685
|
ttlSeconds: number;
|
|
690
|
-
grant?: unknown;
|
|
691
686
|
}, {
|
|
692
687
|
readonly mode: 'value';
|
|
693
688
|
readonly value: string;
|
|
@@ -695,7 +690,6 @@ export declare const IdentityMethods: Readonly<{
|
|
|
695
690
|
impersonate: builder.Method<builder.CallableProjection<{
|
|
696
691
|
audience?: string | undefined;
|
|
697
692
|
ttlSeconds: number;
|
|
698
|
-
grant?: unknown;
|
|
699
693
|
identity: string;
|
|
700
694
|
}, {
|
|
701
695
|
readonly mode: 'value';
|
|
@@ -734,21 +728,10 @@ export declare const ViewMethods: Readonly<{
|
|
|
734
728
|
description?: string | undefined;
|
|
735
729
|
target: {
|
|
736
730
|
kind: "domain";
|
|
737
|
-
} | {
|
|
738
|
-
kind: "definition";
|
|
739
|
-
definitions: {
|
|
740
|
-
origin: string;
|
|
741
|
-
kind: "class";
|
|
742
|
-
name: string;
|
|
743
|
-
}[];
|
|
744
731
|
};
|
|
745
732
|
};
|
|
746
733
|
href: string;
|
|
747
734
|
handshake: "none" | "shell";
|
|
748
|
-
iframe?: {
|
|
749
|
-
sandbox?: string[] | undefined;
|
|
750
|
-
allow?: string[] | undefined;
|
|
751
|
-
} | undefined;
|
|
752
735
|
host?: {
|
|
753
736
|
navigation: {
|
|
754
737
|
external: {
|
|
@@ -757,7 +740,7 @@ export declare const ViewMethods: Readonly<{
|
|
|
757
740
|
};
|
|
758
741
|
} | undefined;
|
|
759
742
|
issuer: string;
|
|
760
|
-
|
|
743
|
+
release: string;
|
|
761
744
|
revision: string;
|
|
762
745
|
}[];
|
|
763
746
|
};
|
|
@@ -2,14 +2,6 @@ import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
|
2
2
|
export declare const Install: builder.Function<builder.CallableProjection<{
|
|
3
3
|
operation: string;
|
|
4
4
|
domains: ({
|
|
5
|
-
publication: {
|
|
6
|
-
url: string;
|
|
7
|
-
token?: string | undefined;
|
|
8
|
-
etag?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
revision?: string | undefined;
|
|
11
|
-
currentRevision?: string | null | undefined;
|
|
12
|
-
} | {
|
|
13
5
|
artifact: {
|
|
14
6
|
digest: string;
|
|
15
7
|
mediaType: string;
|
|
@@ -11,21 +11,10 @@ export declare const ViewResolve: builder.Method<builder.CallableProjection<{
|
|
|
11
11
|
description?: string | undefined;
|
|
12
12
|
target: {
|
|
13
13
|
kind: "domain";
|
|
14
|
-
} | {
|
|
15
|
-
kind: "definition";
|
|
16
|
-
definitions: {
|
|
17
|
-
origin: string;
|
|
18
|
-
kind: "class";
|
|
19
|
-
name: string;
|
|
20
|
-
}[];
|
|
21
14
|
};
|
|
22
15
|
};
|
|
23
16
|
href: string;
|
|
24
17
|
handshake: "none" | "shell";
|
|
25
|
-
iframe?: {
|
|
26
|
-
sandbox?: string[] | undefined;
|
|
27
|
-
allow?: string[] | undefined;
|
|
28
|
-
} | undefined;
|
|
29
18
|
host?: {
|
|
30
19
|
navigation: {
|
|
31
20
|
external: {
|
|
@@ -34,7 +23,7 @@ export declare const ViewResolve: builder.Method<builder.CallableProjection<{
|
|
|
34
23
|
};
|
|
35
24
|
} | undefined;
|
|
36
25
|
issuer: string;
|
|
37
|
-
|
|
26
|
+
release: string;
|
|
38
27
|
revision: string;
|
|
39
28
|
}[];
|
|
40
29
|
};
|
|
@@ -6,7 +6,6 @@ export declare const delegate: import("./model.js").MethodSyscall<Readonly<{
|
|
|
6
6
|
principal: string;
|
|
7
7
|
audience: string;
|
|
8
8
|
ttlSeconds: number;
|
|
9
|
-
attenuation?: unknown;
|
|
10
9
|
}, {
|
|
11
10
|
readonly mode: 'value';
|
|
12
11
|
readonly value: string;
|
|
@@ -109,7 +108,6 @@ export declare const impersonate: import("./model.js").MethodSyscall<Readonly<{
|
|
|
109
108
|
}>, "impersonate", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
110
109
|
audience?: string | undefined;
|
|
111
110
|
ttlSeconds: number;
|
|
112
|
-
grant?: unknown;
|
|
113
111
|
identity: string;
|
|
114
112
|
}, {
|
|
115
113
|
readonly mode: 'value';
|
|
@@ -126,7 +124,6 @@ export declare const mint: import("./model.js").MethodSyscall<Readonly<{
|
|
|
126
124
|
}>, "mint", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
127
125
|
audience?: string | undefined;
|
|
128
126
|
ttlSeconds: number;
|
|
129
|
-
grant?: unknown;
|
|
130
127
|
}, {
|
|
131
128
|
readonly mode: 'value';
|
|
132
129
|
readonly value: string;
|
|
@@ -8,23 +8,12 @@ export interface ResolvedView {
|
|
|
8
8
|
readonly declaration: ViewDeclaration;
|
|
9
9
|
readonly href: string;
|
|
10
10
|
readonly handshake: 'shell' | 'none';
|
|
11
|
-
readonly iframe?: IframeRequirements;
|
|
12
11
|
readonly host?: ViewHostRequirements;
|
|
13
12
|
readonly issuer: IssuerId;
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
* frozen projection's for a `DomainRelease` v4 pin.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Successor: `ResolvedView.release`, emitted by the breaking release (AM-1) as
|
|
19
|
-
* the release digest.
|
|
20
|
-
*/
|
|
21
|
-
readonly etag: `sha256:${string}`;
|
|
13
|
+
/** Digest of the exact DomainRelease that owns this View. */
|
|
14
|
+
readonly release: `sha256:${string}`;
|
|
22
15
|
readonly revision: Revision;
|
|
23
16
|
}
|
|
24
|
-
export interface IframeRequirements {
|
|
25
|
-
readonly sandbox?: readonly string[];
|
|
26
|
-
readonly allow?: readonly string[];
|
|
27
|
-
}
|
|
28
17
|
type ViewDeclaration = Omit<ViewDefinition, 'ref'>;
|
|
29
18
|
export interface ViewResolution {
|
|
30
19
|
readonly snapshot: `sha256:${string}`;
|