apidocs.swagger.yaml 90 KB

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