@lssm/lib.contracts 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433
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/app-config/app-config.feature.d.ts +11 -0
- package/dist/app-config/branding.d.ts +55 -0
- package/dist/app-config/contracts.d.ts +244 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +6 -0
- package/dist/app-config/events.d.ts +122 -0
- package/dist/app-config/index.d.ts +9 -0
- package/dist/app-config/lifecycle-contracts.d.ts +382 -0
- package/dist/app-config/lifecycle.d.ts +27 -0
- package/dist/app-config/runtime.d.ts +114 -0
- package/dist/app-config/spec.d.ts +175 -0
- package/dist/app-config/validation.d.ts +47 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +6 -0
- package/dist/capabilities/openbanking.d.ts +9 -0
- package/dist/capabilities.d.ts +48 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/react/drivers/rn-reusables.d.ts +22 -0
- package/dist/client/react/drivers/shadcn.d.ts +12 -0
- package/dist/client/react/feature-render.d.ts +19 -0
- package/dist/client/react/form-render.d.ts +91 -0
- package/dist/client/react/index.d.ts +5 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/schemas.d.ts +124 -0
- package/dist/contract-registry/types.d.ts +46 -0
- package/dist/contracts-adapter-hydration.d.ts +15 -0
- package/dist/contracts-adapter-input.d.ts +10 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +6 -0
- package/dist/data-views/query-generator.d.ts +39 -0
- package/dist/data-views/runtime.d.ts +26 -0
- package/dist/data-views.d.ts +131 -0
- package/dist/docs/PUBLISHING.docblock.d.ts +6 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +6 -0
- package/dist/docs/index.d.ts +6 -0
- package/dist/docs/meta.docs.d.ts +6 -0
- package/dist/docs/presentations.d.ts +33 -0
- package/dist/docs/registry.d.ts +24 -0
- package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts +6 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +6 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +6 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +6 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +6 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +6 -0
- package/dist/docs/tech/templates/runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +6 -0
- package/dist/docs/tech/workflows/overview.docblock.d.ts +6 -0
- package/dist/docs/tech-contracts.docs.d.ts +6 -0
- package/dist/docs/types.d.ts +41 -0
- package/dist/events.d.ts +47 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +6 -0
- package/dist/experiments/evaluator.d.ts +37 -0
- package/dist/experiments/spec-resolver.d.ts +16 -0
- package/dist/experiments/spec.d.ts +89 -0
- package/dist/features.d.ts +96 -0
- package/dist/forms/docs/forms.docblock.d.ts +6 -0
- package/dist/forms.d.ts +258 -0
- package/dist/index.d.ts +127 -0
- package/dist/install.d.ts +76 -0
- package/dist/integrations/binding.d.ts +17 -0
- package/dist/integrations/connection.d.ts +51 -0
- package/dist/integrations/contracts.d.ts +435 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +6 -0
- package/dist/integrations/health.d.ts +21 -0
- package/dist/integrations/index.d.ts +34 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +287 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +163 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +211 -0
- package/dist/integrations/openbanking/guards.d.ts +12 -0
- package/dist/integrations/openbanking/models.d.ts +228 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +11 -0
- package/dist/integrations/openbanking/telemetry.d.ts +15 -0
- package/dist/integrations/providers/calendar.d.ts +78 -0
- package/dist/integrations/providers/elevenlabs.d.ts +7 -0
- package/dist/integrations/providers/email.d.ts +86 -0
- package/dist/integrations/providers/embedding.d.ts +24 -0
- package/dist/integrations/providers/gcs-storage.d.ts +7 -0
- package/dist/integrations/providers/gmail.d.ts +7 -0
- package/dist/integrations/providers/google-calendar.d.ts +7 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +20 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts +24 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +26 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +18 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts +23 -0
- package/dist/integrations/providers/impls/index.d.ts +15 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +23 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts +31 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts +19 -0
- package/dist/integrations/providers/impls/powens-client.d.ts +124 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +27 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts +26 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +24 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts +28 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts +20 -0
- package/dist/integrations/providers/index.d.ts +22 -0
- package/dist/integrations/providers/llm.d.ts +82 -0
- package/dist/integrations/providers/mistral.d.ts +7 -0
- package/dist/integrations/providers/openbanking.d.ts +128 -0
- package/dist/integrations/providers/payments.d.ts +109 -0
- package/dist/integrations/providers/postmark.d.ts +7 -0
- package/dist/integrations/providers/powens.d.ts +7 -0
- package/dist/integrations/providers/qdrant.d.ts +7 -0
- package/dist/integrations/providers/registry.d.ts +11 -0
- package/dist/integrations/providers/sms.d.ts +34 -0
- package/dist/integrations/providers/storage.d.ts +60 -0
- package/dist/integrations/providers/stripe.d.ts +7 -0
- package/dist/integrations/providers/twilio-sms.d.ts +7 -0
- package/dist/integrations/providers/vector-store.d.ts +43 -0
- package/dist/integrations/providers/voice.d.ts +34 -0
- package/dist/integrations/runtime.d.ts +99 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +31 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +31 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +32 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +1 -1
- package/dist/integrations/secrets/index.d.ts +7 -0
- package/dist/integrations/secrets/manager.d.ts +47 -0
- package/dist/integrations/secrets/provider.d.ts +52 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +38 -0
- package/dist/integrations/spec.d.ts +79 -0
- package/dist/jobs/define-job.d.ts +18 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +41 -0
- package/dist/jobs/gcp-pubsub.d.ts +25 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +9 -0
- package/dist/jobs/handlers/index.d.ts +9 -0
- package/dist/jobs/handlers/ping-handler.d.ts +10 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +12 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/memory-queue.d.ts +18 -0
- package/dist/jobs/queue.d.ts +131 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +30 -0
- package/dist/jsonschema.d.ts +27 -0
- package/dist/knowledge/binding.d.ts +25 -0
- package/dist/knowledge/contracts.d.ts +316 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +6 -0
- package/dist/knowledge/index.d.ts +10 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +24 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +12 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +18 -0
- package/dist/knowledge/ingestion/index.d.ts +6 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +15 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +18 -0
- package/dist/knowledge/query/index.d.ts +2 -0
- package/dist/knowledge/query/service.d.ts +29 -0
- package/dist/knowledge/runtime.d.ts +32 -0
- package/dist/knowledge/source.d.ts +32 -0
- package/dist/knowledge/spaces/email-threads.d.ts +7 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +7 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +7 -0
- package/dist/knowledge/spaces/index.d.ts +7 -0
- package/dist/knowledge/spaces/product-canon.d.ts +7 -0
- package/dist/knowledge/spaces/support-faq.d.ts +7 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +7 -0
- package/dist/knowledge/spec.d.ts +52 -0
- package/dist/llm/exporters.d.ts +67 -0
- package/dist/llm/index.d.ts +4 -0
- package/dist/llm/prompts.d.ts +51 -0
- package/dist/llm/types.d.ts +213 -0
- package/dist/markdown.d.ts +21 -0
- package/dist/migrations.d.ts +52 -0
- package/dist/onboarding-base.d.ts +137 -0
- package/dist/openapi.d.ts +31 -0
- package/dist/openbanking/docs/openbanking.docblock.d.ts +6 -0
- package/dist/ownership.d.ts +75 -0
- package/dist/policy/docs/policy.docblock.d.ts +6 -0
- package/dist/policy/engine.d.ts +39 -0
- package/dist/policy/opa-adapter.d.ts +45 -0
- package/dist/policy/spec.d.ts +114 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +6 -0
- package/dist/presentations.backcompat.d.ts +7 -0
- package/dist/presentations.d.ts +98 -0
- package/dist/presentations.v2.d.ts +114 -0
- package/dist/prompt.d.ts +60 -0
- package/dist/promptRegistry.d.ts +15 -0
- package/dist/regenerator/adapters.d.ts +19 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +6 -0
- package/dist/regenerator/executor.d.ts +70 -0
- package/dist/regenerator/index.d.ts +7 -0
- package/dist/regenerator/service.d.ts +33 -0
- package/dist/regenerator/sinks.d.ts +26 -0
- package/dist/regenerator/types.d.ts +107 -0
- package/dist/regenerator/utils.d.ts +9 -0
- package/dist/registry.d.ts +73 -0
- package/dist/resources.d.ts +64 -0
- package/dist/schema-to-markdown.d.ts +54 -0
- package/dist/server/graphql-pothos.d.ts +27 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/mcp/createMcpServer.d.ts +15 -0
- package/dist/server/mcp/mcpTypes.d.ts +29 -0
- package/dist/server/mcp/registerPresentations.d.ts +7 -0
- package/dist/server/mcp/registerPrompts.d.ts +8 -0
- package/dist/server/mcp/registerResources.d.ts +8 -0
- package/dist/server/mcp/registerTools.d.ts +8 -0
- package/dist/server/provider-mcp.d.ts +2 -0
- package/dist/server/rest-elysia.d.ts +40 -0
- package/dist/server/rest-express.d.ts +16 -0
- package/dist/server/rest-generic.d.ts +32 -0
- package/dist/server/rest-next-app.d.ts +35 -0
- package/dist/server/rest-next-mcp.d.ts +11 -0
- package/dist/server/rest-next-pages.d.ts +9 -0
- package/dist/spec.d.ts +195 -0
- package/dist/telemetry/anomaly.d.ts +27 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +6 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/spec.d.ts +98 -0
- package/dist/telemetry/tracker.d.ts +51 -0
- package/dist/tests/index.d.ts +3 -0
- package/dist/tests/runner.d.ts +43 -0
- package/dist/tests/spec.d.ts +89 -0
- package/dist/themes.d.ts +55 -0
- package/dist/translations/catalog.d.ts +28 -0
- package/dist/translations/tenant.d.ts +15 -0
- package/dist/types/all.d.ts +60 -0
- package/dist/types.d.ts +88 -0
- package/dist/workflow/adapters/db-adapter.d.ts +34 -0
- package/dist/workflow/adapters/file-adapter.d.ts +14 -0
- package/dist/workflow/adapters/index.d.ts +4 -0
- package/dist/workflow/adapters/memory-store.d.ts +18 -0
- package/dist/workflow/expression.d.ts +9 -0
- package/dist/workflow/index.d.ts +10 -0
- package/dist/workflow/runner.d.ts +74 -0
- package/dist/workflow/sla-monitor.d.ts +20 -0
- package/dist/workflow/spec.d.ts +99 -0
- package/dist/workflow/state.d.ts +35 -0
- package/dist/workflow/validation.d.ts +28 -0
- package/package.json +250 -250
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { OwnerShipMeta } from "./ownership.js";
|
|
2
|
+
import { ExperimentRef } from "./experiments/spec.js";
|
|
3
|
+
import { EventRef, OpRef, PresentationRef } from "./features.js";
|
|
4
|
+
|
|
5
|
+
//#region src/data-views.d.ts
|
|
6
|
+
type DataViewKind = 'list' | 'detail' | 'table' | 'grid';
|
|
7
|
+
interface DataViewMeta extends OwnerShipMeta {
|
|
8
|
+
/** Fully-qualified data view name (e.g., "sigil.spaces.admin_list"). */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Version of this data view. Increment on breaking changes. */
|
|
11
|
+
version: number;
|
|
12
|
+
/** Canonical entity slug (e.g., "space", "resident"). */
|
|
13
|
+
entity: string;
|
|
14
|
+
}
|
|
15
|
+
interface DataViewSource {
|
|
16
|
+
/** Primary query used to fetch items for this view. */
|
|
17
|
+
primary: OpRef;
|
|
18
|
+
/** Optional operation used to fetch a single item (detail views). */
|
|
19
|
+
item?: OpRef;
|
|
20
|
+
/** Optional record mutation operations (used for inline editing or actions). */
|
|
21
|
+
mutations?: {
|
|
22
|
+
create?: OpRef;
|
|
23
|
+
update?: OpRef;
|
|
24
|
+
delete?: OpRef;
|
|
25
|
+
};
|
|
26
|
+
/** Events that should trigger refresh when emitted. */
|
|
27
|
+
refreshEvents?: EventRef[];
|
|
28
|
+
}
|
|
29
|
+
type DataViewFieldFormat = 'text' | 'number' | 'currency' | 'percentage' | 'date' | 'dateTime' | 'boolean' | 'badge';
|
|
30
|
+
interface DataViewField {
|
|
31
|
+
/** Unique identifier for the field within the view. */
|
|
32
|
+
key: string;
|
|
33
|
+
/** Human-friendly label for headers/tooltips. */
|
|
34
|
+
label: string;
|
|
35
|
+
/** Dot-path into the data item (e.g., "address.city"). */
|
|
36
|
+
dataPath: string;
|
|
37
|
+
/** Optional description surfaced in tooltips or docs. */
|
|
38
|
+
description?: string;
|
|
39
|
+
/** Optional formatting hint for renderers. */
|
|
40
|
+
format?: DataViewFieldFormat;
|
|
41
|
+
/** When true, the field can be used for sorting. */
|
|
42
|
+
sortable?: boolean;
|
|
43
|
+
/** When true, the field can be used for filtering. */
|
|
44
|
+
filterable?: boolean;
|
|
45
|
+
/** Optional width hint for table layouts. */
|
|
46
|
+
width?: 'auto' | 'xs' | 'sm' | 'md' | 'lg';
|
|
47
|
+
/** Optional presentation override (e.g., card component). */
|
|
48
|
+
presentation?: PresentationRef;
|
|
49
|
+
}
|
|
50
|
+
interface DataViewFilter {
|
|
51
|
+
key: string;
|
|
52
|
+
label: string;
|
|
53
|
+
field: string;
|
|
54
|
+
type: 'search' | 'enum' | 'number' | 'date' | 'boolean';
|
|
55
|
+
options?: {
|
|
56
|
+
value: string;
|
|
57
|
+
label: string;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
interface DataViewAction {
|
|
61
|
+
key: string;
|
|
62
|
+
label: string;
|
|
63
|
+
kind: 'navigation' | 'operation';
|
|
64
|
+
/** Operation invoked when kind === 'operation'. */
|
|
65
|
+
operation?: OpRef;
|
|
66
|
+
/** Optional feature flag gating the action. */
|
|
67
|
+
requiresFlag?: string;
|
|
68
|
+
}
|
|
69
|
+
interface DataViewSections {
|
|
70
|
+
title?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
fields: string[];
|
|
73
|
+
}
|
|
74
|
+
interface DataViewBaseConfig {
|
|
75
|
+
kind: DataViewKind;
|
|
76
|
+
fields: DataViewField[];
|
|
77
|
+
primaryField?: string;
|
|
78
|
+
secondaryFields?: string[];
|
|
79
|
+
filters?: DataViewFilter[];
|
|
80
|
+
actions?: DataViewAction[];
|
|
81
|
+
}
|
|
82
|
+
interface DataViewListConfig extends DataViewBaseConfig {
|
|
83
|
+
kind: 'list';
|
|
84
|
+
layout?: 'card' | 'compact';
|
|
85
|
+
}
|
|
86
|
+
interface DataViewDetailConfig extends DataViewBaseConfig {
|
|
87
|
+
kind: 'detail';
|
|
88
|
+
sections?: DataViewSections[];
|
|
89
|
+
}
|
|
90
|
+
interface DataViewTableColumn {
|
|
91
|
+
field: string;
|
|
92
|
+
label?: string;
|
|
93
|
+
width?: 'auto' | 'xs' | 'sm' | 'md' | 'lg';
|
|
94
|
+
align?: 'left' | 'center' | 'right';
|
|
95
|
+
}
|
|
96
|
+
interface DataViewTableConfig extends DataViewBaseConfig {
|
|
97
|
+
kind: 'table';
|
|
98
|
+
columns?: DataViewTableColumn[];
|
|
99
|
+
rowSelectable?: boolean;
|
|
100
|
+
density?: 'comfortable' | 'compact';
|
|
101
|
+
}
|
|
102
|
+
interface DataViewGridConfig extends DataViewBaseConfig {
|
|
103
|
+
kind: 'grid';
|
|
104
|
+
columns?: number;
|
|
105
|
+
}
|
|
106
|
+
type DataViewConfig = DataViewListConfig | DataViewDetailConfig | DataViewTableConfig | DataViewGridConfig;
|
|
107
|
+
interface DataViewStates {
|
|
108
|
+
empty?: PresentationRef;
|
|
109
|
+
error?: PresentationRef;
|
|
110
|
+
loading?: PresentationRef;
|
|
111
|
+
}
|
|
112
|
+
interface DataViewSpec {
|
|
113
|
+
meta: DataViewMeta;
|
|
114
|
+
source: DataViewSource;
|
|
115
|
+
view: DataViewConfig;
|
|
116
|
+
states?: DataViewStates;
|
|
117
|
+
policy?: {
|
|
118
|
+
flags?: string[];
|
|
119
|
+
pii?: string[];
|
|
120
|
+
};
|
|
121
|
+
experiments?: ExperimentRef[];
|
|
122
|
+
}
|
|
123
|
+
declare class DataViewRegistry {
|
|
124
|
+
private readonly items;
|
|
125
|
+
register(spec: DataViewSpec): this;
|
|
126
|
+
list(): DataViewSpec[];
|
|
127
|
+
get(name: string, version?: number): DataViewSpec | undefined;
|
|
128
|
+
}
|
|
129
|
+
declare function dataViewKey(spec: DataViewSpec): string;
|
|
130
|
+
//#endregion
|
|
131
|
+
export { DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewRegistry, DataViewSections, DataViewSource, DataViewSpec, DataViewStates, DataViewTableColumn, DataViewTableConfig, dataViewKey };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/accessibility_wcag_compliance_specs.docblock.d.ts
|
|
4
|
+
declare const accessibility_wcag_compliance_specs_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { accessibility_wcag_compliance_specs_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock, DocBlockLink, DocKind, DocVisibility } from "./types.js";
|
|
2
|
+
import { DocPresentationOptions, DocPresentationRoute, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from "./presentations.js";
|
|
3
|
+
import { DocId, DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from "./registry.js";
|
|
4
|
+
import { techContractsDocs } from "./tech-contracts.docs.js";
|
|
5
|
+
import { metaDocs } from "./meta.docs.js";
|
|
6
|
+
export { DocBlock, DocBlockLink, DocId, DocKind, DocPresentationOptions, DocPresentationRoute, DocRegistry, DocVisibility, defaultDocRegistry, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, techContractsDocs };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Stability } from "../ownership.js";
|
|
2
|
+
import { PresentationDescriptorV2, PresentationTarget } from "../presentations.v2.js";
|
|
3
|
+
import { PresentationSpec } from "../presentations.js";
|
|
4
|
+
import { DocBlock } from "./types.js";
|
|
5
|
+
|
|
6
|
+
//#region src/docs/presentations.d.ts
|
|
7
|
+
interface DocPresentationOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Namespace for presentation meta.name (e.g., web-landing.docs.ops).
|
|
10
|
+
* Defaults to the DocBlock id.
|
|
11
|
+
*/
|
|
12
|
+
namespace?: string;
|
|
13
|
+
/** Route prefix when no explicit route is provided on the block. Defaults to /docs. */
|
|
14
|
+
routePrefix?: string;
|
|
15
|
+
/** Default presentation targets. */
|
|
16
|
+
defaultTargets?: PresentationTarget[];
|
|
17
|
+
/** Default version when block.version is not set. */
|
|
18
|
+
defaultVersion?: number;
|
|
19
|
+
/** Default stability if not provided on the DocBlock. */
|
|
20
|
+
defaultStability?: Stability;
|
|
21
|
+
}
|
|
22
|
+
interface DocPresentationRoute {
|
|
23
|
+
route: string;
|
|
24
|
+
descriptor: PresentationDescriptorV2;
|
|
25
|
+
block: DocBlock;
|
|
26
|
+
}
|
|
27
|
+
declare function docBlockToPresentationV2(block: DocBlock, options?: DocPresentationOptions): PresentationDescriptorV2;
|
|
28
|
+
declare function docBlockToPresentationSpec(block: DocBlock, options?: DocPresentationOptions): PresentationSpec;
|
|
29
|
+
declare function docBlocksToPresentationRoutes(blocks: DocBlock[], options?: DocPresentationOptions): DocPresentationRoute[];
|
|
30
|
+
declare function docBlocksToPresentationSpecs(blocks: DocBlock[], options?: DocPresentationOptions): PresentationSpec[];
|
|
31
|
+
declare function mapDocRoutes(routes: DocPresentationRoute[]): [string, PresentationDescriptorV2][];
|
|
32
|
+
//#endregion
|
|
33
|
+
export { DocPresentationOptions, DocPresentationRoute, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "../presentations.v2.js";
|
|
2
|
+
import { PresentationSpec } from "../presentations.js";
|
|
3
|
+
import { DocBlock } from "./types.js";
|
|
4
|
+
import { DocPresentationOptions, DocPresentationRoute } from "./presentations.js";
|
|
5
|
+
|
|
6
|
+
//#region src/docs/registry.d.ts
|
|
7
|
+
type DocId = string & {
|
|
8
|
+
__docId: true;
|
|
9
|
+
};
|
|
10
|
+
declare class DocRegistry {
|
|
11
|
+
private readonly routes;
|
|
12
|
+
constructor(blocks?: DocBlock[], options?: DocPresentationOptions);
|
|
13
|
+
register(block: DocBlock, options?: DocPresentationOptions): this;
|
|
14
|
+
list(): DocPresentationRoute[];
|
|
15
|
+
get(id: string): DocPresentationRoute | undefined;
|
|
16
|
+
toRouteTuples(): [string, PresentationDescriptorV2][];
|
|
17
|
+
toPresentationSpecs(options?: DocPresentationOptions): PresentationSpec[];
|
|
18
|
+
}
|
|
19
|
+
declare const defaultDocRegistry: DocRegistry;
|
|
20
|
+
declare function registerDocBlocks(blocks: DocBlock[]): void;
|
|
21
|
+
declare function listRegisteredDocBlocks(): DocBlock[];
|
|
22
|
+
declare function docId(id: string): DocId;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DocId, DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts
|
|
4
|
+
declare const tech_PHASE_4_PERSONALIZATION_ENGINE_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_PHASE_4_PERSONALIZATION_ENGINE_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts
|
|
4
|
+
declare const tech_PHASE_5_ZERO_TOUCH_OPERATIONS_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_PHASE_5_ZERO_TOUCH_OPERATIONS_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/contracts/create-subscription.docblock.d.ts
|
|
4
|
+
declare const tech_contracts_create_subscription_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_contracts_create_subscription_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts
|
|
4
|
+
declare const tech_contracts_graphql_typed_outputs_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_contracts_graphql_typed_outputs_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts
|
|
4
|
+
declare const tech_contracts_ops_to_presentation_linking_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_contracts_ops_to_presentation_linking_DocBlocks };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocBlock } from "@lssm/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts
|
|
4
|
+
declare const tech_contracts_vertical_pocket_family_office_DocBlocks: DocBlock[];
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tech_contracts_vertical_pocket_family_office_DocBlocks };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Stability } from "../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/types.d.ts
|
|
4
|
+
type DocVisibility = 'public' | 'internal' | 'mixed';
|
|
5
|
+
interface DocBlockLink {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
}
|
|
9
|
+
type DocKind = 'goal' | 'how' | 'usage' | 'reference' | 'faq';
|
|
10
|
+
interface DocBlock {
|
|
11
|
+
/** Globally unique identifier (prefer dotted paths like docs.ops.runbook). */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Short, human-readable title. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Markdown body (LLM- and human-readable). */
|
|
16
|
+
body: string;
|
|
17
|
+
/** Optional one-line summary used for meta.description. */
|
|
18
|
+
summary?: string;
|
|
19
|
+
/** Explicit route (e.g., /docs/ops/anomaly-detection). Falls back to id-derived route. */
|
|
20
|
+
route?: string;
|
|
21
|
+
/** Optional semantic grouping for filtering. */
|
|
22
|
+
kind?: DocKind;
|
|
23
|
+
/** Visibility gate. Defaults to public. */
|
|
24
|
+
visibility?: DocVisibility;
|
|
25
|
+
/** Optional version to allow evolutions without breaking links. Defaults to 1. */
|
|
26
|
+
version?: number;
|
|
27
|
+
/** Tags to aid discovery and filtering. */
|
|
28
|
+
tags?: string[];
|
|
29
|
+
/** Owning teams or individuals. */
|
|
30
|
+
owners?: string[];
|
|
31
|
+
/** Related contract/presentation identifiers. */
|
|
32
|
+
relatedSpecs?: string[];
|
|
33
|
+
/** External references or supporting links. */
|
|
34
|
+
links?: DocBlockLink[];
|
|
35
|
+
/** Domain or bounded context marker. */
|
|
36
|
+
domain?: string;
|
|
37
|
+
/** Stability marker to mirror presentation ownership semantics. */
|
|
38
|
+
stability?: Stability;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { DocBlock, DocBlockLink, DocKind, DocVisibility };
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OwnerShipMeta } from "./ownership.js";
|
|
2
|
+
import { DocId } from "./docs/registry.js";
|
|
3
|
+
import { AnySchemaModel } from "@lssm/lib.schema";
|
|
4
|
+
|
|
5
|
+
//#region src/events.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Typed event specification. Declare once, validate payloads at publish time,
|
|
9
|
+
* and guard emissions via the contracts runtime.
|
|
10
|
+
*/
|
|
11
|
+
interface EventSpec<T extends AnySchemaModel> {
|
|
12
|
+
/** Fully-qualified event name, e.g. "sigil.magic_link.created". */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Event payload version. Bump on any breaking payload change. */
|
|
15
|
+
version: number;
|
|
16
|
+
/** Short human-friendly summary. */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** JSON-like paths to redact from logs/exports. */
|
|
19
|
+
pii?: string[];
|
|
20
|
+
/** Event payload schema from @lssm/lib.schema. */
|
|
21
|
+
payload: T;
|
|
22
|
+
/** Optional ownership metadata for governance and docs. */
|
|
23
|
+
ownership?: OwnerShipMeta;
|
|
24
|
+
/** Optional doc block id for this event. */
|
|
25
|
+
docId?: DocId;
|
|
26
|
+
}
|
|
27
|
+
/** Identity function to keep type inference when declaring events. */
|
|
28
|
+
declare function defineEvent<T extends AnySchemaModel>(e: EventSpec<T>): EventSpec<T>;
|
|
29
|
+
interface EventEnvelope<T> {
|
|
30
|
+
/** Unique identifier for the published event (UUID recommended). */
|
|
31
|
+
id: string;
|
|
32
|
+
/** ISO timestamp when the event occurred. */
|
|
33
|
+
occurredAt: string;
|
|
34
|
+
/** Optional trace identifier for correlating across services. */
|
|
35
|
+
traceId?: string;
|
|
36
|
+
/** Event name as published (should match spec.name). */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Event version as published (should match spec.version). */
|
|
39
|
+
version: number;
|
|
40
|
+
/** Validated payload. */
|
|
41
|
+
payload: T;
|
|
42
|
+
}
|
|
43
|
+
type EventKey = `${string}.v${number}`;
|
|
44
|
+
/** Build a stable string key for an event name/version pair. */
|
|
45
|
+
declare const eventKey: (name: string, version: number) => EventKey;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { EventEnvelope, EventKey, EventSpec, defineEvent, eventKey };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PolicyRef } from "../policy/spec.js";
|
|
2
|
+
import { ExperimentRegistry, ExperimentVariant } from "./spec.js";
|
|
3
|
+
|
|
4
|
+
//#region src/experiments/evaluator.d.ts
|
|
5
|
+
interface ExperimentContext {
|
|
6
|
+
experiment: string;
|
|
7
|
+
version?: number;
|
|
8
|
+
userId?: string | null;
|
|
9
|
+
organizationId?: string | null;
|
|
10
|
+
sessionId?: string | null;
|
|
11
|
+
attributes?: Record<string, unknown>;
|
|
12
|
+
flags?: string[];
|
|
13
|
+
}
|
|
14
|
+
interface ExperimentEvaluation {
|
|
15
|
+
variant: ExperimentVariant;
|
|
16
|
+
reason: 'control' | 'random' | 'sticky' | 'targeted';
|
|
17
|
+
}
|
|
18
|
+
interface ExperimentEvaluatorConfig {
|
|
19
|
+
registry: ExperimentRegistry;
|
|
20
|
+
policyChecker?: (policy: PolicyRef, context: ExperimentContext) => Promise<boolean> | boolean;
|
|
21
|
+
expressionEvaluator?: (expression: string, context: ExperimentContext) => boolean;
|
|
22
|
+
}
|
|
23
|
+
declare class ExperimentEvaluator {
|
|
24
|
+
private readonly registry;
|
|
25
|
+
private readonly policyChecker?;
|
|
26
|
+
private readonly expressionEvaluator?;
|
|
27
|
+
constructor(config: ExperimentEvaluatorConfig);
|
|
28
|
+
chooseVariant(context: ExperimentContext): Promise<ExperimentEvaluation | null>;
|
|
29
|
+
private pickByWeight;
|
|
30
|
+
private randomSeed;
|
|
31
|
+
private stickySeed;
|
|
32
|
+
private hashToUnitInterval;
|
|
33
|
+
private evaluateTargeting;
|
|
34
|
+
private matchesRule;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ExperimentContext, ExperimentEvaluation, ExperimentEvaluator, ExperimentEvaluatorConfig };
|