@anna-ai/app-schema 0.21.0 → 0.22.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
CHANGED
package/acl/capabilities.json
CHANGED
package/dispatcher_version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.22.0
|
package/events/AnnaAppEvent.json
CHANGED
package/host_api/methods.json
CHANGED
|
@@ -414,6 +414,155 @@
|
|
|
414
414
|
},
|
|
415
415
|
"stub": false
|
|
416
416
|
},
|
|
417
|
+
{
|
|
418
|
+
"handler": "_h_mobile_camera_capture",
|
|
419
|
+
"method": "camera_capture",
|
|
420
|
+
"namespace": "mobile",
|
|
421
|
+
"no_auth": false,
|
|
422
|
+
"params_schema": {
|
|
423
|
+
"additionalProperties": false,
|
|
424
|
+
"description": "Returns {data_url, mime, width, height, byte_size}. Persistence is the app's job (upload/files grants). Structured non-error rejections: permission_denied_by_user / cancelled / too_large.",
|
|
425
|
+
"properties": {
|
|
426
|
+
"camera": {
|
|
427
|
+
"enum": [
|
|
428
|
+
"back",
|
|
429
|
+
"front",
|
|
430
|
+
null
|
|
431
|
+
],
|
|
432
|
+
"type": [
|
|
433
|
+
"string",
|
|
434
|
+
"null"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"max_bytes": {
|
|
438
|
+
"description": "Target size cap for the returned data_url (default 4MB, hard cap 8MB — bounded by the postMessage/injectJS transport). Oversized captures are re-compressed once; still-oversized results reject with code='too_large'.",
|
|
439
|
+
"maximum": 8388608,
|
|
440
|
+
"minimum": 1,
|
|
441
|
+
"type": [
|
|
442
|
+
"integer",
|
|
443
|
+
"null"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"quality": {
|
|
447
|
+
"maximum": 1,
|
|
448
|
+
"minimum": 0,
|
|
449
|
+
"type": [
|
|
450
|
+
"number",
|
|
451
|
+
"null"
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"type": "object"
|
|
456
|
+
},
|
|
457
|
+
"stub": false
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"handler": "_h_mobile_haptics",
|
|
461
|
+
"method": "haptics",
|
|
462
|
+
"namespace": "mobile",
|
|
463
|
+
"no_auth": false,
|
|
464
|
+
"params_schema": {
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"properties": {
|
|
467
|
+
"style": {
|
|
468
|
+
"description": "impact → light|medium|heavy; notification → success|warning|error; selection ignores style.",
|
|
469
|
+
"enum": [
|
|
470
|
+
"light",
|
|
471
|
+
"medium",
|
|
472
|
+
"heavy",
|
|
473
|
+
"success",
|
|
474
|
+
"warning",
|
|
475
|
+
"error",
|
|
476
|
+
null
|
|
477
|
+
],
|
|
478
|
+
"type": [
|
|
479
|
+
"string",
|
|
480
|
+
"null"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"type": {
|
|
484
|
+
"enum": [
|
|
485
|
+
"impact",
|
|
486
|
+
"notification",
|
|
487
|
+
"selection"
|
|
488
|
+
],
|
|
489
|
+
"type": "string"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"required": [
|
|
493
|
+
"type"
|
|
494
|
+
],
|
|
495
|
+
"type": "object"
|
|
496
|
+
},
|
|
497
|
+
"stub": false
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"handler": "_h_mobile_share",
|
|
501
|
+
"method": "share",
|
|
502
|
+
"namespace": "mobile",
|
|
503
|
+
"no_auth": false,
|
|
504
|
+
"params_schema": {
|
|
505
|
+
"additionalProperties": false,
|
|
506
|
+
"anyOf": [
|
|
507
|
+
{
|
|
508
|
+
"required": [
|
|
509
|
+
"text"
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"required": [
|
|
514
|
+
"url"
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"required": [
|
|
519
|
+
"data_url"
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"description": "System share sheet. At least one of text/url/data_url. User cancel resolves with {shared: false} — NOT an error.",
|
|
524
|
+
"properties": {
|
|
525
|
+
"data_url": {
|
|
526
|
+
"description": "data: URL payload to share as a file (<= 2MB decoded). Written to a short-lived native temp file; never persisted by the shell.",
|
|
527
|
+
"maxLength": 2800000,
|
|
528
|
+
"type": [
|
|
529
|
+
"string",
|
|
530
|
+
"null"
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
"filename": {
|
|
534
|
+
"maxLength": 200,
|
|
535
|
+
"type": [
|
|
536
|
+
"string",
|
|
537
|
+
"null"
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
"text": {
|
|
541
|
+
"maxLength": 10000,
|
|
542
|
+
"type": [
|
|
543
|
+
"string",
|
|
544
|
+
"null"
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"title": {
|
|
548
|
+
"maxLength": 200,
|
|
549
|
+
"type": [
|
|
550
|
+
"string",
|
|
551
|
+
"null"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"url": {
|
|
555
|
+
"maxLength": 2000,
|
|
556
|
+
"type": [
|
|
557
|
+
"string",
|
|
558
|
+
"null"
|
|
559
|
+
]
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"type": "object"
|
|
563
|
+
},
|
|
564
|
+
"stub": false
|
|
565
|
+
},
|
|
417
566
|
{
|
|
418
567
|
"handler": "_h_not_implemented",
|
|
419
568
|
"method": "get",
|
|
@@ -757,5 +906,5 @@
|
|
|
757
906
|
}
|
|
758
907
|
],
|
|
759
908
|
"title": "HostApiMethodTable",
|
|
760
|
-
"version": "0.
|
|
909
|
+
"version": "0.22.0"
|
|
761
910
|
}
|
package/package.json
CHANGED