2024-01-28 06:16:37 +08:00
|
|
|
swagger: "2.0"
|
|
|
|
info:
|
2024-04-28 00:44:29 +08:00
|
|
|
title: api/v1/activity_service.proto
|
2024-01-28 06:16:37 +08:00
|
|
|
version: version not set
|
|
|
|
tags:
|
|
|
|
- name: ActivityService
|
|
|
|
- name: UserService
|
|
|
|
- name: AuthService
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: IdentityProviderService
|
2024-01-28 06:16:37 +08:00
|
|
|
- name: InboxService
|
2024-04-29 08:00:37 +08:00
|
|
|
- name: MarkdownService
|
2024-01-28 06:16:37 +08:00
|
|
|
- name: ResourceService
|
|
|
|
- name: MemoService
|
|
|
|
- name: WebhookService
|
2024-01-28 07:35:42 +08:00
|
|
|
- name: WorkspaceService
|
2024-02-20 23:02:01 +08:00
|
|
|
- name: WorkspaceSettingService
|
2024-01-28 06:16:37 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
paths:
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/activities/{id}:
|
|
|
|
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: id
|
|
|
|
description: The system-generated unique identifier for the activity.
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
tags:
|
|
|
|
- ActivityService
|
|
|
|
/api/v1/auth/signin:
|
2024-01-29 22:43:40 +08:00
|
|
|
post:
|
|
|
|
summary: SignIn signs in the user with the given username and password.
|
|
|
|
operationId: AuthService_SignIn
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-29 22:43:40 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: username
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The username to sign in with.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: password
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The password to sign in with.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
2024-01-29 23:12:02 +08:00
|
|
|
- name: neverExpire
|
2024-04-16 22:33:25 +08:00
|
|
|
description: Whether the session should never expire.
|
2024-01-29 23:12:02 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: boolean
|
2024-01-29 22:43:40 +08:00
|
|
|
tags:
|
|
|
|
- AuthService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/auth/signin/sso:
|
2024-01-29 22:43:40 +08:00
|
|
|
post:
|
|
|
|
summary: SignInWithSSO signs in the user with the given SSO code.
|
|
|
|
operationId: AuthService_SignInWithSSO
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-29 22:43:40 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: idpId
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The ID of the SSO provider.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
- name: code
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The code to sign in with.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: redirectUri
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The redirect URI.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- AuthService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/auth/signout:
|
2024-01-29 22:43:40 +08:00
|
|
|
post:
|
|
|
|
summary: SignOut signs out the user.
|
|
|
|
operationId: AuthService_SignOut
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-29 22:43:40 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
tags:
|
|
|
|
- AuthService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/auth/signup:
|
2024-01-29 22:43:40 +08:00
|
|
|
post:
|
|
|
|
summary: SignUp signs up the user with the given username and password.
|
|
|
|
operationId: AuthService_SignUp
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-29 22:43:40 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: username
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The username to sign up with.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: password
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The password to sign up with.
|
2024-01-29 22:43:40 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- AuthService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/auth/status:
|
2024-01-28 06:16:37 +08:00
|
|
|
post:
|
2024-01-29 22:43:40 +08:00
|
|
|
summary: GetAuthStatus returns the current auth status of the user.
|
2024-01-28 06:16:37 +08:00
|
|
|
operationId: AuthService_GetAuthStatus
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
tags:
|
|
|
|
- AuthService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/identityProviders:
|
2024-03-30 14:58:47 +08:00
|
|
|
get:
|
2024-04-16 22:33:25 +08:00
|
|
|
summary: ListIdentityProviders lists identity providers.
|
2024-03-30 14:58:47 +08:00
|
|
|
operationId: IdentityProviderService_ListIdentityProviders
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListIdentityProvidersResponse'
|
2024-03-30 14:58:47 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
tags:
|
|
|
|
- IdentityProviderService
|
|
|
|
post:
|
2024-04-16 22:33:25 +08:00
|
|
|
summary: CreateIdentityProvider creates an identity provider.
|
2024-03-30 14:58:47 +08:00
|
|
|
operationId: IdentityProviderService_CreateIdentityProvider
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProvider'
|
2024-03-30 14:58:47 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-04-16 22:33:25 +08:00
|
|
|
- name: identityProvider
|
|
|
|
description: The identityProvider to create.
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProvider'
|
2024-03-30 14:58:47 +08:00
|
|
|
tags:
|
|
|
|
- IdentityProviderService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/inboxes:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-02-01 21:26:09 +08:00
|
|
|
summary: ListInboxes lists inboxes for a user.
|
2024-01-28 06:16:37 +08:00
|
|
|
operationId: InboxService_ListInboxes
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListInboxesResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: user
|
2024-03-30 14:58:47 +08:00
|
|
|
description: 'Format: users/{id}'
|
2024-01-28 06:16:37 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- InboxService
|
2024-04-29 08:00:37 +08:00
|
|
|
/api/v1/markdown/link:metadata:
|
2024-03-16 23:35:36 +08:00
|
|
|
get:
|
2024-04-16 22:33:25 +08:00
|
|
|
summary: GetLinkMetadata returns metadata for a given link.
|
2024-04-29 08:00:37 +08:00
|
|
|
operationId: MarkdownService_GetLinkMetadata
|
2024-03-16 23:35:36 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-29 08:00:37 +08:00
|
|
|
$ref: '#/definitions/v1LinkMetadata'
|
2024-03-16 23:35:36 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: link
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
2024-04-29 08:00:37 +08:00
|
|
|
- MarkdownService
|
|
|
|
/api/v1/markdown/parse:
|
|
|
|
post:
|
|
|
|
summary: 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/markdown:restore:
|
|
|
|
post:
|
|
|
|
summary: Restores the given nodes to markdown content.
|
|
|
|
operationId: MarkdownService_RestoreMarkdown
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1RestoreMarkdownResponse'
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1RestoreMarkdownRequest'
|
|
|
|
tags:
|
|
|
|
- MarkdownService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/memos:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
|
|
|
summary: ListMemos lists memos with pagination and filter.
|
|
|
|
operationId: MemoService_ListMemos
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListMemosResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: pageSize
|
|
|
|
description: The maximum number of memos to return.
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
- name: pageToken
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
A page token, received from a previous `ListMemos` call.
|
|
|
|
Provide this to retrieve the subsequent page.
|
2024-01-28 06:16:37 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: filter
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
Filter is used to filter memos returned in the list.
|
|
|
|
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
|
2024-01-28 06:16:37 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- MemoService
|
|
|
|
post:
|
|
|
|
summary: CreateMemo creates a memo.
|
|
|
|
operationId: MemoService_CreateMemo
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1CreateMemoRequest'
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/memos/stats:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
|
|
|
summary: GetUserMemosStats gets stats of memos for a user.
|
|
|
|
operationId: MemoService_GetUserMemosStats
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1GetUserMemosStatsResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
name is the name of the user to get stats for.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: timezone
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
timezone location
|
|
|
|
Format: uses tz identifier
|
|
|
|
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
2024-01-28 06:16:37 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
- name: filter
|
|
|
|
description: Same as ListMemosRequest.filter
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-07-11 23:31:50 +08:00
|
|
|
/api/v1/memos:by-uid/{uid}:
|
|
|
|
get:
|
|
|
|
summary: GetMemoByUid gets a memo by uid
|
|
|
|
operationId: MemoService_GetMemoByUid
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1Memo'
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: uid
|
|
|
|
description: The uid of the memo.
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/memos:export:
|
2024-03-18 23:23:53 +08:00
|
|
|
post:
|
|
|
|
summary: ExportMemos exports memos.
|
|
|
|
operationId: MemoService_ExportMemos
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ExportMemosResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-04-16 22:33:25 +08:00
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ExportMemosRequest'
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/memos:search:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
2024-03-20 21:17:04 +08:00
|
|
|
summary: SearchMemos searches memos.
|
2024-03-18 23:23:53 +08:00
|
|
|
operationId: MemoService_SearchMemos
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1SearchMemosResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: filter
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
Filter is used to filter memos returned.
|
|
|
|
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
|
2024-03-18 23:23:53 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/reactions/{reactionId}:
|
2024-04-08 20:52:46 +08:00
|
|
|
delete:
|
|
|
|
summary: DeleteMemoReaction deletes a reaction for a memo.
|
|
|
|
operationId: MemoService_DeleteMemoReaction
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-04-08 20:52:46 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: reactionId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/resources:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: ListResources lists all resources.
|
|
|
|
operationId: ResourceService_ListResources
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListResourcesResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- ResourceService
|
2024-01-28 06:16:37 +08:00
|
|
|
post:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: CreateResource creates a new resource.
|
|
|
|
operationId: ResourceService_CreateResource
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-04-16 22:33:25 +08:00
|
|
|
- name: resource
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-02-08 11:54:59 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- ResourceService
|
2024-07-11 23:43:44 +08:00
|
|
|
/api/v1/resources:by-uid/{uid}:
|
|
|
|
get:
|
|
|
|
summary: GetResourceByUid returns a resource by uid.
|
|
|
|
operationId: ResourceService_GetResourceByUid
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1Resource'
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: uid
|
|
|
|
description: The uid of the resource.
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
- ResourceService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/resources:search:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
2024-03-20 21:17:04 +08:00
|
|
|
summary: SearchResources searches memos.
|
|
|
|
operationId: ResourceService_SearchResources
|
2024-02-08 11:54:59 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1SearchResourcesResponse'
|
2024-02-08 11:54:59 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-20 21:17:04 +08:00
|
|
|
- name: filter
|
|
|
|
in: query
|
|
|
|
required: false
|
2024-02-08 11:54:59 +08:00
|
|
|
type: string
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- ResourceService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/users:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: ListUsers returns a list of users.
|
|
|
|
operationId: UserService_ListUsers
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListUsersResponse'
|
2024-03-18 23:23:53 +08:00
|
|
|
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:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: user
|
|
|
|
in: body
|
2024-01-28 06:16:37 +08:00
|
|
|
required: true
|
2024-03-18 23:23:53 +08:00
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-03-18 23:23:53 +08:00
|
|
|
tags:
|
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/users:search:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: SearchUsers searches users by filter.
|
|
|
|
operationId: UserService_SearchUsers
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1SearchUsersResponse'
|
2024-03-18 23:23:53 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: filter
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
Filter is used to filter users returned in the list.
|
|
|
|
Format: "username == 'frank'"
|
2024-03-18 23:23:53 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
2024-02-06 20:55:27 +08:00
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/webhooks:
|
2024-02-06 20:55:27 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: ListWebhooks returns a list of webhooks.
|
|
|
|
operationId: WebhookService_ListWebhooks
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListWebhooksResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: creatorId
|
|
|
|
in: query
|
|
|
|
required: false
|
2024-01-28 06:16:37 +08:00
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WebhookService
|
|
|
|
post:
|
|
|
|
summary: CreateWebhook creates a new webhook.
|
|
|
|
operationId: WebhookService_CreateWebhook
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Webhook'
|
2024-03-18 23:23:53 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1CreateWebhookRequest'
|
2024-03-18 23:23:53 +08:00
|
|
|
tags:
|
|
|
|
- WebhookService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/webhooks/{id}:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: GetWebhook returns a webhook by id.
|
|
|
|
operationId: WebhookService_GetWebhook
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Webhook'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-02-06 20:55:27 +08:00
|
|
|
- name: id
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-02-06 20:55:27 +08:00
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WebhookService
|
|
|
|
delete:
|
|
|
|
summary: DeleteWebhook deletes a webhook by id.
|
|
|
|
operationId: WebhookService_DeleteWebhook
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 23:14:58 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: id
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-03-18 23:23:53 +08:00
|
|
|
tags:
|
|
|
|
- WebhookService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/webhooks/{webhook.id}:
|
2024-03-18 23:23:53 +08:00
|
|
|
patch:
|
|
|
|
summary: UpdateWebhook updates a webhook.
|
|
|
|
operationId: WebhookService_UpdateWebhook
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Webhook'
|
2024-03-18 23:23:53 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: webhook.id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
- name: webhook
|
2024-01-28 06:16:37 +08:00
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-18 23:23:53 +08:00
|
|
|
creatorId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-06-05 20:53:20 +08:00
|
|
|
createTime:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-06-05 20:53:20 +08:00
|
|
|
updateTime:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
format: date-time
|
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-03-18 23:23:53 +08:00
|
|
|
name:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
url:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WebhookService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/workspace/profile:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: GetWorkspaceProfile returns the workspace profile.
|
|
|
|
operationId: WorkspaceService_GetWorkspaceProfile
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1WorkspaceProfile'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WorkspaceService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/workspace/{name}:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: GetWorkspaceSetting returns the setting by name.
|
|
|
|
operationId: WorkspaceSettingService_GetWorkspaceSetting
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceSetting'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The resource name of the workspace setting.
|
|
|
|
Format: settings/{setting}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: settings/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WorkspaceSettingService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/workspace/{setting.name}:
|
2024-03-18 23:23:53 +08:00
|
|
|
patch:
|
|
|
|
summary: SetWorkspaceSetting updates the setting.
|
|
|
|
operationId: WorkspaceSettingService_SetWorkspaceSetting
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceSetting'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: setting.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
name is the name of the setting.
|
|
|
|
Format: settings/{setting}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: settings/[^/]+
|
|
|
|
- name: setting
|
|
|
|
description: setting is the setting to update.
|
|
|
|
in: body
|
|
|
|
required: true
|
2024-02-01 21:13:42 +08:00
|
|
|
schema:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
generalSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceGeneralSetting'
|
2024-04-10 23:01:01 +08:00
|
|
|
storageSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceStorageSetting'
|
2024-04-10 23:01:01 +08:00
|
|
|
memoRelatedSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
|
2024-03-18 23:23:53 +08:00
|
|
|
title: setting is the setting to update.
|
2024-02-01 21:13:42 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- WorkspaceSettingService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{identityProvider.name}:
|
2024-03-30 14:58:47 +08:00
|
|
|
patch:
|
|
|
|
summary: UpdateIdentityProvider updates an identity provider.
|
|
|
|
operationId: IdentityProviderService_UpdateIdentityProvider
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProvider'
|
2024-03-30 14:58:47 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: identityProvider.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the identityProvider.
|
|
|
|
Format: identityProviders/{id}
|
2024-03-30 14:58:47 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: identityProviders/[^/]+
|
|
|
|
- name: identityProvider
|
|
|
|
description: The identityProvider to update.
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
type:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProviderType'
|
2024-03-30 14:58:47 +08:00
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
identifierFilter:
|
|
|
|
type: string
|
|
|
|
config:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProviderConfig'
|
2024-03-30 14:58:47 +08:00
|
|
|
title: The identityProvider to update.
|
|
|
|
tags:
|
|
|
|
- IdentityProviderService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{inbox.name}:
|
2024-01-28 06:16:37 +08:00
|
|
|
patch:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: UpdateInbox updates an inbox.
|
|
|
|
operationId: InboxService_UpdateInbox
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Inbox'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: inbox.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the inbox.
|
|
|
|
Format: inboxes/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: inboxes/[^/]+
|
|
|
|
- name: inbox
|
|
|
|
in: body
|
|
|
|
required: true
|
2024-01-28 06:16:37 +08:00
|
|
|
schema:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
sender:
|
|
|
|
type: string
|
2024-03-30 14:58:47 +08:00
|
|
|
title: 'Format: users/{id}'
|
2024-03-18 23:23:53 +08:00
|
|
|
receiver:
|
|
|
|
type: string
|
2024-03-30 14:58:47 +08:00
|
|
|
title: 'Format: users/{id}'
|
2024-03-18 23:23:53 +08:00
|
|
|
status:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1InboxStatus'
|
2024-03-18 23:23:53 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
type:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1InboxType'
|
2024-03-18 23:23:53 +08:00
|
|
|
activityId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- InboxService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{memo.name}:
|
2024-03-18 23:23:53 +08:00
|
|
|
patch:
|
|
|
|
summary: UpdateMemo updates a memo.
|
|
|
|
operationId: MemoService_UpdateMemo
|
2024-02-06 20:55:27 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-02-06 20:55:27 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: memo.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
|
|
|
id is the system generated id.
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
|
|
|
- name: memo
|
2024-02-06 20:55:27 +08:00
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-20 20:39:16 +08:00
|
|
|
uid:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
2024-03-20 20:39:16 +08:00
|
|
|
description: The user defined id of the memo.
|
2024-03-18 23:23:53 +08:00
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-03-18 23:23:53 +08:00
|
|
|
creator:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the creator.
|
|
|
|
Format: users/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
displayTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
content:
|
|
|
|
type: string
|
2024-04-29 08:00:37 +08:00
|
|
|
nodes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/v1Node'
|
|
|
|
readOnly: true
|
2024-03-18 23:23:53 +08:00
|
|
|
visibility:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Visibility'
|
2024-05-08 20:03:01 +08:00
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pinned:
|
|
|
|
type: boolean
|
2024-05-22 21:52:41 +08:00
|
|
|
parentId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-03-18 23:23:53 +08:00
|
|
|
readOnly: true
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-03-18 23:23:53 +08:00
|
|
|
readOnly: true
|
|
|
|
relations:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1MemoRelation'
|
2024-03-18 23:23:53 +08:00
|
|
|
readOnly: true
|
|
|
|
reactions:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Reaction'
|
2024-03-18 23:23:53 +08:00
|
|
|
readOnly: true
|
2024-05-22 21:52:41 +08:00
|
|
|
property:
|
|
|
|
$ref: '#/definitions/v1MemoProperty'
|
|
|
|
readOnly: true
|
|
|
|
parent:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the parent memo.
|
|
|
|
Format: memos/{id}
|
2024-05-22 21:52:41 +08:00
|
|
|
readOnly: true
|
2024-02-06 20:55:27 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name_1}:
|
2024-03-30 14:58:47 +08:00
|
|
|
get:
|
2024-04-16 22:33:25 +08:00
|
|
|
summary: GetIdentityProvider gets an identity provider.
|
2024-03-30 14:58:47 +08:00
|
|
|
operationId: IdentityProviderService_GetIdentityProvider
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProvider'
|
2024-03-30 14:58:47 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name_1
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the identityProvider to get.
|
|
|
|
Format: identityProviders/{id}
|
2024-03-30 14:58:47 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: identityProviders/[^/]+
|
|
|
|
tags:
|
|
|
|
- IdentityProviderService
|
|
|
|
delete:
|
|
|
|
summary: DeleteIdentityProvider deletes an identity provider.
|
|
|
|
operationId: IdentityProviderService_DeleteIdentityProvider
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-03-30 14:58:47 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name_1
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the identityProvider to delete.
|
|
|
|
Format: identityProviders/{id}
|
2024-03-30 14:58:47 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: identityProviders/[^/]+
|
|
|
|
tags:
|
|
|
|
- IdentityProviderService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name_2}:
|
2024-03-18 12:56:52 +08:00
|
|
|
get:
|
2024-03-20 21:17:04 +08:00
|
|
|
summary: GetResource returns a resource by name.
|
|
|
|
operationId: ResourceService_GetResource
|
2024-03-18 12:56:52 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-03-18 12:56:52 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: name_2
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the resource.
|
|
|
|
Format: resources/{id}
|
|
|
|
id is the system generated unique identifier.
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-03-18 12:56:52 +08:00
|
|
|
type: string
|
2024-03-20 21:17:04 +08:00
|
|
|
pattern: resources/[^/]+
|
2024-03-18 12:56:52 +08:00
|
|
|
tags:
|
2024-03-20 21:17:04 +08:00
|
|
|
- ResourceService
|
2024-03-18 23:23:53 +08:00
|
|
|
delete:
|
|
|
|
summary: DeleteInbox deletes an inbox.
|
|
|
|
operationId: InboxService_DeleteInbox
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: name_2
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the inbox to delete.
|
|
|
|
Format: inboxes/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: inboxes/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- InboxService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name_3}:
|
2024-03-20 21:17:04 +08:00
|
|
|
get:
|
|
|
|
summary: GetMemo gets a memo.
|
|
|
|
operationId: MemoService_GetMemo
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-03-20 21:17:04 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: name_3
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-03-20 21:17:04 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
|
|
|
tags:
|
|
|
|
- MemoService
|
|
|
|
delete:
|
|
|
|
summary: DeleteResource deletes a resource by name.
|
|
|
|
operationId: ResourceService_DeleteResource
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-03-20 21:17:04 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: name_3
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the resource.
|
|
|
|
Format: resources/{id}
|
|
|
|
id is the system generated unique identifier.
|
2024-03-20 21:17:04 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: resources/[^/]+
|
|
|
|
tags:
|
|
|
|
- ResourceService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name_4}:
|
2024-03-18 23:23:53 +08:00
|
|
|
delete:
|
|
|
|
summary: DeleteMemo deletes a memo.
|
|
|
|
operationId: MemoService_DeleteMemo
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-30 14:58:47 +08:00
|
|
|
- name: name_4
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
2024-01-28 06:16:37 +08:00
|
|
|
required: true
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: GetUser gets a user by name.
|
|
|
|
operationId: UserService_GetUser
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
2024-01-28 06:16:37 +08:00
|
|
|
delete:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: DeleteUser deletes a user.
|
|
|
|
operationId: UserService_DeleteUser
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 23:14:58 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/access_tokens:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: ListUserAccessTokens returns a list of access tokens for a user.
|
|
|
|
operationId: UserService_ListUserAccessTokens
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListUserAccessTokensResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
|
|
|
post:
|
|
|
|
summary: CreateUserAccessToken creates a new access token for a user.
|
|
|
|
operationId: UserService_CreateUserAccessToken
|
2024-01-28 07:35:42 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1UserAccessToken'
|
2024-01-28 07:35:42 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
2024-03-18 23:23:53 +08:00
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/UserServiceCreateUserAccessTokenBody'
|
2024-01-28 07:35:42 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/access_tokens/{accessToken}:
|
2024-03-18 23:23:53 +08:00
|
|
|
delete:
|
|
|
|
summary: DeleteUserAccessToken deletes an access token for a user.
|
|
|
|
operationId: UserService_DeleteUserAccessToken
|
2024-02-20 23:02:01 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 23:14:58 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-02-20 23:02:01 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-03-18 23:23:53 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
|
|
|
- name: accessToken
|
|
|
|
description: access_token is the access token to delete.
|
2024-02-20 23:02:01 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/comments:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: ListMemoComments lists comments for a memo.
|
|
|
|
operationId: MemoService_ListMemoComments
|
2024-01-28 07:35:42 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListMemoCommentsResponse'
|
2024-01-28 07:35:42 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-02-20 23:02:01 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-01-28 07:35:42 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
|
|
|
post:
|
|
|
|
summary: CreateMemoComment creates a comment for a memo.
|
|
|
|
operationId: MemoService_CreateMemoComment
|
2024-02-06 20:55:27 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-02-06 20:55:27 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-02-06 20:55:27 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-04-27 22:02:15 +08:00
|
|
|
- name: comment
|
2024-04-16 22:33:25 +08:00
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1CreateMemoRequest'
|
2024-02-06 20:55:27 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-05-22 09:21:12 +08:00
|
|
|
/api/v1/{name}/properties:
|
|
|
|
get:
|
|
|
|
summary: ListMemoProperties lists memo properties.
|
|
|
|
operationId: MemoService_ListMemoProperties
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1ListMemoPropertiesResponse'
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}. Use "memos/-" to list all properties.
|
2024-05-22 09:21:12 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
|
|
|
tags:
|
|
|
|
- MemoService
|
|
|
|
/api/v1/{name}/properties:rebuild:
|
|
|
|
post:
|
|
|
|
summary: RebuildMemoProperty rebuilds a memo property.
|
|
|
|
operationId: MemoService_RebuildMemoProperty
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties: {}
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}. Use "memos/-" to rebuild all memos.
|
2024-05-22 09:21:12 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/MemoServiceRebuildMemoPropertyBody'
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/reactions:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: ListMemoReactions lists reactions for a memo.
|
|
|
|
operationId: MemoService_ListMemoReactions
|
2024-02-06 19:46:25 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListMemoReactionsResponse'
|
2024-02-06 19:46:25 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
2024-03-18 23:23:53 +08:00
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-02-06 19:46:25 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-02-06 19:46:25 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
|
|
|
post:
|
|
|
|
summary: UpsertMemoReaction upserts a reaction for a memo.
|
|
|
|
operationId: MemoService_UpsertMemoReaction
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Reaction'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-04-16 22:33:25 +08:00
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/MemoServiceUpsertMemoReactionBody'
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/relations:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: ListMemoRelations lists relations for a memo.
|
|
|
|
operationId: MemoService_ListMemoRelations
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListMemoRelationsResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-16 22:33:25 +08:00
|
|
|
patch:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: SetMemoRelations sets relations for a memo.
|
|
|
|
operationId: MemoService_SetMemoRelations
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
2024-01-28 06:16:37 +08:00
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
2024-03-18 23:23:53 +08:00
|
|
|
$ref: '#/definitions/MemoServiceSetMemoRelationsBody'
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/resources:
|
2024-03-18 23:23:53 +08:00
|
|
|
get:
|
|
|
|
summary: ListMemoResources lists resources for a memo.
|
|
|
|
operationId: MemoService_ListMemoResources
|
2024-01-28 06:16:37 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ListMemoResourcesResponse'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-16 22:33:25 +08:00
|
|
|
patch:
|
2024-03-18 23:23:53 +08:00
|
|
|
summary: SetMemoResources sets resources for a memo.
|
|
|
|
operationId: MemoService_SetMemoResources
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-27 22:02:15 +08:00
|
|
|
type: object
|
|
|
|
properties: {}
|
2024-03-18 23:23:53 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-03-18 23:23:53 +08:00
|
|
|
pattern: memos/[^/]+
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/MemoServiceSetMemoResourcesBody'
|
2024-01-28 06:16:37 +08:00
|
|
|
tags:
|
2024-03-18 23:23:53 +08:00
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{name}/setting:
|
2024-01-28 06:16:37 +08:00
|
|
|
get:
|
2024-02-01 21:26:09 +08:00
|
|
|
summary: GetUserSetting gets the setting of a user.
|
2024-01-28 06:16:37 +08:00
|
|
|
operationId: UserService_GetUserSetting
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1UserSetting'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
|
|
|
tags:
|
|
|
|
- UserService
|
2024-05-08 20:03:01 +08:00
|
|
|
/api/v1/{parent}/tags:
|
|
|
|
get:
|
|
|
|
summary: ListMemoTags lists tags for a memo.
|
|
|
|
operationId: MemoService_ListMemoTags
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/v1ListMemoTagsResponse'
|
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: parent
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The parent, who owns the tags.
|
|
|
|
Format: memos/{id}. Use "memos/-" to list all tags.
|
2024-05-08 20:03:01 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
2024-05-14 08:12:25 +08:00
|
|
|
- name: filter
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
Filter is used to filter memos.
|
|
|
|
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
|
2024-05-14 08:12:25 +08:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
type: string
|
2024-05-08 20:03:01 +08:00
|
|
|
tags:
|
|
|
|
- MemoService
|
|
|
|
/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
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The parent, who owns the tags.
|
|
|
|
Format: memos/{id}. Use "memos/-" to delete all tags.
|
2024-05-08 20:03:01 +08:00
|
|
|
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
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The parent, who owns the tags.
|
|
|
|
Format: memos/{id}. Use "memos/-" to rename all tags.
|
2024-05-08 20:03:01 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: memos/[^/]+
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/MemoServiceRenameMemoTagBody'
|
|
|
|
tags:
|
|
|
|
- MemoService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{resource.name}:
|
2024-03-20 21:17:04 +08:00
|
|
|
patch:
|
|
|
|
summary: UpdateResource updates a resource.
|
|
|
|
operationId: ResourceService_UpdateResource
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-03-20 21:17:04 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: resource.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the resource.
|
|
|
|
Format: resources/{id}
|
|
|
|
id is the system generated unique identifier.
|
2024-03-20 21:17:04 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: resources/[^/]+
|
|
|
|
- name: resource
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
uid:
|
|
|
|
type: string
|
|
|
|
description: The user defined id of the resource.
|
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-04-11 17:53:00 +08:00
|
|
|
readOnly: true
|
2024-03-20 21:17:04 +08:00
|
|
|
filename:
|
|
|
|
type: string
|
2024-04-11 17:53:00 +08:00
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
format: byte
|
2024-03-20 21:17:04 +08:00
|
|
|
externalLink:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: string
|
|
|
|
format: int64
|
2024-03-30 08:26:28 +08:00
|
|
|
memo:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The related memo.
|
|
|
|
Format: memos/{id}
|
2024-03-20 21:17:04 +08:00
|
|
|
tags:
|
|
|
|
- ResourceService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{setting.name}:
|
2024-01-28 06:16:37 +08:00
|
|
|
patch:
|
2024-02-01 21:26:09 +08:00
|
|
|
summary: UpdateUserSetting updates the setting of a user.
|
2024-01-28 06:16:37 +08:00
|
|
|
operationId: UserService_UpdateUserSetting
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1UserSetting'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: setting.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
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.
|
|
|
|
tags:
|
|
|
|
- UserService
|
2024-04-28 00:44:29 +08:00
|
|
|
/api/v1/{user.name}:
|
2024-01-28 06:16:37 +08:00
|
|
|
patch:
|
|
|
|
summary: UpdateUser updates a user.
|
|
|
|
operationId: UserService_UpdateUser
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A successful response.
|
|
|
|
schema:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-01-28 06:16:37 +08:00
|
|
|
default:
|
|
|
|
description: An unexpected error response.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/googlerpcStatus'
|
|
|
|
parameters:
|
|
|
|
- name: user.name
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
pattern: users/[^/]+
|
|
|
|
- name: user
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-03-18 12:56:52 +08:00
|
|
|
description: The system generated uid of the user.
|
2024-01-28 06:16:37 +08:00
|
|
|
role:
|
|
|
|
$ref: '#/definitions/UserRole'
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
nickname:
|
|
|
|
type: string
|
|
|
|
avatarUrl:
|
|
|
|
type: string
|
2024-03-13 22:30:59 +08:00
|
|
|
description:
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
tags:
|
|
|
|
- UserService
|
2024-05-02 21:28:06 +08:00
|
|
|
/file/{name}/avatar:
|
2024-05-01 10:23:56 +08:00
|
|
|
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
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-05-01 10:23:56 +08:00
|
|
|
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
|
2024-05-21 21:25:21 +08:00
|
|
|
/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
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the resource.
|
|
|
|
Format: resources/{id}
|
|
|
|
id is the system generated unique identifier.
|
2024-05-21 21:25:21 +08:00
|
|
|
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
|
|
|
|
tags:
|
|
|
|
- ResourceService
|
2024-01-28 06:16:37 +08:00
|
|
|
definitions:
|
2024-05-13 22:04:37 +08:00
|
|
|
MemoServiceRebuildMemoPropertyBody:
|
|
|
|
type: object
|
2024-05-08 20:03:01 +08:00
|
|
|
MemoServiceRenameMemoTagBody:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
oldTag:
|
|
|
|
type: string
|
|
|
|
newTag:
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
MemoServiceSetMemoRelationsBody:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
relations:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1MemoRelation'
|
2024-01-28 06:16:37 +08:00
|
|
|
MemoServiceSetMemoResourcesBody:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-04-16 22:33:25 +08:00
|
|
|
MemoServiceUpsertMemoReactionBody:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
reaction:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Reaction'
|
2024-04-29 08:00:37 +08:00
|
|
|
TableNodeRow:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
cells:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
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
|
2024-05-17 08:50:02 +08:00
|
|
|
WorkspaceStorageSettingS3Config:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
accessKeyId:
|
|
|
|
type: string
|
|
|
|
accessKeySecret:
|
|
|
|
type: string
|
|
|
|
endpoint:
|
|
|
|
type: string
|
|
|
|
region:
|
|
|
|
type: string
|
|
|
|
bucket:
|
|
|
|
type: string
|
|
|
|
title: 'Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/'
|
2024-04-30 22:06:34 +08:00
|
|
|
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.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1ActivityMemoCommentPayload:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
memoId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The memo id of comment.
|
2024-01-28 06:16:37 +08:00
|
|
|
relatedMemoId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The memo id of related memo.
|
|
|
|
description: ActivityMemoCommentPayload represents the payload of a memo comment activity.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1ActivityPayload:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
memoComment:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1ActivityMemoCommentPayload'
|
2024-01-28 06:16:37 +08:00
|
|
|
versionUpdate:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1ActivityVersionUpdatePayload'
|
|
|
|
apiv1ActivityVersionUpdatePayload:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
version:
|
|
|
|
type: string
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The updated version of memos.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1FieldMapping:
|
2024-04-13 02:55:40 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
identifier:
|
|
|
|
type: string
|
|
|
|
displayName:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1IdentityProvider:
|
2024-04-13 10:50:25 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the identityProvider.
|
|
|
|
Format: identityProviders/{id}
|
2024-04-13 10:50:25 +08:00
|
|
|
type:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProviderType'
|
2024-04-13 10:50:25 +08:00
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
identifierFilter:
|
|
|
|
type: string
|
|
|
|
config:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProviderConfig'
|
|
|
|
apiv1IdentityProviderConfig:
|
2024-04-13 02:55:40 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
2024-04-13 10:50:25 +08:00
|
|
|
oauth2Config:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1OAuth2Config'
|
|
|
|
apiv1IdentityProviderType:
|
2024-04-13 10:50:25 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- TYPE_UNSPECIFIED
|
|
|
|
- OAUTH2
|
|
|
|
default: TYPE_UNSPECIFIED
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1OAuth2Config:
|
2024-04-13 02:55:40 +08:00
|
|
|
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:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1FieldMapping'
|
|
|
|
apiv1UserSetting:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
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.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1WorkspaceCustomProfile:
|
2024-04-12 08:32:54 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
logoUrl:
|
|
|
|
type: string
|
|
|
|
locale:
|
|
|
|
type: string
|
|
|
|
appearance:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1WorkspaceGeneralSetting:
|
2024-02-20 23:02:01 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
additionalScript:
|
|
|
|
type: string
|
|
|
|
description: additional_script is the additional script.
|
|
|
|
additionalStyle:
|
|
|
|
type: string
|
|
|
|
description: additional_style is the additional style.
|
2024-04-12 08:32:54 +08:00
|
|
|
customProfile:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceCustomProfile'
|
2024-04-12 08:32:54 +08:00
|
|
|
description: custom_profile is the custom profile.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1WorkspaceMemoRelatedSetting:
|
2024-04-10 23:01:01 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
disallowPublicVisible:
|
|
|
|
type: boolean
|
|
|
|
description: disallow_public_share disallows set memo as public visible.
|
|
|
|
displayWithUpdateTime:
|
|
|
|
type: boolean
|
|
|
|
description: display_with_update_time orders and displays memo with update time.
|
2024-05-06 08:02:39 +08:00
|
|
|
contentLengthLimit:
|
2024-05-06 19:12:30 +08:00
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
description: content_length_limit is the limit of content length. Unit is byte.
|
2024-05-29 23:17:53 +08:00
|
|
|
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.
|
2024-07-02 22:00:38 +08:00
|
|
|
enableLinkPreview:
|
|
|
|
type: boolean
|
|
|
|
description: enable_link_preview enables links preview.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1WorkspaceSetting:
|
2024-02-20 23:02:01 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
name is the name of the setting.
|
|
|
|
Format: settings/{setting}
|
2024-02-20 23:02:01 +08:00
|
|
|
generalSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceGeneralSetting'
|
2024-04-10 23:01:01 +08:00
|
|
|
storageSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceStorageSetting'
|
2024-04-10 23:01:01 +08:00
|
|
|
memoRelatedSetting:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceMemoRelatedSetting'
|
|
|
|
apiv1WorkspaceStorageSetting:
|
2024-04-10 23:01:01 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
storageType:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1WorkspaceStorageSettingStorageType'
|
2024-04-10 23:01:01 +08:00
|
|
|
description: storage_type is the storage type.
|
2024-04-28 21:36:22 +08:00
|
|
|
filepathTemplate:
|
2024-04-10 23:01:01 +08:00
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The template of file path.
|
|
|
|
e.g. assets/{timestamp}_{filename}
|
2024-04-10 23:01:01 +08:00
|
|
|
uploadSizeLimitMb:
|
|
|
|
type: string
|
|
|
|
format: int64
|
|
|
|
description: The max upload size in megabytes.
|
2024-04-28 21:36:22 +08:00
|
|
|
s3Config:
|
2024-05-17 08:50:02 +08:00
|
|
|
$ref: '#/definitions/WorkspaceStorageSettingS3Config'
|
2024-04-28 21:36:22 +08:00
|
|
|
description: The S3 config.
|
2024-04-28 00:44:29 +08:00
|
|
|
apiv1WorkspaceStorageSettingStorageType:
|
2024-04-10 23:01:01 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- STORAGE_TYPE_UNSPECIFIED
|
2024-05-13 20:03:04 +08:00
|
|
|
- DATABASE
|
|
|
|
- LOCAL
|
|
|
|
- S3
|
2024-04-10 23:01:01 +08:00
|
|
|
default: STORAGE_TYPE_UNSPECIFIED
|
|
|
|
description: |2-
|
2024-05-13 20:03:04 +08:00
|
|
|
- DATABASE: DATABASE is the database storage type.
|
|
|
|
- LOCAL: LOCAL is the local storage type.
|
|
|
|
- S3: S3 is the S3 storage type.
|
2024-01-28 06:16:37 +08:00
|
|
|
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
|
2024-04-30 22:06:34 +08:00
|
|
|
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
|
2024-06-19 22:03:12 +08:00
|
|
|
type.googleapis.com. As of May 2023, there are no widely used type server
|
|
|
|
implementations and no plans to implement one.
|
2024-04-30 22:06:34 +08:00
|
|
|
|
|
|
|
Schemes other than `http`, `https` (or the empty scheme) might be
|
|
|
|
used with implementation specific semantics.
|
2024-01-28 06:16:37 +08:00
|
|
|
additionalProperties: {}
|
2024-04-30 22:06:34 +08:00
|
|
|
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());
|
|
|
|
}
|
|
|
|
|
2024-06-19 22:03:12 +08:00
|
|
|
Example 3: Pack and unpack a message in Python.
|
2024-04-30 22:06:34 +08:00
|
|
|
|
|
|
|
foo = Foo(...)
|
|
|
|
any = Any()
|
|
|
|
any.Pack(foo)
|
|
|
|
...
|
|
|
|
if any.Is(Foo.DESCRIPTOR):
|
|
|
|
any.Unpack(foo)
|
|
|
|
...
|
|
|
|
|
2024-06-19 22:03:12 +08:00
|
|
|
Example 4: Pack and unpack a message in Go
|
2024-04-30 22:06:34 +08:00
|
|
|
|
|
|
|
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
|
2024-06-19 22:03:12 +08:00
|
|
|
====
|
2024-04-30 22:06:34 +08:00
|
|
|
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"
|
|
|
|
}
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Activity:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The system-generated unique identifier for the activity.
|
2024-01-28 06:16:37 +08:00
|
|
|
creatorId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The system-generated unique identifier for the user who created the activity.
|
2024-01-28 06:16:37 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The type of the activity.
|
2024-01-28 06:16:37 +08:00
|
|
|
level:
|
|
|
|
type: string
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The level of the activity.
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The create time of the activity.
|
|
|
|
readOnly: true
|
2024-01-28 06:16:37 +08:00
|
|
|
payload:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1ActivityPayload'
|
2024-04-16 22:33:25 +08:00
|
|
|
description: The payload of the activity.
|
2024-04-29 08:00:37 +08:00
|
|
|
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
|
2024-04-28 00:44:29 +08:00
|
|
|
v1CreateMemoRequest:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
visibility:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Visibility'
|
|
|
|
v1CreateWebhookRequest:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
2024-04-29 08:00:37 +08:00
|
|
|
v1EmbeddedContentNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resourceName:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
type: string
|
|
|
|
v1EscapingCharacterNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
symbol:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ExportMemosRequest:
|
2024-04-16 22:33:25 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
filter:
|
|
|
|
type: string
|
|
|
|
title: Same as ListMemosRequest.filter
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ExportMemosResponse:
|
2024-01-30 22:10:17 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
2024-02-04 20:20:14 +08:00
|
|
|
content:
|
2024-01-30 22:10:17 +08:00
|
|
|
type: string
|
|
|
|
format: byte
|
2024-04-28 00:44:29 +08:00
|
|
|
v1GetUserMemosStatsResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
stats:
|
|
|
|
type: object
|
|
|
|
additionalProperties:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
stats is the stats of memo creating/updating activities.
|
|
|
|
key is the year-month-day string. e.g. "2020-01-01".
|
2024-04-29 08:00:37 +08:00
|
|
|
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
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Inbox:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the inbox.
|
|
|
|
Format: inboxes/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
sender:
|
|
|
|
type: string
|
2024-03-30 14:58:47 +08:00
|
|
|
title: 'Format: users/{id}'
|
2024-01-28 06:16:37 +08:00
|
|
|
receiver:
|
|
|
|
type: string
|
2024-03-30 14:58:47 +08:00
|
|
|
title: 'Format: users/{id}'
|
2024-01-28 06:16:37 +08:00
|
|
|
status:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1InboxStatus'
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
type:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1InboxType'
|
2024-01-28 06:16:37 +08:00
|
|
|
activityId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-04-28 00:44:29 +08:00
|
|
|
v1InboxStatus:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- STATUS_UNSPECIFIED
|
|
|
|
- UNREAD
|
|
|
|
- ARCHIVED
|
|
|
|
default: STATUS_UNSPECIFIED
|
2024-04-28 00:44:29 +08:00
|
|
|
v1InboxType:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- TYPE_UNSPECIFIED
|
2024-05-13 20:03:04 +08:00
|
|
|
- MEMO_COMMENT
|
|
|
|
- VERSION_UPDATE
|
2024-01-28 06:16:37 +08:00
|
|
|
default: TYPE_UNSPECIFIED
|
2024-04-29 08:00:37 +08:00
|
|
|
v1ItalicNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
symbol:
|
|
|
|
type: string
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
v1LineBreakNode:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
v1LinkMetadata:
|
2024-03-13 20:25:27 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
image:
|
|
|
|
type: string
|
2024-04-29 08:00:37 +08:00
|
|
|
v1LinkNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
text:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ListIdentityProvidersResponse:
|
2024-03-30 14:58:47 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
identityProviders:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/apiv1IdentityProvider'
|
|
|
|
v1ListInboxesResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
inboxes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Inbox'
|
|
|
|
v1ListMemoCommentsResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
memos:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-05-22 09:21:12 +08:00
|
|
|
v1ListMemoPropertiesResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/v1MemoProperty'
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ListMemoReactionsResponse:
|
2024-02-08 11:54:59 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
reactions:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Reaction'
|
|
|
|
v1ListMemoRelationsResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
relations:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1MemoRelation'
|
|
|
|
v1ListMemoResourcesResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-05-08 20:03:01 +08:00
|
|
|
v1ListMemoTagsResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
tagAmounts:
|
|
|
|
type: object
|
|
|
|
additionalProperties:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
tag_amounts is the amount of tags.
|
|
|
|
key is the tag name. e.g. "tag1".
|
|
|
|
value is the amount of the tag.
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ListMemosResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
memos:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
2024-01-28 06:16:37 +08:00
|
|
|
nextPageToken:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
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.
|
2024-04-28 00:44:29 +08:00
|
|
|
v1ListResourcesResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
|
|
|
v1ListUserAccessTokensResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
accessTokens:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1UserAccessToken'
|
|
|
|
v1ListUsersResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
users:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
|
|
|
v1ListWebhooksResponse:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
webhooks:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Webhook'
|
2024-04-29 08:00:37 +08:00
|
|
|
v1MathBlockNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
v1MathNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Memo:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the memo.
|
|
|
|
Format: memos/{id}
|
|
|
|
id is the system generated id.
|
2024-03-20 20:39:16 +08:00
|
|
|
uid:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: string
|
2024-03-20 20:39:16 +08:00
|
|
|
description: The user defined id of the memo.
|
2024-01-28 06:16:37 +08:00
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-01-28 06:16:37 +08:00
|
|
|
creator:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the creator.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
displayTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
content:
|
|
|
|
type: string
|
2024-04-29 08:00:37 +08:00
|
|
|
nodes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/v1Node'
|
|
|
|
readOnly: true
|
2024-01-28 06:16:37 +08:00
|
|
|
visibility:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Visibility'
|
2024-05-08 20:03:01 +08:00
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
pinned:
|
|
|
|
type: boolean
|
2024-05-22 21:52:41 +08:00
|
|
|
parentId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-01-28 06:16:37 +08:00
|
|
|
readOnly: true
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
2024-01-28 06:16:37 +08:00
|
|
|
readOnly: true
|
|
|
|
relations:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1MemoRelation'
|
2024-01-28 06:16:37 +08:00
|
|
|
readOnly: true
|
2024-02-08 11:54:59 +08:00
|
|
|
reactions:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Reaction'
|
2024-02-08 11:54:59 +08:00
|
|
|
readOnly: true
|
2024-05-22 21:52:41 +08:00
|
|
|
property:
|
|
|
|
$ref: '#/definitions/v1MemoProperty'
|
|
|
|
readOnly: true
|
|
|
|
parent:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the parent memo.
|
|
|
|
Format: memos/{id}
|
2024-05-22 21:52:41 +08:00
|
|
|
readOnly: true
|
2024-05-22 09:21:12 +08:00
|
|
|
v1MemoProperty:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
hasLink:
|
|
|
|
type: boolean
|
|
|
|
hasTaskList:
|
|
|
|
type: boolean
|
2024-05-27 19:43:57 +08:00
|
|
|
hasCode:
|
|
|
|
type: boolean
|
2024-06-05 08:39:56 +08:00
|
|
|
hasIncompleteTasks:
|
|
|
|
type: boolean
|
2024-04-28 00:44:29 +08:00
|
|
|
v1MemoRelation:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-19 21:53:44 +08:00
|
|
|
memo:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of memo.
|
|
|
|
Format: "memos/{uid}"
|
2024-03-19 21:53:44 +08:00
|
|
|
relatedMemo:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of related memo.
|
|
|
|
Format: "memos/{uid}"
|
2024-01-28 06:16:37 +08:00
|
|
|
type:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1MemoRelationType'
|
|
|
|
v1MemoRelationType:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- TYPE_UNSPECIFIED
|
|
|
|
- REFERENCE
|
|
|
|
- COMMENT
|
|
|
|
default: TYPE_UNSPECIFIED
|
2024-04-29 08:00:37 +08:00
|
|
|
v1Node:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
type:
|
|
|
|
$ref: '#/definitions/v1NodeType'
|
|
|
|
lineBreakNode:
|
|
|
|
$ref: '#/definitions/v1LineBreakNode'
|
|
|
|
paragraphNode:
|
|
|
|
$ref: '#/definitions/v1ParagraphNode'
|
|
|
|
codeBlockNode:
|
|
|
|
$ref: '#/definitions/v1CodeBlockNode'
|
|
|
|
headingNode:
|
|
|
|
$ref: '#/definitions/v1HeadingNode'
|
|
|
|
horizontalRuleNode:
|
|
|
|
$ref: '#/definitions/v1HorizontalRuleNode'
|
|
|
|
blockquoteNode:
|
|
|
|
$ref: '#/definitions/v1BlockquoteNode'
|
|
|
|
orderedListNode:
|
|
|
|
$ref: '#/definitions/v1OrderedListNode'
|
|
|
|
unorderedListNode:
|
|
|
|
$ref: '#/definitions/v1UnorderedListNode'
|
|
|
|
taskListNode:
|
|
|
|
$ref: '#/definitions/v1TaskListNode'
|
|
|
|
mathBlockNode:
|
|
|
|
$ref: '#/definitions/v1MathBlockNode'
|
|
|
|
tableNode:
|
|
|
|
$ref: '#/definitions/v1TableNode'
|
|
|
|
embeddedContentNode:
|
|
|
|
$ref: '#/definitions/v1EmbeddedContentNode'
|
|
|
|
textNode:
|
|
|
|
$ref: '#/definitions/v1TextNode'
|
|
|
|
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'
|
|
|
|
v1NodeType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- NODE_UNSPECIFIED
|
|
|
|
- LINE_BREAK
|
|
|
|
- PARAGRAPH
|
|
|
|
- CODE_BLOCK
|
|
|
|
- HEADING
|
|
|
|
- HORIZONTAL_RULE
|
|
|
|
- BLOCKQUOTE
|
|
|
|
- ORDERED_LIST
|
|
|
|
- UNORDERED_LIST
|
|
|
|
- TASK_LIST
|
|
|
|
- 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
|
|
|
|
default: NODE_UNSPECIFIED
|
|
|
|
v1OrderedListNode:
|
|
|
|
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'
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Reaction:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
creator:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the creator.
|
|
|
|
Format: users/{id}
|
2024-04-13 11:54:37 +08:00
|
|
|
contentId:
|
|
|
|
type: string
|
|
|
|
reactionType:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1ReactionType'
|
|
|
|
v1ReactionType:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- TYPE_UNSPECIFIED
|
|
|
|
- THUMBS_UP
|
|
|
|
- THUMBS_DOWN
|
|
|
|
- HEART
|
|
|
|
- FIRE
|
|
|
|
- CLAPPING_HANDS
|
|
|
|
- LAUGH
|
|
|
|
- OK_HAND
|
|
|
|
- ROCKET
|
|
|
|
- EYES
|
|
|
|
- THINKING_FACE
|
|
|
|
- CLOWN_FACE
|
|
|
|
- QUESTION_MARK
|
|
|
|
default: TYPE_UNSPECIFIED
|
2024-04-29 08:00:37 +08:00
|
|
|
v1ReferencedContentNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resourceName:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Resource:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
description: |-
|
|
|
|
The name of the resource.
|
|
|
|
Format: resources/{id}
|
|
|
|
id is the system generated unique identifier.
|
2024-03-20 21:17:04 +08:00
|
|
|
uid:
|
|
|
|
type: string
|
|
|
|
description: The user defined id of the resource.
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-04-11 17:53:00 +08:00
|
|
|
readOnly: true
|
2024-01-28 06:16:37 +08:00
|
|
|
filename:
|
|
|
|
type: string
|
2024-04-11 17:53:00 +08:00
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
format: byte
|
2024-01-28 06:16:37 +08:00
|
|
|
externalLink:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: string
|
|
|
|
format: int64
|
2024-03-30 08:26:28 +08:00
|
|
|
memo:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The related memo.
|
|
|
|
Format: memos/{id}
|
2024-04-29 08:00:37 +08:00
|
|
|
v1RestoreMarkdownRequest:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
nodes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/v1Node'
|
|
|
|
v1RestoreMarkdownResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
markdown:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1RowStatus:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- ROW_STATUS_UNSPECIFIED
|
|
|
|
- ACTIVE
|
|
|
|
- ARCHIVED
|
|
|
|
default: ROW_STATUS_UNSPECIFIED
|
2024-04-28 00:44:29 +08:00
|
|
|
v1SearchMemosResponse:
|
2024-03-18 23:23:53 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
memos:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Memo'
|
|
|
|
v1SearchResourcesResponse:
|
2024-03-20 21:17:04 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
resources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1Resource'
|
|
|
|
v1SearchUsersResponse:
|
2024-03-18 12:56:52 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
users:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1User'
|
2024-04-29 08:00:37 +08:00
|
|
|
v1SpoilerNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
v1StrikethroughNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
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: string
|
|
|
|
delimiter:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
rows:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/TableNodeRow'
|
|
|
|
v1TagNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
v1TaskListNode:
|
|
|
|
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
|
|
|
|
v1UnorderedListNode:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
symbol:
|
|
|
|
type: string
|
|
|
|
indent:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
children:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
$ref: '#/definitions/v1Node'
|
2024-04-28 00:44:29 +08:00
|
|
|
v1User:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of the user.
|
|
|
|
Format: users/{id}
|
2024-01-28 06:16:37 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-03-18 12:56:52 +08:00
|
|
|
description: The system generated uid of the user.
|
2024-01-28 06:16:37 +08:00
|
|
|
role:
|
|
|
|
$ref: '#/definitions/UserRole'
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
nickname:
|
|
|
|
type: string
|
|
|
|
avatarUrl:
|
|
|
|
type: string
|
2024-03-13 22:30:59 +08:00
|
|
|
description:
|
|
|
|
type: string
|
2024-01-28 06:16:37 +08:00
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-01-28 06:16:37 +08:00
|
|
|
createTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-04-28 00:44:29 +08:00
|
|
|
v1UserAccessToken:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
accessToken:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
issuedAt:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
expiresAt:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Visibility:
|
2024-01-28 06:16:37 +08:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- VISIBILITY_UNSPECIFIED
|
|
|
|
- PRIVATE
|
|
|
|
- PROTECTED
|
|
|
|
- PUBLIC
|
|
|
|
default: VISIBILITY_UNSPECIFIED
|
2024-04-28 00:44:29 +08:00
|
|
|
v1Webhook:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
creatorId:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2024-06-05 20:53:20 +08:00
|
|
|
createTime:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: string
|
|
|
|
format: date-time
|
2024-06-05 20:53:20 +08:00
|
|
|
updateTime:
|
2024-04-13 11:54:37 +08:00
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
rowStatus:
|
2024-04-28 00:44:29 +08:00
|
|
|
$ref: '#/definitions/v1RowStatus'
|
2024-04-13 11:54:37 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
2024-04-28 00:44:29 +08:00
|
|
|
v1WorkspaceProfile:
|
2024-01-28 07:35:42 +08:00
|
|
|
type: object
|
|
|
|
properties:
|
2024-03-21 21:39:34 +08:00
|
|
|
owner:
|
|
|
|
type: string
|
2024-07-11 23:31:50 +08:00
|
|
|
title: |-
|
|
|
|
The name of instance owner.
|
|
|
|
Format: "users/{id}"
|
2024-01-28 07:35:42 +08:00
|
|
|
version:
|
|
|
|
type: string
|
2024-02-20 23:02:01 +08:00
|
|
|
title: version is the current version of instance
|
2024-01-28 07:35:42 +08:00
|
|
|
mode:
|
|
|
|
type: string
|
2024-02-20 23:02:01 +08:00
|
|
|
description: mode is the instance mode (e.g. "prod", "dev" or "demo").
|
2024-06-19 22:03:12 +08:00
|
|
|
public:
|
|
|
|
type: boolean
|
|
|
|
description: public is a flag that the instance is open for other users.
|