@objectstack/spec 0.1.0 → 0.1.2
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 +134 -121
- 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/api/contract.zod.d.ts +1733 -0
- package/dist/api/contract.zod.d.ts.map +1 -0
- package/dist/api/contract.zod.js +138 -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 +1808 -0
- package/dist/data/field.zod.d.ts.map +1 -0
- package/dist/data/field.zod.js +222 -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 +470 -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 +844 -0
- package/dist/data/object.zod.d.ts.map +1 -0
- package/dist/data/object.zod.js +81 -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 +438 -0
- package/dist/data/query.zod.d.ts.map +1 -0
- package/dist/data/query.zod.js +147 -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/trigger.zod.d.ts +354 -0
- package/dist/data/trigger.zod.d.ts.map +1 -0
- package/dist/data/trigger.zod.js +195 -0
- package/dist/data/validation.zod.d.ts +276 -0
- package/dist/data/validation.zod.d.ts.map +1 -0
- package/dist/data/validation.zod.js +105 -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 +41 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +62 -5
- package/dist/system/api.zod.d.ts +294 -0
- package/dist/system/api.zod.d.ts.map +1 -0
- package/dist/system/api.zod.js +56 -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 +210 -0
- package/dist/system/datasource.zod.d.ts.map +1 -0
- package/dist/system/datasource.zod.js +90 -0
- package/dist/system/discovery.zod.d.ts +174 -0
- package/dist/system/discovery.zod.d.ts.map +1 -0
- package/dist/system/discovery.zod.js +53 -0
- package/dist/system/driver.zod.d.ts +1525 -0
- package/dist/system/driver.zod.d.ts.map +1 -0
- package/dist/system/driver.zod.js +290 -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 +397 -0
- package/dist/system/manifest.zod.d.ts.map +1 -0
- package/dist/system/manifest.zod.js +142 -0
- package/dist/system/plugin.zod.d.ts +3516 -0
- package/dist/system/plugin.zod.d.ts.map +1 -0
- package/dist/system/plugin.zod.js +226 -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 +155 -0
- package/dist/ui/action.zod.d.ts.map +1 -0
- package/dist/ui/action.zod.js +54 -0
- package/dist/ui/app.zod.d.ts +405 -0
- package/dist/ui/app.zod.d.ts.map +1 -0
- package/dist/ui/app.zod.js +138 -0
- package/dist/ui/dashboard.zod.d.ts +213 -0
- package/dist/ui/dashboard.zod.d.ts.map +1 -0
- package/dist/ui/dashboard.zod.js +72 -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 +233 -0
- package/dist/ui/report.zod.d.ts.map +1 -0
- package/dist/ui/report.zod.js +74 -0
- package/dist/ui/theme.zod.d.ts +1221 -0
- package/dist/ui/theme.zod.d.ts.map +1 -0
- package/dist/ui/theme.zod.js +202 -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/dist/ui/widget.zod.d.ts +350 -0
- package/dist/ui/widget.zod.d.ts.map +1 -0
- package/dist/ui/widget.zod.js +66 -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 +162 -0
- package/json-schema/ActionParam.json +82 -0
- package/json-schema/Address.json +40 -0
- package/json-schema/Agent.json +140 -0
- package/json-schema/AggregationFunction.json +19 -0
- package/json-schema/AggregationNode.json +42 -0
- package/json-schema/Animation.json +56 -0
- package/json-schema/ApiCapabilities.json +28 -0
- package/json-schema/ApiEndpoint.json +162 -0
- package/json-schema/ApiError.json +27 -0
- package/json-schema/ApiMapping.json +28 -0
- package/json-schema/ApiRoutes.json +41 -0
- package/json-schema/App.json +297 -0
- package/json-schema/AppBranding.json +24 -0
- package/json-schema/AsyncValidation.json +70 -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/BaseResponse.json +63 -0
- package/json-schema/BorderRadius.json +44 -0
- package/json-schema/Breakpoints.json +36 -0
- package/json-schema/BulkRequest.json +29 -0
- package/json-schema/BulkResponse.json +108 -0
- package/json-schema/CalendarConfig.json +28 -0
- package/json-schema/ChartType.json +19 -0
- package/json-schema/ColorPalette.json +83 -0
- package/json-schema/ConditionalValidation.json +793 -0
- package/json-schema/CreateRequest.json +20 -0
- package/json-schema/CrossFieldValidation.json +56 -0
- package/json-schema/CustomValidator.json +57 -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 +75 -0
- package/json-schema/DatasourceCapabilities.json +36 -0
- package/json-schema/DeleteResponse.json +68 -0
- package/json-schema/Discovery.json +114 -0
- package/json-schema/DriverCapabilities.json +39 -0
- package/json-schema/DriverDefinition.json +66 -0
- package/json-schema/DriverInterface.json +58 -0
- package/json-schema/DriverOptions.json +23 -0
- package/json-schema/DriverType.json +10 -0
- package/json-schema/EmailAlertAction.json +37 -0
- package/json-schema/ExportRequest.json +786 -0
- package/json-schema/Feature.json +51 -0
- package/json-schema/Field.json +290 -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 +42 -0
- package/json-schema/FieldUpdateAction.json +32 -0
- package/json-schema/FieldWidgetProps.json +327 -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/I18nContext.json +12 -0
- package/json-schema/Index.json +30 -0
- package/json-schema/JoinNode.json +455 -0
- package/json-schema/JoinType.json +15 -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/ListRecordResponse.json +103 -0
- package/json-schema/ListView.json +153 -0
- package/json-schema/Locale.json +10 -0
- package/json-schema/LocationCoordinates.json +36 -0
- package/json-schema/Logger.json +25 -0
- package/json-schema/LogicOperator.json +14 -0
- package/json-schema/Manifest.json +315 -0
- package/json-schema/Mapping.json +598 -0
- package/json-schema/MenuItem.json +28 -0
- package/json-schema/MetricType.json +14 -0
- package/json-schema/ModificationResult.json +46 -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 +428 -0
- package/json-schema/ObjectCapabilities.json +62 -0
- package/json-schema/ObjectNavItem.json +46 -0
- package/json-schema/ObjectPermission.json +42 -0
- package/json-schema/ObjectQLClient.json +12 -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/Plugin.json +20 -0
- package/json-schema/PluginContext.json +91 -0
- package/json-schema/PluginLifecycle.json +11 -0
- package/json-schema/Policy.json +138 -0
- package/json-schema/Query.json +456 -0
- package/json-schema/RateLimit.json +26 -0
- package/json-schema/RecordData.json +11 -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/Router.json +12 -0
- package/json-schema/SAMLConfig.json +44 -0
- package/json-schema/Scheduler.json +12 -0
- package/json-schema/ScopedStorage.json +12 -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/Shadow.json +44 -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/SingleRecordResponse.json +69 -0
- package/json-schema/SortNode.json +26 -0
- package/json-schema/Spacing.json +64 -0
- package/json-schema/StateMachineValidation.json +59 -0
- package/json-schema/SystemAPI.json +12 -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/Theme.json +543 -0
- package/json-schema/ThemeMode.json +14 -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/Trigger.json +73 -0
- package/json-schema/TriggerAction.json +14 -0
- package/json-schema/TriggerContext.json +61 -0
- package/json-schema/TriggerTiming.json +13 -0
- package/json-schema/Typography.json +142 -0
- package/json-schema/UniquenessValidation.json +59 -0
- package/json-schema/UpdateRequest.json +20 -0
- package/json-schema/UrlNavItem.json +51 -0
- package/json-schema/ValidationRule.json +794 -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/WindowFunction.json +24 -0
- package/json-schema/WindowFunctionNode.json +104 -0
- package/json-schema/WindowSpec.json +65 -0
- package/json-schema/WorkflowAction.json +84 -0
- package/json-schema/WorkflowRule.json +128 -0
- package/json-schema/WorkflowTriggerType.json +16 -0
- package/json-schema/ZIndex.json +44 -0
- package/package.json +34 -20
- 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,428 @@
|
|
|
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": "Target Datasource ID (e.g. \"postgres\", \"salesforce\"). references sys_datasource."
|
|
32
|
+
},
|
|
33
|
+
"tableName": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Physical table/collection name in the target datasource"
|
|
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
|
+
"richtext",
|
|
68
|
+
"number",
|
|
69
|
+
"currency",
|
|
70
|
+
"percent",
|
|
71
|
+
"date",
|
|
72
|
+
"datetime",
|
|
73
|
+
"time",
|
|
74
|
+
"boolean",
|
|
75
|
+
"select",
|
|
76
|
+
"lookup",
|
|
77
|
+
"master_detail",
|
|
78
|
+
"image",
|
|
79
|
+
"file",
|
|
80
|
+
"avatar",
|
|
81
|
+
"formula",
|
|
82
|
+
"summary",
|
|
83
|
+
"autonumber",
|
|
84
|
+
"location",
|
|
85
|
+
"address",
|
|
86
|
+
"code",
|
|
87
|
+
"color",
|
|
88
|
+
"rating",
|
|
89
|
+
"signature"
|
|
90
|
+
],
|
|
91
|
+
"description": "Field Data Type"
|
|
92
|
+
},
|
|
93
|
+
"description": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Tooltip/Help text"
|
|
96
|
+
},
|
|
97
|
+
"format": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Format string (e.g. email, phone)"
|
|
100
|
+
},
|
|
101
|
+
"required": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": false,
|
|
104
|
+
"description": "Is required"
|
|
105
|
+
},
|
|
106
|
+
"searchable": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": false,
|
|
109
|
+
"description": "Is searchable"
|
|
110
|
+
},
|
|
111
|
+
"multiple": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"default": false,
|
|
114
|
+
"description": "Allow multiple values (Stores as Array/JSON). Applicable for select, lookup, file, image."
|
|
115
|
+
},
|
|
116
|
+
"unique": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": false,
|
|
119
|
+
"description": "Is unique constraint"
|
|
120
|
+
},
|
|
121
|
+
"defaultValue": {
|
|
122
|
+
"description": "Default value"
|
|
123
|
+
},
|
|
124
|
+
"maxLength": {
|
|
125
|
+
"type": "number",
|
|
126
|
+
"description": "Max character length"
|
|
127
|
+
},
|
|
128
|
+
"minLength": {
|
|
129
|
+
"type": "number",
|
|
130
|
+
"description": "Min character length"
|
|
131
|
+
},
|
|
132
|
+
"precision": {
|
|
133
|
+
"type": "number",
|
|
134
|
+
"description": "Total digits"
|
|
135
|
+
},
|
|
136
|
+
"scale": {
|
|
137
|
+
"type": "number",
|
|
138
|
+
"description": "Decimal places"
|
|
139
|
+
},
|
|
140
|
+
"min": {
|
|
141
|
+
"type": "number",
|
|
142
|
+
"description": "Minimum value"
|
|
143
|
+
},
|
|
144
|
+
"max": {
|
|
145
|
+
"type": "number",
|
|
146
|
+
"description": "Maximum value"
|
|
147
|
+
},
|
|
148
|
+
"options": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"label": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Display label"
|
|
156
|
+
},
|
|
157
|
+
"value": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "Stored value"
|
|
160
|
+
},
|
|
161
|
+
"color": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "Color code for badges/charts"
|
|
164
|
+
},
|
|
165
|
+
"default": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"description": "Is default option"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": [
|
|
171
|
+
"label",
|
|
172
|
+
"value"
|
|
173
|
+
],
|
|
174
|
+
"additionalProperties": false
|
|
175
|
+
},
|
|
176
|
+
"description": "Static options for select/multiselect"
|
|
177
|
+
},
|
|
178
|
+
"reference": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"description": "Target Object Name"
|
|
181
|
+
},
|
|
182
|
+
"referenceFilters": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"items": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"description": "Filters applied to lookup dialogs (e.g. \"active = true\")"
|
|
188
|
+
},
|
|
189
|
+
"writeRequiresMasterRead": {
|
|
190
|
+
"type": "boolean",
|
|
191
|
+
"description": "If true, user needs read access to master record to edit this field"
|
|
192
|
+
},
|
|
193
|
+
"deleteBehavior": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"enum": [
|
|
196
|
+
"set_null",
|
|
197
|
+
"cascade",
|
|
198
|
+
"restrict"
|
|
199
|
+
],
|
|
200
|
+
"default": "set_null",
|
|
201
|
+
"description": "What happens if referenced record is deleted"
|
|
202
|
+
},
|
|
203
|
+
"expression": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"description": "Formula expression"
|
|
206
|
+
},
|
|
207
|
+
"formula": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Deprecated: Use expression"
|
|
210
|
+
},
|
|
211
|
+
"summaryOperations": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"object": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"field": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"function": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"enum": [
|
|
223
|
+
"count",
|
|
224
|
+
"sum",
|
|
225
|
+
"min",
|
|
226
|
+
"max",
|
|
227
|
+
"avg"
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": [
|
|
232
|
+
"object",
|
|
233
|
+
"field",
|
|
234
|
+
"function"
|
|
235
|
+
],
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"description": "Roll-up summary definition"
|
|
238
|
+
},
|
|
239
|
+
"language": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Programming language for syntax highlighting (e.g., javascript, python, sql)"
|
|
242
|
+
},
|
|
243
|
+
"theme": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"description": "Code editor theme (e.g., dark, light, monokai)"
|
|
246
|
+
},
|
|
247
|
+
"lineNumbers": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"description": "Show line numbers in code editor"
|
|
250
|
+
},
|
|
251
|
+
"maxRating": {
|
|
252
|
+
"type": "number",
|
|
253
|
+
"description": "Maximum rating value (default: 5)"
|
|
254
|
+
},
|
|
255
|
+
"allowHalf": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"description": "Allow half-star ratings"
|
|
258
|
+
},
|
|
259
|
+
"displayMap": {
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"description": "Display map widget for location field"
|
|
262
|
+
},
|
|
263
|
+
"allowGeocoding": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"description": "Allow address-to-coordinate conversion"
|
|
266
|
+
},
|
|
267
|
+
"addressFormat": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"enum": [
|
|
270
|
+
"us",
|
|
271
|
+
"uk",
|
|
272
|
+
"international"
|
|
273
|
+
],
|
|
274
|
+
"description": "Address format template"
|
|
275
|
+
},
|
|
276
|
+
"colorFormat": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"enum": [
|
|
279
|
+
"hex",
|
|
280
|
+
"rgb",
|
|
281
|
+
"rgba",
|
|
282
|
+
"hsl"
|
|
283
|
+
],
|
|
284
|
+
"description": "Color value format"
|
|
285
|
+
},
|
|
286
|
+
"allowAlpha": {
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"description": "Allow transparency/alpha channel"
|
|
289
|
+
},
|
|
290
|
+
"presetColors": {
|
|
291
|
+
"type": "array",
|
|
292
|
+
"items": {
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"description": "Preset color options"
|
|
296
|
+
},
|
|
297
|
+
"hidden": {
|
|
298
|
+
"type": "boolean",
|
|
299
|
+
"default": false,
|
|
300
|
+
"description": "Hidden from default UI"
|
|
301
|
+
},
|
|
302
|
+
"readonly": {
|
|
303
|
+
"type": "boolean",
|
|
304
|
+
"default": false,
|
|
305
|
+
"description": "Read-only in UI"
|
|
306
|
+
},
|
|
307
|
+
"encryption": {
|
|
308
|
+
"type": "boolean",
|
|
309
|
+
"default": false,
|
|
310
|
+
"description": "Encrypt at rest"
|
|
311
|
+
},
|
|
312
|
+
"index": {
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"default": false,
|
|
315
|
+
"description": "Create standard database index"
|
|
316
|
+
},
|
|
317
|
+
"externalId": {
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"default": false,
|
|
320
|
+
"description": "Is external ID for upsert operations"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"type"
|
|
325
|
+
],
|
|
326
|
+
"additionalProperties": false
|
|
327
|
+
},
|
|
328
|
+
"description": "Map of field definitions"
|
|
329
|
+
},
|
|
330
|
+
"indexes": {
|
|
331
|
+
"type": "array",
|
|
332
|
+
"items": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"properties": {
|
|
335
|
+
"name": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "Index name"
|
|
338
|
+
},
|
|
339
|
+
"fields": {
|
|
340
|
+
"type": "array",
|
|
341
|
+
"items": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"description": "Fields included in the index"
|
|
345
|
+
},
|
|
346
|
+
"unique": {
|
|
347
|
+
"type": "boolean",
|
|
348
|
+
"description": "Whether the index is unique"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": [
|
|
352
|
+
"fields"
|
|
353
|
+
],
|
|
354
|
+
"additionalProperties": false
|
|
355
|
+
},
|
|
356
|
+
"description": "Database indexes definition"
|
|
357
|
+
},
|
|
358
|
+
"nameField": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"description": "Which field represents the record name/title (usually \"name\")"
|
|
361
|
+
},
|
|
362
|
+
"enable": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"trackHistory": {
|
|
366
|
+
"type": "boolean",
|
|
367
|
+
"default": false
|
|
368
|
+
},
|
|
369
|
+
"searchable": {
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"default": true
|
|
372
|
+
},
|
|
373
|
+
"apiEnabled": {
|
|
374
|
+
"type": "boolean",
|
|
375
|
+
"default": true
|
|
376
|
+
},
|
|
377
|
+
"apiMethods": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"items": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"enum": [
|
|
382
|
+
"get",
|
|
383
|
+
"list",
|
|
384
|
+
"create",
|
|
385
|
+
"update",
|
|
386
|
+
"delete",
|
|
387
|
+
"upsert",
|
|
388
|
+
"bulkCreate",
|
|
389
|
+
"bulkUpdate",
|
|
390
|
+
"bulkDelete",
|
|
391
|
+
"bulkUpsert",
|
|
392
|
+
"aggregate",
|
|
393
|
+
"history",
|
|
394
|
+
"search",
|
|
395
|
+
"restore",
|
|
396
|
+
"purge",
|
|
397
|
+
"import",
|
|
398
|
+
"export"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"description": "Allowed API operations"
|
|
402
|
+
},
|
|
403
|
+
"files": {
|
|
404
|
+
"type": "boolean",
|
|
405
|
+
"default": false
|
|
406
|
+
},
|
|
407
|
+
"feedEnabled": {
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"default": false
|
|
410
|
+
},
|
|
411
|
+
"trash": {
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"default": true
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "Enabled system capabilities"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"name",
|
|
422
|
+
"fields"
|
|
423
|
+
],
|
|
424
|
+
"additionalProperties": false
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
428
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
"apiMethods": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"get",
|
|
25
|
+
"list",
|
|
26
|
+
"create",
|
|
27
|
+
"update",
|
|
28
|
+
"delete",
|
|
29
|
+
"upsert",
|
|
30
|
+
"bulkCreate",
|
|
31
|
+
"bulkUpdate",
|
|
32
|
+
"bulkDelete",
|
|
33
|
+
"bulkUpsert",
|
|
34
|
+
"aggregate",
|
|
35
|
+
"history",
|
|
36
|
+
"search",
|
|
37
|
+
"restore",
|
|
38
|
+
"purge",
|
|
39
|
+
"import",
|
|
40
|
+
"export"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"description": "Allowed API operations"
|
|
44
|
+
},
|
|
45
|
+
"files": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
"feedEnabled": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"trash": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
62
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ObjectNavItem",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ObjectNavItem": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for this navigation item"
|
|
10
|
+
},
|
|
11
|
+
"label": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Display proper label"
|
|
14
|
+
},
|
|
15
|
+
"icon": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Icon name"
|
|
18
|
+
},
|
|
19
|
+
"visible": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Visibility formula condition"
|
|
22
|
+
},
|
|
23
|
+
"type": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"const": "object"
|
|
26
|
+
},
|
|
27
|
+
"objectName": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Target object name"
|
|
30
|
+
},
|
|
31
|
+
"viewName": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Default list view to open. Defaults to \"all\""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"id",
|
|
38
|
+
"label",
|
|
39
|
+
"type",
|
|
40
|
+
"objectName"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
46
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ObjectPermission",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ObjectPermission": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"allowCreate": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Create permission"
|
|
11
|
+
},
|
|
12
|
+
"allowRead": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": false,
|
|
15
|
+
"description": "Read permission"
|
|
16
|
+
},
|
|
17
|
+
"allowEdit": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false,
|
|
20
|
+
"description": "Edit permission"
|
|
21
|
+
},
|
|
22
|
+
"allowDelete": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false,
|
|
25
|
+
"description": "Delete permission"
|
|
26
|
+
},
|
|
27
|
+
"viewAllRecords": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "View All Data (Bypass Sharing)"
|
|
31
|
+
},
|
|
32
|
+
"modifyAllRecords": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "Modify All Data (Bypass Sharing)"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ObjectQLClient",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ObjectQLClient": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {},
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"description": "ObjectQL Data Access Client"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
12
|
+
}
|