@astrale-os/kernel-core 0.9.0-beta.30 → 0.9.0-beta.31

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.
@@ -5622,6 +5622,41 @@ export declare const AuthorityRelations: Readonly<{
5622
5622
  }>;
5623
5623
  /** Exact authorized Kernel Functions for which pristine Root receives direct can_use authority. */
5624
5624
  export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5625
+ operation: string;
5626
+ domains: ({
5627
+ artifact: {
5628
+ digest: string;
5629
+ mediaType: string;
5630
+ size: number;
5631
+ };
5632
+ currentRevision?: string | null | undefined;
5633
+ } | {
5634
+ publication: {
5635
+ url: string;
5636
+ token?: string | undefined;
5637
+ etag?: string | undefined;
5638
+ };
5639
+ revision?: string | undefined;
5640
+ currentRevision?: string | null | undefined;
5641
+ })[];
5642
+ }, {
5643
+ readonly mode: 'binary';
5644
+ }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5645
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
5646
+ readonly origin: "kernel.astrale.ai";
5647
+ };
5648
+ readonly key: "kernel.astrale.ai:function.install";
5649
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5650
+ kind: "bundle" | "inspect";
5651
+ origin: string;
5652
+ }, {
5653
+ readonly mode: 'binary';
5654
+ }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5655
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
5656
+ readonly origin: "kernel.astrale.ai";
5657
+ };
5658
+ readonly key: "kernel.astrale.ai:function.introspect";
5659
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5625
5660
  invocation?: {
5626
5661
  source: string;
5627
5662
  id: string;
@@ -5653,233 +5688,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
5653
5688
  readonly origin: "kernel.astrale.ai";
5654
5689
  };
5655
5690
  readonly key: "kernel.astrale.ai:function.journal";
5656
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5657
- ast: {
5658
- format: "astrale.graph.query";
5659
- version: "v6";
5660
- source: {
5661
- kind: "node";
5662
- terms: ({
5663
- kind: "path";
5664
- path: string;
5665
- } | {
5666
- kind: "class";
5667
- class: {
5668
- origin: string;
5669
- kind: "class";
5670
- name: string;
5671
- };
5672
- })[];
5673
- binding: string;
5674
- } | {
5675
- kind: "edge";
5676
- terms: {
5677
- kind: "class";
5678
- class: {
5679
- origin: string;
5680
- kind: "class";
5681
- name: string;
5682
- };
5683
- }[];
5684
- bindings: {
5685
- source: string;
5686
- edge: string;
5687
- target: string;
5688
- };
5689
- };
5690
- steps: ({
5691
- op: "filter";
5692
- binding: string;
5693
- predicate: {
5694
- kind: "class.satisfies";
5695
- class: {
5696
- origin: string;
5697
- kind: "class";
5698
- name: string;
5699
- };
5700
- } | {
5701
- kind: "class.equal";
5702
- class: {
5703
- origin: string;
5704
- kind: "class";
5705
- name: string;
5706
- };
5707
- } | {
5708
- kind: "property.equal";
5709
- property: string;
5710
- value: unknown;
5711
- } | {
5712
- kind: "property.present";
5713
- property: string;
5714
- } | {
5715
- kind: "identity.equal";
5716
- identity: string | {
5717
- source: string;
5718
- target: string;
5719
- class: string;
5720
- };
5721
- };
5722
- } | {
5723
- op: "expand";
5724
- from: string;
5725
- via: {
5726
- origin: string;
5727
- kind: "class";
5728
- name: string;
5729
- }[];
5730
- direction: "incident" | "incoming" | "outgoing";
5731
- bindings: {
5732
- edge: string;
5733
- node: string;
5734
- };
5735
- })[];
5736
- select: {
5737
- kind: "graph";
5738
- binding: string;
5739
- order?: {
5740
- property: string;
5741
- direction: "asc" | "desc";
5742
- unranked: "first" | "last";
5743
- } | undefined;
5744
- } | {
5745
- kind: "nodes";
5746
- binding: string;
5747
- projection: {
5748
- kind: "reference" | "value";
5749
- };
5750
- order?: {
5751
- property: string;
5752
- direction: "asc" | "desc";
5753
- unranked: "first" | "last";
5754
- } | undefined;
5755
- } | {
5756
- kind: "edges";
5757
- binding: string;
5758
- projection: {
5759
- edge: "reference" | "value";
5760
- source: "reference" | "value";
5761
- target: "reference" | "value";
5762
- };
5763
- order?: {
5764
- property: string;
5765
- direction: "asc" | "desc";
5766
- unranked: "first" | "last";
5767
- } | undefined;
5768
- };
5769
- };
5770
- expected?: {
5771
- origin: string;
5772
- revision: string;
5773
- }[] | undefined;
5774
- page: {
5775
- size: number;
5776
- after?: string | undefined;
5777
- };
5778
- }, {
5779
- readonly mode: 'value';
5780
- readonly value: {
5781
- result: {
5782
- kind: "graph";
5783
- graph: {
5784
- nodes: {
5785
- id: string;
5786
- class: string;
5787
- props: Record<string, unknown>;
5788
- }[];
5789
- edges: {
5790
- source: string;
5791
- target: string;
5792
- class: string;
5793
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5794
- props: Record<string, unknown>;
5795
- }[];
5796
- };
5797
- selection: {
5798
- kind: "node";
5799
- ids: string[];
5800
- } | {
5801
- kind: "edge";
5802
- keys: {
5803
- source: string;
5804
- target: string;
5805
- class: string;
5806
- }[];
5807
- };
5808
- } | {
5809
- kind: "nodes";
5810
- nodes: ({
5811
- kind: "reference";
5812
- value: {
5813
- id: string;
5814
- class: string;
5815
- };
5816
- } | {
5817
- kind: "value";
5818
- value: {
5819
- id: string;
5820
- class: string;
5821
- props: Record<string, unknown>;
5822
- };
5823
- })[];
5824
- } | {
5825
- kind: "edges";
5826
- edges: {
5827
- edge: {
5828
- kind: "reference";
5829
- value: {
5830
- source: string;
5831
- target: string;
5832
- class: string;
5833
- };
5834
- } | {
5835
- kind: "value";
5836
- value: {
5837
- source: string;
5838
- target: string;
5839
- class: string;
5840
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5841
- props: Record<string, unknown>;
5842
- };
5843
- };
5844
- source: {
5845
- kind: "reference";
5846
- value: {
5847
- id: string;
5848
- class: string;
5849
- };
5850
- } | {
5851
- kind: "value";
5852
- value: {
5853
- id: string;
5854
- class: string;
5855
- props: Record<string, unknown>;
5856
- };
5857
- };
5858
- target: {
5859
- kind: "reference";
5860
- value: {
5861
- id: string;
5862
- class: string;
5863
- };
5864
- } | {
5865
- kind: "value";
5866
- value: {
5867
- id: string;
5868
- class: string;
5869
- props: Record<string, unknown>;
5870
- };
5871
- };
5872
- }[];
5873
- };
5874
- page: {
5875
- next?: string | undefined;
5876
- };
5877
- };
5878
- }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5879
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
5880
- readonly origin: "kernel.astrale.ai";
5881
- };
5882
- readonly key: "kernel.astrale.ai:function.query";
5883
5691
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5884
5692
  ast: {
5885
5693
  format: "astrale.graph.mutation";
@@ -6337,86 +6145,278 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6337
6145
  publicKey: unknown;
6338
6146
  proof: string;
6339
6147
  };
