-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
233 lines (233 loc) · 9.25 KB
/
Copy pathopenapi.yaml
File metadata and controls
233 lines (233 loc) · 9.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
openapi: 3.1.2
info:
title: Univer Workspace API
version: 0.1.0
summary: Product HTTP interface for the Univer Workspace collaboration example.
description: |
This contract exposes product concepts such as users, spaces, Nodes,
Resources, trash batches, grants, operations, and worktrees. Univer
Collaboration protocol endpoints are configured separately and are not
redefined here.
servers:
- url: /
tags:
- name: Session
description: Browser login session bootstrap and logout.
- name: Authentication
description: Password, GitHub, Discord, and CLI browser authorization methods.
- name: Users
description: Current User profile and User discovery.
- name: Spaces
description: Personal and Team Space discovery and metadata.
- name: Nodes
description: Workspace tree browsing and modification.
- name: Operations
description: Durable cross-module operation progress and retry.
- name: Resources
description: Resource creation, metadata, and editor opening.
- name: Blobs
description: Blob upload sessions, publication, preview bytes, and downloads.
- name: Views
description: Recent and Shared With Me projections.
- name: Trash
description: Recoverable Trash Batch lifecycle.
- name: Membership
description: Team Space membership management.
- name: Sharing
description: Personal Space Direct Share management.
- name: Worktrees
description: Isolated collaborative draft and merge workflows.
security:
- sessionCookie: []
paths:
/api/session:
$ref: ./paths/auth.yaml#/~1api~1session
/api/auth/authorize:
$ref: ./paths/auth.yaml#/~1api~1auth~1authorize
/api/auth/token:
$ref: ./paths/auth.yaml#/~1api~1auth~1token
/api/auth/logout:
$ref: ./paths/auth.yaml#/~1api~1auth~1logout
/api/auth/password/register:
$ref: ./paths/auth.yaml#/~1api~1auth~1password~1register
/api/auth/password/login:
$ref: ./paths/auth.yaml#/~1api~1auth~1password~1login
/api/auth/password:
$ref: ./paths/auth.yaml#/~1api~1auth~1password
/api/auth/cli/authorizations:
$ref: ./paths/auth.yaml#/~1api~1auth~1cli~1authorizations
/api/auth/cli/authorizations/approve:
$ref: ./paths/auth.yaml#/~1api~1auth~1cli~1authorizations~1approve
/api/auth/cli/authorizations/exchange:
$ref: ./paths/auth.yaml#/~1api~1auth~1cli~1authorizations~1exchange
/api/auth/github/login:
$ref: ./paths/auth.yaml#/~1api~1auth~1github~1login
/api/auth/github/link:
$ref: ./paths/auth.yaml#/~1api~1auth~1github~1link
/api/auth/github/callback:
$ref: ./paths/auth.yaml#/~1api~1auth~1github~1callback
/api/auth/github:
$ref: ./paths/auth.yaml#/~1api~1auth~1github
/api/auth/discord/login:
$ref: ./paths/auth.yaml#/~1api~1auth~1discord~1login
/api/auth/discord/bot-login:
$ref: ./paths/auth.yaml#/~1api~1auth~1discord~1bot-login
/api/auth/discord/link:
$ref: ./paths/auth.yaml#/~1api~1auth~1discord~1link
/api/auth/discord/callback:
$ref: ./paths/auth.yaml#/~1api~1auth~1discord~1callback
/api/auth/discord:
$ref: ./paths/auth.yaml#/~1api~1auth~1discord
/api/users/me:
$ref: ./paths/auth.yaml#/~1api~1users~1me
/api/users/search:
$ref: ./paths/permissions.yaml#/~1api~1users~1search
/api/spaces:
$ref: ./paths/spaces.yaml#/~1api~1spaces
/api/team-spaces:
$ref: ./paths/spaces.yaml#/~1api~1team-spaces
/api/spaces/{spaceId}:
$ref: ./paths/spaces.yaml#/~1api~1spaces~1{spaceId}
/api/spaces/{spaceId}/nodes:
$ref: ./paths/nodes.yaml#/~1api~1spaces~1{spaceId}~1nodes
/api/nodes:
$ref: ./paths/nodes.yaml#/~1api~1nodes
/api/nodes/{nodeId}:
$ref: ./paths/nodes.yaml#/~1api~1nodes~1{nodeId}
/api/nodes/{nodeId}/children:
$ref: ./paths/nodes.yaml#/~1api~1nodes~1{nodeId}~1children
/api/operations/{operationId}:
$ref: ./paths/operations.yaml#/~1api~1operations~1{operationId}
/api/operations/{operationId}/retry:
$ref: ./paths/operations.yaml#/~1api~1operations~1{operationId}~1retry
/api/resources:
$ref: ./paths/resources.yaml#/~1api~1resources
/api/resources/{resourceId}:
$ref: ./paths/resources.yaml#/~1api~1resources~1{resourceId}
/api/unit-resources/{unitId}:
$ref: ./paths/resources.yaml#/~1api~1unit-resources~1{unitId}
/api/resources/{resourceId}/open:
$ref: ./paths/resources.yaml#/~1api~1resources~1{resourceId}~1open
/api/blob-upload-sessions:
$ref: ./paths/blobs.yaml#/~1api~1blob-upload-sessions
/api/blob-upload-sessions/{uploadId}:
$ref: ./paths/blobs.yaml#/~1api~1blob-upload-sessions~1{uploadId}
/api/blob-upload-sessions/{uploadId}/content:
$ref: ./paths/blobs.yaml#/~1api~1blob-upload-sessions~1{uploadId}~1content
/api/blob-upload-sessions/{uploadId}/complete:
$ref: ./paths/blobs.yaml#/~1api~1blob-upload-sessions~1{uploadId}~1complete
/api/blob-resources/{resourceId}/content:
$ref: ./paths/blobs.yaml#/~1api~1blob-resources~1{resourceId}~1content
/api/blob-resources/{resourceId}/download:
$ref: ./paths/blobs.yaml#/~1api~1blob-resources~1{resourceId}~1download
/api/recent-resources:
$ref: ./paths/views.yaml#/~1api~1recent-resources
/api/owned-by-me:
$ref: ./paths/views.yaml#/~1api~1owned-by-me
/api/shared-with-me:
$ref: ./paths/views.yaml#/~1api~1shared-with-me
/api/nodes/{nodeId}/trash:
$ref: ./paths/trash.yaml#/~1api~1nodes~1{nodeId}~1trash
/api/spaces/{spaceId}/trash:
$ref: ./paths/trash.yaml#/~1api~1spaces~1{spaceId}~1trash
/api/trash-batches/{trashBatchId}/restore:
$ref: ./paths/trash.yaml#/~1api~1trash-batches~1{trashBatchId}~1restore
/api/trash-batches/{trashBatchId}:
$ref: ./paths/trash.yaml#/~1api~1trash-batches~1{trashBatchId}
/api/team-spaces/{spaceId}/members:
$ref: ./paths/permissions.yaml#/~1api~1team-spaces~1{spaceId}~1members
/api/team-spaces/{spaceId}/members/{userId}:
$ref: ./paths/permissions.yaml#/~1api~1team-spaces~1{spaceId}~1members~1{userId}
/api/nodes/{nodeId}/grants:
$ref: ./paths/permissions.yaml#/~1api~1nodes~1{nodeId}~1grants
/api/nodes/{nodeId}/grants/{userId}:
$ref: ./paths/permissions.yaml#/~1api~1nodes~1{nodeId}~1grants~1{userId}
/api/nodes/{nodeId}/link-sharing:
$ref: ./paths/permissions.yaml#/~1api~1nodes~1{nodeId}~1link-sharing
/api/worktrees:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees
/api/worktrees/{worktreeId}:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}
/api/worktrees/{worktreeId}/units:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1units
/api/worktrees/{worktreeId}/units/{unitId}/open:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1units~1{unitId}~1open
/api/worktrees/{worktreeId}/units/{unitId}/changesets:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1units~1{unitId}~1changesets
/api/worktrees/{worktreeId}/ready:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1ready
/api/worktrees/{worktreeId}/reopen:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1reopen
/api/worktrees/{worktreeId}/merge:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1merge
/api/worktrees/{worktreeId}/discard:
$ref: ./paths/worktrees.yaml#/~1api~1worktrees~1{worktreeId}~1discard
components:
securitySchemes:
sessionCookie:
type: apiKey
in: cookie
name: workspace_session
description: Opaque HttpOnly login session cookie.
discordBotApiKey:
type: apiKey
in: header
name: x-api-key
description: Shared secret configured on Workspace and the trusted Discord Bot server.
schemas:
Error:
$ref: ./schemas/common.yaml#/Error
ErrorResponse:
$ref: ./schemas/common.yaml#/ErrorResponse
User:
$ref: ./schemas/identity.yaml#/User
PublicUser:
$ref: ./schemas/identity.yaml#/PublicUser
SessionView:
$ref: ./schemas/identity.yaml#/SessionView
SpaceView:
$ref: ./schemas/spaces.yaml#/SpaceView
NodeSummary:
$ref: ./schemas/nodes.yaml#/NodeSummary
NodePage:
$ref: ./schemas/nodes.yaml#/NodePage
OperationView:
$ref: ./schemas/operations.yaml#/OperationView
ResourceOpenView:
$ref: ./schemas/resources.yaml#/ResourceOpenView
BlobUploadSessionEnvelope:
$ref: ./schemas/blobs.yaml#/BlobUploadSessionEnvelope
TrashBatchView:
$ref: ./schemas/views.yaml#/TrashBatchView
TeamMembership:
$ref: ./schemas/permissions.yaml#/TeamMembership
NodeGrant:
$ref: ./schemas/permissions.yaml#/NodeGrant
NodeLinkSharing:
$ref: ./schemas/permissions.yaml#/NodeLinkSharing
WorktreeSummary:
$ref: ./schemas/worktrees.yaml#/WorktreeSummary
WorktreeDetail:
$ref: ./schemas/worktrees.yaml#/WorktreeDetail
parameters:
Cursor:
$ref: ./schemas/common.yaml#/CursorParameter
Limit:
$ref: ./schemas/common.yaml#/LimitParameter
IdempotencyKey:
$ref: ./schemas/common.yaml#/IdempotencyKeyParameter
responses:
BadRequest:
$ref: ./schemas/common.yaml#/BadRequest
Unauthorized:
$ref: ./schemas/common.yaml#/Unauthorized
Forbidden:
$ref: ./schemas/common.yaml#/Forbidden
NotFound:
$ref: ./schemas/common.yaml#/NotFound
Conflict:
$ref: ./schemas/common.yaml#/Conflict
PayloadTooLarge:
$ref: ./schemas/common.yaml#/PayloadTooLarge
RangeNotSatisfiable:
$ref: ./schemas/common.yaml#/RangeNotSatisfiable