@astrale-os/kernel-core 0.9.0-beta.65 → 0.9.0-beta.67
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/auth/authority/semantics/interpret.d.ts +6 -0
- package/dist/auth/authority/semantics/interpret.js +187 -14
- package/dist/auth/authority/semantics/snapshot.d.ts +6 -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/language/wire.d.ts +11 -0
- package/dist/graph/mutate/result/index.d.ts +4 -3
- package/dist/graph/mutate/result/index.js +8 -6
- package/dist/graph/mutate/result/wire.d.ts +1 -0
- package/dist/graph/mutate/result/wire.js +5 -2
- package/dist/graph/node/identity/id.d.ts +0 -3
- package/dist/graph/node/identity/id.js +0 -4
- package/dist/graph/node/identity/order.js +20 -0
- package/dist/graph/query/authoring/builder.js +29 -2
- package/dist/graph/query/authoring/model.d.ts +20 -1
- package/dist/graph/query/index.d.ts +3 -3
- package/dist/graph/query/index.js +1 -1
- package/dist/graph/query/language/codec.js +18 -3
- package/dist/graph/query/language/fingerprint.js +8 -0
- package/dist/graph/query/language/model.d.ts +22 -4
- package/dist/graph/query/language/wire.d.ts +11 -0
- package/dist/graph/query/language/wire.js +8 -1
- package/dist/graph/query/order/index.d.ts +8 -1
- package/dist/graph/query/order/index.js +20 -0
- package/dist/graph/query/reference/evaluate.js +5 -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 -120
- 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 -121
- package/dist/schema/domain/domain.js +3 -0
- package/dist/schema/identity/identity.d.ts +0 -8
- 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 +174 -409
- 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 -4
- package/dist/schema/kernel/syscalls/contracts/delegate.js +0 -3
- 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/mutate.d.ts +13 -0
- package/dist/schema/kernel/syscalls/contracts/mutate.js +2 -1
- package/dist/schema/kernel/syscalls/contracts/query.d.ts +11 -0
- 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 -4
- package/dist/schema/kernel/syscalls/declarations/download.d.ts +5 -0
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +30 -24
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +0 -8
- package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +13 -0
- package/dist/schema/kernel/syscalls/declarations/query.d.ts +11 -0
- package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +1 -12
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +0 -4
- 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/delegate.d.ts +0 -5
- package/dist/schema/kernel/syscalls/contracts/legacy/delegate.js +0 -25
- 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,9 +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").ZodObject<{
|
|
6
|
-
kind: import("zod").ZodLiteral<"identity">;
|
|
7
|
-
self: import("zod").ZodLiteral<true>;
|
|
8
|
-
}, import("zod/v4/core").$strict>>;
|
|
9
5
|
}, import("zod/v4/core").$strict>;
|
|
10
6
|
export declare const delegateOutput: import("zod").ZodString;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { number, strictObject, string } from 'zod';
|
|
2
|
-
import { selfAttenuation } from './legacy/delegate.js';
|
|
3
2
|
const text = string().min(1);
|
|
4
3
|
export const delegateInput = strictObject({
|
|
5
4
|
principal: text,
|
|
6
5
|
audience: text,
|
|
7
6
|
ttlSeconds: number().int().min(1),
|
|
8
|
-
/** @deprecated Ignored; admitted only as the self expression published Clients send. */
|
|
9
|
-
attenuation: selfAttenuation.optional(),
|
|
10
7
|
});
|
|
11
8
|
export const delegateOutput = text;
|
|
@@ -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,
|
|
@@ -85,6 +85,17 @@ export declare const mutateInput: import("zod").ZodObject<{
|
|
|
85
85
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
86
86
|
kind: import("zod").ZodLiteral<"property.present">;
|
|
87
87
|
property: import("zod").ZodString;
|
|
88
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
89
|
+
kind: import("zod").ZodLiteral<"property.range">;
|
|
90
|
+
property: import("zod").ZodString;
|
|
91
|
+
lower: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
92
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
|
|
93
|
+
inclusive: import("zod").ZodBoolean;
|
|
94
|
+
}, import("zod/v4/core").$strict>>;
|
|
95
|
+
upper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
96
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
|
|
97
|
+
inclusive: import("zod").ZodBoolean;
|
|
98
|
+
}, import("zod/v4/core").$strict>>;
|
|
88
99
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
89
100
|
kind: import("zod").ZodLiteral<"identity.equal">;
|
|
90
101
|
identity: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
@@ -251,7 +262,9 @@ export declare const mutateInput: import("zod").ZodObject<{
|
|
|
251
262
|
origin: import("zod").ZodString;
|
|
252
263
|
revision: import("zod").ZodString;
|
|
253
264
|
}, import("zod/v4/core").$strict>>>;
|
|
265
|
+
idempotencyKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
254
266
|
}, import("zod/v4/core").$strict>;
|
|
255
267
|
export declare const mutateOutput: import("zod").ZodObject<{
|
|
256
268
|
createdNodes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
269
|
+
replayed: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
257
270
|
}, import("zod/v4/core").$strict>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { strictObject } from 'zod';
|
|
1
|
+
import { strictObject, string } from 'zod';
|
|
2
2
|
import { mutationAstSchema, mutationResultSchema } from '#graph/mutate/wire';
|
|
3
3
|
import { domainExpectations } from './expected.js';
|
|
4
4
|
export const mutateInput = strictObject({
|
|
5
5
|
ast: mutationAstSchema,
|
|
6
6
|
expected: domainExpectations.optional(),
|
|
7
|
+
idempotencyKey: string().min(1).max(256).optional(),
|
|
7
8
|
});
|
|
8
9
|
export const mutateOutput = mutationResultSchema;
|
|
@@ -57,6 +57,17 @@ export declare const queryInput: import("zod").ZodObject<{
|
|
|
57
57
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
58
58
|
kind: import("zod").ZodLiteral<"property.present">;
|
|
59
59
|
property: import("zod").ZodString;
|
|
60
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
61
|
+
kind: import("zod").ZodLiteral<"property.range">;
|
|
62
|
+
property: import("zod").ZodString;
|
|
63
|
+
lower: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
64
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
|
|
65
|
+
inclusive: import("zod").ZodBoolean;
|
|
66
|
+
}, import("zod/v4/core").$strict>>;
|
|
67
|
+
upper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
68
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
|
|
69
|
+
inclusive: import("zod").ZodBoolean;
|
|
70
|
+
}, import("zod/v4/core").$strict>>;
|
|
60
71
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
61
72
|
kind: import("zod").ZodLiteral<"identity.equal">;
|
|
62
73
|
identity: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
@@ -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
|
});
|
|
@@ -3,10 +3,6 @@ export declare const Delegate: builder.Method<builder.CallableProjection<{
|
|
|
3
3
|
principal: string;
|
|
4
4
|
audience: string;
|
|
5
5
|
ttlSeconds: number;
|
|
6
|
-
attenuation?: {
|
|
7
|
-
kind: "identity";
|
|
8
|
-
self: true;
|
|
9
|
-
} | undefined;
|
|
10
6
|
}, {
|
|
11
7
|
readonly mode: 'value';
|
|
12
8
|
readonly value: string;
|
|
@@ -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>>;
|
|
@@ -58,6 +58,17 @@ export declare const Functions: Readonly<{
|
|
|
58
58
|
} | {
|
|
59
59
|
kind: "property.present";
|
|
60
60
|
property: string;
|
|
61
|
+
} | {
|
|
62
|
+
kind: "property.range";
|
|
63
|
+
property: string;
|
|
64
|
+
lower?: {
|
|
65
|
+
value: string | number;
|
|
66
|
+
inclusive: boolean;
|
|
67
|
+
} | undefined;
|
|
68
|
+
upper?: {
|
|
69
|
+
value: string | number;
|
|
70
|
+
inclusive: boolean;
|
|
71
|
+
} | undefined;
|
|
61
72
|
} | {
|
|
62
73
|
kind: "identity.equal";
|
|
63
74
|
identity: string | {
|
|
@@ -240,6 +251,11 @@ export declare const Functions: Readonly<{
|
|
|
240
251
|
download: builder.Function<builder.CallableProjection<{
|
|
241
252
|
node: string;
|
|
242
253
|
property: string;
|
|
254
|
+
} | {
|
|
255
|
+
slots: {
|
|
256
|
+
node: string;
|
|
257
|
+
property: string;
|
|
258
|
+
}[];
|
|
243
259
|
}, {
|
|
244
260
|
readonly mode: 'binary';
|
|
245
261
|
}, "authorized", false, false, undefined>>;
|
|
@@ -330,6 +346,17 @@ export declare const Functions: Readonly<{
|
|
|
330
346
|
} | {
|
|
331
347
|
kind: "property.present";
|
|
332
348
|
property: string;
|
|
349
|
+
} | {
|
|
350
|
+
kind: "property.range";
|
|
351
|
+
property: string;
|
|
352
|
+
lower?: {
|
|
353
|
+
value: string | number;
|
|
354
|
+
inclusive: boolean;
|
|
355
|
+
} | undefined;
|
|
356
|
+
upper?: {
|
|
357
|
+
value: string | number;
|
|
358
|
+
inclusive: boolean;
|
|
359
|
+
} | undefined;
|
|
333
360
|
} | {
|
|
334
361
|
kind: "identity.equal";
|
|
335
362
|
identity: string | {
|
|
@@ -462,10 +489,12 @@ export declare const Functions: Readonly<{
|
|
|
462
489
|
origin: string;
|
|
463
490
|
revision: string;
|
|
464
491
|
}[] | undefined;
|
|
492
|
+
idempotencyKey?: string | undefined;
|
|
465
493
|
}, {
|
|
466
494
|
readonly mode: 'value';
|
|
467
495
|
readonly value: {
|
|
468
496
|
createdNodes: Record<string, string>;
|
|
497
|
+
replayed?: true | undefined;
|
|
469
498
|
};
|
|
470
499
|
}, "authorized", false, false, undefined>>;
|
|
471
500
|
register: builder.Function<builder.CallableProjection<{
|
|
@@ -493,14 +522,6 @@ export declare const Functions: Readonly<{
|
|
|
493
522
|
install: builder.Function<builder.CallableProjection<{
|
|
494
523
|
operation: string;
|
|
495
524
|
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
525
|
artifact: {
|
|
505
526
|
digest: string;
|
|
506
527
|
mediaType: string;
|
|
@@ -616,10 +637,6 @@ export declare const IdentityMethods: Readonly<{
|
|
|
616
637
|
principal: string;
|
|
617
638
|
audience: string;
|
|
618
639
|
ttlSeconds: number;
|
|
619
|
-
attenuation?: {
|
|
620
|
-
kind: "identity";
|
|
621
|
-
self: true;
|
|
622
|
-
} | undefined;
|
|
623
640
|
}, {
|
|
624
641
|
readonly mode: 'value';
|
|
625
642
|
readonly value: string;
|
|
@@ -735,21 +752,10 @@ export declare const ViewMethods: Readonly<{
|
|
|
735
752
|
description?: string | undefined;
|
|
736
753
|
target: {
|
|
737
754
|
kind: "domain";
|
|
738
|
-
} | {
|
|
739
|
-
kind: "definition";
|
|
740
|
-
definitions: {
|
|
741
|
-
origin: string;
|
|
742
|
-
kind: "class";
|
|
743
|
-
name: string;
|
|
744
|
-
}[];
|
|
745
755
|
};
|
|
746
756
|
};
|
|
747
757
|
href: string;
|
|
748
758
|
handshake: "none" | "shell";
|
|
749
|
-
iframe?: {
|
|
750
|
-
sandbox?: string[] | undefined;
|
|
751
|
-
allow?: string[] | undefined;
|
|
752
|
-
} | undefined;
|
|
753
759
|
host?: {
|
|
754
760
|
navigation: {
|
|
755
761
|
external: {
|
|
@@ -758,7 +764,7 @@ export declare const ViewMethods: Readonly<{
|
|
|
758
764
|
};
|
|
759
765
|
} | undefined;
|
|
760
766
|
issuer: string;
|
|
761
|
-
|
|
767
|
+
release: string;
|
|
762
768
|
revision: string;
|
|
763
769
|
}[];
|
|
764
770
|
};
|
|
@@ -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;
|
|
@@ -86,6 +86,17 @@ export declare const Mutate: builder.Function<builder.CallableProjection<{
|
|
|
86
86
|
} | {
|
|
87
87
|
kind: "property.present";
|
|
88
88
|
property: string;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "property.range";
|
|
91
|
+
property: string;
|
|
92
|
+
lower?: {
|
|
93
|
+
value: string | number;
|
|
94
|
+
inclusive: boolean;
|
|
95
|
+
} | undefined;
|
|
96
|
+
upper?: {
|
|
97
|
+
value: string | number;
|
|
98
|
+
inclusive: boolean;
|
|
99
|
+
} | undefined;
|
|
89
100
|
} | {
|
|
90
101
|
kind: "identity.equal";
|
|
91
102
|
identity: string | {
|
|
@@ -218,9 +229,11 @@ export declare const Mutate: builder.Function<builder.CallableProjection<{
|
|
|
218
229
|
origin: string;
|
|
219
230
|
revision: string;
|
|
220
231
|
}[] | undefined;
|
|
232
|
+
idempotencyKey?: string | undefined;
|
|
221
233
|
}, {
|
|
222
234
|
readonly mode: 'value';
|
|
223
235
|
readonly value: {
|
|
224
236
|
createdNodes: Record<string, string>;
|
|
237
|
+
replayed?: true | undefined;
|
|
225
238
|
};
|
|
226
239
|
}, "authorized", false, false, undefined>>;
|
|
@@ -57,6 +57,17 @@ export declare const Query: builder.Function<builder.CallableProjection<{
|
|
|
57
57
|
} | {
|
|
58
58
|
kind: "property.present";
|
|
59
59
|
property: string;
|
|
60
|
+
} | {
|
|
61
|
+
kind: "property.range";
|
|
62
|
+
property: string;
|
|
63
|
+
lower?: {
|
|
64
|
+
value: string | number;
|
|
65
|
+
inclusive: boolean;
|
|
66
|
+
} | undefined;
|
|
67
|
+
upper?: {
|
|
68
|
+
value: string | number;
|
|
69
|
+
inclusive: boolean;
|
|
70
|
+
} | undefined;
|
|
60
71
|
} | {
|
|
61
72
|
kind: "identity.equal";
|
|
62
73
|
identity: 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
|
};
|