@almadar/core 10.46.0 → 10.48.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 +3 -3
- package/dist/builders.js +7 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DomdqOGT.d.ts → effect-DiHGegt9.d.ts} +120 -17
- package/dist/entityAccess-OjD7XSBO.d.ts +33 -0
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +7 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +741 -6
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +6 -34
- package/dist/mock/index.js +7 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +6 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1482 -7
- package/dist/patterns/index.js +704 -5
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +696 -3
- package/dist/patterns/registry.json +696 -3
- package/dist/{schema-B2h0ZwN5.d.ts → schema-C0QwW3G2.d.ts} +866 -38
- package/dist/{trait-B1oP0din.d.ts → trait-pw49W-zL.d.ts} +121 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +8 -0
- package/dist/types/index.js.map +1 -1
- package/dist/{types-ijezwoxO.d.ts → types-1DvdNPye.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -71,12 +71,12 @@ declare const RestAuthConfigSchema: z.ZodObject<{
|
|
|
71
71
|
location: z.ZodOptional<z.ZodEnum<["query", "header"]>>;
|
|
72
72
|
secretEnv: z.ZodOptional<z.ZodString>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
type: "
|
|
74
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
75
75
|
keyName?: string | undefined;
|
|
76
76
|
location?: "header" | "query" | undefined;
|
|
77
77
|
secretEnv?: string | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
type: "
|
|
79
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
80
80
|
keyName?: string | undefined;
|
|
81
81
|
location?: "header" | "query" | undefined;
|
|
82
82
|
secretEnv?: string | undefined;
|
|
@@ -93,12 +93,12 @@ declare const RestServiceDefSchema: z.ZodObject<{
|
|
|
93
93
|
location: z.ZodOptional<z.ZodEnum<["query", "header"]>>;
|
|
94
94
|
secretEnv: z.ZodOptional<z.ZodString>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
type: "
|
|
96
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
97
97
|
keyName?: string | undefined;
|
|
98
98
|
location?: "header" | "query" | undefined;
|
|
99
99
|
secretEnv?: string | undefined;
|
|
100
100
|
}, {
|
|
101
|
-
type: "
|
|
101
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
102
102
|
keyName?: string | undefined;
|
|
103
103
|
location?: "header" | "query" | undefined;
|
|
104
104
|
secretEnv?: string | undefined;
|
|
@@ -110,7 +110,7 @@ declare const RestServiceDefSchema: z.ZodObject<{
|
|
|
110
110
|
baseUrl: string;
|
|
111
111
|
description?: string | undefined;
|
|
112
112
|
auth?: {
|
|
113
|
-
type: "
|
|
113
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
114
114
|
keyName?: string | undefined;
|
|
115
115
|
location?: "header" | "query" | undefined;
|
|
116
116
|
secretEnv?: string | undefined;
|
|
@@ -123,7 +123,7 @@ declare const RestServiceDefSchema: z.ZodObject<{
|
|
|
123
123
|
baseUrl: string;
|
|
124
124
|
description?: string | undefined;
|
|
125
125
|
auth?: {
|
|
126
|
-
type: "
|
|
126
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
127
127
|
keyName?: string | undefined;
|
|
128
128
|
location?: "header" | "query" | undefined;
|
|
129
129
|
secretEnv?: string | undefined;
|
|
@@ -309,12 +309,12 @@ declare const ServiceDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
309
309
|
location: z.ZodOptional<z.ZodEnum<["query", "header"]>>;
|
|
310
310
|
secretEnv: z.ZodOptional<z.ZodString>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
-
type: "
|
|
312
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
313
313
|
keyName?: string | undefined;
|
|
314
314
|
location?: "header" | "query" | undefined;
|
|
315
315
|
secretEnv?: string | undefined;
|
|
316
316
|
}, {
|
|
317
|
-
type: "
|
|
317
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
318
318
|
keyName?: string | undefined;
|
|
319
319
|
location?: "header" | "query" | undefined;
|
|
320
320
|
secretEnv?: string | undefined;
|
|
@@ -326,7 +326,7 @@ declare const ServiceDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
326
326
|
baseUrl: string;
|
|
327
327
|
description?: string | undefined;
|
|
328
328
|
auth?: {
|
|
329
|
-
type: "
|
|
329
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
330
330
|
keyName?: string | undefined;
|
|
331
331
|
location?: "header" | "query" | undefined;
|
|
332
332
|
secretEnv?: string | undefined;
|
|
@@ -339,7 +339,7 @@ declare const ServiceDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
339
339
|
baseUrl: string;
|
|
340
340
|
description?: string | undefined;
|
|
341
341
|
auth?: {
|
|
342
|
-
type: "
|
|
342
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
343
343
|
keyName?: string | undefined;
|
|
344
344
|
location?: "header" | "query" | undefined;
|
|
345
345
|
secretEnv?: string | undefined;
|
|
@@ -524,12 +524,12 @@ declare const ServiceRefSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
524
524
|
location: z.ZodOptional<z.ZodEnum<["query", "header"]>>;
|
|
525
525
|
secretEnv: z.ZodOptional<z.ZodString>;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
|
-
type: "
|
|
527
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
528
528
|
keyName?: string | undefined;
|
|
529
529
|
location?: "header" | "query" | undefined;
|
|
530
530
|
secretEnv?: string | undefined;
|
|
531
531
|
}, {
|
|
532
|
-
type: "
|
|
532
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
533
533
|
keyName?: string | undefined;
|
|
534
534
|
location?: "header" | "query" | undefined;
|
|
535
535
|
secretEnv?: string | undefined;
|
|
@@ -541,7 +541,7 @@ declare const ServiceRefSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
541
541
|
baseUrl: string;
|
|
542
542
|
description?: string | undefined;
|
|
543
543
|
auth?: {
|
|
544
|
-
type: "
|
|
544
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
545
545
|
keyName?: string | undefined;
|
|
546
546
|
location?: "header" | "query" | undefined;
|
|
547
547
|
secretEnv?: string | undefined;
|
|
@@ -554,7 +554,7 @@ declare const ServiceRefSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
554
554
|
baseUrl: string;
|
|
555
555
|
description?: string | undefined;
|
|
556
556
|
auth?: {
|
|
557
|
-
type: "
|
|
557
|
+
type: "basic" | "api-key" | "bearer" | "oauth2";
|
|
558
558
|
keyName?: string | undefined;
|
|
559
559
|
location?: "header" | "query" | undefined;
|
|
560
560
|
secretEnv?: string | undefined;
|
|
@@ -1970,6 +1970,22 @@ type OrbitalEntity = {
|
|
|
1970
1970
|
update_policy?: SExpr;
|
|
1971
1971
|
/** `@delete` — same binding shape as `@update`. */
|
|
1972
1972
|
delete_policy?: SExpr;
|
|
1973
|
+
/**
|
|
1974
|
+
* `@<op> none "<reason>"` — a directive's omission, DECLARED.
|
|
1975
|
+
*
|
|
1976
|
+
* Runtime behaviour is identical to leaving the directive out (an absent
|
|
1977
|
+
* policy is allow-all). It records that the author concluded no per-row
|
|
1978
|
+
* predicate can express the rule — usually because visibility depends on a
|
|
1979
|
+
* DIFFERENT entity, which a per-row predicate cannot join across. Without
|
|
1980
|
+
* it a lint must flag considered and forgotten omissions alike, and a lint
|
|
1981
|
+
* that flags correct code is one people learn to ignore.
|
|
1982
|
+
*/
|
|
1983
|
+
access_waivers?: {
|
|
1984
|
+
read?: string;
|
|
1985
|
+
create?: string;
|
|
1986
|
+
update?: string;
|
|
1987
|
+
delete?: string;
|
|
1988
|
+
};
|
|
1973
1989
|
/** Collection name (auto-derived if not provided for persistent entities) */
|
|
1974
1990
|
collection?: string;
|
|
1975
1991
|
/** Entity fields */
|
|
@@ -1996,6 +2012,22 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1996
2012
|
create_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
1997
2013
|
update_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
1998
2014
|
delete_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
2015
|
+
access_waivers: z.ZodOptional<z.ZodObject<{
|
|
2016
|
+
read: z.ZodOptional<z.ZodString>;
|
|
2017
|
+
create: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
update: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
delete: z.ZodOptional<z.ZodString>;
|
|
2020
|
+
}, "strip", z.ZodTypeAny, {
|
|
2021
|
+
read?: string | undefined;
|
|
2022
|
+
create?: string | undefined;
|
|
2023
|
+
update?: string | undefined;
|
|
2024
|
+
delete?: string | undefined;
|
|
2025
|
+
}, {
|
|
2026
|
+
read?: string | undefined;
|
|
2027
|
+
create?: string | undefined;
|
|
2028
|
+
update?: string | undefined;
|
|
2029
|
+
delete?: string | undefined;
|
|
2030
|
+
}>>;
|
|
1999
2031
|
collection: z.ZodOptional<z.ZodString>;
|
|
2000
2032
|
fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
|
|
2001
2033
|
instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>, "many">>;
|
|
@@ -2039,6 +2071,12 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
2039
2071
|
create_policy?: SExpr | undefined;
|
|
2040
2072
|
update_policy?: SExpr | undefined;
|
|
2041
2073
|
delete_policy?: SExpr | undefined;
|
|
2074
|
+
access_waivers?: {
|
|
2075
|
+
read?: string | undefined;
|
|
2076
|
+
create?: string | undefined;
|
|
2077
|
+
update?: string | undefined;
|
|
2078
|
+
delete?: string | undefined;
|
|
2079
|
+
} | undefined;
|
|
2042
2080
|
collection?: string | undefined;
|
|
2043
2081
|
instances?: Record<string, JsonValue>[] | undefined;
|
|
2044
2082
|
timestamps?: boolean | undefined;
|
|
@@ -2064,6 +2102,12 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
2064
2102
|
create_policy?: SExpr | undefined;
|
|
2065
2103
|
update_policy?: SExpr | undefined;
|
|
2066
2104
|
delete_policy?: SExpr | undefined;
|
|
2105
|
+
access_waivers?: {
|
|
2106
|
+
read?: string | undefined;
|
|
2107
|
+
create?: string | undefined;
|
|
2108
|
+
update?: string | undefined;
|
|
2109
|
+
delete?: string | undefined;
|
|
2110
|
+
} | undefined;
|
|
2067
2111
|
collection?: string | undefined;
|
|
2068
2112
|
instances?: Record<string, JsonValue>[] | undefined;
|
|
2069
2113
|
timestamps?: boolean | undefined;
|
|
@@ -2092,6 +2136,22 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2092
2136
|
create_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
2093
2137
|
update_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
2094
2138
|
delete_policy: z.ZodOptional<z.ZodType<SExpr, z.ZodTypeDef, SExpr>>;
|
|
2139
|
+
access_waivers: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
read: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
create: z.ZodOptional<z.ZodString>;
|
|
2142
|
+
update: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
delete: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
}, "strip", z.ZodTypeAny, {
|
|
2145
|
+
read?: string | undefined;
|
|
2146
|
+
create?: string | undefined;
|
|
2147
|
+
update?: string | undefined;
|
|
2148
|
+
delete?: string | undefined;
|
|
2149
|
+
}, {
|
|
2150
|
+
read?: string | undefined;
|
|
2151
|
+
create?: string | undefined;
|
|
2152
|
+
update?: string | undefined;
|
|
2153
|
+
delete?: string | undefined;
|
|
2154
|
+
}>>;
|
|
2095
2155
|
collection: z.ZodOptional<z.ZodString>;
|
|
2096
2156
|
fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
|
|
2097
2157
|
instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>, "many">>;
|
|
@@ -2135,6 +2195,12 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2135
2195
|
create_policy?: SExpr | undefined;
|
|
2136
2196
|
update_policy?: SExpr | undefined;
|
|
2137
2197
|
delete_policy?: SExpr | undefined;
|
|
2198
|
+
access_waivers?: {
|
|
2199
|
+
read?: string | undefined;
|
|
2200
|
+
create?: string | undefined;
|
|
2201
|
+
update?: string | undefined;
|
|
2202
|
+
delete?: string | undefined;
|
|
2203
|
+
} | undefined;
|
|
2138
2204
|
collection?: string | undefined;
|
|
2139
2205
|
instances?: Record<string, JsonValue>[] | undefined;
|
|
2140
2206
|
timestamps?: boolean | undefined;
|
|
@@ -2160,6 +2226,12 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2160
2226
|
create_policy?: SExpr | undefined;
|
|
2161
2227
|
update_policy?: SExpr | undefined;
|
|
2162
2228
|
delete_policy?: SExpr | undefined;
|
|
2229
|
+
access_waivers?: {
|
|
2230
|
+
read?: string | undefined;
|
|
2231
|
+
create?: string | undefined;
|
|
2232
|
+
update?: string | undefined;
|
|
2233
|
+
delete?: string | undefined;
|
|
2234
|
+
} | undefined;
|
|
2163
2235
|
collection?: string | undefined;
|
|
2164
2236
|
instances?: Record<string, JsonValue>[] | undefined;
|
|
2165
2237
|
timestamps?: boolean | undefined;
|
|
@@ -2290,8 +2362,8 @@ type EntityData = Record<string, EntityRow[]>;
|
|
|
2290
2362
|
*
|
|
2291
2363
|
* DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
|
|
2292
2364
|
*
|
|
2293
|
-
* Generated: 2026-07-
|
|
2294
|
-
* Pattern count:
|
|
2365
|
+
* Generated: 2026-07-31T10:02:24.509Z
|
|
2366
|
+
* Pattern count: 269
|
|
2295
2367
|
*/
|
|
2296
2368
|
|
|
2297
2369
|
/**
|
|
@@ -2303,7 +2375,7 @@ type PatternPropValue = Record<string, FieldValue | undefined>;
|
|
|
2303
2375
|
* All valid pattern type names from @almadar/core/patterns registry.
|
|
2304
2376
|
* Use this type in render-ui effects for compile-time validation.
|
|
2305
2377
|
*/
|
|
2306
|
-
type PatternType = 'about-page-template' | 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'article-section' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'book-chapter-view' | 'book-cover-page' | 'book-nav-bar' | 'book-table-of-contents' | 'book-viewer' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'case-study-card' | 'case-study-organism' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'community-links' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'content-section' | 'control-button' | 'control-grid' | 'counter-template' | 'cta-banner' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'document-viewer' | 'draw-group' | 'draw-shape' | 'draw-shape-layer' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-detail-page-template' | 'feature-grid' | 'feature-grid-organism' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hero-organism' | 'hero-section' | 'hstack' | 'icon' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'install-box' | 'jazari-state-machine' | 'label' | 'landing-page-template' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'marketing-footer' | 'marketing-stat-card' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'pricing-card' | 'pricing-grid' | 'pricing-organism' | 'pricing-page-template' | 'progress-bar' | 'progress-dots' | 'pull-quote' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-block-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'service-catalog' | 'showcase-card' | 'showcase-organism' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'split-section' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'stats-grid' | 'stats-organism' | 'status-dot' | 'step-flow' | 'step-flow-organism' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-cloud' | 'tag-input' | 'team-card' | 'team-organism' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2378
|
+
type PatternType = 'about-page-template' | 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'article-section' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'book-chapter-view' | 'book-cover-page' | 'book-nav-bar' | 'book-table-of-contents' | 'book-viewer' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'case-study-card' | 'case-study-organism' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'community-links' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'content-section' | 'control-button' | 'control-grid' | 'counter-template' | 'cta-banner' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'document-viewer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-detail-page-template' | 'feature-grid' | 'feature-grid-organism' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hero-organism' | 'hero-section' | 'hstack' | 'icon' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'install-box' | 'jazari-state-machine' | 'label' | 'landing-page-template' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'marketing-footer' | 'marketing-stat-card' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'pricing-card' | 'pricing-grid' | 'pricing-organism' | 'pricing-page-template' | 'progress-bar' | 'progress-dots' | 'pull-quote' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-block-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'service-catalog' | 'showcase-card' | 'showcase-organism' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'split-section' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'stats-grid' | 'stats-organism' | 'status-dot' | 'step-flow' | 'step-flow-organism' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-cloud' | 'tag-input' | 'team-card' | 'team-organism' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2307
2379
|
/**
|
|
2308
2380
|
* Pattern props map — each pattern type maps to its valid props interface.
|
|
2309
2381
|
*/
|
|
@@ -2678,6 +2750,8 @@ interface PatternPropsMap {
|
|
|
2678
2750
|
showCoordinates?: boolean | string | SExpr;
|
|
2679
2751
|
showTileInfo?: boolean | string | SExpr;
|
|
2680
2752
|
fogOfWar?: unknown[] | string | SExpr;
|
|
2753
|
+
lighting?: PatternPropValue | string | SExpr;
|
|
2754
|
+
post?: PatternPropValue | string | SExpr;
|
|
2681
2755
|
tileClickEvent?: string | SExpr;
|
|
2682
2756
|
unitClickEvent?: string | SExpr;
|
|
2683
2757
|
tileHoverEvent?: string | SExpr;
|
|
@@ -3279,8 +3353,31 @@ interface PatternPropsMap {
|
|
|
3279
3353
|
scale?: number | string | SExpr;
|
|
3280
3354
|
rotate?: number | string | SExpr;
|
|
3281
3355
|
opacity?: number | string | SExpr;
|
|
3356
|
+
clip?: string | SExpr;
|
|
3282
3357
|
items: unknown[] | string | SExpr;
|
|
3283
3358
|
};
|
|
3359
|
+
'draw-mesh': {
|
|
3360
|
+
type: 'draw-mesh';
|
|
3361
|
+
id?: string | SExpr;
|
|
3362
|
+
shape: string | SExpr;
|
|
3363
|
+
position: PatternPropValue | string | SExpr;
|
|
3364
|
+
width?: number | string | SExpr;
|
|
3365
|
+
height?: number | string | SExpr;
|
|
3366
|
+
depth?: number | string | SExpr;
|
|
3367
|
+
radius?: number | string | SExpr;
|
|
3368
|
+
radiusTop?: number | string | SExpr;
|
|
3369
|
+
radiusBottom?: number | string | SExpr;
|
|
3370
|
+
tube?: number | string | SExpr;
|
|
3371
|
+
segments?: number | string | SExpr;
|
|
3372
|
+
rotation?: unknown[] | string | SExpr;
|
|
3373
|
+
pivot?: string | SExpr;
|
|
3374
|
+
material?: PatternPropValue | string | SExpr;
|
|
3375
|
+
outline?: PatternPropValue | string | SExpr;
|
|
3376
|
+
castShadow?: boolean | string | SExpr;
|
|
3377
|
+
receiveShadow?: boolean | string | SExpr;
|
|
3378
|
+
animation?: PatternPropValue | string | SExpr;
|
|
3379
|
+
opacity?: number | string | SExpr;
|
|
3380
|
+
};
|
|
3284
3381
|
'draw-shape': {
|
|
3285
3382
|
type: 'draw-shape';
|
|
3286
3383
|
id?: string | SExpr;
|
|
@@ -3297,8 +3394,14 @@ interface PatternPropsMap {
|
|
|
3297
3394
|
d?: string | SExpr;
|
|
3298
3395
|
fill?: string | SExpr;
|
|
3299
3396
|
gradient?: PatternPropValue | string | SExpr;
|
|
3397
|
+
fillPattern?: PatternPropValue | string | SExpr;
|
|
3300
3398
|
stroke?: string | SExpr;
|
|
3301
3399
|
strokeWidth?: number | string | SExpr;
|
|
3400
|
+
strokeGradient?: PatternPropValue | string | SExpr;
|
|
3401
|
+
strokeDash?: unknown[] | string | SExpr;
|
|
3402
|
+
strokeDashOffset?: number | string | SExpr;
|
|
3403
|
+
blendMode?: string | SExpr;
|
|
3404
|
+
blur?: number | string | SExpr;
|
|
3302
3405
|
rotate?: number | string | SExpr;
|
|
3303
3406
|
pivot?: PatternPropValue | string | SExpr;
|
|
3304
3407
|
shadow?: PatternPropValue | string | SExpr;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { O as OrbitalSchema } from './schema-C0QwW3G2.js';
|
|
2
|
+
import { S as SExpr } from './expression-Yf7qvvOs.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
|
|
6
|
+
* directives, keyed by entity name.
|
|
7
|
+
*
|
|
8
|
+
* The JS mirror of `orbital-core/src/runtime/entity_access.rs`'s
|
|
9
|
+
* `EntityAccessPolicies`/`EntityAccessTable`. Both paths must agree: a
|
|
10
|
+
* directive is a per-row predicate (`@entity` = the candidate row, or for
|
|
11
|
+
* `@create` the incoming data; `@user` = the viewer), enforced once for
|
|
12
|
+
* every trait that touches the entity — the un-bypassable twin of a
|
|
13
|
+
* call-site `filter:`, which sibling traits can skip simply by not
|
|
14
|
+
* declaring one.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/** An entity's four declared directives. Any may be absent — an absent
|
|
20
|
+
* directive means "no restriction" for that operation, exactly like an
|
|
21
|
+
* absent fetch `filter:`. */
|
|
22
|
+
interface EntityAccessPolicies {
|
|
23
|
+
read?: SExpr;
|
|
24
|
+
create?: SExpr;
|
|
25
|
+
update?: SExpr;
|
|
26
|
+
delete?: SExpr;
|
|
27
|
+
}
|
|
28
|
+
/** Every entity's access policies, keyed by entity name. */
|
|
29
|
+
declare function entityAccessTable(schema: OrbitalSchema): Map<string, EntityAccessPolicies>;
|
|
30
|
+
/** One entity's access policies, or `undefined` when it declares none. */
|
|
31
|
+
declare function entityAccessPolicies(schema: OrbitalSchema, entityName: string): EntityAccessPolicies | undefined;
|
|
32
|
+
|
|
33
|
+
export { type EntityAccessPolicies as E, entityAccessTable as a, entityAccessPolicies as e };
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { 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 } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField } from '../effect-
|
|
4
|
-
import { a as TraitReference } from '../trait-
|
|
1
|
+
import { 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 } from '../types-1DvdNPye.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-1DvdNPye.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField } from '../effect-DiHGegt9.js';
|
|
4
|
+
import { a as TraitReference } from '../trait-pw49W-zL.js';
|
|
5
5
|
export { J as JsonValue } from '../expression-Yf7qvvOs.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-C0QwW3G2.js';
|
|
2
|
+
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-pw49W-zL.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-DiHGegt9.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Yf7qvvOs.js';
|
|
6
6
|
import 'zod';
|
|
@@ -372,6 +372,13 @@ var OrbitalEntitySchema = z.object({
|
|
|
372
372
|
create_policy: SExprSchema.optional(),
|
|
373
373
|
update_policy: SExprSchema.optional(),
|
|
374
374
|
delete_policy: SExprSchema.optional(),
|
|
375
|
+
// Snake_case for the same cross-language reason as the four policies above.
|
|
376
|
+
access_waivers: z.object({
|
|
377
|
+
read: z.string().optional(),
|
|
378
|
+
create: z.string().optional(),
|
|
379
|
+
update: z.string().optional(),
|
|
380
|
+
delete: z.string().optional()
|
|
381
|
+
}).optional(),
|
|
375
382
|
collection: z.string().optional(),
|
|
376
383
|
fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
|
|
377
384
|
instances: z.array(z.record(JsonValueSchema)).optional(),
|