@colibri-social/lexicons 2.40.0 → 2.41.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/dist/.tsbuildinfo +1 -1
- package/dist/generated/social/colibri/beta/bridge/defs.defs.d.ts +4 -0
- package/dist/generated/social/colibri/beta/bridge/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/bridge/defs.defs.js +1 -1
- package/dist/generated/social/colibri/beta/bridge/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/bridge/install.d.ts +4 -0
- package/dist/generated/social/colibri/beta/bridge/install.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/install.defs.d.ts +38 -0
- package/dist/generated/social/colibri/beta/bridge/install.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/install.defs.js +16 -0
- package/dist/generated/social/colibri/beta/bridge/install.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/install.js +7 -0
- package/dist/generated/social/colibri/beta/bridge/install.js.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.d.ts +4 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.defs.d.ts +35 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.defs.js +15 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.js +7 -0
- package/dist/generated/social/colibri/beta/bridge/listChannels.js.map +1 -0
- package/dist/generated/social/colibri/beta/bridge/registration.defs.d.ts +14 -0
- package/dist/generated/social/colibri/beta/bridge/registration.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/bridge/registration.defs.js +1 -1
- package/dist/generated/social/colibri/beta/bridge/registration.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/bridge/update.defs.d.ts +6 -0
- package/dist/generated/social/colibri/beta/bridge/update.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/bridge/update.defs.js +1 -1
- package/dist/generated/social/colibri/beta/bridge/update.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/bridge.d.ts +2 -0
- package/dist/generated/social/colibri/beta/bridge.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/bridge.js +2 -0
- package/dist/generated/social/colibri/beta/bridge.js.map +1 -1
- package/dist/generated/social/colibri/beta/permissionBridge.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/permissionBridge.defs.js +1 -1
- package/dist/generated/social/colibri/beta/permissionBridge.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.js +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.js.map +1 -1
- package/lexicons/social/colibri/beta/bridge/defs.json +9 -0
- package/lexicons/social/colibri/beta/bridge/install.json +69 -0
- package/lexicons/social/colibri/beta/bridge/listChannels.json +66 -0
- package/lexicons/social/colibri/beta/bridge/registration.json +10 -0
- package/lexicons/social/colibri/beta/bridge/update.json +11 -1
- package/lexicons/social/colibri/beta/permissionBridge.json +1 -0
- package/lexicons/social/colibri/beta/permissionCommunity.json +1 -0
- package/package.json +1 -1
|
@@ -250,6 +250,15 @@
|
|
|
250
250
|
},
|
|
251
251
|
"description": "Channels kept in sync."
|
|
252
252
|
},
|
|
253
|
+
"channels": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"format": "space-ref",
|
|
258
|
+
"description": "An open channel."
|
|
259
|
+
},
|
|
260
|
+
"description": "Channels the bridge may read and post in without a room on the other service."
|
|
261
|
+
},
|
|
253
262
|
"backfills": {
|
|
254
263
|
"type": "array",
|
|
255
264
|
"items": {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "social.colibri.beta.bridge.install",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Connects a bridge to a community by its handle or DID, for bridges that set up rooms with commands in the channels they can use. Writes a registration with no linked or open channels.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["community", "bridge"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"community": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "did",
|
|
17
|
+
"description": "The community to connect the bridge to."
|
|
18
|
+
},
|
|
19
|
+
"bridge": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "at-identifier",
|
|
22
|
+
"description": "The bridge's handle or DID."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"output": {
|
|
28
|
+
"encoding": "application/json",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["registration"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"registration": {
|
|
34
|
+
"type": "ref",
|
|
35
|
+
"ref": "social.colibri.beta.bridge.defs#registrationView",
|
|
36
|
+
"description": "The registration."
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"errors": [
|
|
42
|
+
{
|
|
43
|
+
"name": "AuthRequired",
|
|
44
|
+
"description": "The request is missing, malformed, or unverifiable service auth."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Forbidden",
|
|
48
|
+
"description": "The caller lacks the community.manage permission."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "CommunityNotFound",
|
|
52
|
+
"description": "No community exists at the given DID."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "BridgeNotFound",
|
|
56
|
+
"description": "The handle or DID does not resolve to an identity."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "AlreadyRegistered",
|
|
60
|
+
"description": "This bridge is already installed in this community."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "CredentialsUnavailable",
|
|
64
|
+
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "social.colibri.beta.bridge.listChannels",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Lists a community's text channels that every member can read, for the bridge that holds the registration. Each channel's viewer state says whether the registration may read and post in it now.",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["community", "registration"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"community": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "did",
|
|
15
|
+
"description": "The community the registration belongs to."
|
|
16
|
+
},
|
|
17
|
+
"registration": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "tid",
|
|
20
|
+
"description": "Record key of the registration."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"output": {
|
|
25
|
+
"encoding": "application/json",
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["channels"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"channels": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "ref",
|
|
34
|
+
"ref": "social.colibri.beta.community.defs#channelView",
|
|
35
|
+
"description": "A channel."
|
|
36
|
+
},
|
|
37
|
+
"description": "The channels, in the community's order."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"errors": [
|
|
43
|
+
{
|
|
44
|
+
"name": "AuthRequired",
|
|
45
|
+
"description": "The request is missing, malformed, or unverifiable service auth."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Forbidden",
|
|
49
|
+
"description": "The caller is not the bridge this registration belongs to."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "CommunityNotFound",
|
|
53
|
+
"description": "No community exists at the given DID."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "RegistrationNotFound",
|
|
57
|
+
"description": "The community has no bridge registration with that id."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "RateLimited",
|
|
61
|
+
"description": "The bridge sent too many requests. Retry after the interval in the response headers."
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -49,6 +49,16 @@
|
|
|
49
49
|
"maxLength": 500,
|
|
50
50
|
"description": "Channels the bridge may read and write."
|
|
51
51
|
},
|
|
52
|
+
"channels": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"format": "space-ref",
|
|
57
|
+
"description": "An open channel."
|
|
58
|
+
},
|
|
59
|
+
"maxLength": 500,
|
|
60
|
+
"description": "Channels the bridge may read and post in without a room on the other service. Threads under them follow the same rules as threads under linked channels."
|
|
61
|
+
},
|
|
52
62
|
"enabled": {
|
|
53
63
|
"type": "boolean",
|
|
54
64
|
"description": "Whether the bridge may currently write. An admin can pause a bridge without unlinking its channels."
|
|
@@ -31,6 +31,16 @@
|
|
|
31
31
|
"maxLength": 500,
|
|
32
32
|
"description": "The complete set of linked channels, replacing the current one."
|
|
33
33
|
},
|
|
34
|
+
"channels": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "space-ref",
|
|
39
|
+
"description": "An open channel."
|
|
40
|
+
},
|
|
41
|
+
"maxLength": 500,
|
|
42
|
+
"description": "The complete set of open channels, replacing the current one. The bridge may read and post in them without a room on the other service."
|
|
43
|
+
},
|
|
34
44
|
"enabled": {
|
|
35
45
|
"type": "boolean",
|
|
36
46
|
"description": "Whether the bridge may write."
|
|
@@ -75,7 +85,7 @@
|
|
|
75
85
|
},
|
|
76
86
|
{
|
|
77
87
|
"name": "ChannelNotFound",
|
|
78
|
-
"description": "A link names a channel this community does not have."
|
|
88
|
+
"description": "A link or open channel names a channel this community does not have."
|
|
79
89
|
},
|
|
80
90
|
{
|
|
81
91
|
"name": "CredentialsUnavailable",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"social.colibri.beta.bridge.createPairing",
|
|
16
16
|
"social.colibri.beta.bridge.getConfiguration",
|
|
17
17
|
"social.colibri.beta.bridge.putRemoteRooms",
|
|
18
|
+
"social.colibri.beta.bridge.listChannels",
|
|
18
19
|
"social.colibri.beta.bridge.uploadBlob",
|
|
19
20
|
"social.colibri.beta.bridge.postMessage",
|
|
20
21
|
"social.colibri.beta.bridge.editMessage",
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"social.colibri.beta.thread.moveMessages",
|
|
124
124
|
"social.colibri.beta.bridge.getPairing",
|
|
125
125
|
"social.colibri.beta.bridge.redeemPairing",
|
|
126
|
+
"social.colibri.beta.bridge.install",
|
|
126
127
|
"social.colibri.beta.bridge.listRegistrations",
|
|
127
128
|
"social.colibri.beta.bridge.update",
|
|
128
129
|
"social.colibri.beta.bridge.revoke",
|