apidocs.swagger.yaml 91 KB

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