@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.
- package/README.md +66 -125
- package/dist/ai/agent.zod.d.ts +164 -0
- package/dist/ai/agent.zod.d.ts.map +1 -0
- package/dist/ai/agent.zod.js +51 -0
- package/dist/data/dataset.zod.d.ts +60 -0
- package/dist/data/dataset.zod.d.ts.map +1 -0
- package/dist/data/dataset.zod.js +54 -0
- package/dist/data/field.zod.d.ts +170 -0
- package/dist/data/field.zod.d.ts.map +1 -0
- package/dist/data/field.zod.js +81 -0
- package/dist/data/flow.zod.d.ts +242 -0
- package/dist/data/flow.zod.d.ts.map +1 -0
- package/dist/data/flow.zod.js +77 -0
- package/dist/data/mapping.zod.d.ts +257 -0
- package/dist/data/mapping.zod.d.ts.map +1 -0
- package/dist/data/mapping.zod.js +65 -0
- package/dist/data/object.zod.d.ts +364 -0
- package/dist/data/object.zod.d.ts.map +1 -0
- package/dist/data/object.zod.js +54 -0
- package/dist/data/permission.zod.d.ts +163 -0
- package/dist/data/permission.zod.d.ts.map +1 -0
- package/dist/data/permission.zod.js +62 -0
- package/dist/data/query.zod.d.ts +89 -0
- package/dist/data/query.zod.d.ts.map +1 -0
- package/dist/data/query.zod.js +71 -0
- package/dist/data/sharing.zod.d.ts +63 -0
- package/dist/data/sharing.zod.d.ts.map +1 -0
- package/dist/data/sharing.zod.js +57 -0
- package/dist/data/validation.zod.d.ts +236 -0
- package/dist/data/validation.zod.d.ts.map +1 -0
- package/dist/data/validation.zod.js +59 -0
- package/dist/data/workflow.zod.d.ts +195 -0
- package/dist/data/workflow.zod.d.ts.map +1 -0
- package/dist/data/workflow.zod.js +64 -0
- package/dist/index.d.ts +33 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -5
- package/dist/system/api.zod.d.ts +168 -0
- package/dist/system/api.zod.d.ts.map +1 -0
- package/dist/system/api.zod.js +53 -0
- package/dist/system/constants/index.d.ts +11 -0
- package/dist/system/constants/index.d.ts.map +1 -0
- package/dist/system/constants/index.js +26 -0
- package/dist/system/constants/paths.d.ts +71 -0
- package/dist/system/constants/paths.d.ts.map +1 -0
- package/dist/system/constants/paths.js +65 -0
- package/dist/system/datasource.zod.d.ts +127 -0
- package/dist/system/datasource.zod.d.ts.map +1 -0
- package/dist/system/datasource.zod.js +62 -0
- package/dist/system/identity.zod.d.ts +204 -0
- package/dist/system/identity.zod.d.ts.map +1 -0
- package/dist/system/identity.zod.js +68 -0
- package/dist/system/license.zod.d.ts +110 -0
- package/dist/system/license.zod.d.ts.map +1 -0
- package/dist/system/license.zod.js +63 -0
- package/dist/system/manifest.zod.d.ts +126 -0
- package/dist/system/manifest.zod.d.ts.map +1 -0
- package/dist/system/manifest.zod.js +68 -0
- package/dist/system/policy.zod.d.ts +209 -0
- package/dist/system/policy.zod.d.ts.map +1 -0
- package/dist/system/policy.zod.js +54 -0
- package/dist/system/role.zod.d.ts +34 -0
- package/dist/system/role.zod.d.ts.map +1 -0
- package/dist/system/role.zod.js +25 -0
- package/dist/system/territory.zod.d.ts +91 -0
- package/dist/system/territory.zod.d.ts.map +1 -0
- package/dist/system/territory.zod.js +64 -0
- package/dist/system/translation.zod.d.ts +171 -0
- package/dist/system/translation.zod.d.ts.map +1 -0
- package/dist/system/translation.zod.js +34 -0
- package/dist/system/types/index.d.ts +7 -0
- package/dist/system/types/index.d.ts.map +1 -0
- package/dist/system/types/index.js +22 -0
- package/dist/system/types/plugin.d.ts +113 -0
- package/dist/system/types/plugin.d.ts.map +1 -0
- package/dist/system/types/plugin.js +6 -0
- package/dist/system/webhook.zod.d.ts +106 -0
- package/dist/system/webhook.zod.d.ts.map +1 -0
- package/dist/system/webhook.zod.js +56 -0
- package/dist/ui/action.zod.d.ts +148 -0
- package/dist/ui/action.zod.d.ts.map +1 -0
- package/dist/ui/action.zod.js +48 -0
- package/dist/ui/app.zod.d.ts +299 -0
- package/dist/ui/app.zod.d.ts.map +1 -0
- package/dist/ui/app.zod.js +127 -0
- package/dist/ui/dashboard.zod.d.ts +207 -0
- package/dist/ui/dashboard.zod.d.ts.map +1 -0
- package/dist/ui/dashboard.zod.js +66 -0
- package/dist/ui/page.zod.d.ts +187 -0
- package/dist/ui/page.zod.d.ts.map +1 -0
- package/dist/ui/page.zod.js +48 -0
- package/dist/ui/report.zod.d.ts +224 -0
- package/dist/ui/report.zod.d.ts.map +1 -0
- package/dist/ui/report.zod.js +68 -0
- package/dist/ui/view.zod.d.ts +887 -0
- package/dist/ui/view.zod.d.ts.map +1 -0
- package/dist/ui/view.zod.js +83 -0
- package/json-schema/AIKnowledge.json +30 -0
- package/json-schema/AIModelConfig.json +41 -0
- package/json-schema/AITool.json +33 -0
- package/json-schema/Action.json +156 -0
- package/json-schema/ActionParam.json +76 -0
- package/json-schema/Agent.json +140 -0
- package/json-schema/ApiEndpoint.json +162 -0
- package/json-schema/ApiMapping.json +28 -0
- package/json-schema/App.json +286 -0
- package/json-schema/AppBranding.json +24 -0
- package/json-schema/AuditPolicy.json +31 -0
- package/json-schema/AuthProtocol.json +17 -0
- package/json-schema/AuthProvider.json +171 -0
- package/json-schema/CalendarConfig.json +28 -0
- package/json-schema/ChartType.json +19 -0
- package/json-schema/Dashboard.json +117 -0
- package/json-schema/DashboardNavItem.json +42 -0
- package/json-schema/DashboardWidget.json +89 -0
- package/json-schema/Dataset.json +63 -0
- package/json-schema/DatasetMode.json +16 -0
- package/json-schema/Datasource.json +93 -0
- package/json-schema/DatasourceCapabilities.json +36 -0
- package/json-schema/DriverType.json +27 -0
- package/json-schema/EmailAlertAction.json +37 -0
- package/json-schema/Feature.json +51 -0
- package/json-schema/Field.json +219 -0
- package/json-schema/FieldMapping.json +83 -0
- package/json-schema/FieldNode.json +32 -0
- package/json-schema/FieldPermission.json +22 -0
- package/json-schema/FieldType.json +36 -0
- package/json-schema/FieldUpdateAction.json +32 -0
- package/json-schema/FilterNode.json +52 -0
- package/json-schema/FilterOperator.json +26 -0
- package/json-schema/Flow.json +186 -0
- package/json-schema/FlowEdge.json +37 -0
- package/json-schema/FlowNode.json +65 -0
- package/json-schema/FlowNodeAction.json +24 -0
- package/json-schema/FlowVariable.json +34 -0
- package/json-schema/FormSection.json +42 -0
- package/json-schema/FormView.json +99 -0
- package/json-schema/FormatValidation.json +59 -0
- package/json-schema/GanttConfig.json +32 -0
- package/json-schema/GroupNavItem.json +42 -0
- package/json-schema/HttpMethod.json +16 -0
- package/json-schema/Index.json +30 -0
- package/json-schema/KanbanConfig.json +31 -0
- package/json-schema/LDAPConfig.json +39 -0
- package/json-schema/License.json +57 -0
- package/json-schema/ListView.json +153 -0
- package/json-schema/Locale.json +10 -0
- package/json-schema/LogicOperator.json +14 -0
- package/json-schema/Manifest.json +90 -0
- package/json-schema/Mapping.json +270 -0
- package/json-schema/MenuItem.json +28 -0
- package/json-schema/MetricType.json +14 -0
- package/json-schema/NavigationItem.json +214 -0
- package/json-schema/NetworkPolicy.json +31 -0
- package/json-schema/OIDCConfig.json +46 -0
- package/json-schema/OWDModel.json +14 -0
- package/json-schema/Object.json +331 -0
- package/json-schema/ObjectCapabilities.json +36 -0
- package/json-schema/ObjectNavItem.json +46 -0
- package/json-schema/ObjectPermission.json +42 -0
- package/json-schema/Page.json +117 -0
- package/json-schema/PageComponent.json +36 -0
- package/json-schema/PageNavItem.json +47 -0
- package/json-schema/PageRegion.json +63 -0
- package/json-schema/PasswordPolicy.json +41 -0
- package/json-schema/PermissionSet.json +96 -0
- package/json-schema/Plan.json +53 -0
- package/json-schema/Policy.json +138 -0
- package/json-schema/Query.json +128 -0
- package/json-schema/RateLimit.json +26 -0
- package/json-schema/Report.json +219 -0
- package/json-schema/ReportChart.json +45 -0
- package/json-schema/ReportColumn.json +35 -0
- package/json-schema/ReportGrouping.json +38 -0
- package/json-schema/ReportType.json +15 -0
- package/json-schema/Role.json +32 -0
- package/json-schema/SAMLConfig.json +44 -0
- package/json-schema/ScriptValidation.json +48 -0
- package/json-schema/SelectOption.json +32 -0
- package/json-schema/SessionPolicy.json +27 -0
- package/json-schema/SharingLevel.json +13 -0
- package/json-schema/SharingRule.json +58 -0
- package/json-schema/SharingRuleType.json +15 -0
- package/json-schema/SortNode.json +26 -0
- package/json-schema/StateMachineValidation.json +59 -0
- package/json-schema/Territory.json +77 -0
- package/json-schema/TerritoryModel.json +34 -0
- package/json-schema/TerritoryType.json +15 -0
- package/json-schema/TransformType.json +18 -0
- package/json-schema/TranslationBundle.json +78 -0
- package/json-schema/TranslationData.json +75 -0
- package/json-schema/UniquenessValidation.json +59 -0
- package/json-schema/UrlNavItem.json +51 -0
- package/json-schema/ValidationRule.json +211 -0
- package/json-schema/View.json +500 -0
- package/json-schema/Webhook.json +88 -0
- package/json-schema/WebhookReceiver.json +66 -0
- package/json-schema/WebhookTriggerType.json +16 -0
- package/json-schema/WorkflowAction.json +84 -0
- package/json-schema/WorkflowRule.json +128 -0
- package/json-schema/WorkflowTriggerType.json +16 -0
- package/package.json +28 -19
- package/dist/examples.d.ts +0 -28
- package/dist/examples.d.ts.map +0 -1
- package/dist/examples.js +0 -250
- package/dist/types/index.d.ts +0 -9
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/meta/field-type.d.ts +0 -54
- package/dist/types/meta/field-type.d.ts.map +0 -1
- package/dist/types/meta/field-type.js +0 -42
- package/dist/types/meta/index.d.ts +0 -13
- package/dist/types/meta/index.d.ts.map +0 -1
- package/dist/types/meta/index.js +0 -12
- package/dist/types/meta/object-entity.d.ts +0 -246
- package/dist/types/meta/object-entity.d.ts.map +0 -1
- package/dist/types/meta/object-entity.js +0 -9
- package/dist/types/meta/object-field.d.ts +0 -199
- package/dist/types/meta/object-field.d.ts.map +0 -1
- package/dist/types/meta/object-field.js +0 -9
- package/dist/types/meta/object-view.d.ts +0 -430
- package/dist/types/meta/object-view.d.ts.map +0 -1
- package/dist/types/meta/object-view.js +0 -9
- package/src/examples.ts +0 -257
- package/src/index.ts +0 -10
- package/src/types/index.ts +0 -9
- package/src/types/meta/field-type.ts +0 -91
- package/src/types/meta/index.ts +0 -13
- package/src/types/meta/object-entity.ts +0 -265
- package/src/types/meta/object-field.ts +0 -218
- package/src/types/meta/object-view.ts +0 -475
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/NavigationItem",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"NavigationItem": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Unique identifier for this navigation item"
|
|
12
|
+
},
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Display proper label"
|
|
16
|
+
},
|
|
17
|
+
"icon": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Icon name"
|
|
20
|
+
},
|
|
21
|
+
"visible": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Visibility formula condition"
|
|
24
|
+
},
|
|
25
|
+
"type": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "object"
|
|
28
|
+
},
|
|
29
|
+
"objectName": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Target object name"
|
|
32
|
+
},
|
|
33
|
+
"viewName": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Default list view to open. Defaults to \"all\""
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"id",
|
|
40
|
+
"label",
|
|
41
|
+
"type",
|
|
42
|
+
"objectName"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"id": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Unique identifier for this navigation item"
|
|
52
|
+
},
|
|
53
|
+
"label": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Display proper label"
|
|
56
|
+
},
|
|
57
|
+
"icon": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Icon name"
|
|
60
|
+
},
|
|
61
|
+
"visible": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Visibility formula condition"
|
|
64
|
+
},
|
|
65
|
+
"type": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"const": "dashboard"
|
|
68
|
+
},
|
|
69
|
+
"dashboardName": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Target dashboard name"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"id",
|
|
76
|
+
"label",
|
|
77
|
+
"type",
|
|
78
|
+
"dashboardName"
|
|
79
|
+
],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"id": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Unique identifier for this navigation item"
|
|
88
|
+
},
|
|
89
|
+
"label": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Display proper label"
|
|
92
|
+
},
|
|
93
|
+
"icon": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Icon name"
|
|
96
|
+
},
|
|
97
|
+
"visible": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Visibility formula condition"
|
|
100
|
+
},
|
|
101
|
+
"type": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"const": "page"
|
|
104
|
+
},
|
|
105
|
+
"pageName": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Target custom page component name"
|
|
108
|
+
},
|
|
109
|
+
"params": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": {},
|
|
112
|
+
"description": "Parameters passed to the page context"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"required": [
|
|
116
|
+
"id",
|
|
117
|
+
"label",
|
|
118
|
+
"type",
|
|
119
|
+
"pageName"
|
|
120
|
+
],
|
|
121
|
+
"additionalProperties": false
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"id": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "Unique identifier for this navigation item"
|
|
129
|
+
},
|
|
130
|
+
"label": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "Display proper label"
|
|
133
|
+
},
|
|
134
|
+
"icon": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Icon name"
|
|
137
|
+
},
|
|
138
|
+
"visible": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "Visibility formula condition"
|
|
141
|
+
},
|
|
142
|
+
"type": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"const": "url"
|
|
145
|
+
},
|
|
146
|
+
"url": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "Target external URL"
|
|
149
|
+
},
|
|
150
|
+
"target": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"_self",
|
|
154
|
+
"_blank"
|
|
155
|
+
],
|
|
156
|
+
"default": "_self",
|
|
157
|
+
"description": "Link target window"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"id",
|
|
162
|
+
"label",
|
|
163
|
+
"type",
|
|
164
|
+
"url"
|
|
165
|
+
],
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"id": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "Unique identifier for this navigation item"
|
|
174
|
+
},
|
|
175
|
+
"label": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "Display proper label"
|
|
178
|
+
},
|
|
179
|
+
"icon": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Icon name"
|
|
182
|
+
},
|
|
183
|
+
"visible": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "Visibility formula condition"
|
|
186
|
+
},
|
|
187
|
+
"type": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"const": "group"
|
|
190
|
+
},
|
|
191
|
+
"expanded": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"default": false,
|
|
194
|
+
"description": "Default expansion state in sidebar"
|
|
195
|
+
},
|
|
196
|
+
"children": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {},
|
|
199
|
+
"description": "Child navigation items"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": [
|
|
203
|
+
"id",
|
|
204
|
+
"label",
|
|
205
|
+
"type",
|
|
206
|
+
"children"
|
|
207
|
+
],
|
|
208
|
+
"additionalProperties": false
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
214
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/NetworkPolicy",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"NetworkPolicy": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"trustedRanges": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"description": "CIDR ranges allowed to access (e.g. 10.0.0.0/8)"
|
|
13
|
+
},
|
|
14
|
+
"blockUnknown": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Block all IPs not in trusted ranges"
|
|
18
|
+
},
|
|
19
|
+
"vpnRequired": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"trustedRanges"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
31
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/OIDCConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"OIDCConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"issuer": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uri",
|
|
10
|
+
"description": "OIDC Issuer URL (.well-known/openid-configuration)"
|
|
11
|
+
},
|
|
12
|
+
"clientId": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"clientSecret": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"scopes": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"default": [
|
|
24
|
+
"openid",
|
|
25
|
+
"profile",
|
|
26
|
+
"email"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"attributeMapping": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"description": "Map IdP claims to User fields"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"issuer",
|
|
39
|
+
"clientId",
|
|
40
|
+
"clientSecret"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
46
|
+
}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Object",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Object": {
|
|
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": "Singular Label (e.g. \"Account\")"
|
|
15
|
+
},
|
|
16
|
+
"pluralLabel": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Plural Label (e.g. \"Accounts\")"
|
|
19
|
+
},
|
|
20
|
+
"description": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Internal description"
|
|
23
|
+
},
|
|
24
|
+
"icon": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Lucide icon name"
|
|
27
|
+
},
|
|
28
|
+
"datasource": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"default": "default",
|
|
31
|
+
"description": "Datasource name"
|
|
32
|
+
},
|
|
33
|
+
"tableName": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Physical DB table override"
|
|
36
|
+
},
|
|
37
|
+
"isSystem": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": false,
|
|
40
|
+
"description": "Is system object (protected)"
|
|
41
|
+
},
|
|
42
|
+
"fields": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"name": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
50
|
+
"description": "Machine name (snake_case)"
|
|
51
|
+
},
|
|
52
|
+
"label": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Human readable label"
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"text",
|
|
60
|
+
"textarea",
|
|
61
|
+
"email",
|
|
62
|
+
"url",
|
|
63
|
+
"phone",
|
|
64
|
+
"password",
|
|
65
|
+
"markdown",
|
|
66
|
+
"html",
|
|
67
|
+
"number",
|
|
68
|
+
"currency",
|
|
69
|
+
"percent",
|
|
70
|
+
"date",
|
|
71
|
+
"datetime",
|
|
72
|
+
"time",
|
|
73
|
+
"boolean",
|
|
74
|
+
"select",
|
|
75
|
+
"multiselect",
|
|
76
|
+
"lookup",
|
|
77
|
+
"master_detail",
|
|
78
|
+
"image",
|
|
79
|
+
"file",
|
|
80
|
+
"avatar",
|
|
81
|
+
"formula",
|
|
82
|
+
"summary",
|
|
83
|
+
"autonumber"
|
|
84
|
+
],
|
|
85
|
+
"description": "Field Data Type"
|
|
86
|
+
},
|
|
87
|
+
"description": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "Tooltip/Help text"
|
|
90
|
+
},
|
|
91
|
+
"required": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false,
|
|
94
|
+
"description": "Is required"
|
|
95
|
+
},
|
|
96
|
+
"multiple": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false,
|
|
99
|
+
"description": "Allow multiple values (Stores as Array/JSON). Applicable for select, lookup, file, image."
|
|
100
|
+
},
|
|
101
|
+
"unique": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": false,
|
|
104
|
+
"description": "Is unique constraint"
|
|
105
|
+
},
|
|
106
|
+
"defaultValue": {
|
|
107
|
+
"description": "Default value"
|
|
108
|
+
},
|
|
109
|
+
"maxLength": {
|
|
110
|
+
"type": "number",
|
|
111
|
+
"description": "Max character length"
|
|
112
|
+
},
|
|
113
|
+
"minLength": {
|
|
114
|
+
"type": "number",
|
|
115
|
+
"description": "Min character length"
|
|
116
|
+
},
|
|
117
|
+
"precision": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"description": "Total digits"
|
|
120
|
+
},
|
|
121
|
+
"scale": {
|
|
122
|
+
"type": "number",
|
|
123
|
+
"description": "Decimal places"
|
|
124
|
+
},
|
|
125
|
+
"min": {
|
|
126
|
+
"type": "number",
|
|
127
|
+
"description": "Minimum value"
|
|
128
|
+
},
|
|
129
|
+
"max": {
|
|
130
|
+
"type": "number",
|
|
131
|
+
"description": "Maximum value"
|
|
132
|
+
},
|
|
133
|
+
"options": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"label": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "Display label"
|
|
141
|
+
},
|
|
142
|
+
"value": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "Stored value"
|
|
145
|
+
},
|
|
146
|
+
"color": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "Color code for badges/charts"
|
|
149
|
+
},
|
|
150
|
+
"default": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"description": "Is default option"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": [
|
|
156
|
+
"label",
|
|
157
|
+
"value"
|
|
158
|
+
],
|
|
159
|
+
"additionalProperties": false
|
|
160
|
+
},
|
|
161
|
+
"description": "Static options for select/multiselect"
|
|
162
|
+
},
|
|
163
|
+
"reference": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Target Object Name"
|
|
166
|
+
},
|
|
167
|
+
"referenceFilters": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"description": "Filters applied to lookup dialogs (e.g. \"active = true\")"
|
|
173
|
+
},
|
|
174
|
+
"writeRequiresMasterRead": {
|
|
175
|
+
"type": "boolean",
|
|
176
|
+
"description": "If true, user needs read access to master record to edit this field"
|
|
177
|
+
},
|
|
178
|
+
"deleteBehavior": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"enum": [
|
|
181
|
+
"set_null",
|
|
182
|
+
"cascade",
|
|
183
|
+
"restrict"
|
|
184
|
+
],
|
|
185
|
+
"default": "set_null",
|
|
186
|
+
"description": "What happens if referenced record is deleted"
|
|
187
|
+
},
|
|
188
|
+
"expression": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"description": "Formula expression"
|
|
191
|
+
},
|
|
192
|
+
"formula": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "Deprecated: Use expression"
|
|
195
|
+
},
|
|
196
|
+
"summaryOperations": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"object": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"field": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"function": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"enum": [
|
|
208
|
+
"count",
|
|
209
|
+
"sum",
|
|
210
|
+
"min",
|
|
211
|
+
"max",
|
|
212
|
+
"avg"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"object",
|
|
218
|
+
"field",
|
|
219
|
+
"function"
|
|
220
|
+
],
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"description": "Roll-up summary definition"
|
|
223
|
+
},
|
|
224
|
+
"hidden": {
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"default": false,
|
|
227
|
+
"description": "Hidden from default UI"
|
|
228
|
+
},
|
|
229
|
+
"readonly": {
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"default": false,
|
|
232
|
+
"description": "Read-only in UI"
|
|
233
|
+
},
|
|
234
|
+
"encryption": {
|
|
235
|
+
"type": "boolean",
|
|
236
|
+
"default": false,
|
|
237
|
+
"description": "Encrypt at rest"
|
|
238
|
+
},
|
|
239
|
+
"index": {
|
|
240
|
+
"type": "boolean",
|
|
241
|
+
"default": false,
|
|
242
|
+
"description": "Create standard database index"
|
|
243
|
+
},
|
|
244
|
+
"externalId": {
|
|
245
|
+
"type": "boolean",
|
|
246
|
+
"default": false,
|
|
247
|
+
"description": "Is external ID for upsert operations"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"name",
|
|
252
|
+
"label",
|
|
253
|
+
"type"
|
|
254
|
+
],
|
|
255
|
+
"additionalProperties": false
|
|
256
|
+
},
|
|
257
|
+
"description": "Map of field definitions"
|
|
258
|
+
},
|
|
259
|
+
"indexes": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"name": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"description": "Index name"
|
|
267
|
+
},
|
|
268
|
+
"fields": {
|
|
269
|
+
"type": "array",
|
|
270
|
+
"items": {
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"description": "Fields included in the index"
|
|
274
|
+
},
|
|
275
|
+
"unique": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"description": "Whether the index is unique"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"fields"
|
|
282
|
+
],
|
|
283
|
+
"additionalProperties": false
|
|
284
|
+
},
|
|
285
|
+
"description": "Database indexes definition"
|
|
286
|
+
},
|
|
287
|
+
"nameField": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"description": "Which field represents the record name/title (usually \"name\")"
|
|
290
|
+
},
|
|
291
|
+
"enable": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"properties": {
|
|
294
|
+
"trackHistory": {
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"default": false
|
|
297
|
+
},
|
|
298
|
+
"searchable": {
|
|
299
|
+
"type": "boolean",
|
|
300
|
+
"default": true
|
|
301
|
+
},
|
|
302
|
+
"apiEnabled": {
|
|
303
|
+
"type": "boolean",
|
|
304
|
+
"default": true
|
|
305
|
+
},
|
|
306
|
+
"files": {
|
|
307
|
+
"type": "boolean",
|
|
308
|
+
"default": false
|
|
309
|
+
},
|
|
310
|
+
"feedEnabled": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"default": false
|
|
313
|
+
},
|
|
314
|
+
"trash": {
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"default": true
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"description": "Enabled system capabilities"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"name",
|
|
325
|
+
"fields"
|
|
326
|
+
],
|
|
327
|
+
"additionalProperties": false
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
331
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ObjectCapabilities",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ObjectCapabilities": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"trackHistory": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false
|
|
10
|
+
},
|
|
11
|
+
"searchable": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"default": true
|
|
14
|
+
},
|
|
15
|
+
"apiEnabled": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": true
|
|
18
|
+
},
|
|
19
|
+
"files": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false
|
|
22
|
+
},
|
|
23
|
+
"feedEnabled": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
"trash": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
36
|
+
}
|