@objectstack/spec 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -1
- 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 +2 -2
- package/dist/data/field.zod.d.ts +1648 -10
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +149 -8
- package/dist/data/filter.zod.d.ts +295 -0
- package/dist/data/filter.zod.d.ts.map +1 -0
- package/dist/data/filter.zod.js +226 -0
- package/dist/data/mapping.zod.d.ts +215 -2
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +505 -25
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +32 -5
- package/dist/data/query.zod.d.ts +349 -0
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +77 -1
- 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 +83 -43
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +51 -5
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/system/api.zod.d.ts +130 -4
- package/dist/system/api.zod.d.ts.map +1 -1
- package/dist/system/api.zod.js +4 -1
- package/dist/system/auth.zod.d.ts +2287 -0
- package/dist/system/auth.zod.d.ts.map +1 -0
- package/dist/system/auth.zod.js +365 -0
- package/dist/system/datasource.zod.d.ts +193 -30
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +58 -11
- 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 +1631 -0
- package/dist/system/driver.zod.d.ts.map +1 -0
- package/dist/system/driver.zod.js +337 -0
- package/dist/system/license.zod.d.ts +2 -2
- package/dist/system/manifest.zod.d.ts +323 -52
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +91 -17
- 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 +10 -10
- package/dist/system/territory.zod.d.ts +1 -1
- package/dist/system/webhook.zod.d.ts +3 -3
- package/dist/ui/action.zod.d.ts +19 -12
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +7 -1
- package/dist/ui/app.zod.d.ts +109 -3
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +13 -2
- package/dist/ui/dashboard.zod.d.ts +19 -13
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +10 -3
- package/dist/ui/page.zod.d.ts +6 -6
- package/dist/ui/report.zod.d.ts +13 -32
- package/dist/ui/report.zod.d.ts.map +1 -1
- package/dist/ui/report.zod.js +10 -9
- 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/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/AccountLinkingConfig.json +27 -0
- package/json-schema/Action.json +8 -2
- package/json-schema/ActionParam.json +8 -2
- package/json-schema/Address.json +40 -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/ApiError.json +27 -0
- package/json-schema/ApiRoutes.json +41 -0
- package/json-schema/App.json +13 -2
- package/json-schema/AsyncValidation.json +70 -0
- package/json-schema/AuthConfig.json +606 -0
- package/json-schema/AuthPluginConfig.json +28 -0
- package/json-schema/AuthStrategy.json +17 -0
- package/json-schema/AuthenticationConfig.json +601 -0
- package/json-schema/AuthenticationProvider.json +617 -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/CSRFConfig.json +31 -0
- package/json-schema/ColorPalette.json +83 -0
- package/json-schema/ComparisonOperator.json +56 -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 +20 -0
- package/json-schema/DashboardWidget.json +20 -0
- package/json-schema/DatabaseAdapter.json +38 -0
- package/json-schema/Datasource.json +25 -23
- package/json-schema/DatasourceCapabilities.json +25 -5
- package/json-schema/DeleteResponse.json +68 -0
- package/json-schema/Discovery.json +114 -0
- package/json-schema/DriverCapabilities.json +69 -0
- package/json-schema/DriverDefinition.json +86 -0
- package/json-schema/DriverInterface.json +88 -0
- package/json-schema/DriverOptions.json +23 -0
- package/json-schema/DriverType.json +1 -18
- package/json-schema/EmailPasswordConfig.json +43 -0
- package/json-schema/EqualityOperator.json +14 -0
- package/json-schema/ExportRequest.json +786 -0
- package/json-schema/Field.json +75 -4
- package/json-schema/FieldOperators.json +108 -0
- package/json-schema/FieldType.json +8 -2
- package/json-schema/FieldWidgetProps.json +327 -0
- package/json-schema/FilterCondition.json +28 -0
- package/json-schema/I18nContext.json +12 -0
- package/json-schema/JoinNode.json +455 -0
- package/json-schema/JoinType.json +15 -0
- package/json-schema/ListRecordResponse.json +103 -0
- package/json-schema/LocationCoordinates.json +36 -0
- package/json-schema/Logger.json +25 -0
- package/json-schema/MagicLinkConfig.json +21 -0
- package/json-schema/Manifest.json +243 -18
- package/json-schema/Mapping.json +328 -0
- package/json-schema/ModificationResult.json +46 -0
- package/json-schema/NormalizedFilter.json +348 -0
- package/json-schema/OAuthProvider.json +66 -0
- package/json-schema/Object.json +103 -6
- package/json-schema/ObjectCapabilities.json +26 -0
- package/json-schema/ObjectQLClient.json +12 -0
- package/json-schema/PasskeyConfig.json +54 -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/Query.json +328 -0
- package/json-schema/QueryFilter.json +34 -0
- package/json-schema/RangeOperator.json +41 -0
- package/json-schema/RateLimitConfig.json +36 -0
- package/json-schema/RecordData.json +11 -0
- package/json-schema/Report.json +20 -26
- package/json-schema/Router.json +12 -0
- package/json-schema/Scheduler.json +12 -0
- package/json-schema/ScopedStorage.json +12 -0
- package/json-schema/SessionConfig.json +56 -0
- package/json-schema/SetOperator.json +18 -0
- package/json-schema/Shadow.json +44 -0
- package/json-schema/SingleRecordResponse.json +69 -0
- package/json-schema/Spacing.json +64 -0
- package/json-schema/SpecialOperator.json +18 -0
- package/json-schema/StandardAuthProvider.json +622 -0
- package/json-schema/StringOperator.json +21 -0
- package/json-schema/SystemAPI.json +12 -0
- package/json-schema/Theme.json +543 -0
- package/json-schema/ThemeMode.json +14 -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/TwoFactorConfig.json +40 -0
- package/json-schema/Typography.json +142 -0
- package/json-schema/UpdateRequest.json +20 -0
- package/json-schema/UserFieldMapping.json +47 -0
- package/json-schema/ValidationRule.json +583 -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/ZIndex.json +44 -0
- package/package.json +8 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ScopedStorage",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ScopedStorage": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {},
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"description": "Plugin Scoped Data Storage (KV)"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SessionConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SessionConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"expiresIn": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"default": 604800,
|
|
10
|
+
"description": "Session expiry in seconds (default 7 days)"
|
|
11
|
+
},
|
|
12
|
+
"updateAge": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"default": 86400,
|
|
15
|
+
"description": "Session update interval in seconds (default 1 day)"
|
|
16
|
+
},
|
|
17
|
+
"cookieName": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "session_token",
|
|
20
|
+
"description": "Session cookie name"
|
|
21
|
+
},
|
|
22
|
+
"cookieSecure": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": true,
|
|
25
|
+
"description": "Use secure cookies (HTTPS only)"
|
|
26
|
+
},
|
|
27
|
+
"cookieSameSite": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"strict",
|
|
31
|
+
"lax",
|
|
32
|
+
"none"
|
|
33
|
+
],
|
|
34
|
+
"default": "lax",
|
|
35
|
+
"description": "SameSite cookie attribute"
|
|
36
|
+
},
|
|
37
|
+
"cookieDomain": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Cookie domain"
|
|
40
|
+
},
|
|
41
|
+
"cookiePath": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"default": "/",
|
|
44
|
+
"description": "Cookie path"
|
|
45
|
+
},
|
|
46
|
+
"cookieHttpOnly": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": true,
|
|
49
|
+
"description": "HttpOnly cookie attribute"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SetOperator",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SetOperator": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$in": {
|
|
8
|
+
"type": "array"
|
|
9
|
+
},
|
|
10
|
+
"$nin": {
|
|
11
|
+
"type": "array"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Shadow",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Shadow": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"none": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "No shadow"
|
|
10
|
+
},
|
|
11
|
+
"sm": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Small shadow"
|
|
14
|
+
},
|
|
15
|
+
"base": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Base shadow"
|
|
18
|
+
},
|
|
19
|
+
"md": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Medium shadow"
|
|
22
|
+
},
|
|
23
|
+
"lg": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Large shadow"
|
|
26
|
+
},
|
|
27
|
+
"xl": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Extra large shadow"
|
|
30
|
+
},
|
|
31
|
+
"2xl": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "2X large shadow"
|
|
34
|
+
},
|
|
35
|
+
"inner": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Inner shadow (inset)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
44
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SingleRecordResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SingleRecordResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"success": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Operation success status"
|
|
10
|
+
},
|
|
11
|
+
"error": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"code": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Error code (e.g. validation_error)"
|
|
17
|
+
},
|
|
18
|
+
"message": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Readable error message"
|
|
21
|
+
},
|
|
22
|
+
"details": {
|
|
23
|
+
"description": "Additional error context (e.g. field validation errors)"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"code",
|
|
28
|
+
"message"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"description": "Error details if success is false"
|
|
32
|
+
},
|
|
33
|
+
"meta": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"timestamp": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"duration": {
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"requestId": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"traceId": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"timestamp"
|
|
51
|
+
],
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"description": "Response metadata"
|
|
54
|
+
},
|
|
55
|
+
"data": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": {},
|
|
58
|
+
"description": "The requested or modified record"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"success",
|
|
63
|
+
"data"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
69
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Spacing",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Spacing": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"0": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "0 spacing (0)"
|
|
10
|
+
},
|
|
11
|
+
"1": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Spacing unit 1 (e.g., 0.25rem)"
|
|
14
|
+
},
|
|
15
|
+
"2": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Spacing unit 2 (e.g., 0.5rem)"
|
|
18
|
+
},
|
|
19
|
+
"3": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Spacing unit 3 (e.g., 0.75rem)"
|
|
22
|
+
},
|
|
23
|
+
"4": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Spacing unit 4 (e.g., 1rem)"
|
|
26
|
+
},
|
|
27
|
+
"5": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Spacing unit 5 (e.g., 1.25rem)"
|
|
30
|
+
},
|
|
31
|
+
"6": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Spacing unit 6 (e.g., 1.5rem)"
|
|
34
|
+
},
|
|
35
|
+
"8": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Spacing unit 8 (e.g., 2rem)"
|
|
38
|
+
},
|
|
39
|
+
"10": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Spacing unit 10 (e.g., 2.5rem)"
|
|
42
|
+
},
|
|
43
|
+
"12": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Spacing unit 12 (e.g., 3rem)"
|
|
46
|
+
},
|
|
47
|
+
"16": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Spacing unit 16 (e.g., 4rem)"
|
|
50
|
+
},
|
|
51
|
+
"20": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Spacing unit 20 (e.g., 5rem)"
|
|
54
|
+
},
|
|
55
|
+
"24": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Spacing unit 24 (e.g., 6rem)"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
64
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SpecialOperator",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"SpecialOperator": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$null": {
|
|
8
|
+
"type": "boolean"
|
|
9
|
+
},
|
|
10
|
+
"$exist": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|