6340
- } | undefined;
6341
- requiredClaims?: ({
6342
- claim: string;
6343
- op: "contains";
6344
- value: unknown;
6345
- } | {
6346
- claim: string;
6347
- op: "eq";
6348
- value: unknown;
6148
+ } | undefined;
6149
+ requiredClaims?: ({
6150
+ claim: string;
6151
+ op: "contains";
6152
+ value: unknown;
6153
+ } | {
6154
+ claim: string;
6155
+ op: "eq";
6156
+ value: unknown;
6157
+ } | {
6158
+ claim: string;
6159
+ op: "exists";
6160
+ })[] | undefined;
6161
+ } | {
6162
+ identity: {
6163
+ id: string;
6164
+ class: string;
6165
+ };
6166
+ authentication: {
6167
+ iss: string;
6168
+ sub: string;
6169
+ } | {
6170
+ credentials: {
6171
+ publicKey: unknown;
6172
+ proof: string;
6173
+ };
6174
+ };
6175
+ })[];
6176
+ }, {
6177
+ readonly mode: 'value';
6178
+ readonly value: {
6179
+ createdNodes: Record<string, string>;
6180
+ identities: ({
6181
+ id: string;
6182
+ } | {
6183
+ id: string;
6184
+ iss: string;
6185
+ sub: string;
6186
+ })[];
6187
+ };
6188
+ }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6189
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"provision"> & {
6190
+ readonly origin: "kernel.astrale.ai";
6191
+ };
6192
+ readonly key: "kernel.astrale.ai:function.provision";
6193
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6194
+ ast: {
6195
+ format: "astrale.graph.query";
6196
+ version: "v6";
6197
+ source: {
6198
+ kind: "node";
6199
+ terms: ({
6200
+ kind: "path";
6201
+ path: string;
6202
+ } | {
6203
+ kind: "class";
6204
+ class: {
6205
+ origin: string;
6206
+ kind: "class";
6207
+ name: string;
6208
+ };
6209
+ })[];
6210
+ binding: string;
6211
+ } | {
6212
+ kind: "edge";
6213
+ terms: {
6214
+ kind: "class";
6215
+ class: {
6216
+ origin: string;
6217
+ kind: "class";
6218
+ name: string;
6219
+ };
6220
+ }[];
6221
+ bindings: {
6222
+ source: string;
6223
+ edge: string;
6224
+ target: string;
6225
+ };
6226
+ };
6227
+ steps: ({
6228
+ op: "filter";
6229
+ binding: string;
6230
+ predicate: {
6231
+ kind: "class.satisfies";
6232
+ class: {
6233
+ origin: string;
6234
+ kind: "class";
6235
+ name: string;
6236
+ };
6237
+ } | {
6238
+ kind: "class.equal";
6239
+ class: {
6240
+ origin: string;
6241
+ kind: "class";
6242
+ name: string;
6243
+ };
6244
+ } | {
6245
+ kind: "property.equal";
6246
+ property: string;
6247
+ value: unknown;
6248
+ } | {
6249
+ kind: "property.present";
6250
+ property: string;
6251
+ } | {
6252
+ kind: "identity.equal";
6253
+ identity: string | {
6254
+ source: string;
6255
+ target: string;
6256
+ class: string;
6257
+ };
6258
+ };
6259
+ } | {
6260
+ op: "expand";
6261
+ from: string;
6262
+ via: {
6263
+ origin: string;
6264
+ kind: "class";
6265
+ name: string;
6266
+ }[];
6267
+ direction: "incident" | "incoming" | "outgoing";
6268
+ bindings: {
6269
+ edge: string;
6270
+ node: string;
6271
+ };
6272
+ })[];
6273
+ select: {
6274
+ kind: "graph";
6275
+ binding: string;
6276
+ order?: {
6277
+ property: string;
6278
+ direction: "asc" | "desc";
6279
+ unranked: "first" | "last";
6280
+ } | undefined;
6349
6281
  } | {
6350
- claim: string;
6351
- op: "exists";
6352
- })[] | undefined;
6353
- } | {
6354
- identity: {
6355
- id: string;
6356
- class: string;
6357
- };
6358
- authentication: {
6359
- iss: string;
6360
- sub: string;
6282
+ kind: "nodes";
6283
+ binding: string;
6284
+ projection: {
6285
+ kind: "reference" | "value";
6286
+ };
6287
+ order?: {
6288
+ property: string;
6289
+ direction: "asc" | "desc";
6290
+ unranked: "first" | "last";
6291
+ } | undefined;
6361
6292
  } | {
6362
- credentials: {
6363
- publicKey: unknown;
6364
- proof: string;
6293
+ kind: "edges";
6294
+ binding: string;
6295
+ projection: {
6296
+ edge: "reference" | "value";
6297
+ source: "reference" | "value";
6298
+ target: "reference" | "value";
6365
6299
  };
6300
+ order?: {
6301
+ property: string;
6302
+ direction: "asc" | "desc";
6303
+ unranked: "first" | "last";
6304
+ } | undefined;
6366
6305
  };
6367
- })[];
6306
+ };
6307
+ expected?: {
6308
+ origin: string;
6309
+ revision: string;
6310
+ }[] | undefined;
6311
+ page: {
6312
+ size: number;
6313
+ after?: string | undefined;
6314
+ };
6368
6315
  }, {
6369
6316
  readonly mode: 'value';
6370
6317
  readonly value: {
6371
- createdNodes: Record<string, string>;
6372
- identities: ({
6373
- id: string;
6318
+ result: {
6319
+ kind: "graph";
6320
+ graph: {
6321
+ nodes: {
6322
+ id: string;
6323
+ class: string;
6324
+ props: Record<string, unknown>;
6325
+ }[];
6326
+ edges: {
6327
+ source: string;
6328
+ target: string;
6329
+ class: string;
6330
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6331
+ props: Record<string, unknown>;
6332
+ }[];
6333
+ };
6334
+ selection: {
6335
+ kind: "node";
6336
+ ids: string[];
6337
+ } | {
6338
+ kind: "edge";
6339
+ keys: {
6340
+ source: string;
6341
+ target: string;
6342
+ class: string;
6343
+ }[];
6344
+ };
6374
6345
  } | {
6375
- id: string;
6376
- iss: string;
6377
- sub: string;
6378
- })[];
6379
- };
6380
- }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6381
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"provision"> & {
6382
- readonly origin: "kernel.astrale.ai";
6383
- };
6384
- readonly key: "kernel.astrale.ai:function.provision";
6385
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6386
- operation: string;
6387
- domains: ({
6388
- artifact: {
6389
- digest: string;
6390
- mediaType: string;
6391
- size: number;
6346
+ kind: "nodes";
6347
+ nodes: ({
6348
+ kind: "reference";
6349
+ value: {
6350
+ id: string;
6351
+ class: string;
6352
+ };
6353
+ } | {
6354
+ kind: "value";
6355
+ value: {
6356
+ id: string;
6357
+ class: string;
6358
+ props: Record<string, unknown>;
6359
+ };
6360
+ })[];
6361
+ } | {
6362
+ kind: "edges";
6363
+ edges: {
6364
+ edge: {
6365
+ kind: "reference";
6366
+ value: {
6367
+ source: string;
6368
+ target: string;
6369
+ class: string;
6370
+ };
6371
+ } | {
6372
+ kind: "value";
6373
+ value: {
6374
+ source: string;
6375
+ target: string;
6376
+ class: string;
6377
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6378
+ props: Record<string, unknown>;
6379
+ };
6380
+ };
6381
+ source: {
6382
+ kind: "reference";
6383
+ value: {
6384
+ id: string;
6385
+ class: string;
6386
+ };
6387
+ } | {
6388
+ kind: "value";
6389
+ value: {
6390
+ id: string;
6391
+ class: string;
6392
+ props: Record<string, unknown>;
6393
+ };
6394
+ };
6395
+ target: {
6396
+ kind: "reference";
6397
+ value: {
6398
+ id: string;
6399
+ class: string;
6400
+ };
6401
+ } | {
6402
+ kind: "value";
6403
+ value: {
6404
+ id: string;
6405
+ class: string;
6406
+ props: Record<string, unknown>;
6407
+ };
6408
+ };
6409
+ }[];
6392
6410
  };
6393
- currentRevision?: string | null | undefined;
6394
- } | {
6395
- publication: {
6396
- url: string;
6397
- token?: string | undefined;
6398
- etag?: string | undefined;
6411
+ page: {
6412
+ next?: string | undefined;
6399
6413
  };
6400
- revision?: string | undefined;
6401
- currentRevision?: string | null | undefined;
6402
- })[];
6403
- }, {
6404
- readonly mode: 'binary';
6405
- }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6406
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
6407
- readonly origin: "kernel.astrale.ai";
6408
6414
  };
