@objectstack/spec 0.2.0 → 0.3.1

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.
Files changed (422) hide show
  1. package/README.md +127 -5
  2. package/dist/ai/conversation.zod.d.ts +1059 -0
  3. package/dist/ai/conversation.zod.d.ts.map +1 -0
  4. package/dist/ai/conversation.zod.js +248 -0
  5. package/dist/ai/cost.zod.d.ts +2025 -0
  6. package/dist/ai/cost.zod.d.ts.map +1 -0
  7. package/dist/ai/cost.zod.js +324 -0
  8. package/dist/ai/index.d.ts +22 -0
  9. package/dist/ai/index.d.ts.map +1 -0
  10. package/dist/ai/index.js +37 -0
  11. package/dist/ai/model-registry.zod.d.ts +1389 -0
  12. package/dist/ai/model-registry.zod.d.ts.map +1 -0
  13. package/dist/ai/model-registry.zod.js +164 -0
  14. package/dist/ai/nlq.zod.d.ts +1126 -0
  15. package/dist/ai/nlq.zod.d.ts.map +1 -0
  16. package/dist/ai/nlq.zod.js +246 -0
  17. package/dist/ai/predictive.zod.d.ts +838 -0
  18. package/dist/ai/predictive.zod.d.ts.map +1 -0
  19. package/dist/ai/predictive.zod.js +244 -0
  20. package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
  21. package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
  22. package/dist/ai/rag-pipeline.zod.js +244 -0
  23. package/dist/ai/workflow-automation.zod.d.ts +590 -0
  24. package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
  25. package/dist/ai/workflow-automation.zod.js +197 -0
  26. package/dist/api/contract.zod.d.ts +22 -22
  27. package/dist/api/index.d.ts +9 -0
  28. package/dist/api/index.d.ts.map +1 -0
  29. package/dist/api/index.js +24 -0
  30. package/dist/data/field.zod.d.ts +409 -4
  31. package/dist/data/field.zod.d.ts.map +1 -1
  32. package/dist/data/field.zod.js +28 -2
  33. package/dist/data/index.d.ts +21 -0
  34. package/dist/data/index.d.ts.map +1 -0
  35. package/dist/data/index.js +36 -0
  36. package/dist/data/mapping.zod.d.ts +6 -6
  37. package/dist/data/object.zod.d.ts +80 -10
  38. package/dist/data/object.zod.d.ts.map +1 -1
  39. package/dist/data/query.zod.d.ts +386 -3
  40. package/dist/data/query.zod.d.ts.map +1 -1
  41. package/dist/data/query.zod.js +386 -3
  42. package/dist/data/validation.zod.d.ts +349 -0
  43. package/dist/data/validation.zod.d.ts.map +1 -1
  44. package/dist/data/validation.zod.js +395 -0
  45. package/dist/data/workflow.zod.d.ts +809 -18
  46. package/dist/data/workflow.zod.d.ts.map +1 -1
  47. package/dist/data/workflow.zod.js +115 -7
  48. package/dist/index.d.ts +36 -41
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +64 -49
  51. package/dist/system/api.zod.d.ts +4 -4
  52. package/dist/system/audit.zod.d.ts +1172 -0
  53. package/dist/system/audit.zod.d.ts.map +1 -0
  54. package/dist/system/audit.zod.js +596 -0
  55. package/dist/system/auth-protocol.d.ts +175 -0
  56. package/dist/system/auth-protocol.d.ts.map +1 -0
  57. package/dist/system/auth-protocol.js +60 -0
  58. package/dist/system/auth.zod.d.ts +1089 -57
  59. package/dist/system/auth.zod.d.ts.map +1 -1
  60. package/dist/system/auth.zod.js +135 -1
  61. package/dist/system/driver.zod.d.ts +4 -4
  62. package/dist/system/events.zod.d.ts +177 -0
  63. package/dist/system/events.zod.d.ts.map +1 -0
  64. package/dist/system/events.zod.js +51 -0
  65. package/dist/system/identity.zod.d.ts +234 -180
  66. package/dist/system/identity.zod.d.ts.map +1 -1
  67. package/dist/system/identity.zod.js +168 -51
  68. package/dist/system/index.d.ts +33 -0
  69. package/dist/system/index.d.ts.map +1 -0
  70. package/dist/system/index.js +48 -0
  71. package/dist/system/job.zod.d.ts +237 -0
  72. package/dist/system/job.zod.d.ts.map +1 -0
  73. package/dist/system/job.zod.js +82 -0
  74. package/dist/system/organization.zod.d.ts +179 -0
  75. package/dist/system/organization.zod.d.ts.map +1 -0
  76. package/dist/system/organization.zod.js +129 -0
  77. package/dist/system/realtime.zod.d.ts +135 -0
  78. package/dist/system/realtime.zod.d.ts.map +1 -0
  79. package/dist/system/realtime.zod.js +83 -0
  80. package/dist/system/tenant.zod.d.ts +1151 -0
  81. package/dist/system/tenant.zod.d.ts.map +1 -0
  82. package/dist/system/tenant.zod.js +498 -0
  83. package/dist/system/webhook.zod.d.ts +2 -2
  84. package/dist/ui/action.zod.d.ts +10 -10
  85. package/dist/ui/index.d.ts +17 -0
  86. package/dist/ui/index.d.ts.map +1 -0
  87. package/dist/ui/index.js +32 -0
  88. package/dist/ui/theme.zod.d.ts +18 -18
  89. package/dist/ui/widget.zod.d.ts +40 -5
  90. package/dist/ui/widget.zod.d.ts.map +1 -1
  91. package/json-schema/README.md +127 -0
  92. package/json-schema/ai/AITask.json +123 -0
  93. package/json-schema/ai/AITaskType.json +21 -0
  94. package/json-schema/ai/AIWorkflowAutomation.json +379 -0
  95. package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
  96. package/json-schema/ai/AIWorkflowTrigger.json +18 -0
  97. package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
  98. package/json-schema/ai/BillingPeriod.json +18 -0
  99. package/json-schema/ai/BudgetLimit.json +111 -0
  100. package/json-schema/ai/BudgetStatus.json +91 -0
  101. package/json-schema/ai/BudgetType.json +17 -0
  102. package/json-schema/ai/ChunkingStrategy.json +133 -0
  103. package/json-schema/ai/ConversationAnalytics.json +86 -0
  104. package/json-schema/ai/ConversationContext.json +48 -0
  105. package/json-schema/ai/ConversationMessage.json +209 -0
  106. package/json-schema/ai/ConversationSession.json +458 -0
  107. package/json-schema/ai/ConversationSummary.json +73 -0
  108. package/json-schema/ai/CostAlert.json +107 -0
  109. package/json-schema/ai/CostAlertType.json +16 -0
  110. package/json-schema/ai/CostAnalytics.json +589 -0
  111. package/json-schema/ai/CostBreakdownDimension.json +20 -0
  112. package/json-schema/ai/CostBreakdownEntry.json +60 -0
  113. package/json-schema/ai/CostEntry.json +106 -0
  114. package/json-schema/ai/CostMetricType.json +17 -0
  115. package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
  116. package/json-schema/ai/CostQueryFilters.json +112 -0
  117. package/json-schema/ai/CostReport.json +964 -0
  118. package/json-schema/ai/DocumentChunk.json +97 -0
  119. package/json-schema/ai/DocumentLoaderConfig.json +69 -0
  120. package/json-schema/ai/DocumentMetadata.json +61 -0
  121. package/json-schema/ai/EmbeddingModel.json +57 -0
  122. package/json-schema/ai/Entity.json +55 -0
  123. package/json-schema/ai/EvaluationMetrics.json +64 -0
  124. package/json-schema/ai/FieldSynonymConfig.json +39 -0
  125. package/json-schema/ai/FunctionCall.json +28 -0
  126. package/json-schema/ai/Hyperparameters.json +80 -0
  127. package/json-schema/ai/MessageContent.json +46 -0
  128. package/json-schema/ai/MessageContentType.json +16 -0
  129. package/json-schema/ai/MessagePruningEvent.json +92 -0
  130. package/json-schema/ai/MessageRole.json +16 -0
  131. package/json-schema/ai/ModelCapability.json +47 -0
  132. package/json-schema/ai/ModelConfig.json +181 -0
  133. package/json-schema/ai/ModelDrift.json +73 -0
  134. package/json-schema/ai/ModelFeature.json +71 -0
  135. package/json-schema/ai/ModelLimits.json +45 -0
  136. package/json-schema/ai/ModelPricing.json +28 -0
  137. package/json-schema/ai/ModelProvider.json +19 -0
  138. package/json-schema/ai/ModelRegistry.json +427 -0
  139. package/json-schema/ai/ModelRegistryEntry.json +239 -0
  140. package/json-schema/ai/ModelSelectionCriteria.json +50 -0
  141. package/json-schema/ai/NLQAnalytics.json +106 -0
  142. package/json-schema/ai/NLQFieldMapping.json +40 -0
  143. package/json-schema/ai/NLQModelConfig.json +78 -0
  144. package/json-schema/ai/NLQParseResult.json +252 -0
  145. package/json-schema/ai/NLQRequest.json +110 -0
  146. package/json-schema/ai/NLQResponse.json +288 -0
  147. package/json-schema/ai/NLQTrainingExample.json +120 -0
  148. package/json-schema/ai/PostProcessingAction.json +41 -0
  149. package/json-schema/ai/PredictionRequest.json +39 -0
  150. package/json-schema/ai/PredictionResult.json +82 -0
  151. package/json-schema/ai/PredictiveModel.json +445 -0
  152. package/json-schema/ai/PredictiveModelType.json +18 -0
  153. package/json-schema/ai/PromptTemplate.json +163 -0
  154. package/json-schema/ai/PromptVariable.json +56 -0
  155. package/json-schema/ai/QueryContext.json +72 -0
  156. package/json-schema/ai/QueryIntent.json +21 -0
  157. package/json-schema/ai/QueryTemplate.json +81 -0
  158. package/json-schema/ai/RAGPipelineConfig.json +552 -0
  159. package/json-schema/ai/RAGPipelineStatus.json +66 -0
  160. package/json-schema/ai/RAGQueryRequest.json +64 -0
  161. package/json-schema/ai/RAGQueryResponse.json +108 -0
  162. package/json-schema/ai/RerankingConfig.json +34 -0
  163. package/json-schema/ai/RetrievalStrategy.json +121 -0
  164. package/json-schema/ai/Timeframe.json +68 -0
  165. package/json-schema/ai/TokenBudgetConfig.json +92 -0
  166. package/json-schema/ai/TokenBudgetStrategy.json +16 -0
  167. package/json-schema/ai/TokenUsageStats.json +66 -0
  168. package/json-schema/ai/ToolCall.json +49 -0
  169. package/json-schema/ai/TrainingConfig.json +88 -0
  170. package/json-schema/ai/VectorStoreConfig.json +82 -0
  171. package/json-schema/ai/VectorStoreProvider.json +21 -0
  172. package/json-schema/ai/WorkflowFieldCondition.json +33 -0
  173. package/json-schema/ai/WorkflowSchedule.json +51 -0
  174. package/json-schema/data/CustomScriptAction.json +49 -0
  175. package/json-schema/{Field.json → data/Field.json} +50 -1
  176. package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
  177. package/json-schema/data/HttpCallAction.json +81 -0
  178. package/json-schema/{Object.json → data/Object.json} +50 -1
  179. package/json-schema/data/PushNotificationAction.json +59 -0
  180. package/json-schema/data/SlackMessageAction.json +45 -0
  181. package/json-schema/data/SmsNotificationAction.json +50 -0
  182. package/json-schema/data/TaskCreationAction.json +59 -0
  183. package/json-schema/data/TeamsMessageAction.json +45 -0
  184. package/json-schema/data/WebhookTriggerAction.json +58 -0
  185. package/json-schema/data/WorkflowAction.json +465 -0
  186. package/json-schema/data/WorkflowRule.json +509 -0
  187. package/json-schema/system/Account.json +87 -0
  188. package/json-schema/system/AuditConfig.json +587 -0
  189. package/json-schema/system/AuditEvent.json +232 -0
  190. package/json-schema/system/AuditEventActor.json +48 -0
  191. package/json-schema/system/AuditEventChange.json +25 -0
  192. package/json-schema/system/AuditEventFilter.json +127 -0
  193. package/json-schema/system/AuditEventSeverity.json +19 -0
  194. package/json-schema/system/AuditEventTarget.json +33 -0
  195. package/json-schema/system/AuditEventType.json +53 -0
  196. package/json-schema/system/AuditRetentionPolicy.json +73 -0
  197. package/json-schema/system/AuditStorageConfig.json +60 -0
  198. package/json-schema/{AuthConfig.json → system/AuthConfig.json} +235 -0
  199. package/json-schema/system/CronSchedule.json +29 -0
  200. package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
  201. package/json-schema/system/DatabaseMapping.json +48 -0
  202. package/json-schema/system/EnterpriseAuthConfig.json +172 -0
  203. package/json-schema/system/Event.json +52 -0
  204. package/json-schema/system/EventHandler.json +29 -0
  205. package/json-schema/system/EventMetadata.json +33 -0
  206. package/json-schema/system/EventPersistence.json +25 -0
  207. package/json-schema/system/EventRoute.json +27 -0
  208. package/json-schema/system/IntervalSchedule.json +25 -0
  209. package/json-schema/system/Invitation.json +69 -0
  210. package/json-schema/system/InvitationStatus.json +15 -0
  211. package/json-schema/system/Job.json +127 -0
  212. package/json-schema/system/JobExecution.json +49 -0
  213. package/json-schema/system/JobExecutionStatus.json +15 -0
  214. package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +22 -5
  215. package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
  216. package/json-schema/system/Member.json +46 -0
  217. package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +18 -3
  218. package/json-schema/system/OnceSchedule.json +25 -0
  219. package/json-schema/system/Organization.json +52 -0
  220. package/json-schema/system/Presence.json +40 -0
  221. package/json-schema/system/PresenceStatus.json +14 -0
  222. package/json-schema/system/RealtimeAction.json +14 -0
  223. package/json-schema/system/RealtimeEvent.json +51 -0
  224. package/json-schema/system/RealtimeEventType.json +15 -0
  225. package/json-schema/system/RetryPolicy.json +30 -0
  226. package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
  227. package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +17 -3
  228. package/json-schema/system/Schedule.json +71 -0
  229. package/json-schema/system/Session.json +63 -0
  230. package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +235 -0
  231. package/json-schema/system/Subscription.json +65 -0
  232. package/json-schema/system/SubscriptionEvent.json +32 -0
  233. package/json-schema/system/SuspiciousActivityRule.json +175 -0
  234. package/json-schema/system/Tenant.json +61 -0
  235. package/json-schema/system/TenantIsolationConfig.json +298 -0
  236. package/json-schema/system/TenantIsolationLevel.json +14 -0
  237. package/json-schema/system/TenantQuota.json +27 -0
  238. package/json-schema/system/TenantSecurityPolicy.json +115 -0
  239. package/json-schema/system/TransportProtocol.json +14 -0
  240. package/json-schema/system/User.json +51 -0
  241. package/json-schema/system/VerificationToken.json +36 -0
  242. package/json-schema/{Action.json → ui/Action.json} +4 -1
  243. package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
  244. package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
  245. package/package.json +38 -12
  246. package/json-schema/AuthProtocol.json +0 -17
  247. package/json-schema/AuthProvider.json +0 -171
  248. package/json-schema/AuthenticationConfig.json +0 -601
  249. package/json-schema/AuthenticationProvider.json +0 -617
  250. package/json-schema/MenuItem.json +0 -28
  251. package/json-schema/WorkflowAction.json +0 -84
  252. package/json-schema/WorkflowRule.json +0 -128
  253. /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
  254. /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
  255. /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
  256. /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
  257. /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
  258. /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
  259. /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
  260. /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
  261. /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
  262. /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
  263. /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
  264. /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
  265. /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
  266. /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
  267. /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
  268. /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
  269. /package/json-schema/{Address.json → data/Address.json} +0 -0
  270. /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
  271. /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
  272. /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
  273. /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
  274. /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
  275. /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
  276. /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
  277. /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
  278. /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
  279. /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
  280. /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
  281. /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
  282. /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
  283. /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
  284. /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
  285. /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
  286. /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
  287. /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
  288. /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
  289. /package/json-schema/{Flow.json → data/Flow.json} +0 -0
  290. /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
  291. /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
  292. /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
  293. /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
  294. /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
  295. /package/json-schema/{Index.json → data/Index.json} +0 -0
  296. /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
  297. /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
  298. /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
  299. /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
  300. /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
  301. /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
  302. /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
  303. /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
  304. /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
  305. /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
  306. /package/json-schema/{Query.json → data/Query.json} +0 -0
  307. /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
  308. /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
  309. /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
  310. /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
  311. /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
  312. /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
  313. /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
  314. /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
  315. /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
  316. /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
  317. /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
  318. /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
  319. /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
  320. /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
  321. /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
  322. /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
  323. /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
  324. /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
  325. /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
  326. /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
  327. /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
  328. /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
  329. /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
  330. /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
  331. /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
  332. /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
  333. /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
  334. /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
  335. /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
  336. /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
  337. /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
  338. /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
  339. /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
  340. /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
  341. /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
  342. /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
  343. /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
  344. /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
  345. /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
  346. /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
  347. /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
  348. /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
  349. /package/json-schema/{Feature.json → system/Feature.json} +0 -0
  350. /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
  351. /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
  352. /package/json-schema/{License.json → system/License.json} +0 -0
  353. /package/json-schema/{Locale.json → system/Locale.json} +0 -0
  354. /package/json-schema/{Logger.json → system/Logger.json} +0 -0
  355. /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
  356. /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
  357. /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
  358. /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
  359. /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
  360. /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
  361. /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
  362. /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
  363. /package/json-schema/{Plan.json → system/Plan.json} +0 -0
  364. /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
  365. /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
  366. /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
  367. /package/json-schema/{Policy.json → system/Policy.json} +0 -0
  368. /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
  369. /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
  370. /package/json-schema/{Role.json → system/Role.json} +0 -0
  371. /package/json-schema/{Router.json → system/Router.json} +0 -0
  372. /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
  373. /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
  374. /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
  375. /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
  376. /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
  377. /package/json-schema/{Territory.json → system/Territory.json} +0 -0
  378. /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
  379. /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
  380. /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
  381. /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
  382. /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
  383. /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
  384. /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
  385. /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
  386. /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
  387. /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
  388. /package/json-schema/{App.json → ui/App.json} +0 -0
  389. /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
  390. /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
  391. /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
  392. /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
  393. /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
  394. /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
  395. /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
  396. /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
  397. /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
  398. /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
  399. /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
  400. /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
  401. /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
  402. /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
  403. /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
  404. /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
  405. /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
  406. /package/json-schema/{Page.json → ui/Page.json} +0 -0
  407. /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
  408. /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
  409. /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
  410. /package/json-schema/{Report.json → ui/Report.json} +0 -0
  411. /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
  412. /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
  413. /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
  414. /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
  415. /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
  416. /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
  417. /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
  418. /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
  419. /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
  420. /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
  421. /package/json-schema/{View.json → ui/View.json} +0 -0
  422. /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
