@astrale-os/sdk 0.6.0-beta.66 → 0.6.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.
@@ -57,6 +57,14 @@ type Slugged = {
57
57
  export type EdgeValues<S, E> = E extends unknown ? {
58
58
  readonly $class: ClassOf<S, E>;
59
59
  } & Slugged & ValuesOf<S, E, never> : never;
60
+ /**
61
+ * Both ends of an Edge, which `$edge` names on a relation that follows one Edge or more
62
+ * (`.reachable()`): its Edge leaves a Node its walk passed through, not the row's parent.
63
+ */
64
+ export type EdgeEnds = {
65
+ readonly $source: NodeId;
66
+ readonly $target: NodeId;
67
+ };
60
68
  /** An Edge the reader may not read: its slug, which traversal discloses, and the names withheld. */
61
69
  type UnreadEdge<S, E> = Slugged & {
62
70
  readonly $withheld: readonly PropNamesOf<Cls<S, E>>[];
@@ -231,11 +231,18 @@ type Where<D extends Domain> = D extends Domain ? {
231
231
  readonly op: 'source' | 'target';
232
232
  readonly operand: Where<D>;
233
233
  } : never;
234
- /** The Edges of `via` followed in `direction`, and the Node they reach. */
234
+ /**
235
+ * The Edges of `via` followed in `direction`, and the Node they reach. With `reachable` it follows
236
+ * one Edge or more: `through` holds on every Node a walk passes through, `edge` on every Edge
237
+ * followed and `node` on every Node reached. Followed `incident`, it is `distinct`.
238
+ */
235
239
  type Traversal<D extends Domain> = D extends Domain ? {
236
240
  readonly via: NonEmpty<EdgeKeys<D>>;
237
241
  readonly direction: TraversalDirection;
238
242
  readonly distinct?: boolean;
243
+ readonly reachable?: {
244
+ readonly through?: Where<D>;
245
+ };
239
246
  readonly as?: string;
240
247
  readonly edge?: Where<D>;
241
248
  readonly node?: Where<D>;
@@ -1,2 +1,2 @@
1
- /** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.41, reduced to its Classes. Regenerate with pnpm sync:kernel-schema. */
1
+ /** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.42, reduced to its Classes. Regenerate with pnpm sync:kernel-schema. */
2
2
  export declare const kernelCompiledSchema: string;