social.colibri.beta.bridge.postMessage
Schema Diff
+5 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 4 non-breaking changes.
Non-Breaking Changes (4)
- AddedVertex AddedVertex { vertex_id: "social.colibri.beta.bridge.postMessage:input.forward" }
- AddedVertex AddedVertex { vertex_id: "social.colibri.beta.message#forward" }
- AddedEdge AddedEdge { src: "social.colibri.beta.bridge.postMessage:input", tgt: "social.colibri.beta.bridge.postMessage:input.forward", kind: "prop", name: Some("forward") }
- AddedEdge AddedEdge { src: "social.colibri.beta.bridge.postMessage:input.forward", tgt: "social.colibri.beta.message#forward", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "social.colibri.beta.bridge.postMessage:input.forward" }AddedVertex { vertex_id: "social.colibri.beta.message#forward" }
Additional Notes
- Non-breaking: AddedEdge { src: "social.colibri.beta.bridge.postMessage:input", tgt: "social.colibri.beta.bridge.postMessage:input.forward", kind: "prop", name: Some("forward") }
- Non-breaking: AddedEdge { src: "social.colibri.beta.bridge.postMessage:input.forward", tgt: "social.colibri.beta.message#forward", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Posts a message from someone on another service into a linked channel. The community writes the message, attributed to that person.",
6
6
"errors": [
7
7
{
8
8
"description": "The request is missing, malformed, or unverifiable service auth.",
9
9
"name": "AuthRequired"
10
10
},
11
11
{
12
12
"description": "No community exists at the given DID.",
13
13
"name": "CommunityNotFound"
14
14
},
15
15
{
16
16
"description": "The community has no bridge registration with that id.",
17
17
"name": "RegistrationNotFound"
18
18
},
19
19
{
20
20
"description": "The caller is not the bridge this registration belongs to.",
21
21
"name": "Forbidden"
22
22
},
23
23
{
24
24
"description": "An admin has paused this registration.",
25
25
"name": "RegistrationDisabled"
26
26
},
27
27
{
28
28
"description": "The channel is not linked to this registration.",
29
29
"name": "ChannelNotLinked"
30
30
},
31
31
{
32
32
"description": "The bridge sent too many requests. Retry after the interval in the response headers.",
33
33
"name": "RateLimited"
34
34
},
35
35
{
36
36
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
37
37
"name": "CredentialsUnavailable"
38
38
}
39
39
],
40
40
"input": {
41
41
"encoding": "application/json",
42
42
"schema": {
43
43
"properties": {
44
44
"attachments": {
45
45
"description": "Files attached to the message.",
46
46
"items": {
47
47
"description": "A file uploaded earlier with uploadBlob.",
48
48
"ref": "social.colibri.beta.message#attachment",
49
49
"type": "ref"
50
50
},
51
51
"maxLength": 10,
52
52
"type": "array"
53
53
},
54
54
"author": {
55
55
"description": "Who sent the message.",
56
56
"ref": "social.colibri.beta.bridge.defs#remoteAuthor",
57
57
"type": "ref"
58
58
},
59
59
"channel": {
60
60
"description": "The linked channel or thread the record lives in.",
61
61
"format": "space-ref",
62
62
"type": "string"
63
63
},
64
64
"community": {
65
65
"description": "The community the registration belongs to.",
66
66
"format": "did",
67
67
"type": "string"
68
68
},
69
69
"createdAt": {
70
70
"description": "When the message was sent on the other service. Defaults to now.",
71
71
"format": "datetime",
72
72
"type": "string"
73
73
},
74
74
"facets": {
75
75
"description": "Annotations over ranges of the text.",
76
76
"items": {
77
77
"description": "An annotation.",
78
78
"ref": "social.colibri.beta.richtext.facet",
79
79
"type": "ref"
80
80
},
81
81
"type": "array"
82
82
},
83
+
"forward": {
84
+
"description": "Content forwarded from another Colibri message.",
85
+
"ref": "social.colibri.beta.message#forward",
86
+
"type": "ref"
87
+
},
83
88
"parent": {
84
89
"description": "The message this one replies to.",
85
90
"ref": "social.colibri.beta.defs#recordRef",
86
91
"type": "ref"
87
92
},
88
93
"registration": {
89
94
"description": "Record key of the registration.",
90
95
"format": "tid",
91
96
"type": "string"
92
97
},
93
98
"remoteMessage": {
94
99
"description": "The message's id on the other service.",
95
100
"maxLength": 256,
96
101
"type": "string"
97
102
},
98
103
"text": {
99
104
"description": "The message body.",
100
105
"maxLength": 2048,
101
106
"type": "string"
102
107
}
103
108
},
104
109
"required": [
105
110
"community",
106
111
"registration",
107
112
"channel",
108
113
"author",
109
114
"text"
110
115
],
111
116
"type": "object"
112
117
}
113
118
},
114
119
"output": {
115
120
"encoding": "application/json",
116
121
"schema": {
117
122
"properties": {
118
123
"rkey": {
119
124
"description": "Record key of the record the community wrote.",
120
125
"format": "record-key",
121
126
"type": "string"
122
127
}
123
128
},
124
129
"required": [
125
130
"rkey"
126
131
],
127
132
"type": "object"
128
133
}
129
134
},
130
135
"type": "procedure"
131
136
}
132
137
},
133
138
"id": "social.colibri.beta.bridge.postMessage",
134
139
"lexicon": 1
135
140
}