@anna-ai/app-schema 0.36.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.36.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.36.0"
25
+ "version": "0.37.0"
26
26
  }
@@ -1 +1 @@
1
- 0.36.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.36.0"
43
+ "version": "0.37.0"
43
44
  }
@@ -1219,6 +1219,278 @@
1219
1219
  "no_auth": false,
1220
1220
  "stub": false
1221
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
+ },
1222
1494
  {
1223
1495
  "handler": "_h_not_implemented",
1224
1496
  "method": "list",
@@ -1758,5 +2030,5 @@
1758
2030
  }
1759
2031
  ],
1760
2032
  "title": "HostApiMethodTable",
1761
- "version": "0.36.0"
2033
+ "version": "0.37.0"
1762
2034
  }
@@ -185,6 +185,11 @@
185
185
  "title": "Credentials",
186
186
  "type": "array"
187
187
  },
188
+ "peers": {
189
+ "default": false,
190
+ "title": "Peers",
191
+ "type": "boolean"
192
+ },
188
193
  "share": {
189
194
  "default": false,
190
195
  "title": "Share",
@@ -63,6 +63,11 @@
63
63
  "title": "Credentials",
64
64
  "type": "array"
65
65
  },
66
+ "peers": {
67
+ "default": false,
68
+ "title": "Peers",
69
+ "type": "boolean"
70
+ },
66
71
  "share": {
67
72
  "default": false,
68
73
  "title": "Share",
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.36.0"
26
+ "version": "0.37.0"
27
27
  }