@g9tm/app-diagnostic-tauri 0.5.0 → 0.6.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.
Files changed (33) hide show
  1. package/Cargo.toml +1 -1
  2. package/README.md +2 -0
  3. package/android/build.gradle.kts +29 -29
  4. package/android/proguard-rules.pro +2 -2
  5. package/android/settings.gradle +2 -2
  6. package/android/src/main/AndroidManifest.xml +5 -5
  7. package/android/src/main/java/com/g9tm/appdiagnostic/tauri/G9DiagnosticPlugin.kt +1 -1
  8. package/build.rs +13 -13
  9. package/ios/Package.swift +20 -20
  10. package/ios/Sources/G9AppDiagnosticCore/G9AppDiagnosticHost.m +72 -72
  11. package/ios/Sources/G9AppDiagnosticCore/G9DiagnosticRecorders.m +514 -514
  12. package/ios/Sources/G9AppDiagnosticCore/include/G9AppDiagnosticHost.h +32 -32
  13. package/ios/Sources/G9AppDiagnosticCore/include/G9DiagnosticRecorders.h +36 -36
  14. package/ios/Sources/G9DiagnosticPlugin/G9DiagnosticPlugin.swift +135 -135
  15. package/package.json +3 -3
  16. package/permissions/autogenerated/commands/capabilities.toml +13 -13
  17. package/permissions/autogenerated/commands/read_chunk.toml +13 -13
  18. package/permissions/autogenerated/commands/registerListener.toml +13 -13
  19. package/permissions/autogenerated/commands/remove.toml +13 -13
  20. package/permissions/autogenerated/commands/remove_listener.toml +13 -13
  21. package/permissions/autogenerated/commands/screenshot.toml +13 -13
  22. package/permissions/autogenerated/commands/start_screen.toml +13 -13
  23. package/permissions/autogenerated/commands/start_voice.toml +13 -13
  24. package/permissions/autogenerated/commands/state.toml +13 -13
  25. package/permissions/autogenerated/commands/stop_screen.toml +13 -13
  26. package/permissions/autogenerated/commands/stop_voice.toml +13 -13
  27. package/permissions/autogenerated/commands/touch.toml +13 -13
  28. package/permissions/autogenerated/commands/watch_touches.toml +13 -13
  29. package/permissions/autogenerated/reference.md +367 -367
  30. package/permissions/default.toml +9 -9
  31. package/permissions/schemas/schema.json +461 -461
  32. package/src/index.ts +97 -97
  33. package/src/lib.rs +119 -119
