@colibri-social/lexicons 2.1.0 → 2.3.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.
Files changed (61) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts +36 -4
  3. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts.map +1 -1
  4. package/dist/generated/social/colibri/beta/actor/defs.defs.js +8 -2
  5. package/dist/generated/social/colibri/beta/actor/defs.defs.js.map +1 -1
  6. package/dist/generated/social/colibri/beta/actor/mute.defs.d.ts +13 -12
  7. package/dist/generated/social/colibri/beta/actor/mute.defs.d.ts.map +1 -1
  8. package/dist/generated/social/colibri/beta/actor/mute.defs.js +2 -1
  9. package/dist/generated/social/colibri/beta/actor/mute.defs.js.map +1 -1
  10. package/dist/generated/social/colibri/beta/community/defs.defs.d.ts +36 -0
  11. package/dist/generated/social/colibri/beta/community/defs.defs.d.ts.map +1 -1
  12. package/dist/generated/social/colibri/beta/community/defs.defs.js +3 -0
  13. package/dist/generated/social/colibri/beta/community/defs.defs.js.map +1 -1
  14. package/dist/generated/social/colibri/beta/community/listMigratable.d.ts +4 -0
  15. package/dist/generated/social/colibri/beta/community/listMigratable.d.ts.map +1 -0
  16. package/dist/generated/social/colibri/beta/community/listMigratable.defs.d.ts +31 -0
  17. package/dist/generated/social/colibri/beta/community/listMigratable.defs.d.ts.map +1 -0
  18. package/dist/generated/social/colibri/beta/community/listMigratable.defs.js +15 -0
  19. package/dist/generated/social/colibri/beta/community/listMigratable.defs.js.map +1 -0
  20. package/dist/generated/social/colibri/beta/community/listMigratable.js +7 -0
  21. package/dist/generated/social/colibri/beta/community/listMigratable.js.map +1 -0
  22. package/dist/generated/social/colibri/beta/community/migrate.defs.d.ts +4 -4
  23. package/dist/generated/social/colibri/beta/community/migrate.defs.d.ts.map +1 -1
  24. package/dist/generated/social/colibri/beta/community/migrate.defs.js +1 -1
  25. package/dist/generated/social/colibri/beta/community/migrate.defs.js.map +1 -1
  26. package/dist/generated/social/colibri/beta/community.d.ts +1 -0
  27. package/dist/generated/social/colibri/beta/community.d.ts.map +1 -1
  28. package/dist/generated/social/colibri/beta/community.js +1 -0
  29. package/dist/generated/social/colibri/beta/community.js.map +1 -1
  30. package/dist/generated/social/colibri/beta/permissionCommunity.defs.d.ts.map +1 -1
  31. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js +1 -1
  32. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js.map +1 -1
  33. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts +12 -0
  34. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts.map +1 -1
  35. package/dist/generated/social/colibri/beta/sync/defs.defs.js +3 -0
  36. package/dist/generated/social/colibri/beta/sync/defs.defs.js.map +1 -1
  37. package/dist/generated/social/colibri/beta/voice/defs.defs.d.ts +26 -6
  38. package/dist/generated/social/colibri/beta/voice/defs.defs.d.ts.map +1 -1
  39. package/dist/generated/social/colibri/beta/voice/defs.defs.js +6 -3
  40. package/dist/generated/social/colibri/beta/voice/defs.defs.js.map +1 -1
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/mute-subject.d.ts +6 -0
  46. package/dist/mute-subject.d.ts.map +1 -0
  47. package/dist/mute-subject.js +9 -0
  48. package/dist/mute-subject.js.map +1 -0
  49. package/dist/nsids.d.ts +18 -0
  50. package/dist/nsids.d.ts.map +1 -1
  51. package/dist/nsids.js +17 -0
  52. package/dist/nsids.js.map +1 -1
  53. package/lexicons/social/colibri/beta/actor/defs.json +38 -5
  54. package/lexicons/social/colibri/beta/actor/mute.json +7 -3
  55. package/lexicons/social/colibri/beta/community/defs.json +37 -0
  56. package/lexicons/social/colibri/beta/community/listMigratable.json +58 -0
  57. package/lexicons/social/colibri/beta/community/migrate.json +4 -4
  58. package/lexicons/social/colibri/beta/permissionCommunity.json +1 -0
  59. package/lexicons/social/colibri/beta/sync/defs.json +12 -0
  60. package/lexicons/social/colibri/beta/voice/defs.json +29 -5
  61. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.community.listMigratable",
