forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virtual kemomimi relay social timeline #176
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
このPRによるapi.jsonの差分 差分はこちら--- 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", |
5 tasks
Sayamame-beans
requested changes
Apr 16, 2024
packages/backend/src/server/api/endpoints/notes/vmimi-relay-hybrid-timeline.ts
Outdated
Show resolved
Hide resolved
packages/backend/src/server/api/stream/channels/vmimi-relay-hybrid-timeline.ts
Outdated
Show resolved
Hide resolved
それ以外は多分大丈夫そうかな? |
他フォークの都合もあるのでrebaseでなおします |
anatawa12
force-pushed
the
vmimi-relay-timeline
branch
from
April 16, 2024 13:23
8cd2070
to
30c7bf3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Why
Additional info (optional)
Checklist