@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
@@ -1,4 +1,4 @@
1
- # @anna-ai/app-schema (v0.21.0)
1
+ # @anna-ai/app-schema (v0.22.0)
2
2
 
3
3
  Versioned schema bundle for the Anna App platform. Generated by
4
4
  `scripts/export_app_schema.py` in matrix-nexus; do not edit by hand.
@@ -42,5 +42,5 @@
42
42
  "ui.svg"
43
43
  ],
44
44
  "title": "AclCapabilityTable",
45
- "version": "0.21.0"
45
+ "version": "0.22.0"
46
46
  }
@@ -1 +1 @@
1
- 0.21.0
1
+ 0.22.0
@@ -38,5 +38,5 @@
38
38
  ],
39
39
  "title": "AnnaAppEvent",
40
40
  "type": "object",
41
- "version": "0.21.0"
41
+ "version": "0.22.0"
42
42
  }
@@ -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.21.0"
909
+ "version": "0.22.0"
761
910
  }
@@ -254,6 +254,13 @@
254
254
  "title": "Llm",
255
255
  "type": "array"
256
256
  },
257
+ "mobile": {
258
+ "items": {
259
+ "type": "string"
260
+ },
261
+ "title": "Mobile",
262
+ "type": "array"
263
+ },
257
264
  "prefs": {
258
265
  "items": {
259
266
  "type": "string"
@@ -147,6 +147,13 @@
147
147
  "title": "Llm",
148
148
  "type": "array"
149
149
  },
150
+ "mobile": {
151
+ "items": {
152
+ "type": "string"
153
+ },
154
+ "title": "Mobile",
155
+ "type": "array"
156
+ },
150
157
  "prefs": {
151
158
  "items": {
152
159
  "type": "string"
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.21.0"
26
+ "version": "0.22.0"
27
27
  }