@@ -1,462 +1,462 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "PermissionFile",
4
- "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
5
- "type": "object",
6
- "properties": {
7
- "default": {
8
- "description": "The default permission set for the plugin",
9
- "anyOf": [
10
- {
11
- "$ref": "#/definitions/DefaultPermission"
12
- },
13
- {
14
- "type": "null"
15
- }
16
- ]
17
- },
18
- "set": {
19
- "description": "A list of permissions sets defined",
20
- "type": "array",
21
- "items": {
22
- "$ref": "#/definitions/PermissionSet"
23
- }
24
- },
25
- "permission": {
26
- "description": "A list of inlined permissions",
27
- "default": [],
28
- "type": "array",
29
- "items": {
30
- "$ref": "#/definitions/Permission"
31
- }
32
- }
33
- },
34
- "definitions": {
35
- "DefaultPermission": {
36
- "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
37
- "type": "object",
38
- "required": [
39
- "permissions"
40
- ],
41
- "properties": {
42
- "version": {
43
- "description": "The version of the permission.",
44
- "type": [
45
- "integer",
46
- "null"
47
- ],
48
- "format": "uint64",
49
- "minimum": 1.0
50
- },
51
- "description": {
52
- "description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
53
- "type": [
54
- "string",
55
- "null"
56
- ]
57
- },
58
- "permissions": {
59
- "description": "All permissions this set contains.",
60
- "type": "array",
61
- "items": {
62
- "type": "string"
63
- }
64
- }
65
- }
66
- },
67
- "PermissionSet": {
68
- "description": "A set of direct permissions grouped together under a new name.",
69
- "type": "object",
70
- "required": [
71
- "description",
72
- "identifier",
73
- "permissions"
74
- ],
75
- "properties": {
76
- "identifier": {
77
- "description": "A unique identifier for the permission.",
78
- "type": "string"
79
- },
80
- "description": {
81
- "description": "Human-readable description of what the permission does.",
82
- "type": "string"
83
- },
84
- "permissions": {
85
- "description": "All permissions this set contains.",
86
- "type": "array",
87
- "items": {
88
- "$ref": "#/definitions/PermissionKind"
89
- }
90
- }
91
- }
92
- },
93
- "Permission": {
94
- "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
95
- "type": "object",
96
- "required": [
97
- "identifier"
98
- ],
99
- "properties": {
100
- "version": {
101
- "description": "The version of the permission.",
102
- "type": [
103
- "integer",
104
- "null"
105
- ],
106
- "format": "uint64",
107
- "minimum": 1.0
108
- },
109
- "identifier": {
110
- "description": "A unique identifier for the permission.",
111
- "type": "string"
112
- },
113
- "description": {
114
- "description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
115
- "type": [
116
- "string",
117
- "null"
118
- ]
119
- },
120
- "commands": {
121
- "description": "Allowed or denied commands when using this permission.",
122
- "default": {
123
- "allow": [],
124
- "deny": []
125
- },
126
- "allOf": [
127
- {
128
- "$ref": "#/definitions/Commands"
129
- }
130
- ]
131
- },
132
- "scope": {
133
- "description": "Allowed or denied scoped when using this permission.",
134
- "allOf": [
135
- {
136
- "$ref": "#/definitions/Scopes"
137
- }
138
- ]
139
- },
140
- "platforms": {
141
- "description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
142
- "type": [
143
- "array",
144
- "null"
145
- ],
146
- "items": {
147
- "$ref": "#/definitions/Target"
148
- }
149
- }
150
- }
151
- },
152
- "Commands": {
153
- "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
154
- "type": "object",
155
- "properties": {
156
- "allow": {
157
- "description": "Allowed command.",
158
- "default": [],
159
- "type": "array",
160
- "items": {
161
- "type": "string"
162
- }
163
- },
164
- "deny": {
165
- "description": "Denied command, which takes priority.",
166
- "default": [],
167
- "type": "array",
168
- "items": {
169
- "type": "string"
170
- }
171
- }
172
- }
173
- },
174
- "Scopes": {
175
- "description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
176
- "type": "object",
177
- "properties": {
178
- "allow": {
179
- "description": "Data that defines what is allowed by the scope.",
180
- "type": [
181
- "array",
182
- "null"
183
- ],
184
- "items": {
185
- "$ref": "#/definitions/Value"
186
- }
187
- },
188
- "deny": {
189
- "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
190
- "type": [
191
- "array",
192
- "null"
193
- ],
194
- "items": {
195
- "$ref": "#/definitions/Value"
196
- }
197
- }
198
- }
199
- },
200
- "Value": {
201
- "description": "All supported ACL values.",
202
- "anyOf": [
203
- {
204
- "description": "Represents a null JSON value.",
205
- "type": "null"
206
- },
207
- {
208
- "description": "Represents a [`bool`].",
209
- "type": "boolean"
210
- },
211
- {
212
- "description": "Represents a valid ACL [`Number`].",
213
- "allOf": [
214
- {
215
- "$ref": "#/definitions/Number"
216
- }
217
- ]
218
- },
219
- {
220
- "description": "Represents a [`String`].",
221
- "type": "string"
222
- },
223
- {
224
- "description": "Represents a list of other [`Value`]s.",
225
- "type": "array",
226
- "items": {
227
- "$ref": "#/definitions/Value"
228
- }
229
- },
230
- {
231
- "description": "Represents a map of [`String`] keys to [`Value`]s.",
232
- "type": "object",
233
- "additionalProperties": {
234
- "$ref": "#/definitions/Value"
235
- }
236
- }
237
- ]
238
- },
239
- "Number": {
240
- "description": "A valid ACL number.",
241
- "anyOf": [
242
- {
243
- "description": "Represents an [`i64`].",
244
- "type": "integer",
245
- "format": "int64"
246
- },
247
- {
248
- "description": "Represents a [`f64`].",
249
- "type": "number",
250
- "format": "double"
251
- }
252
- ]
253
- },
254
- "Target": {
255
- "description": "Platform target.",
256
- "oneOf": [
257
- {
258
- "description": "MacOS.",
259
- "type": "string",
260
- "enum": [
261
- "macOS"
262
- ]
263
- },
264
- {
265
- "description": "Windows.",
266
- "type": "string",
267
- "enum": [
268
- "windows"
269
- ]
270
- },
271
- {
272
- "description": "Linux.",
273
- "type": "string",
274
- "enum": [
275
- "linux"
276
- ]
277
- },
278
- {
279
- "description": "Android.",
280
- "type": "string",
281
- "enum": [
282
- "android"
283
- ]
284
- },
285
- {
286
- "description": "iOS.",
287
- "type": "string",
288
- "enum": [
289
- "iOS"
290
- ]
291
- }
292
- ]
293
- },
294
- "PermissionKind": {
295
- "type": "string",
296
- "oneOf": [
297
- {
298
- "description": "Enables the capabilities command without any pre-configured scope.",
299
- "type": "string",
300
- "const": "allow-capabilities",
301
- "markdownDescription": "Enables the capabilities command without any pre-configured scope."
302
- },
303
- {
304
- "description": "Denies the capabilities command without any pre-configured scope.",
305
- "type": "string",
306
- "const": "deny-capabilities",
307
- "markdownDescription": "Denies the capabilities command without any pre-configured scope."
308
- },
309
- {
310
- "description": "Enables the read_chunk command without any pre-configured scope.",
311
- "type": "string",
312
- "const": "allow-read-chunk",
313
- "markdownDescription": "Enables the read_chunk command without any pre-configured scope."
314
- },
315
- {
316
- "description": "Denies the read_chunk command without any pre-configured scope.",
317
- "type": "string",
318
- "const": "deny-read-chunk",
319
- "markdownDescription": "Denies the read_chunk command without any pre-configured scope."
320
- },
321
- {
322
- "description": "Enables the registerListener command without any pre-configured scope.",
323
- "type": "string",
324
- "const": "allow-registerListener",
325
- "markdownDescription": "Enables the registerListener command without any pre-configured scope."
326
- },
327
- {
328
- "description": "Denies the registerListener command without any pre-configured scope.",
329
- "type": "string",
330
- "const": "deny-registerListener",
331
- "markdownDescription": "Denies the registerListener command without any pre-configured scope."
332
- },
333
- {
334
- "description": "Enables the remove command without any pre-configured scope.",
335
- "type": "string",
336
- "const": "allow-remove",
337
- "markdownDescription": "Enables the remove command without any pre-configured scope."
338
- },
339
- {
340
- "description": "Denies the remove command without any pre-configured scope.",
341
- "type": "string",
342
- "const": "deny-remove",
343
- "markdownDescription": "Denies the remove command without any pre-configured scope."
344
- },
345
- {
346
- "description": "Enables the remove_listener command without any pre-configured scope.",
347
- "type": "string",
348
- "const": "allow-remove-listener",
349
- "markdownDescription": "Enables the remove_listener command without any pre-configured scope."
350
- },
351
- {
352
- "description": "Denies the remove_listener command without any pre-configured scope.",
353
- "type": "string",
354
- "const": "deny-remove-listener",
355
- "markdownDescription": "Denies the remove_listener command without any pre-configured scope."
356
- },
357
- {
358
- "description": "Enables the screenshot command without any pre-configured scope.",
359
- "type": "string",
360
- "const": "allow-screenshot",
361
- "markdownDescription": "Enables the screenshot command without any pre-configured scope."
362
- },
363
- {
364
- "description": "Denies the screenshot command without any pre-configured scope.",
365
- "type": "string",
366
- "const": "deny-screenshot",
367
- "markdownDescription": "Denies the screenshot command without any pre-configured scope."
368
- },
369
- {
370
- "description": "Enables the start_screen command without any pre-configured scope.",
371
- "type": "string",
372
- "const": "allow-start-screen",
373
- "markdownDescription": "Enables the start_screen command without any pre-configured scope."
374
- },
375
- {
376
- "description": "Denies the start_screen command without any pre-configured scope.",
377
- "type": "string",
378
- "const": "deny-start-screen",
379
- "markdownDescription": "Denies the start_screen command without any pre-configured scope."
380
- },
381
- {
382
- "description": "Enables the start_voice command without any pre-configured scope.",
383
- "type": "string",
384
- "const": "allow-start-voice",
385
- "markdownDescription": "Enables the start_voice command without any pre-configured scope."
386
- },
387
- {
388
- "description": "Denies the start_voice command without any pre-configured scope.",
389
- "type": "string",
390
- "const": "deny-start-voice",
391
- "markdownDescription": "Denies the start_voice command without any pre-configured scope."
392
- },
393
- {
394
- "description": "Enables the state command without any pre-configured scope.",
395
- "type": "string",
396
- "const": "allow-state",
397
- "markdownDescription": "Enables the state command without any pre-configured scope."
398
- },
399
- {
400
- "description": "Denies the state command without any pre-configured scope.",
401
- "type": "string",
402
- "const": "deny-state",
403
- "markdownDescription": "Denies the state command without any pre-configured scope."
404
- },
405
- {
406
- "description": "Enables the stop_screen command without any pre-configured scope.",
407
- "type": "string",
408
- "const": "allow-stop-screen",
409
- "markdownDescription": "Enables the stop_screen command without any pre-configured scope."
410
- },
411
- {
412
- "description": "Denies the stop_screen command without any pre-configured scope.",
413
- "type": "string",
414
- "const": "deny-stop-screen",
415
- "markdownDescription": "Denies the stop_screen command without any pre-configured scope."
416
- },
417
- {
418
- "description": "Enables the stop_voice command without any pre-configured scope.",
419
- "type": "string",
420
- "const": "allow-stop-voice",
421
- "markdownDescription": "Enables the stop_voice command without any pre-configured scope."
422
- },
423
- {
424
- "description": "Denies the stop_voice command without any pre-configured scope.",
425
- "type": "string",
426
- "const": "deny-stop-voice",
427
- "markdownDescription": "Denies the stop_voice command without any pre-configured scope."
428
- },
429
- {
430
- "description": "Enables the touch command without any pre-configured scope.",
431
- "type": "string",
432
- "const": "allow-touch",
433
- "markdownDescription": "Enables the touch command without any pre-configured scope."
434
- },
435
- {
436
- "description": "Denies the touch command without any pre-configured scope.",
437
- "type": "string",
438
- "const": "deny-touch",
439
- "markdownDescription": "Denies the touch command without any pre-configured scope."
440
- },
441
- {
442
- "description": "Enables the watch_touches command without any pre-configured scope.",
443
- "type": "string",
444
- "const": "allow-watch-touches",
445
- "markdownDescription": "Enables the watch_touches command without any pre-configured scope."
446
- },
447
- {
448
- "description": "Denies the watch_touches command without any pre-configured scope.",
449
- "type": "string",
450
- "const": "deny-watch-touches",
451
- "markdownDescription": "Denies the watch_touches command without any pre-configured scope."
452
- },
453
- {
454
- "description": "Every command of the tester mode: the recorders, the screenshot, the tester gesture (its event channel too), the remote touch and the plugin's own files.\n#### This default permission set includes:\n\n- `allow-capabilities`\n- `allow-state`\n- `allow-start-screen`\n- `allow-stop-screen`\n- `allow-start-voice`\n- `allow-stop-voice`\n- `allow-screenshot`\n- `allow-watch-touches`\n- `allow-touch`\n- `allow-read-chunk`\n- `allow-remove`\n- `allow-registerListener`\n- `allow-remove-listener`",
455
- "type": "string",
456
- "const": "default",
457
- "markdownDescription": "Every command of the tester mode: the recorders, the screenshot, the tester gesture (its event channel too), the remote touch and the plugin's own files.\n#### This default permission set includes:\n\n- `allow-capabilities`\n- `allow-state`\n- `allow-start-screen`\n- `allow-stop-screen`\n- `allow-start-voice`\n- `allow-stop-voice`\n- `allow-screenshot`\n- `allow-watch-touches`\n- `allow-touch`\n- `allow-read-chunk`\n- `allow-remove`\n- `allow-registerListener`\n- `allow-remove-listener`"
458
- }
459
- ]
460
- }
461
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "PermissionFile",
4
+ "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
5
+ "type": "object",
6
+ "properties": {
7
+ "default": {
8
+ "description": "The default permission set for the plugin",
9
+ "anyOf": [
10
+ {
11
+ "$ref": "#/definitions/DefaultPermission"
12
+ },
13
+ {
14
+ "type": "null"
15
+ }
16
+ ]
17
+ },
18
+ "set": {
19
+ "description": "A list of permissions sets defined",
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "#/definitions/PermissionSet"
23
+ }
24
+ },
25
+ "permission": {
26
+ "description": "A list of inlined permissions",
27
+ "default": [],
28
+ "type": "array",
29
+ "items": {
30
+ "$ref": "#/definitions/Permission"
31
+ }
32
+ }
33
+ },
34
+ "definitions": {
35
+ "DefaultPermission": {
36
+ "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
37
+ "type": "object",
38
+ "required": [
39
+ "permissions"
40
+ ],
41
+ "properties": {
42
+ "version": {
43
+ "description": "The version of the permission.",
44
+ "type": [
45
+ "integer",
46
+ "null"
47
+ ],
48
+ "format": "uint64",
49
+ "minimum": 1.0
50
+ },
51
+ "description": {
52
+ "description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
53
+ "type": [
54
+ "string",
55
+ "null"
56
+ ]
57
+ },
58
+ "permissions": {
59
+ "description": "All permissions this set contains.",
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "PermissionSet": {
68
+ "description": "A set of direct permissions grouped together under a new name.",
69
+ "type": "object",
70
+ "required": [
71
+ "description",
72
+ "identifier",
73
+ "permissions"
74
+ ],
75
+ "properties": {
76
+ "identifier": {
77
+ "description": "A unique identifier for the permission.",
78
+ "type": "string"
79
+ },
80
+ "description": {
81
+ "description": "Human-readable description of what the permission does.",
82
+ "type": "string"
83
+ },
84
+ "permissions": {
85
+ "description": "All permissions this set contains.",
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/definitions/PermissionKind"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "Permission": {
94
+ "description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
95
+ "type": "object",
96
+ "required": [
97
+ "identifier"
98
+ ],
99
+ "properties": {
100
+ "version": {
101
+ "description": "The version of the permission.",
102
+ "type": [
103
+ "integer",
104
+ "null"
105
+ ],
106
+ "format": "uint64",
107
+ "minimum": 1.0
108
+ },
109
+ "identifier": {
110
+ "description": "A unique identifier for the permission.",
111
+ "type": "string"
112
+ },
113
+ "description": {
114
+ "description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
115
+ "type": [
116
+ "string",
117
+ "null"
118
+ ]
119
+ },
120
+ "commands": {
121
+ "description": "Allowed or denied commands when using this permission.",
122
+ "default": {
123
+ "allow": [],
124
+ "deny": []
125
+ },
126
+ "allOf": [
127
+ {
128
+ "$ref": "#/definitions/Commands"
129
+ }
130
+ ]
131
+ },
132
+ "scope": {
133
+ "description": "Allowed or denied scoped when using this permission.",
134
+ "allOf": [
135
+ {
136
+ "$ref": "#/definitions/Scopes"
137
+ }
138
+ ]
139
+ },
140
+ "platforms": {
141
+ "description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
142
+ "type": [
143
+ "array",
144
+ "null"
145
+ ],
146
+ "items": {
147
+ "$ref": "#/definitions/Target"
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "Commands": {
153
+ "description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
154
+ "type": "object",
155
+ "properties": {
156
+ "allow": {
157
+ "description": "Allowed command.",
158
+ "default": [],
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "deny": {
165
+ "description": "Denied command, which takes priority.",
166
+ "default": [],
167
+ "type": "array",
168
+ "items": {
169
+ "type": "string"
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "Scopes": {
175
+ "description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
176
+ "type": "object",
177
+ "properties": {
178
+ "allow": {
179
+ "description": "Data that defines what is allowed by the scope.",
180
+ "type": [
181
+ "array",
182
+ "null"
183
+ ],
184
+ "items": {
185
+ "$ref": "#/definitions/Value"
186
+ }
187
+ },
188
+ "deny": {
189
+ "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
190
+ "type": [
191
+ "array",
192
+ "null"
193
+ ],
194
+ "items": {
195
+ "$ref": "#/definitions/Value"
196
+ }
197
+ }
198
+ }
199
+ },
200
+ "Value": {
201
+ "description": "All supported ACL values.",
202
+ "anyOf": [
203
+ {
204
+ "description": "Represents a null JSON value.",
205
+ "type": "null"
206
+ },
207
+ {
208
+ "description": "Represents a [`bool`].",
209
+ "type": "boolean"
210
+ },
211
+ {
212
+ "description": "Represents a valid ACL [`Number`].",
213
+ "allOf": [
214
+ {
215
+ "$ref": "#/definitions/Number"
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "description": "Represents a [`String`].",
221
+ "type": "string"
222
+ },
223
+ {
224
+ "description": "Represents a list of other [`Value`]s.",
225
+ "type": "array",
226
+ "items": {
227
+ "$ref": "#/definitions/Value"
228
+ }
229
+ },
230
+ {
231
+ "description": "Represents a map of [`String`] keys to [`Value`]s.",
232
+ "type": "object",
233
+ "additionalProperties": {
234
+ "$ref": "#/definitions/Value"
235
+ }
236
+ }
237
+ ]
238
+ },
239
+ "Number": {
240
+ "description": "A valid ACL number.",
241
+ "anyOf": [
242
+ {
243
+ "description": "Represents an [`i64`].",
244
+ "type": "integer",
245
+ "format": "int64"
246
+ },
247
+ {
248
+ "description": "Represents a [`f64`].",
249
+ "type": "number",
250
+ "format": "double"
251
+ }
252
+ ]
253
+ },
254
+ "Target": {
255
+ "description": "Platform target.",
256
+ "oneOf": [
257
+ {
258
+ "description": "MacOS.",
259
+ "type": "string",
260
+ "enum": [
261
+ "macOS"
262
+ ]
263
+ },
264
+ {
265
+ "description": "Windows.",
266
+ "type": "string",
267
+ "enum": [
268
+ "windows"
269
+ ]
270
+ },
271
+ {
272
+ "description": "Linux.",
273
+ "type": "string",
274
+ "enum": [
275
+ "linux"
276
+ ]
277
+ },
278
+ {
279
+ "description": "Android.",
280
+ "type": "string",
281
+ "enum": [
282
+ "android"
283
+ ]
284
+ },
285
+ {
286
+ "description": "iOS.",
287
+ "type": "string",
288
+ "enum": [
289
+ "iOS"
290
+ ]
291
+ }
292
+ ]
293
+ },
294
+ "PermissionKind": {
295
+ "type": "string",
296
+ "oneOf": [
297
+ {
298
+ "description": "Enables the capabilities command without any pre-configured scope.",
299
+ "type": "string",
300
+ "const": "allow-capabilities",
301
+ "markdownDescription": "Enables the capabilities command without any pre-configured scope."
302
+ },
303
+ {
304
+ "description": "Denies the capabilities command without any pre-configured scope.",
305
+ "type": "string",
306
+ "const": "deny-capabilities",
307
+ "markdownDescription": "Denies the capabilities command without any pre-configured scope."
308
+ },
309
+ {
310
+ "description": "Enables the read_chunk command without any pre-configured scope.",
311
+ "type": "string",
312
+ "const": "allow-read-chunk",
313
+ "markdownDescription": "Enables the read_chunk command without any pre-configured scope."
314
+ },
315
+ {
316
+ "description": "Denies the read_chunk command without any pre-configured scope.",
317
+ "type": "string",
318
+ "const": "deny-read-chunk",
319
+ "markdownDescription": "Denies the read_chunk command without any pre-configured scope."
320
+ },
321
+ {
322
+ "description": "Enables the registerListener command without any pre-configured scope.",
323
+ "type": "string",
324
+ "const": "allow-registerListener",
325
+ "markdownDescription": "Enables the registerListener command without any pre-configured scope."
326
+ },
327
+ {
328
+ "description": "Denies the registerListener command without any pre-configured scope.",
329
+ "type": "string",
330
+ "const": "deny-registerListener",
331
+ "markdownDescription": "Denies the registerListener command without any pre-configured scope."
332
+ },
333
+ {
334
+ "description": "Enables the remove command without any pre-configured scope.",
335
+ "type": "string",
336
+ "const": "allow-remove",
337
+ "markdownDescription": "Enables the remove command without any pre-configured scope."
338
+ },
339
+ {
340
+ "description": "Denies the remove command without any pre-configured scope.",
341
+ "type": "string",
342
+ "const": "deny-remove",
343
+ "markdownDescription": "Denies the remove command without any pre-configured scope."
344
+ },
345
+ {
346
+ "description": "Enables the remove_listener command without any pre-configured scope.",
347
+ "type": "string",
348
+ "const": "allow-remove-listener",
349
+ "markdownDescription": "Enables the remove_listener command without any pre-configured scope."
350
+ },
351
+ {
352
+ "description": "Denies the remove_listener command without any pre-configured scope.",
353
+ "type": "string",
354
+ "const": "deny-remove-listener",
355
+ "markdownDescription": "Denies the remove_listener command without any pre-configured scope."
356
+ },
357
+ {
358
+ "description": "Enables the screenshot command without any pre-configured scope.",
359
+ "type": "string",
360
+ "const": "allow-screenshot",
361
+ "markdownDescription": "Enables the screenshot command without any pre-configured scope."
362
+ },
363
+ {
364
+ "description": "Denies the screenshot command without any pre-configured scope.",
365
+ "type": "string",
366
+ "const": "deny-screenshot",
367
+ "markdownDescription": "Denies the screenshot command without any pre-configured scope."
368
+ },
369
+ {
370
+ "description": "Enables the start_screen command without any pre-configured scope.",
371
+ "type": "string",
372
+ "const": "allow-start-screen",
373
+ "markdownDescription": "Enables the start_screen command without any pre-configured scope."
374
+ },
375
+ {
376
+ "description": "Denies the start_screen command without any pre-configured scope.",
377
+ "type": "string",
378
+ "const": "deny-start-screen",
379
+ "markdownDescription": "Denies the start_screen command without any pre-configured scope."
380
+ },
381
+ {
382
+ "description": "Enables the start_voice command without any pre-configured scope.",
383
+ "type": "string",
384
+ "const": "allow-start-voice",
385
+ "markdownDescription": "Enables the start_voice command without any pre-configured scope."
386
+ },
387
+ {
388
+ "description": "Denies the start_voice command without any pre-configured scope.",
389
+ "type": "string",
390
+ "const": "deny-start-voice",
391
+ "markdownDescription": "Denies the start_voice command without any pre-configured scope."
392
+ },
393
+ {
394
+ "description": "Enables the state command without any pre-configured scope.",
395
+ "type": "string",
396
+ "const": "allow-state",
397
+ "markdownDescription": "Enables the state command without any pre-configured scope."
398
+ },
399
+ {
400
+ "description": "Denies the state command without any pre-configured scope.",
401
+ "type": "string",
402
+ "const": "deny-state",
403
+ "markdownDescription": "Denies the state command without any pre-configured scope."
404
+ },
405
+ {
406
+ "description": "Enables the stop_screen command without any pre-configured scope.",
407
+ "type": "string",
408
+ "const": "allow-stop-screen",
409
+ "markdownDescription": "Enables the stop_screen command without any pre-configured scope."
410
+ },
411
+ {
412
+ "description": "Denies the stop_screen command without any pre-configured scope.",
413
+ "type": "string",
414
+ "const": "deny-stop-screen",
415
+ "markdownDescription": "Denies the stop_screen command without any pre-configured scope."
416
+ },
417
+ {
418
+ "description": "Enables the stop_voice command without any pre-configured scope.",
419
+ "type": "string",
420
+ "const": "allow-stop-voice",
421
+ "markdownDescription": "Enables the stop_voice command without any pre-configured scope."
422
+ },
423
+ {
424
+ "description": "Denies the stop_voice command without any pre-configured scope.",
425
+ "type": "string",
426
+ "const": "deny-stop-voice",
427
+ "markdownDescription": "Denies the stop_voice command without any pre-configured scope."
428
+ },
429
+ {
430
+ "description": "Enables the touch command without any pre-configured scope.",
431
+ "type": "string",
432
+ "const": "allow-touch",
433
+ "markdownDescription": "Enables the touch command without any pre-configured scope."
434
+ },
435
+ {
436
+ "description": "Denies the touch command without any pre-configured scope.",
437
+ "type": "string",
438
+ "const": "deny-touch",
439
+ "markdownDescription": "Denies the touch command without any pre-configured scope."
440
+ },
441
+ {
442
+ "description": "Enables the watch_touches command without any pre-configured scope.",
443
+ "type": "string",
444
+ "const": "allow-watch-touches",
445
+ "markdownDescription": "Enables the watch_touches command without any pre-configured scope."
446
+ },
447
+ {
448
+ "description": "Denies the watch_touches command without any pre-configured scope.",
449
+ "type": "string",
450
+ "const": "deny-watch-touches",
451
+ "markdownDescription": "Denies the watch_touches command without any pre-configured scope."
452
+ },
453
+ {
454
+ "description": "Every command of the tester mode: the recorders, the screenshot, the tester gesture (its event channel too), the remote touch and the plugin's own files.\n#### This default permission set includes:\n\n- `allow-capabilities`\n- `allow-state`\n- `allow-start-screen`\n- `allow-stop-screen`\n- `allow-start-voice`\n- `allow-stop-voice`\n- `allow-screenshot`\n- `allow-watch-touches`\n- `allow-touch`\n- `allow-read-chunk`\n- `allow-remove`\n- `allow-registerListener`\n- `allow-remove-listener`",
455
+ "type": "string",
456
+ "const": "default",
457
+ "markdownDescription": "Every command of the tester mode: the recorders, the screenshot, the tester gesture (its event channel too), the remote touch and the plugin's own files.\n#### This default permission set includes:\n\n- `allow-capabilities`\n- `allow-state`\n- `allow-start-screen`\n- `allow-stop-screen`\n- `allow-start-voice`\n- `allow-stop-voice`\n- `allow-screenshot`\n- `allow-watch-touches`\n- `allow-touch`\n- `allow-read-chunk`\n- `allow-remove`\n- `allow-registerListener`\n- `allow-remove-listener`"
458
+ }
459
+ ]
460
+ }
461
+ }
462
462
  }