@@ -0,0 +1,1126 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Natural Language Query (NLQ) Protocol
4
+ *
5
+ * Transforms natural language queries into ObjectQL AST (Abstract Syntax Tree).
6
+ * Enables business users to query data using natural language instead of writing code.
7
+ */
8
+ /**
9
+ * Query Intent Type
10
+ */
11
+ export declare const QueryIntentSchema: z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>;
12
+ /**
13
+ * Entity Recognition
14
+ */
15
+ export declare const EntitySchema: z.ZodObject<{
16
+ type: z.ZodEnum<["object", "field", "value", "operator", "function", "timeframe"]>;
17
+ text: z.ZodString;
18
+ value: z.ZodAny;
19
+ confidence: z.ZodNumber;
20
+ span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ text: string;
23
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
24
+ confidence: number;
25
+ value?: any;
26
+ span?: [number, number] | undefined;
27
+ }, {
28
+ text: string;
29
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
30
+ confidence: number;
31
+ value?: any;
32
+ span?: [number, number] | undefined;
33
+ }>;
34
+ /**
35
+ * Timeframe Detection
36
+ */
37
+ export declare const TimeframeSchema: z.ZodObject<{
38
+ type: z.ZodEnum<["absolute", "relative"]>;
39
+ start: z.ZodOptional<z.ZodString>;
40
+ end: z.ZodOptional<z.ZodString>;
41
+ relative: z.ZodOptional<z.ZodObject<{
42
+ unit: z.ZodEnum<["hour", "day", "week", "month", "quarter", "year"]>;
43
+ value: z.ZodNumber;
44
+ direction: z.ZodDefault<z.ZodEnum<["past", "future", "current"]>>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ value: number;
47
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
48
+ direction: "past" | "future" | "current";
49
+ }, {
50
+ value: number;
51
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
52
+ direction?: "past" | "future" | "current" | undefined;
53
+ }>>;
54
+ text: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ text: string;
57
+ type: "absolute" | "relative";
58
+ start?: string | undefined;
59
+ end?: string | undefined;
60
+ relative?: {
61
+ value: number;
62
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
63
+ direction: "past" | "future" | "current";
64
+ } | undefined;
65
+ }, {
66
+ text: string;
67
+ type: "absolute" | "relative";
68
+ start?: string | undefined;
69
+ end?: string | undefined;
70
+ relative?: {
71
+ value: number;
72
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
73
+ direction?: "past" | "future" | "current" | undefined;
74
+ } | undefined;
75
+ }>;
76
+ /**
77
+ * NLQ Field Mapping
78
+ * Maps natural language field names to actual object fields
79
+ */
80
+ export declare const NLQFieldMappingSchema: z.ZodObject<{
81
+ naturalLanguage: z.ZodString;
82
+ objectField: z.ZodString;
83
+ object: z.ZodString;
84
+ field: z.ZodString;
85
+ confidence: z.ZodNumber;
86
+ }, "strip", z.ZodTypeAny, {
87
+ object: string;
88
+ field: string;
89
+ confidence: number;
90
+ naturalLanguage: string;
91
+ objectField: string;
92
+ }, {
93
+ object: string;
94
+ field: string;
95
+ confidence: number;
96
+ naturalLanguage: string;
97
+ objectField: string;
98
+ }>;
99
+ /**
100
+ * Query Context
101
+ */
102
+ export declare const QueryContextSchema: z.ZodObject<{
103
+ /** User Information */
104
+ userId: z.ZodOptional<z.ZodString>;
105
+ userRole: z.ZodOptional<z.ZodString>;
106
+ /** Current Context */
107
+ currentObject: z.ZodOptional<z.ZodString>;
108
+ currentRecordId: z.ZodOptional<z.ZodString>;
109
+ /** Conversation History */
110
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
+ query: z.ZodString;
112
+ timestamp: z.ZodString;
113
+ intent: z.ZodOptional<z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ timestamp: string;
116
+ query: string;
117
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
118
+ }, {
119
+ timestamp: string;
120
+ query: string;
121
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
122
+ }>, "many">>;
123
+ /** Preferences */
124
+ defaultLimit: z.ZodDefault<z.ZodNumber>;
125
+ timezone: z.ZodDefault<z.ZodString>;
126
+ locale: z.ZodDefault<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ locale: string;
129
+ timezone: string;
130
+ defaultLimit: number;
131
+ userId?: string | undefined;
132
+ conversationHistory?: {
133
+ timestamp: string;
134
+ query: string;
135
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
136
+ }[] | undefined;
137
+ userRole?: string | undefined;
138
+ currentObject?: string | undefined;
139
+ currentRecordId?: string | undefined;
140
+ }, {
141
+ userId?: string | undefined;
142
+ locale?: string | undefined;
143
+ timezone?: string | undefined;
144
+ conversationHistory?: {
145
+ timestamp: string;
146
+ query: string;
147
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
148
+ }[] | undefined;
149
+ userRole?: string | undefined;
150
+ currentObject?: string | undefined;
151
+ currentRecordId?: string | undefined;
152
+ defaultLimit?: number | undefined;
153
+ }>;
154
+ /**
155
+ * NLQ Parse Result
156
+ */
157
+ export declare const NLQParseResultSchema: z.ZodObject<{
158
+ /** Original Query */
159
+ originalQuery: z.ZodString;
160
+ /** Intent Detection */
161
+ intent: z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>;
162
+ intentConfidence: z.ZodNumber;
163
+ /** Entity Recognition */
164
+ entities: z.ZodArray<z.ZodObject<{
165
+ type: z.ZodEnum<["object", "field", "value", "operator", "function", "timeframe"]>;
166
+ text: z.ZodString;
167
+ value: z.ZodAny;
168
+ confidence: z.ZodNumber;
169
+ span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ text: string;
172
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
173
+ confidence: number;
174
+ value?: any;
175
+ span?: [number, number] | undefined;
176
+ }, {
177
+ text: string;
178
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
179
+ confidence: number;
180
+ value?: any;
181
+ span?: [number, number] | undefined;
182
+ }>, "many">;
183
+ /** Object & Field Resolution */
184
+ targetObject: z.ZodOptional<z.ZodString>;
185
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
+ naturalLanguage: z.ZodString;
187
+ objectField: z.ZodString;
188
+ object: z.ZodString;
189
+ field: z.ZodString;
190
+ confidence: z.ZodNumber;
191
+ }, "strip", z.ZodTypeAny, {
192
+ object: string;
193
+ field: string;
194
+ confidence: number;
195
+ naturalLanguage: string;
196
+ objectField: string;
197
+ }, {
198
+ object: string;
199
+ field: string;
200
+ confidence: number;
201
+ naturalLanguage: string;
202
+ objectField: string;
203
+ }>, "many">>;
204
+ /** Temporal Information */
205
+ timeframe: z.ZodOptional<z.ZodObject<{
206
+ type: z.ZodEnum<["absolute", "relative"]>;
207
+ start: z.ZodOptional<z.ZodString>;
208
+ end: z.ZodOptional<z.ZodString>;
209
+ relative: z.ZodOptional<z.ZodObject<{
210
+ unit: z.ZodEnum<["hour", "day", "week", "month", "quarter", "year"]>;
211
+ value: z.ZodNumber;
212
+ direction: z.ZodDefault<z.ZodEnum<["past", "future", "current"]>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ value: number;
215
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
216
+ direction: "past" | "future" | "current";
217
+ }, {
218
+ value: number;
219
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
220
+ direction?: "past" | "future" | "current" | undefined;
221
+ }>>;
222
+ text: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ text: string;
225
+ type: "absolute" | "relative";
226
+ start?: string | undefined;
227
+ end?: string | undefined;
228
+ relative?: {
229
+ value: number;
230
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
231
+ direction: "past" | "future" | "current";
232
+ } | undefined;
233
+ }, {
234
+ text: string;
235
+ type: "absolute" | "relative";
236
+ start?: string | undefined;
237
+ end?: string | undefined;
238
+ relative?: {
239
+ value: number;
240
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
241
+ direction?: "past" | "future" | "current" | undefined;
242
+ } | undefined;
243
+ }>>;
244
+ /** Query AST */
245
+ ast: z.ZodAny;
246
+ /** Metadata */
247
+ confidence: z.ZodNumber;
248
+ ambiguities: z.ZodOptional<z.ZodArray<z.ZodObject<{
249
+ type: z.ZodString;
250
+ description: z.ZodString;
251
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: string;
254
+ description: string;
255
+ suggestions?: string[] | undefined;
256
+ }, {
257
+ type: string;
258
+ description: string;
259
+ suggestions?: string[] | undefined;
260
+ }>, "many">>;
261
+ /** Alternative Interpretations */
262
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
263
+ interpretation: z.ZodString;
264
+ confidence: z.ZodNumber;
265
+ ast: z.ZodAny;
266
+ }, "strip", z.ZodTypeAny, {
267
+ confidence: number;
268
+ interpretation: string;
269
+ ast?: any;
270
+ }, {
271
+ confidence: number;
272
+ interpretation: string;
273
+ ast?: any;
274
+ }>, "many">>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ confidence: number;
277
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
278
+ originalQuery: string;
279
+ intentConfidence: number;
280
+ entities: {
281
+ text: string;
282
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
283
+ confidence: number;
284
+ value?: any;
285
+ span?: [number, number] | undefined;
286
+ }[];
287
+ fields?: {
288
+ object: string;
289
+ field: string;
290
+ confidence: number;
291
+ naturalLanguage: string;
292
+ objectField: string;
293
+ }[] | undefined;
294
+ targetObject?: string | undefined;
295
+ timeframe?: {
296
+ text: string;
297
+ type: "absolute" | "relative";
298
+ start?: string | undefined;
299
+ end?: string | undefined;
300
+ relative?: {
301
+ value: number;
302
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
303
+ direction: "past" | "future" | "current";
304
+ } | undefined;
305
+ } | undefined;
306
+ ast?: any;
307
+ ambiguities?: {
308
+ type: string;
309
+ description: string;
310
+ suggestions?: string[] | undefined;
311
+ }[] | undefined;
312
+ alternatives?: {
313
+ confidence: number;
314
+ interpretation: string;
315
+ ast?: any;
316
+ }[] | undefined;
317
+ }, {
318
+ confidence: number;
319
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
320
+ originalQuery: string;
321
+ intentConfidence: number;
322
+ entities: {
323
+ text: string;
324
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
325
+ confidence: number;
326
+ value?: any;
327
+ span?: [number, number] | undefined;
328
+ }[];
329
+ fields?: {
330
+ object: string;
331
+ field: string;
332
+ confidence: number;
333
+ naturalLanguage: string;
334
+ objectField: string;
335
+ }[] | undefined;
336
+ targetObject?: string | undefined;
337
+ timeframe?: {
338
+ text: string;
339
+ type: "absolute" | "relative";
340
+ start?: string | undefined;
341
+ end?: string | undefined;
342
+ relative?: {
343
+ value: number;
344
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
345
+ direction?: "past" | "future" | "current" | undefined;
346
+ } | undefined;
347
+ } | undefined;
348
+ ast?: any;
349
+ ambiguities?: {
350
+ type: string;
351
+ description: string;
352
+ suggestions?: string[] | undefined;
353
+ }[] | undefined;
354
+ alternatives?: {
355
+ confidence: number;
356
+ interpretation: string;
357
+ ast?: any;
358
+ }[] | undefined;
359
+ }>;
360
+ /**
361
+ * NLQ Request
362
+ */
363
+ export declare const NLQRequestSchema: z.ZodObject<{
364
+ /** Query */
365
+ query: z.ZodString;
366
+ /** Context */
367
+ context: z.ZodOptional<z.ZodObject<{
368
+ /** User Information */
369
+ userId: z.ZodOptional<z.ZodString>;
370
+ userRole: z.ZodOptional<z.ZodString>;
371
+ /** Current Context */
372
+ currentObject: z.ZodOptional<z.ZodString>;
373
+ currentRecordId: z.ZodOptional<z.ZodString>;
374
+ /** Conversation History */
375
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ query: z.ZodString;
377
+ timestamp: z.ZodString;
378
+ intent: z.ZodOptional<z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ timestamp: string;
381
+ query: string;
382
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
383
+ }, {
384
+ timestamp: string;
385
+ query: string;
386
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
387
+ }>, "many">>;
388
+ /** Preferences */
389
+ defaultLimit: z.ZodDefault<z.ZodNumber>;
390
+ timezone: z.ZodDefault<z.ZodString>;
391
+ locale: z.ZodDefault<z.ZodString>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ locale: string;
394
+ timezone: string;
395
+ defaultLimit: number;
396
+ userId?: string | undefined;
397
+ conversationHistory?: {
398
+ timestamp: string;
399
+ query: string;
400
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
401
+ }[] | undefined;
402
+ userRole?: string | undefined;
403
+ currentObject?: string | undefined;
404
+ currentRecordId?: string | undefined;
405
+ }, {
406
+ userId?: string | undefined;
407
+ locale?: string | undefined;
408
+ timezone?: string | undefined;
409
+ conversationHistory?: {
410
+ timestamp: string;
411
+ query: string;
412
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
413
+ }[] | undefined;
414
+ userRole?: string | undefined;
415
+ currentObject?: string | undefined;
416
+ currentRecordId?: string | undefined;
417
+ defaultLimit?: number | undefined;
418
+ }>>;
419
+ /** Options */
420
+ includeAlternatives: z.ZodDefault<z.ZodBoolean>;
421
+ maxAlternatives: z.ZodDefault<z.ZodNumber>;
422
+ minConfidence: z.ZodDefault<z.ZodNumber>;
423
+ /** Execution */
424
+ executeQuery: z.ZodDefault<z.ZodBoolean>;
425
+ maxResults: z.ZodOptional<z.ZodNumber>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ query: string;
428
+ includeAlternatives: boolean;
429
+ maxAlternatives: number;
430
+ minConfidence: number;
431
+ executeQuery: boolean;
432
+ context?: {
433
+ locale: string;
434
+ timezone: string;
435
+ defaultLimit: number;
436
+ userId?: string | undefined;
437
+ conversationHistory?: {
438
+ timestamp: string;
439
+ query: string;
440
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
441
+ }[] | undefined;
442
+ userRole?: string | undefined;
443
+ currentObject?: string | undefined;
444
+ currentRecordId?: string | undefined;
445
+ } | undefined;
446
+ maxResults?: number | undefined;
447
+ }, {
448
+ query: string;
449
+ context?: {
450
+ userId?: string | undefined;
451
+ locale?: string | undefined;
452
+ timezone?: string | undefined;
453
+ conversationHistory?: {
454
+ timestamp: string;
455
+ query: string;
456
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
457
+ }[] | undefined;
458
+ userRole?: string | undefined;
459
+ currentObject?: string | undefined;
460
+ currentRecordId?: string | undefined;
461
+ defaultLimit?: number | undefined;
462
+ } | undefined;
463
+ includeAlternatives?: boolean | undefined;
464
+ maxAlternatives?: number | undefined;
465
+ minConfidence?: number | undefined;
466
+ executeQuery?: boolean | undefined;
467
+ maxResults?: number | undefined;
468
+ }>;
469
+ /**
470
+ * NLQ Response
471
+ */
472
+ export declare const NLQResponseSchema: z.ZodObject<{
473
+ /** Parse Result */
474
+ parseResult: z.ZodObject<{
475
+ /** Original Query */
476
+ originalQuery: z.ZodString;
477
+ /** Intent Detection */
478
+ intent: z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>;
479
+ intentConfidence: z.ZodNumber;
480
+ /** Entity Recognition */
481
+ entities: z.ZodArray<z.ZodObject<{
482
+ type: z.ZodEnum<["object", "field", "value", "operator", "function", "timeframe"]>;
483
+ text: z.ZodString;
484
+ value: z.ZodAny;
485
+ confidence: z.ZodNumber;
486
+ span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ text: string;
489
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
490
+ confidence: number;
491
+ value?: any;
492
+ span?: [number, number] | undefined;
493
+ }, {
494
+ text: string;
495
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
496
+ confidence: number;
497
+ value?: any;
498
+ span?: [number, number] | undefined;
499
+ }>, "many">;
500
+ /** Object & Field Resolution */
501
+ targetObject: z.ZodOptional<z.ZodString>;
502
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
503
+ naturalLanguage: z.ZodString;
504
+ objectField: z.ZodString;
505
+ object: z.ZodString;
506
+ field: z.ZodString;
507
+ confidence: z.ZodNumber;
508
+ }, "strip", z.ZodTypeAny, {
509
+ object: string;
510
+ field: string;
511
+ confidence: number;
512
+ naturalLanguage: string;
513
+ objectField: string;
514
+ }, {
515
+ object: string;
516
+ field: string;
517
+ confidence: number;
518
+ naturalLanguage: string;
519
+ objectField: string;
520
+ }>, "many">>;
521
+ /** Temporal Information */
522
+ timeframe: z.ZodOptional<z.ZodObject<{
523
+ type: z.ZodEnum<["absolute", "relative"]>;
524
+ start: z.ZodOptional<z.ZodString>;
525
+ end: z.ZodOptional<z.ZodString>;
526
+ relative: z.ZodOptional<z.ZodObject<{
527
+ unit: z.ZodEnum<["hour", "day", "week", "month", "quarter", "year"]>;
528
+ value: z.ZodNumber;
529
+ direction: z.ZodDefault<z.ZodEnum<["past", "future", "current"]>>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ value: number;
532
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
533
+ direction: "past" | "future" | "current";
534
+ }, {
535
+ value: number;
536
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
537
+ direction?: "past" | "future" | "current" | undefined;
538
+ }>>;
539
+ text: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ text: string;
542
+ type: "absolute" | "relative";
543
+ start?: string | undefined;
544
+ end?: string | undefined;
545
+ relative?: {
546
+ value: number;
547
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
548
+ direction: "past" | "future" | "current";
549
+ } | undefined;
550
+ }, {
551
+ text: string;
552
+ type: "absolute" | "relative";
553
+ start?: string | undefined;
554
+ end?: string | undefined;
555
+ relative?: {
556
+ value: number;
557
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
558
+ direction?: "past" | "future" | "current" | undefined;
559
+ } | undefined;
560
+ }>>;
561
+ /** Query AST */
562
+ ast: z.ZodAny;
563
+ /** Metadata */
564
+ confidence: z.ZodNumber;
565
+ ambiguities: z.ZodOptional<z.ZodArray<z.ZodObject<{
566
+ type: z.ZodString;
567
+ description: z.ZodString;
568
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ type: string;
571
+ description: string;
572
+ suggestions?: string[] | undefined;
573
+ }, {
574
+ type: string;
575
+ description: string;
576
+ suggestions?: string[] | undefined;
577
+ }>, "many">>;
578
+ /** Alternative Interpretations */
579
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
580
+ interpretation: z.ZodString;
581
+ confidence: z.ZodNumber;
582
+ ast: z.ZodAny;
583
+ }, "strip", z.ZodTypeAny, {
584
+ confidence: number;
585
+ interpretation: string;
586
+ ast?: any;
587
+ }, {
588
+ confidence: number;
589
+ interpretation: string;
590
+ ast?: any;
591
+ }>, "many">>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ confidence: number;
594
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
595
+ originalQuery: string;
596
+ intentConfidence: number;
597
+ entities: {
598
+ text: string;
599
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
600
+ confidence: number;
601
+ value?: any;
602
+ span?: [number, number] | undefined;
603
+ }[];
604
+ fields?: {
605
+ object: string;
606
+ field: string;
607
+ confidence: number;
608
+ naturalLanguage: string;
609
+ objectField: string;
610
+ }[] | undefined;
611
+ targetObject?: string | undefined;
612
+ timeframe?: {
613
+ text: string;
614
+ type: "absolute" | "relative";
615
+ start?: string | undefined;
616
+ end?: string | undefined;
617
+ relative?: {
618
+ value: number;
619
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
620
+ direction: "past" | "future" | "current";
621
+ } | undefined;
622
+ } | undefined;
623
+ ast?: any;
624
+ ambiguities?: {
625
+ type: string;
626
+ description: string;
627
+ suggestions?: string[] | undefined;
628
+ }[] | undefined;
629
+ alternatives?: {
630
+ confidence: number;
631
+ interpretation: string;
632
+ ast?: any;
633
+ }[] | undefined;
634
+ }, {
635
+ confidence: number;
636
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
637
+ originalQuery: string;
638
+ intentConfidence: number;
639
+ entities: {
640
+ text: string;
641
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
642
+ confidence: number;
643
+ value?: any;
644
+ span?: [number, number] | undefined;
645
+ }[];
646
+ fields?: {
647
+ object: string;
648
+ field: string;
649
+ confidence: number;
650
+ naturalLanguage: string;
651
+ objectField: string;
652
+ }[] | undefined;
653
+ targetObject?: string | undefined;
654
+ timeframe?: {
655
+ text: string;
656
+ type: "absolute" | "relative";
657
+ start?: string | undefined;
658
+ end?: string | undefined;
659
+ relative?: {
660
+ value: number;
661
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
662
+ direction?: "past" | "future" | "current" | undefined;
663
+ } | undefined;
664
+ } | undefined;
665
+ ast?: any;
666
+ ambiguities?: {
667
+ type: string;
668
+ description: string;
669
+ suggestions?: string[] | undefined;
670
+ }[] | undefined;
671
+ alternatives?: {
672
+ confidence: number;
673
+ interpretation: string;
674
+ ast?: any;
675
+ }[] | undefined;
676
+ }>;
677
+ /** Query Results (if executeQuery = true) */
678
+ results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
679
+ totalCount: z.ZodOptional<z.ZodNumber>;
680
+ /** Execution Metadata */
681
+ executionTime: z.ZodOptional<z.ZodNumber>;
682
+ needsClarification: z.ZodBoolean;
683
+ /** Suggestions */
684
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ parseResult: {
687
+ confidence: number;
688
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
689
+ originalQuery: string;
690
+ intentConfidence: number;
691
+ entities: {
692
+ text: string;
693
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
694
+ confidence: number;
695
+ value?: any;
696
+ span?: [number, number] | undefined;
697
+ }[];
698
+ fields?: {
699
+ object: string;
700
+ field: string;
701
+ confidence: number;
702
+ naturalLanguage: string;
703
+ objectField: string;
704
+ }[] | undefined;
705
+ targetObject?: string | undefined;
706
+ timeframe?: {
707
+ text: string;
708
+ type: "absolute" | "relative";
709
+ start?: string | undefined;
710
+ end?: string | undefined;
711
+ relative?: {
712
+ value: number;
713
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
714
+ direction: "past" | "future" | "current";
715
+ } | undefined;
716
+ } | undefined;
717
+ ast?: any;
718
+ ambiguities?: {
719
+ type: string;
720
+ description: string;
721
+ suggestions?: string[] | undefined;
722
+ }[] | undefined;
723
+ alternatives?: {
724
+ confidence: number;
725
+ interpretation: string;
726
+ ast?: any;
727
+ }[] | undefined;
728
+ };
729
+ needsClarification: boolean;
730
+ results?: Record<string, any>[] | undefined;
731
+ suggestions?: string[] | undefined;
732
+ totalCount?: number | undefined;
733
+ executionTime?: number | undefined;
734
+ }, {
735
+ parseResult: {
736
+ confidence: number;
737
+ intent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
738
+ originalQuery: string;
739
+ intentConfidence: number;
740
+ entities: {
741
+ text: string;
742
+ type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
743
+ confidence: number;
744
+ value?: any;
745
+ span?: [number, number] | undefined;
746
+ }[];
747
+ fields?: {
748
+ object: string;
749
+ field: string;
750
+ confidence: number;
751
+ naturalLanguage: string;
752
+ objectField: string;
753
+ }[] | undefined;
754
+ targetObject?: string | undefined;
755
+ timeframe?: {
756
+ text: string;
757
+ type: "absolute" | "relative";
758
+ start?: string | undefined;
759
+ end?: string | undefined;
760
+ relative?: {
761
+ value: number;
762
+ unit: "day" | "week" | "month" | "quarter" | "year" | "hour";
763
+ direction?: "past" | "future" | "current" | undefined;
764
+ } | undefined;
765
+ } | undefined;
766
+ ast?: any;
767
+ ambiguities?: {
768
+ type: string;
769
+ description: string;
770
+ suggestions?: string[] | undefined;
771
+ }[] | undefined;
772
+ alternatives?: {
773
+ confidence: number;
774
+ interpretation: string;
775
+ ast?: any;
776
+ }[] | undefined;
777
+ };
778
+ needsClarification: boolean;
779
+ results?: Record<string, any>[] | undefined;
780
+ suggestions?: string[] | undefined;
781
+ totalCount?: number | undefined;
782
+ executionTime?: number | undefined;
783
+ }>;
784
+ /**
785
+ * NLQ Training Example
786
+ */
787
+ export declare const NLQTrainingExampleSchema: z.ZodObject<{
788
+ /** Input */
789
+ query: z.ZodString;
790
+ context: z.ZodOptional<z.ZodObject<{
791
+ /** User Information */
792
+ userId: z.ZodOptional<z.ZodString>;
793
+ userRole: z.ZodOptional<z.ZodString>;
794
+ /** Current Context */
795
+ currentObject: z.ZodOptional<z.ZodString>;
796
+ currentRecordId: z.ZodOptional<z.ZodString>;
797
+ /** Conversation History */
798
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ query: z.ZodString;
800
+ timestamp: z.ZodString;
801
+ intent: z.ZodOptional<z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ timestamp: string;
804
+ query: string;
805
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
806
+ }, {
807
+ timestamp: string;
808
+ query: string;
809
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
810
+ }>, "many">>;
811
+ /** Preferences */
812
+ defaultLimit: z.ZodDefault<z.ZodNumber>;
813
+ timezone: z.ZodDefault<z.ZodString>;
814
+ locale: z.ZodDefault<z.ZodString>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ locale: string;
817
+ timezone: string;
818
+ defaultLimit: number;
819
+ userId?: string | undefined;
820
+ conversationHistory?: {
821
+ timestamp: string;
822
+ query: string;
823
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
824
+ }[] | undefined;
825
+ userRole?: string | undefined;
826
+ currentObject?: string | undefined;
827
+ currentRecordId?: string | undefined;
828
+ }, {
829
+ userId?: string | undefined;
830
+ locale?: string | undefined;
831
+ timezone?: string | undefined;
832
+ conversationHistory?: {
833
+ timestamp: string;
834
+ query: string;
835
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
836
+ }[] | undefined;
837
+ userRole?: string | undefined;
838
+ currentObject?: string | undefined;
839
+ currentRecordId?: string | undefined;
840
+ defaultLimit?: number | undefined;
841
+ }>>;
842
+ /** Expected Output */
843
+ expectedIntent: z.ZodEnum<["select", "aggregate", "filter", "sort", "compare", "trend", "insight", "create", "update", "delete"]>;
844
+ expectedObject: z.ZodOptional<z.ZodString>;
845
+ expectedAST: z.ZodAny;
846
+ /** Metadata */
847
+ category: z.ZodOptional<z.ZodString>;
848
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
+ notes: z.ZodOptional<z.ZodString>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ query: string;
852
+ expectedIntent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
853
+ context?: {
854
+ locale: string;
855
+ timezone: string;
856
+ defaultLimit: number;
857
+ userId?: string | undefined;
858
+ conversationHistory?: {
859
+ timestamp: string;
860
+ query: string;
861
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
862
+ }[] | undefined;
863
+ userRole?: string | undefined;
864
+ currentObject?: string | undefined;
865
+ currentRecordId?: string | undefined;
866
+ } | undefined;
867
+ tags?: string[] | undefined;
868
+ category?: string | undefined;
869
+ expectedObject?: string | undefined;
870
+ expectedAST?: any;
871
+ notes?: string | undefined;
872
+ }, {
873
+ query: string;
874
+ expectedIntent: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight";
875
+ context?: {
876
+ userId?: string | undefined;
877
+ locale?: string | undefined;
878
+ timezone?: string | undefined;
879
+ conversationHistory?: {
880
+ timestamp: string;
881
+ query: string;
882
+ intent?: "select" | "sort" | "filter" | "create" | "update" | "delete" | "aggregate" | "compare" | "trend" | "insight" | undefined;
883
+ }[] | undefined;
884
+ userRole?: string | undefined;
885
+ currentObject?: string | undefined;
886
+ currentRecordId?: string | undefined;
887
+ defaultLimit?: number | undefined;
888
+ } | undefined;
889
+ tags?: string[] | undefined;
890
+ category?: string | undefined;
891
+ expectedObject?: string | undefined;
892
+ expectedAST?: any;
893
+ notes?: string | undefined;
894
+ }>;
895
+ /**
896
+ * NLQ Model Configuration
897
+ */
898
+ export declare const NLQModelConfigSchema: z.ZodObject<{
899
+ /** Model */
900
+ modelId: z.ZodString;
901
+ /** Prompt Engineering */
902
+ systemPrompt: z.ZodOptional<z.ZodString>;
903
+ includeSchema: z.ZodDefault<z.ZodBoolean>;
904
+ includeExamples: z.ZodDefault<z.ZodBoolean>;
905
+ /** Intent Detection */
906
+ enableIntentDetection: z.ZodDefault<z.ZodBoolean>;
907
+ intentThreshold: z.ZodDefault<z.ZodNumber>;
908
+ /** Entity Recognition */
909
+ enableEntityRecognition: z.ZodDefault<z.ZodBoolean>;
910
+ entityRecognitionModel: z.ZodOptional<z.ZodString>;
911
+ /** Field Resolution */
912
+ enableFuzzyMatching: z.ZodDefault<z.ZodBoolean>;
913
+ fuzzyMatchThreshold: z.ZodDefault<z.ZodNumber>;
914
+ /** Temporal Processing */
915
+ enableTimeframeDetection: z.ZodDefault<z.ZodBoolean>;
916
+ defaultTimeframe: z.ZodOptional<z.ZodString>;
917
+ /** Performance */
918
+ enableCaching: z.ZodDefault<z.ZodBoolean>;
919
+ cacheTTL: z.ZodDefault<z.ZodNumber>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ modelId: string;
922
+ cacheTTL: number;
923
+ includeSchema: boolean;
924
+ includeExamples: boolean;
925
+ enableIntentDetection: boolean;
926
+ intentThreshold: number;
927
+ enableEntityRecognition: boolean;
928
+ enableFuzzyMatching: boolean;
929
+ fuzzyMatchThreshold: number;
930
+ enableTimeframeDetection: boolean;
931
+ enableCaching: boolean;
932
+ systemPrompt?: string | undefined;
933
+ entityRecognitionModel?: string | undefined;
934
+ defaultTimeframe?: string | undefined;
935
+ }, {
936
+ modelId: string;
937
+ cacheTTL?: number | undefined;
938
+ systemPrompt?: string | undefined;
939
+ includeSchema?: boolean | undefined;
940
+ includeExamples?: boolean | undefined;
941
+ enableIntentDetection?: boolean | undefined;
942
+ intentThreshold?: number | undefined;
943
+ enableEntityRecognition?: boolean | undefined;
944
+ entityRecognitionModel?: string | undefined;
945
+ enableFuzzyMatching?: boolean | undefined;
946
+ fuzzyMatchThreshold?: number | undefined;
947
+ enableTimeframeDetection?: boolean | undefined;
948
+ defaultTimeframe?: string | undefined;
949
+ enableCaching?: boolean | undefined;
950
+ }>;
951
+ /**
952
+ * NLQ Analytics
953
+ */
954
+ export declare const NLQAnalyticsSchema: z.ZodObject<{
955
+ /** Query Metrics */
956
+ totalQueries: z.ZodNumber;
957
+ successfulQueries: z.ZodNumber;
958
+ failedQueries: z.ZodNumber;
959
+ averageConfidence: z.ZodNumber;
960
+ /** Intent Distribution */
961
+ intentDistribution: z.ZodRecord<z.ZodString, z.ZodNumber>;
962
+ /** Common Patterns */
963
+ topQueries: z.ZodArray<z.ZodObject<{
964
+ query: z.ZodString;
965
+ count: z.ZodNumber;
966
+ averageConfidence: z.ZodNumber;
967
+ }, "strip", z.ZodTypeAny, {
968
+ count: number;
969
+ query: string;
970
+ averageConfidence: number;
971
+ }, {
972
+ count: number;
973
+ query: string;
974
+ averageConfidence: number;
975
+ }>, "many">;
976
+ /** Performance */
977
+ averageParseTime: z.ZodNumber;
978
+ averageExecutionTime: z.ZodOptional<z.ZodNumber>;
979
+ /** Issues */
980
+ lowConfidenceQueries: z.ZodArray<z.ZodObject<{
981
+ query: z.ZodString;
982
+ confidence: z.ZodNumber;
983
+ timestamp: z.ZodString;
984
+ }, "strip", z.ZodTypeAny, {
985
+ timestamp: string;
986
+ query: string;
987
+ confidence: number;
988
+ }, {
989
+ timestamp: string;
990
+ query: string;
991
+ confidence: number;
992
+ }>, "many">;
993
+ /** Timeframe */
994
+ startDate: z.ZodString;
995
+ endDate: z.ZodString;
996
+ }, "strip", z.ZodTypeAny, {
997
+ startDate: string;
998
+ endDate: string;
999
+ totalQueries: number;
1000
+ successfulQueries: number;
1001
+ failedQueries: number;
1002
+ averageConfidence: number;
1003
+ intentDistribution: Record<string, number>;
1004
+ topQueries: {
1005
+ count: number;
1006
+ query: string;
1007
+ averageConfidence: number;
1008
+ }[];
1009
+ averageParseTime: number;
1010
+ lowConfidenceQueries: {
1011
+ timestamp: string;
1012
+ query: string;
1013
+ confidence: number;
1014
+ }[];
1015
+ averageExecutionTime?: number | undefined;
1016
+ }, {
1017
+ startDate: string;
1018
+ endDate: string;
1019
+ totalQueries: number;
1020
+ successfulQueries: number;
1021
+ failedQueries: number;
1022
+ averageConfidence: number;
1023
+ intentDistribution: Record<string, number>;
1024
+ topQueries: {
1025
+ count: number;
1026
+ query: string;
1027
+ averageConfidence: number;
1028
+ }[];
1029
+ averageParseTime: number;
1030
+ lowConfidenceQueries: {
1031
+ timestamp: string;
1032
+ query: string;
1033
+ confidence: number;
1034
+ }[];
1035
+ averageExecutionTime?: number | undefined;
1036
+ }>;
1037
+ /**
1038
+ * Field Synonym Configuration
1039
+ */
1040
+ export declare const FieldSynonymConfigSchema: z.ZodObject<{
1041
+ object: z.ZodString;
1042
+ field: z.ZodString;
1043
+ synonyms: z.ZodArray<z.ZodString, "many">;
1044
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ object: string;
1047
+ field: string;
1048
+ synonyms: string[];
1049
+ examples?: string[] | undefined;
1050
+ }, {
1051
+ object: string;
1052
+ field: string;
1053
+ synonyms: string[];
1054
+ examples?: string[] | undefined;
1055
+ }>;
1056
+ /**
1057
+ * Query Template
1058
+ */
1059
+ export declare const QueryTemplateSchema: z.ZodObject<{
1060
+ id: z.ZodString;
1061
+ name: z.ZodString;
1062
+ label: z.ZodString;
1063
+ /** Template */
1064
+ pattern: z.ZodString;
1065
+ variables: z.ZodArray<z.ZodObject<{
1066
+ name: z.ZodString;
1067
+ type: z.ZodEnum<["object", "field", "value", "timeframe"]>;
1068
+ required: z.ZodDefault<z.ZodBoolean>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ type: "object" | "value" | "field" | "timeframe";
1071
+ name: string;
1072
+ required: boolean;
1073
+ }, {
1074
+ type: "object" | "value" | "field" | "timeframe";
1075
+ name: string;
1076
+ required?: boolean | undefined;
1077
+ }>, "many">;
1078
+ /** Generated AST */
1079
+ astTemplate: z.ZodAny;
1080
+ /** Metadata */
1081
+ category: z.ZodOptional<z.ZodString>;
1082
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1083
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ label: string;
1086
+ name: string;
1087
+ id: string;
1088
+ variables: {
1089
+ type: "object" | "value" | "field" | "timeframe";
1090
+ name: string;
1091
+ required: boolean;
1092
+ }[];
1093
+ pattern: string;
1094
+ tags?: string[] | undefined;
1095
+ category?: string | undefined;
1096
+ examples?: string[] | undefined;
1097
+ astTemplate?: any;
1098
+ }, {
1099
+ label: string;
1100
+ name: string;
1101
+ id: string;
1102
+ variables: {
1103
+ type: "object" | "value" | "field" | "timeframe";
1104
+ name: string;
1105
+ required?: boolean | undefined;
1106
+ }[];
1107
+ pattern: string;
1108
+ tags?: string[] | undefined;
1109
+ category?: string | undefined;
1110
+ examples?: string[] | undefined;
1111
+ astTemplate?: any;
1112
+ }>;
1113
+ export type QueryIntent = z.infer<typeof QueryIntentSchema>;
1114
+ export type Entity = z.infer<typeof EntitySchema>;
1115
+ export type Timeframe = z.infer<typeof TimeframeSchema>;
1116
+ export type NLQFieldMapping = z.infer<typeof NLQFieldMappingSchema>;
1117
+ export type QueryContext = z.infer<typeof QueryContextSchema>;
1118
+ export type NLQParseResult = z.infer<typeof NLQParseResultSchema>;
1119
+ export type NLQRequest = z.infer<typeof NLQRequestSchema>;
1120
+ export type NLQResponse = z.infer<typeof NLQResponseSchema>;
1121
+ export type NLQTrainingExample = z.infer<typeof NLQTrainingExampleSchema>;
1122
+ export type NLQModelConfig = z.infer<typeof NLQModelConfigSchema>;
1123
+ export type NLQAnalytics = z.infer<typeof NLQAnalyticsSchema>;
1124
+ export type FieldSynonymConfig = z.infer<typeof FieldSynonymConfigSchema>;
1125
+ export type QueryTemplate = z.infer<typeof QueryTemplateSchema>;
1126
+ //# sourceMappingURL=nlq.zod.d.ts.map