@timeax/digital-service-engine 0.0.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.
@@ -0,0 +1,148 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AdminPolicies",
4
+ "definitions": {
5
+ "AdminPolicies": {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/DynamicRule"
9
+ },
10
+ "description": "Exported alias so the schema generator can target an array"
11
+ },
12
+ "DynamicRule": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string"
17
+ },
18
+ "label": {
19
+ "type": "string"
20
+ },
21
+ "scope": {
22
+ "type": "string",
23
+ "enum": [
24
+ "global",
25
+ "visible_group"
26
+ ]
27
+ },
28
+ "subject": {
29
+ "type": "string",
30
+ "const": "services"
31
+ },
32
+ "filter": {
33
+ "type": "object",
34
+ "properties": {
35
+ "role": {
36
+ "type": "string",
37
+ "enum": [
38
+ "base",
39
+ "utility",
40
+ "both"
41
+ ]
42
+ },
43
+ "tag_id": {
44
+ "anyOf": [
45
+ {
46
+ "type": "string"
47
+ },
48
+ {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ }
54
+ ]
55
+ },
56
+ "field_id": {
57
+ "anyOf": [
58
+ {
59
+ "type": "string"
60
+ },
61
+ {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ "where": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/definitions/ServiceWhereClause"
73
+ }
74
+ }
75
+ },
76
+ "description": "Package-level filter surface:\n- role/tag/field are core to the builder schema\n- where[] allows hosts to filter against extra service properties (handler_id/platform_id/type/key/category_id/etc.)"
77
+ },
78
+ "projection": {
79
+ "type": "string",
80
+ "description": "Projection is intentionally open: hosts may project custom service properties."
81
+ },
82
+ "op": {
83
+ "type": "string",
84
+ "enum": [
85
+ "all_equal",
86
+ "unique",
87
+ "no_mix",
88
+ "all_true",
89
+ "any_true",
90
+ "max_count",
91
+ "min_count"
92
+ ]
93
+ },
94
+ "value": {
95
+ "type": [
96
+ "number",
97
+ "boolean"
98
+ ]
99
+ },
100
+ "severity": {
101
+ "type": "string",
102
+ "enum": [
103
+ "error",
104
+ "warning"
105
+ ]
106
+ },
107
+ "message": {
108
+ "type": "string"
109
+ }
110
+ },
111
+ "required": [
112
+ "id",
113
+ "scope",
114
+ "subject",
115
+ "op"
116
+ ]
117
+ },
118
+ "ServiceWhereClause": {
119
+ "type": "object",
120
+ "properties": {
121
+ "path": {
122
+ "type": "string"
123
+ },
124
+ "op": {
125
+ "$ref": "#/definitions/ServiceWhereOp"
126
+ },
127
+ "value": {}
128
+ },
129
+ "required": [
130
+ "path"
131
+ ],
132
+ "description": "Host-extensible service filter clause. `path` should usually be \"service.<prop>\" or \"service.meta.<prop>\" etc."
133
+ },
134
+ "ServiceWhereOp": {
135
+ "type": "string",
136
+ "enum": [
137
+ "eq",
138
+ "neq",
139
+ "in",
140
+ "nin",
141
+ "exists",
142
+ "truthy",
143
+ "falsy",
144
+ "sw"
145
+ ]
146
+ }
147
+ }
148
+ }