6409
- readonly key: "kernel.astrale.ai:function.install";
6410
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6411
- kind: "bundle" | "inspect";
6412
- origin: string;
6413
- }, {
6414
- readonly mode: 'binary';
6415
- }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6416
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
6415
+ }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6416
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
6417
6417
  readonly origin: "kernel.astrale.ai";
6418
6418
  };
6419
- readonly key: "kernel.astrale.ai:function.introspect";
6419
+ readonly key: "kernel.astrale.ai:function.query";
6420
6420
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6421
6421
  operation: string;
6422
6422
  origin: string;
@@ -6468,31 +6468,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6468
6468
  readonly value: string;
6469
6469
  }, true, "default", "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.mint"> & {
6470
6470
  readonly name: "mint";
6471
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6472
- iss: string;
6473
- sub: string;
6474
- }, {
6475
- readonly mode: 'value';
6476
- readonly value: {
6477
- id: string;
6478
- iss: string;
6479
- sub: string;
6480
- frozen: boolean;
6481
- requiredClaims: ({
6482
- claim: string;
6483
- op: "contains";
6484
- value: unknown;
6485
- } | {
6486
- claim: string;
6487
- op: "eq";
6488
- value: unknown;
6489
- } | {
6490
- claim: string;
6491
- op: "exists";
6492
- })[];
6493
- } | null;
6494
- }, true, "default", "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"> & {
6495
- readonly name: "whois";
6496
6471
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6497
6472
  target: string;
6498
6473
  }, {
@@ -6527,6 +6502,31 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6527
6502
  };
6528
6503
  }, true, "sealed", "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"> & {
6529
6504
  readonly name: "resolve";
6505
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6506
+ iss: string;
6507
+ sub: string;
6508
+ }, {
6509
+ readonly mode: 'value';
6510
+ readonly value: {
6511
+ id: string;
6512
+ iss: string;
6513
+ sub: string;
6514
+ frozen: boolean;
6515
+ requiredClaims: ({
6516
+ claim: string;
6517
+ op: "contains";
6518
+ value: unknown;
6519
+ } | {
6520
+ claim: string;
6521
+ op: "eq";
6522
+ value: unknown;
6523
+ } | {
6524
+ claim: string;
6525
+ op: "exists";
6526
+ })[];
6527
+ } | null;
6528
+ }, true, "default", "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"> & {
6529
+ readonly name: "whois";
6530
6530
  }))[];
6531
6531
  export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
6532
6532
  export type { AuthorityOperation, AuthorityRelation } from '../authority/index.js';