4
+ "defs": {
5
+ "main": {
6
+ "type": "query",
7
+ "description": "Lists the repo-backed communities the requesting user belongs to that have not been migrated onto spaces yet, so a client can offer them as a choice rather than asking for a handle. The AppView reads this live from the user's own public repo and each candidate's public repo, because nothing about an unmigrated community is indexed. Only a community that holds its own DID is listed: an older community that lived in its owner's repo cannot be migrated.",
8
+ "parameters": {
9
+ "type": "params",
10
+ "required": [],
11
+ "properties": {
12
+ "includeUnadministered": {
13
+ "type": "boolean",
14
+ "default": false,
15
+ "description": "Whether to include communities the user belongs to but cannot migrate. They come back with viewerIsAdmin false."
16
+ }
17
+ }
18
+ },
19
+ "output": {
20
+ "encoding": "application/json",
21
+ "schema": {
22
+ "type": "object",
23
+ "required": ["communities"],
24
+ "properties": {
25
+ "communities": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "ref",
29
+ "ref": "social.colibri.beta.community.defs#legacyCommunityView",
30
+ "description": "An unmigrated legacy community."
31
+ },
32
+ "description": "Unmigrated legacy communities, in the user's preferred sidebar order where the legacy repo recorded one. This is not paginated: a user's community list is small and every entry costs a live read."
33
+ },
34
+ "unreadable": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "format": "did",
39
+ "description": "A community DID whose repo could not be read."
40
+ },
41
+ "description": "Communities named by the user's repo whose own repo could not be read, so the client can say so instead of silently dropping them."
42
+ }
43
+ }
44
+ }
45
+ },
46
+ "errors": [
47
+ {
48
+ "name": "AuthRequired",
49
+ "description": "The request is missing, malformed, or unverifiable service auth."
50
+ },
51
+ {
52
+ "name": "UpstreamFailure",
53
+ "description": "The requesting user's own PDS could not be read, so no candidate list could be built at all."
54
+ }
55
+ ]
56
+ }
57
+ }
58
+ }
@@ -9,12 +9,12 @@
9
9
  "encoding": "application/json",
10
10
  "schema": {
11
11
  "type": "object",
12
- "required": ["legacy"],
12
+ "required": ["community"],
13
13
  "properties": {
14
- "legacy": {
14
+ "community": {
15
15
  "type": "string",
16
- "format": "at-uri",
17
- "description": "The legacy social.colibri.beta.community record to migrate."
16
+ "format": "at-identifier",
17
+ "description": "The legacy community to migrate, by handle or DID. Only a community that holds its own DID can be migrated, so the DID is the whole address: the record to read is always social.colibri.community at self in that repo."
18
18
  }
19
19
  }
20
20
  }
@@ -66,6 +66,7 @@
66
66
  "social.colibri.beta.community.putImage",
67
67
  "social.colibri.beta.community.deleteImage",
68
68
  "social.colibri.beta.community.delete",
69
+ "social.colibri.beta.community.listMigratable",
69
70
  "social.colibri.beta.community.migrate",
70
71
  "social.colibri.beta.community.registerCredentials",
71
72
  "social.colibri.beta.community.setMemberRoles",
@@ -479,6 +479,18 @@
479
479
  }
480
480
  }
481
481
  },
482
+ "preferencesEvent": {
483
+ "type": "object",
484
+ "description": "The connected user changed their own preferences somewhere else.",
485
+ "required": ["preferences"],
486
+ "properties": {
487
+ "preferences": {
488
+ "type": "ref",
489
+ "ref": "social.colibri.beta.actor.defs#preferences",
490
+ "description": "Their preferences as they now stand."
491
+ }
492
+ }
493
+ },
482
494
  "typingEvent": {
483
495
  "type": "object",
484
496
  "description": "Someone is typing in a subscribed channel.",
@@ -26,8 +26,12 @@
26
26
  "description": "The opaque mediasoup ICE parameters blob."
27
27
  },
28
28
  "iceCandidates": {
29
- "type": "unknown",
30
- "description": "The opaque mediasoup ICE candidates blob."
29
+ "type": "array",
30
+ "description": "The mediasoup ICE candidates, one opaque blob per candidate. This is an array, not a single object, because that is what a WebRTC transport hands back.",
31
+ "items": {
32
+ "type": "unknown",
33
+ "description": "One opaque mediasoup ICE candidate."
34
+ }
31
35
  },
32
36
  "dtlsParameters": {
33
37
  "type": "unknown",
@@ -333,9 +337,21 @@
333
337
  }
334
338
  }
335
339
  },
340
+ "disconnected": {
341
+ "type": "object",
342
+ "description": "The server removed this client from the voice channel. Sent only to the client it applies to.",
343
+ "required": [],
344
+ "properties": {
345
+ "reason": {
346
+ "type": "string",
347
+ "description": "Why it happened.",
348
+ "knownValues": ["moderator", "superseded", "channelGone"]
349
+ }
350
+ }
351
+ },
336
352
  "moderationChanged": {
337
353
  "type": "object",
338
- "description": "A peer's server-enforced mute or deafen state changed.",
354
+ "description": "A peer's mute or deafen state changed, whether they did it themselves or a moderator did it to them.",
339
355
  "required": ["did", "muted", "deafened"],
340
356
  "properties": {
341
357
  "did": {
@@ -345,11 +361,19 @@
345
361
  },
346
362
  "muted": {
347
363
  "type": "boolean",
348
- "description": "Whether the microphone is server-muted."
364
+ "description": "Whether the microphone is muted, for any reason."
349
365
  },
350
366
  "deafened": {
351
367
  "type": "boolean",
352
- "description": "Whether incoming audio is server-silenced."
368
+ "description": "Whether incoming audio is silenced, for any reason."
369
+ },
370
+ "serverMuted": {
371
+ "type": "boolean",
372
+ "description": "Whether a moderator muted them. When this is true the peer cannot unmute themselves."
373
+ },
374
+ "serverDeafened": {
375
+ "type": "boolean",
376
+ "description": "Whether a moderator deafened them. When this is true the peer cannot undeafen themselves."
353
377
  }
354
378
  }
355
379
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {