@colibri-social/lexicons 2.31.0 → 2.33.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 (87) hide show
  1. package/LICENSE +7 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts +20 -0
  4. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts.map +1 -1
  5. package/dist/generated/social/colibri/beta/actor/defs.defs.js +4 -1
  6. package/dist/generated/social/colibri/beta/actor/defs.defs.js.map +1 -1
  7. package/dist/generated/social/colibri/beta/actor/putMutes.defs.d.ts +5 -3
  8. package/dist/generated/social/colibri/beta/actor/putMutes.defs.d.ts.map +1 -1
  9. package/dist/generated/social/colibri/beta/actor/putMutes.defs.js +2 -2
  10. package/dist/generated/social/colibri/beta/actor/putMutes.defs.js.map +1 -1
  11. package/dist/generated/social/colibri/beta/community/authorizeHost.d.ts +4 -0
  12. package/dist/generated/social/colibri/beta/community/authorizeHost.d.ts.map +1 -0
  13. package/dist/generated/social/colibri/beta/community/authorizeHost.defs.d.ts +61 -0
  14. package/dist/generated/social/colibri/beta/community/authorizeHost.defs.d.ts.map +1 -0
  15. package/dist/generated/social/colibri/beta/community/authorizeHost.defs.js +15 -0
  16. package/dist/generated/social/colibri/beta/community/authorizeHost.defs.js.map +1 -0
  17. package/dist/generated/social/colibri/beta/community/authorizeHost.js +7 -0
  18. package/dist/generated/social/colibri/beta/community/authorizeHost.js.map +1 -0
  19. package/dist/generated/social/colibri/beta/community/defs.defs.d.ts +46 -1
  20. package/dist/generated/social/colibri/beta/community/defs.defs.d.ts.map +1 -1
  21. package/dist/generated/social/colibri/beta/community/defs.defs.js +9 -2
  22. package/dist/generated/social/colibri/beta/community/defs.defs.js.map +1 -1
  23. package/dist/generated/social/colibri/beta/community/getHostAuthorization.d.ts +4 -0
  24. package/dist/generated/social/colibri/beta/community/getHostAuthorization.d.ts.map +1 -0
  25. package/dist/generated/social/colibri/beta/community/getHostAuthorization.defs.d.ts +42 -0
  26. package/dist/generated/social/colibri/beta/community/getHostAuthorization.defs.d.ts.map +1 -0
  27. package/dist/generated/social/colibri/beta/community/getHostAuthorization.defs.js +14 -0
  28. package/dist/generated/social/colibri/beta/community/getHostAuthorization.defs.js.map +1 -0
  29. package/dist/generated/social/colibri/beta/community/getHostAuthorization.js +7 -0
  30. package/dist/generated/social/colibri/beta/community/getHostAuthorization.js.map +1 -0
  31. package/dist/generated/social/colibri/beta/community/getHosting.d.ts +4 -0
  32. package/dist/generated/social/colibri/beta/community/getHosting.d.ts.map +1 -0
  33. package/dist/generated/social/colibri/beta/community/getHosting.defs.d.ts +68 -0
  34. package/dist/generated/social/colibri/beta/community/getHosting.defs.d.ts.map +1 -0
  35. package/dist/generated/social/colibri/beta/community/getHosting.defs.js +17 -0
  36. package/dist/generated/social/colibri/beta/community/getHosting.defs.js.map +1 -0
  37. package/dist/generated/social/colibri/beta/community/getHosting.js +7 -0
  38. package/dist/generated/social/colibri/beta/community/getHosting.js.map +1 -0
  39. package/dist/generated/social/colibri/beta/community/handOverHost.d.ts +4 -0
  40. package/dist/generated/social/colibri/beta/community/handOverHost.d.ts.map +1 -0
  41. package/dist/generated/social/colibri/beta/community/handOverHost.defs.d.ts +45 -0
  42. package/dist/generated/social/colibri/beta/community/handOverHost.defs.d.ts.map +1 -0
  43. package/dist/generated/social/colibri/beta/community/handOverHost.defs.js +15 -0
  44. package/dist/generated/social/colibri/beta/community/handOverHost.defs.js.map +1 -0
  45. package/dist/generated/social/colibri/beta/community/handOverHost.js +7 -0
  46. package/dist/generated/social/colibri/beta/community/handOverHost.js.map +1 -0
  47. package/dist/generated/social/colibri/beta/community/settings.defs.d.ts +14 -0
  48. package/dist/generated/social/colibri/beta/community/settings.defs.d.ts.map +1 -1
  49. package/dist/generated/social/colibri/beta/community/settings.defs.js +1 -1
  50. package/dist/generated/social/colibri/beta/community/settings.defs.js.map +1 -1
  51. package/dist/generated/social/colibri/beta/community/update.defs.d.ts +2 -0
  52. package/dist/generated/social/colibri/beta/community/update.defs.d.ts.map +1 -1
  53. package/dist/generated/social/colibri/beta/community/update.defs.js +1 -1
  54. package/dist/generated/social/colibri/beta/community/update.defs.js.map +1 -1
  55. package/dist/generated/social/colibri/beta/community.d.ts +4 -0
  56. package/dist/generated/social/colibri/beta/community.d.ts.map +1 -1
  57. package/dist/generated/social/colibri/beta/community.js +4 -0
  58. package/dist/generated/social/colibri/beta/community.js.map +1 -1
  59. package/dist/generated/social/colibri/beta/permissionCommunity.defs.d.ts.map +1 -1
  60. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js +1 -1
  61. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js.map +1 -1
  62. package/dist/generated/social/colibri/beta/role/create.defs.d.ts +2 -0
  63. package/dist/generated/social/colibri/beta/role/create.defs.d.ts.map +1 -1
  64. package/dist/generated/social/colibri/beta/role/create.defs.js +1 -1
  65. package/dist/generated/social/colibri/beta/role/create.defs.js.map +1 -1
  66. package/dist/generated/social/colibri/beta/role/update.defs.d.ts +2 -0
  67. package/dist/generated/social/colibri/beta/role/update.defs.d.ts.map +1 -1
  68. package/dist/generated/social/colibri/beta/role/update.defs.js +1 -1
  69. package/dist/generated/social/colibri/beta/role/update.defs.js.map +1 -1
  70. package/dist/generated/social/colibri/beta/role.defs.d.ts +28 -11
  71. package/dist/generated/social/colibri/beta/role.defs.d.ts.map +1 -1
  72. package/dist/generated/social/colibri/beta/role.defs.js +5 -1
  73. package/dist/generated/social/colibri/beta/role.defs.js.map +1 -1
  74. package/lexicons/social/colibri/beta/actor/defs.json +25 -0
  75. package/lexicons/social/colibri/beta/actor/putMutes.json +10 -3
  76. package/lexicons/social/colibri/beta/community/authorizeHost.json +96 -0
  77. package/lexicons/social/colibri/beta/community/defs.json +46 -1
  78. package/lexicons/social/colibri/beta/community/getHostAuthorization.json +64 -0
  79. package/lexicons/social/colibri/beta/community/getHosting.json +94 -0
  80. package/lexicons/social/colibri/beta/community/handOverHost.json +77 -0
  81. package/lexicons/social/colibri/beta/community/settings.json +5 -0
  82. package/lexicons/social/colibri/beta/community/update.json +4 -0
  83. package/lexicons/social/colibri/beta/permissionCommunity.json +4 -0
  84. package/lexicons/social/colibri/beta/role/create.json +5 -0
  85. package/lexicons/social/colibri/beta/role/update.json +6 -1
  86. package/lexicons/social/colibri/beta/role.json +18 -1
  87. package/package.json +1 -1
