apidocs.swagger.yaml 85 KB

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