apidocs.swagger.yaml 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242
  1. swagger: "2.0"
  2. info:
  3. title: api/v1/activity_service.proto
  4. version: version not set
  5. tags:
  6. - name: ActivityService
  7. - name: UserService
  8. - name: AuthService
  9. - name: IdentityProviderService
  10. - name: InboxService
  11. - name: MarkdownService
  12. - name: ResourceService
  13. - name: MemoService
  14. - name: WebhookService
  15. - name: WorkspaceService
  16. - name: WorkspaceSettingService
  17. consumes:
  18. - application/json
  19. produces:
  20. - application/json
  21. paths:
  22. /api/v1/activities/{id}:
  23. get:
  24. summary: GetActivity returns the activity with the given id.
  25. operationId: ActivityService_GetActivity
  26. responses:
  27. "200":
  28. description: A successful response.
  29. schema:
  30. $ref: '#/definitions/v1Activity'
  31. default:
  32. description: An unexpected error response.
  33. schema:
  34. $ref: '#/definitions/googlerpcStatus'
  35. parameters:
  36. - name: id
  37. description: The system-generated unique identifier for the activity.
  38. in: path
  39. required: true
  40. type: integer
  41. format: int32
  42. tags:
  43. - ActivityService
  44. /api/v1/auth/signin:
  45. post:
  46. summary: SignIn signs in the user with the given username and password.
  47. operationId: AuthService_SignIn
  48. responses:
  49. "200":
  50. description: A successful response.
  51. schema:
  52. $ref: '#/definitions/v1User'
  53. default:
  54. description: An unexpected error response.
  55. schema:
  56. $ref: '#/definitions/googlerpcStatus'
  57. parameters:
  58. - name: username
  59. description: The username to sign in with.
  60. in: query
  61. required: false
  62. type: string
  63. - name: password
  64. description: The password to sign in with.
  65. in: query
  66. required: false
  67. type: string
  68. - name: neverExpire
  69. description: Whether the session should never expire.
  70. in: query
  71. required: false
  72. type: boolean
  73. tags:
  74. - AuthService
  75. /api/v1/auth/signin/sso:
  76. post:
  77. summary: SignInWithSSO signs in the user with the given SSO code.
  78. operationId: AuthService_SignInWithSSO
  79. responses:
  80. "200":
  81. description: A successful response.
  82. schema:
  83. $ref: '#/definitions/v1User'
  84. default:
  85. description: An unexpected error response.
  86. schema:
  87. $ref: '#/definitions/googlerpcStatus'
  88. parameters:
  89. - name: idpId
  90. description: The ID of the SSO provider.
  91. in: query
  92. required: false
  93. type: integer
  94. format: int32
  95. - name: code
  96. description: The code to sign in with.
  97. in: query
  98. required: false
  99. type: string
  100. - name: redirectUri
  101. description: The redirect URI.
  102. in: query
  103. required: false
  104. type: string
  105. tags:
  106. - AuthService
  107. /api/v1/auth/signout:
  108. post:
  109. summary: SignOut signs out the user.
  110. operationId: AuthService_SignOut
  111. responses:
  112. "200":
  113. description: A successful response.
  114. schema:
  115. type: object
  116. properties: {}
  117. default:
  118. description: An unexpected error response.
  119. schema:
  120. $ref: '#/definitions/googlerpcStatus'
  121. tags:
  122. - AuthService
  123. /api/v1/auth/signup:
  124. post:
  125. summary: SignUp signs up the user with the given username and password.
  126. operationId: AuthService_SignUp
  127. responses:
  128. "200":
  129. description: A successful response.
  130. schema:
  131. $ref: '#/definitions/v1User'
  132. default:
  133. description: An unexpected error response.
  134. schema:
  135. $ref: '#/definitions/googlerpcStatus'
  136. parameters:
  137. - name: username
  138. description: The username to sign up with.
  139. in: query
  140. required: false
  141. type: string
  142. - name: password
  143. description: The password to sign up with.
  144. in: query
  145. required: false
  146. type: string
  147. tags:
  148. - AuthService
  149. /api/v1/auth/status:
  150. post:
  151. summary: GetAuthStatus returns the current auth status of the user.
  152. operationId: AuthService_GetAuthStatus
  153. responses:
  154. "200":
  155. description: A successful response.
  156. schema:
  157. $ref: '#/definitions/v1User'
  158. default:
  159. description: An unexpected error response.
  160. schema:
  161. $ref: '#/definitions/googlerpcStatus'
  162. tags:
  163. - AuthService
  164. /api/v1/identityProviders:
  165. get:
  166. summary: ListIdentityProviders lists identity providers.
  167. operationId: IdentityProviderService_ListIdentityProviders
  168. responses:
  169. "200":
  170. description: A successful response.
  171. schema:
  172. $ref: '#/definitions/v1ListIdentityProvidersResponse'
  173. default:
  174. description: An unexpected error response.
  175. schema:
  176. $ref: '#/definitions/googlerpcStatus'
  177. tags:
  178. - IdentityProviderService
  179. post:
  180. summary: CreateIdentityProvider creates an identity provider.
  181. operationId: IdentityProviderService_CreateIdentityProvider
  182. responses:
  183. "200":
  184. description: A successful response.
  185. schema:
  186. $ref: '#/definitions/apiv1IdentityProvider'
  187. default:
  188. description: An unexpected error response.
  189. schema:
  190. $ref: '#/definitions/googlerpcStatus'
  191. parameters:
  192. - name: identityProvider
  193. description: The identityProvider to create.
  194. in: body
  195. required: true
  196. schema:
  197. $ref: '#/definitions/apiv1IdentityProvider'
  198. tags:
  199. - IdentityProviderService
  200. /api/v1/inboxes:
  201. get:
  202. summary: ListInboxes lists inboxes for a user.
  203. operationId: InboxService_ListInboxes
  204. responses:
  205. "200":
  206. description: A successful response.
  207. schema:
  208. $ref: '#/definitions/v1ListInboxesResponse'
  209. default:
  210. description: An unexpected error response.
  211. schema:
  212. $ref: '#/definitions/googlerpcStatus'
  213. parameters:
  214. - name: user
  215. description: 'Format: users/{id}'
  216. in: query
  217. required: false
  218. type: string
  219. tags:
  220. - InboxService
  221. /api/v1/markdown/link:metadata:
  222. get:
  223. summary: GetLinkMetadata returns metadata for a given link.
  224. operationId: MarkdownService_GetLinkMetadata
  225. responses:
  226. "200":
  227. description: A successful response.
  228. schema:
  229. $ref: '#/definitions/v1LinkMetadata'
  230. default:
  231. description: An unexpected error response.
  232. schema:
  233. $ref: '#/definitions/googlerpcStatus'
  234. parameters:
  235. - name: link
  236. in: query
  237. required: false
  238. type: string
  239. tags:
  240. - MarkdownService
  241. /api/v1/markdown/node:restore:
  242. post:
  243. summary: RestoreMarkdownNodes restores the given nodes to markdown content.
  244. operationId: MarkdownService_RestoreMarkdownNodes
  245. responses:
  246. "200":
  247. description: A successful response.
  248. schema:
  249. $ref: '#/definitions/v1RestoreMarkdownNodesResponse'
  250. default:
  251. description: An unexpected error response.
  252. schema:
  253. $ref: '#/definitions/googlerpcStatus'
  254. parameters:
  255. - name: body
  256. in: body
  257. required: true
  258. schema:
  259. $ref: '#/definitions/v1RestoreMarkdownNodesRequest'
  260. tags:
  261. - MarkdownService
  262. /api/v1/markdown/node:stringify:
  263. post:
  264. summary: StringifyMarkdownNodes stringify the given nodes to plain text content.
  265. operationId: MarkdownService_StringifyMarkdownNodes
  266. responses:
  267. "200":
  268. description: A successful response.
  269. schema:
  270. $ref: '#/definitions/v1StringifyMarkdownNodesResponse'
  271. default:
  272. description: An unexpected error response.
  273. schema:
  274. $ref: '#/definitions/googlerpcStatus'
  275. parameters:
  276. - name: body
  277. in: body
  278. required: true
  279. schema:
  280. $ref: '#/definitions/v1StringifyMarkdownNodesRequest'
  281. tags:
  282. - MarkdownService
  283. /api/v1/markdown:parse:
  284. post:
  285. summary: ParseMarkdown parses the given markdown content and returns a list of nodes.
  286. operationId: MarkdownService_ParseMarkdown
  287. responses:
  288. "200":
  289. description: A successful response.
  290. schema:
  291. $ref: '#/definitions/v1ParseMarkdownResponse'
  292. default:
  293. description: An unexpected error response.
  294. schema:
  295. $ref: '#/definitions/googlerpcStatus'
  296. parameters:
  297. - name: body
  298. in: body
  299. required: true
  300. schema:
  301. $ref: '#/definitions/v1ParseMarkdownRequest'
  302. tags:
  303. - MarkdownService
  304. /api/v1/memos:
  305. get:
  306. summary: ListMemos lists memos with pagination and filter.
  307. operationId: MemoService_ListMemos
  308. responses:
  309. "200":
  310. description: A successful response.
  311. schema:
  312. $ref: '#/definitions/v1ListMemosResponse'
  313. default:
  314. description: An unexpected error response.
  315. schema:
  316. $ref: '#/definitions/googlerpcStatus'
  317. parameters:
  318. - name: pageSize
  319. description: The maximum number of memos to return.
  320. in: query
  321. required: false
  322. type: integer
  323. format: int32
  324. - name: pageToken
  325. description: |-
  326. A page token, received from a previous `ListMemos` call.
  327. Provide this to retrieve the subsequent page.
  328. in: query
  329. required: false
  330. type: string
  331. - name: filter
  332. description: |-
  333. Filter is used to filter memos returned in the list.
  334. Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
  335. in: query
  336. required: false
  337. type: string
  338. tags:
  339. - MemoService
  340. post:
  341. summary: CreateMemo creates a memo.
  342. operationId: MemoService_CreateMemo
  343. responses:
  344. "200":
  345. description: A successful response.
  346. schema:
  347. $ref: '#/definitions/v1Memo'
  348. default:
  349. description: An unexpected error response.
  350. schema:
  351. $ref: '#/definitions/googlerpcStatus'
  352. parameters:
  353. - name: body
  354. in: body
  355. required: true
  356. schema:
  357. $ref: '#/definitions/v1CreateMemoRequest'
  358. tags:
  359. - MemoService
  360. /api/v1/memos/stats:
  361. get:
  362. summary: GetUserMemosStats gets stats of memos for a user.
  363. operationId: MemoService_GetUserMemosStats
  364. responses:
  365. "200":
  366. description: A successful response.
  367. schema:
  368. $ref: '#/definitions/v1GetUserMemosStatsResponse'
  369. default:
  370. description: An unexpected error response.
  371. schema:
  372. $ref: '#/definitions/googlerpcStatus'
  373. parameters:
  374. - name: name
  375. description: |-
  376. name is the name of the user to get stats for.
  377. Format: users/{id}
  378. in: query
  379. required: false
  380. type: string
  381. - name: timezone
  382. description: |-
  383. timezone location
  384. Format: uses tz identifier
  385. https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  386. in: query
  387. required: false
  388. type: string
  389. - name: filter
  390. description: Same as ListMemosRequest.filter
  391. in: query
  392. required: false
  393. type: string
  394. tags:
  395. - MemoService
  396. /api/v1/memos:by-uid/{uid}:
  397. get:
  398. summary: GetMemoByUid gets a memo by uid
  399. operationId: MemoService_GetMemoByUid
  400. responses:
  401. "200":
  402. description: A successful response.
  403. schema:
  404. $ref: '#/definitions/v1Memo'
  405. default:
  406. description: An unexpected error response.
  407. schema:
  408. $ref: '#/definitions/googlerpcStatus'
  409. parameters:
  410. - name: uid
  411. description: The uid of the memo.
  412. in: path
  413. required: true
  414. type: string
  415. tags:
  416. - MemoService
  417. /api/v1/memos:export:
  418. post:
  419. summary: ExportMemos exports memos.
  420. operationId: MemoService_ExportMemos
  421. responses:
  422. "200":
  423. description: A successful response.
  424. schema:
  425. $ref: '#/definitions/v1ExportMemosResponse'
  426. default:
  427. description: An unexpected error response.
  428. schema:
  429. $ref: '#/definitions/googlerpcStatus'
  430. parameters:
  431. - name: body
  432. in: body
  433. required: true
  434. schema:
  435. $ref: '#/definitions/v1ExportMemosRequest'
  436. tags:
  437. - MemoService
  438. /api/v1/memos:search:
  439. get:
  440. summary: SearchMemos searches memos.
  441. operationId: MemoService_SearchMemos
  442. responses:
  443. "200":
  444. description: A successful response.
  445. schema:
  446. $ref: '#/definitions/v1SearchMemosResponse'
  447. default:
  448. description: An unexpected error response.
  449. schema:
  450. $ref: '#/definitions/googlerpcStatus'
  451. parameters:
  452. - name: filter
  453. description: |-
  454. Filter is used to filter memos returned.
  455. Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
  456. in: query
  457. required: false
  458. type: string
  459. tags:
  460. - MemoService
  461. /api/v1/reactions/{reactionId}:
  462. delete:
  463. summary: DeleteMemoReaction deletes a reaction for a memo.
  464. operationId: MemoService_DeleteMemoReaction
  465. responses:
  466. "200":
  467. description: A successful response.
  468. schema:
  469. type: object
  470. properties: {}
  471. default:
  472. description: An unexpected error response.
  473. schema:
  474. $ref: '#/definitions/googlerpcStatus'
  475. parameters:
  476. - name: reactionId
  477. in: path
  478. required: true
  479. type: integer
  480. format: int32
  481. tags:
  482. - MemoService
  483. /api/v1/resources:
  484. get:
  485. summary: ListResources lists all resources.
  486. operationId: ResourceService_ListResources
  487. responses:
  488. "200":
  489. description: A successful response.
  490. schema:
  491. $ref: '#/definitions/v1ListResourcesResponse'
  492. default:
  493. description: An unexpected error response.
  494. schema:
  495. $ref: '#/definitions/googlerpcStatus'
  496. tags:
  497. - ResourceService
  498. post:
  499. summary: CreateResource creates a new resource.
  500. operationId: ResourceService_CreateResource
  501. responses:
  502. "200":
  503. description: A successful response.
  504. schema:
  505. $ref: '#/definitions/v1Resource'
  506. default:
  507. description: An unexpected error response.
  508. schema:
  509. $ref: '#/definitions/googlerpcStatus'
  510. parameters:
  511. - name: resource
  512. in: body
  513. required: true
  514. schema:
  515. $ref: '#/definitions/v1Resource'
  516. tags:
  517. - ResourceService
  518. /api/v1/resources:by-uid/{uid}:
  519. get:
  520. summary: GetResourceByUid returns a resource by uid.
  521. operationId: ResourceService_GetResourceByUid
  522. responses:
  523. "200":
  524. description: A successful response.
  525. schema:
  526. $ref: '#/definitions/v1Resource'
  527. default:
  528. description: An unexpected error response.
  529. schema:
  530. $ref: '#/definitions/googlerpcStatus'
  531. parameters:
  532. - name: uid
  533. description: The uid of the resource.
  534. in: path
  535. required: true
  536. type: string
  537. tags:
  538. - ResourceService
  539. /api/v1/resources:search:
  540. get:
  541. summary: SearchResources searches memos.
  542. operationId: ResourceService_SearchResources
  543. responses:
  544. "200":
  545. description: A successful response.
  546. schema:
  547. $ref: '#/definitions/v1SearchResourcesResponse'
  548. default:
  549. description: An unexpected error response.
  550. schema:
  551. $ref: '#/definitions/googlerpcStatus'
  552. parameters:
  553. - name: filter
  554. in: query
  555. required: false
  556. type: string
  557. tags:
  558. - ResourceService
  559. /api/v1/users:
  560. get:
  561. summary: ListUsers returns a list of users.
  562. operationId: UserService_ListUsers
  563. responses:
  564. "200":
  565. description: A successful response.
  566. schema:
  567. $ref: '#/definitions/v1ListUsersResponse'
  568. default:
  569. description: An unexpected error response.
  570. schema:
  571. $ref: '#/definitions/googlerpcStatus'
  572. tags:
  573. - UserService
  574. post:
  575. summary: CreateUser creates a new user.
  576. operationId: UserService_CreateUser
  577. responses:
  578. "200":
  579. description: A successful response.
  580. schema:
  581. $ref: '#/definitions/v1User'
  582. default:
  583. description: An unexpected error response.
  584. schema:
  585. $ref: '#/definitions/googlerpcStatus'
  586. parameters:
  587. - name: user
  588. in: body
  589. required: true
  590. schema:
  591. $ref: '#/definitions/v1User'
  592. tags:
  593. - UserService
  594. /api/v1/users:search:
  595. get:
  596. summary: SearchUsers searches users by filter.
  597. operationId: UserService_SearchUsers
  598. responses:
  599. "200":
  600. description: A successful response.
  601. schema:
  602. $ref: '#/definitions/v1SearchUsersResponse'
  603. default:
  604. description: An unexpected error response.
  605. schema:
  606. $ref: '#/definitions/googlerpcStatus'
  607. parameters:
  608. - name: filter
  609. description: |-
  610. Filter is used to filter users returned in the list.
  611. Format: "username == 'frank'"
  612. in: query
  613. required: false
  614. type: string
  615. tags:
  616. - UserService
  617. /api/v1/webhooks:
  618. get:
  619. summary: ListWebhooks returns a list of webhooks.
  620. operationId: WebhookService_ListWebhooks
  621. responses:
  622. "200":
  623. description: A successful response.
  624. schema:
  625. $ref: '#/definitions/v1ListWebhooksResponse'
  626. default:
  627. description: An unexpected error response.
  628. schema:
  629. $ref: '#/definitions/googlerpcStatus'
  630. parameters:
  631. - name: creatorId
  632. in: query
  633. required: false
  634. type: integer
  635. format: int32
  636. tags:
  637. - WebhookService
  638. post:
  639. summary: CreateWebhook creates a new webhook.
  640. operationId: WebhookService_CreateWebhook
  641. responses:
  642. "200":
  643. description: A successful response.
  644. schema:
  645. $ref: '#/definitions/v1Webhook'
  646. default:
  647. description: An unexpected error response.
  648. schema:
  649. $ref: '#/definitions/googlerpcStatus'
  650. parameters:
  651. - name: body
  652. in: body
  653. required: true
  654. schema:
  655. $ref: '#/definitions/v1CreateWebhookRequest'
  656. tags:
  657. - WebhookService
  658. /api/v1/webhooks/{id}:
  659. get:
  660. summary: GetWebhook returns a webhook by id.
  661. operationId: WebhookService_GetWebhook
  662. responses:
  663. "200":
  664. description: A successful response.
  665. schema:
  666. $ref: '#/definitions/v1Webhook'
  667. default:
  668. description: An unexpected error response.
  669. schema:
  670. $ref: '#/definitions/googlerpcStatus'
  671. parameters:
  672. - name: id
  673. in: path
  674. required: true
  675. type: integer
  676. format: int32
  677. tags:
  678. - WebhookService
  679. delete:
  680. summary: DeleteWebhook deletes a webhook by id.
  681. operationId: WebhookService_DeleteWebhook
  682. responses:
  683. "200":
  684. description: A successful response.
  685. schema:
  686. type: object
  687. properties: {}
  688. default:
  689. description: An unexpected error response.
  690. schema:
  691. $ref: '#/definitions/googlerpcStatus'
  692. parameters:
  693. - name: id
  694. in: path
  695. required: true
  696. type: integer
  697. format: int32
  698. tags:
  699. - WebhookService
  700. /api/v1/webhooks/{webhook.id}:
  701. patch:
  702. summary: UpdateWebhook updates a webhook.
  703. operationId: WebhookService_UpdateWebhook
  704. responses:
  705. "200":
  706. description: A successful response.
  707. schema:
  708. $ref: '#/definitions/v1Webhook'
  709. default:
  710. description: An unexpected error response.
  711. schema:
  712. $ref: '#/definitions/googlerpcStatus'
  713. parameters:
  714. - name: webhook.id
  715. in: path
  716. required: true
  717. type: integer
  718. format: int32
  719. - name: webhook
  720. in: body
  721. required: true
  722. schema:
  723. type: object
  724. properties:
  725. creatorId:
  726. type: integer
  727. format: int32
  728. createTime:
  729. type: string
  730. format: date-time
  731. updateTime:
  732. type: string
  733. format: date-time
  734. rowStatus:
  735. $ref: '#/definitions/v1RowStatus'
  736. name:
  737. type: string
  738. url:
  739. type: string
  740. tags:
  741. - WebhookService
  742. /api/v1/workspace/profile:
  743. get:
  744. summary: GetWorkspaceProfile returns the workspace profile.
  745. operationId: WorkspaceService_GetWorkspaceProfile
  746. responses:
  747. "200":
  748. description: A successful response.
  749. schema:
  750. $ref: '#/definitions/v1WorkspaceProfile'
  751. default:
  752. description: An unexpected error response.
  753. schema:
  754. $ref: '#/definitions/googlerpcStatus'
  755. tags:
  756. - WorkspaceService
  757. /api/v1/workspace/{name}:
  758. get:
  759. summary: GetWorkspaceSetting returns the setting by name.
  760. operationId: WorkspaceSettingService_GetWorkspaceSetting
  761. responses:
  762. "200":
  763. description: A successful response.
  764. schema:
  765. $ref: '#/definitions/apiv1WorkspaceSetting'
  766. default:
  767. description: An unexpected error response.
  768. schema:
  769. $ref: '#/definitions/googlerpcStatus'
  770. parameters:
  771. - name: name
  772. description: |-
  773. The resource name of the workspace setting.
  774. Format: settings/{setting}
  775. in: path
  776. required: true
  777. type: string
  778. pattern: settings/[^/]+
  779. tags:
  780. - WorkspaceSettingService
  781. /api/v1/workspace/{setting.name}:
  782. patch:
  783. summary: SetWorkspaceSetting updates the setting.
  784. operationId: WorkspaceSettingService_SetWorkspaceSetting
  785. responses:
  786. "200":
  787. description: A successful response.
  788. schema:
  789. $ref: '#/definitions/apiv1WorkspaceSetting'
  790. default:
  791. description: An unexpected error response.
  792. schema:
  793. $ref: '#/definitions/googlerpcStatus'
  794. parameters:
  795. - name: setting.name
  796. description: |-
  797. name is the name of the setting.
  798. Format: settings/{setting}
  799. in: path
  800. required: true
  801. type: string
  802. pattern: settings/[^/]+
  803. - name: setting
  804. description: setting is the setting to update.
  805. in: body
  806. required: true
  807. schema:
  808. type: object
  809. properties:
  810. generalSetting:
  811. $ref: '#/definitions/apiv1WorkspaceGeneralSetting'
  812. storageSetting:
  813. $ref: '#/definitions/apiv1WorkspaceStorageSetting'
  814. memoRelatedSetting:
  815. $ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
  816. title: setting is the setting to update.
  817. tags:
  818. - WorkspaceSettingService
  819. /api/v1/{identityProvider.name}:
  820. patch:
  821. summary: UpdateIdentityProvider updates an identity provider.
  822. operationId: IdentityProviderService_UpdateIdentityProvider
  823. responses:
  824. "200":
  825. description: A successful response.
  826. schema:
  827. $ref: '#/definitions/apiv1IdentityProvider'
  828. default:
  829. description: An unexpected error response.
  830. schema:
  831. $ref: '#/definitions/googlerpcStatus'
  832. parameters:
  833. - name: identityProvider.name
  834. description: |-
  835. The name of the identityProvider.
  836. Format: identityProviders/{id}
  837. in: path
  838. required: true
  839. type: string
  840. pattern: identityProviders/[^/]+
  841. - name: identityProvider
  842. description: The identityProvider to update.
  843. in: body
  844. required: true
  845. schema:
  846. type: object
  847. properties:
  848. type:
  849. $ref: '#/definitions/apiv1IdentityProviderType'
  850. title:
  851. type: string
  852. identifierFilter:
  853. type: string
  854. config:
  855. $ref: '#/definitions/apiv1IdentityProviderConfig'
  856. title: The identityProvider to update.
  857. tags:
  858. - IdentityProviderService
  859. /api/v1/{inbox.name}:
  860. patch:
  861. summary: UpdateInbox updates an inbox.
  862. operationId: InboxService_UpdateInbox
  863. responses:
  864. "200":
  865. description: A successful response.
  866. schema:
  867. $ref: '#/definitions/v1Inbox'
  868. default:
  869. description: An unexpected error response.
  870. schema:
  871. $ref: '#/definitions/googlerpcStatus'
  872. parameters:
  873. - name: inbox.name
  874. description: |-
  875. The name of the inbox.
  876. Format: inboxes/{id}
  877. in: path
  878. required: true
  879. type: string
  880. pattern: inboxes/[^/]+
  881. - name: inbox
  882. in: body
  883. required: true
  884. schema:
  885. type: object
  886. properties:
  887. sender:
  888. type: string
  889. title: 'Format: users/{id}'
  890. receiver:
  891. type: string
  892. title: 'Format: users/{id}'
  893. status:
  894. $ref: '#/definitions/v1InboxStatus'
  895. createTime:
  896. type: string
  897. format: date-time
  898. type:
  899. $ref: '#/definitions/v1InboxType'
  900. activityId:
  901. type: integer
  902. format: int32
  903. tags:
  904. - InboxService
  905. /api/v1/{memo.name}:
  906. patch:
  907. summary: UpdateMemo updates a memo.
  908. operationId: MemoService_UpdateMemo
  909. responses:
  910. "200":
  911. description: A successful response.
  912. schema:
  913. $ref: '#/definitions/v1Memo'
  914. default:
  915. description: An unexpected error response.
  916. schema:
  917. $ref: '#/definitions/googlerpcStatus'
  918. parameters:
  919. - name: memo.name
  920. description: |-
  921. The name of the memo.
  922. Format: memos/{id}
  923. id is the system generated id.
  924. in: path
  925. required: true
  926. type: string
  927. pattern: memos/[^/]+
  928. - name: memo
  929. in: body
  930. required: true
  931. schema:
  932. type: object
  933. properties:
  934. uid:
  935. type: string
  936. description: The user defined id of the memo.
  937. rowStatus:
  938. $ref: '#/definitions/v1RowStatus'
  939. creator:
  940. type: string
  941. title: |-
  942. The name of the creator.
  943. Format: users/{id}
  944. createTime:
  945. type: string
  946. format: date-time
  947. updateTime:
  948. type: string
  949. format: date-time
  950. displayTime:
  951. type: string
  952. format: date-time
  953. content:
  954. type: string
  955. nodes:
  956. type: array
  957. items:
  958. type: object
  959. $ref: '#/definitions/v1Node'
  960. readOnly: true
  961. visibility:
  962. $ref: '#/definitions/v1Visibility'
  963. tags:
  964. type: array
  965. items:
  966. type: string
  967. pinned:
  968. type: boolean
  969. parentId:
  970. type: integer
  971. format: int32
  972. readOnly: true
  973. resources:
  974. type: array
  975. items:
  976. type: object
  977. $ref: '#/definitions/v1Resource'
  978. readOnly: true
  979. relations:
  980. type: array
  981. items:
  982. type: object
  983. $ref: '#/definitions/v1MemoRelation'
  984. readOnly: true
  985. reactions:
  986. type: array
  987. items:
  988. type: object
  989. $ref: '#/definitions/v1Reaction'
  990. readOnly: true
  991. property:
  992. $ref: '#/definitions/v1MemoProperty'
  993. readOnly: true
  994. parent:
  995. type: string
  996. title: |-
  997. The name of the parent memo.
  998. Format: memos/{id}
  999. readOnly: true
  1000. snippet:
  1001. type: string
  1002. description: The snippet of the memo content. Plain text only.
  1003. tags:
  1004. - MemoService
  1005. /api/v1/{name_1}:
  1006. get:
  1007. summary: GetIdentityProvider gets an identity provider.
  1008. operationId: IdentityProviderService_GetIdentityProvider
  1009. responses:
  1010. "200":
  1011. description: A successful response.
  1012. schema:
  1013. $ref: '#/definitions/apiv1IdentityProvider'
  1014. default:
  1015. description: An unexpected error response.
  1016. schema:
  1017. $ref: '#/definitions/googlerpcStatus'
  1018. parameters:
  1019. - name: name_1
  1020. description: |-
  1021. The name of the identityProvider to get.
  1022. Format: identityProviders/{id}
  1023. in: path
  1024. required: true
  1025. type: string
  1026. pattern: identityProviders/[^/]+
  1027. tags:
  1028. - IdentityProviderService
  1029. delete:
  1030. summary: DeleteIdentityProvider deletes an identity provider.
  1031. operationId: IdentityProviderService_DeleteIdentityProvider
  1032. responses:
  1033. "200":
  1034. description: A successful response.
  1035. schema:
  1036. type: object
  1037. properties: {}
  1038. default:
  1039. description: An unexpected error response.
  1040. schema:
  1041. $ref: '#/definitions/googlerpcStatus'
  1042. parameters:
  1043. - name: name_1
  1044. description: |-
  1045. The name of the identityProvider to delete.
  1046. Format: identityProviders/{id}
  1047. in: path
  1048. required: true
  1049. type: string
  1050. pattern: identityProviders/[^/]+
  1051. tags:
  1052. - IdentityProviderService
  1053. /api/v1/{name_2}:
  1054. get:
  1055. summary: GetResource returns a resource by name.
  1056. operationId: ResourceService_GetResource
  1057. responses:
  1058. "200":
  1059. description: A successful response.
  1060. schema:
  1061. $ref: '#/definitions/v1Resource'
  1062. default:
  1063. description: An unexpected error response.
  1064. schema:
  1065. $ref: '#/definitions/googlerpcStatus'
  1066. parameters:
  1067. - name: name_2
  1068. description: |-
  1069. The name of the resource.
  1070. Format: resources/{id}
  1071. id is the system generated unique identifier.
  1072. in: path
  1073. required: true
  1074. type: string
  1075. pattern: resources/[^/]+
  1076. tags:
  1077. - ResourceService
  1078. delete:
  1079. summary: DeleteInbox deletes an inbox.
  1080. operationId: InboxService_DeleteInbox
  1081. responses:
  1082. "200":
  1083. description: A successful response.
  1084. schema:
  1085. type: object
  1086. properties: {}
  1087. default:
  1088. description: An unexpected error response.
  1089. schema:
  1090. $ref: '#/definitions/googlerpcStatus'
  1091. parameters:
  1092. - name: name_2
  1093. description: |-
  1094. The name of the inbox to delete.
  1095. Format: inboxes/{id}
  1096. in: path
  1097. required: true
  1098. type: string
  1099. pattern: inboxes/[^/]+
  1100. tags:
  1101. - InboxService
  1102. /api/v1/{name_3}:
  1103. get:
  1104. summary: GetMemo gets a memo.
  1105. operationId: MemoService_GetMemo
  1106. responses:
  1107. "200":
  1108. description: A successful response.
  1109. schema:
  1110. $ref: '#/definitions/v1Memo'
  1111. default:
  1112. description: An unexpected error response.
  1113. schema:
  1114. $ref: '#/definitions/googlerpcStatus'
  1115. parameters:
  1116. - name: name_3
  1117. description: |-
  1118. The name of the memo.
  1119. Format: memos/{id}
  1120. in: path
  1121. required: true
  1122. type: string
  1123. pattern: memos/[^/]+
  1124. tags:
  1125. - MemoService
  1126. delete:
  1127. summary: DeleteResource deletes a resource by name.
  1128. operationId: ResourceService_DeleteResource
  1129. responses:
  1130. "200":
  1131. description: A successful response.
  1132. schema:
  1133. type: object
  1134. properties: {}
  1135. default:
  1136. description: An unexpected error response.
  1137. schema:
  1138. $ref: '#/definitions/googlerpcStatus'
  1139. parameters:
  1140. - name: name_3
  1141. description: |-
  1142. The name of the resource.
  1143. Format: resources/{id}
  1144. id is the system generated unique identifier.
  1145. in: path
  1146. required: true
  1147. type: string
  1148. pattern: resources/[^/]+
  1149. tags:
  1150. - ResourceService
  1151. /api/v1/{name_4}:
  1152. delete:
  1153. summary: DeleteMemo deletes a memo.
  1154. operationId: MemoService_DeleteMemo
  1155. responses:
  1156. "200":
  1157. description: A successful response.
  1158. schema:
  1159. type: object
  1160. properties: {}
  1161. default:
  1162. description: An unexpected error response.
  1163. schema:
  1164. $ref: '#/definitions/googlerpcStatus'
  1165. parameters:
  1166. - name: name_4
  1167. description: |-
  1168. The name of the memo.
  1169. Format: memos/{id}
  1170. in: path
  1171. required: true
  1172. type: string
  1173. pattern: memos/[^/]+
  1174. tags:
  1175. - MemoService
  1176. /api/v1/{name}:
  1177. get:
  1178. summary: GetUser gets a user by name.
  1179. operationId: UserService_GetUser
  1180. responses:
  1181. "200":
  1182. description: A successful response.
  1183. schema:
  1184. $ref: '#/definitions/v1User'
  1185. default:
  1186. description: An unexpected error response.
  1187. schema:
  1188. $ref: '#/definitions/googlerpcStatus'
  1189. parameters:
  1190. - name: name
  1191. description: |-
  1192. The name of the user.
  1193. Format: users/{id}
  1194. in: path
  1195. required: true
  1196. type: string
  1197. pattern: users/[^/]+
  1198. tags:
  1199. - UserService
  1200. delete:
  1201. summary: DeleteUser deletes a user.
  1202. operationId: UserService_DeleteUser
  1203. responses:
  1204. "200":
  1205. description: A successful response.
  1206. schema:
  1207. type: object
  1208. properties: {}
  1209. default:
  1210. description: An unexpected error response.
  1211. schema:
  1212. $ref: '#/definitions/googlerpcStatus'
  1213. parameters:
  1214. - name: name
  1215. description: |-
  1216. The name of the user.
  1217. Format: users/{id}
  1218. in: path
  1219. required: true
  1220. type: string
  1221. pattern: users/[^/]+
  1222. tags:
  1223. - UserService
  1224. /api/v1/{name}/access_tokens:
  1225. get:
  1226. summary: ListUserAccessTokens returns a list of access tokens for a user.
  1227. operationId: UserService_ListUserAccessTokens
  1228. responses:
  1229. "200":
  1230. description: A successful response.
  1231. schema:
  1232. $ref: '#/definitions/v1ListUserAccessTokensResponse'
  1233. default:
  1234. description: An unexpected error response.
  1235. schema:
  1236. $ref: '#/definitions/googlerpcStatus'
  1237. parameters:
  1238. - name: name
  1239. description: |-
  1240. The name of the user.
  1241. Format: users/{id}
  1242. in: path
  1243. required: true
  1244. type: string
  1245. pattern: users/[^/]+
  1246. tags:
  1247. - UserService
  1248. post:
  1249. summary: CreateUserAccessToken creates a new access token for a user.
  1250. operationId: UserService_CreateUserAccessToken
  1251. responses:
  1252. "200":
  1253. description: A successful response.
  1254. schema:
  1255. $ref: '#/definitions/v1UserAccessToken'
  1256. default:
  1257. description: An unexpected error response.
  1258. schema:
  1259. $ref: '#/definitions/googlerpcStatus'
  1260. parameters:
  1261. - name: name
  1262. description: |-
  1263. The name of the user.
  1264. Format: users/{id}
  1265. in: path
  1266. required: true
  1267. type: string
  1268. pattern: users/[^/]+
  1269. - name: body
  1270. in: body
  1271. required: true
  1272. schema:
  1273. $ref: '#/definitions/UserServiceCreateUserAccessTokenBody'
  1274. tags:
  1275. - UserService
  1276. /api/v1/{name}/access_tokens/{accessToken}:
  1277. delete:
  1278. summary: DeleteUserAccessToken deletes an access token for a user.
  1279. operationId: UserService_DeleteUserAccessToken
  1280. responses:
  1281. "200":
  1282. description: A successful response.
  1283. schema:
  1284. type: object
  1285. properties: {}
  1286. default:
  1287. description: An unexpected error response.
  1288. schema:
  1289. $ref: '#/definitions/googlerpcStatus'
  1290. parameters:
  1291. - name: name
  1292. description: |-
  1293. The name of the user.
  1294. Format: users/{id}
  1295. in: path
  1296. required: true
  1297. type: string
  1298. pattern: users/[^/]+
  1299. - name: accessToken
  1300. description: access_token is the access token to delete.
  1301. in: path
  1302. required: true
  1303. type: string
  1304. tags:
  1305. - UserService
  1306. /api/v1/{name}/comments:
  1307. get:
  1308. summary: ListMemoComments lists comments for a memo.
  1309. operationId: MemoService_ListMemoComments
  1310. responses:
  1311. "200":
  1312. description: A successful response.
  1313. schema:
  1314. $ref: '#/definitions/v1ListMemoCommentsResponse'
  1315. default:
  1316. description: An unexpected error response.
  1317. schema:
  1318. $ref: '#/definitions/googlerpcStatus'
  1319. parameters:
  1320. - name: name
  1321. description: |-
  1322. The name of the memo.
  1323. Format: memos/{id}
  1324. in: path
  1325. required: true
  1326. type: string
  1327. pattern: memos/[^/]+
  1328. tags:
  1329. - MemoService
  1330. post:
  1331. summary: CreateMemoComment creates a comment for a memo.
  1332. operationId: MemoService_CreateMemoComment
  1333. responses:
  1334. "200":
  1335. description: A successful response.
  1336. schema:
  1337. $ref: '#/definitions/v1Memo'
  1338. default:
  1339. description: An unexpected error response.
  1340. schema:
  1341. $ref: '#/definitions/googlerpcStatus'
  1342. parameters:
  1343. - name: name
  1344. description: |-
  1345. The name of the memo.
  1346. Format: memos/{id}
  1347. in: path
  1348. required: true
  1349. type: string
  1350. pattern: memos/[^/]+
  1351. - name: comment
  1352. in: body
  1353. required: true
  1354. schema:
  1355. $ref: '#/definitions/v1CreateMemoRequest'
  1356. tags:
  1357. - MemoService
  1358. /api/v1/{name}/properties:
  1359. get:
  1360. summary: ListMemoProperties lists memo properties.
  1361. operationId: MemoService_ListMemoProperties
  1362. responses:
  1363. "200":
  1364. description: A successful response.
  1365. schema:
  1366. $ref: '#/definitions/v1ListMemoPropertiesResponse'
  1367. default:
  1368. description: An unexpected error response.
  1369. schema:
  1370. $ref: '#/definitions/googlerpcStatus'
  1371. parameters:
  1372. - name: name
  1373. description: |-
  1374. The name of the memo.
  1375. Format: memos/{id}. Use "memos/-" to list all properties.
  1376. in: path
  1377. required: true
  1378. type: string
  1379. pattern: memos/[^/]+
  1380. tags:
  1381. - MemoService
  1382. /api/v1/{name}/properties:rebuild:
  1383. post:
  1384. summary: RebuildMemoProperty rebuilds a memo property.
  1385. operationId: MemoService_RebuildMemoProperty
  1386. responses:
  1387. "200":
  1388. description: A successful response.
  1389. schema:
  1390. type: object
  1391. properties: {}
  1392. default:
  1393. description: An unexpected error response.
  1394. schema:
  1395. $ref: '#/definitions/googlerpcStatus'
  1396. parameters:
  1397. - name: name
  1398. description: |-
  1399. The name of the memo.
  1400. Format: memos/{id}. Use "memos/-" to rebuild all memos.
  1401. in: path
  1402. required: true
  1403. type: string
  1404. pattern: memos/[^/]+
  1405. - name: body
  1406. in: body
  1407. required: true
  1408. schema:
  1409. $ref: '#/definitions/MemoServiceRebuildMemoPropertyBody'
  1410. tags:
  1411. - MemoService
  1412. /api/v1/{name}/reactions:
  1413. get:
  1414. summary: ListMemoReactions lists reactions for a memo.
  1415. operationId: MemoService_ListMemoReactions
  1416. responses:
  1417. "200":
  1418. description: A successful response.
  1419. schema:
  1420. $ref: '#/definitions/v1ListMemoReactionsResponse'
  1421. default:
  1422. description: An unexpected error response.
  1423. schema:
  1424. $ref: '#/definitions/googlerpcStatus'
  1425. parameters:
  1426. - name: name
  1427. description: |-
  1428. The name of the memo.
  1429. Format: memos/{id}
  1430. in: path
  1431. required: true
  1432. type: string
  1433. pattern: memos/[^/]+
  1434. tags:
  1435. - MemoService
  1436. post:
  1437. summary: UpsertMemoReaction upserts a reaction for a memo.
  1438. operationId: MemoService_UpsertMemoReaction
  1439. responses:
  1440. "200":
  1441. description: A successful response.
  1442. schema:
  1443. $ref: '#/definitions/v1Reaction'
  1444. default:
  1445. description: An unexpected error response.
  1446. schema:
  1447. $ref: '#/definitions/googlerpcStatus'
  1448. parameters:
  1449. - name: name
  1450. description: |-
  1451. The name of the memo.
  1452. Format: memos/{id}
  1453. in: path
  1454. required: true
  1455. type: string
  1456. pattern: memos/[^/]+
  1457. - name: body
  1458. in: body
  1459. required: true
  1460. schema:
  1461. $ref: '#/definitions/MemoServiceUpsertMemoReactionBody'
  1462. tags:
  1463. - MemoService
  1464. /api/v1/{name}/relations:
  1465. get:
  1466. summary: ListMemoRelations lists relations for a memo.
  1467. operationId: MemoService_ListMemoRelations
  1468. responses:
  1469. "200":
  1470. description: A successful response.
  1471. schema:
  1472. $ref: '#/definitions/v1ListMemoRelationsResponse'
  1473. default:
  1474. description: An unexpected error response.
  1475. schema:
  1476. $ref: '#/definitions/googlerpcStatus'
  1477. parameters:
  1478. - name: name
  1479. description: |-
  1480. The name of the memo.
  1481. Format: memos/{id}
  1482. in: path
  1483. required: true
  1484. type: string
  1485. pattern: memos/[^/]+
  1486. tags:
  1487. - MemoService
  1488. patch:
  1489. summary: SetMemoRelations sets relations for a memo.
  1490. operationId: MemoService_SetMemoRelations
  1491. responses:
  1492. "200":
  1493. description: A successful response.
  1494. schema:
  1495. type: object
  1496. properties: {}
  1497. default:
  1498. description: An unexpected error response.
  1499. schema:
  1500. $ref: '#/definitions/googlerpcStatus'
  1501. parameters:
  1502. - name: name
  1503. description: |-
  1504. The name of the memo.
  1505. Format: memos/{id}
  1506. in: path
  1507. required: true
  1508. type: string
  1509. pattern: memos/[^/]+
  1510. - name: body
  1511. in: body
  1512. required: true
  1513. schema:
  1514. $ref: '#/definitions/MemoServiceSetMemoRelationsBody'
  1515. tags:
  1516. - MemoService
  1517. /api/v1/{name}/resources:
  1518. get:
  1519. summary: ListMemoResources lists resources for a memo.
  1520. operationId: MemoService_ListMemoResources
  1521. responses:
  1522. "200":
  1523. description: A successful response.
  1524. schema:
  1525. $ref: '#/definitions/v1ListMemoResourcesResponse'
  1526. default:
  1527. description: An unexpected error response.
  1528. schema:
  1529. $ref: '#/definitions/googlerpcStatus'
  1530. parameters:
  1531. - name: name
  1532. description: |-
  1533. The name of the memo.
  1534. Format: memos/{id}
  1535. in: path
  1536. required: true
  1537. type: string
  1538. pattern: memos/[^/]+
  1539. tags:
  1540. - MemoService
  1541. patch:
  1542. summary: SetMemoResources sets resources for a memo.
  1543. operationId: MemoService_SetMemoResources
  1544. responses:
  1545. "200":
  1546. description: A successful response.
  1547. schema:
  1548. type: object
  1549. properties: {}
  1550. default:
  1551. description: An unexpected error response.
  1552. schema:
  1553. $ref: '#/definitions/googlerpcStatus'
  1554. parameters:
  1555. - name: name
  1556. description: |-
  1557. The name of the memo.
  1558. Format: memos/{id}
  1559. in: path
  1560. required: true
  1561. type: string
  1562. pattern: memos/[^/]+
  1563. - name: body
  1564. in: body
  1565. required: true
  1566. schema:
  1567. $ref: '#/definitions/MemoServiceSetMemoResourcesBody'
  1568. tags:
  1569. - MemoService
  1570. /api/v1/{name}/setting:
  1571. get:
  1572. summary: GetUserSetting gets the setting of a user.
  1573. operationId: UserService_GetUserSetting
  1574. responses:
  1575. "200":
  1576. description: A successful response.
  1577. schema:
  1578. $ref: '#/definitions/apiv1UserSetting'
  1579. default:
  1580. description: An unexpected error response.
  1581. schema:
  1582. $ref: '#/definitions/googlerpcStatus'
  1583. parameters:
  1584. - name: name
  1585. description: |-
  1586. The name of the user.
  1587. Format: users/{id}
  1588. in: path
  1589. required: true
  1590. type: string
  1591. pattern: users/[^/]+
  1592. tags:
  1593. - UserService
  1594. /api/v1/{parent}/tags:
  1595. get:
  1596. summary: ListMemoTags lists tags for a memo.
  1597. operationId: MemoService_ListMemoTags
  1598. responses:
  1599. "200":
  1600. description: A successful response.
  1601. schema:
  1602. $ref: '#/definitions/v1ListMemoTagsResponse'
  1603. default:
  1604. description: An unexpected error response.
  1605. schema:
  1606. $ref: '#/definitions/googlerpcStatus'
  1607. parameters:
  1608. - name: parent
  1609. description: |-
  1610. The parent, who owns the tags.
  1611. Format: memos/{id}. Use "memos/-" to list all tags.
  1612. in: path
  1613. required: true
  1614. type: string
  1615. pattern: memos/[^/]+
  1616. - name: filter
  1617. description: |-
  1618. Filter is used to filter memos.
  1619. Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
  1620. in: query
  1621. required: false
  1622. type: string
  1623. tags:
  1624. - MemoService
  1625. /api/v1/{parent}/tags/{tag}:
  1626. delete:
  1627. summary: DeleteMemoTag deletes a tag for a memo.
  1628. operationId: MemoService_DeleteMemoTag
  1629. responses:
  1630. "200":
  1631. description: A successful response.
  1632. schema:
  1633. type: object
  1634. properties: {}
  1635. default:
  1636. description: An unexpected error response.
  1637. schema:
  1638. $ref: '#/definitions/googlerpcStatus'
  1639. parameters:
  1640. - name: parent
  1641. description: |-
  1642. The parent, who owns the tags.
  1643. Format: memos/{id}. Use "memos/-" to delete all tags.
  1644. in: path
  1645. required: true
  1646. type: string
  1647. pattern: memos/[^/]+
  1648. - name: tag
  1649. in: path
  1650. required: true
  1651. type: string
  1652. - name: deleteRelatedMemos
  1653. in: query
  1654. required: false
  1655. type: boolean
  1656. tags:
  1657. - MemoService
  1658. /api/v1/{parent}/tags:rename:
  1659. patch:
  1660. summary: RenameMemoTag renames a tag for a memo.
  1661. operationId: MemoService_RenameMemoTag
  1662. responses:
  1663. "200":
  1664. description: A successful response.
  1665. schema:
  1666. type: object
  1667. properties: {}
  1668. default:
  1669. description: An unexpected error response.
  1670. schema:
  1671. $ref: '#/definitions/googlerpcStatus'
  1672. parameters:
  1673. - name: parent
  1674. description: |-
  1675. The parent, who owns the tags.
  1676. Format: memos/{id}. Use "memos/-" to rename all tags.
  1677. in: path
  1678. required: true
  1679. type: string
  1680. pattern: memos/[^/]+
  1681. - name: body
  1682. in: body
  1683. required: true
  1684. schema:
  1685. $ref: '#/definitions/MemoServiceRenameMemoTagBody'
  1686. tags:
  1687. - MemoService
  1688. /api/v1/{resource.name}:
  1689. patch:
  1690. summary: UpdateResource updates a resource.
  1691. operationId: ResourceService_UpdateResource
  1692. responses:
  1693. "200":
  1694. description: A successful response.
  1695. schema:
  1696. $ref: '#/definitions/v1Resource'
  1697. default:
  1698. description: An unexpected error response.
  1699. schema:
  1700. $ref: '#/definitions/googlerpcStatus'
  1701. parameters:
  1702. - name: resource.name
  1703. description: |-
  1704. The name of the resource.
  1705. Format: resources/{id}
  1706. id is the system generated unique identifier.
  1707. in: path
  1708. required: true
  1709. type: string
  1710. pattern: resources/[^/]+
  1711. - name: resource
  1712. in: body
  1713. required: true
  1714. schema:
  1715. type: object
  1716. properties:
  1717. uid:
  1718. type: string
  1719. description: The user defined id of the resource.
  1720. createTime:
  1721. type: string
  1722. format: date-time
  1723. readOnly: true
  1724. filename:
  1725. type: string
  1726. content:
  1727. type: string
  1728. format: byte
  1729. externalLink:
  1730. type: string
  1731. type:
  1732. type: string
  1733. size:
  1734. type: string
  1735. format: int64
  1736. memo:
  1737. type: string
  1738. title: |-
  1739. The related memo.
  1740. Format: memos/{id}
  1741. tags:
  1742. - ResourceService
  1743. /api/v1/{setting.name}:
  1744. patch:
  1745. summary: UpdateUserSetting updates the setting of a user.
  1746. operationId: UserService_UpdateUserSetting
  1747. responses:
  1748. "200":
  1749. description: A successful response.
  1750. schema:
  1751. $ref: '#/definitions/apiv1UserSetting'
  1752. default:
  1753. description: An unexpected error response.
  1754. schema:
  1755. $ref: '#/definitions/googlerpcStatus'
  1756. parameters:
  1757. - name: setting.name
  1758. description: |-
  1759. The name of the user.
  1760. Format: users/{id}
  1761. in: path
  1762. required: true
  1763. type: string
  1764. pattern: users/[^/]+/setting
  1765. - name: setting
  1766. in: body
  1767. required: true
  1768. schema:
  1769. type: object
  1770. properties:
  1771. locale:
  1772. type: string
  1773. description: The preferred locale of the user.
  1774. appearance:
  1775. type: string
  1776. description: The preferred appearance of the user.
  1777. memoVisibility:
  1778. type: string
  1779. description: The default visibility of the memo.
  1780. tags:
  1781. - UserService
  1782. /api/v1/{user.name}:
  1783. patch:
  1784. summary: UpdateUser updates a user.
  1785. operationId: UserService_UpdateUser
  1786. responses:
  1787. "200":
  1788. description: A successful response.
  1789. schema:
  1790. $ref: '#/definitions/v1User'
  1791. default:
  1792. description: An unexpected error response.
  1793. schema:
  1794. $ref: '#/definitions/googlerpcStatus'
  1795. parameters:
  1796. - name: user.name
  1797. description: |-
  1798. The name of the user.
  1799. Format: users/{id}
  1800. in: path
  1801. required: true
  1802. type: string
  1803. pattern: users/[^/]+
  1804. - name: user
  1805. in: body
  1806. required: true
  1807. schema:
  1808. type: object
  1809. properties:
  1810. id:
  1811. type: integer
  1812. format: int32
  1813. description: The system generated uid of the user.
  1814. role:
  1815. $ref: '#/definitions/UserRole'
  1816. username:
  1817. type: string
  1818. email:
  1819. type: string
  1820. nickname:
  1821. type: string
  1822. avatarUrl:
  1823. type: string
  1824. description:
  1825. type: string
  1826. password:
  1827. type: string
  1828. rowStatus:
  1829. $ref: '#/definitions/v1RowStatus'
  1830. createTime:
  1831. type: string
  1832. format: date-time
  1833. updateTime:
  1834. type: string
  1835. format: date-time
  1836. tags:
  1837. - UserService
  1838. /file/{name}/avatar:
  1839. get:
  1840. summary: GetUserAvatarBinary gets the avatar of a user.
  1841. operationId: UserService_GetUserAvatarBinary
  1842. responses:
  1843. "200":
  1844. description: A successful response.
  1845. schema:
  1846. $ref: '#/definitions/apiHttpBody'
  1847. default:
  1848. description: An unexpected error response.
  1849. schema:
  1850. $ref: '#/definitions/googlerpcStatus'
  1851. parameters:
  1852. - name: name
  1853. description: |-
  1854. The name of the user.
  1855. Format: users/{id}
  1856. in: path
  1857. required: true
  1858. type: string
  1859. pattern: users/[^/]+
  1860. - name: httpBody.contentType
  1861. description: The HTTP Content-Type header value specifying the content type of the body.
  1862. in: query
  1863. required: false
  1864. type: string
  1865. - name: httpBody.data
  1866. description: The HTTP request/response body as raw binary.
  1867. in: query
  1868. required: false
  1869. type: string
  1870. format: byte
  1871. tags:
  1872. - UserService
  1873. /file/{name}/{filename}:
  1874. get:
  1875. summary: GetResourceBinary returns a resource binary by name.
  1876. operationId: ResourceService_GetResourceBinary
  1877. responses:
  1878. "200":
  1879. description: A successful response.
  1880. schema:
  1881. $ref: '#/definitions/apiHttpBody'
  1882. default:
  1883. description: An unexpected error response.
  1884. schema:
  1885. $ref: '#/definitions/googlerpcStatus'
  1886. parameters:
  1887. - name: name
  1888. description: |-
  1889. The name of the resource.
  1890. Format: resources/{id}
  1891. id is the system generated unique identifier.
  1892. in: path
  1893. required: true
  1894. type: string
  1895. pattern: resources/[^/]+
  1896. - name: filename
  1897. description: The filename of the resource. Mainly used for downloading.
  1898. in: path
  1899. required: true
  1900. type: string
  1901. tags:
  1902. - ResourceService
  1903. definitions:
  1904. MemoServiceRebuildMemoPropertyBody:
  1905. type: object
  1906. MemoServiceRenameMemoTagBody:
  1907. type: object
  1908. properties:
  1909. oldTag:
  1910. type: string
  1911. newTag:
  1912. type: string
  1913. MemoServiceSetMemoRelationsBody:
  1914. type: object
  1915. properties:
  1916. relations:
  1917. type: array
  1918. items:
  1919. type: object
  1920. $ref: '#/definitions/v1MemoRelation'
  1921. MemoServiceSetMemoResourcesBody:
  1922. type: object
  1923. properties:
  1924. resources:
  1925. type: array
  1926. items:
  1927. type: object
  1928. $ref: '#/definitions/v1Resource'
  1929. MemoServiceUpsertMemoReactionBody:
  1930. type: object
  1931. properties:
  1932. reaction:
  1933. $ref: '#/definitions/v1Reaction'
  1934. TableNodeRow:
  1935. type: object
  1936. properties:
  1937. cells:
  1938. type: array
  1939. items:
  1940. type: object
  1941. $ref: '#/definitions/v1Node'
  1942. UserRole:
  1943. type: string
  1944. enum:
  1945. - ROLE_UNSPECIFIED
  1946. - HOST
  1947. - ADMIN
  1948. - USER
  1949. default: ROLE_UNSPECIFIED
  1950. UserServiceCreateUserAccessTokenBody:
  1951. type: object
  1952. properties:
  1953. description:
  1954. type: string
  1955. expiresAt:
  1956. type: string
  1957. format: date-time
  1958. WorkspaceStorageSettingS3Config:
  1959. type: object
  1960. properties:
  1961. accessKeyId:
  1962. type: string
  1963. accessKeySecret:
  1964. type: string
  1965. endpoint:
  1966. type: string
  1967. region:
  1968. type: string
  1969. bucket:
  1970. type: string
  1971. title: 'Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/'
  1972. apiHttpBody:
  1973. type: object
  1974. properties:
  1975. contentType:
  1976. type: string
  1977. description: The HTTP Content-Type header value specifying the content type of the body.
  1978. data:
  1979. type: string
  1980. format: byte
  1981. description: The HTTP request/response body as raw binary.
  1982. extensions:
  1983. type: array
  1984. items:
  1985. type: object
  1986. $ref: '#/definitions/protobufAny'
  1987. description: |-
  1988. Application specific response metadata. Must be set in the first response
  1989. for streaming APIs.
  1990. description: |-
  1991. Message that represents an arbitrary HTTP body. It should only be used for
  1992. payload formats that can't be represented as JSON, such as raw binary or
  1993. an HTML page.
  1994. This message can be used both in streaming and non-streaming API methods in
  1995. the request as well as the response.
  1996. It can be used as a top-level request field, which is convenient if one
  1997. wants to extract parameters from either the URL or HTTP template into the
  1998. request fields and also want access to the raw HTTP body.
  1999. Example:
  2000. message GetResourceRequest {
  2001. // A unique request id.
  2002. string request_id = 1;
  2003. // The raw HTTP body is bound to this field.
  2004. google.api.HttpBody http_body = 2;
  2005. }
  2006. service ResourceService {
  2007. rpc GetResource(GetResourceRequest)
  2008. returns (google.api.HttpBody);
  2009. rpc UpdateResource(google.api.HttpBody)
  2010. returns (google.protobuf.Empty);
  2011. }
  2012. Example with streaming methods:
  2013. service CaldavService {
  2014. rpc GetCalendar(stream google.api.HttpBody)
  2015. returns (stream google.api.HttpBody);
  2016. rpc UpdateCalendar(stream google.api.HttpBody)
  2017. returns (stream google.api.HttpBody);
  2018. }
  2019. Use of this type only changes how the request and response bodies are
  2020. handled, all other features will continue to work unchanged.
  2021. apiv1ActivityMemoCommentPayload:
  2022. type: object
  2023. properties:
  2024. memoId:
  2025. type: integer
  2026. format: int32
  2027. description: The memo id of comment.
  2028. relatedMemoId:
  2029. type: integer
  2030. format: int32
  2031. description: The memo id of related memo.
  2032. description: ActivityMemoCommentPayload represents the payload of a memo comment activity.
  2033. apiv1ActivityPayload:
  2034. type: object
  2035. properties:
  2036. memoComment:
  2037. $ref: '#/definitions/apiv1ActivityMemoCommentPayload'
  2038. versionUpdate:
  2039. $ref: '#/definitions/apiv1ActivityVersionUpdatePayload'
  2040. apiv1ActivityVersionUpdatePayload:
  2041. type: object
  2042. properties:
  2043. version:
  2044. type: string
  2045. description: The updated version of memos.
  2046. apiv1FieldMapping:
  2047. type: object
  2048. properties:
  2049. identifier:
  2050. type: string
  2051. displayName:
  2052. type: string
  2053. email:
  2054. type: string
  2055. apiv1IdentityProvider:
  2056. type: object
  2057. properties:
  2058. name:
  2059. type: string
  2060. title: |-
  2061. The name of the identityProvider.
  2062. Format: identityProviders/{id}
  2063. type:
  2064. $ref: '#/definitions/apiv1IdentityProviderType'
  2065. title:
  2066. type: string
  2067. identifierFilter:
  2068. type: string
  2069. config:
  2070. $ref: '#/definitions/apiv1IdentityProviderConfig'
  2071. apiv1IdentityProviderConfig:
  2072. type: object
  2073. properties:
  2074. oauth2Config:
  2075. $ref: '#/definitions/apiv1OAuth2Config'
  2076. apiv1IdentityProviderType:
  2077. type: string
  2078. enum:
  2079. - TYPE_UNSPECIFIED
  2080. - OAUTH2
  2081. default: TYPE_UNSPECIFIED
  2082. apiv1OAuth2Config:
  2083. type: object
  2084. properties:
  2085. clientId:
  2086. type: string
  2087. clientSecret:
  2088. type: string
  2089. authUrl:
  2090. type: string
  2091. tokenUrl:
  2092. type: string
  2093. userInfoUrl:
  2094. type: string
  2095. scopes:
  2096. type: array
  2097. items:
  2098. type: string
  2099. fieldMapping:
  2100. $ref: '#/definitions/apiv1FieldMapping'
  2101. apiv1UserSetting:
  2102. type: object
  2103. properties:
  2104. name:
  2105. type: string
  2106. title: |-
  2107. The name of the user.
  2108. Format: users/{id}
  2109. locale:
  2110. type: string
  2111. description: The preferred locale of the user.
  2112. appearance:
  2113. type: string
  2114. description: The preferred appearance of the user.
  2115. memoVisibility:
  2116. type: string
  2117. description: The default visibility of the memo.
  2118. apiv1WorkspaceCustomProfile:
  2119. type: object
  2120. properties:
  2121. title:
  2122. type: string
  2123. description:
  2124. type: string
  2125. logoUrl:
  2126. type: string
  2127. locale:
  2128. type: string
  2129. appearance:
  2130. type: string
  2131. apiv1WorkspaceGeneralSetting:
  2132. type: object
  2133. properties:
  2134. additionalScript:
  2135. type: string
  2136. description: additional_script is the additional script.
  2137. additionalStyle:
  2138. type: string
  2139. description: additional_style is the additional style.
  2140. customProfile:
  2141. $ref: '#/definitions/apiv1WorkspaceCustomProfile'
  2142. description: custom_profile is the custom profile.
  2143. apiv1WorkspaceMemoRelatedSetting:
  2144. type: object
  2145. properties:
  2146. disallowPublicVisibility:
  2147. type: boolean
  2148. description: disallow_public_visibility disallows set memo as public visibility.
  2149. displayWithUpdateTime:
  2150. type: boolean
  2151. description: display_with_update_time orders and displays memo with update time.
  2152. contentLengthLimit:
  2153. type: integer
  2154. format: int32
  2155. description: content_length_limit is the limit of content length. Unit is byte.
  2156. enableAutoCompact:
  2157. type: boolean
  2158. description: enable_auto_compact enables auto compact for large content.
  2159. enableDoubleClickEdit:
  2160. type: boolean
  2161. description: enable_double_click_edit enables editing on double click.
  2162. enableLinkPreview:
  2163. type: boolean
  2164. description: enable_link_preview enables links preview.
  2165. apiv1WorkspaceSetting:
  2166. type: object
  2167. properties:
  2168. name:
  2169. type: string
  2170. title: |-
  2171. name is the name of the setting.
  2172. Format: settings/{setting}
  2173. generalSetting:
  2174. $ref: '#/definitions/apiv1WorkspaceGeneralSetting'
  2175. storageSetting:
  2176. $ref: '#/definitions/apiv1WorkspaceStorageSetting'
  2177. memoRelatedSetting:
  2178. $ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
  2179. apiv1WorkspaceStorageSetting:
  2180. type: object
  2181. properties:
  2182. storageType:
  2183. $ref: '#/definitions/apiv1WorkspaceStorageSettingStorageType'
  2184. description: storage_type is the storage type.
  2185. filepathTemplate:
  2186. type: string
  2187. title: |-
  2188. The template of file path.
  2189. e.g. assets/{timestamp}_{filename}
  2190. uploadSizeLimitMb:
  2191. type: string
  2192. format: int64
  2193. description: The max upload size in megabytes.
  2194. s3Config:
  2195. $ref: '#/definitions/WorkspaceStorageSettingS3Config'
  2196. description: The S3 config.
  2197. apiv1WorkspaceStorageSettingStorageType:
  2198. type: string
  2199. enum:
  2200. - STORAGE_TYPE_UNSPECIFIED
  2201. - DATABASE
  2202. - LOCAL
  2203. - S3
  2204. default: STORAGE_TYPE_UNSPECIFIED
  2205. description: |2-
  2206. - DATABASE: DATABASE is the database storage type.
  2207. - LOCAL: LOCAL is the local storage type.
  2208. - S3: S3 is the S3 storage type.
  2209. googlerpcStatus:
  2210. type: object
  2211. properties:
  2212. code:
  2213. type: integer
  2214. format: int32
  2215. message:
  2216. type: string
  2217. details:
  2218. type: array
  2219. items:
  2220. type: object
  2221. $ref: '#/definitions/protobufAny'
  2222. protobufAny:
  2223. type: object
  2224. properties:
  2225. '@type':
  2226. type: string
  2227. description: |-
  2228. A URL/resource name that uniquely identifies the type of the serialized
  2229. protocol buffer message. This string must contain at least
  2230. one "/" character. The last segment of the URL's path must represent
  2231. the fully qualified name of the type (as in
  2232. `path/google.protobuf.Duration`). The name should be in a canonical form
  2233. (e.g., leading "." is not accepted).
  2234. In practice, teams usually precompile into the binary all types that they
  2235. expect it to use in the context of Any. However, for URLs which use the
  2236. scheme `http`, `https`, or no scheme, one can optionally set up a type
  2237. server that maps type URLs to message definitions as follows:
  2238. * If no scheme is provided, `https` is assumed.
  2239. * An HTTP GET on the URL must yield a [google.protobuf.Type][]
  2240. value in binary format, or produce an error.
  2241. * Applications are allowed to cache lookup results based on the
  2242. URL, or have them precompiled into a binary to avoid any
  2243. lookup. Therefore, binary compatibility needs to be preserved
  2244. on changes to types. (Use versioned type names to manage
  2245. breaking changes.)
  2246. Note: this functionality is not currently available in the official
  2247. protobuf release, and it is not used for type URLs beginning with
  2248. type.googleapis.com. As of May 2023, there are no widely used type server
  2249. implementations and no plans to implement one.
  2250. Schemes other than `http`, `https` (or the empty scheme) might be
  2251. used with implementation specific semantics.
  2252. additionalProperties: {}
  2253. description: |-
  2254. `Any` contains an arbitrary serialized protocol buffer message along with a
  2255. URL that describes the type of the serialized message.
  2256. Protobuf library provides support to pack/unpack Any values in the form
  2257. of utility functions or additional generated methods of the Any type.
  2258. Example 1: Pack and unpack a message in C++.
  2259. Foo foo = ...;
  2260. Any any;
  2261. any.PackFrom(foo);
  2262. ...
  2263. if (any.UnpackTo(&foo)) {
  2264. ...
  2265. }
  2266. Example 2: Pack and unpack a message in Java.
  2267. Foo foo = ...;
  2268. Any any = Any.pack(foo);
  2269. ...
  2270. if (any.is(Foo.class)) {
  2271. foo = any.unpack(Foo.class);
  2272. }
  2273. // or ...
  2274. if (any.isSameTypeAs(Foo.getDefaultInstance())) {
  2275. foo = any.unpack(Foo.getDefaultInstance());
  2276. }
  2277. Example 3: Pack and unpack a message in Python.
  2278. foo = Foo(...)
  2279. any = Any()
  2280. any.Pack(foo)
  2281. ...
  2282. if any.Is(Foo.DESCRIPTOR):
  2283. any.Unpack(foo)
  2284. ...
  2285. Example 4: Pack and unpack a message in Go
  2286. foo := &pb.Foo{...}
  2287. any, err := anypb.New(foo)
  2288. if err != nil {
  2289. ...
  2290. }
  2291. ...
  2292. foo := &pb.Foo{}
  2293. if err := any.UnmarshalTo(foo); err != nil {
  2294. ...
  2295. }
  2296. The pack methods provided by protobuf library will by default use
  2297. 'type.googleapis.com/full.type.name' as the type URL and the unpack
  2298. methods only use the fully qualified type name after the last '/'
  2299. in the type URL, for example "foo.bar.com/x/y.z" will yield type
  2300. name "y.z".
  2301. JSON
  2302. ====
  2303. The JSON representation of an `Any` value uses the regular
  2304. representation of the deserialized, embedded message, with an
  2305. additional field `@type` which contains the type URL. Example:
  2306. package google.profile;
  2307. message Person {
  2308. string first_name = 1;
  2309. string last_name = 2;
  2310. }
  2311. {
  2312. "@type": "type.googleapis.com/google.profile.Person",
  2313. "firstName": <string>,
  2314. "lastName": <string>
  2315. }
  2316. If the embedded message type is well-known and has a custom JSON
  2317. representation, that representation will be embedded adding a field
  2318. `value` which holds the custom JSON in addition to the `@type`
  2319. field. Example (for message [google.protobuf.Duration][]):
  2320. {
  2321. "@type": "type.googleapis.com/google.protobuf.Duration",
  2322. "value": "1.212s"
  2323. }
  2324. v1Activity:
  2325. type: object
  2326. properties:
  2327. id:
  2328. type: integer
  2329. format: int32
  2330. description: The system-generated unique identifier for the activity.
  2331. creatorId:
  2332. type: integer
  2333. format: int32
  2334. description: The system-generated unique identifier for the user who created the activity.
  2335. type:
  2336. type: string
  2337. description: The type of the activity.
  2338. level:
  2339. type: string
  2340. description: The level of the activity.
  2341. createTime:
  2342. type: string
  2343. format: date-time
  2344. description: The create time of the activity.
  2345. readOnly: true
  2346. payload:
  2347. $ref: '#/definitions/apiv1ActivityPayload'
  2348. description: The payload of the activity.
  2349. v1AutoLinkNode:
  2350. type: object
  2351. properties:
  2352. url:
  2353. type: string
  2354. isRawText:
  2355. type: boolean
  2356. v1BlockquoteNode:
  2357. type: object
  2358. properties:
  2359. children:
  2360. type: array
  2361. items:
  2362. type: object
  2363. $ref: '#/definitions/v1Node'
  2364. v1BoldItalicNode:
  2365. type: object
  2366. properties:
  2367. symbol:
  2368. type: string
  2369. content:
  2370. type: string
  2371. v1BoldNode:
  2372. type: object
  2373. properties:
  2374. symbol:
  2375. type: string
  2376. children:
  2377. type: array
  2378. items:
  2379. type: object
  2380. $ref: '#/definitions/v1Node'
  2381. v1CodeBlockNode:
  2382. type: object
  2383. properties:
  2384. language:
  2385. type: string
  2386. content:
  2387. type: string
  2388. v1CodeNode:
  2389. type: object
  2390. properties:
  2391. content:
  2392. type: string
  2393. v1CreateMemoRequest:
  2394. type: object
  2395. properties:
  2396. content:
  2397. type: string
  2398. visibility:
  2399. $ref: '#/definitions/v1Visibility'
  2400. v1CreateWebhookRequest:
  2401. type: object
  2402. properties:
  2403. name:
  2404. type: string
  2405. url:
  2406. type: string
  2407. v1EmbeddedContentNode:
  2408. type: object
  2409. properties:
  2410. resourceName:
  2411. type: string
  2412. params:
  2413. type: string
  2414. v1EscapingCharacterNode:
  2415. type: object
  2416. properties:
  2417. symbol:
  2418. type: string
  2419. v1ExportMemosRequest:
  2420. type: object
  2421. properties:
  2422. filter:
  2423. type: string
  2424. title: Same as ListMemosRequest.filter
  2425. v1ExportMemosResponse:
  2426. type: object
  2427. properties:
  2428. content:
  2429. type: string
  2430. format: byte
  2431. v1GetUserMemosStatsResponse:
  2432. type: object
  2433. properties:
  2434. stats:
  2435. type: object
  2436. additionalProperties:
  2437. type: integer
  2438. format: int32
  2439. description: |-
  2440. stats is the stats of memo creating/updating activities.
  2441. key is the year-month-day string. e.g. "2020-01-01".
  2442. v1HTMLElementNode:
  2443. type: object
  2444. properties:
  2445. tagName:
  2446. type: string
  2447. attributes:
  2448. type: object
  2449. additionalProperties:
  2450. type: string
  2451. v1HeadingNode:
  2452. type: object
  2453. properties:
  2454. level:
  2455. type: integer
  2456. format: int32
  2457. children:
  2458. type: array
  2459. items:
  2460. type: object
  2461. $ref: '#/definitions/v1Node'
  2462. v1HighlightNode:
  2463. type: object
  2464. properties:
  2465. content:
  2466. type: string
  2467. v1HorizontalRuleNode:
  2468. type: object
  2469. properties:
  2470. symbol:
  2471. type: string
  2472. v1ImageNode:
  2473. type: object
  2474. properties:
  2475. altText:
  2476. type: string
  2477. url:
  2478. type: string
  2479. v1Inbox:
  2480. type: object
  2481. properties:
  2482. name:
  2483. type: string
  2484. title: |-
  2485. The name of the inbox.
  2486. Format: inboxes/{id}
  2487. sender:
  2488. type: string
  2489. title: 'Format: users/{id}'
  2490. receiver:
  2491. type: string
  2492. title: 'Format: users/{id}'
  2493. status:
  2494. $ref: '#/definitions/v1InboxStatus'
  2495. createTime:
  2496. type: string
  2497. format: date-time
  2498. type:
  2499. $ref: '#/definitions/v1InboxType'
  2500. activityId:
  2501. type: integer
  2502. format: int32
  2503. v1InboxStatus:
  2504. type: string
  2505. enum:
  2506. - STATUS_UNSPECIFIED
  2507. - UNREAD
  2508. - ARCHIVED
  2509. default: STATUS_UNSPECIFIED
  2510. v1InboxType:
  2511. type: string
  2512. enum:
  2513. - TYPE_UNSPECIFIED
  2514. - MEMO_COMMENT
  2515. - VERSION_UPDATE
  2516. default: TYPE_UNSPECIFIED
  2517. v1ItalicNode:
  2518. type: object
  2519. properties:
  2520. symbol:
  2521. type: string
  2522. content:
  2523. type: string
  2524. v1LineBreakNode:
  2525. type: object
  2526. v1LinkMetadata:
  2527. type: object
  2528. properties:
  2529. title:
  2530. type: string
  2531. description:
  2532. type: string
  2533. image:
  2534. type: string
  2535. v1LinkNode:
  2536. type: object
  2537. properties:
  2538. text:
  2539. type: string
  2540. url:
  2541. type: string
  2542. v1ListIdentityProvidersResponse:
  2543. type: object
  2544. properties:
  2545. identityProviders:
  2546. type: array
  2547. items:
  2548. type: object
  2549. $ref: '#/definitions/apiv1IdentityProvider'
  2550. v1ListInboxesResponse:
  2551. type: object
  2552. properties:
  2553. inboxes:
  2554. type: array
  2555. items:
  2556. type: object
  2557. $ref: '#/definitions/v1Inbox'
  2558. v1ListMemoCommentsResponse:
  2559. type: object
  2560. properties:
  2561. memos:
  2562. type: array
  2563. items:
  2564. type: object
  2565. $ref: '#/definitions/v1Memo'
  2566. v1ListMemoPropertiesResponse:
  2567. type: object
  2568. properties:
  2569. properties:
  2570. type: array
  2571. items:
  2572. type: object
  2573. $ref: '#/definitions/v1MemoProperty'
  2574. v1ListMemoReactionsResponse:
  2575. type: object
  2576. properties:
  2577. reactions:
  2578. type: array
  2579. items:
  2580. type: object
  2581. $ref: '#/definitions/v1Reaction'
  2582. v1ListMemoRelationsResponse:
  2583. type: object
  2584. properties:
  2585. relations:
  2586. type: array
  2587. items:
  2588. type: object
  2589. $ref: '#/definitions/v1MemoRelation'
  2590. v1ListMemoResourcesResponse:
  2591. type: object
  2592. properties:
  2593. resources:
  2594. type: array
  2595. items:
  2596. type: object
  2597. $ref: '#/definitions/v1Resource'
  2598. v1ListMemoTagsResponse:
  2599. type: object
  2600. properties:
  2601. tagAmounts:
  2602. type: object
  2603. additionalProperties:
  2604. type: integer
  2605. format: int32
  2606. description: |-
  2607. tag_amounts is the amount of tags.
  2608. key is the tag name. e.g. "tag1".
  2609. value is the amount of the tag.
  2610. v1ListMemosResponse:
  2611. type: object
  2612. properties:
  2613. memos:
  2614. type: array
  2615. items:
  2616. type: object
  2617. $ref: '#/definitions/v1Memo'
  2618. nextPageToken:
  2619. type: string
  2620. description: |-
  2621. A token, which can be sent as `page_token` to retrieve the next page.
  2622. If this field is omitted, there are no subsequent pages.
  2623. v1ListResourcesResponse:
  2624. type: object
  2625. properties:
  2626. resources:
  2627. type: array
  2628. items:
  2629. type: object
  2630. $ref: '#/definitions/v1Resource'
  2631. v1ListUserAccessTokensResponse:
  2632. type: object
  2633. properties:
  2634. accessTokens:
  2635. type: array
  2636. items:
  2637. type: object
  2638. $ref: '#/definitions/v1UserAccessToken'
  2639. v1ListUsersResponse:
  2640. type: object
  2641. properties:
  2642. users:
  2643. type: array
  2644. items:
  2645. type: object
  2646. $ref: '#/definitions/v1User'
  2647. v1ListWebhooksResponse:
  2648. type: object
  2649. properties:
  2650. webhooks:
  2651. type: array
  2652. items:
  2653. type: object
  2654. $ref: '#/definitions/v1Webhook'
  2655. v1MathBlockNode:
  2656. type: object
  2657. properties:
  2658. content:
  2659. type: string
  2660. v1MathNode:
  2661. type: object
  2662. properties:
  2663. content:
  2664. type: string
  2665. v1Memo:
  2666. type: object
  2667. properties:
  2668. name:
  2669. type: string
  2670. description: |-
  2671. The name of the memo.
  2672. Format: memos/{id}
  2673. id is the system generated id.
  2674. uid:
  2675. type: string
  2676. description: The user defined id of the memo.
  2677. rowStatus:
  2678. $ref: '#/definitions/v1RowStatus'
  2679. creator:
  2680. type: string
  2681. title: |-
  2682. The name of the creator.
  2683. Format: users/{id}
  2684. createTime:
  2685. type: string
  2686. format: date-time
  2687. updateTime:
  2688. type: string
  2689. format: date-time
  2690. displayTime:
  2691. type: string
  2692. format: date-time
  2693. content:
  2694. type: string
  2695. nodes:
  2696. type: array
  2697. items:
  2698. type: object
  2699. $ref: '#/definitions/v1Node'
  2700. readOnly: true
  2701. visibility:
  2702. $ref: '#/definitions/v1Visibility'
  2703. tags:
  2704. type: array
  2705. items:
  2706. type: string
  2707. pinned:
  2708. type: boolean
  2709. parentId:
  2710. type: integer
  2711. format: int32
  2712. readOnly: true
  2713. resources:
  2714. type: array
  2715. items:
  2716. type: object
  2717. $ref: '#/definitions/v1Resource'
  2718. readOnly: true
  2719. relations:
  2720. type: array
  2721. items:
  2722. type: object
  2723. $ref: '#/definitions/v1MemoRelation'
  2724. readOnly: true
  2725. reactions:
  2726. type: array
  2727. items:
  2728. type: object
  2729. $ref: '#/definitions/v1Reaction'
  2730. readOnly: true
  2731. property:
  2732. $ref: '#/definitions/v1MemoProperty'
  2733. readOnly: true
  2734. parent:
  2735. type: string
  2736. title: |-
  2737. The name of the parent memo.
  2738. Format: memos/{id}
  2739. readOnly: true
  2740. snippet:
  2741. type: string
  2742. description: The snippet of the memo content. Plain text only.
  2743. v1MemoProperty:
  2744. type: object
  2745. properties:
  2746. tags:
  2747. type: array
  2748. items:
  2749. type: string
  2750. hasLink:
  2751. type: boolean
  2752. hasTaskList:
  2753. type: boolean
  2754. hasCode:
  2755. type: boolean
  2756. hasIncompleteTasks:
  2757. type: boolean
  2758. v1MemoRelation:
  2759. type: object
  2760. properties:
  2761. memo:
  2762. type: string
  2763. title: |-
  2764. The name of memo.
  2765. Format: "memos/{uid}"
  2766. relatedMemo:
  2767. type: string
  2768. title: |-
  2769. The name of related memo.
  2770. Format: "memos/{uid}"
  2771. type:
  2772. $ref: '#/definitions/v1MemoRelationType'
  2773. v1MemoRelationType:
  2774. type: string
  2775. enum:
  2776. - TYPE_UNSPECIFIED
  2777. - REFERENCE
  2778. - COMMENT
  2779. default: TYPE_UNSPECIFIED
  2780. v1Node:
  2781. type: object
  2782. properties:
  2783. type:
  2784. $ref: '#/definitions/v1NodeType'
  2785. lineBreakNode:
  2786. $ref: '#/definitions/v1LineBreakNode'
  2787. paragraphNode:
  2788. $ref: '#/definitions/v1ParagraphNode'
  2789. codeBlockNode:
  2790. $ref: '#/definitions/v1CodeBlockNode'
  2791. headingNode:
  2792. $ref: '#/definitions/v1HeadingNode'
  2793. horizontalRuleNode:
  2794. $ref: '#/definitions/v1HorizontalRuleNode'
  2795. blockquoteNode:
  2796. $ref: '#/definitions/v1BlockquoteNode'
  2797. orderedListNode:
  2798. $ref: '#/definitions/v1OrderedListNode'
  2799. unorderedListNode:
  2800. $ref: '#/definitions/v1UnorderedListNode'
  2801. taskListNode:
  2802. $ref: '#/definitions/v1TaskListNode'
  2803. mathBlockNode:
  2804. $ref: '#/definitions/v1MathBlockNode'
  2805. tableNode:
  2806. $ref: '#/definitions/v1TableNode'
  2807. embeddedContentNode:
  2808. $ref: '#/definitions/v1EmbeddedContentNode'
  2809. textNode:
  2810. $ref: '#/definitions/v1TextNode'
  2811. boldNode:
  2812. $ref: '#/definitions/v1BoldNode'
  2813. italicNode:
  2814. $ref: '#/definitions/v1ItalicNode'
  2815. boldItalicNode:
  2816. $ref: '#/definitions/v1BoldItalicNode'
  2817. codeNode:
  2818. $ref: '#/definitions/v1CodeNode'
  2819. imageNode:
  2820. $ref: '#/definitions/v1ImageNode'
  2821. linkNode:
  2822. $ref: '#/definitions/v1LinkNode'
  2823. autoLinkNode:
  2824. $ref: '#/definitions/v1AutoLinkNode'
  2825. tagNode:
  2826. $ref: '#/definitions/v1TagNode'
  2827. strikethroughNode:
  2828. $ref: '#/definitions/v1StrikethroughNode'
  2829. escapingCharacterNode:
  2830. $ref: '#/definitions/v1EscapingCharacterNode'
  2831. mathNode:
  2832. $ref: '#/definitions/v1MathNode'
  2833. highlightNode:
  2834. $ref: '#/definitions/v1HighlightNode'
  2835. subscriptNode:
  2836. $ref: '#/definitions/v1SubscriptNode'
  2837. superscriptNode:
  2838. $ref: '#/definitions/v1SuperscriptNode'
  2839. referencedContentNode:
  2840. $ref: '#/definitions/v1ReferencedContentNode'
  2841. spoilerNode:
  2842. $ref: '#/definitions/v1SpoilerNode'
  2843. htmlElementNode:
  2844. $ref: '#/definitions/v1HTMLElementNode'
  2845. v1NodeType:
  2846. type: string
  2847. enum:
  2848. - NODE_UNSPECIFIED
  2849. - LINE_BREAK
  2850. - PARAGRAPH
  2851. - CODE_BLOCK
  2852. - HEADING
  2853. - HORIZONTAL_RULE
  2854. - BLOCKQUOTE
  2855. - ORDERED_LIST
  2856. - UNORDERED_LIST
  2857. - TASK_LIST
  2858. - MATH_BLOCK
  2859. - TABLE
  2860. - EMBEDDED_CONTENT
  2861. - TEXT
  2862. - BOLD
  2863. - ITALIC
  2864. - BOLD_ITALIC
  2865. - CODE
  2866. - IMAGE
  2867. - LINK
  2868. - AUTO_LINK
  2869. - TAG
  2870. - STRIKETHROUGH
  2871. - ESCAPING_CHARACTER
  2872. - MATH
  2873. - HIGHLIGHT
  2874. - SUBSCRIPT
  2875. - SUPERSCRIPT
  2876. - REFERENCED_CONTENT
  2877. - SPOILER
  2878. - HTML_ELEMENT
  2879. default: NODE_UNSPECIFIED
  2880. v1OrderedListNode:
  2881. type: object
  2882. properties:
  2883. number:
  2884. type: string
  2885. indent:
  2886. type: integer
  2887. format: int32
  2888. children:
  2889. type: array
  2890. items:
  2891. type: object
  2892. $ref: '#/definitions/v1Node'
  2893. v1ParagraphNode:
  2894. type: object
  2895. properties:
  2896. children:
  2897. type: array
  2898. items:
  2899. type: object
  2900. $ref: '#/definitions/v1Node'
  2901. v1ParseMarkdownRequest:
  2902. type: object
  2903. properties:
  2904. markdown:
  2905. type: string
  2906. v1ParseMarkdownResponse:
  2907. type: object
  2908. properties:
  2909. nodes:
  2910. type: array
  2911. items:
  2912. type: object
  2913. $ref: '#/definitions/v1Node'
  2914. v1Reaction:
  2915. type: object
  2916. properties:
  2917. id:
  2918. type: integer
  2919. format: int32
  2920. creator:
  2921. type: string
  2922. title: |-
  2923. The name of the creator.
  2924. Format: users/{id}
  2925. contentId:
  2926. type: string
  2927. reactionType:
  2928. $ref: '#/definitions/v1ReactionType'
  2929. v1ReactionType:
  2930. type: string
  2931. enum:
  2932. - TYPE_UNSPECIFIED
  2933. - THUMBS_UP
  2934. - THUMBS_DOWN
  2935. - HEART
  2936. - FIRE
  2937. - CLAPPING_HANDS
  2938. - LAUGH
  2939. - OK_HAND
  2940. - ROCKET
  2941. - EYES
  2942. - THINKING_FACE
  2943. - CLOWN_FACE
  2944. - QUESTION_MARK
  2945. default: TYPE_UNSPECIFIED
  2946. v1ReferencedContentNode:
  2947. type: object
  2948. properties:
  2949. resourceName:
  2950. type: string
  2951. params:
  2952. type: string
  2953. v1Resource:
  2954. type: object
  2955. properties:
  2956. name:
  2957. type: string
  2958. description: |-
  2959. The name of the resource.
  2960. Format: resources/{id}
  2961. id is the system generated unique identifier.
  2962. uid:
  2963. type: string
  2964. description: The user defined id of the resource.
  2965. createTime:
  2966. type: string
  2967. format: date-time
  2968. readOnly: true
  2969. filename:
  2970. type: string
  2971. content:
  2972. type: string
  2973. format: byte
  2974. externalLink:
  2975. type: string
  2976. type:
  2977. type: string
  2978. size:
  2979. type: string
  2980. format: int64
  2981. memo:
  2982. type: string
  2983. title: |-
  2984. The related memo.
  2985. Format: memos/{id}
  2986. v1RestoreMarkdownNodesRequest:
  2987. type: object
  2988. properties:
  2989. nodes:
  2990. type: array
  2991. items:
  2992. type: object
  2993. $ref: '#/definitions/v1Node'
  2994. v1RestoreMarkdownNodesResponse:
  2995. type: object
  2996. properties:
  2997. markdown:
  2998. type: string
  2999. v1RowStatus:
  3000. type: string
  3001. enum:
  3002. - ROW_STATUS_UNSPECIFIED
  3003. - ACTIVE
  3004. - ARCHIVED
  3005. default: ROW_STATUS_UNSPECIFIED
  3006. v1SearchMemosResponse:
  3007. type: object
  3008. properties:
  3009. memos:
  3010. type: array
  3011. items:
  3012. type: object
  3013. $ref: '#/definitions/v1Memo'
  3014. v1SearchResourcesResponse:
  3015. type: object
  3016. properties:
  3017. resources:
  3018. type: array
  3019. items:
  3020. type: object
  3021. $ref: '#/definitions/v1Resource'
  3022. v1SearchUsersResponse:
  3023. type: object
  3024. properties:
  3025. users:
  3026. type: array
  3027. items:
  3028. type: object
  3029. $ref: '#/definitions/v1User'
  3030. v1SpoilerNode:
  3031. type: object
  3032. properties:
  3033. content:
  3034. type: string
  3035. v1StrikethroughNode:
  3036. type: object
  3037. properties:
  3038. content:
  3039. type: string
  3040. v1StringifyMarkdownNodesRequest:
  3041. type: object
  3042. properties:
  3043. nodes:
  3044. type: array
  3045. items:
  3046. type: object
  3047. $ref: '#/definitions/v1Node'
  3048. v1StringifyMarkdownNodesResponse:
  3049. type: object
  3050. properties:
  3051. plainText:
  3052. type: string
  3053. v1SubscriptNode:
  3054. type: object
  3055. properties:
  3056. content:
  3057. type: string
  3058. v1SuperscriptNode:
  3059. type: object
  3060. properties:
  3061. content:
  3062. type: string
  3063. v1TableNode:
  3064. type: object
  3065. properties:
  3066. header:
  3067. type: array
  3068. items:
  3069. type: object
  3070. $ref: '#/definitions/v1Node'
  3071. delimiter:
  3072. type: array
  3073. items:
  3074. type: string
  3075. rows:
  3076. type: array
  3077. items:
  3078. type: object
  3079. $ref: '#/definitions/TableNodeRow'
  3080. v1TagNode:
  3081. type: object
  3082. properties:
  3083. content:
  3084. type: string
  3085. v1TaskListNode:
  3086. type: object
  3087. properties:
  3088. symbol:
  3089. type: string
  3090. indent:
  3091. type: integer
  3092. format: int32
  3093. complete:
  3094. type: boolean
  3095. children:
  3096. type: array
  3097. items:
  3098. type: object
  3099. $ref: '#/definitions/v1Node'
  3100. v1TextNode:
  3101. type: object
  3102. properties:
  3103. content:
  3104. type: string
  3105. v1UnorderedListNode:
  3106. type: object
  3107. properties:
  3108. symbol:
  3109. type: string
  3110. indent:
  3111. type: integer
  3112. format: int32
  3113. children:
  3114. type: array
  3115. items:
  3116. type: object
  3117. $ref: '#/definitions/v1Node'
  3118. v1User:
  3119. type: object
  3120. properties:
  3121. name:
  3122. type: string
  3123. title: |-
  3124. The name of the user.
  3125. Format: users/{id}
  3126. id:
  3127. type: integer
  3128. format: int32
  3129. description: The system generated uid of the user.
  3130. role:
  3131. $ref: '#/definitions/UserRole'
  3132. username:
  3133. type: string
  3134. email:
  3135. type: string
  3136. nickname:
  3137. type: string
  3138. avatarUrl:
  3139. type: string
  3140. description:
  3141. type: string
  3142. password:
  3143. type: string
  3144. rowStatus:
  3145. $ref: '#/definitions/v1RowStatus'
  3146. createTime:
  3147. type: string
  3148. format: date-time
  3149. updateTime:
  3150. type: string
  3151. format: date-time
  3152. v1UserAccessToken:
  3153. type: object
  3154. properties:
  3155. accessToken:
  3156. type: string
  3157. description:
  3158. type: string
  3159. issuedAt:
  3160. type: string
  3161. format: date-time
  3162. expiresAt:
  3163. type: string
  3164. format: date-time
  3165. v1Visibility:
  3166. type: string
  3167. enum:
  3168. - VISIBILITY_UNSPECIFIED
  3169. - PRIVATE
  3170. - PROTECTED
  3171. - PUBLIC
  3172. default: VISIBILITY_UNSPECIFIED
  3173. v1Webhook:
  3174. type: object
  3175. properties:
  3176. id:
  3177. type: integer
  3178. format: int32
  3179. creatorId:
  3180. type: integer
  3181. format: int32
  3182. createTime:
  3183. type: string
  3184. format: date-time
  3185. updateTime:
  3186. type: string
  3187. format: date-time
  3188. rowStatus:
  3189. $ref: '#/definitions/v1RowStatus'
  3190. name:
  3191. type: string
  3192. url:
  3193. type: string
  3194. v1WorkspaceProfile:
  3195. type: object
  3196. properties:
  3197. owner:
  3198. type: string
  3199. title: |-
  3200. The name of instance owner.
  3201. Format: "users/{id}"
  3202. version:
  3203. type: string
  3204. title: version is the current version of instance
  3205. mode:
  3206. type: string
  3207. description: mode is the instance mode (e.g. "prod", "dev" or "demo").
  3208. public:
  3209. type: boolean
  3210. description: public is a flag that the instance is open for other users.