@@ -0,0 +1,94 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.community.getHosting",
4
+ "defs": {
5
+ "main": {
6
+ "type": "query",
7
+ "description": "Describes where a community's account lives and whether the AppView can still act for it. Only administrators of the community can read it.",
8
+ "parameters": {
9
+ "type": "params",
10
+ "required": ["community"],
11
+ "properties": {
12
+ "community": {
13
+ "type": "string",
14
+ "format": "did",
15
+ "description": "The community."
16
+ }
17
+ }
18
+ },
19
+ "output": {
20
+ "encoding": "application/json",
21
+ "schema": {
22
+ "type": "object",
23
+ "required": ["hosting"],
24
+ "properties": {
25
+ "hosting": {
26
+ "type": "ref",
27
+ "ref": "#hostingView",
28
+ "description": "Where the community's account lives."
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "errors": [
34
+ {
35
+ "name": "AuthRequired",
36
+ "description": "The request is missing, malformed, or unverifiable service auth."
37
+ },
38
+ {
39
+ "name": "Forbidden",
40
+ "description": "The requesting user lacks permission for this community."
41
+ },
42
+ {
43
+ "name": "CommunityNotFound",
44
+ "description": "No community exists at that identifier."
45
+ }
46
+ ]
47
+ },
48
+ "hostingView": {
49
+ "type": "object",
50
+ "required": ["kind", "account", "server", "needsSignIn"],
51
+ "properties": {
52
+ "kind": {
53
+ "type": "string",
54
+ "knownValues": ["colibri", "own"],
55
+ "description": "colibri when the account lives on this AppView's server and the AppView holds its password. own when the account belongs to the community's owner and the AppView acts through a sign-in."
56
+ },
57
+ "account": {
58
+ "type": "string",
59
+ "description": "The account's handle, or its DID when it has none."
60
+ },
61
+ "server": {
62
+ "type": "string",
63
+ "format": "uri",
64
+ "description": "The server the account lives on, as the AppView last reached it."
65
+ },
66
+ "connectedBy": {
67
+ "type": "string",
68
+ "format": "did",
69
+ "description": "The user who signed in as the account, for kind own."
70
+ },
71
+ "connectedAt": {
72
+ "type": "string",
73
+ "format": "datetime",
74
+ "description": "When the AppView was last connected to the account."
75
+ },
76
+ "needsSignIn": {
77
+ "type": "boolean",
78
+ "description": "Whether the AppView lost access and needs the owner to sign in again. New writes fail until then."
79
+ },
80
+ "needsSignInSince": {
81
+ "type": "string",
82
+ "format": "datetime",
83
+ "description": "When the AppView lost access."
84
+ },
85
+ "handOverExpiresAt": {
86
+ "type": "string",
87
+ "format": "datetime",
88
+ "description": "When the password from handOverHost stops working, while a hand-over is active."
89
+ }
90
+ },
91
+ "description": "Where a community's account lives and whether the AppView can act for it."
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.community.handOverHost",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Gives an administrator access to a community account that lives on this AppView's server, so they can move it to another server. The AppView sets the given email on the account, so codes the server sends reach the administrator, and returns a new password once. The password works for 60 minutes. If the account has not moved by then, the AppView replaces it and signs out every session.",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["community", "email"],
13
+ "properties": {
14
+ "community": {
15
+ "type": "string",
16
+ "format": "did",
17
+ "description": "The community."
18
+ },
19
+ "email": {
20
+ "type": "string",
21
+ "maxLength": 254,
22
+ "description": "The address that receives the server's codes for the move."
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "output": {
28
+ "encoding": "application/json",
29
+ "schema": {
30
+ "type": "object",
31
+ "required": ["identifier", "password", "expiresAt"],
32
+ "properties": {
33
+ "identifier": {
34
+ "type": "string",
35
+ "description": "The account's handle, to sign in with."
36
+ },
37
+ "password": {
38
+ "type": "string",
39
+ "description": "The account's new password. It is not shown again."
40
+ },
41
+ "expiresAt": {
42
+ "type": "string",
43
+ "format": "datetime",
44
+ "description": "When the password stops working."
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "errors": [
50
+ {
51
+ "name": "AuthRequired",
52
+ "description": "The request is missing, malformed, or unverifiable service auth."
53
+ },
54
+ {
55
+ "name": "Forbidden",
56
+ "description": "The requesting user lacks permission for this community."
57
+ },
58
+ {
59
+ "name": "InvalidRequest",
60
+ "description": "The arguments are inconsistent or malformed beyond schema validation."
61
+ },
62
+ {
63
+ "name": "CommunityNotFound",
64
+ "description": "No community exists at that identifier."
65
+ },
66
+ {
67
+ "name": "HandOverUnavailable",
68
+ "description": "The account does not live on this AppView's server, already moved, or the AppView cannot manage accounts there."
69
+ },
70
+ {
71
+ "name": "UpstreamFailure",
72
+ "description": "A PDS or third-party call the AppView depends on failed."
73
+ }
74
+ ]
75
+ }
76
+ }
77
+ }
@@ -34,6 +34,11 @@
34
34
  "default": false,
35
35
  "description": "Whether only role colours are shown in chat. Members' own name colours are hidden, and a member without a coloured role shows the default name colour. Defaults to false."
36
36
  },
37
+ "hideOwnerBadge": {
38
+ "type": "boolean",
39
+ "default": false,
40
+ "description": "Whether the owner badge next to the community owner's name is hidden. Defaults to false."
41
+ },
37
42
  "customEmoji": {
38
43
  "type": "string",
39
44
  "knownValues": ["all", "local", "none"],
@@ -48,6 +48,10 @@
48
48
  "type": "boolean",
49
49
  "description": "Whether only role colours are shown in chat. Members' own name colours are hidden, and a member without a coloured role shows the default name colour."
50
50
  },
51
+ "hideOwnerBadge": {
52
+ "type": "boolean",
53
+ "description": "Whether the owner badge next to the community owner's name is hidden."
54
+ },
51
55
  "customEmoji": {
52
56
  "type": "string",
53
57
  "knownValues": ["all", "local", "none"],
@@ -77,6 +77,10 @@
77
77
  "social.colibri.beta.community.listMigratable",
78
78
  "social.colibri.beta.community.migrate",
79
79
  "social.colibri.beta.community.registerCredentials",
80
+ "social.colibri.beta.community.authorizeHost",
81
+ "social.colibri.beta.community.getHostAuthorization",
82
+ "social.colibri.beta.community.getHosting",
83
+ "social.colibri.beta.community.handOverHost",
80
84
  "social.colibri.beta.community.setMemberRoles",
81
85
  "social.colibri.beta.community.transferOwnership",
82
86
  "social.colibri.beta.community.reorderCategories",
@@ -40,6 +40,11 @@
40
40
  "ref": "social.colibri.beta.community.defs#roleIconBadge",
41
41
  "description": "An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage."
42
42
  },
43
+ "emojiBadge": {
44
+ "type": "ref",
45
+ "ref": "social.colibri.beta.community.defs#roleEmojiBadge",
46
+ "description": "An emoji badge. Cannot be combined with badge."
47
+ },
43
48
  "position": {
44
49
  "type": "integer",
45
50
  "description": "Hierarchy position. Higher outranks lower."
@@ -37,9 +37,14 @@
37
37
  "ref": "social.colibri.beta.community.defs#roleIconBadge",
38
38
  "description": "An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage. Takes precedence over removeBadge."
39
39
  },
40
+ "emojiBadge": {
41
+ "type": "ref",
42
+ "ref": "social.colibri.beta.community.defs#roleEmojiBadge",
43
+ "description": "An emoji badge. Cannot be combined with badge. Takes precedence over removeBadge."
44
+ },
40
45
  "removeBadge": {
41
46
  "type": "boolean",
42
- "description": "Removes the role's badge, whichever kind it is. Ignored when badge is also given."
47
+ "description": "Removes the role's badge, whichever kind it is. Ignored when badge or emojiBadge is also given."
43
48
  },
44
49
  "permissions": {
45
50
  "type": "array",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "badge": {
25
25
  "type": "union",
26
- "refs": ["#iconBadge", "#imageBadge"],
26
+ "refs": ["#iconBadge", "#imageBadge", "#emojiBadge"],
27
27
  "description": "A small badge shown next to the names of members holding this role."
28
28
  },
29
29
  "permissions": {
@@ -125,6 +125,23 @@
125
125
  "description": "A square image, shown at about 16 pixels."
126
126
  }
127
127
  }
128
+ },
129
+ "emojiBadge": {
130
+ "type": "object",
131
+ "description": "A badge drawn from an emoji. Exactly one of emoji and customEmoji is set.",
132
+ "properties": {
133
+ "emoji": {
134
+ "type": "string",
135
+ "maxLength": 64,
136
+ "maxGraphemes": 1,
137
+ "description": "A Unicode emoji."
138
+ },
139
+ "customEmoji": {
140
+ "type": "ref",
141
+ "ref": "social.colibri.beta.richtext.facet#customEmoji",
142
+ "description": "The record of a custom emoji."
143
+ }
144
+ }
128
145
  }
129
146
  }
130
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.31.0",
3
+ "version": "2.33.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {