@almadar/core 10.101.0 → 10.102.0
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/builders.d.ts +2 -2
- package/dist/builders.js +1 -0
- package/dist/builders.js.map +1 -1
- package/dist/{bus-B8evi8AZ.d.ts → bus-BS4TMOJW.d.ts} +16 -1
- package/dist/{entityAccess-DdcKps16.d.ts → entityAccess-D2OpLCyX.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory-runtime/index.d.ts +2 -2
- package/dist/factory-runtime/index.js +9 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +1 -1
- package/dist/fixtures.js +8 -0
- package/dist/fixtures.js.map +1 -1
- package/dist/{index-1b2JJVYl.d.ts → index-CyfcxG5N.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +3 -3
- package/dist/{schema-TqLV2wlK.d.ts → schema-COf9yTjs.d.ts} +1 -1
- package/dist/{trait-YlNXc4H3.d.ts → trait-Be3xF0px.d.ts} +28 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +22 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-Ug92oza4.d.ts → types-CYOzs4As.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -566,6 +566,21 @@ interface OrbitalEventResponse {
|
|
|
566
566
|
declare const OrbitalEventRequestSchema: z.ZodType<OrbitalEventRequest, z.ZodTypeDef, object>;
|
|
567
567
|
/** Zod twin of `OrbitalEventResponse`. Third type param `object`, see `BusEventSourceSchema`. */
|
|
568
568
|
declare const OrbitalEventResponseSchema: z.ZodType<OrbitalEventResponse, z.ZodTypeDef, object>;
|
|
569
|
+
/**
|
|
570
|
+
* Where circuit state lives between events (`docs/Almadar_Runtime_Stateless_Stateful_PLAN.md` §1a):
|
|
571
|
+
* `'stateless'` = the client carries it on every request, `'stateful'` = the server holds it.
|
|
572
|
+
*/
|
|
573
|
+
type ServerTopology = 'stateless' | 'stateful';
|
|
574
|
+
declare const ServerTopologySchema: z.ZodEnum<["stateless", "stateful"]>;
|
|
575
|
+
/** `POST /register` response. `topology` absent = a server that predates the declaration. */
|
|
576
|
+
interface OrbitalRegisterResponse {
|
|
577
|
+
success: boolean;
|
|
578
|
+
topology?: ServerTopology;
|
|
579
|
+
message?: string;
|
|
580
|
+
orbitals?: string[];
|
|
581
|
+
error?: string;
|
|
582
|
+
}
|
|
583
|
+
declare const OrbitalRegisterResponseSchema: z.ZodType<OrbitalRegisterResponse, z.ZodTypeDef, object>;
|
|
569
584
|
/**
|
|
570
585
|
* One persist-envelope success emit, handed to the live-broadcast sink
|
|
571
586
|
* (`OrbitalServerRuntime.setLiveBroadcastSink`) and relayed to every OTHER
|
|
@@ -594,4 +609,4 @@ type EventDispatchResponse = OrbitalEventResponse;
|
|
|
594
609
|
/** @deprecated use {@link OrbitalEventResponseSchema}. */
|
|
595
610
|
declare const EventDispatchResponseSchema: z.ZodType<OrbitalEventResponse, z.ZodTypeDef, object>;
|
|
596
611
|
|
|
597
|
-
export { ANONYMOUS_USER as A, type BusEvent as B, type ClientEffectTuple as C, DEFAULT_VIEWER as D, type EmittedEvent as E,
|
|
612
|
+
export { ANONYMOUS_USER as A, type BusEvent as B, type ClientEffectTuple as C, DEFAULT_VIEWER as D, type EmittedEvent as E, ServerBatchSummarySchema as F, type ServerEffectResult as G, ServerEffectResultSchema as H, type ServerTopology as I, ServerTopologySchema as J, type TransitionRejectionCode as K, type LiveBroadcastItem as L, type Unsubscribe as M, decodeDevIdentityToken as N, type OrbitalEventRequest as O, encodeDevIdentityToken as P, findPersonaInRoster as Q, type RawUserClaims as R, type ServerBatchSummary as S, type TransitionRejection as T, type UserContext as U, normalizeUserContext as V, personaFromIdentityRow as W, resolveDefaultViewer as X, resolvePersonaSpec as Y, type OrbitalEventResponse as a, type BusEventListener as b, type BusEventSource as c, BusEventSourceSchema as d, ClientEffectTupleSchema as e, type ClientNavigateBackTuple as f, ClientNavigateBackTupleSchema as g, type ClientNavigateTuple as h, ClientNavigateTupleSchema as i, type ClientRenderUITuple as j, ClientRenderUITupleSchema as k, DEV_TOKEN_PREFIX as l, EmittedEventSchema as m, type EventDispatchRequest as n, EventDispatchRequestSchema as o, type EventDispatchResponse as p, EventDispatchResponseSchema as q, type EventEmit as r, type EventKey as s, type EventListen as t, LiveBroadcastItemSchema as u, OrbitalEventRequestSchema as v, OrbitalEventResponseSchema as w, type OrbitalRegisterResponse as x, OrbitalRegisterResponseSchema as y, RawUserClaimsSchema as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as OrbitalEntity } from './effect-Hm_QDaSI.js';
|
|
2
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-
|
|
2
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-COf9yTjs.js';
|
|
3
3
|
import { S as SExpr } from './expression-DRwzVnMu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-
|
|
1
|
+
import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-CYOzs4As.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-CYOzs4As.js';
|
|
3
3
|
import { a as EntityPersistence, E as EntityField } from '../effect-Hm_QDaSI.js';
|
|
4
|
-
import { a as TraitReference } from '../trait-
|
|
4
|
+
import { a as TraitReference } from '../trait-Be3xF0px.js';
|
|
5
5
|
export { J as JsonValue } from '../json-D8gmyK3l.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../expression-DRwzVnMu.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-COf9yTjs.js';
|
|
2
|
+
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-Be3xF0px.js';
|
|
3
3
|
import { E as EntityField, a as EntityPersistence } from '../effect-Hm_QDaSI.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../json-D8gmyK3l.js';
|
|
@@ -900,6 +900,7 @@ var EffectUseSchema = z.object({
|
|
|
900
900
|
site: EffectSiteSchema.optional()
|
|
901
901
|
});
|
|
902
902
|
var EffectRowSchema = z.array(EffectUseSchema);
|
|
903
|
+
z.enum(["persistedAwaited", "hybridClientOnly", "runtimeOptimistic"]);
|
|
903
904
|
var SourceBehaviorMetadataSchema = z.object({
|
|
904
905
|
behavior: z.string().min(1),
|
|
905
906
|
alias: z.string().min(1),
|
|
@@ -1801,6 +1802,14 @@ z.object({
|
|
|
1801
1802
|
cascadeTruncated: z.array(z.string()).optional(),
|
|
1802
1803
|
error: z.string().optional()
|
|
1803
1804
|
});
|
|
1805
|
+
var ServerTopologySchema = z.enum(["stateless", "stateful"]);
|
|
1806
|
+
z.object({
|
|
1807
|
+
success: z.boolean(),
|
|
1808
|
+
topology: ServerTopologySchema.optional(),
|
|
1809
|
+
message: z.string().optional(),
|
|
1810
|
+
orbitals: z.array(z.string()).optional(),
|
|
1811
|
+
error: z.string().optional()
|
|
1812
|
+
});
|
|
1804
1813
|
z.object({
|
|
1805
1814
|
event: z.string(),
|
|
1806
1815
|
payload: EventPayloadSchema.optional(),
|