@anna-ai/app-schema 0.34.0 → 0.37.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.34.0)
1
+ # @anna-ai/app-schema (v0.37.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.
@@ -22,5 +22,5 @@
22
22
  "tool"
23
23
  ],
24
24
  "title": "CapabilityDeclarationVocabulary",
25
- "version": "0.34.0"
25
+ "version": "0.37.0"
26
26
  }
@@ -1 +1 @@
1
- 0.34.0
1
+ 0.37.0
@@ -21,6 +21,7 @@
21
21
  "geometry_changed",
22
22
  "media_job",
23
23
  "open_view",
24
+ "peers",
24
25
  "ping",
25
26
  "rpc.stream",
26
27
  "runtime_state_synced",
@@ -39,5 +40,5 @@
39
40
  ],
40
41
  "title": "AnnaAppEvent",
41
42
  "type": "object",
42
- "version": "0.34.0"
43
+ "version": "0.37.0"
43
44
  }
@@ -365,6 +365,318 @@
365
365
  "no_auth": false,
366
366
  "stub": false
367
367
  },
368
+ {
369
+ "handler": "_h_not_implemented",
370
+ "method": "cancel",
371
+ "namespace": "conversation",
372
+ "no_auth": false,
373
+ "params_schema": {
374
+ "additionalProperties": false,
375
+ "description": "Cancel the running task of a conversation.",
376
+ "properties": {
377
+ "conversation_uuid": {
378
+ "minLength": 1,
379
+ "type": "string"
380
+ },
381
+ "reason": {
382
+ "type": "string"
383
+ },
384
+ "task_id": {
385
+ "minLength": 1,
386
+ "type": "string"
387
+ }
388
+ },
389
+ "required": [
390
+ "conversation_uuid",
391
+ "task_id"
392
+ ],
393
+ "type": "object"
394
+ },
395
+ "stub": true
396
+ },
397
+ {
398
+ "handler": "_h_not_implemented",
399
+ "method": "create",
400
+ "namespace": "conversation",
401
+ "no_auth": false,
402
+ "params_schema": {
403
+ "additionalProperties": false,
404
+ "description": "Create a conversation; returns the Conversation.",
405
+ "properties": {
406
+ "name": {
407
+ "maxLength": 200,
408
+ "type": [
409
+ "string",
410
+ "null"
411
+ ]
412
+ },
413
+ "override_model": {
414
+ "maxLength": 100,
415
+ "type": [
416
+ "string",
417
+ "null"
418
+ ]
419
+ },
420
+ "zen": {
421
+ "description": "Create a Zen conversation: minimal system prompt, no memory / persona.",
422
+ "type": "boolean"
423
+ }
424
+ },
425
+ "type": "object"
426
+ },
427
+ "stub": true
428
+ },
429
+ {
430
+ "handler": "_h_not_implemented",
431
+ "method": "delete",
432
+ "namespace": "conversation",
433
+ "no_auth": false,
434
+ "params_schema": {
435
+ "additionalProperties": false,
436
+ "description": "Delete a conversation and its history. The default conversation cannot be deleted.",
437
+ "properties": {
438
+ "conversation_uuid": {
439
+ "minLength": 1,
440
+ "type": "string"
441
+ }
442
+ },
443
+ "required": [
444
+ "conversation_uuid"
445
+ ],
446
+ "type": "object"
447
+ },
448
+ "stub": true
449
+ },
450
+ {
451
+ "handler": "_h_not_implemented",
452
+ "method": "list",
453
+ "namespace": "conversation",
454
+ "no_auth": false,
455
+ "params_schema": {
456
+ "additionalProperties": false,
457
+ "description": "List this (user, app)'s conversations as {conversations}. Ensures the default conversation (is_default) exists first. Requires manifest ui.host_api.conversation = true.",
458
+ "properties": {},
459
+ "type": "object"
460
+ },
461
+ "stub": true
462
+ },
463
+ {
464
+ "handler": "_h_not_implemented",
465
+ "method": "messages",
466
+ "namespace": "conversation",
467
+ "no_auth": false,
468
+ "params_schema": {
469
+ "additionalProperties": false,
470
+ "description": "Persisted history of one conversation.",
471
+ "properties": {
472
+ "after_id": {
473
+ "description": "Only messages with id greater than this.",
474
+ "minimum": 0,
475
+ "type": "integer"
476
+ },
477
+ "conversation_uuid": {
478
+ "minLength": 1,
479
+ "type": "string"
480
+ },
481
+ "limit": {
482
+ "maximum": 500,
483
+ "minimum": 1,
484
+ "type": "integer"
485
+ }
486
+ },
487
+ "required": [
488
+ "conversation_uuid"
489
+ ],
490
+ "type": "object"
491
+ },
492
+ "stub": true
493
+ },
494
+ {
495
+ "handler": "_h_not_implemented",
496
+ "method": "modify",
497
+ "namespace": "conversation",
498
+ "no_auth": false,
499
+ "params_schema": {
500
+ "additionalProperties": false,
501
+ "description": "Send a correction to the running task; the agent applies it at its next checkpoint.",
502
+ "properties": {
503
+ "conversation_uuid": {
504
+ "minLength": 1,
505
+ "type": "string"
506
+ },
507
+ "instruction": {
508
+ "minLength": 1,
509
+ "type": "string"
510
+ },
511
+ "task_id": {
512
+ "minLength": 1,
513
+ "type": "string"
514
+ }
515
+ },
516
+ "required": [
517
+ "conversation_uuid",
518
+ "task_id",
519
+ "instruction"
520
+ ],
521
+ "type": "object"
522
+ },
523
+ "stub": true
524
+ },
525
+ {
526
+ "handler": "_h_not_implemented",
527
+ "method": "options",
528
+ "namespace": "conversation",
529
+ "no_auth": false,
530
+ "params_schema": {
531
+ "additionalProperties": false,
532
+ "description": "Composer option sources as {models, executas, agents, settings}: chat models, installed Executas (@ mention), the user's Agents and the Agent auto-selection preview, plus preferred_model / thinking_default / sandbox_enabled / sandbox_path.",
533
+ "properties": {},
534
+ "type": "object"
535
+ },
536
+ "stub": true
537
+ },
538
+ {
539
+ "handler": "_h_not_implemented",
540
+ "method": "send",
541
+ "namespace": "conversation",
542
+ "no_auth": false,
543
+ "params_schema": {
544
+ "additionalProperties": false,
545
+ "description": "Send a user message and start a run of the full main-conversation engine. Resolves with {task_id, stream_id}; frames arrive as rpc.stream events on stream_id (replayable via agent.session.frames). One run per conversation at a time.",
546
+ "properties": {
547
+ "app_ids": {
548
+ "items": {
549
+ "type": "integer"
550
+ },
551
+ "type": "array"
552
+ },
553
+ "attachments": {
554
+ "description": "Multimodal attachments: {type (MIME), url | data, filename?, detail?}.",
555
+ "items": {
556
+ "type": "object"
557
+ },
558
+ "type": "array"
559
+ },
560
+ "conversation_uuid": {
561
+ "minLength": 1,
562
+ "type": "string"
563
+ },
564
+ "executa_ids": {
565
+ "items": {
566
+ "type": "integer"
567
+ },
568
+ "type": "array"
569
+ },
570
+ "mention_modes": {
571
+ "description": "Per-message mention modes: once_executa_ids / once_app_ids.",
572
+ "type": "object"
573
+ },
574
+ "message": {
575
+ "description": "May be empty when attachments are present.",
576
+ "type": "string"
577
+ },
578
+ "thinking": {
579
+ "description": "Thinking-mode override for this message only.",
580
+ "type": [
581
+ "boolean",
582
+ "object"
583
+ ]
584
+ }
585
+ },
586
+ "required": [
587
+ "conversation_uuid",
588
+ "message"
589
+ ],
590
+ "type": "object"
591
+ },
592
+ "stub": true
593
+ },
594
+ {
595
+ "handler": "_h_not_implemented",
596
+ "method": "status",
597
+ "namespace": "conversation",
598
+ "no_auth": false,
599
+ "params_schema": {
600
+ "additionalProperties": false,
601
+ "description": "Running task of a conversation as {task, stream_id}. task is null when idle; stream_id is null when the run was started outside the Host API or its metadata window (1h) has passed.",
602
+ "properties": {
603
+ "conversation_uuid": {
604
+ "minLength": 1,
605
+ "type": "string"
606
+ }
607
+ },
608
+ "required": [
609
+ "conversation_uuid"
610
+ ],
611
+ "type": "object"
612
+ },
613
+ "stub": true
614
+ },
615
+ {
616
+ "handler": "_h_not_implemented",
617
+ "method": "update",
618
+ "namespace": "conversation",
619
+ "no_auth": false,
620
+ "params_schema": {
621
+ "additionalProperties": false,
622
+ "description": "Update a conversation; returns the Conversation.",
623
+ "properties": {
624
+ "conversation_uuid": {
625
+ "minLength": 1,
626
+ "type": "string"
627
+ },
628
+ "is_pinned": {
629
+ "type": "boolean"
630
+ },
631
+ "name": {
632
+ "maxLength": 200,
633
+ "minLength": 1,
634
+ "type": "string"
635
+ },
636
+ "override_model": {
637
+ "description": "Conversation-level model; empty string clears it.",
638
+ "maxLength": 100,
639
+ "type": "string"
640
+ },
641
+ "pinned_agent_id": {
642
+ "description": "Agent client_id bound to the conversation; empty string clears it. When set, conversation.send runs in agent mode on that Agent.",
643
+ "maxLength": 200,
644
+ "type": "string"
645
+ },
646
+ "pinned_mentions": {
647
+ "additionalProperties": false,
648
+ "description": "Sticky @ Executa / # App pins (full replace).",
649
+ "properties": {
650
+ "app_ids": {
651
+ "items": {
652
+ "type": "integer"
653
+ },
654
+ "type": "array"
655
+ },
656
+ "executa_ids": {
657
+ "items": {
658
+ "type": "integer"
659
+ },
660
+ "type": "array"
661
+ }
662
+ },
663
+ "type": "object"
664
+ },
665
+ "thinking": {
666
+ "description": "Conversation-level thinking mode: bool or {enabled, effort?}; empty object clears it.",
667
+ "type": [
668
+ "boolean",
669
+ "object"
670
+ ]
671
+ }
672
+ },
673
+ "required": [
674
+ "conversation_uuid"
675
+ ],
676
+ "type": "object"
677
+ },
678
+ "stub": true
679
+ },
368
680
  {
369
681
  "handler": "_h_not_implemented",
370
682
  "method": "get_token",
@@ -907,6 +1219,278 @@
907
1219
  "no_auth": false,
908
1220
  "stub": false
909
1221
  },
