@objectstack/spec 2.0.6 → 2.0.7
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/ai/index.d.mts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +230 -3
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/index.mjs +218 -3
- package/dist/ai/index.mjs.map +1 -1
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3409 -2841
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +3386 -2841
- package/dist/api/index.mjs.map +1 -1
- package/dist/automation/index.d.mts +1 -1
- package/dist/automation/index.d.ts +1 -1
- package/dist/contracts/index.d.mts +2 -2
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js.map +1 -1
- package/dist/data/index.d.mts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +58 -1
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +58 -1
- package/dist/data/index.mjs.map +1 -1
- package/dist/{driver.zod-E3C6n0W-.d.ts → driver.zod-B3Q0oLlF.d.ts} +1 -1
- package/dist/{driver.zod-DnOPgUGi.d.mts → driver.zod-Bf2z72WQ.d.mts} +1 -1
- package/dist/{index-DyawwLFZ.d.ts → index-B3C8s_DZ.d.ts} +307 -29
- package/dist/{index-DTCkpGMm.d.mts → index-BliYpI46.d.mts} +879 -52
- package/dist/{index-BbtSaxHm.d.ts → index-BpE_xfkc.d.ts} +3289 -229
- package/dist/{index-E1mP_eoE.d.mts → index-C3cFLYII.d.mts} +307 -29
- package/dist/{index-BpP0MwlW.d.ts → index-CXtgLAue.d.ts} +879 -52
- package/dist/{index-D-tf4nDV.d.mts → index-CYbdd-mL.d.mts} +27 -1
- package/dist/{index-B-u2mVKn.d.mts → index-CeUUI-ym.d.mts} +151 -14
- package/dist/{index-BPhGHW32.d.ts → index-CfvdYFyf.d.ts} +27 -1
- package/dist/{index-CDN6TRx9.d.mts → index-ClHj1Tbo.d.mts} +71 -2
- package/dist/{index-CDN6TRx9.d.ts → index-ClHj1Tbo.d.ts} +71 -2
- package/dist/{index-BjxWBAB_.d.ts → index-CmY8tgpL.d.ts} +151 -14
- package/dist/{index-DRCh2NTZ.d.mts → index-CqDMk0T6.d.mts} +3289 -229
- package/dist/{index-d9wYlv-g.d.ts → index-DNKiU_-x.d.mts} +684 -18
- package/dist/{index-d9wYlv-g.d.mts → index-DNKiU_-x.d.ts} +684 -18
- package/dist/{index-CisfSmuF.d.ts → index-Dm4UfDKG.d.ts} +451 -19
- package/dist/index-KhvhiesR.d.mts +6902 -0
- package/dist/{index-BV0xBoer.d.mts → index-Onf8hbkX.d.mts} +451 -19
- package/dist/index-OqCqQSaH.d.ts +6902 -0
- package/dist/index.d.mts +2519 -222
- package/dist/index.d.ts +2519 -222
- package/dist/index.js +9957 -8069
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9957 -8069
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +67 -0
- package/dist/integration/index.js.map +1 -1
- package/dist/integration/index.mjs +61 -0
- package/dist/integration/index.mjs.map +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.js +1698 -1474
- package/dist/kernel/index.js.map +1 -1
- package/dist/kernel/index.mjs +1690 -1474
- package/dist/kernel/index.mjs.map +1 -1
- package/dist/{package-registry.zod-CbS9FKeH.d.mts → package-registry.zod-BJQSiICj.d.mts} +78 -43
- package/dist/{package-registry.zod-CbS9FKeH.d.ts → package-registry.zod-BJQSiICj.d.ts} +78 -43
- package/dist/security/index.d.mts +1 -1
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +47 -1
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +45 -1
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +1 -1
- package/dist/system/index.d.ts +1 -1
- package/dist/system/index.js +2189 -1821
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.mjs +2168 -1821
- package/dist/system/index.mjs.map +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1414 -767
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +1354 -767
- package/dist/ui/index.mjs.map +1 -1
- package/json-schema/ai/Agent.json +203 -0
- package/json-schema/ai/AgentCommunicationProtocol.json +9 -0
- package/json-schema/ai/AgentGroupMember.json +45 -0
- package/json-schema/ai/AgentGroupRole.json +10 -0
- package/json-schema/ai/DevOpsAgent.json +203 -0
- package/json-schema/ai/MCPClientConfig.json +168 -0
- package/json-schema/ai/MCPRootEntry.json +23 -0
- package/json-schema/ai/MCPRootsConfig.json +49 -0
- package/json-schema/ai/MCPSamplingConfig.json +46 -0
- package/json-schema/ai/MCPServerConfig.json +120 -0
- package/json-schema/ai/MCPStreamingConfig.json +38 -0
- package/json-schema/ai/MCPToolApproval.json +39 -0
- package/json-schema/ai/MultiAgentGroup.json +137 -0
- package/json-schema/ai/StructuredOutputConfig.json +75 -0
- package/json-schema/ai/StructuredOutputFormat.json +12 -0
- package/json-schema/ai/TransformPipelineStep.json +11 -0
- package/json-schema/api/AppDefinitionResponse.json +285 -7
- package/json-schema/api/BasePresence.json +40 -0
- package/json-schema/api/BatchLoadingStrategy.json +40 -0
- package/json-schema/api/Callback.json +39 -0
- package/json-schema/api/DataLoaderConfig.json +55 -0
- package/json-schema/api/DisablePackageResponse.json +26 -0
- package/json-schema/api/Discovery.json +4 -62
- package/json-schema/api/EnablePackageResponse.json +26 -0
- package/json-schema/api/FederationEntity.json +110 -0
- package/json-schema/api/FederationEntityKey.json +20 -0
- package/json-schema/api/FederationExternalField.json +18 -0
- package/json-schema/api/FederationGateway.json +327 -0
- package/json-schema/api/FederationProvides.json +19 -0
- package/json-schema/api/FederationRequires.json +19 -0
- package/json-schema/api/GetDiscoveryResponse.json +1 -60
- package/json-schema/api/GetPackageResponse.json +26 -0
- package/json-schema/api/GraphQLConfig.json +327 -0
- package/json-schema/api/GraphQLQueryAdapter.json +84 -0
- package/json-schema/api/InstallPackageRequest.json +26 -0
- package/json-schema/api/InstallPackageResponse.json +26 -0
- package/json-schema/api/ListPackagesResponse.json +26 -0
- package/json-schema/api/ODataQueryAdapter.json +66 -0
- package/json-schema/api/OpenApi31Extensions.json +139 -0
- package/json-schema/api/OperatorMapping.json +26 -0
- package/json-schema/api/PresenceStatus.json +10 -0
- package/json-schema/api/QueryAdapterConfig.json +272 -0
- package/json-schema/api/QueryAdapterTarget.json +9 -0
- package/json-schema/api/QueryOptimizationConfig.json +126 -0
- package/json-schema/api/RealtimeRecordAction.json +9 -0
- package/json-schema/api/RestQueryAdapter.json +86 -0
- package/json-schema/api/RestServerConfig.json +139 -0
- package/json-schema/api/SubgraphConfig.json +183 -0
- package/json-schema/api/WebhookConfig.json +129 -0
- package/json-schema/api/WebhookEvent.json +64 -0
- package/json-schema/data/ExternalLookup.json +128 -0
- package/json-schema/identity/SCIMBulkOperation.json +41 -0
- package/json-schema/identity/SCIMBulkRequest.json +73 -0
- package/json-schema/identity/SCIMBulkResponse.json +61 -0
- package/json-schema/identity/SCIMBulkResponseOperation.json +36 -0
- package/json-schema/integration/CircuitBreakerConfig.json +49 -0
- package/json-schema/integration/Connector.json +223 -0
- package/json-schema/integration/ConnectorHealth.json +113 -0
- package/json-schema/integration/DatabaseConnector.json +223 -0
- package/json-schema/integration/ErrorCategory.json +15 -0
- package/json-schema/integration/ErrorMappingConfig.json +112 -0
- package/json-schema/integration/ErrorMappingRule.json +66 -0
- package/json-schema/integration/FileStorageConnector.json +223 -0
- package/json-schema/integration/GitHubConnector.json +223 -0
- package/json-schema/integration/HealthCheckConfig.json +58 -0
- package/json-schema/integration/MessageQueueConnector.json +223 -0
- package/json-schema/integration/SaasConnector.json +223 -0
- package/json-schema/integration/VercelConnector.json +223 -0
- package/json-schema/kernel/CLICommandContribution.json +23 -0
- package/json-schema/kernel/CLIExtensionExport.json +22 -0
- package/json-schema/kernel/DevFixtureConfig.json +35 -0
- package/json-schema/kernel/DevPluginConfig.json +170 -0
- package/json-schema/kernel/DevPluginPreset.json +10 -0
- package/json-schema/kernel/DevServiceOverride.json +41 -0
- package/json-schema/kernel/DevToolsConfig.json +45 -0
- package/json-schema/kernel/DisablePackageResponse.json +26 -0
- package/json-schema/kernel/EnablePackageResponse.json +26 -0
- package/json-schema/kernel/GetPackageResponse.json +26 -0
- package/json-schema/kernel/InstallPackageRequest.json +26 -0
- package/json-schema/kernel/InstallPackageResponse.json +26 -0
- package/json-schema/kernel/InstalledPackage.json +26 -0
- package/json-schema/kernel/ListPackagesResponse.json +26 -0
- package/json-schema/kernel/Manifest.json +26 -0
- package/json-schema/kernel/MetadataFallbackStrategy.json +9 -0
- package/json-schema/kernel/MetadataLoaderContract.json +7 -0
- package/json-schema/kernel/MetadataManagerConfig.json +21 -0
- package/json-schema/security/RLSAuditConfig.json +62 -0
- package/json-schema/security/RLSAuditEvent.json +66 -0
- package/json-schema/security/RLSConfig.json +62 -0
- package/json-schema/system/AuthConfig.json +83 -0
- package/json-schema/system/BackupConfig.json +148 -0
- package/json-schema/system/BackupRetention.json +27 -0
- package/json-schema/system/BackupStrategy.json +10 -0
- package/json-schema/system/CacheAvalanchePrevention.json +77 -0
- package/json-schema/system/CacheConsistency.json +11 -0
- package/json-schema/system/CacheWarmup.json +44 -0
- package/json-schema/system/ComplianceAuditRequirement.json +43 -0
- package/json-schema/system/ComplianceEncryptionRequirement.json +58 -0
- package/json-schema/system/DataClassificationPolicy.json +46 -0
- package/json-schema/system/DisasterRecoveryPlan.json +414 -0
- package/json-schema/system/DistributedCacheConfig.json +269 -0
- package/json-schema/system/FailoverConfig.json +102 -0
- package/json-schema/system/FailoverMode.json +11 -0
- package/json-schema/system/MaskingVisibilityRule.json +56 -0
- package/json-schema/system/MetadataFallbackStrategy.json +9 -0
- package/json-schema/system/MetadataLoaderContract.json +9 -1
- package/json-schema/system/MetadataManagerConfig.json +52 -11
- package/json-schema/system/MetadataRecord.json +32 -1
- package/json-schema/system/MetadataSource.json +10 -0
- package/json-schema/system/MutualTLSConfig.json +83 -0
- package/json-schema/system/RPO.json +27 -0
- package/json-schema/system/RTO.json +27 -0
- package/json-schema/system/SecurityContextConfig.json +288 -0
- package/json-schema/system/SecurityEventCorrelation.json +40 -0
- package/json-schema/ui/Action.json +200 -5
- package/json-schema/ui/ActionParam.json +62 -2
- package/json-schema/ui/AnimationTrigger.json +14 -0
- package/json-schema/ui/App.json +285 -7
- package/json-schema/ui/AriaProps.json +49 -0
- package/json-schema/ui/BreakpointColumnMap.json +38 -0
- package/json-schema/ui/BreakpointName.json +12 -0
- package/json-schema/ui/BreakpointOrderMap.json +26 -0
- package/json-schema/ui/ChartAnnotation.json +31 -1
- package/json-schema/ui/ChartAxis.json +30 -1
- package/json-schema/ui/ChartConfig.json +259 -7
- package/json-schema/ui/ChartSeries.json +30 -1
- package/json-schema/ui/ColumnSummary.json +18 -0
- package/json-schema/ui/ComponentAnimation.json +246 -0
- package/json-schema/ui/ConflictResolution.json +11 -0
- package/json-schema/ui/Dashboard.json +627 -11
- package/json-schema/ui/DashboardNavItem.json +30 -1
- package/json-schema/ui/DashboardWidget.json +433 -8
- package/json-schema/ui/DateFormat.json +36 -0
- package/json-schema/ui/DensityMode.json +9 -0
- package/json-schema/ui/DndConfig.json +306 -0
- package/json-schema/ui/DragConstraint.json +44 -0
- package/json-schema/ui/DragHandle.json +10 -0
- package/json-schema/ui/DragItem.json +160 -0
- package/json-schema/ui/DropEffect.json +11 -0
- package/json-schema/ui/DropZone.json +114 -0
- package/json-schema/ui/EasingFunction.json +13 -0
- package/json-schema/ui/EvictionPolicy.json +10 -0
- package/json-schema/ui/FocusManagement.json +69 -0
- package/json-schema/ui/FocusTrapConfig.json +32 -0
- package/json-schema/ui/FormField.json +90 -3
- package/json-schema/ui/GalleryConfig.json +46 -0
- package/json-schema/ui/GestureConfig.json +128 -0
- package/json-schema/ui/GestureType.json +14 -0
- package/json-schema/ui/GroupNavItem.json +30 -1
- package/json-schema/ui/GroupingConfig.json +45 -0
- package/json-schema/ui/GroupingField.json +30 -0
- package/json-schema/ui/I18nLabel.json +34 -0
- package/json-schema/ui/I18nObject.json +26 -0
- package/json-schema/ui/KeyboardNavigationConfig.json +194 -0
- package/json-schema/ui/KeyboardShortcut.json +66 -0
- package/json-schema/ui/ListColumn.json +55 -1
- package/json-schema/ui/ListView.json +435 -4
- package/json-schema/ui/LocaleConfig.json +108 -0
- package/json-schema/ui/LongPressGestureConfig.json +20 -0
- package/json-schema/ui/MotionConfig.json +405 -0
- package/json-schema/ui/NavigationItem.json +150 -5
- package/json-schema/ui/Notification.json +232 -0
- package/json-schema/ui/NotificationAction.json +60 -0
- package/json-schema/ui/NotificationConfig.json +52 -0
- package/json-schema/ui/NotificationPosition.json +13 -0
- package/json-schema/ui/NotificationSeverity.json +11 -0
- package/json-schema/ui/NotificationType.json +12 -0
- package/json-schema/ui/NumberFormat.json +42 -0
- package/json-schema/ui/ObjectNavItem.json +30 -1
- package/json-schema/ui/OfflineCacheConfig.json +40 -0
- package/json-schema/ui/OfflineConfig.json +157 -0
- package/json-schema/ui/OfflineStrategy.json +12 -0
- package/json-schema/ui/Page.json +285 -3
- package/json-schema/ui/PageCardProps.json +79 -1
- package/json-schema/ui/PageComponent.json +175 -1
- package/json-schema/ui/PageHeaderProps.json +108 -2
- package/json-schema/ui/PageNavItem.json +30 -1
- package/json-schema/ui/PageRegion.json +175 -1
- package/json-schema/ui/PageTabsProps.json +79 -1
- package/json-schema/ui/PageTransition.json +53 -0
- package/json-schema/ui/PerformanceConfig.json +57 -0
- package/json-schema/ui/PersistStorage.json +10 -0
- package/json-schema/ui/PinchGestureConfig.json +16 -0
- package/json-schema/ui/PluralRule.json +40 -0
- package/json-schema/ui/Report.json +490 -8
- package/json-schema/ui/ReportChart.json +199 -5
- package/json-schema/ui/ReportColumn.json +126 -1
- package/json-schema/ui/ResponsiveConfig.json +97 -0
- package/json-schema/ui/RowColorConfig.json +25 -0
- package/json-schema/ui/RowHeight.json +12 -0
- package/json-schema/ui/SwipeDirection.json +10 -0
- package/json-schema/ui/SwipeGestureConfig.json +32 -0
- package/json-schema/ui/SyncConfig.json +47 -0
- package/json-schema/ui/Theme.json +137 -0
- package/json-schema/ui/TimelineConfig.json +46 -0
- package/json-schema/ui/TouchInteraction.json +232 -0
- package/json-schema/ui/TouchTargetConfig.json +49 -0
- package/json-schema/ui/TransitionConfig.json +47 -0
- package/json-schema/ui/TransitionPreset.json +16 -0
- package/json-schema/ui/UrlNavItem.json +30 -1
- package/json-schema/ui/ViewSharing.json +24 -0
- package/json-schema/ui/WcagContrastLevel.json +8 -0
- package/json-schema/ui/WidgetEvent.json +60 -2
- package/json-schema/ui/WidgetManifest.json +284 -6
- package/json-schema/ui/WidgetProperty.json +60 -2
- package/package.json +1 -1
- package/dist/index-CZjkpp75.d.mts +0 -3867
- package/dist/index-CgkjUheS.d.ts +0 -3867
- package/dist/{index-B08s7rEU.d.mts → index-DmhxH5jy.d.mts} +8 -8
- package/dist/{index-DqnBqATx.d.ts → index-y5JJvyML.d.ts} +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Q as QueryAST, a as FieldSchema } from './field.zod-DuaF0Lcl.js';
|
|
2
|
-
import { D as DataEngineQueryOptions, a as DataEngineInsertOptions, b as DataEngineUpdateOptions, c as DataEngineDeleteOptions, d as DataEngineCountOptions, e as DataEngineAggregateOptions, f as DataEngineRequest, g as DriverOptions, O as ObjectSchema } from './driver.zod-
|
|
2
|
+
import { D as DataEngineQueryOptions, a as DataEngineInsertOptions, b as DataEngineUpdateOptions, c as DataEngineDeleteOptions, d as DataEngineCountOptions, e as DataEngineAggregateOptions, f as DataEngineRequest, g as DriverOptions, h as DriverCapabilities, O as ObjectSchema } from './driver.zod-B3Q0oLlF.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -125,6 +125,126 @@ interface DriverInterface {
|
|
|
125
125
|
execute?(command: any, params?: any, options?: DriverOptions): Promise<any>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
/**
|
|
129
|
+
* IDataDriver - Comprehensive Database Driver Interface
|
|
130
|
+
*
|
|
131
|
+
* Pure TypeScript interface for all storage adapters (Postgres, Mongo, Excel, Salesforce).
|
|
132
|
+
* Mirrors the capabilities described in `data/driver.zod.ts` (DriverInterfaceSchema) but
|
|
133
|
+
* expressed as a TypeScript interface for type-safe implementation contracts.
|
|
134
|
+
*
|
|
135
|
+
* This is the contract that all ObjectStack database drivers MUST implement.
|
|
136
|
+
* Use `DriverCapabilitiesSchema` / `DriverConfigSchema` from `data/driver.zod.ts` for
|
|
137
|
+
* runtime capability detection and configuration validation.
|
|
138
|
+
*
|
|
139
|
+
* @see DriverCapabilitiesSchema for runtime capability flags
|
|
140
|
+
* @see DriverConfigSchema for driver configuration validation
|
|
141
|
+
*/
|
|
142
|
+
interface IDataDriver {
|
|
143
|
+
/** Driver unique name (e.g., 'postgresql', 'mongodb', 'rest_api') */
|
|
144
|
+
readonly name: string;
|
|
145
|
+
/** Driver version */
|
|
146
|
+
readonly version: string;
|
|
147
|
+
/** Capabilities descriptor */
|
|
148
|
+
readonly supports: DriverCapabilities;
|
|
149
|
+
/** Initialize connection pool or authenticate */
|
|
150
|
+
connect(): Promise<void>;
|
|
151
|
+
/** Close connections and cleanup resources */
|
|
152
|
+
disconnect(): Promise<void>;
|
|
153
|
+
/** Check connection health */
|
|
154
|
+
checkHealth(): Promise<boolean>;
|
|
155
|
+
/** Get connection pool statistics (optional) */
|
|
156
|
+
getPoolStats?(): {
|
|
157
|
+
total: number;
|
|
158
|
+
idle: number;
|
|
159
|
+
active: number;
|
|
160
|
+
waiting: number;
|
|
161
|
+
} | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Execute a raw command/query native to the driver.
|
|
164
|
+
*
|
|
165
|
+
* @param command - Raw command (SQL string, shell command, or API payload)
|
|
166
|
+
* @param parameters - Bound parameters for safe execution
|
|
167
|
+
* @param options - Driver options (transaction context, timeout)
|
|
168
|
+
* @returns Raw result from the driver
|
|
169
|
+
*/
|
|
170
|
+
execute(command: unknown, parameters?: unknown[], options?: DriverOptions): Promise<unknown>;
|
|
171
|
+
/**
|
|
172
|
+
* Find multiple records matching the structured query.
|
|
173
|
+
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
174
|
+
*/
|
|
175
|
+
find(object: string, query: QueryAST, options?: DriverOptions): Promise<Record<string, unknown>[]>;
|
|
176
|
+
/**
|
|
177
|
+
* Stream records matching the structured query.
|
|
178
|
+
* Optimized for large datasets to avoid memory overflow.
|
|
179
|
+
* Returns an AsyncIterable or ReadableStream.
|
|
180
|
+
*/
|
|
181
|
+
findStream(object: string, query: QueryAST, options?: DriverOptions): unknown;
|
|
182
|
+
/**
|
|
183
|
+
* Find a single record by query.
|
|
184
|
+
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
185
|
+
*/
|
|
186
|
+
findOne(object: string, query: QueryAST, options?: DriverOptions): Promise<Record<string, unknown> | null>;
|
|
187
|
+
/**
|
|
188
|
+
* Create a new record.
|
|
189
|
+
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
190
|
+
*/
|
|
191
|
+
create(object: string, data: Record<string, unknown>, options?: DriverOptions): Promise<Record<string, unknown>>;
|
|
192
|
+
/**
|
|
193
|
+
* Update an existing record by ID.
|
|
194
|
+
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
195
|
+
*/
|
|
196
|
+
update(object: string, id: string | number, data: Record<string, unknown>, options?: DriverOptions): Promise<Record<string, unknown>>;
|
|
197
|
+
/**
|
|
198
|
+
* Upsert (Update or Insert) a record.
|
|
199
|
+
*/
|
|
200
|
+
upsert(object: string, data: Record<string, unknown>, conflictKeys?: string[], options?: DriverOptions): Promise<Record<string, unknown>>;
|
|
201
|
+
/**
|
|
202
|
+
* Delete a record by ID.
|
|
203
|
+
* @returns True if deleted, false if not found.
|
|
204
|
+
*/
|
|
205
|
+
delete(object: string, id: string | number, options?: DriverOptions): Promise<boolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Count records matching a query.
|
|
208
|
+
*/
|
|
209
|
+
count(object: string, query?: QueryAST, options?: DriverOptions): Promise<number>;
|
|
210
|
+
/** Create multiple records in a single batch */
|
|
211
|
+
bulkCreate(object: string, dataArray: Record<string, unknown>[], options?: DriverOptions): Promise<Record<string, unknown>[]>;
|
|
212
|
+
/** Update multiple records in a single batch */
|
|
213
|
+
bulkUpdate(object: string, updates: Array<{
|
|
214
|
+
id: string | number;
|
|
215
|
+
data: Record<string, unknown>;
|
|
216
|
+
}>, options?: DriverOptions): Promise<Record<string, unknown>[]>;
|
|
217
|
+
/** Delete multiple records in a single batch */
|
|
218
|
+
bulkDelete(object: string, ids: Array<string | number>, options?: DriverOptions): Promise<void>;
|
|
219
|
+
/** Update multiple records matching a query (optional) */
|
|
220
|
+
updateMany?(object: string, query: QueryAST, data: Record<string, unknown>, options?: DriverOptions): Promise<number>;
|
|
221
|
+
/** Delete multiple records matching a query (optional) */
|
|
222
|
+
deleteMany?(object: string, query: QueryAST, options?: DriverOptions): Promise<number>;
|
|
223
|
+
/**
|
|
224
|
+
* Begin a new database transaction.
|
|
225
|
+
* @returns A transaction handle to pass via `options.transaction`.
|
|
226
|
+
*/
|
|
227
|
+
beginTransaction(options?: {
|
|
228
|
+
isolationLevel?: string;
|
|
229
|
+
}): Promise<unknown>;
|
|
230
|
+
/** Commit the transaction */
|
|
231
|
+
commit(transaction: unknown): Promise<void>;
|
|
232
|
+
/** Rollback the transaction */
|
|
233
|
+
rollback(transaction: unknown): Promise<void>;
|
|
234
|
+
/**
|
|
235
|
+
* Synchronize the database schema with the Object definition.
|
|
236
|
+
* Idempotent: creates tables if missing, adds columns, updates indexes.
|
|
237
|
+
*/
|
|
238
|
+
syncSchema(object: string, schema: unknown, options?: DriverOptions): Promise<void>;
|
|
239
|
+
/** Drop the underlying table or collection (destructive) */
|
|
240
|
+
dropTable(object: string, options?: DriverOptions): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Analyze query performance.
|
|
243
|
+
* Returns execution plan without executing the query (optional).
|
|
244
|
+
*/
|
|
245
|
+
explain?(object: string, query: QueryAST, options?: DriverOptions): Promise<unknown>;
|
|
246
|
+
}
|
|
247
|
+
|
|
128
248
|
/**
|
|
129
249
|
* IHttpServer - Standard HTTP Server Interface
|
|
130
250
|
*
|
|
@@ -1114,10 +1234,12 @@ interface IStorageService {
|
|
|
1114
1234
|
/**
|
|
1115
1235
|
* IMetadataService - Metadata Service Contract
|
|
1116
1236
|
*
|
|
1117
|
-
* Defines the interface for managing object/field definitions in ObjectStack.
|
|
1237
|
+
* Defines the async interface for managing object/field definitions in ObjectStack.
|
|
1118
1238
|
* Concrete implementations (SchemaRegistry, Database-backed, etc.)
|
|
1119
1239
|
* should implement this interface.
|
|
1120
1240
|
*
|
|
1241
|
+
* All methods are async to support database-backed persistence via datasource.
|
|
1242
|
+
*
|
|
1121
1243
|
* Follows Dependency Inversion Principle - plugins depend on this interface,
|
|
1122
1244
|
* not on concrete metadata storage implementations.
|
|
1123
1245
|
*
|
|
@@ -1125,46 +1247,60 @@ interface IStorageService {
|
|
|
1125
1247
|
*/
|
|
1126
1248
|
interface IMetadataService {
|
|
1127
1249
|
/**
|
|
1128
|
-
* Register a metadata item by type
|
|
1250
|
+
* Register/save a metadata item by type
|
|
1129
1251
|
* @param type - Metadata type (e.g. 'object', 'view', 'flow')
|
|
1130
|
-
* @param
|
|
1252
|
+
* @param name - Item name/identifier (snake_case)
|
|
1253
|
+
* @param data - The metadata definition to register
|
|
1131
1254
|
*/
|
|
1132
|
-
register(type: string,
|
|
1255
|
+
register(type: string, name: string, data: unknown): Promise<void>;
|
|
1133
1256
|
/**
|
|
1134
1257
|
* Get a metadata item by type and name
|
|
1135
1258
|
* @param type - Metadata type
|
|
1136
1259
|
* @param name - Item name/identifier
|
|
1137
1260
|
* @returns The metadata definition, or undefined if not found
|
|
1138
1261
|
*/
|
|
1139
|
-
get(type: string, name: string): unknown | undefined
|
|
1262
|
+
get(type: string, name: string): Promise<unknown | undefined>;
|
|
1140
1263
|
/**
|
|
1141
1264
|
* List all metadata items of a given type
|
|
1142
1265
|
* @param type - Metadata type
|
|
1143
1266
|
* @returns Array of metadata definitions
|
|
1144
1267
|
*/
|
|
1145
|
-
list(type: string): unknown[]
|
|
1268
|
+
list(type: string): Promise<unknown[]>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Unregister/remove a metadata item by type and name
|
|
1271
|
+
* @param type - Metadata type
|
|
1272
|
+
* @param name - Item name/identifier
|
|
1273
|
+
*/
|
|
1274
|
+
unregister(type: string, name: string): Promise<void>;
|
|
1146
1275
|
/**
|
|
1147
|
-
*
|
|
1276
|
+
* Check if a metadata item exists
|
|
1148
1277
|
* @param type - Metadata type
|
|
1149
1278
|
* @param name - Item name/identifier
|
|
1279
|
+
* @returns True if the item exists
|
|
1280
|
+
*/
|
|
1281
|
+
exists(type: string, name: string): Promise<boolean>;
|
|
1282
|
+
/**
|
|
1283
|
+
* List all names of metadata items of a given type
|
|
1284
|
+
* @param type - Metadata type
|
|
1285
|
+
* @returns Array of item names
|
|
1150
1286
|
*/
|
|
1151
|
-
|
|
1287
|
+
listNames(type: string): Promise<string[]>;
|
|
1152
1288
|
/**
|
|
1153
1289
|
* Convenience: get an object definition by name
|
|
1154
1290
|
* @param name - Object name (snake_case)
|
|
1155
1291
|
* @returns The object definition, or undefined if not found
|
|
1156
1292
|
*/
|
|
1157
|
-
getObject(name: string): unknown | undefined
|
|
1293
|
+
getObject(name: string): Promise<unknown | undefined>;
|
|
1158
1294
|
/**
|
|
1159
1295
|
* Convenience: list all object definitions
|
|
1160
1296
|
* @returns Array of object definitions
|
|
1161
1297
|
*/
|
|
1162
|
-
listObjects(): unknown[]
|
|
1298
|
+
listObjects(): Promise<unknown[]>;
|
|
1163
1299
|
/**
|
|
1164
1300
|
* Unregister all metadata items from a specific package
|
|
1165
1301
|
* @param packageName - The package name whose items should be removed
|
|
1166
1302
|
*/
|
|
1167
|
-
unregisterPackage?(packageName: string): void
|
|
1303
|
+
unregisterPackage?(packageName: string): Promise<void>;
|
|
1168
1304
|
}
|
|
1169
1305
|
|
|
1170
1306
|
/**
|
|
@@ -1910,6 +2046,7 @@ type index_IAuthService = IAuthService;
|
|
|
1910
2046
|
type index_IAutomationService = IAutomationService;
|
|
1911
2047
|
type index_IBasicServiceRegistry = IBasicServiceRegistry;
|
|
1912
2048
|
type index_ICacheService = ICacheService;
|
|
2049
|
+
type index_IDataDriver = IDataDriver;
|
|
1913
2050
|
type index_IDataEngine = IDataEngine;
|
|
1914
2051
|
type index_IGraphQLService = IGraphQLService;
|
|
1915
2052
|
type index_IHttpRequest = IHttpRequest;
|
|
@@ -1959,7 +2096,7 @@ type index_WorkflowStatus = WorkflowStatus;
|
|
|
1959
2096
|
type index_WorkflowTransition = WorkflowTransition;
|
|
1960
2097
|
type index_WorkflowTransitionResult = WorkflowTransitionResult;
|
|
1961
2098
|
declare namespace index {
|
|
1962
|
-
export type { index_AIMessage as AIMessage, index_AIRequestOptions as AIRequestOptions, index_AIResult as AIResult, index_AnalyticsQuery as AnalyticsQuery, index_AnalyticsResult as AnalyticsResult, index_AuthResult as AuthResult, index_AuthSession as AuthSession, index_AuthUser as AuthUser, index_AutomationContext as AutomationContext, index_AutomationResult as AutomationResult, index_CacheStats as CacheStats, index_CubeMeta as CubeMeta, index_DriverInterface as DriverInterface, index_GraphQLRequest as GraphQLRequest, index_GraphQLResponse as GraphQLResponse, index_HealthStatus as HealthStatus, index_IAIService as IAIService, index_IAdvancedServiceRegistry as IAdvancedServiceRegistry, index_IAnalyticsService as IAnalyticsService, index_IAuthService as IAuthService, index_IAutomationService as IAutomationService, index_IBasicServiceRegistry as IBasicServiceRegistry, index_ICacheService as ICacheService, index_IDataEngine as IDataEngine, index_IGraphQLService as IGraphQLService, index_IHttpRequest as IHttpRequest, index_IHttpResponse as IHttpResponse, index_IHttpServer as IHttpServer, index_II18nService as II18nService, index_IJobService as IJobService, index_IMetadataService as IMetadataService, index_INotificationService as INotificationService, index_IPluginLifecycleEvents as IPluginLifecycleEvents, index_IPluginValidator as IPluginValidator, index_IQueueService as IQueueService, index_IRealtimeService as IRealtimeService, index_ISchemaDriver as ISchemaDriver, index_ISearchService as ISearchService, index_IServiceRegistry as IServiceRegistry, index_IStartupOrchestrator as IStartupOrchestrator, index_IStorageService as IStorageService, index_ITypedEventEmitter as ITypedEventEmitter, index_IUIService as IUIService, index_IWorkflowService as IWorkflowService, index_JobExecution as JobExecution, index_JobHandler as JobHandler, index_JobSchedule as JobSchedule, index_Logger as Logger, index_Middleware as Middleware, index_NotificationChannel as NotificationChannel, index_NotificationMessage as NotificationMessage, index_NotificationResult as NotificationResult, index_Plugin as Plugin, index_PluginStartupResult as PluginStartupResult, index_QueueHandler as QueueHandler, index_QueueMessage as QueueMessage, index_QueuePublishOptions as QueuePublishOptions, index_RealtimeEventHandler as RealtimeEventHandler, index_RealtimeEventPayload as RealtimeEventPayload, index_RealtimeSubscriptionOptions as RealtimeSubscriptionOptions, index_RouteHandler as RouteHandler, index_SearchHit as SearchHit, index_SearchOptions as SearchOptions, index_SearchResult as SearchResult, index_StartupOptions as StartupOptions, index_StorageFileInfo as StorageFileInfo, index_StorageUploadOptions as StorageUploadOptions, index_ValidationResult as ValidationResult, index_WorkflowStatus as WorkflowStatus, index_WorkflowTransition as WorkflowTransition, index_WorkflowTransitionResult as WorkflowTransitionResult };
|
|
2099
|
+
export type { index_AIMessage as AIMessage, index_AIRequestOptions as AIRequestOptions, index_AIResult as AIResult, index_AnalyticsQuery as AnalyticsQuery, index_AnalyticsResult as AnalyticsResult, index_AuthResult as AuthResult, index_AuthSession as AuthSession, index_AuthUser as AuthUser, index_AutomationContext as AutomationContext, index_AutomationResult as AutomationResult, index_CacheStats as CacheStats, index_CubeMeta as CubeMeta, index_DriverInterface as DriverInterface, index_GraphQLRequest as GraphQLRequest, index_GraphQLResponse as GraphQLResponse, index_HealthStatus as HealthStatus, index_IAIService as IAIService, index_IAdvancedServiceRegistry as IAdvancedServiceRegistry, index_IAnalyticsService as IAnalyticsService, index_IAuthService as IAuthService, index_IAutomationService as IAutomationService, index_IBasicServiceRegistry as IBasicServiceRegistry, index_ICacheService as ICacheService, index_IDataDriver as IDataDriver, index_IDataEngine as IDataEngine, index_IGraphQLService as IGraphQLService, index_IHttpRequest as IHttpRequest, index_IHttpResponse as IHttpResponse, index_IHttpServer as IHttpServer, index_II18nService as II18nService, index_IJobService as IJobService, index_IMetadataService as IMetadataService, index_INotificationService as INotificationService, index_IPluginLifecycleEvents as IPluginLifecycleEvents, index_IPluginValidator as IPluginValidator, index_IQueueService as IQueueService, index_IRealtimeService as IRealtimeService, index_ISchemaDriver as ISchemaDriver, index_ISearchService as ISearchService, index_IServiceRegistry as IServiceRegistry, index_IStartupOrchestrator as IStartupOrchestrator, index_IStorageService as IStorageService, index_ITypedEventEmitter as ITypedEventEmitter, index_IUIService as IUIService, index_IWorkflowService as IWorkflowService, index_JobExecution as JobExecution, index_JobHandler as JobHandler, index_JobSchedule as JobSchedule, index_Logger as Logger, index_Middleware as Middleware, index_NotificationChannel as NotificationChannel, index_NotificationMessage as NotificationMessage, index_NotificationResult as NotificationResult, index_Plugin as Plugin, index_PluginStartupResult as PluginStartupResult, index_QueueHandler as QueueHandler, index_QueueMessage as QueueMessage, index_QueuePublishOptions as QueuePublishOptions, index_RealtimeEventHandler as RealtimeEventHandler, index_RealtimeEventPayload as RealtimeEventPayload, index_RealtimeSubscriptionOptions as RealtimeSubscriptionOptions, index_RouteHandler as RouteHandler, index_SearchHit as SearchHit, index_SearchOptions as SearchOptions, index_SearchResult as SearchResult, index_StartupOptions as StartupOptions, index_StorageFileInfo as StorageFileInfo, index_StorageUploadOptions as StorageUploadOptions, index_ValidationResult as ValidationResult, index_WorkflowStatus as WorkflowStatus, index_WorkflowTransition as WorkflowTransition, index_WorkflowTransitionResult as WorkflowTransitionResult };
|
|
1963
2100
|
}
|
|
1964
2101
|
|
|
1965
|
-
export { type
|
|
2102
|
+
export { type CubeMeta as $, type StorageFileInfo as A, type IStorageService as B, type CacheStats as C, type DriverInterface as D, type IMetadataService as E, type AuthUser as F, type AuthSession as G, type HealthStatus as H, type IDataEngine as I, type AuthResult as J, type IAuthService as K, type Logger as L, type Middleware as M, type NotificationChannel as N, type AutomationContext as O, type Plugin as P, type QueuePublishOptions as Q, type RouteHandler as R, type StartupOptions as S, type AutomationResult as T, type IAutomationService as U, type ValidationResult as V, type GraphQLRequest as W, type GraphQLResponse as X, type IGraphQLService as Y, type AnalyticsQuery as Z, type AnalyticsResult as _, type IDataDriver as a, type IAnalyticsService as a0, type RealtimeEventPayload as a1, type RealtimeEventHandler as a2, type RealtimeSubscriptionOptions as a3, type IRealtimeService as a4, type JobSchedule as a5, type JobHandler as a6, type JobExecution as a7, type IJobService as a8, type AIMessage as a9, type AIRequestOptions as aa, type AIResult as ab, type IAIService as ac, type II18nService as ad, type IUIService as ae, type WorkflowTransition as af, type WorkflowTransitionResult as ag, type WorkflowStatus as ah, type IWorkflowService as ai, type IHttpRequest as b, type IHttpResponse as c, type IHttpServer as d, type IServiceRegistry as e, type IBasicServiceRegistry as f, type IAdvancedServiceRegistry as g, type IPluginValidator as h, index as i, type PluginStartupResult as j, type IStartupOrchestrator as k, type IPluginLifecycleEvents as l, type ITypedEventEmitter as m, type ISchemaDriver as n, type ICacheService as o, type SearchOptions as p, type SearchHit as q, type SearchResult as r, type ISearchService as s, type QueueMessage as t, type QueueHandler as u, type IQueueService as v, type NotificationMessage as w, type NotificationResult as x, type INotificationService as y, type StorageUploadOptions as z };
|