@astrale-os/kernel-core 0.9.0-beta.44 → 0.9.0-beta.45
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/kernel/projection/callables.js +1 -1
- package/dist/schema/kernel/projection/keys.js +1 -1
- package/dist/schema/kernel/projection/project.js +1 -1
- package/dist/schema/kernel/schema.d.ts +325 -323
- package/dist/schema/kernel/syscalls/descriptors/function.d.ts +1 -0
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +5 -0
- package/dist/schema/kernel/syscalls/descriptors/view.d.ts +1 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ export function projectedCallables(domain) {
|
|
|
12
12
|
if (!('methods' in definition) || definition.kind !== 'node')
|
|
13
13
|
continue;
|
|
14
14
|
for (const method of [...definition.methods, ...definition.static.methods]) {
|
|
15
|
-
if (method.owner.ref.origin !== domain.origin || method.
|
|
15
|
+
if (method.owner.ref.origin !== domain.origin || !method.executable) {
|
|
16
16
|
continue;
|
|
17
17
|
}
|
|
18
18
|
result.set(projectedMethodPath(domain, method), method.key);
|
|
@@ -11,7 +11,7 @@ export function managedKeys(domain) {
|
|
|
11
11
|
if (!('methods' in definition) || definition.kind !== 'node')
|
|
12
12
|
continue;
|
|
13
13
|
for (const method of [...definition.methods, ...definition.static.methods]) {
|
|
14
|
-
if (method.owner.ref.origin !== domain.origin || method.
|
|
14
|
+
if (method.owner.ref.origin !== domain.origin || !method.executable) {
|
|
15
15
|
continue;
|
|
16
16
|
}
|
|
17
17
|
add(keys, projectedMethodPath(domain, method));
|
|
@@ -45,7 +45,7 @@ export function project(domain) {
|
|
|
45
45
|
const methods = new Map();
|
|
46
46
|
for (const definition of Object.values(domain.classes)) {
|
|
47
47
|
for (const method of [...definition.methods, ...definition.static.methods]) {
|
|
48
|
-
if (method.owner.ref.origin === domain.origin && method.
|
|
48
|
+
if (method.owner.ref.origin === domain.origin && method.executable) {
|
|
49
49
|
methods.set(method.key, method);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -4431,6 +4431,31 @@ export declare const AuthorityRelations: Readonly<{
|
|
|
4431
4431
|
}>;
|
|
4432
4432
|
/** Exact authorized Kernel Functions for which pristine Root receives direct can_use authority. */
|
|
4433
4433
|
export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4434
|
+
operation: string;
|
|
4435
|
+
domains: ({
|
|
4436
|
+
artifact: {
|
|
4437
|
+
digest: string;
|
|
4438
|
+
mediaType: string;
|
|
4439
|
+
size: number;
|
|
4440
|
+
};
|
|
4441
|
+
currentRevision?: string | null | undefined;
|
|
4442
|
+
} | {
|
|
4443
|
+
publication: {
|
|
4444
|
+
url: string;
|
|
4445
|
+
token?: string | undefined;
|
|
4446
|
+
etag?: string | undefined;
|
|
4447
|
+
};
|
|
4448
|
+
revision?: string | undefined;
|
|
4449
|
+
currentRevision?: string | null | undefined;
|
|
4450
|
+
})[];
|
|
4451
|
+
}, {
|
|
4452
|
+
readonly mode: 'binary';
|
|
4453
|
+
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4454
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
|
|
4455
|
+
readonly origin: "kernel.astrale.ai";
|
|
4456
|
+
};
|
|
4457
|
+
readonly key: "kernel.astrale.ai:function.install";
|
|
4458
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4434
4459
|
invocation?: {
|
|
4435
4460
|
source: string;
|
|
4436
4461
|
id: string;
|
|
@@ -4462,259 +4487,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
4462
4487
|
readonly origin: "kernel.astrale.ai";
|
|
4463
4488
|
};
|
|
4464
4489
|
readonly key: "kernel.astrale.ai:function.journal";
|
|
4465
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4466
|
-
idempotencyKey: string;
|
|
4467
|
-
identities: ({
|
|
4468
|
-
id: string;
|
|
4469
|
-
mode: "external";
|
|
4470
|
-
credential: string;
|
|
4471
|
-
} | {
|
|
4472
|
-
id: string;
|
|
4473
|
-
mode: "self";
|
|
4474
|
-
publicKey: unknown;
|
|
4475
|
-
credential: string;
|
|
4476
|
-
})[];
|
|
4477
|
-
}, {
|
|
4478
|
-
readonly mode: 'value';
|
|
4479
|
-
readonly value: {
|
|
4480
|
-
identities: {
|
|
4481
|
-
id: string;
|
|
4482
|
-
iss: string;
|
|
4483
|
-
sub: string;
|
|
4484
|
-
}[];
|
|
4485
|
-
};
|
|
4486
|
-
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4487
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"register"> & {
|
|
4488
|
-
readonly origin: "kernel.astrale.ai";
|
|
4489
|
-
};
|
|
4490
|
-
readonly key: "kernel.astrale.ai:function.register";
|
|
4491
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4492
|
-
ast: {
|
|
4493
|
-
format: "astrale.graph.query";
|
|
4494
|
-
version: "v6";
|
|
4495
|
-
source: {
|
|
4496
|
-
kind: "node";
|
|
4497
|
-
terms: ({
|
|
4498
|
-
kind: "path";
|
|
4499
|
-
path: string;
|
|
4500
|
-
} | {
|
|
4501
|
-
kind: "class";
|
|
4502
|
-
class: {
|
|
4503
|
-
origin: string;
|
|
4504
|
-
kind: "class";
|
|
4505
|
-
name: string;
|
|
4506
|
-
};
|
|
4507
|
-
})[];
|
|
4508
|
-
binding: string;
|
|
4509
|
-
} | {
|
|
4510
|
-
kind: "edge";
|
|
4511
|
-
terms: {
|
|
4512
|
-
kind: "class";
|
|
4513
|
-
class: {
|
|
4514
|
-
origin: string;
|
|
4515
|
-
kind: "class";
|
|
4516
|
-
name: string;
|
|
4517
|
-
};
|
|
4518
|
-
}[];
|
|
4519
|
-
bindings: {
|
|
4520
|
-
source: string;
|
|
4521
|
-
edge: string;
|
|
4522
|
-
target: string;
|
|
4523
|
-
};
|
|
4524
|
-
};
|
|
4525
|
-
steps: ({
|
|
4526
|
-
op: "filter";
|
|
4527
|
-
binding: string;
|
|
4528
|
-
predicate: {
|
|
4529
|
-
kind: "class.satisfies";
|
|
4530
|
-
class: {
|
|
4531
|
-
origin: string;
|
|
4532
|
-
kind: "class";
|
|
4533
|
-
name: string;
|
|
4534
|
-
};
|
|
4535
|
-
} | {
|
|
4536
|
-
kind: "class.equal";
|
|
4537
|
-
class: {
|
|
4538
|
-
origin: string;
|
|
4539
|
-
kind: "class";
|
|
4540
|
-
name: string;
|
|
4541
|
-
};
|
|
4542
|
-
} | {
|
|
4543
|
-
kind: "property.equal";
|
|
4544
|
-
property: string;
|
|
4545
|
-
value: unknown;
|
|
4546
|
-
} | {
|
|
4547
|
-
kind: "property.present";
|
|
4548
|
-
property: string;
|
|
4549
|
-
} | {
|
|
4550
|
-
kind: "identity.equal";
|
|
4551
|
-
identity: string | {
|
|
4552
|
-
source: string;
|
|
4553
|
-
target: string;
|
|
4554
|
-
class: string;
|
|
4555
|
-
};
|
|
4556
|
-
};
|
|
4557
|
-
} | {
|
|
4558
|
-
op: "expand";
|
|
4559
|
-
from: string;
|
|
4560
|
-
via: {
|
|
4561
|
-
origin: string;
|
|
4562
|
-
kind: "class";
|
|
4563
|
-
name: string;
|
|
4564
|
-
}[];
|
|
4565
|
-
direction: "incident" | "incoming" | "outgoing";
|
|
4566
|
-
bindings: {
|
|
4567
|
-
edge: string;
|
|
4568
|
-
node: string;
|
|
4569
|
-
};
|
|
4570
|
-
})[];
|
|
4571
|
-
select: {
|
|
4572
|
-
kind: "graph";
|
|
4573
|
-
binding: string;
|
|
4574
|
-
order?: {
|
|
4575
|
-
property: string;
|
|
4576
|
-
direction: "asc" | "desc";
|
|
4577
|
-
unranked: "first" | "last";
|
|
4578
|
-
} | undefined;
|
|
4579
|
-
} | {
|
|
4580
|
-
kind: "nodes";
|
|
4581
|
-
binding: string;
|
|
4582
|
-
projection: {
|
|
4583
|
-
kind: "reference" | "value";
|
|
4584
|
-
};
|
|
4585
|
-
order?: {
|
|
4586
|
-
property: string;
|
|
4587
|
-
direction: "asc" | "desc";
|
|
4588
|
-
unranked: "first" | "last";
|
|
4589
|
-
} | undefined;
|
|
4590
|
-
} | {
|
|
4591
|
-
kind: "edges";
|
|
4592
|
-
binding: string;
|
|
4593
|
-
projection: {
|
|
4594
|
-
edge: "reference" | "value";
|
|
4595
|
-
source: "reference" | "value";
|
|
4596
|
-
target: "reference" | "value";
|
|
4597
|
-
};
|
|
4598
|
-
order?: {
|
|
4599
|
-
property: string;
|
|
4600
|
-
direction: "asc" | "desc";
|
|
4601
|
-
unranked: "first" | "last";
|
|
4602
|
-
} | undefined;
|
|
4603
|
-
};
|
|
4604
|
-
};
|
|
4605
|
-
expected?: {
|
|
4606
|
-
origin: string;
|
|
4607
|
-
revision: string;
|
|
4608
|
-
}[] | undefined;
|
|
4609
|
-
page: {
|
|
4610
|
-
size: number;
|
|
4611
|
-
after?: string | undefined;
|
|
4612
|
-
};
|
|
4613
|
-
}, {
|
|
4614
|
-
readonly mode: 'value';
|
|
4615
|
-
readonly value: {
|
|
4616
|
-
result: {
|
|
4617
|
-
kind: "graph";
|
|
4618
|
-
graph: {
|
|
4619
|
-
nodes: {
|
|
4620
|
-
id: string;
|
|
4621
|
-
class: string;
|
|
4622
|
-
props: Record<string, unknown>;
|
|
4623
|
-
}[];
|
|
4624
|
-
edges: {
|
|
4625
|
-
source: string;
|
|
4626
|
-
target: string;
|
|
4627
|
-
class: string;
|
|
4628
|
-
slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
|
|
4629
|
-
props: Record<string, unknown>;
|
|
4630
|
-
}[];
|
|
4631
|
-
};
|
|
4632
|
-
selection: {
|
|
4633
|
-
kind: "node";
|
|
4634
|
-
ids: string[];
|
|
4635
|
-
} | {
|
|
4636
|
-
kind: "edge";
|
|
4637
|
-
keys: {
|
|
4638
|
-
source: string;
|
|
4639
|
-
target: string;
|
|
4640
|
-
class: string;
|
|
4641
|
-
}[];
|
|
4642
|
-
};
|
|
4643
|
-
} | {
|
|
4644
|
-
kind: "nodes";
|
|
4645
|
-
nodes: ({
|
|
4646
|
-
kind: "reference";
|
|
4647
|
-
value: {
|
|
4648
|
-
id: string;
|
|
4649
|
-
class: string;
|
|
4650
|
-
};
|
|
4651
|
-
} | {
|
|
4652
|
-
kind: "value";
|
|
4653
|
-
value: {
|
|
4654
|
-
id: string;
|
|
4655
|
-
class: string;
|
|
4656
|
-
props: Record<string, unknown>;
|
|
4657
|
-
};
|
|
4658
|
-
})[];
|
|
4659
|
-
} | {
|
|
4660
|
-
kind: "edges";
|
|
4661
|
-
edges: {
|
|
4662
|
-
edge: {
|
|
4663
|
-
kind: "reference";
|
|
4664
|
-
value: {
|
|
4665
|
-
source: string;
|
|
4666
|
-
target: string;
|
|
4667
|
-
class: string;
|
|
4668
|
-
};
|
|
4669
|
-
} | {
|
|
4670
|
-
kind: "value";
|
|
4671
|
-
value: {
|
|
4672
|
-
source: string;
|
|
4673
|
-
target: string;
|
|
4674
|
-
class: string;
|
|
4675
|
-
slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
|
|
4676
|
-
props: Record<string, unknown>;
|
|
4677
|
-
};
|
|
4678
|
-
};
|
|
4679
|
-
source: {
|
|
4680
|
-
kind: "reference";
|
|
4681
|
-
value: {
|
|
4682
|
-
id: string;
|
|
4683
|
-
class: string;
|
|
4684
|
-
};
|
|
4685
|
-
} | {
|
|
4686
|
-
kind: "value";
|
|
4687
|
-
value: {
|
|
4688
|
-
id: string;
|
|
4689
|
-
class: string;
|
|
4690
|
-
props: Record<string, unknown>;
|
|
4691
|
-
};
|
|
4692
|
-
};
|
|
4693
|
-
target: {
|
|
4694
|
-
kind: "reference";
|
|
4695
|
-
value: {
|
|
4696
|
-
id: string;
|
|
4697
|
-
class: string;
|
|
4698
|
-
};
|
|
4699
|
-
} | {
|
|
4700
|
-
kind: "value";
|
|
4701
|
-
value: {
|
|
4702
|
-
id: string;
|
|
4703
|
-
class: string;
|
|
4704
|
-
props: Record<string, unknown>;
|
|
4705
|
-
};
|
|
4706
|
-
};
|
|
4707
|
-
}[];
|
|
4708
|
-
};
|
|
4709
|
-
page: {
|
|
4710
|
-
next?: string | undefined;
|
|
4711
|
-
};
|
|
4712
|
-
};
|
|
4713
|
-
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4714
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
|
|
4715
|
-
readonly origin: "kernel.astrale.ai";
|
|
4716
|
-
};
|
|
4717
|
-
readonly key: "kernel.astrale.ai:function.query";
|
|
4718
4490
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4719
4491
|
ast: {
|
|
4720
4492
|
format: "astrale.graph.mutation";
|
|
@@ -4899,76 +4671,304 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
4899
4671
|
slug?: unknown;
|
|
4900
4672
|
props: Record<string, unknown>;
|
|
4901
4673
|
} | {
|
|
4902
|
-
op: "edge.update";
|
|
4903
|
-
edge: {
|
|
4904
|
-
source: string;
|
|
4905
|
-
target: string;
|
|
4906
|
-
class: string;
|
|
4674
|
+
op: "edge.update";
|
|
4675
|
+
edge: {
|
|
4676
|
+
source: string;
|
|
4677
|
+
target: string;
|
|
4678
|
+
class: string;
|
|
4679
|
+
};
|
|
4680
|
+
slug: unknown;
|
|
4681
|
+
props?: {
|
|
4682
|
+
set: Record<string, unknown>;
|
|
4683
|
+
unset: string[];
|
|
4684
|
+
} | undefined;
|
|
4685
|
+
} | {
|
|
4686
|
+
op: "edge.update";
|
|
4687
|
+
edge: {
|
|
4688
|
+
source: string;
|
|
4689
|
+
target: string;
|
|
4690
|
+
class: string;
|
|
4691
|
+
};
|
|
4692
|
+
props: {
|
|
4693
|
+
set: Record<string, unknown>;
|
|
4694
|
+
unset: string[];
|
|
4695
|
+
};
|
|
4696
|
+
} | {
|
|
4697
|
+
op: "edge.delete";
|
|
4698
|
+
edge: {
|
|
4699
|
+
source: string;
|
|
4700
|
+
target: string;
|
|
4701
|
+
class: string;
|
|
4702
|
+
};
|
|
4703
|
+
})[];
|
|
4704
|
+
};
|
|
4705
|
+
expected?: {
|
|
4706
|
+
origin: string;
|
|
4707
|
+
revision: string;
|
|
4708
|
+
}[] | undefined;
|
|
4709
|
+
}, {
|
|
4710
|
+
readonly mode: 'value';
|
|
4711
|
+
readonly value: {
|
|
4712
|
+
createdNodes: Record<string, string>;
|
|
4713
|
+
};
|
|
4714
|
+
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4715
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"mutate"> & {
|
|
4716
|
+
readonly origin: "kernel.astrale.ai";
|
|
4717
|
+
};
|
|
4718
|
+
readonly key: "kernel.astrale.ai:function.mutate";
|
|
4719
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4720
|
+
ast: {
|
|
4721
|
+
format: "astrale.graph.query";
|
|
4722
|
+
version: "v6";
|
|
4723
|
+
source: {
|
|
4724
|
+
kind: "node";
|
|
4725
|
+
terms: ({
|
|
4726
|
+
kind: "path";
|
|
4727
|
+
path: string;
|
|
4728
|
+
} | {
|
|
4729
|
+
kind: "class";
|
|
4730
|
+
class: {
|
|
4731
|
+
origin: string;
|
|
4732
|
+
kind: "class";
|
|
4733
|
+
name: string;
|
|
4734
|
+
};
|
|
4735
|
+
})[];
|
|
4736
|
+
binding: string;
|
|
4737
|
+
} | {
|
|
4738
|
+
kind: "edge";
|
|
4739
|
+
terms: {
|
|
4740
|
+
kind: "class";
|
|
4741
|
+
class: {
|
|
4742
|
+
origin: string;
|
|
4743
|
+
kind: "class";
|
|
4744
|
+
name: string;
|
|
4745
|
+
};
|
|
4746
|
+
}[];
|
|
4747
|
+
bindings: {
|
|
4748
|
+
source: string;
|
|
4749
|
+
edge: string;
|
|
4750
|
+
target: string;
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
4753
|
+
steps: ({
|
|
4754
|
+
op: "filter";
|
|
4755
|
+
binding: string;
|
|
4756
|
+
predicate: {
|
|
4757
|
+
kind: "class.satisfies";
|
|
4758
|
+
class: {
|
|
4759
|
+
origin: string;
|
|
4760
|
+
kind: "class";
|
|
4761
|
+
name: string;
|
|
4762
|
+
};
|
|
4763
|
+
} | {
|
|
4764
|
+
kind: "class.equal";
|
|
4765
|
+
class: {
|
|
4766
|
+
origin: string;
|
|
4767
|
+
kind: "class";
|
|
4768
|
+
name: string;
|
|
4769
|
+
};
|
|
4770
|
+
} | {
|
|
4771
|
+
kind: "property.equal";
|
|
4772
|
+
property: string;
|
|
4773
|
+
value: unknown;
|
|
4774
|
+
} | {
|
|
4775
|
+
kind: "property.present";
|
|
4776
|
+
property: string;
|
|
4777
|
+
} | {
|
|
4778
|
+
kind: "identity.equal";
|
|
4779
|
+
identity: string | {
|
|
4780
|
+
source: string;
|
|
4781
|
+
target: string;
|
|
4782
|
+
class: string;
|
|
4783
|
+
};
|
|
4784
|
+
};
|
|
4785
|
+
} | {
|
|
4786
|
+
op: "expand";
|
|
4787
|
+
from: string;
|
|
4788
|
+
via: {
|
|
4789
|
+
origin: string;
|
|
4790
|
+
kind: "class";
|
|
4791
|
+
name: string;
|
|
4792
|
+
}[];
|
|
4793
|
+
direction: "incident" | "incoming" | "outgoing";
|
|
4794
|
+
bindings: {
|
|
4795
|
+
edge: string;
|
|
4796
|
+
node: string;
|
|
4907
4797
|
};
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4798
|
+
})[];
|
|
4799
|
+
select: {
|
|
4800
|
+
kind: "graph";
|
|
4801
|
+
binding: string;
|
|
4802
|
+
order?: {
|
|
4803
|
+
property: string;
|
|
4804
|
+
direction: "asc" | "desc";
|
|
4805
|
+
unranked: "first" | "last";
|
|
4912
4806
|
} | undefined;
|
|
4913
4807
|
} | {
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
class: string;
|
|
4919
|
-
};
|
|
4920
|
-
props: {
|
|
4921
|
-
set: Record<string, unknown>;
|
|
4922
|
-
unset: string[];
|
|
4808
|
+
kind: "nodes";
|
|
4809
|
+
binding: string;
|
|
4810
|
+
projection: {
|
|
4811
|
+
kind: "reference" | "value";
|
|
4923
4812
|
};
|
|
4813
|
+
order?: {
|
|
4814
|
+
property: string;
|
|
4815
|
+
direction: "asc" | "desc";
|
|
4816
|
+
unranked: "first" | "last";
|
|
4817
|
+
} | undefined;
|
|
4924
4818
|
} | {
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4819
|
+
kind: "edges";
|
|
4820
|
+
binding: string;
|
|
4821
|
+
projection: {
|
|
4822
|
+
edge: "reference" | "value";
|
|
4823
|
+
source: "reference" | "value";
|
|
4824
|
+
target: "reference" | "value";
|
|
4930
4825
|
};
|
|
4931
|
-
|
|
4826
|
+
order?: {
|
|
4827
|
+
property: string;
|
|
4828
|
+
direction: "asc" | "desc";
|
|
4829
|
+
unranked: "first" | "last";
|
|
4830
|
+
} | undefined;
|
|
4831
|
+
};
|
|
4932
4832
|
};
|
|
4933
4833
|
expected?: {
|
|
4934
4834
|
origin: string;
|
|
4935
4835
|
revision: string;
|
|
4936
4836
|
}[] | undefined;
|
|
4837
|
+
page: {
|
|
4838
|
+
size: number;
|
|
4839
|
+
after?: string | undefined;
|
|
4840
|
+
};
|
|
4937
4841
|
}, {
|
|
4938
4842
|
readonly mode: 'value';
|
|
4939
4843
|
readonly value: {
|
|
4940
|
-
|
|
4844
|
+
result: {
|
|
4845
|
+
kind: "graph";
|
|
4846
|
+
graph: {
|
|
4847
|
+
nodes: {
|
|
4848
|
+
id: string;
|
|
4849
|
+
class: string;
|
|
4850
|
+
props: Record<string, unknown>;
|
|
4851
|
+
}[];
|
|
4852
|
+
edges: {
|
|
4853
|
+
source: string;
|
|
4854
|
+
target: string;
|
|
4855
|
+
class: string;
|
|
4856
|
+
slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
|
|
4857
|
+
props: Record<string, unknown>;
|
|
4858
|
+
}[];
|
|
4859
|
+
};
|
|
4860
|
+
selection: {
|
|
4861
|
+
kind: "node";
|
|
4862
|
+
ids: string[];
|
|
4863
|
+
} | {
|
|
4864
|
+
kind: "edge";
|
|
4865
|
+
keys: {
|
|
4866
|
+
source: string;
|
|
4867
|
+
target: string;
|
|
4868
|
+
class: string;
|
|
4869
|
+
}[];
|
|
4870
|
+
};
|
|
4871
|
+
} | {
|
|
4872
|
+
kind: "nodes";
|
|
4873
|
+
nodes: ({
|
|
4874
|
+
kind: "reference";
|
|
4875
|
+
value: {
|
|
4876
|
+
id: string;
|
|
4877
|
+
class: string;
|
|
4878
|
+
};
|
|
4879
|
+
} | {
|
|
4880
|
+
kind: "value";
|
|
4881
|
+
value: {
|
|
4882
|
+
id: string;
|
|
4883
|
+
class: string;
|
|
4884
|
+
props: Record<string, unknown>;
|
|
4885
|
+
};
|
|
4886
|
+
})[];
|
|
4887
|
+
} | {
|
|
4888
|
+
kind: "edges";
|
|
4889
|
+
edges: {
|
|
4890
|
+
edge: {
|
|
4891
|
+
kind: "reference";
|
|
4892
|
+
value: {
|
|
4893
|
+
source: string;
|
|
4894
|
+
target: string;
|
|
4895
|
+
class: string;
|
|
4896
|
+
};
|
|
4897
|
+
} | {
|
|
4898
|
+
kind: "value";
|
|
4899
|
+
value: {
|
|
4900
|
+
source: string;
|
|
4901
|
+
target: string;
|
|
4902
|
+
class: string;
|
|
4903
|
+
slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
|
|
4904
|
+
props: Record<string, unknown>;
|
|
4905
|
+
};
|
|
4906
|
+
};
|
|
4907
|
+
source: {
|
|
4908
|
+
kind: "reference";
|
|
4909
|
+
value: {
|
|
4910
|
+
id: string;
|
|
4911
|
+
class: string;
|
|
4912
|
+
};
|
|
4913
|
+
} | {
|
|
4914
|
+
kind: "value";
|
|
4915
|
+
value: {
|
|
4916
|
+
id: string;
|
|
4917
|
+
class: string;
|
|
4918
|
+
props: Record<string, unknown>;
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
target: {
|
|
4922
|
+
kind: "reference";
|
|
4923
|
+
value: {
|
|
4924
|
+
id: string;
|
|
4925
|
+
class: string;
|
|
4926
|
+
};
|
|
4927
|
+
} | {
|
|
4928
|
+
kind: "value";
|
|
4929
|
+
value: {
|
|
4930
|
+
id: string;
|
|
4931
|
+
class: string;
|
|
4932
|
+
props: Record<string, unknown>;
|
|
4933
|
+
};
|
|
4934
|
+
};
|
|
4935
|
+
}[];
|
|
4936
|
+
};
|
|
4937
|
+
page: {
|
|
4938
|
+
next?: string | undefined;
|
|
4939
|
+
};
|
|
4941
4940
|
};
|
|
4942
4941
|
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4943
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"
|
|
4942
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
|
|
4944
4943
|
readonly origin: "kernel.astrale.ai";
|
|
4945
4944
|
};
|
|
4946
|
-
readonly key: "kernel.astrale.ai:function.
|
|
4945
|
+
readonly key: "kernel.astrale.ai:function.query";
|
|
4947
4946
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
size: number;
|
|
4954
|
-
};
|
|
4955
|
-
currentRevision?: string | null | undefined;
|
|
4947
|
+
idempotencyKey: string;
|
|
4948
|
+
identities: ({
|
|
4949
|
+
id: string;
|
|
4950
|
+
mode: "external";
|
|
4951
|
+
credential: string;
|
|
4956
4952
|
} | {
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
};
|
|
4962
|
-
revision?: string | undefined;
|
|
4963
|
-
currentRevision?: string | null | undefined;
|
|
4953
|
+
id: string;
|
|
4954
|
+
mode: "self";
|
|
4955
|
+
publicKey: unknown;
|
|
4956
|
+
credential: string;
|
|
4964
4957
|
})[];
|
|
4965
4958
|
}, {
|
|
4966
|
-
readonly mode: '
|
|
4959
|
+
readonly mode: 'value';
|
|
4960
|
+
readonly value: {
|
|
4961
|
+
identities: {
|
|
4962
|
+
id: string;
|
|
4963
|
+
iss: string;
|
|
4964
|
+
sub: string;
|
|
4965
|
+
}[];
|
|
4966
|
+
};
|
|
4967
4967
|
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
4968
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"
|
|
4968
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"register"> & {
|
|
4969
4969
|
readonly origin: "kernel.astrale.ai";
|
|
4970
4970
|
};
|
|
4971
|
-
readonly key: "kernel.astrale.ai:function.
|
|
4971
|
+
readonly key: "kernel.astrale.ai:function.register";
|
|
4972
4972
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
4973
4973
|
operation: string;
|
|
4974
4974
|
domains: string[];
|
|
@@ -5014,31 +5014,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
5014
5014
|
readonly origin: "kernel.astrale.ai";
|
|
5015
5015
|
};
|
|
5016
5016
|
readonly key: "kernel.astrale.ai:function.uninstall";
|
|
5017
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
5018
|
-
iss: string;
|
|
5019
|
-
sub: string;
|
|
5020
|
-
}, {
|
|
5021
|
-
readonly mode: 'value';
|
|
5022
|
-
readonly value: {
|
|
5023
|
-
id: string;
|
|
5024
|
-
iss: string;
|
|
5025
|
-
sub: string;
|
|
5026
|
-
frozen: boolean;
|
|
5027
|
-
requiredClaims: ({
|
|
5028
|
-
claim: string;
|
|
5029
|
-
op: "contains";
|
|
5030
|
-
value: unknown;
|
|
5031
|
-
} | {
|
|
5032
|
-
claim: string;
|
|
5033
|
-
op: "eq";
|
|
5034
|
-
value: unknown;
|
|
5035
|
-
} | {
|
|
5036
|
-
claim: string;
|
|
5037
|
-
op: "exists";
|
|
5038
|
-
})[];
|
|
5039
|
-
} | null;
|
|
5040
|
-
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
5041
|
-
readonly name: "whois";
|
|
5042
5017
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
5043
5018
|
target: string;
|
|
5044
5019
|
}, {
|
|
@@ -5073,6 +5048,33 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
5073
5048
|
};
|
|
5074
5049
|
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.View.method.resolve"> & {
|
|
5075
5050
|
readonly name: "resolve";
|
|
5051
|
+
readonly executable: true;
|
|
5052
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
5053
|
+
iss: string;
|
|
5054
|
+
sub: string;
|
|
5055
|
+
}, {
|
|
5056
|
+
readonly mode: 'value';
|
|
5057
|
+
readonly value: {
|
|
5058
|
+
id: string;
|
|
5059
|
+
iss: string;
|
|
5060
|
+
sub: string;
|
|
5061
|
+
frozen: boolean;
|
|
5062
|
+
requiredClaims: ({
|
|
5063
|
+
claim: string;
|
|
5064
|
+
op: "contains";
|
|
5065
|
+
value: unknown;
|
|
5066
|
+
} | {
|
|
5067
|
+
claim: string;
|
|
5068
|
+
op: "eq";
|
|
5069
|
+
value: unknown;
|
|
5070
|
+
} | {
|
|
5071
|
+
claim: string;
|
|
5072
|
+
op: "exists";
|
|
5073
|
+
})[];
|
|
5074
|
+
} | null;
|
|
5075
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
5076
|
+
readonly name: "whois";
|
|
5077
|
+
readonly executable: true;
|
|
5076
5078
|
}))[];
|
|
5077
5079
|
export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
|
|
5078
5080
|
export type { AuthorityOperation, AuthorityRelation } from '../authority/index.js';
|
|
@@ -18,6 +18,7 @@ declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
|
18
18
|
};
|
|
19
19
|
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Function.method.admit"> & {
|
|
20
20
|
readonly name: "admit";
|
|
21
|
+
readonly executable: true;
|
|
21
22
|
};
|
|
22
23
|
export declare const admit: MethodSyscall<ClassRef<'Function'> & {
|
|
23
24
|
readonly origin: 'kernel.astrale.ai';
|
|
@@ -12,6 +12,7 @@ export declare const delegate: import("./model.js").MethodSyscall<Readonly<{
|
|
|
12
12
|
readonly value: string;
|
|
13
13
|
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.delegate"> & {
|
|
14
14
|
readonly name: "delegate";
|
|
15
|
+
readonly executable: true;
|
|
15
16
|
}>;
|
|
16
17
|
export declare const can: import("./model.js").MethodSyscall<Readonly<{
|
|
17
18
|
origin: 'kernel.astrale.ai';
|
|
@@ -27,6 +28,7 @@ export declare const can: import("./model.js").MethodSyscall<Readonly<{
|
|
|
27
28
|
};
|
|
28
29
|
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.can"> & {
|
|
29
30
|
readonly name: "can";
|
|
31
|
+
readonly executable: true;
|
|
30
32
|
}>;
|
|
31
33
|
export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
|
|
32
34
|
origin: 'kernel.astrale.ai';
|
|
@@ -54,6 +56,7 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
|
|
|
54
56
|
};
|
|
55
57
|
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whoami"> & {
|
|
56
58
|
readonly name: "whoami";
|
|
59
|
+
readonly executable: true;
|
|
57
60
|
}>;
|
|
58
61
|
export declare const whois: import("./model.js").MethodSyscall<Readonly<{
|
|
59
62
|
origin: 'kernel.astrale.ai';
|
|
@@ -84,6 +87,7 @@ export declare const whois: import("./model.js").MethodSyscall<Readonly<{
|
|
|
84
87
|
} | null;
|
|
85
88
|
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
86
89
|
readonly name: "whois";
|
|
90
|
+
readonly executable: true;
|
|
87
91
|
}>;
|
|
88
92
|
export declare const mint: import("./model.js").MethodSyscall<Readonly<{
|
|
89
93
|
origin: 'kernel.astrale.ai';
|
|
@@ -98,4 +102,5 @@ export declare const mint: import("./model.js").MethodSyscall<Readonly<{
|
|
|
98
102
|
readonly value: string;
|
|
99
103
|
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
|
|
100
104
|
readonly name: "mint";
|
|
105
|
+
readonly executable: true;
|
|
101
106
|
}>;
|
|
@@ -37,6 +37,7 @@ export declare const resolve: import("./model.js").MethodSyscall<Readonly<{
|
|
|
37
37
|
};
|
|
38
38
|
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.View.method.resolve"> & {
|
|
39
39
|
readonly name: "resolve";
|
|
40
|
+
readonly executable: true;
|
|
40
41
|
}>;
|
|
41
42
|
export type { ResolvedView, ViewResolution as Resolution };
|
|
42
43
|
export declare const acceptResolution: typeof acceptViewResolution;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-core",
|
|
3
|
-
"version": "0.9.0-beta.
|
|
3
|
+
"version": "0.9.0-beta.45",
|
|
4
4
|
"description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"access": "public"
|
|
161
161
|
},
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
163
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.33",
|
|
164
164
|
"@noble/hashes": "2.3.0",
|
|
165
165
|
"@types/json-schema": "^7.0.15",
|
|
166
166
|
"dequal": "2.0.3"
|