@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,786 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ExportRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ExportRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"object": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Object name (e.g. account)"
|
|
10
|
+
},
|
|
11
|
+
"fields": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"field": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"fields": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {}
|
|
27
|
+
},
|
|
28
|
+
"alias": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"field"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"description": "Fields to retrieve"
|
|
40
|
+
},
|
|
41
|
+
"aggregations": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"function": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"count",
|
|
50
|
+
"sum",
|
|
51
|
+
"avg",
|
|
52
|
+
"min",
|
|
53
|
+
"max",
|
|
54
|
+
"count_distinct",
|
|
55
|
+
"array_agg",
|
|
56
|
+
"string_agg"
|
|
57
|
+
],
|
|
58
|
+
"description": "Aggregation function"
|
|
59
|
+
},
|
|
60
|
+
"field": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Field to aggregate (optional for COUNT(*))"
|
|
63
|
+
},
|
|
64
|
+
"alias": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Result column alias"
|
|
67
|
+
},
|
|
68
|
+
"distinct": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Apply DISTINCT before aggregation"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"function",
|
|
75
|
+
"alias"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
},
|
|
79
|
+
"description": "Aggregation functions (GROUP BY)"
|
|
80
|
+
},
|
|
81
|
+
"windowFunctions": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"function": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"row_number",
|
|
90
|
+
"rank",
|
|
91
|
+
"dense_rank",
|
|
92
|
+
"percent_rank",
|
|
93
|
+
"lag",
|
|
94
|
+
"lead",
|
|
95
|
+
"first_value",
|
|
96
|
+
"last_value",
|
|
97
|
+
"sum",
|
|
98
|
+
"avg",
|
|
99
|
+
"count",
|
|
100
|
+
"min",
|
|
101
|
+
"max"
|
|
102
|
+
],
|
|
103
|
+
"description": "Window function name"
|
|
104
|
+
},
|
|
105
|
+
"field": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Field to operate on (for aggregate window functions)"
|
|
108
|
+
},
|
|
109
|
+
"alias": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Result column alias"
|
|
112
|
+
},
|
|
113
|
+
"over": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"partitionBy": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"description": "PARTITION BY fields"
|
|
122
|
+
},
|
|
123
|
+
"orderBy": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"items": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"field": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"order": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": [
|
|
134
|
+
"asc",
|
|
135
|
+
"desc"
|
|
136
|
+
],
|
|
137
|
+
"default": "asc"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"field"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"description": "ORDER BY specification"
|
|
146
|
+
},
|
|
147
|
+
"frame": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"type": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"rows",
|
|
154
|
+
"range"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"start": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
|
|
160
|
+
},
|
|
161
|
+
"end": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"description": "Window frame specification"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"description": "Window specification (OVER clause)"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": [
|
|
175
|
+
"function",
|
|
176
|
+
"alias",
|
|
177
|
+
"over"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"description": "Window functions with OVER clause"
|
|
182
|
+
},
|
|
183
|
+
"filters": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "array",
|
|
187
|
+
"minItems": 3,
|
|
188
|
+
"maxItems": 3,
|
|
189
|
+
"items": [
|
|
190
|
+
{
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "string",
|
|
195
|
+
"enum": [
|
|
196
|
+
"=",
|
|
197
|
+
"!=",
|
|
198
|
+
"<>",
|
|
199
|
+
">",
|
|
200
|
+
">=",
|
|
201
|
+
"<",
|
|
202
|
+
"<=",
|
|
203
|
+
"startswith",
|
|
204
|
+
"contains",
|
|
205
|
+
"notcontains",
|
|
206
|
+
"between",
|
|
207
|
+
"in",
|
|
208
|
+
"notin",
|
|
209
|
+
"is_null",
|
|
210
|
+
"is_not_null"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "array",
|
|
218
|
+
"items": {
|
|
219
|
+
"anyOf": [
|
|
220
|
+
{
|
|
221
|
+
"type": "string"
|
|
222
|
+
},
|
|
223
|
+
{}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"description": "Filtering criteria"
|
|
229
|
+
},
|
|
230
|
+
"joins": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"type": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"enum": [
|
|
238
|
+
"inner",
|
|
239
|
+
"left",
|
|
240
|
+
"right",
|
|
241
|
+
"full"
|
|
242
|
+
],
|
|
243
|
+
"description": "Join type"
|
|
244
|
+
},
|
|
245
|
+
"object": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"description": "Object/table to join"
|
|
248
|
+
},
|
|
249
|
+
"alias": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "Table alias"
|
|
252
|
+
},
|
|
253
|
+
"on": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "array",
|
|
257
|
+
"minItems": 3,
|
|
258
|
+
"maxItems": 3,
|
|
259
|
+
"items": [
|
|
260
|
+
{
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "string",
|
|
265
|
+
"enum": [
|
|
266
|
+
"=",
|
|
267
|
+
"!=",
|
|
268
|
+
"<>",
|
|
269
|
+
">",
|
|
270
|
+
">=",
|
|
271
|
+
"<",
|
|
272
|
+
"<=",
|
|
273
|
+
"startswith",
|
|
274
|
+
"contains",
|
|
275
|
+
"notcontains",
|
|
276
|
+
"between",
|
|
277
|
+
"in",
|
|
278
|
+
"notin",
|
|
279
|
+
"is_null",
|
|
280
|
+
"is_not_null"
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "array",
|
|
288
|
+
"items": {
|
|
289
|
+
"anyOf": [
|
|
290
|
+
{
|
|
291
|
+
"type": "string"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"anyOf": [
|
|
295
|
+
{
|
|
296
|
+
"type": "array",
|
|
297
|
+
"minItems": 3,
|
|
298
|
+
"maxItems": 3,
|
|
299
|
+
"items": [
|
|
300
|
+
{
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "string",
|
|
305
|
+
"enum": [
|
|
306
|
+
"=",
|
|
307
|
+
"!=",
|
|
308
|
+
"<>",
|
|
309
|
+
">",
|
|
310
|
+
">=",
|
|
311
|
+
"<",
|
|
312
|
+
"<=",
|
|
313
|
+
"startswith",
|
|
314
|
+
"contains",
|
|
315
|
+
"notcontains",
|
|
316
|
+
"between",
|
|
317
|
+
"in",
|
|
318
|
+
"notin",
|
|
319
|
+
"is_null",
|
|
320
|
+
"is_not_null"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "array",
|
|
328
|
+
"items": {
|
|
329
|
+
"anyOf": [
|
|
330
|
+
{
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
{}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"description": "Join condition"
|
|
344
|
+
},
|
|
345
|
+
"subquery": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"object": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"description": "Object name (e.g. account)"
|
|
351
|
+
},
|
|
352
|
+
"fields": {
|
|
353
|
+
"type": "array",
|
|
354
|
+
"items": {
|
|
355
|
+
"anyOf": [
|
|
356
|
+
{
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "object",
|
|
361
|
+
"properties": {
|
|
362
|
+
"field": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"fields": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"items": {}
|
|
368
|
+
},
|
|
369
|
+
"alias": {
|
|
370
|
+
"type": "string"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": [
|
|
374
|
+
"field"
|
|
375
|
+
],
|
|
376
|
+
"additionalProperties": false
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"description": "Fields to retrieve"
|
|
381
|
+
},
|
|
382
|
+
"aggregations": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"function": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"enum": [
|
|
390
|
+
"count",
|
|
391
|
+
"sum",
|
|
392
|
+
"avg",
|
|
393
|
+
"min",
|
|
394
|
+
"max",
|
|
395
|
+
"count_distinct",
|
|
396
|
+
"array_agg",
|
|
397
|
+
"string_agg"
|
|
398
|
+
],
|
|
399
|
+
"description": "Aggregation function"
|
|
400
|
+
},
|
|
401
|
+
"field": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"description": "Field to aggregate (optional for COUNT(*))"
|
|
404
|
+
},
|
|
405
|
+
"alias": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"description": "Result column alias"
|
|
408
|
+
},
|
|
409
|
+
"distinct": {
|
|
410
|
+
"type": "boolean",
|
|
411
|
+
"description": "Apply DISTINCT before aggregation"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"required": [
|
|
415
|
+
"function",
|
|
416
|
+
"alias"
|
|
417
|
+
],
|
|
418
|
+
"additionalProperties": false
|
|
419
|
+
},
|
|
420
|
+
"description": "Aggregation functions (GROUP BY)"
|
|
421
|
+
},
|
|
422
|
+
"windowFunctions": {
|
|
423
|
+
"type": "array",
|
|
424
|
+
"items": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"properties": {
|
|
427
|
+
"function": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"enum": [
|
|
430
|
+
"row_number",
|
|
431
|
+
"rank",
|
|
432
|
+
"dense_rank",
|
|
433
|
+
"percent_rank",
|
|
434
|
+
"lag",
|
|
435
|
+
"lead",
|
|
436
|
+
"first_value",
|
|
437
|
+
"last_value",
|
|
438
|
+
"sum",
|
|
439
|
+
"avg",
|
|
440
|
+
"count",
|
|
441
|
+
"min",
|
|
442
|
+
"max"
|
|
443
|
+
],
|
|
444
|
+
"description": "Window function name"
|
|
445
|
+
},
|
|
446
|
+
"field": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"description": "Field to operate on (for aggregate window functions)"
|
|
449
|
+
},
|
|
450
|
+
"alias": {
|
|
451
|
+
"type": "string",
|
|
452
|
+
"description": "Result column alias"
|
|
453
|
+
},
|
|
454
|
+
"over": {
|
|
455
|
+
"type": "object",
|
|
456
|
+
"properties": {
|
|
457
|
+
"partitionBy": {
|
|
458
|
+
"type": "array",
|
|
459
|
+
"items": {
|
|
460
|
+
"type": "string"
|
|
461
|
+
},
|
|
462
|
+
"description": "PARTITION BY fields"
|
|
463
|
+
},
|
|
464
|
+
"orderBy": {
|
|
465
|
+
"type": "array",
|
|
466
|
+
"items": {
|
|
467
|
+
"type": "object",
|
|
468
|
+
"properties": {
|
|
469
|
+
"field": {
|
|
470
|
+
"type": "string"
|
|
471
|
+
},
|
|
472
|
+
"order": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"enum": [
|
|
475
|
+
"asc",
|
|
476
|
+
"desc"
|
|
477
|
+
],
|
|
478
|
+
"default": "asc"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"required": [
|
|
482
|
+
"field"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false
|
|
485
|
+
},
|
|
486
|
+
"description": "ORDER BY specification"
|
|
487
|
+
},
|
|
488
|
+
"frame": {
|
|
489
|
+
"type": "object",
|
|
490
|
+
"properties": {
|
|
491
|
+
"type": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"enum": [
|
|
494
|
+
"rows",
|
|
495
|
+
"range"
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
"start": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
|
|
501
|
+
},
|
|
502
|
+
"end": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"additionalProperties": false,
|
|
508
|
+
"description": "Window frame specification"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"additionalProperties": false,
|
|
512
|
+
"description": "Window specification (OVER clause)"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": [
|
|
516
|
+
"function",
|
|
517
|
+
"alias",
|
|
518
|
+
"over"
|
|
519
|
+
],
|
|
520
|
+
"additionalProperties": false
|
|
521
|
+
},
|
|
522
|
+
"description": "Window functions with OVER clause"
|
|
523
|
+
},
|
|
524
|
+
"filters": {
|
|
525
|
+
"anyOf": [
|
|
526
|
+
{
|
|
527
|
+
"type": "array",
|
|
528
|
+
"minItems": 3,
|
|
529
|
+
"maxItems": 3,
|
|
530
|
+
"items": [
|
|
531
|
+
{
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "string",
|
|
536
|
+
"enum": [
|
|
537
|
+
"=",
|
|
538
|
+
"!=",
|
|
539
|
+
"<>",
|
|
540
|
+
">",
|
|
541
|
+
">=",
|
|
542
|
+
"<",
|
|
543
|
+
"<=",
|
|
544
|
+
"startswith",
|
|
545
|
+
"contains",
|
|
546
|
+
"notcontains",
|
|
547
|
+
"between",
|
|
548
|
+
"in",
|
|
549
|
+
"notin",
|
|
550
|
+
"is_null",
|
|
551
|
+
"is_not_null"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
{}
|
|
555
|
+
]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"type": "array",
|
|
559
|
+
"items": {
|
|
560
|
+
"anyOf": [
|
|
561
|
+
{
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
{}
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"description": "Filtering criteria"
|
|
570
|
+
},
|
|
571
|
+
"joins": {},
|
|
572
|
+
"groupBy": {
|
|
573
|
+
"type": "array",
|
|
574
|
+
"items": {
|
|
575
|
+
"type": "string"
|
|
576
|
+
},
|
|
577
|
+
"description": "GROUP BY fields"
|
|
578
|
+
},
|
|
579
|
+
"having": {
|
|
580
|
+
"anyOf": [
|
|
581
|
+
{
|
|
582
|
+
"type": "array",
|
|
583
|
+
"minItems": 3,
|
|
584
|
+
"maxItems": 3,
|
|
585
|
+
"items": [
|
|
586
|
+
{
|
|
587
|
+
"type": "string"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "string",
|
|
591
|
+
"enum": [
|
|
592
|
+
"=",
|
|
593
|
+
"!=",
|
|
594
|
+
"<>",
|
|
595
|
+
">",
|
|
596
|
+
">=",
|
|
597
|
+
"<",
|
|
598
|
+
"<=",
|
|
599
|
+
"startswith",
|
|
600
|
+
"contains",
|
|
601
|
+
"notcontains",
|
|
602
|
+
"between",
|
|
603
|
+
"in",
|
|
604
|
+
"notin",
|
|
605
|
+
"is_null",
|
|
606
|
+
"is_not_null"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
{}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "array",
|
|
614
|
+
"items": {
|
|
615
|
+
"anyOf": [
|
|
616
|
+
{
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
{}
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
"description": "HAVING clause for aggregation filtering"
|
|
625
|
+
},
|
|
626
|
+
"sort": {
|
|
627
|
+
"type": "array",
|
|
628
|
+
"items": {
|
|
629
|
+
"type": "object",
|
|
630
|
+
"properties": {
|
|
631
|
+
"field": {
|
|
632
|
+
"type": "string"
|
|
633
|
+
},
|
|
634
|
+
"order": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"enum": [
|
|
637
|
+
"asc",
|
|
638
|
+
"desc"
|
|
639
|
+
],
|
|
640
|
+
"default": "asc"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"required": [
|
|
644
|
+
"field"
|
|
645
|
+
],
|
|
646
|
+
"additionalProperties": false
|
|
647
|
+
},
|
|
648
|
+
"description": "Sorting instructions"
|
|
649
|
+
},
|
|
650
|
+
"top": {
|
|
651
|
+
"type": "number",
|
|
652
|
+
"description": "Limit results"
|
|
653
|
+
},
|
|
654
|
+
"skip": {
|
|
655
|
+
"type": "number",
|
|
656
|
+
"description": "Offset results"
|
|
657
|
+
},
|
|
658
|
+
"distinct": {
|
|
659
|
+
"type": "boolean",
|
|
660
|
+
"description": "SELECT DISTINCT flag"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"required": [
|
|
664
|
+
"object"
|
|
665
|
+
],
|
|
666
|
+
"additionalProperties": false,
|
|
667
|
+
"description": "Subquery instead of object"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"required": [
|
|
671
|
+
"type",
|
|
672
|
+
"object",
|
|
673
|
+
"on"
|
|
674
|
+
],
|
|
675
|
+
"additionalProperties": false
|
|
676
|
+
},
|
|
677
|
+
"description": "Table joins"
|
|
678
|
+
},
|
|
679
|
+
"groupBy": {
|
|
680
|
+
"type": "array",
|
|
681
|
+
"items": {
|
|
682
|
+
"type": "string"
|
|
683
|
+
},
|
|
684
|
+
"description": "GROUP BY fields"
|
|
685
|
+
},
|
|
686
|
+
"having": {
|
|
687
|
+
"anyOf": [
|
|
688
|
+
{
|
|
689
|
+
"type": "array",
|
|
690
|
+
"minItems": 3,
|
|
691
|
+
"maxItems": 3,
|
|
692
|
+
"items": [
|
|
693
|
+
{
|
|
694
|
+
"type": "string"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "string",
|
|
698
|
+
"enum": [
|
|
699
|
+
"=",
|
|
700
|
+
"!=",
|
|
701
|
+
"<>",
|
|
702
|
+
">",
|
|
703
|
+
">=",
|
|
704
|
+
"<",
|
|
705
|
+
"<=",
|
|
706
|
+
"startswith",
|
|
707
|
+
"contains",
|
|
708
|
+
"notcontains",
|
|
709
|
+
"between",
|
|
710
|
+
"in",
|
|
711
|
+
"notin",
|
|
712
|
+
"is_null",
|
|
713
|
+
"is_not_null"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{}
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"type": "array",
|
|
721
|
+
"items": {
|
|
722
|
+
"anyOf": [
|
|
723
|
+
{
|
|
724
|
+
"type": "string"
|
|
725
|
+
},
|
|
726
|
+
{}
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
],
|
|
731
|
+
"description": "HAVING clause for aggregation filtering"
|
|
732
|
+
},
|
|
733
|
+
"sort": {
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "object",
|
|
737
|
+
"properties": {
|
|
738
|
+
"field": {
|
|
739
|
+
"type": "string"
|
|
740
|
+
},
|
|
741
|
+
"order": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"enum": [
|
|
744
|
+
"asc",
|
|
745
|
+
"desc"
|
|
746
|
+
],
|
|
747
|
+
"default": "asc"
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"required": [
|
|
751
|
+
"field"
|
|
752
|
+
],
|
|
753
|
+
"additionalProperties": false
|
|
754
|
+
},
|
|
755
|
+
"description": "Sorting instructions"
|
|
756
|
+
},
|
|
757
|
+
"top": {
|
|
758
|
+
"type": "number",
|
|
759
|
+
"description": "Limit results"
|
|
760
|
+
},
|
|
761
|
+
"skip": {
|
|
762
|
+
"type": "number",
|
|
763
|
+
"description": "Offset results"
|
|
764
|
+
},
|
|
765
|
+
"distinct": {
|
|
766
|
+
"type": "boolean",
|
|
767
|
+
"description": "SELECT DISTINCT flag"
|
|
768
|
+
},
|
|
769
|
+
"format": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"enum": [
|
|
772
|
+
"csv",
|
|
773
|
+
"json",
|
|
774
|
+
"xlsx"
|
|
775
|
+
],
|
|
776
|
+
"default": "csv"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"required": [
|
|
780
|
+
"object"
|
|
781
|
+
],
|
|
782
|
+
"additionalProperties": false
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
786
|
+
}
|