@astrale-os/kernel-core 0.9.0-beta.55 → 0.9.0-beta.56
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/schema/callables/execution.d.ts +269 -0
- package/dist/schema/callables/execution.js +30 -0
- package/dist/schema/callables/function.d.ts +380 -380
- package/dist/schema/callables/index.d.ts +1 -0
- package/dist/schema/callables/index.js +1 -0
- package/dist/schema/callables/view.d.ts +2 -2
- package/dist/schema/domain/domain.d.ts +387 -387
- package/dist/schema/identity/identity.d.ts +12 -12
- package/dist/schema/kernel/schema.d.ts +1165 -855
- package/dist/schema/kernel/schema.js +4 -2
- package/dist/schema/kernel/syscalls/contracts/execution.d.ts +60 -0
- package/dist/schema/kernel/syscalls/contracts/execution.js +46 -0
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -0
- package/dist/schema/kernel/syscalls/contracts/index.js +1 -0
- package/dist/schema/kernel/syscalls/declarations/admit.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/can.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/download.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/execution.d.ts +105 -0
- package/dist/schema/kernel/syscalls/declarations/execution.js +52 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +146 -40
- package/dist/schema/kernel/syscalls/declarations/index.js +9 -0
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/journal.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/mint.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +24 -24
- package/dist/schema/kernel/syscalls/declarations/query.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/register.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/upload.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +1 -1
- package/dist/schema/kernel/syscalls/declarations/whois.d.ts +1 -1
- package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +153 -0
- package/dist/schema/kernel/syscalls/descriptors/execution.js +11 -0
- package/dist/schema/kernel/syscalls/descriptors/function.d.ts +1 -0
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +6 -0
- package/dist/schema/kernel/syscalls/descriptors/index.d.ts +1 -0
- package/dist/schema/kernel/syscalls/descriptors/index.js +1 -0
- package/dist/schema/kernel/syscalls/descriptors/view.d.ts +1 -0
- package/dist/schema/kernel/syscalls/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/index.js +1 -1
- package/dist/schema/kernel/syscalls/references/execution.d.ts +55 -0
- package/dist/schema/kernel/syscalls/references/execution.js +13 -0
- package/dist/schema/kernel/syscalls/references/index.d.ts +1 -0
- package/dist/schema/kernel/syscalls/references/index.js +1 -0
- package/dist/schema/meta/created-by.d.ts +32 -0
- package/dist/schema/meta/created-by.js +17 -0
- package/dist/schema/meta/index.d.ts +1 -0
- package/dist/schema/meta/index.js +1 -0
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
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 { Function as FunctionClass, MethodOf, View, ViewFor } from '../callables/index.js';
|
|
3
|
+
import { Execution, Function as FunctionClass, MethodOf, View, ViewFor, } 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';
|
|
7
7
|
import { ConstrainedBy, ExcludedFrom, ExtendsWith, Identity } from '../identity/index.js';
|
|
8
|
-
import { Descriptable, Edge, Iconable, Named, Node, Remotable, Statused, Timestamped, } from '../meta/index.js';
|
|
8
|
+
import { CreatedBy, Descriptable, Edge, Iconable, Named, Node, Remotable, Statused, Timestamped, } from '../meta/index.js';
|
|
9
9
|
import { Functions, CanUseSyscall } from './syscalls/declarations/index.js';
|
|
10
10
|
const KernelDefinitions = {
|
|
11
11
|
classes: {
|
|
@@ -20,6 +20,7 @@ const KernelDefinitions = {
|
|
|
20
20
|
Timestamped,
|
|
21
21
|
Class,
|
|
22
22
|
Domain: DomainClass,
|
|
23
|
+
Execution,
|
|
23
24
|
Function: FunctionClass,
|
|
24
25
|
Operation,
|
|
25
26
|
Policy,
|
|
@@ -33,6 +34,7 @@ const KernelDefinitions = {
|
|
|
33
34
|
can_revoke: CanRevoke,
|
|
34
35
|
can_use: CanUse,
|
|
35
36
|
constrained_by: ConstrainedBy,
|
|
37
|
+
created_by: CreatedBy,
|
|
36
38
|
excluded_from: ExcludedFrom,
|
|
37
39
|
extends: Extends,
|
|
38
40
|
extends_with: ExtendsWith,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Terminal outcome of one durable call; a handler failure is an outcome, not a call error. */
|
|
2
|
+
export declare const executionOutcome: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
3
|
+
kind: import("zod").ZodLiteral<"completed">;
|
|
4
|
+
value: import("zod").ZodUnknown;
|
|
5
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6
|
+
kind: import("zod").ZodLiteral<"failed">;
|
|
7
|
+
error: import("zod").ZodObject<{
|
|
8
|
+
code: import("zod").ZodString;
|
|
9
|
+
message: import("zod").ZodString;
|
|
10
|
+
family: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
12
|
+
}, import("zod/v4/core").$strict>;
|
|
13
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
14
|
+
kind: import("zod").ZodLiteral<"cancelled">;
|
|
15
|
+
}, import("zod/v4/core").$strict>]>;
|
|
16
|
+
export declare const executionStatus: import("zod").ZodObject<{
|
|
17
|
+
id: import("zod").ZodString;
|
|
18
|
+
function: import("zod").ZodString;
|
|
19
|
+
version: import("zod").ZodString;
|
|
20
|
+
state: import("zod").ZodEnum<{
|
|
21
|
+
cancelled: "cancelled";
|
|
22
|
+
completed: "completed";
|
|
23
|
+
expired: "expired";
|
|
24
|
+
failed: "failed";
|
|
25
|
+
paused: "paused";
|
|
26
|
+
pending: "pending";
|
|
27
|
+
running: "running";
|
|
28
|
+
waiting: "waiting";
|
|
29
|
+
}>;
|
|
30
|
+
createdAt: import("zod").ZodString;
|
|
31
|
+
outcome: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
32
|
+
kind: import("zod").ZodLiteral<"completed">;
|
|
33
|
+
value: import("zod").ZodUnknown;
|
|
34
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
35
|
+
kind: import("zod").ZodLiteral<"failed">;
|
|
36
|
+
error: import("zod").ZodObject<{
|
|
37
|
+
code: import("zod").ZodString;
|
|
38
|
+
message: import("zod").ZodString;
|
|
39
|
+
family: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
41
|
+
}, import("zod/v4/core").$strict>;
|
|
42
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
43
|
+
kind: import("zod").ZodLiteral<"cancelled">;
|
|
44
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
45
|
+
}, import("zod/v4/core").$strict>;
|
|
46
|
+
export declare const executionStatusInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
47
|
+
export declare const executionResultInput: import("zod").ZodObject<{
|
|
48
|
+
waitMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
49
|
+
}, import("zod/v4/core").$strict>;
|
|
50
|
+
export declare const executionCancelInput: import("zod").ZodObject<{
|
|
51
|
+
force: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
52
|
+
}, import("zod/v4/core").$strict>;
|
|
53
|
+
export declare const executionSignalInput: import("zod").ZodObject<{
|
|
54
|
+
name: import("zod").ZodString;
|
|
55
|
+
value: import("zod").ZodUnknown;
|
|
56
|
+
}, import("zod/v4/core").$strict>;
|
|
57
|
+
export declare const executionSignalOutput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
58
|
+
export declare const executionResumeInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
59
|
+
export declare const executionDeleteInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
60
|
+
export declare const executionDeleteOutput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { fullMatch } from '@astrale-os/kernel-dsl/v1/value/full-match';
|
|
2
|
+
import { boolean, enum as enumeration, literal, number, strictObject, string, union, unknown as unknownSchema, } from 'zod';
|
|
3
|
+
const nodeId = string().min(1).max(255).check(fullMatch('[A-Za-z0-9._-]+'));
|
|
4
|
+
const empty = strictObject({});
|
|
5
|
+
/** Engine-observed state; never persisted on the Execution. */
|
|
6
|
+
const state = enumeration([
|
|
7
|
+
'pending',
|
|
8
|
+
'running',
|
|
9
|
+
'waiting',
|
|
10
|
+
'paused',
|
|
11
|
+
'completed',
|
|
12
|
+
'failed',
|
|
13
|
+
'cancelled',
|
|
14
|
+
'expired',
|
|
15
|
+
]);
|
|
16
|
+
const failure = strictObject({
|
|
17
|
+
code: string(),
|
|
18
|
+
message: string(),
|
|
19
|
+
family: string().optional(),
|
|
20
|
+
details: unknownSchema().optional(),
|
|
21
|
+
});
|
|
22
|
+
/** Terminal outcome of one durable call; a handler failure is an outcome, not a call error. */
|
|
23
|
+
export const executionOutcome = union([
|
|
24
|
+
strictObject({ kind: literal('completed'), value: unknownSchema() }),
|
|
25
|
+
strictObject({ kind: literal('failed'), error: failure }),
|
|
26
|
+
strictObject({ kind: literal('cancelled') }),
|
|
27
|
+
]);
|
|
28
|
+
export const executionStatus = strictObject({
|
|
29
|
+
id: nodeId,
|
|
30
|
+
function: nodeId,
|
|
31
|
+
version: string().check(fullMatch('sha256:[0-9a-f]{64}')),
|
|
32
|
+
state,
|
|
33
|
+
createdAt: string().min(1),
|
|
34
|
+
outcome: executionOutcome.optional(),
|
|
35
|
+
});
|
|
36
|
+
export const executionStatusInput = empty;
|
|
37
|
+
export const executionResultInput = strictObject({ waitMs: number().int().min(0).optional() });
|
|
38
|
+
export const executionCancelInput = strictObject({ force: boolean().optional() });
|
|
39
|
+
export const executionSignalInput = strictObject({
|
|
40
|
+
name: string().min(1).max(128),
|
|
41
|
+
value: unknownSchema(),
|
|
42
|
+
});
|
|
43
|
+
export const executionSignalOutput = empty;
|
|
44
|
+
export const executionResumeInput = empty;
|
|
45
|
+
export const executionDeleteInput = empty;
|
|
46
|
+
export const executionDeleteOutput = empty;
|
|
@@ -2,6 +2,7 @@ export { admitInput, admitOutput } from './admit.js';
|
|
|
2
2
|
export { blobSlot, downloadInput, MAXIMUM_BLOB_BYTES, uploadInput, uploadOutput } from './blob.js';
|
|
3
3
|
export { MAXIMUM_CHECKS, canInput, canOutput } from './can.js';
|
|
4
4
|
export { delegateInput, delegateOutput } from './delegate.js';
|
|
5
|
+
export { executionCancelInput, executionDeleteInput, executionDeleteOutput, executionOutcome, executionResultInput, executionResumeInput, executionSignalInput, executionSignalOutput, executionStatus, executionStatusInput, } from './execution.js';
|
|
5
6
|
export { installInput, installReceipt, type DomainRequest, type InstallInput, type InstallReceipt, } from './install.js';
|
|
6
7
|
export { introspectInput } from './introspect.js';
|
|
7
8
|
export { journalInput, journalOutput } from './journal.js';
|
|
@@ -2,6 +2,7 @@ export { admitInput, admitOutput } from './admit.js';
|
|
|
2
2
|
export { blobSlot, downloadInput, MAXIMUM_BLOB_BYTES, uploadInput, uploadOutput } from './blob.js';
|
|
3
3
|
export { MAXIMUM_CHECKS, canInput, canOutput } from './can.js';
|
|
4
4
|
export { delegateInput, delegateOutput } from './delegate.js';
|
|
5
|
+
export { executionCancelInput, executionDeleteInput, executionDeleteOutput, executionOutcome, executionResultInput, executionResumeInput, executionSignalInput, executionSignalOutput, executionStatus, executionStatusInput, } from './execution.js';
|
|
5
6
|
export { installInput, installReceipt, } from './install.js';
|
|
6
7
|
export { introspectInput } from './introspect.js';
|
|
7
8
|
export { journalInput, journalOutput } from './journal.js';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
export declare const ExecutionStatus: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
3
|
+
readonly mode: 'value';
|
|
4
|
+
readonly value: {
|
|
5
|
+
id: string;
|
|
6
|
+
function: string;
|
|
7
|
+
version: string;
|
|
8
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
9
|
+
createdAt: string;
|
|
10
|
+
outcome?: {
|
|
11
|
+
kind: "completed";
|
|
12
|
+
value: unknown;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "failed";
|
|
15
|
+
error: {
|
|
16
|
+
code: string;
|
|
17
|
+
message: string;
|
|
18
|
+
family?: string | undefined;
|
|
19
|
+
details?: unknown;
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
kind: "cancelled";
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
}, "authenticated", false, false, undefined>>;
|
|
26
|
+
export declare const ExecutionResult: builder.Method<builder.CallableProjection<{
|
|
27
|
+
waitMs?: number | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
readonly mode: 'value';
|
|
30
|
+
readonly value: {
|
|
31
|
+
kind: "completed";
|
|
32
|
+
value: unknown;
|
|
33
|
+
} | {
|
|
34
|
+
kind: "failed";
|
|
35
|
+
error: {
|
|
36
|
+
code: string;
|
|
37
|
+
message: string;
|
|
38
|
+
family?: string | undefined;
|
|
39
|
+
details?: unknown;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
kind: "cancelled";
|
|
43
|
+
};
|
|
44
|
+
}, "authenticated", false, false, undefined>>;
|
|
45
|
+
export declare const ExecutionCancel: builder.Method<builder.CallableProjection<{
|
|
46
|
+
force?: boolean | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
readonly mode: 'value';
|
|
49
|
+
readonly value: {
|
|
50
|
+
id: string;
|
|
51
|
+
function: string;
|
|
52
|
+
version: string;
|
|
53
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
54
|
+
createdAt: string;
|
|
55
|
+
outcome?: {
|
|
56
|
+
kind: "completed";
|
|
57
|
+
value: unknown;
|
|
58
|
+
} | {
|
|
59
|
+
kind: "failed";
|
|
60
|
+
error: {
|
|
61
|
+
code: string;
|
|
62
|
+
message: string;
|
|
63
|
+
family?: string | undefined;
|
|
64
|
+
details?: unknown;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
kind: "cancelled";
|
|
68
|
+
} | undefined;
|
|
69
|
+
};
|
|
70
|
+
}, "authenticated", false, false, undefined>>;
|
|
71
|
+
export declare const ExecutionSignal: builder.Method<builder.CallableProjection<{
|
|
72
|
+
name: string;
|
|
73
|
+
value: unknown;
|
|
74
|
+
}, {
|
|
75
|
+
readonly mode: 'value';
|
|
76
|
+
readonly value: Record<string, never>;
|
|
77
|
+
}, "authenticated", false, false, undefined>>;
|
|
78
|
+
export declare const ExecutionResume: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
79
|
+
readonly mode: 'value';
|
|
80
|
+
readonly value: {
|
|
81
|
+
id: string;
|
|
82
|
+
function: string;
|
|
83
|
+
version: string;
|
|
84
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
85
|
+
createdAt: string;
|
|
86
|
+
outcome?: {
|
|
87
|
+
kind: "completed";
|
|
88
|
+
value: unknown;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "failed";
|
|
91
|
+
error: {
|
|
92
|
+
code: string;
|
|
93
|
+
message: string;
|
|
94
|
+
family?: string | undefined;
|
|
95
|
+
details?: unknown;
|
|
96
|
+
};
|
|
97
|
+
} | {
|
|
98
|
+
kind: "cancelled";
|
|
99
|
+
} | undefined;
|
|
100
|
+
};
|
|
101
|
+
}, "authenticated", false, false, undefined>>;
|
|
102
|
+
export declare const ExecutionDelete: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
103
|
+
readonly mode: 'value';
|
|
104
|
+
readonly value: Record<string, never>;
|
|
105
|
+
}, "authenticated", false, false, undefined>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { method } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
import { executionCancelInput, executionDeleteInput, executionDeleteOutput, executionOutcome, executionResultInput, executionResumeInput, executionSignalInput, executionSignalOutput, executionStatus, executionStatusInput, } from '../contracts/index.js';
|
|
3
|
+
// Runtime admits every Execution method against its receiver's immutable facts: observe for
|
|
4
|
+
// status, result and cooperative cancel; administer for forced cancel, signal, resume and delete.
|
|
5
|
+
export const ExecutionStatus = method({
|
|
6
|
+
description: 'Read the engine state and, once terminal, the outcome of this Execution.',
|
|
7
|
+
auth: 'authenticated',
|
|
8
|
+
input: executionStatusInput,
|
|
9
|
+
output: executionStatus,
|
|
10
|
+
static: false,
|
|
11
|
+
abstract: false,
|
|
12
|
+
});
|
|
13
|
+
export const ExecutionResult = method({
|
|
14
|
+
description: 'Wait at most waitMs, bounded by the request deadline, for the terminal outcome.',
|
|
15
|
+
auth: 'authenticated',
|
|
16
|
+
input: executionResultInput,
|
|
17
|
+
output: executionOutcome,
|
|
18
|
+
static: false,
|
|
19
|
+
abstract: false,
|
|
20
|
+
});
|
|
21
|
+
export const ExecutionCancel = method({
|
|
22
|
+
description: 'Cancel this Execution cooperatively, or kill it without compensation when forced.',
|
|
23
|
+
auth: 'authenticated',
|
|
24
|
+
input: executionCancelInput,
|
|
25
|
+
output: executionStatus,
|
|
26
|
+
static: false,
|
|
27
|
+
abstract: false,
|
|
28
|
+
});
|
|
29
|
+
export const ExecutionSignal = method({
|
|
30
|
+
description: 'Resolve the named durable promise of this Execution once.',
|
|
31
|
+
auth: 'authenticated',
|
|
32
|
+
input: executionSignalInput,
|
|
33
|
+
output: executionSignalOutput,
|
|
34
|
+
static: false,
|
|
35
|
+
abstract: false,
|
|
36
|
+
});
|
|
37
|
+
export const ExecutionResume = method({
|
|
38
|
+
description: 'Resume this paused Execution; a running Execution is unchanged.',
|
|
39
|
+
auth: 'authenticated',
|
|
40
|
+
input: executionResumeInput,
|
|
41
|
+
output: executionStatus,
|
|
42
|
+
static: false,
|
|
43
|
+
abstract: false,
|
|
44
|
+
});
|
|
45
|
+
export const ExecutionDelete = method({
|
|
46
|
+
description: 'Delete the record of this Execution, then kill and purge its run.',
|
|
47
|
+
auth: 'authenticated',
|
|
48
|
+
input: executionDeleteInput,
|
|
49
|
+
output: executionDeleteOutput,
|
|
50
|
+
static: false,
|
|
51
|
+
abstract: false,
|
|
52
|
+
});
|
|
@@ -222,7 +222,7 @@ export declare const Functions: Readonly<{
|
|
|
222
222
|
next?: string | undefined;
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
}, "authorized", false, false>>;
|
|
225
|
+
}, "authorized", false, false, undefined>>;
|
|
226
226
|
upload: builder.Function<builder.CallableProjection<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
|
|
227
227
|
mediaType: string;
|
|
228
228
|
}>, {
|
|
@@ -236,13 +236,13 @@ export declare const Functions: Readonly<{
|
|
|
236
236
|
};
|
|
237
237
|
expiresAt: string;
|
|
238
238
|
};
|
|
239
|
-
}, "authorized", false, false>>;
|
|
239
|
+
}, "authorized", false, false, undefined>>;
|
|
240
240
|
download: builder.Function<builder.CallableProjection<{
|
|
241
241
|
node: string;
|
|
242
242
|
property: string;
|
|
243
243
|
}, {
|
|
244
244
|
readonly mode: 'binary';
|
|
245
|
-
}, "authorized", false, false>>;
|
|
245
|
+
}, "authorized", false, false, undefined>>;
|
|
246
246
|
mutate: builder.Function<builder.CallableProjection<{
|
|
247
247
|
ast: {
|
|
248
248
|
format: "astrale.graph.mutation";
|
|
@@ -399,6 +399,29 @@ export declare const Functions: Readonly<{
|
|
|
399
399
|
};
|
|
400
400
|
})[];
|
|
401
401
|
operations: ({
|
|
402
|
+
op: "edge.update";
|
|
403
|
+
edge: {
|
|
404
|
+
source: string;
|
|
405
|
+
target: string;
|
|
406
|
+
class: string;
|
|
407
|
+
};
|
|
408
|
+
slug: unknown;
|
|
409
|
+
props?: {
|
|
410
|
+
set: Record<string, unknown>;
|
|
411
|
+
unset: string[];
|
|
412
|
+
} | undefined;
|
|
413
|
+
} | {
|
|
414
|
+
op: "edge.update";
|
|
415
|
+
edge: {
|
|
416
|
+
source: string;
|
|
417
|
+
target: string;
|
|
418
|
+
class: string;
|
|
419
|
+
};
|
|
420
|
+
props: {
|
|
421
|
+
set: Record<string, unknown>;
|
|
422
|
+
unset: string[];
|
|
423
|
+
};
|
|
424
|
+
} | {
|
|
402
425
|
op: "node.create";
|
|
403
426
|
as: string;
|
|
404
427
|
class: string;
|
|
@@ -426,29 +449,6 @@ export declare const Functions: Readonly<{
|
|
|
426
449
|
};
|
|
427
450
|
slug?: unknown;
|
|
428
451
|
props: Record<string, unknown>;
|
|
429
|
-
} | {
|
|
430
|
-
op: "edge.update";
|
|
431
|
-
edge: {
|
|
432
|
-
source: string;
|
|
433
|
-
target: string;
|
|
434
|
-
class: string;
|
|
435
|
-
};
|
|
436
|
-
slug: unknown;
|
|
437
|
-
props?: {
|
|
438
|
-
set: Record<string, unknown>;
|
|
439
|
-
unset: string[];
|
|
440
|
-
} | undefined;
|
|
441
|
-
} | {
|
|
442
|
-
op: "edge.update";
|
|
443
|
-
edge: {
|
|
444
|
-
source: string;
|
|
445
|
-
target: string;
|
|
446
|
-
class: string;
|
|
447
|
-
};
|
|
448
|
-
props: {
|
|
449
|
-
set: Record<string, unknown>;
|
|
450
|
-
unset: string[];
|
|
451
|
-
};
|
|
452
452
|
} | {
|
|
453
453
|
op: "edge.delete";
|
|
454
454
|
edge: {
|
|
@@ -467,7 +467,7 @@ export declare const Functions: Readonly<{
|
|
|
467
467
|
readonly value: {
|
|
468
468
|
createdNodes: Record<string, string>;
|
|
469
469
|
};
|
|
470
|
-
}, "authorized", false, false>>;
|
|
470
|
+
}, "authorized", false, false, undefined>>;
|
|
471
471
|
register: builder.Function<builder.CallableProjection<{
|
|
472
472
|
idempotencyKey: string;
|
|
473
473
|
identities: ({
|
|
@@ -489,7 +489,7 @@ export declare const Functions: Readonly<{
|
|
|
489
489
|
sub: string;
|
|
490
490
|
}[];
|
|
491
491
|
};
|
|
492
|
-
}, "authorized", false, false>>;
|
|
492
|
+
}, "authorized", false, false, undefined>>;
|
|
493
493
|
install: builder.Function<builder.CallableProjection<{
|
|
494
494
|
operation: string;
|
|
495
495
|
domains: ({
|
|
@@ -510,13 +510,13 @@ export declare const Functions: Readonly<{
|
|
|
510
510
|
})[];
|
|
511
511
|
}, {
|
|
512
512
|
readonly mode: 'binary';
|
|
513
|
-
}, "authorized", false, false>>;
|
|
513
|
+
}, "authorized", false, false, undefined>>;
|
|
514
514
|
introspect: builder.Function<builder.CallableProjection<{
|
|
515
515
|
kind: "bundle" | "dependencies" | "inspect";
|
|
516
516
|
origin: string;
|
|
517
517
|
}, {
|
|
518
518
|
readonly mode: 'binary';
|
|
519
|
-
}, "authenticated", false, false>>;
|
|
519
|
+
}, "authenticated", false, false, undefined>>;
|
|
520
520
|
uninstall: builder.Function<builder.CallableProjection<{
|
|
521
521
|
operation: string;
|
|
522
522
|
domains: string[];
|
|
@@ -557,7 +557,7 @@ export declare const Functions: Readonly<{
|
|
|
557
557
|
} | undefined;
|
|
558
558
|
}[];
|
|
559
559
|
};
|
|
560
|
-
}, "authorized", false, false>>;
|
|
560
|
+
}, "authorized", false, false, undefined>>;
|
|
561
561
|
journal: builder.Function<builder.CallableProjection<{
|
|
562
562
|
invocation?: {
|
|
563
563
|
source: string;
|
|
@@ -585,7 +585,7 @@ export declare const Functions: Readonly<{
|
|
|
585
585
|
cursor?: string | undefined;
|
|
586
586
|
gap?: unknown;
|
|
587
587
|
};
|
|
588
|
-
}, "authorized", false, false>>;
|
|
588
|
+
}, "authorized", false, false, undefined>>;
|
|
589
589
|
}>;
|
|
590
590
|
export declare const IdentityMethods: Readonly<{
|
|
591
591
|
delegate: builder.Method<builder.CallableProjection<{
|
|
@@ -596,7 +596,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
596
596
|
}, {
|
|
597
597
|
readonly mode: 'value';
|
|
598
598
|
readonly value: string;
|
|
599
|
-
}, "authenticated", true, false>>;
|
|
599
|
+
}, "authenticated", true, false, undefined>>;
|
|
600
600
|
can: builder.Method<builder.CallableProjection<{
|
|
601
601
|
policy: string;
|
|
602
602
|
object: string;
|
|
@@ -614,7 +614,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
614
614
|
allowed: boolean;
|
|
615
615
|
}[];
|
|
616
616
|
};
|
|
617
|
-
}, "authenticated", true, false>>;
|
|
617
|
+
}, "authenticated", true, false, undefined>>;
|
|
618
618
|
whoami: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
619
619
|
readonly mode: 'value';
|
|
620
620
|
readonly value: {
|
|
@@ -635,7 +635,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
635
635
|
op: "exists";
|
|
636
636
|
})[];
|
|
637
637
|
};
|
|
638
|
-
}, "authenticated", true, false>>;
|
|
638
|
+
}, "authenticated", true, false, undefined>>;
|
|
639
639
|
whois: builder.Method<builder.CallableProjection<{
|
|
640
640
|
iss: string;
|
|
641
641
|
sub: string;
|
|
@@ -659,7 +659,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
659
659
|
op: "exists";
|
|
660
660
|
})[];
|
|
661
661
|
} | null;
|
|
662
|
-
}, "authorized", true, false>>;
|
|
662
|
+
}, "authorized", true, false, undefined>>;
|
|
663
663
|
mint: builder.Method<builder.CallableProjection<{
|
|
664
664
|
audience?: string | undefined;
|
|
665
665
|
ttlSeconds: number;
|
|
@@ -667,7 +667,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
667
667
|
}, {
|
|
668
668
|
readonly mode: 'value';
|
|
669
669
|
readonly value: string;
|
|
670
|
-
}, "authenticated", true, false>>;
|
|
670
|
+
}, "authenticated", true, false, undefined>>;
|
|
671
671
|
impersonate: builder.Method<builder.CallableProjection<{
|
|
672
672
|
audience?: string | undefined;
|
|
673
673
|
ttlSeconds: number;
|
|
@@ -676,7 +676,7 @@ export declare const IdentityMethods: Readonly<{
|
|
|
676
676
|
}, {
|
|
677
677
|
readonly mode: 'value';
|
|
678
678
|
readonly value: string;
|
|
679
|
-
}, "authorized", true, false>>;
|
|
679
|
+
}, "authorized", true, false, undefined>>;
|
|
680
680
|
}>;
|
|
681
681
|
export declare const FunctionMethods: Readonly<{
|
|
682
682
|
admit: builder.Method<builder.CallableProjection<{
|
|
@@ -696,7 +696,7 @@ export declare const FunctionMethods: Readonly<{
|
|
|
696
696
|
callable: string;
|
|
697
697
|
receiver?: string | undefined;
|
|
698
698
|
};
|
|
699
|
-
}, "authenticated", true, false>>;
|
|
699
|
+
}, "authenticated", true, false, undefined>>;
|
|
700
700
|
}>;
|
|
701
701
|
export declare const ViewMethods: Readonly<{
|
|
702
702
|
resolve: builder.Method<builder.CallableProjection<{
|
|
@@ -738,6 +738,112 @@ export declare const ViewMethods: Readonly<{
|
|
|
738
738
|
revision: string;
|
|
739
739
|
}[];
|
|
740
740
|
};
|
|
741
|
-
}, "authorized", true, false>>;
|
|
741
|
+
}, "authorized", true, false, undefined>>;
|
|
742
|
+
}>;
|
|
743
|
+
export declare const ExecutionMethods: Readonly<{
|
|
744
|
+
status: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
745
|
+
readonly mode: 'value';
|
|
746
|
+
readonly value: {
|
|
747
|
+
id: string;
|
|
748
|
+
function: string;
|
|
749
|
+
version: string;
|
|
750
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
751
|
+
createdAt: string;
|
|
752
|
+
outcome?: {
|
|
753
|
+
kind: "completed";
|
|
754
|
+
value: unknown;
|
|
755
|
+
} | {
|
|
756
|
+
kind: "failed";
|
|
757
|
+
error: {
|
|
758
|
+
code: string;
|
|
759
|
+
message: string;
|
|
760
|
+
family?: string | undefined;
|
|
761
|
+
details?: unknown;
|
|
762
|
+
};
|
|
763
|
+
} | {
|
|
764
|
+
kind: "cancelled";
|
|
765
|
+
} | undefined;
|
|
766
|
+
};
|
|
767
|
+
}, "authenticated", false, false, undefined>>;
|
|
768
|
+
result: builder.Method<builder.CallableProjection<{
|
|
769
|
+
waitMs?: number | undefined;
|
|
770
|
+
}, {
|
|
771
|
+
readonly mode: 'value';
|
|
772
|
+
readonly value: {
|
|
773
|
+
kind: "completed";
|
|
774
|
+
value: unknown;
|
|
775
|
+
} | {
|
|
776
|
+
kind: "failed";
|
|
777
|
+
error: {
|
|
778
|
+
code: string;
|
|
779
|
+
message: string;
|
|
780
|
+
family?: string | undefined;
|
|
781
|
+
details?: unknown;
|
|
782
|
+
};
|
|
783
|
+
} | {
|
|
784
|
+
kind: "cancelled";
|
|
785
|
+
};
|
|
786
|
+
}, "authenticated", false, false, undefined>>;
|
|
787
|
+
cancel: builder.Method<builder.CallableProjection<{
|
|
788
|
+
force?: boolean | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
readonly mode: 'value';
|
|
791
|
+
readonly value: {
|
|
792
|
+
id: string;
|
|
793
|
+
function: string;
|
|
794
|
+
version: string;
|
|
795
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
796
|
+
createdAt: string;
|
|
797
|
+
outcome?: {
|
|
798
|
+
kind: "completed";
|
|
799
|
+
value: unknown;
|
|
800
|
+
} | {
|
|
801
|
+
kind: "failed";
|
|
802
|
+
error: {
|
|
803
|
+
code: string;
|
|
804
|
+
message: string;
|
|
805
|
+
family?: string | undefined;
|
|
806
|
+
details?: unknown;
|
|
807
|
+
};
|
|
808
|
+
} | {
|
|
809
|
+
kind: "cancelled";
|
|
810
|
+
} | undefined;
|
|
811
|
+
};
|
|
812
|
+
}, "authenticated", false, false, undefined>>;
|
|
813
|
+
signal: builder.Method<builder.CallableProjection<{
|
|
814
|
+
name: string;
|
|
815
|
+
value: unknown;
|
|
816
|
+
}, {
|
|
817
|
+
readonly mode: 'value';
|
|
818
|
+
readonly value: Record<string, never>;
|
|
819
|
+
}, "authenticated", false, false, undefined>>;
|
|
820
|
+
resume: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
821
|
+
readonly mode: 'value';
|
|
822
|
+
readonly value: {
|
|
823
|
+
id: string;
|
|
824
|
+
function: string;
|
|
825
|
+
version: string;
|
|
826
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
827
|
+
createdAt: string;
|
|
828
|
+
outcome?: {
|
|
829
|
+
kind: "completed";
|
|
830
|
+
value: unknown;
|
|
831
|
+
} | {
|
|
832
|
+
kind: "failed";
|
|
833
|
+
error: {
|
|
834
|
+
code: string;
|
|
835
|
+
message: string;
|
|
836
|
+
family?: string | undefined;
|
|
837
|
+
details?: unknown;
|
|
838
|
+
};
|
|
839
|
+
} | {
|
|
840
|
+
kind: "cancelled";
|
|
841
|
+
} | undefined;
|
|
842
|
+
};
|
|
843
|
+
}, "authenticated", false, false, undefined>>;
|
|
844
|
+
delete: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
845
|
+
readonly mode: 'value';
|
|
846
|
+
readonly value: Record<string, never>;
|
|
847
|
+
}, "authenticated", false, false, undefined>>;
|
|
742
848
|
}>;
|
|
743
849
|
export { CanUseSyscall } from './use-policy.js';
|