niri-la / misskey.niri.la

🌎 An interplanetary microblogging platform 🚀
GNU Affero General Public License v3.0
14 stars 1 forks source link

virtual kemomimi relay social timeline #176

Closed anatawa12 closed 7 months ago

anatawa12 commented 7 months ago

What

Why

Additional info (optional)

Checklist

github-actions[bot] commented 7 months ago

このPRによるapi.jsonの差分

差分はこちら ```diff --- base +++ head @@ -13257,6 +13257,9 @@ "enableFanoutTimelineDbFallback": { "type": "boolean" }, + "vmimiRelayTimelineCacheMax": { + "type": "integer" + }, "perLocalUserUserTimelineCacheMax": { "type": "integer" }, @@ -55266,6 +55269,10 @@ "maximum": 100, "default": 10 }, + "allowPartial": { + "type": "boolean", + "default": true + }, "sinceId": { "type": "string", "format": "misskey:id" @@ -55308,12 +55315,227 @@ "$ref": "#/components/schemas/Error" }, "examples": { - "GTL_DISABLED": { + "VMIMI_RELAY_DISABLED": { "value": { "error": { - "message": "Global timeline has been disabled.", - "code": "GTL_DISABLED", - "id": "0332fc13-6ab2-4427-ae80-a9fadffd1a6b" + "message": "Vmimi Relay timeline has been disabled.", + "code": "VMIMI_RELAY_DISABLED", + "id": "7f0064c3-59a0-4154-8c37-a8898c128ccc" + } + } + }, + "BOTH_WITH_REPLIES_AND_WITH_FILES": { + "value": { + "error": { + "message": "Specifying both withReplies and withFiles is not supported", + "code": "BOTH_WITH_REPLIES_AND_WITH_FILES", + "id": "dd9c8400-1cb5-4eef-8a31-200c5f933793" + } + } + }, + "INVALID_PARAM": { + "value": { + "error": { + "message": "Invalid param.", + "code": "INVALID_PARAM", + "id": "3d81ceae-475f-4600-b2a8-2bc116157532" + } + } + } + } + } + } + }, + "401": { + "description": "Authentication error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "examples": { + "CREDENTIAL_REQUIRED": { + "value": { + "error": { + "message": "Credential required.", + "code": "CREDENTIAL_REQUIRED", + "id": "1384574d-a912-4b81-8601-c7b1c4085df1" + } + } + } + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "examples": { + "AUTHENTICATION_FAILED": { + "value": { + "error": { + "message": "Authentication failed. Please ensure your token is correct.", + "code": "AUTHENTICATION_FAILED", + "id": "b0a7f5f8-dc2f-4171-b91f-de88ad238e14" + } + } + } + } + } + } + }, + "418": { + "description": "I'm Ai", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "examples": { + "I_AM_AI": { + "value": { + "error": { + "message": "You sent a request to Ai-chan, Misskey's showgirl, instead of the server.", + "code": "I_AM_AI", + "id": "60c46cd1-f23a-46b1-bebe-5d2b73951a84" + } + } + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "examples": { + "INTERNAL_ERROR": { + "value": { + "error": { + "message": "Internal error occurred. Please contact us if the error persists.", + "code": "INTERNAL_ERROR", + "id": "5d37dbcb-891e-41ca-a3d6-e690c97775ac" + } + } + } + } + } + } + } + } + } + }, + "/notes/vmimi-relay-hybrid-timeline": { + "post": { + "operationId": "notes/vmimi-relay-hybrid-timeline", + "summary": "notes/vmimi-relay-hybrid-timeline", + "description": "No description provided.\n\n**Credential required**: *Yes* / **Permission**: *read:account*", + "externalDocs": { + "description": "Source code", + "url": "https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/vmimi-relay-hybrid-timeline.ts" + }, + "tags": [ + "notes" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "withFiles": { + "type": "boolean", + "default": false + }, + "withRenotes": { + "type": "boolean", + "default": true + }, + "withReplies": { + "type": "boolean", + "default": false + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + }, + "allowPartial": { + "type": "boolean", + "default": true + }, + "sinceId": { + "type": "string", + "format": "misskey:id" + }, + "untilId": { + "type": "string", + "format": "misskey:id" + }, + "sinceDate": { + "type": "integer" + }, + "untilDate": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK (with results)", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/components/schemas/Note" + } + } + } + } + }, + "400": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "examples": { + "VMIMI_RELAY_DISABLED": { + "value": { + "error": { + "message": "Vmimi Relay Hybrid timeline has been disabled.", + "code": "VMIMI_RELAY_DISABLED", + "id": "e7496627-8086-4294-b488-63323eb80145" + } + } + }, + "BOTH_WITH_REPLIES_AND_WITH_FILES": { + "value": { + "error": { + "message": "Specifying both withReplies and withFiles is not supported", + "code": "BOTH_WITH_REPLIES_AND_WITH_FILES", + "id": "8222638e-a5a9-495d-ae72-e825793e0a63" } } }, @@ -78582,6 +78804,9 @@ "RolePolicies": { "type": "object", "properties": { + "vrtlAvailable": { + "type": "boolean" + }, "gtlAvailable": { "type": "boolean" }, @@ -78659,6 +78884,7 @@ } }, "required": [ + "vrtlAvailable", "gtlAvailable", "ltlAvailable", "canPublicNote", ```

Get diff files from Workflow Page

Sayamame-beans commented 7 months ago

それ以外は多分大丈夫そうかな?

anatawa12 commented 7 months ago

他フォークの都合もあるのでrebaseでなおします