apidocs.swagger.yaml 85 KB

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