apidocs.swagger.yaml 87 KB

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