@anna-ai/app-schema 0.21.0 → 0.23.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 +1 -1
- package/acl/capabilities.json +1 -1
- package/dispatcher_version.txt +1 -1
- package/events/AnnaAppEvent.json +1 -1
- package/host_api/methods.json +164 -1
- package/manifest/AppManifest.json +44 -1
- package/manifest/UiManifestSection.json +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/acl/capabilities.json
CHANGED
package/dispatcher_version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.23.0
|
package/events/AnnaAppEvent.json
CHANGED
package/host_api/methods.json
CHANGED
|
@@ -153,6 +153,20 @@
|
|
|
153
153
|
"no_auth": false,
|
|
154
154
|
"stub": true
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
"handler": "_h_not_implemented",
|
|
158
|
+
"method": "update",
|
|
159
|
+
"namespace": "apps",
|
|
160
|
+
"no_auth": false,
|
|
161
|
+
"stub": true
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"handler": "_h_not_implemented",
|
|
165
|
+
"method": "update_status",
|
|
166
|
+
"namespace": "apps",
|
|
167
|
+
"no_auth": false,
|
|
168
|
+
"stub": true
|
|
169
|
+
},
|
|
156
170
|
{
|
|
157
171
|
"handler": "_h_not_implemented",
|
|
158
172
|
"method": "create",
|
|
@@ -414,6 +428,155 @@
|
|
|
414
428
|
},
|
|
415
429
|
"stub": false
|
|
416
430
|
},
|
|
431
|
+
{
|
|
432
|
+
"handler": "_h_mobile_camera_capture",
|
|
433
|
+
"method": "camera_capture",
|
|
434
|
+
"namespace": "mobile",
|
|
435
|
+
"no_auth": false,
|
|
436
|
+
"params_schema": {
|
|
437
|
+
"additionalProperties": false,
|
|
438
|
+
"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.",
|
|
439
|
+
"properties": {
|
|
440
|
+
"camera": {
|
|
441
|
+
"enum": [
|
|
442
|
+
"back",
|
|
443
|
+
"front",
|
|
444
|
+
null
|
|
445
|
+
],
|
|
446
|
+
"type": [
|
|
447
|
+
"string",
|
|
448
|
+
"null"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
"max_bytes": {
|
|
452
|
+
"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'.",
|
|
453
|
+
"maximum": 8388608,
|
|
454
|
+
"minimum": 1,
|
|
455
|
+
"type": [
|
|
456
|
+
"integer",
|
|
457
|
+
"null"
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
"quality": {
|
|
461
|
+
"maximum": 1,
|
|
462
|
+
"minimum": 0,
|
|
463
|
+
"type": [
|
|
464
|
+
"number",
|
|
465
|
+
"null"
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"type": "object"
|
|
470
|
+
},
|
|
471
|
+
"stub": false
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"handler": "_h_mobile_haptics",
|
|
475
|
+
"method": "haptics",
|
|
476
|
+
"namespace": "mobile",
|
|
477
|
+
"no_auth": false,
|
|
478
|
+
"params_schema": {
|
|
479
|
+
"additionalProperties": false,
|
|
480
|
+
"properties": {
|
|
481
|
+
"style": {
|
|
482
|
+
"description": "impact → light|medium|heavy; notification → success|warning|error; selection ignores style.",
|
|
483
|
+
"enum": [
|
|
484
|
+
"light",
|
|
485
|
+
"medium",
|
|
486
|
+
"heavy",
|
|
487
|
+
"success",
|
|
488
|
+
"warning",
|
|
489
|
+
"error",
|
|
490
|
+
null
|
|
491
|
+
],
|
|
492
|
+
"type": [
|
|
493
|
+
"string",
|
|
494
|
+
"null"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"type": {
|
|
498
|
+
"enum": [
|
|
499
|
+
"impact",
|
|
500
|
+
"notification",
|
|
501
|
+
"selection"
|
|
502
|
+
],
|
|
503
|
+
"type": "string"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"required": [
|
|
507
|
+
"type"
|
|
508
|
+
],
|
|
509
|
+
"type": "object"
|
|
510
|
+
},
|
|
511
|
+
"stub": false
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"handler": "_h_mobile_share",
|
|
515
|
+
"method": "share",
|
|
516
|
+
"namespace": "mobile",
|
|
517
|
+
"no_auth": false,
|
|
518
|
+
"params_schema": {
|
|
519
|
+
"additionalProperties": false,
|
|
520
|
+
"anyOf": [
|
|
521
|
+
{
|
|
522
|
+
"required": [
|
|
523
|
+
"text"
|
|
524
|
+
]
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"required": [
|
|
528
|
+
"url"
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"required": [
|
|
533
|
+
"data_url"
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"description": "System share sheet. At least one of text/url/data_url. User cancel resolves with {shared: false} — NOT an error.",
|
|
538
|
+
"properties": {
|
|
539
|
+
"data_url": {
|
|
540
|
+
"description": "data: URL payload to share as a file (<= 2MB decoded). Written to a short-lived native temp file; never persisted by the shell.",
|
|
541
|
+
"maxLength": 2800000,
|
|
542
|
+
"type": [
|
|
543
|
+
"string",
|
|
544
|
+
"null"
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"filename": {
|
|
548
|
+
"maxLength": 200,
|
|
549
|
+
"type": [
|
|
550
|
+
"string",
|
|
551
|
+
"null"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"text": {
|
|
555
|
+
"maxLength": 10000,
|
|
556
|
+
"type": [
|
|
557
|
+
"string",
|
|
558
|
+
"null"
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"title": {
|
|
562
|
+
"maxLength": 200,
|
|
563
|
+
"type": [
|
|
564
|
+
"string",
|
|
565
|
+
"null"
|
|
566
|
+
]
|
|
567
|
+
},
|
|
568
|
+
"url": {
|
|
569
|
+
"maxLength": 2000,
|
|
570
|
+
"type": [
|
|
571
|
+
"string",
|
|
572
|
+
"null"
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"type": "object"
|
|
577
|
+
},
|
|
578
|
+
"stub": false
|
|
579
|
+
},
|
|
417
580
|
{
|
|
418
581
|
"handler": "_h_not_implemented",
|
|
419
582
|
"method": "get",
|
|
@@ -757,5 +920,5 @@
|
|
|
757
920
|
}
|
|
758
921
|
],
|
|
759
922
|
"title": "HostApiMethodTable",
|
|
760
|
-
"version": "0.
|
|
923
|
+
"version": "0.23.0"
|
|
761
924
|
}
|
|
@@ -163,6 +163,31 @@
|
|
|
163
163
|
"title": "ManifestExecutaRef",
|
|
164
164
|
"type": "object"
|
|
165
165
|
},
|
|
166
|
+
"StorageManifestSection": {
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"description": "Structured APS storage declaration (schema 3, design\naps-authorization-simplification §6.1). Replaces the legacy ``aps.*``\nstrings in ``host_capabilities`` — the two forms are mutually exclusive\n(validator-enforced); normalization lives in ``storage_decl.py``.",
|
|
169
|
+
"properties": {
|
|
170
|
+
"files": {
|
|
171
|
+
"default": false,
|
|
172
|
+
"title": "Files",
|
|
173
|
+
"type": "boolean"
|
|
174
|
+
},
|
|
175
|
+
"kv": {
|
|
176
|
+
"default": false,
|
|
177
|
+
"title": "Kv",
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"scopes": {
|
|
181
|
+
"additionalProperties": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"title": "Scopes",
|
|
185
|
+
"type": "object"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"title": "StorageManifestSection",
|
|
189
|
+
"type": "object"
|
|
190
|
+
},
|
|
166
191
|
"UiBundleSection": {
|
|
167
192
|
"additionalProperties": false,
|
|
168
193
|
"properties": {
|
|
@@ -254,6 +279,13 @@
|
|
|
254
279
|
"title": "Llm",
|
|
255
280
|
"type": "array"
|
|
256
281
|
},
|
|
282
|
+
"mobile": {
|
|
283
|
+
"items": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"title": "Mobile",
|
|
287
|
+
"type": "array"
|
|
288
|
+
},
|
|
257
289
|
"prefs": {
|
|
258
290
|
"items": {
|
|
259
291
|
"type": "string"
|
|
@@ -562,11 +594,22 @@
|
|
|
562
594
|
},
|
|
563
595
|
"schema": {
|
|
564
596
|
"default": 1,
|
|
565
|
-
"maximum":
|
|
597
|
+
"maximum": 3,
|
|
566
598
|
"minimum": 1,
|
|
567
599
|
"title": "Schema",
|
|
568
600
|
"type": "integer"
|
|
569
601
|
},
|
|
602
|
+
"storage": {
|
|
603
|
+
"anyOf": [
|
|
604
|
+
{
|
|
605
|
+
"$ref": "#/$defs/StorageManifestSection"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"type": "null"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"default": null
|
|
612
|
+
},
|
|
570
613
|
"system_prompt_addendum": {
|
|
571
614
|
"anyOf": [
|
|
572
615
|
{
|
package/package.json
CHANGED