@objectstack/spec 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +127 -5
  2. package/dist/ai/index.d.ts +14 -0
  3. package/dist/ai/index.d.ts.map +1 -0
  4. package/dist/ai/index.js +29 -0
  5. package/dist/ai/model-registry.zod.d.ts +1389 -0
  6. package/dist/ai/model-registry.zod.d.ts.map +1 -0
  7. package/dist/ai/model-registry.zod.js +164 -0
  8. package/dist/ai/nlq.zod.d.ts +1126 -0
  9. package/dist/ai/nlq.zod.d.ts.map +1 -0
  10. package/dist/ai/nlq.zod.js +246 -0
  11. package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
  12. package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
  13. package/dist/ai/rag-pipeline.zod.js +244 -0
  14. package/dist/api/index.d.ts +9 -0
  15. package/dist/api/index.d.ts.map +1 -0
  16. package/dist/api/index.js +24 -0
  17. package/dist/data/index.d.ts +21 -0
  18. package/dist/data/index.d.ts.map +1 -0
  19. package/dist/data/index.js +36 -0
  20. package/dist/data/query.zod.d.ts +386 -3
  21. package/dist/data/query.zod.d.ts.map +1 -1
  22. package/dist/data/query.zod.js +386 -3
  23. package/dist/data/validation.zod.d.ts +349 -0
  24. package/dist/data/validation.zod.d.ts.map +1 -1
  25. package/dist/data/validation.zod.js +395 -0
  26. package/dist/index.d.ts +36 -41
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +64 -49
  29. package/dist/system/auth-protocol.d.ts +175 -0
  30. package/dist/system/auth-protocol.d.ts.map +1 -0
  31. package/dist/system/auth-protocol.js +60 -0
  32. package/dist/system/auth.zod.d.ts +1097 -65
  33. package/dist/system/auth.zod.d.ts.map +1 -1
  34. package/dist/system/auth.zod.js +135 -1
  35. package/dist/system/identity.zod.d.ts +234 -180
  36. package/dist/system/identity.zod.d.ts.map +1 -1
  37. package/dist/system/identity.zod.js +168 -51
  38. package/dist/system/index.d.ts +28 -0
  39. package/dist/system/index.d.ts.map +1 -0
  40. package/dist/system/index.js +43 -0
  41. package/dist/system/manifest.zod.d.ts +10 -10
  42. package/dist/system/organization.zod.d.ts +179 -0
  43. package/dist/system/organization.zod.d.ts.map +1 -0
  44. package/dist/system/organization.zod.js +129 -0
  45. package/dist/ui/action.zod.d.ts +2 -2
  46. package/dist/ui/index.d.ts +17 -0
  47. package/dist/ui/index.d.ts.map +1 -0
  48. package/dist/ui/index.js +32 -0
  49. package/dist/ui/theme.zod.d.ts +6 -6
  50. package/json-schema/Account.json +87 -0
  51. package/json-schema/AuthConfig.json +235 -0
  52. package/json-schema/ChunkingStrategy.json +133 -0
  53. package/json-schema/DatabaseMapping.json +48 -0
  54. package/json-schema/DocumentChunk.json +97 -0
  55. package/json-schema/DocumentLoaderConfig.json +69 -0
  56. package/json-schema/DocumentMetadata.json +61 -0
  57. package/json-schema/EmbeddingModel.json +57 -0
  58. package/json-schema/EnterpriseAuthConfig.json +172 -0
  59. package/json-schema/Entity.json +55 -0
  60. package/json-schema/FieldSynonymConfig.json +39 -0
  61. package/json-schema/Invitation.json +69 -0
  62. package/json-schema/InvitationStatus.json +15 -0
  63. package/json-schema/LDAPConfig.json +22 -5
  64. package/json-schema/Member.json +46 -0
  65. package/json-schema/ModelCapability.json +47 -0
  66. package/json-schema/ModelConfig.json +181 -0
  67. package/json-schema/ModelLimits.json +45 -0
  68. package/json-schema/ModelPricing.json +28 -0
  69. package/json-schema/ModelProvider.json +19 -0
  70. package/json-schema/ModelRegistry.json +427 -0
  71. package/json-schema/ModelRegistryEntry.json +239 -0
  72. package/json-schema/ModelSelectionCriteria.json +50 -0
  73. package/json-schema/NLQAnalytics.json +106 -0
  74. package/json-schema/NLQFieldMapping.json +40 -0
  75. package/json-schema/NLQModelConfig.json +78 -0
  76. package/json-schema/NLQParseResult.json +252 -0
  77. package/json-schema/NLQRequest.json +110 -0
  78. package/json-schema/NLQResponse.json +288 -0
  79. package/json-schema/NLQTrainingExample.json +120 -0
  80. package/json-schema/OIDCConfig.json +18 -3
  81. package/json-schema/Organization.json +52 -0
  82. package/json-schema/PromptTemplate.json +163 -0
  83. package/json-schema/PromptVariable.json +56 -0
  84. package/json-schema/QueryContext.json +72 -0
  85. package/json-schema/QueryIntent.json +21 -0
  86. package/json-schema/QueryTemplate.json +81 -0
  87. package/json-schema/RAGPipelineConfig.json +552 -0
  88. package/json-schema/RAGPipelineStatus.json +66 -0
  89. package/json-schema/RAGQueryRequest.json +64 -0
  90. package/json-schema/RAGQueryResponse.json +108 -0
  91. package/json-schema/RerankingConfig.json +34 -0
  92. package/json-schema/RetrievalStrategy.json +121 -0
  93. package/json-schema/SAMLConfig.json +17 -3
  94. package/json-schema/Session.json +63 -0
  95. package/json-schema/StandardAuthProvider.json +235 -0
  96. package/json-schema/Timeframe.json +68 -0
  97. package/json-schema/User.json +51 -0
  98. package/json-schema/VectorStoreConfig.json +82 -0
  99. package/json-schema/VectorStoreProvider.json +21 -0
  100. package/json-schema/VerificationToken.json +36 -0
  101. package/package.json +27 -1
  102. package/json-schema/AuthProtocol.json +0 -17
  103. package/json-schema/AuthProvider.json +0 -171
@@ -0,0 +1,56 @@
1
+ {
2
+ "$ref": "#/definitions/PromptVariable",
3
+ "definitions": {
4
+ "PromptVariable": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "Variable name (e.g., \"user_name\", \"context\")"
10
+ },
11
+ "type": {
12
+ "type": "string",
13
+ "enum": [
14
+ "string",
15
+ "number",
16
+ "boolean",
17
+ "object",
18
+ "array"
19
+ ],
20
+ "default": "string"
21
+ },
22
+ "required": {
23
+ "type": "boolean",
24
+ "default": false
25
+ },
26
+ "defaultValue": {},
27
+ "description": {
28
+ "type": "string"
29
+ },
30
+ "validation": {
31
+ "type": "object",
32
+ "properties": {
33
+ "minLength": {
34
+ "type": "number"
35
+ },
36
+ "maxLength": {
37
+ "type": "number"
38
+ },
39
+ "pattern": {
40
+ "type": "string"
41
+ },
42
+ "enum": {
43
+ "type": "array"
44
+ }
45
+ },
46
+ "additionalProperties": false
47
+ }
48
+ },
49
+ "required": [
50
+ "name"
51
+ ],
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "$schema": "http://json-schema.org/draft-07/schema#"
56
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$ref": "#/definitions/QueryContext",
3
+ "definitions": {
4
+ "QueryContext": {
5
+ "type": "object",
6
+ "properties": {
7
+ "userId": {
8
+ "type": "string"
9
+ },
10
+ "userRole": {
11
+ "type": "string"
12
+ },
13
+ "currentObject": {
14
+ "type": "string",
15
+ "description": "Current object being viewed"
16
+ },
17
+ "currentRecordId": {
18
+ "type": "string",
19
+ "description": "Current record ID"
20
+ },
21
+ "conversationHistory": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "query": {
27
+ "type": "string"
28
+ },
29
+ "timestamp": {
30
+ "type": "string"
31
+ },
32
+ "intent": {
33
+ "type": "string",
34
+ "enum": [
35
+ "select",
36
+ "aggregate",
37
+ "filter",
38
+ "sort",
39
+ "compare",
40
+ "trend",
41
+ "insight",
42
+ "create",
43
+ "update",
44
+ "delete"
45
+ ]
46
+ }
47
+ },
48
+ "required": [
49
+ "query",
50
+ "timestamp"
51
+ ],
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "defaultLimit": {
56
+ "type": "integer",
57
+ "default": 100
58
+ },
59
+ "timezone": {
60
+ "type": "string",
61
+ "default": "UTC"
62
+ },
63
+ "locale": {
64
+ "type": "string",
65
+ "default": "en-US"
66
+ }
67
+ },
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "$schema": "http://json-schema.org/draft-07/schema#"
72
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$ref": "#/definitions/QueryIntent",
3
+ "definitions": {
4
+ "QueryIntent": {
5
+ "type": "string",
6
+ "enum": [
7
+ "select",
8
+ "aggregate",
9
+ "filter",
10
+ "sort",
11
+ "compare",
12
+ "trend",
13
+ "insight",
14
+ "create",
15
+ "update",
16
+ "delete"
17
+ ]
18
+ }
19
+ },
20
+ "$schema": "http://json-schema.org/draft-07/schema#"
21
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$ref": "#/definitions/QueryTemplate",
3
+ "definitions": {
4
+ "QueryTemplate": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string"
9
+ },
10
+ "name": {
11
+ "type": "string",
12
+ "pattern": "^[a-z_][a-z0-9_]*$",
13
+ "description": "Template name (snake_case)"
14
+ },
15
+ "label": {
16
+ "type": "string"
17
+ },
18
+ "pattern": {
19
+ "type": "string",
20
+ "description": "Query pattern with placeholders"
21
+ },
22
+ "variables": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "object",
26
+ "properties": {
27
+ "name": {
28
+ "type": "string"
29
+ },
30
+ "type": {
31
+ "type": "string",
32
+ "enum": [
33
+ "object",
34
+ "field",
35
+ "value",
36
+ "timeframe"
37
+ ]
38
+ },
39
+ "required": {
40
+ "type": "boolean",
41
+ "default": false
42
+ }
43
+ },
44
+ "required": [
45
+ "name",
46
+ "type"
47
+ ],
48
+ "additionalProperties": false
49
+ }
50
+ },
51
+ "astTemplate": {
52
+ "description": "AST template with variable placeholders"
53
+ },
54
+ "category": {
55
+ "type": "string"
56
+ },
57
+ "examples": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "tags": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ }
68
+ }
69
+ },
70
+ "required": [
71
+ "id",
72
+ "name",
73
+ "label",
74
+ "pattern",
75
+ "variables"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "$schema": "http://json-schema.org/draft-07/schema#"
81
+ }