@objectstack/spec 0.1.0 → 0.1.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 (231) hide show
  1. package/README.md +66 -125
  2. package/dist/ai/agent.zod.d.ts +164 -0
  3. package/dist/ai/agent.zod.d.ts.map +1 -0
  4. package/dist/ai/agent.zod.js +51 -0
  5. package/dist/data/dataset.zod.d.ts +60 -0
  6. package/dist/data/dataset.zod.d.ts.map +1 -0
  7. package/dist/data/dataset.zod.js +54 -0
  8. package/dist/data/field.zod.d.ts +170 -0
  9. package/dist/data/field.zod.d.ts.map +1 -0
  10. package/dist/data/field.zod.js +81 -0
  11. package/dist/data/flow.zod.d.ts +242 -0
  12. package/dist/data/flow.zod.d.ts.map +1 -0
  13. package/dist/data/flow.zod.js +77 -0
  14. package/dist/data/mapping.zod.d.ts +257 -0
  15. package/dist/data/mapping.zod.d.ts.map +1 -0
  16. package/dist/data/mapping.zod.js +65 -0
  17. package/dist/data/object.zod.d.ts +364 -0
  18. package/dist/data/object.zod.d.ts.map +1 -0
  19. package/dist/data/object.zod.js +54 -0
  20. package/dist/data/permission.zod.d.ts +163 -0
  21. package/dist/data/permission.zod.d.ts.map +1 -0
  22. package/dist/data/permission.zod.js +62 -0
  23. package/dist/data/query.zod.d.ts +89 -0
  24. package/dist/data/query.zod.d.ts.map +1 -0
  25. package/dist/data/query.zod.js +71 -0
  26. package/dist/data/sharing.zod.d.ts +63 -0
  27. package/dist/data/sharing.zod.d.ts.map +1 -0
  28. package/dist/data/sharing.zod.js +57 -0
  29. package/dist/data/validation.zod.d.ts +236 -0
  30. package/dist/data/validation.zod.d.ts.map +1 -0
  31. package/dist/data/validation.zod.js +59 -0
  32. package/dist/data/workflow.zod.d.ts +195 -0
  33. package/dist/data/workflow.zod.d.ts.map +1 -0
  34. package/dist/data/workflow.zod.js +64 -0
  35. package/dist/index.d.ts +33 -5
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +53 -5
  38. package/dist/system/api.zod.d.ts +168 -0
  39. package/dist/system/api.zod.d.ts.map +1 -0
  40. package/dist/system/api.zod.js +53 -0
  41. package/dist/system/constants/index.d.ts +11 -0
  42. package/dist/system/constants/index.d.ts.map +1 -0
  43. package/dist/system/constants/index.js +26 -0
  44. package/dist/system/constants/paths.d.ts +71 -0
  45. package/dist/system/constants/paths.d.ts.map +1 -0
  46. package/dist/system/constants/paths.js +65 -0
  47. package/dist/system/datasource.zod.d.ts +127 -0
  48. package/dist/system/datasource.zod.d.ts.map +1 -0
  49. package/dist/system/datasource.zod.js +62 -0
  50. package/dist/system/identity.zod.d.ts +204 -0
  51. package/dist/system/identity.zod.d.ts.map +1 -0
  52. package/dist/system/identity.zod.js +68 -0
  53. package/dist/system/license.zod.d.ts +110 -0
  54. package/dist/system/license.zod.d.ts.map +1 -0
  55. package/dist/system/license.zod.js +63 -0
  56. package/dist/system/manifest.zod.d.ts +126 -0
  57. package/dist/system/manifest.zod.d.ts.map +1 -0
  58. package/dist/system/manifest.zod.js +68 -0
  59. package/dist/system/policy.zod.d.ts +209 -0
  60. package/dist/system/policy.zod.d.ts.map +1 -0
  61. package/dist/system/policy.zod.js +54 -0
  62. package/dist/system/role.zod.d.ts +34 -0
  63. package/dist/system/role.zod.d.ts.map +1 -0
  64. package/dist/system/role.zod.js +25 -0
  65. package/dist/system/territory.zod.d.ts +91 -0
  66. package/dist/system/territory.zod.d.ts.map +1 -0
  67. package/dist/system/territory.zod.js +64 -0
  68. package/dist/system/translation.zod.d.ts +171 -0
  69. package/dist/system/translation.zod.d.ts.map +1 -0
  70. package/dist/system/translation.zod.js +34 -0
  71. package/dist/system/types/index.d.ts +7 -0
  72. package/dist/system/types/index.d.ts.map +1 -0
  73. package/dist/system/types/index.js +22 -0
  74. package/dist/system/types/plugin.d.ts +113 -0
  75. package/dist/system/types/plugin.d.ts.map +1 -0
  76. package/dist/system/types/plugin.js +6 -0
  77. package/dist/system/webhook.zod.d.ts +106 -0
  78. package/dist/system/webhook.zod.d.ts.map +1 -0
  79. package/dist/system/webhook.zod.js +56 -0
  80. package/dist/ui/action.zod.d.ts +148 -0
  81. package/dist/ui/action.zod.d.ts.map +1 -0
  82. package/dist/ui/action.zod.js +48 -0
  83. package/dist/ui/app.zod.d.ts +299 -0
  84. package/dist/ui/app.zod.d.ts.map +1 -0
  85. package/dist/ui/app.zod.js +127 -0
  86. package/dist/ui/dashboard.zod.d.ts +207 -0
  87. package/dist/ui/dashboard.zod.d.ts.map +1 -0
  88. package/dist/ui/dashboard.zod.js +66 -0
  89. package/dist/ui/page.zod.d.ts +187 -0
  90. package/dist/ui/page.zod.d.ts.map +1 -0
  91. package/dist/ui/page.zod.js +48 -0
  92. package/dist/ui/report.zod.d.ts +224 -0
  93. package/dist/ui/report.zod.d.ts.map +1 -0
  94. package/dist/ui/report.zod.js +68 -0
  95. package/dist/ui/view.zod.d.ts +887 -0
  96. package/dist/ui/view.zod.d.ts.map +1 -0
  97. package/dist/ui/view.zod.js +83 -0
  98. package/json-schema/AIKnowledge.json +30 -0
  99. package/json-schema/AIModelConfig.json +41 -0
  100. package/json-schema/AITool.json +33 -0
  101. package/json-schema/Action.json +156 -0
  102. package/json-schema/ActionParam.json +76 -0
  103. package/json-schema/Agent.json +140 -0
  104. package/json-schema/ApiEndpoint.json +162 -0
  105. package/json-schema/ApiMapping.json +28 -0
  106. package/json-schema/App.json +286 -0
  107. package/json-schema/AppBranding.json +24 -0
  108. package/json-schema/AuditPolicy.json +31 -0
  109. package/json-schema/AuthProtocol.json +17 -0
  110. package/json-schema/AuthProvider.json +171 -0
  111. package/json-schema/CalendarConfig.json +28 -0
  112. package/json-schema/ChartType.json +19 -0
  113. package/json-schema/Dashboard.json +117 -0
  114. package/json-schema/DashboardNavItem.json +42 -0
  115. package/json-schema/DashboardWidget.json +89 -0
  116. package/json-schema/Dataset.json +63 -0
  117. package/json-schema/DatasetMode.json +16 -0
  118. package/json-schema/Datasource.json +93 -0
  119. package/json-schema/DatasourceCapabilities.json +36 -0
  120. package/json-schema/DriverType.json +27 -0
  121. package/json-schema/EmailAlertAction.json +37 -0
  122. package/json-schema/Feature.json +51 -0
  123. package/json-schema/Field.json +219 -0
  124. package/json-schema/FieldMapping.json +83 -0
  125. package/json-schema/FieldNode.json +32 -0
  126. package/json-schema/FieldPermission.json +22 -0
  127. package/json-schema/FieldType.json +36 -0
  128. package/json-schema/FieldUpdateAction.json +32 -0
  129. package/json-schema/FilterNode.json +52 -0
  130. package/json-schema/FilterOperator.json +26 -0
  131. package/json-schema/Flow.json +186 -0
  132. package/json-schema/FlowEdge.json +37 -0
  133. package/json-schema/FlowNode.json +65 -0
  134. package/json-schema/FlowNodeAction.json +24 -0
  135. package/json-schema/FlowVariable.json +34 -0
  136. package/json-schema/FormSection.json +42 -0
  137. package/json-schema/FormView.json +99 -0
  138. package/json-schema/FormatValidation.json +59 -0
  139. package/json-schema/GanttConfig.json +32 -0
  140. package/json-schema/GroupNavItem.json +42 -0
  141. package/json-schema/HttpMethod.json +16 -0
  142. package/json-schema/Index.json +30 -0
  143. package/json-schema/KanbanConfig.json +31 -0
  144. package/json-schema/LDAPConfig.json +39 -0
  145. package/json-schema/License.json +57 -0
  146. package/json-schema/ListView.json +153 -0
  147. package/json-schema/Locale.json +10 -0
  148. package/json-schema/LogicOperator.json +14 -0
  149. package/json-schema/Manifest.json +90 -0
  150. package/json-schema/Mapping.json +270 -0
  151. package/json-schema/MenuItem.json +28 -0
  152. package/json-schema/MetricType.json +14 -0
  153. package/json-schema/NavigationItem.json +214 -0
  154. package/json-schema/NetworkPolicy.json +31 -0
  155. package/json-schema/OIDCConfig.json +46 -0
  156. package/json-schema/OWDModel.json +14 -0
  157. package/json-schema/Object.json +331 -0
  158. package/json-schema/ObjectCapabilities.json +36 -0
  159. package/json-schema/ObjectNavItem.json +46 -0
  160. package/json-schema/ObjectPermission.json +42 -0
  161. package/json-schema/Page.json +117 -0
  162. package/json-schema/PageComponent.json +36 -0
  163. package/json-schema/PageNavItem.json +47 -0
  164. package/json-schema/PageRegion.json +63 -0
  165. package/json-schema/PasswordPolicy.json +41 -0
  166. package/json-schema/PermissionSet.json +96 -0
  167. package/json-schema/Plan.json +53 -0
  168. package/json-schema/Policy.json +138 -0
  169. package/json-schema/Query.json +128 -0
  170. package/json-schema/RateLimit.json +26 -0
  171. package/json-schema/Report.json +219 -0
  172. package/json-schema/ReportChart.json +45 -0
  173. package/json-schema/ReportColumn.json +35 -0
  174. package/json-schema/ReportGrouping.json +38 -0
  175. package/json-schema/ReportType.json +15 -0
  176. package/json-schema/Role.json +32 -0
  177. package/json-schema/SAMLConfig.json +44 -0
  178. package/json-schema/ScriptValidation.json +48 -0
  179. package/json-schema/SelectOption.json +32 -0
  180. package/json-schema/SessionPolicy.json +27 -0
  181. package/json-schema/SharingLevel.json +13 -0
  182. package/json-schema/SharingRule.json +58 -0
  183. package/json-schema/SharingRuleType.json +15 -0
  184. package/json-schema/SortNode.json +26 -0
  185. package/json-schema/StateMachineValidation.json +59 -0
  186. package/json-schema/Territory.json +77 -0
  187. package/json-schema/TerritoryModel.json +34 -0
  188. package/json-schema/TerritoryType.json +15 -0
  189. package/json-schema/TransformType.json +18 -0
  190. package/json-schema/TranslationBundle.json +78 -0
  191. package/json-schema/TranslationData.json +75 -0
  192. package/json-schema/UniquenessValidation.json +59 -0
  193. package/json-schema/UrlNavItem.json +51 -0
  194. package/json-schema/ValidationRule.json +211 -0
  195. package/json-schema/View.json +500 -0
  196. package/json-schema/Webhook.json +88 -0
  197. package/json-schema/WebhookReceiver.json +66 -0
  198. package/json-schema/WebhookTriggerType.json +16 -0
  199. package/json-schema/WorkflowAction.json +84 -0
  200. package/json-schema/WorkflowRule.json +128 -0
  201. package/json-schema/WorkflowTriggerType.json +16 -0
  202. package/package.json +28 -19
  203. package/dist/examples.d.ts +0 -28
  204. package/dist/examples.d.ts.map +0 -1
  205. package/dist/examples.js +0 -250
  206. package/dist/types/index.d.ts +0 -9
  207. package/dist/types/index.d.ts.map +0 -1
  208. package/dist/types/index.js +0 -8
  209. package/dist/types/meta/field-type.d.ts +0 -54
  210. package/dist/types/meta/field-type.d.ts.map +0 -1
  211. package/dist/types/meta/field-type.js +0 -42
  212. package/dist/types/meta/index.d.ts +0 -13
  213. package/dist/types/meta/index.d.ts.map +0 -1
  214. package/dist/types/meta/index.js +0 -12
  215. package/dist/types/meta/object-entity.d.ts +0 -246
  216. package/dist/types/meta/object-entity.d.ts.map +0 -1
  217. package/dist/types/meta/object-entity.js +0 -9
  218. package/dist/types/meta/object-field.d.ts +0 -199
  219. package/dist/types/meta/object-field.d.ts.map +0 -1
  220. package/dist/types/meta/object-field.js +0 -9
  221. package/dist/types/meta/object-view.d.ts +0 -430
  222. package/dist/types/meta/object-view.d.ts.map +0 -1
  223. package/dist/types/meta/object-view.js +0 -9
  224. package/src/examples.ts +0 -257
  225. package/src/index.ts +0 -10
  226. package/src/types/index.ts +0 -9
  227. package/src/types/meta/field-type.ts +0 -91
  228. package/src/types/meta/index.ts +0 -13
  229. package/src/types/meta/object-entity.ts +0 -265
  230. package/src/types/meta/object-field.ts +0 -218
  231. package/src/types/meta/object-view.ts +0 -475
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.zod.d.ts","sourceRoot":"","sources":["../../src/ui/view.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;IAKzB,0BAA0B;;;;;;;;;;;;;IAW1B,aAAa;;IAGb,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;QA5CrB,0BAA0B;;;;;;;;;;;;;QAW1B,aAAa;;QAGb,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAd3B,0BAA0B;;;;;;;;;;;;;QAW1B,aAAa;;QAGb,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmC3B,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewSchema = exports.FormViewSchema = exports.FormSectionSchema = exports.ListViewSchema = exports.GanttConfigSchema = exports.CalendarConfigSchema = exports.KanbanConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Kanban Settings
7
+ */
8
+ exports.KanbanConfigSchema = zod_1.z.object({
9
+ groupByField: zod_1.z.string().describe('Field to group columns by (usually status/select)'),
10
+ summarizeField: zod_1.z.string().optional().describe('Field to sum at top of column (e.g. amount)'),
11
+ columns: zod_1.z.array(zod_1.z.string()).describe('Fields to show on cards'),
12
+ });
13
+ /**
14
+ * Calendar Settings
15
+ */
16
+ exports.CalendarConfigSchema = zod_1.z.object({
17
+ startDateField: zod_1.z.string(),
18
+ endDateField: zod_1.z.string().optional(),
19
+ titleField: zod_1.z.string(),
20
+ colorField: zod_1.z.string().optional(),
21
+ });
22
+ /**
23
+ * Gantt Settings
24
+ */
25
+ exports.GanttConfigSchema = zod_1.z.object({
26
+ startDateField: zod_1.z.string(),
27
+ endDateField: zod_1.z.string(),
28
+ titleField: zod_1.z.string(),
29
+ progressField: zod_1.z.string().optional(),
30
+ dependenciesField: zod_1.z.string().optional(),
31
+ });
32
+ /**
33
+ * List View Schema (Expanded)
34
+ */
35
+ exports.ListViewSchema = zod_1.z.object({
36
+ name: zod_1.z.string().optional(), // Internal name
37
+ label: zod_1.z.string().optional(), // Display label override
38
+ type: zod_1.z.enum(['grid', 'kanban', 'calendar', 'gantt', 'map']).default('grid'),
39
+ /** Shared Query Config */
40
+ columns: zod_1.z.array(zod_1.z.string()).describe('Fields to display as columns'),
41
+ filter: zod_1.z.array(zod_1.z.any()).optional().describe('Filter criteria (JSON Rules)'),
42
+ sort: zod_1.z.union([
43
+ zod_1.z.string(), //Legacy "field desc"
44
+ zod_1.z.array(zod_1.z.object({
45
+ field: zod_1.z.string(),
46
+ order: zod_1.z.enum(['asc', 'desc'])
47
+ }))
48
+ ]).optional(),
49
+ /** Search */
50
+ searchableFields: zod_1.z.array(zod_1.z.string()).optional().describe('Fields enabled for search'),
51
+ /** Type Specific Config */
52
+ kanban: exports.KanbanConfigSchema.optional(),
53
+ calendar: exports.CalendarConfigSchema.optional(),
54
+ gantt: exports.GanttConfigSchema.optional(),
55
+ });
56
+ /**
57
+ * Form Layout Section
58
+ */
59
+ exports.FormSectionSchema = zod_1.z.object({
60
+ label: zod_1.z.string().optional(),
61
+ collapsible: zod_1.z.boolean().default(false),
62
+ collapsed: zod_1.z.boolean().default(false),
63
+ columns: zod_1.z.enum(['1', '2', '3', '4']).default('2').transform(val => parseInt(val)),
64
+ fields: zod_1.z.array(zod_1.z.string()), // or complex FieldConfig
65
+ });
66
+ /**
67
+ * Form View Schema
68
+ */
69
+ exports.FormViewSchema = zod_1.z.object({
70
+ type: zod_1.z.enum(['simple', 'tabbed', 'wizard']).default('simple'),
71
+ sections: zod_1.z.array(exports.FormSectionSchema).optional(), // For simple layout
72
+ groups: zod_1.z.array(exports.FormSectionSchema).optional(), // Legacy support -> alias to sections
73
+ });
74
+ /**
75
+ * Master View Schema
76
+ * Can define multiple named views.
77
+ */
78
+ exports.ViewSchema = zod_1.z.object({
79
+ list: exports.ListViewSchema.optional(), // Default list view
80
+ form: exports.FormViewSchema.optional(), // Default form view
81
+ listViews: zod_1.z.record(exports.ListViewSchema).optional().describe('Additional named list views'),
82
+ formViews: zod_1.z.record(exports.FormViewSchema).optional().describe('Additional named form views'),
83
+ });
@@ -0,0 +1,30 @@
1
+ {
2
+ "$ref": "#/definitions/AIKnowledge",
3
+ "definitions": {
4
+ "AIKnowledge": {
5
+ "type": "object",
6
+ "properties": {
7
+ "topics": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "string"
11
+ },
12
+ "description": "Topics/Tags to recruit knowledge from"
13
+ },
14
+ "indexes": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string"
18
+ },
19
+ "description": "Vector Store Indexes"
20
+ }
21
+ },
22
+ "required": [
23
+ "topics",
24
+ "indexes"
25
+ ],
26
+ "additionalProperties": false
27
+ }
28
+ },
29
+ "$schema": "http://json-schema.org/draft-07/schema#"
30
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$ref": "#/definitions/AIModelConfig",
3
+ "definitions": {
4
+ "AIModelConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "provider": {
8
+ "type": "string",
9
+ "enum": [
10
+ "openai",
11
+ "azure_openai",
12
+ "anthropic",
13
+ "local"
14
+ ],
15
+ "default": "openai"
16
+ },
17
+ "model": {
18
+ "type": "string",
19
+ "description": "Model name (e.g. gpt-4, claude-3-opus)"
20
+ },
21
+ "temperature": {
22
+ "type": "number",
23
+ "minimum": 0,
24
+ "maximum": 2,
25
+ "default": 0.7
26
+ },
27
+ "maxTokens": {
28
+ "type": "number"
29
+ },
30
+ "topP": {
31
+ "type": "number"
32
+ }
33
+ },
34
+ "required": [
35
+ "model"
36
+ ],
37
+ "additionalProperties": false
38
+ }
39
+ },
40
+ "$schema": "http://json-schema.org/draft-07/schema#"
41
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$ref": "#/definitions/AITool",
3
+ "definitions": {
4
+ "AITool": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "action",
11
+ "flow",
12
+ "query",
13
+ "vector_search"
14
+ ]
15
+ },
16
+ "name": {
17
+ "type": "string",
18
+ "description": "Reference name (Action Name, Flow Name)"
19
+ },
20
+ "description": {
21
+ "type": "string",
22
+ "description": "Override description for the LLM"
23
+ }
24
+ },
25
+ "required": [
26
+ "type",
27
+ "name"
28
+ ],
29
+ "additionalProperties": false
30
+ }
31
+ },
32
+ "$schema": "http://json-schema.org/draft-07/schema#"
33
+ }
@@ -0,0 +1,156 @@
1
+ {
2
+ "$ref": "#/definitions/Action",
3
+ "definitions": {
4
+ "Action": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$",
10
+ "description": "Machine name (snake_case)"
11
+ },
12
+ "label": {
13
+ "type": "string",
14
+ "description": "Display label"
15
+ },
16
+ "icon": {
17
+ "type": "string",
18
+ "description": "Icon name"
19
+ },
20
+ "locations": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "list_toolbar",
26
+ "list_item",
27
+ "record_header",
28
+ "record_more",
29
+ "record_related",
30
+ "global_nav"
31
+ ]
32
+ },
33
+ "description": "Locations where this action is visible"
34
+ },
35
+ "location": {},
36
+ "type": {
37
+ "type": "string",
38
+ "enum": [
39
+ "script",
40
+ "url",
41
+ "modal",
42
+ "flow",
43
+ "api"
44
+ ],
45
+ "default": "script",
46
+ "description": "Action functionality type"
47
+ },
48
+ "target": {
49
+ "type": "string",
50
+ "description": "URL, Script Name, Flow ID, or API Endpoint"
51
+ },
52
+ "execute": {
53
+ "type": "string",
54
+ "description": "Legacy execution logic"
55
+ },
56
+ "params": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "object",
60
+ "properties": {
61
+ "name": {
62
+ "type": "string"
63
+ },
64
+ "label": {
65
+ "type": "string"
66
+ },
67
+ "type": {
68
+ "type": "string",
69
+ "enum": [
70
+ "text",
71
+ "textarea",
72
+ "email",
73
+ "url",
74
+ "phone",
75
+ "password",
76
+ "markdown",
77
+ "html",
78
+ "number",
79
+ "currency",
80
+ "percent",
81
+ "date",
82
+ "datetime",
83
+ "time",
84
+ "boolean",
85
+ "select",
86
+ "multiselect",
87
+ "lookup",
88
+ "master_detail",
89
+ "image",
90
+ "file",
91
+ "avatar",
92
+ "formula",
93
+ "summary",
94
+ "autonumber"
95
+ ]
96
+ },
97
+ "required": {
98
+ "type": "boolean",
99
+ "default": false
100
+ },
101
+ "options": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "object",
105
+ "properties": {
106
+ "label": {
107
+ "type": "string"
108
+ },
109
+ "value": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "required": [
114
+ "label",
115
+ "value"
116
+ ],
117
+ "additionalProperties": false
118
+ }
119
+ }
120
+ },
121
+ "required": [
122
+ "name",
123
+ "label",
124
+ "type"
125
+ ],
126
+ "additionalProperties": false
127
+ },
128
+ "description": "Input parameters required from user"
129
+ },
130
+ "confirmText": {
131
+ "type": "string",
132
+ "description": "Confirmation message before execution"
133
+ },
134
+ "successMessage": {
135
+ "type": "string",
136
+ "description": "Success message to show after execution"
137
+ },
138
+ "refreshAfter": {
139
+ "type": "boolean",
140
+ "default": false,
141
+ "description": "Refresh view after execution"
142
+ },
143
+ "visible": {
144
+ "type": "string",
145
+ "description": "Formula returning boolean"
146
+ }
147
+ },
148
+ "required": [
149
+ "name",
150
+ "label"
151
+ ],
152
+ "additionalProperties": false
153
+ }
154
+ },
155
+ "$schema": "http://json-schema.org/draft-07/schema#"
156
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$ref": "#/definitions/ActionParam",
3
+ "definitions": {
4
+ "ActionParam": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string"
9
+ },
10
+ "label": {
11
+ "type": "string"
12
+ },
13
+ "type": {
14
+ "type": "string",
15
+ "enum": [
16
+ "text",
17
+ "textarea",
18
+ "email",
19
+ "url",
20
+ "phone",
21
+ "password",
22
+ "markdown",
23
+ "html",
24
+ "number",
25
+ "currency",
26
+ "percent",
27
+ "date",
28
+ "datetime",
29
+ "time",
30
+ "boolean",
31
+ "select",
32
+ "multiselect",
33
+ "lookup",
34
+ "master_detail",
35
+ "image",
36
+ "file",
37
+ "avatar",
38
+ "formula",
39
+ "summary",
40
+ "autonumber"
41
+ ]
42
+ },
43
+ "required": {
44
+ "type": "boolean",
45
+ "default": false
46
+ },
47
+ "options": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "label": {
53
+ "type": "string"
54
+ },
55
+ "value": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "label",
61
+ "value"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ }
66
+ },
67
+ "required": [
68
+ "name",
69
+ "label",
70
+ "type"
71
+ ],
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+ "$schema": "http://json-schema.org/draft-07/schema#"
76
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "$ref": "#/definitions/Agent",
3
+ "definitions": {
4
+ "Agent": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$",
10
+ "description": "Agent unique identifier"
11
+ },
12
+ "label": {
13
+ "type": "string",
14
+ "description": "Agent display name"
15
+ },
16
+ "avatar": {
17
+ "type": "string"
18
+ },
19
+ "role": {
20
+ "type": "string",
21
+ "description": "The persona/role (e.g. \"Senior Support Engineer\")"
22
+ },
23
+ "instructions": {
24
+ "type": "string",
25
+ "description": "System Prompt / Prime Directives"
26
+ },
27
+ "model": {
28
+ "type": "object",
29
+ "properties": {
30
+ "provider": {
31
+ "type": "string",
32
+ "enum": [
33
+ "openai",
34
+ "azure_openai",
35
+ "anthropic",
36
+ "local"
37
+ ],
38
+ "default": "openai"
39
+ },
40
+ "model": {
41
+ "type": "string",
42
+ "description": "Model name (e.g. gpt-4, claude-3-opus)"
43
+ },
44
+ "temperature": {
45
+ "type": "number",
46
+ "minimum": 0,
47
+ "maximum": 2,
48
+ "default": 0.7
49
+ },
50
+ "maxTokens": {
51
+ "type": "number"
52
+ },
53
+ "topP": {
54
+ "type": "number"
55
+ }
56
+ },
57
+ "required": [
58
+ "model"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "tools": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "type": {
68
+ "type": "string",
69
+ "enum": [
70
+ "action",
71
+ "flow",
72
+ "query",
73
+ "vector_search"
74
+ ]
75
+ },
76
+ "name": {
77
+ "type": "string",
78
+ "description": "Reference name (Action Name, Flow Name)"
79
+ },
80
+ "description": {
81
+ "type": "string",
82
+ "description": "Override description for the LLM"
83
+ }
84
+ },
85
+ "required": [
86
+ "type",
87
+ "name"
88
+ ],
89
+ "additionalProperties": false
90
+ },
91
+ "description": "Available tools"
92
+ },
93
+ "knowledge": {
94
+ "type": "object",
95
+ "properties": {
96
+ "topics": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "string"
100
+ },
101
+ "description": "Topics/Tags to recruit knowledge from"
102
+ },
103
+ "indexes": {
104
+ "type": "array",
105
+ "items": {
106
+ "type": "string"
107
+ },
108
+ "description": "Vector Store Indexes"
109
+ }
110
+ },
111
+ "required": [
112
+ "topics",
113
+ "indexes"
114
+ ],
115
+ "additionalProperties": false,
116
+ "description": "RAG access"
117
+ },
118
+ "active": {
119
+ "type": "boolean",
120
+ "default": true
121
+ },
122
+ "access": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "string"
126
+ },
127
+ "description": "Who can chat with this agent"
128
+ }
129
+ },
130
+ "required": [
131
+ "name",
132
+ "label",
133
+ "role",
134
+ "instructions"
135
+ ],
136
+ "additionalProperties": false
137
+ }
138
+ },
139
+ "$schema": "http://json-schema.org/draft-07/schema#"
140
+ }