1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313 |
- swagger: "2.0"
- info:
- title: api/v1/activity_service.proto
- version: version not set
- tags:
- - name: ActivityService
- - name: UserService
- - name: AuthService
- - name: IdentityProviderService
- - name: InboxService
- - name: MarkdownService
- - name: ResourceService
- - name: MemoService
- - name: WebhookService
- - name: WorkspaceService
- - name: WorkspaceSettingService
- consumes:
- - application/json
- produces:
- - application/json
- paths:
- /api/v1/auth/signin:
- post:
- summary: SignIn signs in the user with the given username and password.
- operationId: AuthService_SignIn
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: username
- description: The username to sign in with.
- in: query
- required: false
- type: string
- - name: password
- description: The password to sign in with.
- in: query
- required: false
- type: string
- - name: neverExpire
- description: Whether the session should never expire.
- in: query
- required: false
- type: boolean
- tags:
- - AuthService
- /api/v1/auth/signin/sso:
- post:
- summary: SignInWithSSO signs in the user with the given SSO code.
- operationId: AuthService_SignInWithSSO
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: idpId
- description: The ID of the SSO provider.
- in: query
- required: false
- type: integer
- format: int32
- - name: code
- description: The code to sign in with.
- in: query
- required: false
- type: string
- - name: redirectUri
- description: The redirect URI.
- in: query
- required: false
- type: string
- tags:
- - AuthService
- /api/v1/auth/signout:
- post:
- summary: SignOut signs out the user.
- operationId: AuthService_SignOut
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - AuthService
- /api/v1/auth/signup:
- post:
- summary: SignUp signs up the user with the given username and password.
- operationId: AuthService_SignUp
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: username
- description: The username to sign up with.
- in: query
- required: false
- type: string
- - name: password
- description: The password to sign up with.
- in: query
- required: false
- type: string
- tags:
- - AuthService
- /api/v1/auth/status:
- post:
- summary: GetAuthStatus returns the current auth status of the user.
- operationId: AuthService_GetAuthStatus
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - AuthService
- /api/v1/identityProviders:
- get:
- summary: ListIdentityProviders lists identity providers.
- operationId: IdentityProviderService_ListIdentityProviders
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListIdentityProvidersResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - IdentityProviderService
- post:
- summary: CreateIdentityProvider creates an identity provider.
- operationId: IdentityProviderService_CreateIdentityProvider
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1IdentityProvider'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: identityProvider
- description: The identityProvider to create.
- in: body
- required: true
- schema:
- $ref: '#/definitions/apiv1IdentityProvider'
- tags:
- - IdentityProviderService
- /api/v1/inboxes:
- get:
- summary: ListInboxes lists inboxes for a user.
- operationId: InboxService_ListInboxes
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListInboxesResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: user
- description: 'Format: users/{user}'
- in: query
- required: false
- type: string
- - name: pageSize
- description: The maximum number of inbox to return.
- in: query
- required: false
- type: integer
- format: int32
- - name: pageToken
- description: Provide this to retrieve the subsequent page.
- in: query
- required: false
- type: string
- tags:
- - InboxService
- /api/v1/markdown/link:metadata:
- get:
- summary: GetLinkMetadata returns metadata for a given link.
- operationId: MarkdownService_GetLinkMetadata
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1LinkMetadata'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: link
- in: query
- required: false
- type: string
- tags:
- - MarkdownService
- /api/v1/markdown/node:restore:
- post:
- summary: RestoreMarkdownNodes restores the given nodes to markdown content.
- operationId: MarkdownService_RestoreMarkdownNodes
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1RestoreMarkdownNodesResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1RestoreMarkdownNodesRequest'
- tags:
- - MarkdownService
- /api/v1/markdown/node:stringify:
- post:
- summary: StringifyMarkdownNodes stringify the given nodes to plain text content.
- operationId: MarkdownService_StringifyMarkdownNodes
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1StringifyMarkdownNodesResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1StringifyMarkdownNodesRequest'
- tags:
- - MarkdownService
- /api/v1/markdown:parse:
- post:
- summary: ParseMarkdown parses the given markdown content and returns a list of nodes.
- operationId: MarkdownService_ParseMarkdown
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ParseMarkdownResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1ParseMarkdownRequest'
- tags:
- - MarkdownService
- /api/v1/memos:
- get:
- summary: ListMemos lists memos with pagination and filter.
- operationId: MemoService_ListMemos
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemosResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: |-
- The parent is the owner of the memos.
- If not specified or `users/-`, it will list all memos.
- in: query
- required: false
- type: string
- - name: pageSize
- description: The maximum number of memos to return.
- in: query
- required: false
- type: integer
- format: int32
- - name: pageToken
- description: |-
- A page token, received from a previous `ListMemos` call.
- Provide this to retrieve the subsequent page.
- in: query
- required: false
- type: string
- - name: state
- description: |-
- The state of the memos to list.
- Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
- in: query
- required: false
- type: string
- enum:
- - STATE_UNSPECIFIED
- - NORMAL
- - ARCHIVED
- default: STATE_UNSPECIFIED
- - name: sort
- description: |-
- What field to sort the results by.
- Default to display_time.
- in: query
- required: false
- type: string
- - name: direction
- description: |-
- The direction to sort the results by.
- Default to DESC.
- in: query
- required: false
- type: string
- enum:
- - DIRECTION_UNSPECIFIED
- - ASC
- - DESC
- default: DIRECTION_UNSPECIFIED
- - name: filter
- description: |-
- Filter is a CEL expression to filter memos.
- Refer to `Shortcut.filter`.
- in: query
- required: false
- type: string
- - name: oldFilter
- description: |-
- [Deprecated] Old filter contains some specific conditions to filter memos.
- Format: "creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']"
- in: query
- required: false
- type: string
- tags:
- - MemoService
- post:
- summary: CreateMemo creates a memo.
- operationId: MemoService_CreateMemo
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Memo'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: memo
- description: The memo to create.
- in: body
- required: true
- schema:
- $ref: '#/definitions/apiv1Memo'
- required:
- - memo
- tags:
- - MemoService
- /api/v1/reactions/{id}:
- delete:
- summary: DeleteMemoReaction deletes a reaction for a memo.
- operationId: MemoService_DeleteMemoReaction
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: id
- description: |-
- The id of the reaction.
- Refer to the `Reaction.id`.
- in: path
- required: true
- type: integer
- format: int32
- tags:
- - MemoService
- /api/v1/resources:
- get:
- summary: ListResources lists all resources.
- operationId: ResourceService_ListResources
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListResourcesResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - ResourceService
- post:
- summary: CreateResource creates a new resource.
- operationId: ResourceService_CreateResource
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Resource'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: resource
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1Resource'
- tags:
- - ResourceService
- /api/v1/users:
- get:
- summary: ListUsers returns a list of users.
- operationId: UserService_ListUsers
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListUsersResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - UserService
- post:
- summary: CreateUser creates a new user.
- operationId: UserService_CreateUser
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: user
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1User'
- tags:
- - UserService
- /api/v1/users/-/stats:
- post:
- summary: ListAllUserStats returns all user stats.
- operationId: UserService_ListAllUserStats
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListAllUserStatsResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - UserService
- /api/v1/users:username:
- get:
- summary: GetUserByUsername gets a user by username.
- operationId: UserService_GetUserByUsername
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: username
- description: The username of the user.
- in: query
- required: false
- type: string
- tags:
- - UserService
- /api/v1/webhooks:
- get:
- summary: ListWebhooks returns a list of webhooks.
- operationId: WebhookService_ListWebhooks
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListWebhooksResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: creator
- description: The name of the creator.
- in: query
- required: false
- type: string
- tags:
- - WebhookService
- post:
- summary: CreateWebhook creates a new webhook.
- operationId: WebhookService_CreateWebhook
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Webhook'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/v1CreateWebhookRequest'
- tags:
- - WebhookService
- /api/v1/webhooks/{id}:
- get:
- summary: GetWebhook returns a webhook by id.
- operationId: WebhookService_GetWebhook
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Webhook'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: id
- in: path
- required: true
- type: integer
- format: int32
- tags:
- - WebhookService
- delete:
- summary: DeleteWebhook deletes a webhook by id.
- operationId: WebhookService_DeleteWebhook
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: id
- in: path
- required: true
- type: integer
- format: int32
- tags:
- - WebhookService
- /api/v1/webhooks/{webhook.id}:
- patch:
- summary: UpdateWebhook updates a webhook.
- operationId: WebhookService_UpdateWebhook
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Webhook'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: webhook.id
- in: path
- required: true
- type: integer
- format: int32
- - name: webhook
- in: body
- required: true
- schema:
- type: object
- properties:
- creator:
- type: string
- description: The name of the creator.
- createTime:
- type: string
- format: date-time
- updateTime:
- type: string
- format: date-time
- name:
- type: string
- url:
- type: string
- tags:
- - WebhookService
- /api/v1/workspace/profile:
- get:
- summary: GetWorkspaceProfile returns the workspace profile.
- operationId: WorkspaceService_GetWorkspaceProfile
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1WorkspaceProfile'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- tags:
- - WorkspaceService
- /api/v1/workspace/{name}:
- get:
- summary: GetWorkspaceSetting returns the setting by name.
- operationId: WorkspaceSettingService_GetWorkspaceSetting
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1WorkspaceSetting'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: |-
- The resource name of the workspace setting.
- Format: settings/{setting}
- in: path
- required: true
- type: string
- pattern: settings/[^/]+
- tags:
- - WorkspaceSettingService
- /api/v1/workspace/{setting.name}:
- patch:
- summary: SetWorkspaceSetting updates the setting.
- operationId: WorkspaceSettingService_SetWorkspaceSetting
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1WorkspaceSetting'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: setting.name
- description: |-
- name is the name of the setting.
- Format: settings/{setting}
- in: path
- required: true
- type: string
- pattern: settings/[^/]+
- - name: setting
- description: setting is the setting to update.
- in: body
- required: true
- schema:
- type: object
- properties:
- generalSetting:
- $ref: '#/definitions/apiv1WorkspaceGeneralSetting'
- storageSetting:
- $ref: '#/definitions/apiv1WorkspaceStorageSetting'
- memoRelatedSetting:
- $ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
- title: setting is the setting to update.
- tags:
- - WorkspaceSettingService
- /api/v1/{identityProvider.name}:
- patch:
- summary: UpdateIdentityProvider updates an identity provider.
- operationId: IdentityProviderService_UpdateIdentityProvider
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1IdentityProvider'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: identityProvider.name
- description: |-
- The name of the identityProvider.
- Format: identityProviders/{id}, id is the system generated auto-incremented id.
- in: path
- required: true
- type: string
- pattern: identityProviders/[^/]+
- - name: identityProvider
- description: The identityProvider to update.
- in: body
- required: true
- schema:
- type: object
- properties:
- type:
- $ref: '#/definitions/apiv1IdentityProviderType'
- title:
- type: string
- identifierFilter:
- type: string
- config:
- $ref: '#/definitions/apiv1IdentityProviderConfig'
- title: The identityProvider to update.
- tags:
- - IdentityProviderService
- /api/v1/{inbox.name}:
- patch:
- summary: UpdateInbox updates an inbox.
- operationId: InboxService_UpdateInbox
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Inbox'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: inbox.name
- description: |-
- The name of the inbox.
- Format: inboxes/{id}, id is the system generated auto-incremented id.
- in: path
- required: true
- type: string
- pattern: inboxes/[^/]+
- - name: inbox
- in: body
- required: true
- schema:
- type: object
- properties:
- sender:
- type: string
- title: 'Format: users/{user}'
- receiver:
- type: string
- title: 'Format: users/{user}'
- status:
- $ref: '#/definitions/v1InboxStatus'
- createTime:
- type: string
- format: date-time
- type:
- $ref: '#/definitions/v1InboxType'
- activityId:
- type: integer
- format: int32
- tags:
- - InboxService
- /api/v1/{memo.name}:
- patch:
- summary: UpdateMemo updates a memo.
- operationId: MemoService_UpdateMemo
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Memo'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: memo.name
- description: |-
- The name of the memo.
- Format: memos/{memo}, memo is the user defined id or uuid.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: memo
- description: |-
- The memo to update.
- The `name` field is required.
- in: body
- required: true
- schema:
- type: object
- properties:
- state:
- $ref: '#/definitions/v1State'
- creator:
- type: string
- title: |-
- The name of the creator.
- Format: users/{user}
- createTime:
- type: string
- format: date-time
- updateTime:
- type: string
- format: date-time
- displayTime:
- type: string
- format: date-time
- content:
- type: string
- nodes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- readOnly: true
- visibility:
- $ref: '#/definitions/v1Visibility'
- tags:
- type: array
- items:
- type: string
- readOnly: true
- pinned:
- type: boolean
- resources:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Resource'
- relations:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1MemoRelation'
- reactions:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Reaction'
- readOnly: true
- property:
- $ref: '#/definitions/v1MemoProperty'
- readOnly: true
- parent:
- type: string
- title: |-
- The name of the parent memo.
- Format: memos/{id}
- readOnly: true
- snippet:
- type: string
- description: The snippet of the memo content. Plain text only.
- readOnly: true
- location:
- $ref: '#/definitions/apiv1Location'
- description: The location of the memo.
- title: |-
- The memo to update.
- The `name` field is required.
- required:
- - memo
- tags:
- - MemoService
- /api/v1/{name_1}:
- get:
- summary: GetUser gets a user by name.
- operationId: UserService_GetUser
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_1
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- delete:
- summary: DeleteIdentityProvider deletes an identity provider.
- operationId: IdentityProviderService_DeleteIdentityProvider
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_1
- description: The name of the identityProvider to delete.
- in: path
- required: true
- type: string
- pattern: identityProviders/[^/]+
- tags:
- - IdentityProviderService
- /api/v1/{name_2}:
- get:
- summary: GetIdentityProvider gets an identity provider.
- operationId: IdentityProviderService_GetIdentityProvider
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1IdentityProvider'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_2
- description: The name of the identityProvider to get.
- in: path
- required: true
- type: string
- pattern: identityProviders/[^/]+
- tags:
- - IdentityProviderService
- delete:
- summary: DeleteInbox deletes an inbox.
- operationId: InboxService_DeleteInbox
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_2
- description: The name of the inbox to delete.
- in: path
- required: true
- type: string
- pattern: inboxes/[^/]+
- tags:
- - InboxService
- /api/v1/{name_3}:
- get:
- summary: GetResource returns a resource by name.
- operationId: ResourceService_GetResource
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Resource'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_3
- description: The name of the resource.
- in: path
- required: true
- type: string
- pattern: resources/[^/]+
- tags:
- - ResourceService
- delete:
- summary: DeleteResource deletes a resource by name.
- operationId: ResourceService_DeleteResource
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_3
- description: The name of the resource.
- in: path
- required: true
- type: string
- pattern: resources/[^/]+
- tags:
- - ResourceService
- /api/v1/{name_4}:
- get:
- summary: GetMemo gets a memo.
- operationId: MemoService_GetMemo
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Memo'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_4
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- delete:
- summary: DeleteMemo deletes a memo.
- operationId: MemoService_DeleteMemo
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name_4
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- /api/v1/{name}:
- get:
- summary: GetActivity returns the activity with the given id.
- operationId: ActivityService_GetActivity
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Activity'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: |-
- The name of the activity.
- Format: activities/{id}, id is the system generated auto-incremented id.
- in: path
- required: true
- type: string
- pattern: activities/[^/]+
- tags:
- - ActivityService
- delete:
- summary: DeleteUser deletes a user.
- operationId: UserService_DeleteUser
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- /api/v1/{name}/access_tokens:
- get:
- summary: ListUserAccessTokens returns a list of access tokens for a user.
- operationId: UserService_ListUserAccessTokens
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListUserAccessTokensResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- post:
- summary: CreateUserAccessToken creates a new access token for a user.
- operationId: UserService_CreateUserAccessToken
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1UserAccessToken'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/UserServiceCreateUserAccessTokenBody'
- tags:
- - UserService
- /api/v1/{name}/access_tokens/{accessToken}:
- delete:
- summary: DeleteUserAccessToken deletes an access token for a user.
- operationId: UserService_DeleteUserAccessToken
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: accessToken
- description: access_token is the access token to delete.
- in: path
- required: true
- type: string
- tags:
- - UserService
- /api/v1/{name}/comments:
- get:
- summary: ListMemoComments lists comments for a memo.
- operationId: MemoService_ListMemoComments
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemoCommentsResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- post:
- summary: CreateMemoComment creates a comment for a memo.
- operationId: MemoService_CreateMemoComment
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Memo'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: comment
- description: The comment to create.
- in: body
- required: true
- schema:
- $ref: '#/definitions/apiv1Memo'
- tags:
- - MemoService
- /api/v1/{name}/reactions:
- get:
- summary: ListMemoReactions lists reactions for a memo.
- operationId: MemoService_ListMemoReactions
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemoReactionsResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- post:
- summary: UpsertMemoReaction upserts a reaction for a memo.
- operationId: MemoService_UpsertMemoReaction
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Reaction'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/MemoServiceUpsertMemoReactionBody'
- tags:
- - MemoService
- /api/v1/{name}/relations:
- get:
- summary: ListMemoRelations lists relations for a memo.
- operationId: MemoService_ListMemoRelations
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemoRelationsResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- patch:
- summary: SetMemoRelations sets relations for a memo.
- operationId: MemoService_SetMemoRelations
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/MemoServiceSetMemoRelationsBody'
- tags:
- - MemoService
- /api/v1/{name}/resources:
- get:
- summary: ListMemoResources lists resources for a memo.
- operationId: MemoService_ListMemoResources
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemoResourcesResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- tags:
- - MemoService
- patch:
- summary: SetMemoResources sets resources for a memo.
- operationId: MemoService_SetMemoResources
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the memo.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/MemoServiceSetMemoResourcesBody'
- tags:
- - MemoService
- /api/v1/{name}/setting:
- get:
- summary: GetUserSetting gets the setting of a user.
- operationId: UserService_GetUserSetting
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1UserSetting'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- /api/v1/{name}/stats:
- get:
- summary: GetUserStats returns the stats of a user.
- operationId: UserService_GetUserStats
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1UserStats'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- /api/v1/{parent}/memos:
- get:
- summary: ListMemos lists memos with pagination and filter.
- operationId: MemoService_ListMemos2
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListMemosResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: |-
- The parent is the owner of the memos.
- If not specified or `users/-`, it will list all memos.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: pageSize
- description: The maximum number of memos to return.
- in: query
- required: false
- type: integer
- format: int32
- - name: pageToken
- description: |-
- A page token, received from a previous `ListMemos` call.
- Provide this to retrieve the subsequent page.
- in: query
- required: false
- type: string
- - name: state
- description: |-
- The state of the memos to list.
- Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
- in: query
- required: false
- type: string
- enum:
- - STATE_UNSPECIFIED
- - NORMAL
- - ARCHIVED
- default: STATE_UNSPECIFIED
- - name: sort
- description: |-
- What field to sort the results by.
- Default to display_time.
- in: query
- required: false
- type: string
- - name: direction
- description: |-
- The direction to sort the results by.
- Default to DESC.
- in: query
- required: false
- type: string
- enum:
- - DIRECTION_UNSPECIFIED
- - ASC
- - DESC
- default: DIRECTION_UNSPECIFIED
- - name: filter
- description: |-
- Filter is a CEL expression to filter memos.
- Refer to `Shortcut.filter`.
- in: query
- required: false
- type: string
- - name: oldFilter
- description: |-
- [Deprecated] Old filter contains some specific conditions to filter memos.
- Format: "creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']"
- in: query
- required: false
- type: string
- tags:
- - MemoService
- /api/v1/{parent}/shortcuts:
- get:
- summary: ListShortcuts returns a list of shortcuts for a user.
- operationId: UserService_ListShortcuts
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1ListShortcutsResponse'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- tags:
- - UserService
- post:
- summary: CreateShortcut creates a new shortcut for a user.
- operationId: UserService_CreateShortcut
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Shortcut'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: shortcut
- in: body
- required: true
- schema:
- $ref: '#/definitions/apiv1Shortcut'
- - name: validateOnly
- in: query
- required: false
- type: boolean
- tags:
- - UserService
- /api/v1/{parent}/shortcuts/{id}:
- delete:
- summary: DeleteShortcut deletes a shortcut for a user.
- operationId: UserService_DeleteShortcut
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: id
- description: The id of the shortcut.
- in: path
- required: true
- type: string
- tags:
- - UserService
- /api/v1/{parent}/shortcuts/{shortcut.id}:
- patch:
- summary: UpdateShortcut updates a shortcut for a user.
- operationId: UserService_UpdateShortcut
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1Shortcut'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: shortcut.id
- in: path
- required: true
- type: string
- - name: shortcut
- in: body
- required: true
- schema:
- type: object
- properties:
- title:
- type: string
- filter:
- type: string
- tags:
- - UserService
- /api/v1/{parent}/tags/{tag}:
- delete:
- summary: DeleteMemoTag deletes a tag for a memo.
- operationId: MemoService_DeleteMemoTag
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: |-
- The parent, who owns the tags.
- Format: memos/{id}. Use "memos/-" to delete all tags.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: tag
- in: path
- required: true
- type: string
- - name: deleteRelatedMemos
- in: query
- required: false
- type: boolean
- tags:
- - MemoService
- /api/v1/{parent}/tags:rename:
- patch:
- summary: RenameMemoTag renames a tag for a memo.
- operationId: MemoService_RenameMemoTag
- responses:
- "200":
- description: A successful response.
- schema:
- type: object
- properties: {}
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: parent
- description: |-
- The parent, who owns the tags.
- Format: memos/{id}. Use "memos/-" to rename all tags.
- in: path
- required: true
- type: string
- pattern: memos/[^/]+
- - name: body
- in: body
- required: true
- schema:
- $ref: '#/definitions/MemoServiceRenameMemoTagBody'
- tags:
- - MemoService
- /api/v1/{resource.name}:
- patch:
- summary: UpdateResource updates a resource.
- operationId: ResourceService_UpdateResource
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1Resource'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: resource.name
- description: |-
- The name of the resource.
- Format: resources/{resource}, resource is the user defined if or uuid.
- in: path
- required: true
- type: string
- pattern: resources/[^/]+
- - name: resource
- in: body
- required: true
- schema:
- type: object
- properties:
- createTime:
- type: string
- format: date-time
- readOnly: true
- filename:
- type: string
- content:
- type: string
- format: byte
- externalLink:
- type: string
- type:
- type: string
- size:
- type: string
- format: int64
- memo:
- type: string
- description: The related memo. Refer to `Memo.name`.
- tags:
- - ResourceService
- /api/v1/{setting.name}:
- patch:
- summary: UpdateUserSetting updates the setting of a user.
- operationId: UserService_UpdateUserSetting
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiv1UserSetting'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: setting.name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+/setting
- - name: setting
- in: body
- required: true
- schema:
- type: object
- properties:
- locale:
- type: string
- description: The preferred locale of the user.
- appearance:
- type: string
- description: The preferred appearance of the user.
- memoVisibility:
- type: string
- description: The default visibility of the memo.
- required:
- - setting
- tags:
- - UserService
- /api/v1/{user.name}:
- patch:
- summary: UpdateUser updates a user.
- operationId: UserService_UpdateUser
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/v1User'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: user.name
- description: |-
- The name of the user.
- Format: users/{id}, id is the system generated auto-incremented id.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: user
- in: body
- required: true
- schema:
- type: object
- properties:
- role:
- $ref: '#/definitions/UserRole'
- username:
- type: string
- email:
- type: string
- nickname:
- type: string
- avatarUrl:
- type: string
- description:
- type: string
- password:
- type: string
- state:
- $ref: '#/definitions/v1State'
- createTime:
- type: string
- format: date-time
- readOnly: true
- updateTime:
- type: string
- format: date-time
- readOnly: true
- required:
- - user
- tags:
- - UserService
- /file/{name}/avatar:
- get:
- summary: GetUserAvatarBinary gets the avatar of a user.
- operationId: UserService_GetUserAvatarBinary
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiHttpBody'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the user.
- in: path
- required: true
- type: string
- pattern: users/[^/]+
- - name: httpBody.contentType
- description: The HTTP Content-Type header value specifying the content type of the body.
- in: query
- required: false
- type: string
- - name: httpBody.data
- description: The HTTP request/response body as raw binary.
- in: query
- required: false
- type: string
- format: byte
- tags:
- - UserService
- /file/{name}/{filename}:
- get:
- summary: GetResourceBinary returns a resource binary by name.
- operationId: ResourceService_GetResourceBinary
- responses:
- "200":
- description: A successful response.
- schema:
- $ref: '#/definitions/apiHttpBody'
- default:
- description: An unexpected error response.
- schema:
- $ref: '#/definitions/googlerpcStatus'
- parameters:
- - name: name
- description: The name of the resource.
- in: path
- required: true
- type: string
- pattern: resources/[^/]+
- - name: filename
- description: The filename of the resource. Mainly used for downloading.
- in: path
- required: true
- type: string
- - name: thumbnail
- description: A flag indicating if the thumbnail version of the resource should be returned
- in: query
- required: false
- type: boolean
- tags:
- - ResourceService
- definitions:
- ListNodeKind:
- type: string
- enum:
- - KIND_UNSPECIFIED
- - ORDERED
- - UNORDERED
- - DESCRIPTION
- default: KIND_UNSPECIFIED
- MemoServiceRenameMemoTagBody:
- type: object
- properties:
- oldTag:
- type: string
- newTag:
- type: string
- MemoServiceSetMemoRelationsBody:
- type: object
- properties:
- relations:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1MemoRelation'
- MemoServiceSetMemoResourcesBody:
- type: object
- properties:
- resources:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Resource'
- MemoServiceUpsertMemoReactionBody:
- type: object
- properties:
- reaction:
- $ref: '#/definitions/v1Reaction'
- TableNodeRow:
- type: object
- properties:
- cells:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- UserRole:
- type: string
- enum:
- - ROLE_UNSPECIFIED
- - HOST
- - ADMIN
- - USER
- default: ROLE_UNSPECIFIED
- UserServiceCreateUserAccessTokenBody:
- type: object
- properties:
- description:
- type: string
- expiresAt:
- type: string
- format: date-time
- UserStatsMemoTypeStats:
- type: object
- properties:
- linkCount:
- type: integer
- format: int32
- codeCount:
- type: integer
- format: int32
- todoCount:
- type: integer
- format: int32
- undoCount:
- type: integer
- format: int32
- WorkspaceStorageSettingS3Config:
- type: object
- properties:
- accessKeyId:
- type: string
- accessKeySecret:
- type: string
- endpoint:
- type: string
- region:
- type: string
- bucket:
- type: string
- usePathStyle:
- type: boolean
- title: 'Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/'
- apiHttpBody:
- type: object
- properties:
- contentType:
- type: string
- description: The HTTP Content-Type header value specifying the content type of the body.
- data:
- type: string
- format: byte
- description: The HTTP request/response body as raw binary.
- extensions:
- type: array
- items:
- type: object
- $ref: '#/definitions/protobufAny'
- description: |-
- Application specific response metadata. Must be set in the first response
- for streaming APIs.
- description: |-
- Message that represents an arbitrary HTTP body. It should only be used for
- payload formats that can't be represented as JSON, such as raw binary or
- an HTML page.
- This message can be used both in streaming and non-streaming API methods in
- the request as well as the response.
- It can be used as a top-level request field, which is convenient if one
- wants to extract parameters from either the URL or HTTP template into the
- request fields and also want access to the raw HTTP body.
- Example:
- message GetResourceRequest {
- // A unique request id.
- string request_id = 1;
- // The raw HTTP body is bound to this field.
- google.api.HttpBody http_body = 2;
- }
- service ResourceService {
- rpc GetResource(GetResourceRequest)
- returns (google.api.HttpBody);
- rpc UpdateResource(google.api.HttpBody)
- returns (google.protobuf.Empty);
- }
- Example with streaming methods:
- service CaldavService {
- rpc GetCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
- rpc UpdateCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
- }
- Use of this type only changes how the request and response bodies are
- handled, all other features will continue to work unchanged.
- apiv1ActivityMemoCommentPayload:
- type: object
- properties:
- memo:
- type: string
- description: |-
- The memo name of comment.
- Refer to `Memo.name`.
- relatedMemo:
- type: string
- description: The name of related memo.
- description: ActivityMemoCommentPayload represents the payload of a memo comment activity.
- apiv1ActivityPayload:
- type: object
- properties:
- memoComment:
- $ref: '#/definitions/apiv1ActivityMemoCommentPayload'
- apiv1FieldMapping:
- type: object
- properties:
- identifier:
- type: string
- displayName:
- type: string
- email:
- type: string
- apiv1IdentityProvider:
- type: object
- properties:
- name:
- type: string
- description: |-
- The name of the identityProvider.
- Format: identityProviders/{id}, id is the system generated auto-incremented id.
- type:
- $ref: '#/definitions/apiv1IdentityProviderType'
- title:
- type: string
- identifierFilter:
- type: string
- config:
- $ref: '#/definitions/apiv1IdentityProviderConfig'
- apiv1IdentityProviderConfig:
- type: object
- properties:
- oauth2Config:
- $ref: '#/definitions/apiv1OAuth2Config'
- apiv1IdentityProviderType:
- type: string
- enum:
- - TYPE_UNSPECIFIED
- - OAUTH2
- default: TYPE_UNSPECIFIED
- apiv1Location:
- type: object
- properties:
- placeholder:
- type: string
- latitude:
- type: number
- format: double
- longitude:
- type: number
- format: double
- apiv1Memo:
- type: object
- properties:
- name:
- type: string
- description: |-
- The name of the memo.
- Format: memos/{memo}, memo is the user defined id or uuid.
- readOnly: true
- state:
- $ref: '#/definitions/v1State'
- creator:
- type: string
- title: |-
- The name of the creator.
- Format: users/{user}
- createTime:
- type: string
- format: date-time
- updateTime:
- type: string
- format: date-time
- displayTime:
- type: string
- format: date-time
- content:
- type: string
- nodes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- readOnly: true
- visibility:
- $ref: '#/definitions/v1Visibility'
- tags:
- type: array
- items:
- type: string
- readOnly: true
- pinned:
- type: boolean
- resources:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Resource'
- relations:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1MemoRelation'
- reactions:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Reaction'
- readOnly: true
- property:
- $ref: '#/definitions/v1MemoProperty'
- readOnly: true
- parent:
- type: string
- title: |-
- The name of the parent memo.
- Format: memos/{id}
- readOnly: true
- snippet:
- type: string
- description: The snippet of the memo content. Plain text only.
- readOnly: true
- location:
- $ref: '#/definitions/apiv1Location'
- description: The location of the memo.
- apiv1OAuth2Config:
- type: object
- properties:
- clientId:
- type: string
- clientSecret:
- type: string
- authUrl:
- type: string
- tokenUrl:
- type: string
- userInfoUrl:
- type: string
- scopes:
- type: array
- items:
- type: string
- fieldMapping:
- $ref: '#/definitions/apiv1FieldMapping'
- apiv1Shortcut:
- type: object
- properties:
- id:
- type: string
- title:
- type: string
- filter:
- type: string
- apiv1UserSetting:
- type: object
- properties:
- name:
- type: string
- description: The name of the user.
- locale:
- type: string
- description: The preferred locale of the user.
- appearance:
- type: string
- description: The preferred appearance of the user.
- memoVisibility:
- type: string
- description: The default visibility of the memo.
- apiv1WorkspaceCustomProfile:
- type: object
- properties:
- title:
- type: string
- description:
- type: string
- logoUrl:
- type: string
- locale:
- type: string
- appearance:
- type: string
- apiv1WorkspaceGeneralSetting:
- type: object
- properties:
- disallowUserRegistration:
- type: boolean
- description: disallow_user_registration disallows user registration.
- disallowPasswordAuth:
- type: boolean
- description: disallow_password_auth disallows password authentication.
- additionalScript:
- type: string
- description: additional_script is the additional script.
- additionalStyle:
- type: string
- description: additional_style is the additional style.
- customProfile:
- $ref: '#/definitions/apiv1WorkspaceCustomProfile'
- description: custom_profile is the custom profile.
- weekStartDayOffset:
- type: integer
- format: int32
- description: |-
- week_start_day_offset is the week start day offset from Sunday.
- 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
- Default is Sunday.
- disallowChangeUsername:
- type: boolean
- description: disallow_change_username disallows changing username.
- disallowChangeNickname:
- type: boolean
- description: disallow_change_nickname disallows changing nickname.
- apiv1WorkspaceMemoRelatedSetting:
- type: object
- properties:
- disallowPublicVisibility:
- type: boolean
- description: disallow_public_visibility disallows set memo as public visibility.
- displayWithUpdateTime:
- type: boolean
- description: display_with_update_time orders and displays memo with update time.
- contentLengthLimit:
- type: integer
- format: int32
- description: content_length_limit is the limit of content length. Unit is byte.
- enableAutoCompact:
- type: boolean
- description: enable_auto_compact enables auto compact for large content.
- enableDoubleClickEdit:
- type: boolean
- description: enable_double_click_edit enables editing on double click.
- enableLinkPreview:
- type: boolean
- description: enable_link_preview enables links preview.
- enableComment:
- type: boolean
- description: enable_comment enables comment.
- enableLocation:
- type: boolean
- description: enable_location enables setting location for memo.
- reactions:
- type: array
- items:
- type: string
- description: reactions is the list of reactions.
- disableMarkdownShortcuts:
- type: boolean
- description: disable_markdown_shortcuts disallow the registration of markdown shortcuts.
- apiv1WorkspaceSetting:
- type: object
- properties:
- name:
- type: string
- title: |-
- name is the name of the setting.
- Format: settings/{setting}
- generalSetting:
- $ref: '#/definitions/apiv1WorkspaceGeneralSetting'
- storageSetting:
- $ref: '#/definitions/apiv1WorkspaceStorageSetting'
- memoRelatedSetting:
- $ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
- apiv1WorkspaceStorageSetting:
- type: object
- properties:
- storageType:
- $ref: '#/definitions/apiv1WorkspaceStorageSettingStorageType'
- description: storage_type is the storage type.
- filepathTemplate:
- type: string
- title: |-
- The template of file path.
- e.g. assets/{timestamp}_{filename}
- uploadSizeLimitMb:
- type: string
- format: int64
- description: The max upload size in megabytes.
- s3Config:
- $ref: '#/definitions/WorkspaceStorageSettingS3Config'
- description: The S3 config.
- apiv1WorkspaceStorageSettingStorageType:
- type: string
- enum:
- - STORAGE_TYPE_UNSPECIFIED
- - DATABASE
- - LOCAL
- - S3
- default: STORAGE_TYPE_UNSPECIFIED
- description: |2-
- - DATABASE: DATABASE is the database storage type.
- - LOCAL: LOCAL is the local storage type.
- - S3: S3 is the S3 storage type.
- googlerpcStatus:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- $ref: '#/definitions/protobufAny'
- protobufAny:
- type: object
- properties:
- '@type':
- type: string
- description: |-
- A URL/resource name that uniquely identifies the type of the serialized
- protocol buffer message. This string must contain at least
- one "/" character. The last segment of the URL's path must represent
- the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be in a canonical form
- (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the binary all types that they
- expect it to use in the context of Any. However, for URLs which use the
- scheme `http`, `https`, or no scheme, one can optionally set up a type
- server that maps type URLs to message definitions as follows:
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
- Note: this functionality is not currently available in the official
- protobuf release, and it is not used for type URLs beginning with
- type.googleapis.com. As of May 2023, there are no widely used type server
- implementations and no plans to implement one.
- Schemes other than `http`, `https` (or the empty scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: |-
- `Any` contains an arbitrary serialized protocol buffer message along with a
- URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any values in the form
- of utility functions or additional generated methods of the Any type.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
- Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- // or ...
- if (any.isSameTypeAs(Foo.getDefaultInstance())) {
- foo = any.unpack(Foo.getDefaultInstance());
- }
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
- The pack methods provided by protobuf library will by default use
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
- methods only use the fully qualified type name after the last '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
- name "y.z".
- JSON
- ====
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with an
- additional field `@type` which contains the type URL. Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": <string>,
- "lastName": <string>
- }
- If the embedded message type is well-known and has a custom JSON
- representation, that representation will be embedded adding a field
- `value` which holds the custom JSON in addition to the `@type`
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- v1Activity:
- type: object
- properties:
- name:
- type: string
- title: |-
- The name of the activity.
- Format: activities/{id}
- creator:
- type: string
- title: |-
- The name of the creator.
- Format: users/{user}
- type:
- type: string
- description: The type of the activity.
- level:
- type: string
- description: The level of the activity.
- createTime:
- type: string
- format: date-time
- description: The create time of the activity.
- readOnly: true
- payload:
- $ref: '#/definitions/apiv1ActivityPayload'
- description: The payload of the activity.
- v1AutoLinkNode:
- type: object
- properties:
- url:
- type: string
- isRawText:
- type: boolean
- v1BlockquoteNode:
- type: object
- properties:
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1BoldItalicNode:
- type: object
- properties:
- symbol:
- type: string
- content:
- type: string
- v1BoldNode:
- type: object
- properties:
- symbol:
- type: string
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1CodeBlockNode:
- type: object
- properties:
- language:
- type: string
- content:
- type: string
- v1CodeNode:
- type: object
- properties:
- content:
- type: string
- v1CreateWebhookRequest:
- type: object
- properties:
- name:
- type: string
- url:
- type: string
- v1Direction:
- type: string
- enum:
- - DIRECTION_UNSPECIFIED
- - ASC
- - DESC
- default: DIRECTION_UNSPECIFIED
- v1EmbeddedContentNode:
- type: object
- properties:
- resourceName:
- type: string
- params:
- type: string
- v1EscapingCharacterNode:
- type: object
- properties:
- symbol:
- type: string
- v1HTMLElementNode:
- type: object
- properties:
- tagName:
- type: string
- attributes:
- type: object
- additionalProperties:
- type: string
- v1HeadingNode:
- type: object
- properties:
- level:
- type: integer
- format: int32
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1HighlightNode:
- type: object
- properties:
- content:
- type: string
- v1HorizontalRuleNode:
- type: object
- properties:
- symbol:
- type: string
- v1ImageNode:
- type: object
- properties:
- altText:
- type: string
- url:
- type: string
- v1Inbox:
- type: object
- properties:
- name:
- type: string
- description: |-
- The name of the inbox.
- Format: inboxes/{id}, id is the system generated auto-incremented id.
- sender:
- type: string
- title: 'Format: users/{user}'
- receiver:
- type: string
- title: 'Format: users/{user}'
- status:
- $ref: '#/definitions/v1InboxStatus'
- createTime:
- type: string
- format: date-time
- type:
- $ref: '#/definitions/v1InboxType'
- activityId:
- type: integer
- format: int32
- v1InboxStatus:
- type: string
- enum:
- - STATUS_UNSPECIFIED
- - UNREAD
- - ARCHIVED
- default: STATUS_UNSPECIFIED
- v1InboxType:
- type: string
- enum:
- - TYPE_UNSPECIFIED
- - MEMO_COMMENT
- - VERSION_UPDATE
- default: TYPE_UNSPECIFIED
- v1ItalicNode:
- type: object
- properties:
- symbol:
- type: string
- content:
- type: string
- v1LineBreakNode:
- type: object
- v1LinkMetadata:
- type: object
- properties:
- title:
- type: string
- description:
- type: string
- image:
- type: string
- v1LinkNode:
- type: object
- properties:
- text:
- type: string
- url:
- type: string
- v1ListAllUserStatsResponse:
- type: object
- properties:
- userStats:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1UserStats'
- v1ListIdentityProvidersResponse:
- type: object
- properties:
- identityProviders:
- type: array
- items:
- type: object
- $ref: '#/definitions/apiv1IdentityProvider'
- v1ListInboxesResponse:
- type: object
- properties:
- inboxes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Inbox'
- nextPageToken:
- type: string
- description: |-
- A token, which can be sent as `page_token` to retrieve the next page.
- If this field is omitted, there are no subsequent pages.
- v1ListMemoCommentsResponse:
- type: object
- properties:
- memos:
- type: array
- items:
- type: object
- $ref: '#/definitions/apiv1Memo'
- v1ListMemoReactionsResponse:
- type: object
- properties:
- reactions:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Reaction'
- v1ListMemoRelationsResponse:
- type: object
- properties:
- relations:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1MemoRelation'
- v1ListMemoResourcesResponse:
- type: object
- properties:
- resources:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Resource'
- v1ListMemosResponse:
- type: object
- properties:
- memos:
- type: array
- items:
- type: object
- $ref: '#/definitions/apiv1Memo'
- nextPageToken:
- type: string
- description: |-
- A token, which can be sent as `page_token` to retrieve the next page.
- If this field is omitted, there are no subsequent pages.
- v1ListNode:
- type: object
- properties:
- kind:
- $ref: '#/definitions/ListNodeKind'
- indent:
- type: integer
- format: int32
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1ListResourcesResponse:
- type: object
- properties:
- resources:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Resource'
- v1ListShortcutsResponse:
- type: object
- properties:
- shortcuts:
- type: array
- items:
- type: object
- $ref: '#/definitions/apiv1Shortcut'
- v1ListUserAccessTokensResponse:
- type: object
- properties:
- accessTokens:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1UserAccessToken'
- v1ListUsersResponse:
- type: object
- properties:
- users:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1User'
- v1ListWebhooksResponse:
- type: object
- properties:
- webhooks:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Webhook'
- v1MathBlockNode:
- type: object
- properties:
- content:
- type: string
- v1MathNode:
- type: object
- properties:
- content:
- type: string
- v1MemoProperty:
- type: object
- properties:
- hasLink:
- type: boolean
- hasTaskList:
- type: boolean
- hasCode:
- type: boolean
- hasIncompleteTasks:
- type: boolean
- v1MemoRelation:
- type: object
- properties:
- memo:
- $ref: '#/definitions/v1MemoRelationMemo'
- title: |-
- The name of memo.
- Format: memos/{id}
- relatedMemo:
- $ref: '#/definitions/v1MemoRelationMemo'
- title: |-
- The name of related memo.
- Format: memos/{id}
- type:
- $ref: '#/definitions/v1MemoRelationType'
- v1MemoRelationMemo:
- type: object
- properties:
- name:
- type: string
- title: |-
- The name of the memo.
- Format: memos/{id}
- uid:
- type: string
- snippet:
- type: string
- description: The snippet of the memo content. Plain text only.
- readOnly: true
- v1MemoRelationType:
- type: string
- enum:
- - TYPE_UNSPECIFIED
- - REFERENCE
- - COMMENT
- default: TYPE_UNSPECIFIED
- v1Node:
- type: object
- properties:
- type:
- $ref: '#/definitions/v1NodeType'
- lineBreakNode:
- $ref: '#/definitions/v1LineBreakNode'
- description: Block nodes.
- paragraphNode:
- $ref: '#/definitions/v1ParagraphNode'
- codeBlockNode:
- $ref: '#/definitions/v1CodeBlockNode'
- headingNode:
- $ref: '#/definitions/v1HeadingNode'
- horizontalRuleNode:
- $ref: '#/definitions/v1HorizontalRuleNode'
- blockquoteNode:
- $ref: '#/definitions/v1BlockquoteNode'
- listNode:
- $ref: '#/definitions/v1ListNode'
- orderedListItemNode:
- $ref: '#/definitions/v1OrderedListItemNode'
- unorderedListItemNode:
- $ref: '#/definitions/v1UnorderedListItemNode'
- taskListItemNode:
- $ref: '#/definitions/v1TaskListItemNode'
- mathBlockNode:
- $ref: '#/definitions/v1MathBlockNode'
- tableNode:
- $ref: '#/definitions/v1TableNode'
- embeddedContentNode:
- $ref: '#/definitions/v1EmbeddedContentNode'
- textNode:
- $ref: '#/definitions/v1TextNode'
- description: Inline nodes.
- boldNode:
- $ref: '#/definitions/v1BoldNode'
- italicNode:
- $ref: '#/definitions/v1ItalicNode'
- boldItalicNode:
- $ref: '#/definitions/v1BoldItalicNode'
- codeNode:
- $ref: '#/definitions/v1CodeNode'
- imageNode:
- $ref: '#/definitions/v1ImageNode'
- linkNode:
- $ref: '#/definitions/v1LinkNode'
- autoLinkNode:
- $ref: '#/definitions/v1AutoLinkNode'
- tagNode:
- $ref: '#/definitions/v1TagNode'
- strikethroughNode:
- $ref: '#/definitions/v1StrikethroughNode'
- escapingCharacterNode:
- $ref: '#/definitions/v1EscapingCharacterNode'
- mathNode:
- $ref: '#/definitions/v1MathNode'
- highlightNode:
- $ref: '#/definitions/v1HighlightNode'
- subscriptNode:
- $ref: '#/definitions/v1SubscriptNode'
- superscriptNode:
- $ref: '#/definitions/v1SuperscriptNode'
- referencedContentNode:
- $ref: '#/definitions/v1ReferencedContentNode'
- spoilerNode:
- $ref: '#/definitions/v1SpoilerNode'
- htmlElementNode:
- $ref: '#/definitions/v1HTMLElementNode'
- v1NodeType:
- type: string
- enum:
- - NODE_UNSPECIFIED
- - LINE_BREAK
- - PARAGRAPH
- - CODE_BLOCK
- - HEADING
- - HORIZONTAL_RULE
- - BLOCKQUOTE
- - LIST
- - ORDERED_LIST_ITEM
- - UNORDERED_LIST_ITEM
- - TASK_LIST_ITEM
- - MATH_BLOCK
- - TABLE
- - EMBEDDED_CONTENT
- - TEXT
- - BOLD
- - ITALIC
- - BOLD_ITALIC
- - CODE
- - IMAGE
- - LINK
- - AUTO_LINK
- - TAG
- - STRIKETHROUGH
- - ESCAPING_CHARACTER
- - MATH
- - HIGHLIGHT
- - SUBSCRIPT
- - SUPERSCRIPT
- - REFERENCED_CONTENT
- - SPOILER
- - HTML_ELEMENT
- default: NODE_UNSPECIFIED
- description: |2-
- - LINE_BREAK: Block nodes.
- - TEXT: Inline nodes.
- v1OrderedListItemNode:
- type: object
- properties:
- number:
- type: string
- indent:
- type: integer
- format: int32
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1ParagraphNode:
- type: object
- properties:
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1ParseMarkdownRequest:
- type: object
- properties:
- markdown:
- type: string
- v1ParseMarkdownResponse:
- type: object
- properties:
- nodes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1Reaction:
- type: object
- properties:
- id:
- type: integer
- format: int32
- creator:
- type: string
- title: |-
- The name of the creator.
- Format: users/{user}
- contentId:
- type: string
- description: |-
- The content identifier.
- For memo, it should be the `Memo.name`.
- reactionType:
- type: string
- v1ReferencedContentNode:
- type: object
- properties:
- resourceName:
- type: string
- params:
- type: string
- v1Resource:
- type: object
- properties:
- name:
- type: string
- description: |-
- The name of the resource.
- Format: resources/{resource}, resource is the user defined if or uuid.
- createTime:
- type: string
- format: date-time
- readOnly: true
- filename:
- type: string
- content:
- type: string
- format: byte
- externalLink:
- type: string
- type:
- type: string
- size:
- type: string
- format: int64
- memo:
- type: string
- description: The related memo. Refer to `Memo.name`.
- v1RestoreMarkdownNodesRequest:
- type: object
- properties:
- nodes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1RestoreMarkdownNodesResponse:
- type: object
- properties:
- markdown:
- type: string
- v1SpoilerNode:
- type: object
- properties:
- content:
- type: string
- v1State:
- type: string
- enum:
- - STATE_UNSPECIFIED
- - NORMAL
- - ARCHIVED
- default: STATE_UNSPECIFIED
- v1StrikethroughNode:
- type: object
- properties:
- content:
- type: string
- v1StringifyMarkdownNodesRequest:
- type: object
- properties:
- nodes:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1StringifyMarkdownNodesResponse:
- type: object
- properties:
- plainText:
- type: string
- v1SubscriptNode:
- type: object
- properties:
- content:
- type: string
- v1SuperscriptNode:
- type: object
- properties:
- content:
- type: string
- v1TableNode:
- type: object
- properties:
- header:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- delimiter:
- type: array
- items:
- type: string
- rows:
- type: array
- items:
- type: object
- $ref: '#/definitions/TableNodeRow'
- v1TagNode:
- type: object
- properties:
- content:
- type: string
- v1TaskListItemNode:
- type: object
- properties:
- symbol:
- type: string
- indent:
- type: integer
- format: int32
- complete:
- type: boolean
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1TextNode:
- type: object
- properties:
- content:
- type: string
- v1UnorderedListItemNode:
- type: object
- properties:
- symbol:
- type: string
- indent:
- type: integer
- format: int32
- children:
- type: array
- items:
- type: object
- $ref: '#/definitions/v1Node'
- v1User:
- type: object
- properties:
- name:
- type: string
- description: |-
- The name of the user.
- Format: users/{id}, id is the system generated auto-incremented id.
- role:
- $ref: '#/definitions/UserRole'
- username:
- type: string
- email:
- type: string
- nickname:
- type: string
- avatarUrl:
- type: string
- description:
- type: string
- password:
- type: string
- state:
- $ref: '#/definitions/v1State'
- createTime:
- type: string
- format: date-time
- readOnly: true
- updateTime:
- type: string
- format: date-time
- readOnly: true
- v1UserAccessToken:
- type: object
- properties:
- accessToken:
- type: string
- description:
- type: string
- issuedAt:
- type: string
- format: date-time
- expiresAt:
- type: string
- format: date-time
- v1UserStats:
- type: object
- properties:
- name:
- type: string
- description: The name of the user.
- memoDisplayTimestamps:
- type: array
- items:
- type: string
- format: date-time
- description: |-
- The timestamps when the memos were displayed.
- We should return raw data to the client, and let the client format the data with the user's timezone.
- memoTypeStats:
- $ref: '#/definitions/UserStatsMemoTypeStats'
- description: The stats of memo types.
- tagCount:
- type: object
- additionalProperties:
- type: integer
- format: int32
- title: |-
- The count of tags.
- Format: "tag1": 1, "tag2": 2
- v1Visibility:
- type: string
- enum:
- - VISIBILITY_UNSPECIFIED
- - PRIVATE
- - PROTECTED
- - PUBLIC
- default: VISIBILITY_UNSPECIFIED
- v1Webhook:
- type: object
- properties:
- id:
- type: integer
- format: int32
- creator:
- type: string
- description: The name of the creator.
- createTime:
- type: string
- format: date-time
- updateTime:
- type: string
- format: date-time
- name:
- type: string
- url:
- type: string
- v1WorkspaceProfile:
- type: object
- properties:
- owner:
- type: string
- title: |-
- The name of instance owner.
- Format: users/{user}
- version:
- type: string
- title: version is the current version of instance
- mode:
- type: string
- description: mode is the instance mode (e.g. "prod", "dev" or "demo").
- instanceUrl:
- type: string
- description: instance_url is the URL of the instance.
|