1
0
mirror of https://github.com/usememos/memos.git synced 2025-02-06 11:02:11 +00:00

chore: buf generate

This commit is contained in:
johnnyjoy 2025-02-03 15:09:37 +08:00
parent b734d429ec
commit 503c892abf

View File

@ -305,9 +305,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent is the owner of the memos.\r\nIf not specified or `users/-`, it will list all memos."
The parent is the owner of the memos.
If not specified or `users/-`, it will list all memos.
in: query in: query
required: false required: false
type: string type: string
@ -318,16 +316,12 @@ paths:
type: integer type: integer
format: int32 format: int32
- name: pageToken - name: pageToken
description: |- description: "A page token, received from a previous `ListMemos` call.\r\nProvide this to retrieve the subsequent page."
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in: query in: query
required: false required: false
type: string type: string
- name: state - name: state
description: |- description: "The state of the memos to list.\r\nDefault to `NORMAL`. Set to `ARCHIVED` to list archived memos."
The state of the memos to list.
Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
in: query in: query
required: false required: false
type: string type: string
@ -337,16 +331,12 @@ paths:
- ARCHIVED - ARCHIVED
default: STATE_UNSPECIFIED default: STATE_UNSPECIFIED
- name: sort - name: sort
description: |- description: "What field to sort the results by.\r\nDefault to display_time."
What field to sort the results by.
Default to display_time.
in: query in: query
required: false required: false
type: string type: string
- name: direction - name: direction
description: |- description: "The direction to sort the results by.\r\nDefault to DESC."
The direction to sort the results by.
Default to DESC.
in: query in: query
required: false required: false
type: string type: string
@ -356,16 +346,12 @@ paths:
- DESC - DESC
default: DIRECTION_UNSPECIFIED default: DIRECTION_UNSPECIFIED
- name: filter - name: filter
description: |- description: "Filter is a CEL expression to filter memos.\r\nRefer to `Shortcut.filter`."
Filter is a CEL expression to filter memos.
Refer to `Shortcut.filter`.
in: query in: query
required: false required: false
type: string type: string
- name: oldFilter - name: oldFilter
description: |- description: "[Deprecated] Old filter contains some specific conditions to filter memos.\r\nFormat: \"creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']\""
[Deprecated] Old filter contains some specific conditions to filter memos.
Format: "creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query in: query
required: false required: false
type: string type: string
@ -410,9 +396,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: id - name: id
description: |- description: "The id of the reaction.\r\nRefer to the `Reaction.id`."
The id of the reaction.
Refer to the `Reaction.id`.
in: path in: path
required: true required: true
type: integer type: integer
@ -826,17 +810,13 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: memo.name - name: memo.name
description: |- description: "The name of the memo.\r\nFormat: memos/{memo}, memo is the user defined id or uuid."
The name of the memo.
Format: memos/{memo}, memo is the user defined id or uuid.
in: path in: path
required: true required: true
type: string type: string
pattern: memos/[^/]+ pattern: memos/[^/]+
- name: memo - name: memo
description: |- description: "The memo to update.\r\nThe `name` field is required."
The memo to update.
The `name` field is required.
in: body in: body
required: true required: true
schema: schema:
@ -846,9 +826,7 @@ paths:
$ref: '#/definitions/v1State' $ref: '#/definitions/v1State'
creator: creator:
type: string type: string
title: |- title: "The name of the creator.\r\nFormat: users/{user}"
The name of the creator.
Format: users/{user}
createTime: createTime:
type: string type: string
format: date-time format: date-time
@ -896,9 +874,7 @@ paths:
readOnly: true readOnly: true
parent: parent:
type: string type: string
title: |- title: "The name of the parent memo.\r\nFormat: memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly: true readOnly: true
snippet: snippet:
type: string type: string
@ -907,9 +883,7 @@ paths:
location: location:
$ref: '#/definitions/apiv1Location' $ref: '#/definitions/apiv1Location'
description: The location of the memo. description: The location of the memo.
title: |- title: "The memo to update.\r\nThe `name` field is required."
The memo to update.
The `name` field is required.
required: required:
- memo - memo
tags: tags:
@ -1466,9 +1440,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent is the owner of the memos.\r\nIf not specified or `users/-`, it will list all memos."
The parent is the owner of the memos.
If not specified or `users/-`, it will list all memos.
in: path in: path
required: true required: true
type: string type: string
@ -1480,16 +1452,12 @@ paths:
type: integer type: integer
format: int32 format: int32
- name: pageToken - name: pageToken
description: |- description: "A page token, received from a previous `ListMemos` call.\r\nProvide this to retrieve the subsequent page."
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in: query in: query
required: false required: false
type: string type: string
- name: state - name: state
description: |- description: "The state of the memos to list.\r\nDefault to `NORMAL`. Set to `ARCHIVED` to list archived memos."
The state of the memos to list.
Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
in: query in: query
required: false required: false
type: string type: string
@ -1499,16 +1467,12 @@ paths:
- ARCHIVED - ARCHIVED
default: STATE_UNSPECIFIED default: STATE_UNSPECIFIED
- name: sort - name: sort
description: |- description: "What field to sort the results by.\r\nDefault to display_time."
What field to sort the results by.
Default to display_time.
in: query in: query
required: false required: false
type: string type: string
- name: direction - name: direction
description: |- description: "The direction to sort the results by.\r\nDefault to DESC."
The direction to sort the results by.
Default to DESC.
in: query in: query
required: false required: false
type: string type: string
@ -1518,16 +1482,12 @@ paths:
- DESC - DESC
default: DIRECTION_UNSPECIFIED default: DIRECTION_UNSPECIFIED
- name: filter - name: filter
description: |- description: "Filter is a CEL expression to filter memos.\r\nRefer to `Shortcut.filter`."
Filter is a CEL expression to filter memos.
Refer to `Shortcut.filter`.
in: query in: query
required: false required: false
type: string type: string
- name: oldFilter - name: oldFilter
description: |- description: "[Deprecated] Old filter contains some specific conditions to filter memos.\r\nFormat: \"creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']\""
[Deprecated] Old filter contains some specific conditions to filter memos.
Format: "creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query in: query
required: false required: false
type: string type: string
@ -1665,9 +1625,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to delete all tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to delete all tags.
in: path in: path
required: true required: true
type: string type: string
@ -1698,9 +1656,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: parent - name: parent
description: |- description: "The parent, who owns the tags.\r\nFormat: memos/{id}. Use \"memos/-\" to rename all tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to rename all tags.
in: path in: path
required: true required: true
type: string type: string
@ -1815,9 +1771,7 @@ paths:
$ref: '#/definitions/googlerpcStatus' $ref: '#/definitions/googlerpcStatus'
parameters: parameters:
- name: user.name - name: user.name
description: |- description: "The name of the user.\r\nFormat: users/{id}, id is the system generated auto-incremented id."
The name of the user.
Format: users/{id}, id is the system generated auto-incremented id.
in: path in: path
required: true required: true
type: string type: string
@ -2152,17 +2106,13 @@ definitions:
properties: properties:
name: name:
type: string type: string
description: |- description: "The name of the memo.\r\nFormat: memos/{memo}, memo is the user defined id or uuid."
The name of the memo.
Format: memos/{memo}, memo is the user defined id or uuid.
readOnly: true readOnly: true
state: state:
$ref: '#/definitions/v1State' $ref: '#/definitions/v1State'
creator: creator:
type: string type: string
title: |- title: "The name of the creator.\r\nFormat: users/{user}"
The name of the creator.
Format: users/{user}
createTime: createTime:
type: string type: string
format: date-time format: date-time
@ -2210,9 +2160,7 @@ definitions:
readOnly: true readOnly: true
parent: parent:
type: string type: string
title: |- title: "The name of the parent memo.\r\nFormat: memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly: true readOnly: true
snippet: snippet:
type: string type: string
@ -2793,9 +2741,7 @@ definitions:
$ref: '#/definitions/apiv1Memo' $ref: '#/definitions/apiv1Memo'
nextPageToken: nextPageToken:
type: string type: string
description: |- description: "A token, which can be sent as `page_token` to retrieve the next page.\r\nIf this field is omitted, there are no subsequent pages."
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListNode: v1ListNode:
type: object type: object
properties: properties:
@ -3213,9 +3159,7 @@ definitions:
properties: properties:
name: name:
type: string type: string
description: |- description: "The name of the user.\r\nFormat: users/{id}, id is the system generated auto-incremented id."
The name of the user.
Format: users/{id}, id is the system generated auto-incremented id.
role: role:
$ref: '#/definitions/UserRole' $ref: '#/definitions/UserRole'
username: username:
@ -3264,9 +3208,7 @@ definitions:
items: items:
type: string type: string
format: date-time format: date-time
description: |- description: "The timestamps when the memos were displayed.\r\nWe should return raw data to the client, and let the client format the data with the user's timezone."
The timestamps when the memos were displayed.
We should return raw data to the client, and let the client format the data with the user's timezone.
memoTypeStats: memoTypeStats:
$ref: '#/definitions/UserStatsMemoTypeStats' $ref: '#/definitions/UserStatsMemoTypeStats'
description: The stats of memo types. description: The stats of memo types.
@ -3275,9 +3217,7 @@ definitions:
additionalProperties: additionalProperties:
type: integer type: integer
format: int32 format: int32
title: |- title: "The count of tags.\r\nFormat: \"tag1\": 1, \"tag2\": 2"
The count of tags.
Format: "tag1": 1, "tag2": 2
v1Visibility: v1Visibility:
type: string type: string
enum: enum: