description:"The maximum number of activities to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 100 activities will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
The maximum number of activities to return.
The service may return fewer than this value.
If unspecified, at most 100 activities will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"A page token, received from a previous `ListActivities` call.\r\n Provide this to retrieve the subsequent page."
A page token, received from a previous `ListActivities` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
responses:
responses:
@ -78,35 +72,23 @@ paths:
parameters:
parameters:
- name:pageSize
- name:pageSize
in:query
in:query
description:|-
description:"Optional. The maximum number of attachments to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 50 attachments will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
Optional. The maximum number of attachments to return.
The service may return fewer than this value.
If unspecified, at most 50 attachments will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"Optional. A page token, received from a previous `ListAttachments` call.\r\n Provide this to retrieve the subsequent page."
Optional. A page token, received from a previous `ListAttachments` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
- name:filter
- name:filter
in:query
in:query
description:|-
description:"Optional. Filter to apply to the list results.\r\n Example: \"type=image/png\" or \"filename:*.jpg\"\r\n Supported operators: =, !=, <, <=, >, >=, :\r\n Supported fields: filename, type, size, create_time, memo"
description:"Optional. The order to sort results by.\r\n Example: \"create_time desc\" or \"filename asc\""
Optional. The order to sort results by.
Example:"create_time desc"or "filename asc"
schema:
schema:
type:string
type:string
responses:
responses:
@ -130,9 +112,7 @@ paths:
parameters:
parameters:
- name:attachmentId
- name:attachmentId
in:query
in:query
description:|-
description:"Optional. The attachment ID to use for this attachment.\r\n If empty, a unique ID will be generated."
Optional. The attachment ID to use for this attachment.
If empty, a unique ID will be generated.
schema:
schema:
type:string
type:string
requestBody:
requestBody:
@ -243,9 +223,7 @@ paths:
post:
post:
tags:
tags:
- AuthService
- AuthService
description:|-
description:"CreateSession authenticates a user and creates a new session.\r\n Returns the authenticated user information upon successful authentication."
CreateSession authenticates a user and creates a new session.
Returns the authenticated user information upon successful authentication.
operationId:AuthService_CreateSession
operationId:AuthService_CreateSession
requestBody:
requestBody:
content:
content:
@ -270,9 +248,7 @@ paths:
get:
get:
tags:
tags:
- AuthService
- AuthService
description:|-
description:"GetCurrentSession returns the current active session information.\r\n This method is idempotent and safe, suitable for checking current session state."
GetCurrentSession returns the current active session information.
This method is idempotent and safe, suitable for checking current session state.
operationId:AuthService_GetCurrentSession
operationId:AuthService_GetCurrentSession
responses:
responses:
"200":
"200":
@ -290,9 +266,7 @@ paths:
delete:
delete:
tags:
tags:
- AuthService
- AuthService
description:|-
description:"DeleteSession terminates the current user session.\r\n This is an idempotent operation that invalidates the user's authentication."
DeleteSession terminates the current user session.
This is an idempotent operation that invalidates the user's authentication.
operationId:AuthService_DeleteSession
operationId:AuthService_DeleteSession
responses:
responses:
"200":
"200":
@ -331,9 +305,7 @@ paths:
parameters:
parameters:
- name:identityProviderId
- name:identityProviderId
in:query
in:query
description:|-
description:"Optional. The ID to use for the identity provider, which will become the final component of the resource name.\r\n If not provided, the system will generate one."
Optional. The ID to use for the identity provider, which will become the final component of the resource name.
If not provided, the system will generate one.
schema:
schema:
type:string
type:string
requestBody:
requestBody:
@ -417,9 +389,7 @@ paths:
type:string
type:string
- name:updateMask
- name:updateMask
in:query
in:query
description:|-
description:"Required. The update mask applies to the resource. Only the top level fields of\r\n IdentityProvider are supported."
Required. The update mask applies to the resource. Only the top level fields of
IdentityProvider are supported.
schema:
schema:
type:string
type:string
format:field-mask
format:field-mask
@ -511,9 +481,7 @@ paths:
get:
get:
tags:
tags:
- MarkdownService
- MarkdownService
description:|-
description:"GetLinkMetadata returns metadata for a given link.\r\n This is useful for generating link previews."
GetLinkMetadata returns metadata for a given link.
This is useful for generating link previews.
operationId:MarkdownService_GetLinkMetadata
operationId:MarkdownService_GetLinkMetadata
parameters:
parameters:
- name:link
- name:link
@ -538,9 +506,7 @@ paths:
post:
post:
tags:
tags:
- MarkdownService
- MarkdownService
description:|-
description:"ParseMarkdown parses the given markdown content and returns a list of nodes.\r\n This is a utility method that transforms markdown text into structured nodes."
ParseMarkdown parses the given markdown content and returns a list of nodes.
This is a utility method that transforms markdown text into structured nodes.
operationId:MarkdownService_ParseMarkdown
operationId:MarkdownService_ParseMarkdown
requestBody:
requestBody:
content:
content:
@ -565,9 +531,7 @@ paths:
post:
post:
tags:
tags:
- MarkdownService
- MarkdownService
description:|-
description:"RestoreMarkdownNodes restores the given nodes to markdown content.\r\n This is the inverse operation of ParseMarkdown."
RestoreMarkdownNodes restores the given nodes to markdown content.
This is the inverse operation of ParseMarkdown.
operationId:MarkdownService_RestoreMarkdownNodes
operationId:MarkdownService_RestoreMarkdownNodes
requestBody:
requestBody:
content:
content:
@ -592,9 +556,7 @@ paths:
post:
post:
tags:
tags:
- MarkdownService
- MarkdownService
description:|-
description:"StringifyMarkdownNodes stringify the given nodes to plain text content.\r\n This removes all markdown formatting and returns plain text."
StringifyMarkdownNodes stringify the given nodes to plain text content.
This removes all markdown formatting and returns plain text.
description:"Optional. The maximum number of memos to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 50 memos will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
Optional. The maximum number of memos to return.
The service may return fewer than this value.
If unspecified, at most 50 memos will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"Optional. A page token, received from a previous `ListMemos` call.\r\n Provide this to retrieve the subsequent page."
Optional. A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
- name:state
- name:state
in:query
in:query
description:|-
description:"Optional. The state of the memos to list.\r\n Default to `NORMAL`. Set to `ARCHIVED` to list archived memos."
Optional. The state of the memos to list.
Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
schema:
schema:
enum:
enum:
- STATE_UNSPECIFIED
- STATE_UNSPECIFIED
@ -653,20 +607,12 @@ paths:
format:enum
format:enum
- name:orderBy
- name:orderBy
in:query
in:query
description:|-
description:"Optional. The order to sort results by.\r\n Default to \"display_time desc\".\r\n Supports comma-separated list of fields following AIP-132.\r\n Example: \"pinned desc, display_time desc\" or \"create_time asc\"\r\n Supported fields: pinned, display_time, create_time, update_time, name"
Optional. The order to sort results by.
Default to "display_time desc".
Supports comma-separated list of fields following AIP-132.
Supported fields:pinned, display_time, create_time, update_time, name
schema:
schema:
type:string
type:string
- name:filter
- name:filter
in:query
in:query
description:|-
description:"Optional. Filter to apply to the list results.\r\n Filter is a CEL expression to filter memos.\r\n Refer to `Shortcut.filter`."
Optional. Filter to apply to the list results.
Filter is a CEL expression to filter memos.
Refer to `Shortcut.filter`.
schema:
schema:
type:string
type:string
- name:showDeleted
- name:showDeleted
@ -695,9 +641,7 @@ paths:
parameters:
parameters:
- name:memoId
- name:memoId
in:query
in:query
description:|-
description:"Optional. The memo ID to use for this memo.\r\n If empty, a unique ID will be generated."
Optional. The memo ID to use for this memo.
If empty, a unique ID will be generated.
schema:
schema:
type:string
type:string
- name:validateOnly
- name:validateOnly
@ -744,9 +688,7 @@ paths:
type:string
type:string
- name:readMask
- name:readMask
in:query
in:query
description:|-
description:"Optional. The fields to return in the response.\r\n If not specified, all fields are returned."
Optional. The fields to return in the response.
If not specified, all fields are returned.
schema:
schema:
type:string
type:string
format:field-mask
format:field-mask
@ -1198,28 +1140,18 @@ paths:
parameters:
parameters:
- name:pageSize
- name:pageSize
in:query
in:query
description:|-
description:"Optional. The maximum number of users to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 50 users will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
Optional. The maximum number of users to return.
The service may return fewer than this value.
If unspecified, at most 50 users will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"Optional. A page token, received from a previous `ListUsers` call.\r\n Provide this to retrieve the subsequent page."
Optional. A page token, received from a previous `ListUsers` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
- name:filter
- name:filter
in:query
in:query
description:|-
description:"Optional. Filter to apply to the list results.\r\n Example: \"username == 'steven'\"\r\n Supported operators: ==\r\n Supported fields: username"
Optional. Filter to apply to the list results.
Example:"username == 'steven'"
Supported operators:==
Supported fields:username
schema:
schema:
type:string
type:string
- name:showDeleted
- name:showDeleted
@ -1248,10 +1180,7 @@ paths:
parameters:
parameters:
- name:userId
- name:userId
in:query
in:query
description:|-
description:"Optional. The user ID to use for this user.\r\n If empty, a unique ID will be generated.\r\n Must match the pattern [a-z0-9-]+"
Optional. The user ID to use for this user.
If empty, a unique ID will be generated.
Must match the pattern [a-z0-9-]+
schema:
schema:
type:string
type:string
- name:validateOnly
- name:validateOnly
@ -1261,9 +1190,7 @@ paths:
type:boolean
type:boolean
- name:requestId
- name:requestId
in:query
in:query
description:|-
description:"Optional. An idempotency token that can be used to ensure that multiple\r\n requests to create a user have the same result."
Optional. An idempotency token that can be used to ensure that multiple
requests to create a user have the same result.
schema:
schema:
type:string
type:string
requestBody:
requestBody:
@ -1289,11 +1216,7 @@ paths:
get:
get:
tags:
tags:
- UserService
- UserService
description:|-
description:"GetUser gets a user by ID or username.\r\n Supports both numeric IDs and username strings:\r\n - users/{id} (e.g., users/101)\r\n - users/{username} (e.g., users/steven)"
GetUser gets a user by ID or username.
Supports both numeric IDs and username strings:
- users/{id} (e.g., users/101)
- users/{username} (e.g., users/steven)
operationId:UserService_GetUser
operationId:UserService_GetUser
parameters:
parameters:
- name:user
- name:user
@ -1304,9 +1227,7 @@ paths:
type:string
type:string
- name:readMask
- name:readMask
in:query
in:query
description:|-
description:"Optional. The fields to return in the response.\r\n If not specified, all fields are returned."
Optional. The fields to return in the response.
If not specified, all fields are returned.
schema:
schema:
type:string
type:string
format:field-mask
format:field-mask
@ -1533,35 +1454,23 @@ paths:
type:string
type:string
- name:pageSize
- name:pageSize
in:query
in:query
description:|-
description:"Optional. The maximum number of inboxes to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 50 inboxes will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
Optional. The maximum number of inboxes to return.
The service may return fewer than this value.
If unspecified, at most 50 inboxes will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"Optional. A page token, received from a previous `ListInboxes` call.\r\n Provide this to retrieve the subsequent page."
Optional. A page token, received from a previous `ListInboxes` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
- name:filter
- name:filter
in:query
in:query
description:|-
description:"Optional. Filter to apply to the list results.\r\n Example: \"status=UNREAD\" or \"type=MEMO_COMMENT\"\r\n Supported operators: =, !=\r\n Supported fields: status, type, sender, create_time"
description:"Optional. The order to sort results by.\r\n Example: \"create_time desc\" or \"status asc\""
Optional. The order to sort results by.
Example:"create_time desc"or "status asc"
schema:
schema:
type:string
type:string
responses:
responses:
@ -1647,19 +1556,13 @@ paths:
type:string
type:string
- name:pageSize
- name:pageSize
in:query
in:query
description:|-
description:"Optional. The maximum number of settings to return.\r\n The service may return fewer than this value.\r\n If unspecified, at most 50 settings will be returned.\r\n The maximum value is 1000; values above 1000 will be coerced to 1000."
Optional. The maximum number of settings to return.
The service may return fewer than this value.
If unspecified, at most 50 settings will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
schema:
schema:
type:integer
type:integer
format:int32
format:int32
- name:pageToken
- name:pageToken
in:query
in:query
description:|-
description:"Optional. A page token, received from a previous `ListUserSettings` call.\r\n Provide this to retrieve the subsequent page."
Optional. A page token, received from a previous `ListUserSettings` call.
Provide this to retrieve the subsequent page.
schema:
schema:
type:string
type:string
responses:
responses:
@ -2214,15 +2117,11 @@ components:
name:
name:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The name of the activity.\r\n Format: activities/{id}"
The name of the activity.
Format:activities/{id}
creator:
creator:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The name of the creator.\r\n Format: users/{user}"
The name of the creator.
Format:users/{user}
type:
type:
readOnly:true
readOnly:true
enum:
enum:
@ -2257,14 +2156,10 @@ components:
properties:
properties:
memo:
memo:
type:string
type:string
description:|-
description:"The memo name of comment.\r\n Format: memos/{memo}"
The memo name of comment.
Format:memos/{memo}
relatedMemo:
relatedMemo:
type:string
type:string
description:|-
description:"The name of related memo.\r\n Format: memos/{memo}"
The name of related memo.
Format:memos/{memo}
description:ActivityMemoCommentPayload represents the payload of a memo comment activity.
description:ActivityMemoCommentPayload represents the payload of a memo comment activity.
ActivityPayload:
ActivityPayload:
type:object
type:object
@ -2281,9 +2176,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The name of the attachment.\r\n Format: attachments/{attachment}"
The name of the attachment.
Format:attachments/{attachment}
createTime:
createTime:
readOnly:true
readOnly:true
type:string
type:string
@ -2309,9 +2202,7 @@ components:
description:Output only. The size of the attachment in bytes.
description:Output only. The size of the attachment in bytes.
memo:
memo:
type:string
type:string
description:|-
description:"Optional. The related memo. Refer to `Memo.name`.\r\n Format: memos/{memo}"
Optional. The related memo. Refer to `Memo.name`.
Format:memos/{memo}
AutoLinkNode:
AutoLinkNode:
type:object
type:object
properties:
properties:
@ -2373,14 +2264,10 @@ components:
properties:
properties:
username:
username:
type:string
type:string
description:|-
description:"The username to sign in with.\r\n Required field for password-based authentication."
The username to sign in with.
Required field for password-based authentication.
password:
password:
type:string
type:string
description:|-
description:"The password to sign in with.\r\n Required field for password-based authentication."
The password to sign in with.
Required field for password-based authentication.
description:Nested message for password-based authentication credentials.
description:Nested message for password-based authentication credentials.
CreateSessionRequest_SSOCredentials:
CreateSessionRequest_SSOCredentials:
required:
required:
@ -2391,20 +2278,14 @@ components:
properties:
properties:
idpId:
idpId:
type:integer
type:integer
description:|-
description:"The ID of the SSO provider.\r\n Required field to identify the SSO provider."
The ID of the SSO provider.
Required field to identify the SSO provider.
format:int32
format:int32
code:
code:
type:string
type:string
description:|-
description:"The authorization code from the SSO provider.\r\n Required field for completing the SSO flow."
The authorization code from the SSO provider.
Required field for completing the SSO flow.
redirectUri:
redirectUri:
type:string
type:string
description:|-
description:"The redirect URI used in the SSO flow.\r\n Required field for security validation."
The redirect URI used in the SSO flow.
Required field for security validation.
description:Nested message for SSO authentication credentials.
description:Nested message for SSO authentication credentials.
CreateSessionResponse:
CreateSessionResponse:
type:object
type:object
@ -2415,9 +2296,7 @@ components:
description:The authenticated user information.
description:The authenticated user information.
lastAccessedAt:
lastAccessedAt:
type:string
type:string
description:|-
description:"Last time the session was accessed.\r\n Used for sliding expiration calculation (last_accessed_time + 2 weeks)."
Last time the session was accessed.
Used for sliding expiration calculation (last_accessed_time + 2 weeks).
format:date-time
format:date-time
DeleteMemoTagRequest:
DeleteMemoTagRequest:
required:
required:
@ -2427,9 +2306,7 @@ components:
properties:
properties:
parent:
parent:
type:string
type:string
description:|-
description:"Required. The parent, who owns the tags.\r\n Format: memos/{memo}. Use \"memos/-\" to delete all tags."
Required. The parent, who owns the tags.
Format:memos/{memo}. Use "memos/-" to delete all tags.
tag:
tag:
type:string
type:string
description:Required. The tag name to delete.
description:Required. The tag name to delete.
@ -2480,9 +2357,7 @@ components:
$ref:'#/components/schemas/User'
$ref:'#/components/schemas/User'
lastAccessedAt:
lastAccessedAt:
type:string
type:string
description:|-
description:"Last time the session was accessed.\r\n Used for sliding expiration calculation (last_accessed_time + 2 weeks)."
Last time the session was accessed.
Used for sliding expiration calculation (last_accessed_time + 2 weeks).
format:date-time
format:date-time
GoogleProtobufAny:
GoogleProtobufAny:
type:object
type:object
@ -2536,9 +2411,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the identity provider.\r\n Format: identityProviders/{idp}"
The resource name of the identity provider.
Format:identityProviders/{idp}
type:
type:
enum:
enum:
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIED
@ -2573,21 +2446,15 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the inbox.\r\n Format: inboxes/{inbox}"
The resource name of the inbox.
Format:inboxes/{inbox}
sender:
sender:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The sender of the inbox notification.\r\n Format: users/{user}"
The sender of the inbox notification.
Format:users/{user}
receiver:
receiver:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The receiver of the inbox notification.\r\n Format: users/{user}"
The receiver of the inbox notification.
Format:users/{user}
status:
status:
enum:
enum:
- STATUS_UNSPECIFIED
- STATUS_UNSPECIFIED
@ -2657,10 +2524,7 @@ components:
description:The activities.
description:The activities.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token to retrieve the next page of results.\r\n Pass this value in the page_token field in the subsequent call to `ListActivities`\r\n method to retrieve the next page of results."
A token to retrieve the next page of results.
Pass this value in the page_token field in the subsequent call to `ListActivities`
method to retrieve the next page of results.
ListAllUserStatsResponse:
ListAllUserStatsResponse:
type:object
type:object
properties:
properties:
@ -2679,9 +2543,7 @@ components:
description:The list of attachments.
description:The list of attachments.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token that can be sent as `page_token` to retrieve the next page.\r\n If this field is omitted, there are no subsequent pages."
A token that can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
totalSize:
totalSize:
type:integer
type:integer
description:The total count of attachments (may be approximate).
description:The total count of attachments (may be approximate).
@ -2704,9 +2566,7 @@ components:
description:The list of inboxes.
description:The list of inboxes.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token that can be sent as `page_token` to retrieve the next page.\r\n If this field is omitted, there are no subsequent pages."
A token that can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
totalSize:
totalSize:
type:integer
type:integer
description:The total count of inboxes (may be approximate).
description:The total count of inboxes (may be approximate).
@ -2781,9 +2641,7 @@ components:
description:The list of memos.
description:The list of memos.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token that can be sent as `page_token` to retrieve the next page.\r\n If this field is omitted, there are no subsequent pages."
A token that can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
totalSize:
totalSize:
type:integer
type:integer
description:The total count of memos (may be approximate).
description:The total count of memos (may be approximate).
@ -2847,9 +2705,7 @@ components:
description:The list of user settings.
description:The list of user settings.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token that can be sent as `page_token` to retrieve the next page.\r\n If this field is omitted, there are no subsequent pages."
A token that can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
totalSize:
totalSize:
type:integer
type:integer
description:The total count of settings (may be approximate).
description:The total count of settings (may be approximate).
@ -2873,9 +2729,7 @@ components:
description:The list of users.
description:The list of users.
nextPageToken:
nextPageToken:
type:string
type:string
description:|-
description:"A token that can be sent as `page_token` to retrieve the next page.\r\n If this field is omitted, there are no subsequent pages."
A token that can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
totalSize:
totalSize:
type:integer
type:integer
description:The total count of users (may be approximate).
description:The total count of users (may be approximate).
@ -2913,9 +2767,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the memo.\r\n Format: memos/{memo}, memo is the user defined id or uuid."
The resource name of the memo.
Format:memos/{memo}, memo is the user defined id or uuid.
state:
state:
enum:
enum:
- STATE_UNSPECIFIED
- STATE_UNSPECIFIED
@ -2927,9 +2779,7 @@ components:
creator:
creator:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The name of the creator.\r\n Format: users/{user}"
The name of the creator.
Format:users/{user}
createTime:
createTime:
readOnly:true
readOnly:true
type:string
type:string
@ -2995,9 +2845,7 @@ components:
parent:
parent:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"Output only. The name of the parent memo.\r\n Format: memos/{memo}"
Output only. The name of the parent memo.
Format:memos/{memo}
snippet:
snippet:
readOnly:true
readOnly:true
type:string
type:string
@ -3035,9 +2883,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the memo.\r\n Format: memos/{memo}"
The resource name of the memo.
Format:memos/{memo}
snippet:
snippet:
readOnly:true
readOnly:true
type:string
type:string
@ -3223,21 +3069,14 @@ components:
name:
name:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The resource name of the reaction.\r\n Format: reactions/{reaction}"
The resource name of the reaction.
Format:reactions/{reaction}
creator:
creator:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The resource name of the creator.\r\n Format: users/{user}"
The resource name of the creator.
Format:users/{user}
contentId:
contentId:
type:string
type:string
description:|-
description:"The resource name of the content.\r\n For memo reactions, this should be the memo's resource name.\r\n Format: memos/{memo}"
The resource name of the content.
For memo reactions, this should be the memo's resource name.
Format:memos/{memo}
reactionType:
reactionType:
type:string
type:string
description:"Required. The type of reaction (e.g., \"\U0001F44D\", \"❤️\", \"\U0001F604\")."
description:"Required. The type of reaction (e.g., \"\U0001F44D\", \"❤️\", \"\U0001F604\")."
@ -3264,9 +3103,7 @@ components:
properties:
properties:
parent:
parent:
type:string
type:string
description:|-
description:"Required. The parent, who owns the tags.\r\n Format: memos/{memo}. Use \"memos/-\" to rename all tags."
Required. The parent, who owns the tags.
Format:memos/{memo}. Use "memos/-" to rename all tags.
oldTag:
oldTag:
type:string
type:string
description:Required. The old tag name to rename.
description:Required. The old tag name to rename.
@ -3297,9 +3134,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"Required. The resource name of the memo.\r\n Format: memos/{memo}"
Required. The resource name of the memo.
Format:memos/{memo}
attachments:
attachments:
type:array
type:array
items:
items:
@ -3313,9 +3148,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"Required. The resource name of the memo.\r\n Format: memos/{memo}"
Required. The resource name of the memo.
Format:memos/{memo}
relations:
relations:
type:array
type:array
items:
items:
@ -3328,9 +3161,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the shortcut.\r\n Format: users/{user}/shortcuts/{shortcut}"
The resource name of the shortcut.
Format:users/{user}/shortcuts/{shortcut}
title:
title:
type:string
type:string
description:The title of the shortcut.
description:The title of the shortcut.
@ -3373,9 +3204,7 @@ components:
type:string
type:string
usePathStyle:
usePathStyle:
type:boolean
type:boolean
description:|-
description:"S3 configuration for cloud storage backend.\r\n Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/"
description:"Required. The resource name of the memo.\r\n Format: memos/{memo}"
Required. The resource name of the memo.
Format:memos/{memo}
reaction:
reaction:
allOf:
allOf:
- $ref:'#/components/schemas/Reaction'
- $ref:'#/components/schemas/Reaction'
@ -3489,9 +3316,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the user.\r\n Format: users/{user}"
The resource name of the user.
Format:users/{user}
role:
role:
enum:
enum:
- ROLE_UNSPECIFIED
- ROLE_UNSPECIFIED
@ -3543,9 +3368,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the access token.\r\n Format: users/{user}/accessTokens/{access_token}"
The resource name of the access token.
Format:users/{user}/accessTokens/{access_token}
accessToken:
accessToken:
readOnly:true
readOnly:true
type:string
type:string
@ -3568,9 +3391,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the session.\r\n Format: users/{user}/sessions/{session}"
The resource name of the session.
Format:users/{user}/sessions/{session}
sessionId:
sessionId:
readOnly:true
readOnly:true
type:string
type:string
@ -3583,9 +3404,7 @@ components:
lastAccessedTime:
lastAccessedTime:
readOnly:true
readOnly:true
type:string
type:string
description:|-
description:"The timestamp when the session was last accessed.\r\n Used for sliding expiration calculation (last_accessed_time + 2 weeks)."
The timestamp when the session was last accessed.
Used for sliding expiration calculation (last_accessed_time + 2 weeks).
format:date-time
format:date-time
clientInfo:
clientInfo:
readOnly:true
readOnly:true
@ -3615,10 +3434,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The name of the user setting.\r\n Format: users/{user}/settings/{setting}, {setting} is the key for the setting.\r\n For example, \"users/123/settings/GENERAL\" for general settings."
The name of the user setting.
Format:users/{user}/settings/{setting}, {setting} is the key for the setting.
For example, "users/123/settings/GENERAL" for general settings.
description:"The preferred theme of the user.\r\n This references a CSS file in the web/public/themes/ directory.\r\n If not set, the default theme will be used."
The preferred theme of the user.
This references a CSS file in the web/public/themes/ directory.
If not set, the default theme will be used.
description:General user settings configuration.
description:General user settings configuration.
UserSetting_SessionsSetting:
UserSetting_SessionsSetting:
type:object
type:object
@ -3676,9 +3489,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The resource name of the user whose stats these are.\r\n Format: users/{user}"
The resource name of the user whose stats these are.
Format:users/{user}
memoDisplayTimestamps:
memoDisplayTimestamps:
type:array
type:array
items:
items:
@ -3726,9 +3537,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The name of the webhook.\r\n Format: users/{user}/webhooks/{webhook}"
The name of the webhook.
Format:users/{user}/webhooks/{webhook}
url:
url:
type:string
type:string
description:The URL to send the webhook to.
description:The URL to send the webhook to.
@ -3751,9 +3560,7 @@ components:
properties:
properties:
owner:
owner:
type:string
type:string
description:|-
description:"The name of instance owner.\r\n Format: users/{user}"
The name of instance owner.
Format:users/{user}
version:
version:
type:string
type:string
description:Version is the current version of instance.
description:Version is the current version of instance.
@ -3769,9 +3576,7 @@ components:
properties:
properties:
name:
name:
type:string
type:string
description:|-
description:"The name of the workspace setting.\r\n Format: workspace/settings/{setting}"
description:The maximum size in pixels for the largest dimension of thumbnail images.
format:int32
jpegQuality:
type:integer
description:The JPEG quality (0-100) used when downscaling uploaded images.
format:int32
thumbnailJpegQuality:
type:integer
description:The JPEG quality (0-100) used when generating thumbnails.
format:int32
imageMaxSize:
type:integer
description:"The maximum size in pixels for the largest dimension when storing images.\r\n Images larger than this will be downscaled before storage.\r\n Set to 0 to disable downscaling."
format:int32
description:Storage configuration settings for workspace attachments.
description:Storage configuration settings for workspace attachments.
// Log the error but continue with the original image if downscaling fails
// Log the error but continue with the original image if downscaling fails
slog.Warn("failed to downscale image attachment",slog.Any("error",err),slog.String("filename",create.Filename))
slog.Warn("failed to downscale image attachment",slog.Any("error",err),slog.String("filename",create.Filename))
@ -539,17 +540,6 @@ func (s *APIV1Service) GetAttachmentBlob(attachment *store.Attachment) ([]byte,
returnattachment.Blob,nil
returnattachment.Blob,nil
}
}
const(
// thumbnailMaxSize is the maximum size in pixels for the largest dimension of the thumbnail image.
thumbnailMaxSize=600
// defaultJPEGQuality is the default JPEG quality for downscaling images.
defaultJPEGQuality=85
// defaultThumbnailJPEGQuality is the JPEG quality for generated thumbnails.
defaultThumbnailJPEGQuality=75
// maxAttachmentImageDimension is the maximum size in pixels for the largest dimension when storing images. Images larger than this will be downscaled before storage.