1222
+ {
1223
+ "handler": "_h_not_implemented",
1224
+ "method": "block",
1225
+ "namespace": "peers",
1226
+ "no_auth": false,
1227
+ "params_schema": {
1228
+ "additionalProperties": false,
1229
+ "description": "Block or unblock a user within this App (idempotent). A blocked user cannot look up or invite the caller, and neither side can append to their channel. The other user is not told. Returns {blocked}.",
1230
+ "properties": {
1231
+ "blocked": {
1232
+ "type": "boolean"
1233
+ },
1234
+ "username": {
1235
+ "minLength": 1,
1236
+ "type": "string"
1237
+ }
1238
+ },
1239
+ "required": [
1240
+ "username",
1241
+ "blocked"
1242
+ ],
1243
+ "type": "object"
1244
+ },
1245
+ "stub": true
1246
+ },
1247
+ {
1248
+ "handler": "_h_not_implemented",
1249
+ "method": "channel.append",
1250
+ "namespace": "peers",
1251
+ "no_auth": false,
1252
+ "params_schema": {
1253
+ "additionalProperties": false,
1254
+ "description": "Append one event to a channel the caller has joined. Sequence numbers start at 1 and increase by one with no gaps. Members receive an `event` hint. Returns {seq, created_at}. `channel_unavailable` when either member has blocked the other.",
1255
+ "properties": {
1256
+ "body": {
1257
+ "description": "Opaque event bytes, standard base64. At most 65536 bytes after decoding (`payload_too_large` beyond that).",
1258
+ "minLength": 1,
1259
+ "type": "string"
1260
+ },
1261
+ "channel_uuid": {
1262
+ "minLength": 1,
1263
+ "type": "string"
1264
+ },
1265
+ "client_msg_id": {
1266
+ "description": "Idempotency key chosen by the sender. Re-submitting the same key returns the first result and writes nothing.",
1267
+ "pattern": "^[A-Za-z0-9_-]{8,36}$",
1268
+ "type": "string"
1269
+ }
1270
+ },
1271
+ "required": [
1272
+ "channel_uuid",
1273
+ "client_msg_id",
1274
+ "body"
1275
+ ],
1276
+ "type": "object"
1277
+ },
1278
+ "stub": true
1279
+ },
1280
+ {
1281
+ "handler": "_h_not_implemented",
1282
+ "method": "channel.leave",
1283
+ "namespace": "peers",
1284
+ "no_auth": false,
1285
+ "params_schema": {
1286
+ "additionalProperties": false,
1287
+ "description": "Leave a channel. When no member remains invited or joined, the channel and its events are deleted. Returns {left: true}.",
1288
+ "properties": {
1289
+ "channel_uuid": {
1290
+ "minLength": 1,
1291
+ "type": "string"
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "channel_uuid"
1296
+ ],
1297
+ "type": "object"
1298
+ },
1299
+ "stub": true
1300
+ },
1301
+ {
1302
+ "handler": "_h_not_implemented",
1303
+ "method": "channel.list",
1304
+ "namespace": "peers",
1305
+ "no_auth": false,
1306
+ "params_schema": {
1307
+ "additionalProperties": false,
1308
+ "description": "Channels where the caller is `invited` or `joined`, most recent activity first, as {channels: Channel[]}. Channel = {channel_uuid, kind, state, members, invited_by, last_seq, last_event_at, created_at, blocked_by_me}; `state` is the caller's own.",
1309
+ "properties": {},
1310
+ "type": "object"
1311
+ },
1312
+ "stub": true
1313
+ },
1314
+ {
1315
+ "handler": "_h_not_implemented",
1316
+ "method": "channel.open",
1317
+ "namespace": "peers",
1318
+ "no_auth": false,
1319
+ "params_schema": {
1320
+ "additionalProperties": false,
1321
+ "description": "Open the direct channel with another user (idempotent; one channel per pair per App). Creates it with the caller `joined` and the other user `invited`; re-invites a member who declined or left; accepts the caller's own pending invitation. Returns the Channel. `not_found` when the user does not exist or has blocked the caller; `channel_unavailable` when the caller has blocked them.",
1322
+ "properties": {
1323
+ "username": {
1324
+ "minLength": 1,
1325
+ "type": "string"
1326
+ }
1327
+ },
1328
+ "required": [
1329
+ "username"
1330
+ ],
1331
+ "type": "object"
1332
+ },
1333
+ "stub": true
1334
+ },
1335
+ {
1336
+ "handler": "_h_not_implemented",
1337
+ "method": "channel.read",
1338
+ "namespace": "peers",
1339
+ "no_auth": false,
1340
+ "params_schema": {
1341
+ "additionalProperties": false,
1342
+ "description": "Read events from a channel the caller has joined (`forbidden` while still invited). With neither bound, returns the newest page. A page is always ordered by ascending seq. Returns {events: Event[], last_seq}; Event = {seq, sender_username, is_self, client_msg_id, body, created_at}.",
1343
+ "properties": {
1344
+ "after_seq": {
1345
+ "description": "Events with seq > after_seq, oldest first.",
1346
+ "minimum": 0,
1347
+ "type": [
1348
+ "integer",
1349
+ "null"
1350
+ ]
1351
+ },
1352
+ "before_seq": {
1353
+ "description": "The page of events just below before_seq.",
1354
+ "minimum": 0,
1355
+ "type": [
1356
+ "integer",
1357
+ "null"
1358
+ ]
1359
+ },
1360
+ "channel_uuid": {
1361
+ "minLength": 1,
1362
+ "type": "string"
1363
+ },
1364
+ "limit": {
1365
+ "default": 50,
1366
+ "maximum": 200,
1367
+ "minimum": 1,
1368
+ "type": "integer"
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "channel_uuid"
1373
+ ],
1374
+ "type": "object"
1375
+ },
1376
+ "stub": true
1377
+ },
1378
+ {
1379
+ "handler": "_h_not_implemented",
1380
+ "method": "channel.respond",
1381
+ "namespace": "peers",
1382
+ "no_auth": false,
1383
+ "params_schema": {
1384
+ "additionalProperties": false,
1385
+ "description": "Answer a pending invitation: `joined` or `declined`. Until the invitation is accepted the caller cannot read the channel. Returns the Channel.",
1386
+ "properties": {
1387
+ "accept": {
1388
+ "type": "boolean"
1389
+ },
1390
+ "channel_uuid": {
1391
+ "minLength": 1,
1392
+ "type": "string"
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "channel_uuid",
1397
+ "accept"
1398
+ ],
1399
+ "type": "object"
1400
+ },
1401
+ "stub": true
1402
+ },
1403
+ {
1404
+ "handler": "_h_not_implemented",
1405
+ "method": "keys.publish",
1406
+ "namespace": "peers",
1407
+ "no_auth": false,
1408
+ "params_schema": {
1409
+ "additionalProperties": false,
1410
+ "description": "Publish the caller's public data for this App (one value per user per App). Other members of the caller's channels receive a `channel` hint. Returns {key_updated_at}.",
1411
+ "properties": {
1412
+ "public": {
1413
+ "description": "Opaque public data, standard base64. At most 4096 bytes after decoding. Replaces the previous value.",
1414
+ "minLength": 1,
1415
+ "type": "string"
1416
+ }
1417
+ },
1418
+ "required": [
1419
+ "public"
1420
+ ],
1421
+ "type": "object"
1422
+ },
1423
+ "stub": true
1424
+ },
1425
+ {
1426
+ "handler": "_h_not_implemented",
1427
+ "method": "lookup",
1428
+ "namespace": "peers",
1429
+ "no_auth": false,
1430
+ "params_schema": {
1431
+ "additionalProperties": false,
1432
+ "description": "Exact-match lookup of another user — there is no search. Returns the same shape as `me`. An unknown user, a deactivated account and a user who has blocked the caller all answer `not_found`.",
1433
+ "properties": {
1434
+ "username": {
1435
+ "description": "Exact username (a leading `@` is ignored).",
1436
+ "minLength": 1,
1437
+ "type": "string"
1438
+ }
1439
+ },
1440
+ "required": [
1441
+ "username"
1442
+ ],
1443
+ "type": "object"
1444
+ },
1445
+ "stub": true
1446
+ },
1447
+ {
1448
+ "handler": "_h_not_implemented",
1449
+ "method": "me",
1450
+ "namespace": "peers",
1451
+ "no_auth": false,
1452
+ "params_schema": {
1453
+ "additionalProperties": false,
1454
+ "description": "The caller's own address and published public data as {username, display_name, avatar_url, public, key_updated_at}. `public` is null until `keys.publish` has been called. Requires manifest `ui.host_api.peers = true`.",
1455
+ "properties": {},
1456
+ "type": "object"
1457
+ },
1458
+ "stub": true
1459
+ },
1460
+ {
1461
+ "handler": "_h_not_implemented",
1462
+ "method": "report",
1463
+ "namespace": "peers",
1464
+ "no_auth": false,
1465
+ "params_schema": {
1466
+ "additionalProperties": false,
1467
+ "description": "Report the other member of a channel to the platform. Returns {reported: true}.",
1468
+ "properties": {
1469
+ "channel_uuid": {
1470
+ "minLength": 1,
1471
+ "type": "string"
1472
+ },
1473
+ "evidence": {
1474
+ "description": "Optional plaintext the reporter chooses to hand to the platform. At most 16384 bytes.",
1475
+ "type": [
1476
+ "string",
1477
+ "null"
1478
+ ]
1479
+ },
1480
+ "reason": {
1481
+ "maxLength": 500,
1482
+ "minLength": 1,
1483
+ "type": "string"
1484
+ }
1485
+ },
1486
+ "required": [
1487
+ "channel_uuid",
1488
+ "reason"
1489
+ ],
1490
+ "type": "object"
1491
+ },
1492
+ "stub": true
1493
+ },
910
1494
  {
911
1495
  "handler": "_h_not_implemented",
912
1496
  "method": "list",
@@ -1090,6 +1674,19 @@
1090
1674
  "no_auth": false,
1091
1675
  "stub": false
1092
1676
  },
1677
+ {
1678
+ "handler": "_h_not_implemented",
1679
+ "method": "quota",
1680
+ "namespace": "storage",
1681
+ "no_auth": false,
1682
+ "params_schema": {
1683
+ "additionalProperties": false,
1684
+ "description": "No parameters. Returns the calling USER's global APS quota status — used_bytes / quota_bytes (-1 = unlimited) / entries_count / percent / plan_name / plan_label — aggregated across every scope and app bucket. Quota is enforced per user, not per bucket, so this is the only correct denominator for a storage usage bar. Core (local dev harness) answers not_implemented; clients must degrade silently.",
1685
+ "properties": {},
1686
+ "type": "object"
1687
+ },
1688
+ "stub": true
1689
+ },
1093
1690
  {
1094
1691
  "handler": "_h_storage_set",
1095
1692
  "method": "set",
@@ -1433,5 +2030,5 @@
1433
2030
  }
1434
2031
  ],
1435
2032
  "title": "HostApiMethodTable",
1436
- "version": "0.34.0"
2033
+ "version": "0.37.0"
1437
2034
  }
@@ -173,6 +173,11 @@
173
173
  "agent": {
174
174
  "$ref": "#/$defs/AgentHostApiSpec"
175
175
  },
176
+ "conversation": {
177
+ "default": false,
178
+ "title": "Conversation",
179
+ "type": "boolean"
180
+ },
176
181
  "credentials": {
177
182
  "items": {
178
183
  "type": "string"
@@ -180,6 +185,11 @@
180
185
  "title": "Credentials",
181
186
  "type": "array"
182
187
  },
188
+ "peers": {
189
+ "default": false,
190
+ "title": "Peers",
191
+ "type": "boolean"
192
+ },
183
193
  "share": {
184
194
  "default": false,
185
195
  "title": "Share",
@@ -51,6 +51,11 @@
51
51
  "agent": {
52
52
  "$ref": "#/$defs/AgentHostApiSpec"
53
53
  },
54
+ "conversation": {
55
+ "default": false,
56
+ "title": "Conversation",
57
+ "type": "boolean"
58
+ },
54
59
  "credentials": {
55
60
  "items": {
56
61
  "type": "string"
@@ -58,6 +63,11 @@
58
63
  "title": "Credentials",
59
64
  "type": "array"
60
65
  },
66
+ "peers": {
67
+ "default": false,
68
+ "title": "Peers",
69
+ "type": "boolean"
70
+ },
61
71
  "share": {
62
72
  "default": false,
63
73
  "title": "Share",
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.34.0"
26
+ "version": "0.37.0"
27
27
  }