macwarden 1.0.1 → 1.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/CHANGELOG.md +82 -0
- package/README.md +24 -8
- package/SECURITY.md +2 -2
- package/dist/bin.js +7 -1
- package/dist/bounded-file.js +1 -0
- package/dist/cancellation.js +1 -1
- package/dist/caveat-address.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/attenuate.js +1 -1
- package/dist/commands/bake/allocate.js +1 -1
- package/dist/commands/bake/index.js +1 -1
- package/dist/commands/bake/out-errors.js +1 -0
- package/dist/commands/bake/write-out.js +1 -1
- package/dist/commands/handlers.js +1 -1
- package/dist/commands/inspect.js +1 -1
- package/dist/commands/inventory.js +1 -1
- package/dist/commands/recommend.js +1 -1
- package/dist/commands/respond.js +1 -1
- package/dist/commands/revoke.js +1 -1
- package/dist/commands/rotate.js +1 -1
- package/dist/commands/scan.js +1 -1
- package/dist/commands/verify.js +1 -0
- package/dist/commands/watch.js +1 -1
- package/dist/credential-recognition.js +1 -1
- package/dist/decode/index.js +1 -1
- package/dist/decode/recognition.js +1 -1
- package/dist/environment.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/grade/index.js +1 -1
- package/dist/grouped-runs.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/lndconnect.js +1 -1
- package/dist/instant.js +1 -0
- package/dist/lnd/grpc.js +1 -1
- package/dist/lnd/index.js +1 -1
- package/dist/lnd/middleware-proto.js +1 -1
- package/dist/lnd/tls-identity.js +1 -0
- package/dist/online.js +1 -1
- package/dist/output/index.js +1 -1
- package/dist/output/scan-formats.js +1 -1
- package/dist/process-error-context.js +1 -1
- package/dist/protected-path.js +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/registry/process-domain.js +1 -1
- package/dist/report/access-review.js +1 -1
- package/dist/root-key-id.js +1 -0
- package/dist/runtime.js +3401 -947
- package/dist/scan/agent-configs.js +1 -1
- package/dist/scan/git-history.js +1 -1
- package/dist/scan/ignore.js +1 -1
- package/dist/scan/index.js +1 -1
- package/dist/scan/mcp-context.js +1 -1
- package/dist/scan/nwc-match.js +1 -1
- package/dist/scan/patterns.js +1 -1
- package/dist/scan/redact.js +1 -1
- package/dist/secret.js +1 -1
- package/dist/version.js +1 -1
- package/dist/watch/alert-throttle.js +1 -1
- package/dist/watch/alert.js +1 -1
- package/dist/watch/canary.js +1 -1
- package/dist/watch/output-queue.js +1 -1
- package/dist/watch/usage.js +1 -1
- package/package.json +2 -2
- package/schemas/output/attenuate.schema.json +30 -1
- package/schemas/output/bake.schema.json +28 -1
- package/schemas/output/inspect.schema.json +9 -2
- package/schemas/output/inventory.schema.json +63 -2
- package/schemas/output/macwarden.schema.json +329 -0
- package/schemas/output/recommend.schema.json +498 -0
- package/schemas/output/respond.schema.json +28 -1
- package/schemas/output/revoke.schema.json +28 -1
- package/schemas/output/rotate.schema.json +28 -1
- package/schemas/output/scan.schema.json +10 -3
- package/schemas/output/verify.schema.json +579 -0
- package/schemas/output/watch-event.schema.json +232 -0
- package/schemas/output/watch.schema.json +404 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ZilverZtream/macwarden/blob/main/schemas/output/watch-event.schema.json",
|
|
4
|
+
"title": "macwarden watch --json event line",
|
|
5
|
+
"description": "Normative source: SPEC.md, Output and Commands > 8. watch. With --json, watch prints one of these objects per line while it runs, then its final document (watch.schema.json, the only line with a \"command\" field) as the last line.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": [
|
|
11
|
+
"schema",
|
|
12
|
+
"event",
|
|
13
|
+
"time",
|
|
14
|
+
"method",
|
|
15
|
+
"rootKeyId",
|
|
16
|
+
"credential",
|
|
17
|
+
"label"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema": {
|
|
21
|
+
"const": 1
|
|
22
|
+
},
|
|
23
|
+
"time": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
26
|
+
},
|
|
27
|
+
"event": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"call",
|
|
30
|
+
"error"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"method": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"rootKeyId": {
|
|
37
|
+
"oneOf": [
|
|
38
|
+
{
|
|
39
|
+
"$ref": "#/$defs/rootKeyId"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"const": "none"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"credential": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^id:([0-9a-f]{16}|none|undecodable)$"
|
|
49
|
+
},
|
|
50
|
+
"label": {
|
|
51
|
+
"type": [
|
|
52
|
+
"string",
|
|
53
|
+
"null"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": [
|
|
62
|
+
"schema",
|
|
63
|
+
"event",
|
|
64
|
+
"time",
|
|
65
|
+
"method",
|
|
66
|
+
"rootKeyId",
|
|
67
|
+
"credential",
|
|
68
|
+
"label",
|
|
69
|
+
"denied"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"schema": {
|
|
73
|
+
"const": 1
|
|
74
|
+
},
|
|
75
|
+
"time": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
78
|
+
},
|
|
79
|
+
"event": {
|
|
80
|
+
"const": "canary"
|
|
81
|
+
},
|
|
82
|
+
"method": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"rootKeyId": {
|
|
86
|
+
"oneOf": [
|
|
87
|
+
{
|
|
88
|
+
"$ref": "#/$defs/rootKeyId"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"const": "none"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"credential": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^id:([0-9a-f]{16}|none|undecodable)$"
|
|
98
|
+
},
|
|
99
|
+
"label": {
|
|
100
|
+
"type": [
|
|
101
|
+
"string",
|
|
102
|
+
"null"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"denied": {
|
|
106
|
+
"const": true
|
|
107
|
+
},
|
|
108
|
+
"repeats": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 1
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": [
|
|
118
|
+
"schema",
|
|
119
|
+
"event",
|
|
120
|
+
"time",
|
|
121
|
+
"status",
|
|
122
|
+
"canaries",
|
|
123
|
+
"readOnly"
|
|
124
|
+
],
|
|
125
|
+
"properties": {
|
|
126
|
+
"schema": {
|
|
127
|
+
"const": 1
|
|
128
|
+
},
|
|
129
|
+
"time": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
132
|
+
},
|
|
133
|
+
"event": {
|
|
134
|
+
"const": "status"
|
|
135
|
+
},
|
|
136
|
+
"status": {
|
|
137
|
+
"enum": [
|
|
138
|
+
"registered",
|
|
139
|
+
"reconnecting"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"canaries": {
|
|
143
|
+
"type": "integer",
|
|
144
|
+
"minimum": 0
|
|
145
|
+
},
|
|
146
|
+
"readOnly": {
|
|
147
|
+
"const": true
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": [
|
|
155
|
+
"schema",
|
|
156
|
+
"event",
|
|
157
|
+
"time",
|
|
158
|
+
"status",
|
|
159
|
+
"dropped"
|
|
160
|
+
],
|
|
161
|
+
"properties": {
|
|
162
|
+
"schema": {
|
|
163
|
+
"const": 1
|
|
164
|
+
},
|
|
165
|
+
"time": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
168
|
+
},
|
|
169
|
+
"event": {
|
|
170
|
+
"const": "status"
|
|
171
|
+
},
|
|
172
|
+
"status": {
|
|
173
|
+
"const": "output-dropped"
|
|
174
|
+
},
|
|
175
|
+
"dropped": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 1
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "object",
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"required": [
|
|
185
|
+
"schema",
|
|
186
|
+
"event",
|
|
187
|
+
"time",
|
|
188
|
+
"status",
|
|
189
|
+
"rootKeyId",
|
|
190
|
+
"label"
|
|
191
|
+
],
|
|
192
|
+
"properties": {
|
|
193
|
+
"schema": {
|
|
194
|
+
"const": 1
|
|
195
|
+
},
|
|
196
|
+
"time": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
199
|
+
},
|
|
200
|
+
"event": {
|
|
201
|
+
"const": "status"
|
|
202
|
+
},
|
|
203
|
+
"status": {
|
|
204
|
+
"const": "alert-failed"
|
|
205
|
+
},
|
|
206
|
+
"rootKeyId": {
|
|
207
|
+
"oneOf": [
|
|
208
|
+
{
|
|
209
|
+
"$ref": "#/$defs/rootKeyId"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"const": "none"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"label": {
|
|
217
|
+
"type": [
|
|
218
|
+
"string",
|
|
219
|
+
"null"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"$defs": {
|
|
226
|
+
"rootKeyId": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"pattern": "^(0|[1-9][0-9]{0,19})$",
|
|
229
|
+
"description": "uint64 as a canonical decimal string (range up to 18446744073709551615 is enforced by the decoder)."
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ZilverZtream/macwarden/blob/main/schemas/output/watch.schema.json",
|
|
4
|
+
"title": "macwarden watch --json final document",
|
|
5
|
+
"description": "Normative source: SPEC.md, Commands > 8. watch. The last line of watch --json; the event lines before it follow watch-event.schema.json.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema",
|
|
10
|
+
"command",
|
|
11
|
+
"ok",
|
|
12
|
+
"warnings",
|
|
13
|
+
"result",
|
|
14
|
+
"error"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": {
|
|
18
|
+
"const": 1
|
|
19
|
+
},
|
|
20
|
+
"command": {
|
|
21
|
+
"const": "watch"
|
|
22
|
+
},
|
|
23
|
+
"ok": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"warnings": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"$ref": "#/$defs/warning"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"result": {
|
|
33
|
+
"oneOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "null"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$ref": "#/$defs/result"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"$ref": "#/$defs/help"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"error": {
|
|
46
|
+
"oneOf": [
|
|
47
|
+
{
|
|
48
|
+
"type": "null"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"$ref": "#/$defs/error"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"allOf": [
|
|
57
|
+
{
|
|
58
|
+
"if": {
|
|
59
|
+
"properties": {
|
|
60
|
+
"ok": {
|
|
61
|
+
"const": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"ok"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"then": {
|
|
69
|
+
"properties": {
|
|
70
|
+
"result": {
|
|
71
|
+
"oneOf": [
|
|
72
|
+
{
|
|
73
|
+
"$ref": "#/$defs/result"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"$ref": "#/$defs/help"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"error": {
|
|
81
|
+
"type": "null"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"else": {
|
|
86
|
+
"properties": {
|
|
87
|
+
"result": {
|
|
88
|
+
"type": "null"
|
|
89
|
+
},
|
|
90
|
+
"error": {
|
|
91
|
+
"$ref": "#/$defs/error"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"$defs": {
|
|
98
|
+
"error": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"code",
|
|
103
|
+
"step",
|
|
104
|
+
"message"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"code": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 1,
|
|
110
|
+
"maximum": 8
|
|
111
|
+
},
|
|
112
|
+
"step": {
|
|
113
|
+
"type": [
|
|
114
|
+
"string",
|
|
115
|
+
"null"
|
|
116
|
+
],
|
|
117
|
+
"minLength": 1
|
|
118
|
+
},
|
|
119
|
+
"message": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"warning": {
|
|
126
|
+
"oneOf": [
|
|
127
|
+
{
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "object",
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"required": [
|
|
135
|
+
"code",
|
|
136
|
+
"message"
|
|
137
|
+
],
|
|
138
|
+
"properties": {
|
|
139
|
+
"code": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"minLength": 1
|
|
142
|
+
},
|
|
143
|
+
"message": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"rootKeyId": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^(0|[1-9][0-9]{0,19})$",
|
|
153
|
+
"description": "uint64 as a canonical decimal string (range up to 18446744073709551615 is enforced by the decoder)."
|
|
154
|
+
},
|
|
155
|
+
"grade": {
|
|
156
|
+
"enum": [
|
|
157
|
+
"ADMIN",
|
|
158
|
+
"SPEND",
|
|
159
|
+
"OPERATE",
|
|
160
|
+
"RECEIVE",
|
|
161
|
+
"READ",
|
|
162
|
+
"UNASSESSED"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"registryEntry": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"required": [
|
|
168
|
+
"nodePubkey",
|
|
169
|
+
"label",
|
|
170
|
+
"rootKeyId",
|
|
171
|
+
"permissions",
|
|
172
|
+
"caveats",
|
|
173
|
+
"grade",
|
|
174
|
+
"fingerprint",
|
|
175
|
+
"outPath",
|
|
176
|
+
"createdAt",
|
|
177
|
+
"verified",
|
|
178
|
+
"status",
|
|
179
|
+
"revokedAt",
|
|
180
|
+
"revokeEvidence",
|
|
181
|
+
"replaces",
|
|
182
|
+
"replacedBy"
|
|
183
|
+
],
|
|
184
|
+
"additionalProperties": false,
|
|
185
|
+
"properties": {
|
|
186
|
+
"nodePubkey": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"pattern": "^0[23][0-9a-fA-F]{64}$"
|
|
189
|
+
},
|
|
190
|
+
"label": {
|
|
191
|
+
"type": [
|
|
192
|
+
"string",
|
|
193
|
+
"null"
|
|
194
|
+
],
|
|
195
|
+
"pattern": "^[A-Za-z][A-Za-z0-9._-]{0,63}$"
|
|
196
|
+
},
|
|
197
|
+
"rootKeyId": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"pattern": "^(0|[1-9][0-9]*)$"
|
|
200
|
+
},
|
|
201
|
+
"permissions": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"caveats": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "object"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"grade": {
|
|
214
|
+
"enum": [
|
|
215
|
+
"ADMIN",
|
|
216
|
+
"SPEND",
|
|
217
|
+
"OPERATE",
|
|
218
|
+
"RECEIVE",
|
|
219
|
+
"READ",
|
|
220
|
+
"UNASSESSED"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"fingerprint": {
|
|
224
|
+
"type": [
|
|
225
|
+
"string",
|
|
226
|
+
"null"
|
|
227
|
+
],
|
|
228
|
+
"pattern": "^fp:[0-9a-f]{16}$"
|
|
229
|
+
},
|
|
230
|
+
"outPath": {
|
|
231
|
+
"type": [
|
|
232
|
+
"string",
|
|
233
|
+
"null"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"createdAt": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"verified": {
|
|
240
|
+
"type": "boolean"
|
|
241
|
+
},
|
|
242
|
+
"status": {
|
|
243
|
+
"enum": [
|
|
244
|
+
"active",
|
|
245
|
+
"revoked"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"revokedAt": {
|
|
249
|
+
"type": [
|
|
250
|
+
"string",
|
|
251
|
+
"null"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"revokeEvidence": {
|
|
255
|
+
"enum": [
|
|
256
|
+
"rejected",
|
|
257
|
+
"by-id-only",
|
|
258
|
+
null
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"replaces": {
|
|
262
|
+
"type": [
|
|
263
|
+
"string",
|
|
264
|
+
"null"
|
|
265
|
+
],
|
|
266
|
+
"pattern": "^(0|[1-9][0-9]*)$"
|
|
267
|
+
},
|
|
268
|
+
"replacedBy": {
|
|
269
|
+
"type": [
|
|
270
|
+
"string",
|
|
271
|
+
"null"
|
|
272
|
+
],
|
|
273
|
+
"pattern": "^(0|[1-9][0-9]*)$"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"allOf": [
|
|
277
|
+
{
|
|
278
|
+
"if": {
|
|
279
|
+
"properties": {
|
|
280
|
+
"fingerprint": {
|
|
281
|
+
"type": "null"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"then": {
|
|
286
|
+
"properties": {
|
|
287
|
+
"verified": {
|
|
288
|
+
"const": false
|
|
289
|
+
},
|
|
290
|
+
"outPath": {
|
|
291
|
+
"type": "null"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"help": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"required": [
|
|
302
|
+
"usage"
|
|
303
|
+
],
|
|
304
|
+
"properties": {
|
|
305
|
+
"usage": {
|
|
306
|
+
"type": "array",
|
|
307
|
+
"minItems": 1,
|
|
308
|
+
"items": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"pattern": "^macwarden watch "
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"result": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"additionalProperties": false,
|
|
318
|
+
"required": [
|
|
319
|
+
"node",
|
|
320
|
+
"startedAt",
|
|
321
|
+
"endedAt",
|
|
322
|
+
"calls",
|
|
323
|
+
"errors",
|
|
324
|
+
"credentials",
|
|
325
|
+
"canaryAlerts",
|
|
326
|
+
"canaryUses",
|
|
327
|
+
"alertFailures",
|
|
328
|
+
"reconnects",
|
|
329
|
+
"canaries",
|
|
330
|
+
"droppedUsageRecords",
|
|
331
|
+
"evictedUsageRecords",
|
|
332
|
+
"droppedAttributions",
|
|
333
|
+
"droppedEvents",
|
|
334
|
+
"usageFile"
|
|
335
|
+
],
|
|
336
|
+
"properties": {
|
|
337
|
+
"node": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"pattern": "^0[23][0-9a-fA-F]{64}$"
|
|
340
|
+
},
|
|
341
|
+
"startedAt": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
344
|
+
},
|
|
345
|
+
"endedAt": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
348
|
+
},
|
|
349
|
+
"calls": {
|
|
350
|
+
"type": "integer",
|
|
351
|
+
"minimum": 0
|
|
352
|
+
},
|
|
353
|
+
"errors": {
|
|
354
|
+
"type": "integer",
|
|
355
|
+
"minimum": 0
|
|
356
|
+
},
|
|
357
|
+
"credentials": {
|
|
358
|
+
"type": "integer",
|
|
359
|
+
"minimum": 0
|
|
360
|
+
},
|
|
361
|
+
"canaryAlerts": {
|
|
362
|
+
"type": "integer",
|
|
363
|
+
"minimum": 0
|
|
364
|
+
},
|
|
365
|
+
"canaryUses": {
|
|
366
|
+
"type": "integer",
|
|
367
|
+
"minimum": 0
|
|
368
|
+
},
|
|
369
|
+
"alertFailures": {
|
|
370
|
+
"type": "integer",
|
|
371
|
+
"minimum": 0
|
|
372
|
+
},
|
|
373
|
+
"reconnects": {
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"minimum": 0
|
|
376
|
+
},
|
|
377
|
+
"canaries": {
|
|
378
|
+
"type": "integer",
|
|
379
|
+
"minimum": 0
|
|
380
|
+
},
|
|
381
|
+
"droppedUsageRecords": {
|
|
382
|
+
"type": "integer",
|
|
383
|
+
"minimum": 0
|
|
384
|
+
},
|
|
385
|
+
"evictedUsageRecords": {
|
|
386
|
+
"type": "integer",
|
|
387
|
+
"minimum": 0
|
|
388
|
+
},
|
|
389
|
+
"droppedAttributions": {
|
|
390
|
+
"type": "integer",
|
|
391
|
+
"minimum": 0
|
|
392
|
+
},
|
|
393
|
+
"droppedEvents": {
|
|
394
|
+
"type": "integer",
|
|
395
|
+
"minimum": 0
|
|
396
|
+
},
|
|
397
|
+
"usageFile": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"minLength": 1
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|