55 name : MIT License
66 url : https://raw.githubusercontent.com/polyphony-chat/docs/refs/heads/main/LICENSE
77 version : v1.0-beta.1
8- tags : []
9- paths : {}
8+ tags :
9+ - name : Guild
10+ paths :
11+ /.p2/chat/v1/guilds :
12+ post :
13+ operationId : guilds_createGuild
14+ summary : Create new Guild
15+ parameters : []
16+ responses :
17+ ' 201 ' :
18+ description : The request has succeeded and a new resource has been created as a result.
19+ content :
20+ application/json :
21+ schema :
22+ $ref : ' #/components/schemas/models.guild.Guild'
23+ ' 400 ' :
24+ description : The server could not understand the request due to invalid syntax.
25+ content :
26+ text/plain :
27+ schema :
28+ type : string
29+ ' 401 ' :
30+ description : Access is unauthorized.
31+ ' 403 ' :
32+ description : Access is forbidden.
33+ tags :
34+ - Guild
35+ requestBody :
36+ required : true
37+ content :
38+ application/json :
39+ schema :
40+ type : object
41+ properties :
42+ name :
43+ type : string
44+ description :
45+ type : string
46+ private :
47+ type : boolean
48+ required :
49+ - name
50+ - private
51+ security :
52+ - BearerAuth : []
53+ get :
54+ operationId : guilds_getGuildInformation
55+ summary : Get Guild Information
56+ parameters :
57+ - name : guild_id
58+ in : query
59+ required : true
60+ schema :
61+ type : string
62+ explode : false
63+ responses :
64+ ' 201 ' :
65+ description : The request has succeeded and a new resource has been created as a result.
66+ content :
67+ application/json :
68+ schema :
69+ $ref : ' #/components/schemas/models.guild.Guild'
70+ ' 404 ' :
71+ description : The server cannot find the requested resource.
72+ tags :
73+ - Guild
74+ security :
75+ - BearerAuth : []
1076components :
1177 schemas :
12- Models.Actor :
78+ Version :
79+ type : string
80+ enum :
81+ - v0.1.0-alpha.0
82+ - v1.0-beta.1
83+ models.actor.Actor :
1384 type : object
1485 required :
1586 - fid
@@ -27,19 +98,19 @@ components:
2798 type : string
2899 format : uri
29100 availability :
30- $ref : ' #/components/schemas/Models .Availability'
101+ $ref : ' #/components/schemas/models.actor .Availability'
31102 status :
32103 type : string
33104 timezone :
34105 type : string
35- Models .Availability :
106+ models.actor .Availability :
36107 type : number
37108 enum :
38109 - 0
39110 - 1
40111 - 2
41112 - 3
42- Models .Channel :
113+ models.channel .Channel :
43114 type : object
44115 required :
45116 - id
@@ -49,23 +120,23 @@ components:
49120 type : string
50121 data :
51122 anyOf :
52- - $ref : ' #/components/schemas/Models .ChannelData'
123+ - $ref : ' #/components/schemas/models.channel .ChannelData'
53124 - type : object
54125 required :
55126 - data
56127 - mls_epoch_number
57128 - mls_group_id
58129 properties :
59130 data :
60- $ref : ' #/components/schemas/Models .ChannelData'
131+ $ref : ' #/components/schemas/models.channel .ChannelData'
61132 mls_epoch_number :
62133 type : integer
63134 format : uint64
64135 mls_group_id :
65136 type : string
66137 _padding :
67138 type : string
68- Models .ChannelData :
139+ models.channel .ChannelData :
69140 type : object
70141 required :
71142 - parent_id
@@ -89,30 +160,13 @@ components:
89160 type : string
90161 permissions :
91162 type : string
92- Models .ChannelType :
163+ models.channel .ChannelType :
93164 type : number
94165 enum :
95166 - 1
96- Models.Embed :
97- type : object
98- required :
99- - title
100- - content
101- properties :
102- title :
103- type : string
104- subtitle :
105- type : string
106- color :
107- type : string
108- content :
109- type : string
110- attachments :
111- type : array
112- items :
113- type : string
114- format : uri
115- Models.Guild :
167+ - 2
168+ - 3
169+ models.guild.Guild :
116170 type : object
117171 required :
118172 - id
@@ -134,7 +188,26 @@ components:
134188 created_at :
135189 type : string
136190 format : date-time
137- Models.Message :
191+ models.message.Embed :
192+ type : object
193+ required :
194+ - title
195+ - content
196+ properties :
197+ title :
198+ type : string
199+ subtitle :
200+ type : string
201+ color :
202+ type : string
203+ content :
204+ type : string
205+ attachments :
206+ type : array
207+ items :
208+ type : string
209+ format : uri
210+ models.message.Message :
138211 type : object
139212 required :
140213 - version
@@ -164,14 +237,14 @@ components:
164237 embeds :
165238 type : array
166239 items :
167- $ref : ' #/components/schemas/Models .Embed'
240+ $ref : ' #/components/schemas/models.message .Embed'
168241 reactions :
169242 type : array
170243 items :
171- $ref : ' #/components/schemas/Models .Reaction'
244+ $ref : ' #/components/schemas/models.message .Reaction'
172245 signature :
173246 type : string
174- Models .Reaction :
247+ models.message .Reaction :
175248 type : object
176249 required :
177250 - emoji
@@ -181,10 +254,10 @@ components:
181254 type : string
182255 fid :
183256 type : string
184- Version :
185- type : string
186- enum :
187- - v1.0-beta.1
257+ securitySchemes :
258+ BearerAuth :
259+ type : http
260+ scheme : Bearer
188261servers :
189262 - url : https://example.com
190263 description : Example endpoint
0 commit comments