Skip to content
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 6 commits into from
Apr 16, 2024

Conversation

anatawa12
Copy link
Collaborator

@anatawa12 anatawa12 commented Apr 16, 2024

What

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

Copy link

github-actions bot commented Apr 16, 2024

この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",

Get diff files from Workflow Page

@anatawa12 anatawa12 mentioned this pull request Apr 16, 2024
5 tasks
@Sayamame-beans
Copy link

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

@anatawa12
Copy link
Collaborator Author

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

@anatawa12 anatawa12 force-pushed the vmimi-relay-timeline branch from 8cd2070 to 30c7bf3 Compare April 16, 2024 13:23
@anatawa12 anatawa12 merged commit 0078d09 into niri-la:develop Apr 16, 2024
22 checks passed
@anatawa12 anatawa12 deleted the vmimi-relay-timeline branch April 16, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants