diff --git a/.pnp.cjs b/.pnp.cjs index 0c80c74f4..6bb66681c 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -632,14 +632,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "@msgpackr-extract/msgpackr-extract-win32-x64",\ "npm:3.0.2"\ ],\ - [\ - "@napi-rs/cli",\ - "npm:2.16.2"\ - ],\ [\ "@nicolo-ribaudo/eslint-scope-5-internals",\ "npm:5.1.1-v1"\ ],\ + [\ + "@noble/hashes",\ + "npm:1.3.2"\ + ],\ [\ "@nodelib/fs.scandir",\ "npm:2.1.5"\ @@ -672,6 +672,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "@one-ini/wasm",\ "npm:0.1.1"\ ],\ + [\ + "@paralleldrive/cuid2",\ + "npm:2.2.2"\ + ],\ [\ "@peertube/http-signature",\ "npm:1.7.0"\ @@ -1732,10 +1736,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "array-each",\ "npm:1.0.1"\ ],\ - [\ - "array-find-index",\ - "npm:1.0.2"\ - ],\ [\ "array-includes",\ "npm:3.1.6"\ @@ -1776,13 +1776,9 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "arraybuffer.prototype.slice",\ "npm:1.0.1"\ ],\ - [\ - "arrgv",\ - "npm:1.0.2"\ - ],\ [\ "arrify",\ - "npm:3.0.0"\ + "npm:1.0.1"\ ],\ [\ "asap",\ @@ -1860,10 +1856,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "autwh",\ "npm:0.1.0"\ ],\ - [\ - "ava",\ - "virtual:0d724437a020122f1695576a13f5e58383ee1476d1c74074ee21f8766a7c060513cea7f5dab52d196eacd46af11bc070b1130d3bd6e645d3a0d91f18f2ec8123#npm:5.1.1"\ - ],\ [\ "available-typed-arrays",\ "npm:1.0.5"\ @@ -1984,10 +1976,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "bluebird",\ "npm:3.7.2"\ ],\ - [\ - "blueimp-md5",\ - "npm:2.19.0"\ - ],\ [\ "blurhash",\ "npm:2.0.5"\ @@ -2248,18 +2236,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "chrome-trace-event",\ "npm:1.0.3"\ ],\ - [\ - "chunkd",\ - "npm:2.0.1"\ - ],\ [\ "ci-info",\ "npm:3.8.0"\ ],\ - [\ - "ci-parallel-vars",\ - "npm:1.0.1"\ - ],\ [\ "city-timezones",\ "npm:1.2.1"\ @@ -2284,10 +2264,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "clean-stack",\ "npm:2.2.0"\ ],\ - [\ - "clean-yaml-object",\ - "npm:0.1.0"\ - ],\ [\ "cli-cursor",\ "npm:3.1.0"\ @@ -2356,10 +2332,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "coa",\ "npm:1.0.4"\ ],\ - [\ - "code-excerpt",\ - "npm:4.0.0"\ - ],\ [\ "code-point-at",\ "npm:1.1.0"\ @@ -2420,10 +2392,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "comment-parser",\ "npm:1.3.1"\ ],\ - [\ - "common-path-prefix",\ - "npm:3.0.0"\ - ],\ [\ "common-tags",\ "npm:1.8.2"\ @@ -2448,10 +2416,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "concat-stream",\ "npm:1.6.2"\ ],\ - [\ - "concordance",\ - "npm:5.0.4"\ - ],\ [\ "condense-newlines",\ "npm:0.2.1"\ @@ -2484,10 +2448,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "convert-source-map",\ "npm:1.9.0"\ ],\ - [\ - "convert-to-spaces",\ - "npm:2.0.1"\ - ],\ [\ "cookies",\ "npm:0.8.0"\ @@ -2588,10 +2548,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "csstype",\ "npm:3.1.2"\ ],\ - [\ - "currently-unhandled",\ - "npm:0.4.1"\ - ],\ [\ "custom-event-polyfill",\ "npm:1.0.7"\ @@ -2628,10 +2584,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "date-fns",\ "npm:2.30.0"\ ],\ - [\ - "date-time",\ - "npm:3.1.0"\ - ],\ [\ "dayjs",\ "npm:1.11.9"\ @@ -2748,10 +2700,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "defined",\ "npm:1.0.1"\ ],\ - [\ - "del",\ - "npm:7.0.0"\ - ],\ [\ "delayed-stream",\ "npm:1.0.0"\ @@ -3812,10 +3760,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "ignore",\ "npm:5.2.4"\ ],\ - [\ - "ignore-by-default",\ - "npm:2.1.0"\ - ],\ [\ "immutable",\ "npm:4.3.1"\ @@ -4008,10 +3952,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "is-electron",\ "npm:2.2.2"\ ],\ - [\ - "is-error",\ - "npm:2.2.2"\ - ],\ [\ "is-expression",\ "npm:4.0.0"\ @@ -4088,10 +4028,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "is-number-object",\ "npm:1.0.7"\ ],\ - [\ - "is-path-cwd",\ - "npm:3.0.0"\ - ],\ [\ "is-path-inside",\ "npm:3.0.3"\ @@ -4384,10 +4320,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "js-levenshtein",\ "npm:1.1.6"\ ],\ - [\ - "js-string-escape",\ - "npm:1.0.1"\ - ],\ [\ "js-stringify",\ "npm:1.0.2"\ @@ -4800,10 +4732,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "makeerror",\ "npm:1.0.12"\ ],\ - [\ - "map-age-cleaner",\ - "npm:0.1.3"\ - ],\ [\ "map-cache",\ "npm:0.2.2"\ @@ -4828,10 +4756,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "matchdep",\ "npm:2.0.0"\ ],\ - [\ - "matcher",\ - "npm:5.0.0"\ - ],\ [\ "math-expression-evaluator",\ "npm:1.4.0"\ @@ -4840,10 +4764,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "matter-js",\ "npm:0.18.0"\ ],\ - [\ - "md5-hex",\ - "npm:3.0.1"\ - ],\ [\ "mdast-util-from-markdown",\ "npm:0.8.5"\ @@ -4864,10 +4784,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "meilisearch",\ "npm:0.33.0"\ ],\ - [\ - "mem",\ - "npm:9.0.2"\ - ],\ [\ "meow",\ "npm:9.0.0"\ @@ -4906,7 +4822,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "mimic-fn",\ - "npm:4.0.0"\ + "npm:2.1.0"\ ],\ [\ "mimic-response",\ @@ -5308,14 +5224,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "p-cancelable",\ "npm:2.1.1"\ ],\ - [\ - "p-defer",\ - "npm:1.0.0"\ - ],\ - [\ - "p-event",\ - "npm:5.0.1"\ - ],\ [\ "p-finally",\ "npm:1.0.0"\ @@ -5338,7 +5246,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "p-timeout",\ - "npm:5.1.0"\ + "npm:3.2.0"\ ],\ [\ "p-try",\ @@ -5380,10 +5288,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "parse-link-header",\ "npm:2.0.0"\ ],\ - [\ - "parse-ms",\ - "npm:3.0.0"\ - ],\ [\ "parse-node-version",\ "npm:1.0.1"\ @@ -5536,10 +5440,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "pirates",\ "npm:4.0.6"\ ],\ - [\ - "pkg-conf",\ - "npm:4.0.0"\ - ],\ [\ "pkg-dir",\ "npm:4.2.0"\ @@ -5554,7 +5454,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "plur",\ - "npm:5.1.0"\ + "npm:4.0.0"\ ],\ [\ "pluralize",\ @@ -5760,10 +5660,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "pretty-hrtime",\ "npm:1.0.3"\ ],\ - [\ - "pretty-ms",\ - "npm:8.0.0"\ - ],\ [\ "prismjs",\ "npm:1.29.0"\ @@ -6296,10 +6192,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "semver-truncate",\ "npm:3.0.0"\ ],\ - [\ - "serialize-error",\ - "npm:7.0.1"\ - ],\ [\ "serialize-javascript",\ "npm:6.0.0"\ @@ -6634,10 +6526,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "summaly",\ "npm:2.7.0"\ ],\ - [\ - "supertap",\ - "npm:3.0.1"\ - ],\ [\ "supports-color",\ "npm:8.1.1"\ @@ -6710,10 +6598,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "tar-stream",\ "npm:3.1.6"\ ],\ - [\ - "temp-dir",\ - "npm:3.0.0"\ - ],\ [\ "terminal-link",\ "npm:2.1.1"\ @@ -6790,10 +6674,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "time-stamp",\ "npm:1.1.0"\ ],\ - [\ - "time-zone",\ - "npm:1.0.0"\ - ],\ [\ "tinycolor2",\ "npm:1.5.2"\ @@ -7254,10 +7134,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "websocket",\ "npm:1.0.34"\ ],\ - [\ - "well-known-symbols",\ - "npm:2.0.0"\ - ],\ [\ "whatwg-encoding",\ "npm:2.0.0"\ @@ -7323,7 +7199,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "write-file-atomic",\ - "npm:5.0.1"\ + "npm:3.0.3"\ ],\ [\ "ws",\ @@ -7433,7 +7309,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@bull-board/api", "virtual:6d3c013820dba430e71ebb352cb5205445a13ea3c7a848f57a7ff58fb0d6469fe4d374280277dac42cb77a6dbf8e924e64f2f0b3413c28a02da9d890c199e6d7#npm:5.6.0"],\ ["@bull-board/ui", "npm:5.6.0"],\ - ["@napi-rs/cli", "npm:2.16.2"],\ ["@tensorflow/tfjs", "npm:3.21.0"],\ ["@types/gulp", "npm:4.0.13"],\ ["@types/gulp-rename", "npm:2.0.2"],\ @@ -10296,22 +10171,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["@napi-rs/cli", [\ - ["npm:2.16.1", {\ - "packageLocation": "./.yarn/cache/@napi-rs-cli-npm-2.16.1-620418cc90-5f61712cf1.zip/node_modules/@napi-rs/cli/",\ - "packageDependencies": [\ - ["@napi-rs/cli", "npm:2.16.1"]\ - ],\ - "linkType": "HARD"\ - }],\ - ["npm:2.16.2", {\ - "packageLocation": "./.yarn/cache/@napi-rs-cli-npm-2.16.2-6a6e8233b9-98f2905fbc.zip/node_modules/@napi-rs/cli/",\ - "packageDependencies": [\ - ["@napi-rs/cli", "npm:2.16.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["@nicolo-ribaudo/eslint-scope-5-internals", [\ ["npm:5.1.1-v1", {\ "packageLocation": "./.yarn/cache/@nicolo-ribaudo-eslint-scope-5-internals-npm-5.1.1-v1-87df86be4b-f2e3b2d6a6.zip/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/",\ @@ -10322,6 +10181,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@noble/hashes", [\ + ["npm:1.3.2", {\ + "packageLocation": "./.yarn/cache/@noble-hashes-npm-1.3.2-1e619f9da0-fe23536b43.zip/node_modules/@noble/hashes/",\ + "packageDependencies": [\ + ["@noble/hashes", "npm:1.3.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@nodelib/fs.scandir", [\ ["npm:2.1.5", {\ "packageLocation": "./.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip/node_modules/@nodelib/fs.scandir/",\ @@ -10408,6 +10276,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@paralleldrive/cuid2", [\ + ["npm:2.2.2", {\ + "packageLocation": "./.yarn/cache/@paralleldrive-cuid2-npm-2.2.2-e6061749b2-f7f6ac70e0.zip/node_modules/@paralleldrive/cuid2/",\ + "packageDependencies": [\ + ["@paralleldrive/cuid2", "npm:2.2.2"],\ + ["@noble/hashes", "npm:1.3.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@peertube/http-signature", [\ ["npm:1.7.0", {\ "packageLocation": "./.yarn/cache/@peertube-http-signature-npm-1.7.0-86ceb52221-a6a3d34432.zip/node_modules/@peertube/http-signature/",\ @@ -13966,15 +13844,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["indent-string", "npm:4.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.1", {\ - "packageLocation": "./.yarn/cache/aggregate-error-npm-4.0.1-12d0501fb7-bb3ffdfd13.zip/node_modules/aggregate-error/",\ - "packageDependencies": [\ - ["aggregate-error", "npm:4.0.1"],\ - ["clean-stack", "npm:4.2.0"],\ - ["indent-string", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["ajv", [\ @@ -14416,15 +14285,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["array-find-index", [\ - ["npm:1.0.2", {\ - "packageLocation": "./.yarn/cache/array-find-index-npm-1.0.2-a7d5fbff35-aac128bf36.zip/node_modules/array-find-index/",\ - "packageDependencies": [\ - ["array-find-index", "npm:1.0.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["array-includes", [\ ["npm:3.1.6", {\ "packageLocation": "./.yarn/cache/array-includes-npm-3.1.6-d0ff9d248b-f22f8cd8ba.zip/node_modules/array-includes/",\ @@ -14540,15 +14400,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["arrgv", [\ - ["npm:1.0.2", {\ - "packageLocation": "./.yarn/cache/arrgv-npm-1.0.2-2f5078bb50-470bbb406e.zip/node_modules/arrgv/",\ - "packageDependencies": [\ - ["arrgv", "npm:1.0.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["arrify", [\ ["npm:1.0.1", {\ "packageLocation": "./.yarn/cache/arrify-npm-1.0.1-affafba9fe-745075dd4a.zip/node_modules/arrify/",\ @@ -14556,13 +14407,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["arrify", "npm:1.0.1"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/arrify-npm-3.0.0-84cf7a301c-d6c6f3dad9.zip/node_modules/arrify/",\ - "packageDependencies": [\ - ["arrify", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["asap", [\ @@ -14754,73 +14598,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["ava", [\ - ["npm:5.1.1", {\ - "packageLocation": "./.yarn/cache/ava-npm-5.1.1-31c6d17423-cae5771ea6.zip/node_modules/ava/",\ - "packageDependencies": [\ - ["ava", "npm:5.1.1"]\ - ],\ - "linkType": "SOFT"\ - }],\ - ["virtual:0d724437a020122f1695576a13f5e58383ee1476d1c74074ee21f8766a7c060513cea7f5dab52d196eacd46af11bc070b1130d3bd6e645d3a0d91f18f2ec8123#npm:5.1.1", {\ - "packageLocation": "./.yarn/__virtual__/ava-virtual-3986921b9c/0/cache/ava-npm-5.1.1-31c6d17423-cae5771ea6.zip/node_modules/ava/",\ - "packageDependencies": [\ - ["ava", "virtual:0d724437a020122f1695576a13f5e58383ee1476d1c74074ee21f8766a7c060513cea7f5dab52d196eacd46af11bc070b1130d3bd6e645d3a0d91f18f2ec8123#npm:5.1.1"],\ - ["@ava/typescript", null],\ - ["@types/ava__typescript", null],\ - ["acorn", "npm:8.10.0"],\ - ["acorn-walk", "npm:8.2.0"],\ - ["ansi-styles", "npm:6.2.1"],\ - ["arrgv", "npm:1.0.2"],\ - ["arrify", "npm:3.0.0"],\ - ["callsites", "npm:4.0.0"],\ - ["cbor", "npm:8.1.0"],\ - ["chalk", "npm:5.3.0"],\ - ["chokidar", "npm:3.5.3"],\ - ["chunkd", "npm:2.0.1"],\ - ["ci-info", "npm:3.8.0"],\ - ["ci-parallel-vars", "npm:1.0.1"],\ - ["clean-yaml-object", "npm:0.1.0"],\ - ["cli-truncate", "npm:3.1.0"],\ - ["code-excerpt", "npm:4.0.0"],\ - ["common-path-prefix", "npm:3.0.0"],\ - ["concordance", "npm:5.0.4"],\ - ["currently-unhandled", "npm:0.4.1"],\ - ["debug", "virtual:ac3d8e680759ce54399273724d44e041d6c9b73454d191d411a8c44bb27e22f02aaf6ed9d3ad0ac1c298eac4833cff369c9c7b84c573016112c4f84be2cd8543#npm:4.3.4"],\ - ["del", "npm:7.0.0"],\ - ["emittery", "npm:1.0.1"],\ - ["figures", "npm:5.0.0"],\ - ["globby", "npm:13.2.2"],\ - ["ignore-by-default", "npm:2.1.0"],\ - ["indent-string", "npm:5.0.0"],\ - ["is-error", "npm:2.2.2"],\ - ["is-plain-object", "npm:5.0.0"],\ - ["is-promise", "npm:4.0.0"],\ - ["matcher", "npm:5.0.0"],\ - ["mem", "npm:9.0.2"],\ - ["ms", "npm:2.1.3"],\ - ["p-event", "npm:5.0.1"],\ - ["p-map", "npm:5.5.0"],\ - ["picomatch", "npm:2.3.1"],\ - ["pkg-conf", "npm:4.0.0"],\ - ["plur", "npm:5.1.0"],\ - ["pretty-ms", "npm:8.0.0"],\ - ["resolve-cwd", "npm:3.0.0"],\ - ["slash", "npm:3.0.0"],\ - ["stack-utils", "npm:2.0.6"],\ - ["strip-ansi", "npm:7.1.0"],\ - ["supertap", "npm:3.0.1"],\ - ["temp-dir", "npm:3.0.0"],\ - ["write-file-atomic", "npm:5.0.1"],\ - ["yargs", "npm:17.7.2"]\ - ],\ - "packagePeers": [\ - "@ava/typescript",\ - "@types/ava__typescript"\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["available-typed-arrays", [\ ["npm:1.0.5", {\ "packageLocation": "./.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-20eb47b3ce.zip/node_modules/available-typed-arrays/",\ @@ -15179,6 +14956,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@koa/cors", "npm:3.4.3"],\ ["@koa/multer", "virtual:aa59773ac87791c4813d53447077fcf8a847d6de5a301d34dc31286584b1dbb26d30d3adb5b4c41c1e8aea04371e926fda05c09c6253647c432e11d872a304ba#npm:3.0.2"],\ ["@koa/router", "npm:9.0.1"],\ + ["@paralleldrive/cuid2", "npm:2.2.2"],\ ["@peertube/http-signature", "npm:1.7.0"],\ ["@redocly/openapi-core", "npm:1.0.0-beta.131"],\ ["@sinonjs/fake-timers", "npm:9.1.2"],\ @@ -15522,15 +15300,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["blueimp-md5", [\ - ["npm:2.19.0", {\ - "packageLocation": "./.yarn/cache/blueimp-md5-npm-2.19.0-0a19585c8c-28095dcbd2.zip/node_modules/blueimp-md5/",\ - "packageDependencies": [\ - ["blueimp-md5", "npm:2.19.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["blurhash", [\ ["npm:2.0.5", {\ "packageLocation": "./.yarn/cache/blurhash-npm-2.0.5-7648719b71-aa4d6855bb.zip/node_modules/blurhash/",\ @@ -16019,13 +15788,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["callsites", "npm:3.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/callsites-npm-4.0.0-a9fc778262-ad3c3a5732.zip/node_modules/callsites/",\ - "packageDependencies": [\ - ["callsites", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["camelcase", [\ @@ -16423,15 +16185,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["chunkd", [\ - ["npm:2.0.1", {\ - "packageLocation": "./.yarn/cache/chunkd-npm-2.0.1-2a1d1afad0-bab8cc08c7.zip/node_modules/chunkd/",\ - "packageDependencies": [\ - ["chunkd", "npm:2.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["ci-info", [\ ["npm:3.8.0", {\ "packageLocation": "./.yarn/cache/ci-info-npm-3.8.0-d56a0b67d6-d0a4d31604.zip/node_modules/ci-info/",\ @@ -16441,15 +16194,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["ci-parallel-vars", [\ - ["npm:1.0.1", {\ - "packageLocation": "./.yarn/cache/ci-parallel-vars-npm-1.0.1-27c813d568-ae859831f7.zip/node_modules/ci-parallel-vars/",\ - "packageDependencies": [\ - ["ci-parallel-vars", "npm:1.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["city-timezones", [\ ["npm:1.2.1", {\ "packageLocation": "./.yarn/cache/city-timezones-npm-1.2.1-c5e7373ad7-e73f773022.zip/node_modules/city-timezones/",\ @@ -16509,23 +16253,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["clean-stack", "npm:2.2.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.2.0", {\ - "packageLocation": "./.yarn/cache/clean-stack-npm-4.2.0-bb0dff47b2-373f656a31.zip/node_modules/clean-stack/",\ - "packageDependencies": [\ - ["clean-stack", "npm:4.2.0"],\ - ["escape-string-regexp", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["clean-yaml-object", [\ - ["npm:0.1.0", {\ - "packageLocation": "./.yarn/cache/clean-yaml-object-npm-0.1.0-aaf2e3e19e-0374ad2f1f.zip/node_modules/clean-yaml-object/",\ - "packageDependencies": [\ - ["clean-yaml-object", "npm:0.1.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["cli-cursor", [\ @@ -16582,15 +16309,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["string-width", "npm:4.2.3"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:3.1.0", {\ - "packageLocation": "./.yarn/cache/cli-truncate-npm-3.1.0-654d2989ef-c3243e4197.zip/node_modules/cli-truncate/",\ - "packageDependencies": [\ - ["cli-truncate", "npm:3.1.0"],\ - ["slice-ansi", "npm:5.0.0"],\ - ["string-width", "npm:5.1.2"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["client", [\ @@ -16855,16 +16573,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["code-excerpt", [\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/code-excerpt-npm-4.0.0-f453325e6e-d57137d8f4.zip/node_modules/code-excerpt/",\ - "packageDependencies": [\ - ["code-excerpt", "npm:4.0.0"],\ - ["convert-to-spaces", "npm:2.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["code-point-at", [\ ["npm:1.1.0", {\ "packageLocation": "./.yarn/cache/code-point-at-npm-1.1.0-37de5fe566-17d5666611.zip/node_modules/code-point-at/",\ @@ -17096,15 +16804,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["common-path-prefix", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/common-path-prefix-npm-3.0.0-68b78785c1-fdb3c4f54e.zip/node_modules/common-path-prefix/",\ - "packageDependencies": [\ - ["common-path-prefix", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["common-tags", [\ ["npm:1.8.2", {\ "packageLocation": "./.yarn/cache/common-tags-npm-1.8.2-2c30ba69b3-767a6255a8.zip/node_modules/common-tags/",\ @@ -17167,23 +16866,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["concordance", [\ - ["npm:5.0.4", {\ - "packageLocation": "./.yarn/cache/concordance-npm-5.0.4-e641405dd9-749153ba71.zip/node_modules/concordance/",\ - "packageDependencies": [\ - ["concordance", "npm:5.0.4"],\ - ["date-time", "npm:3.1.0"],\ - ["esutils", "npm:2.0.3"],\ - ["fast-diff", "npm:1.3.0"],\ - ["js-string-escape", "npm:1.0.1"],\ - ["lodash", "npm:4.17.21"],\ - ["md5-hex", "npm:3.0.1"],\ - ["semver", "npm:7.5.4"],\ - ["well-known-symbols", "npm:2.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["condense-newlines", [\ ["npm:0.2.1", {\ "packageLocation": "./.yarn/cache/condense-newlines-npm-0.2.1-016452195f-3c20ff6ee8.zip/node_modules/condense-newlines/",\ @@ -17493,15 +17175,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["convert-to-spaces", [\ - ["npm:2.0.1", {\ - "packageLocation": "./.yarn/cache/convert-to-spaces-npm-2.0.1-c08fae1ac6-bbb324e591.zip/node_modules/convert-to-spaces/",\ - "packageDependencies": [\ - ["convert-to-spaces", "npm:2.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["cookies", [\ ["npm:0.8.0", {\ "packageLocation": "./.yarn/cache/cookies-npm-0.8.0-d7388cbd94-806055a44f.zip/node_modules/cookies/",\ @@ -17821,16 +17494,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["currently-unhandled", [\ - ["npm:0.4.1", {\ - "packageLocation": "./.yarn/cache/currently-unhandled-npm-0.4.1-38eddab665-1f59fe10b5.zip/node_modules/currently-unhandled/",\ - "packageDependencies": [\ - ["currently-unhandled", "npm:0.4.1"],\ - ["array-find-index", "npm:1.0.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["custom-event-polyfill", [\ ["npm:1.0.7", {\ "packageLocation": "./.yarn/cache/custom-event-polyfill-npm-1.0.7-629381795b-f9ff2cf13e.zip/node_modules/custom-event-polyfill/",\ @@ -17979,16 +17642,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["date-time", [\ - ["npm:3.1.0", {\ - "packageLocation": "./.yarn/cache/date-time-npm-3.1.0-50f6af7aef-f9cfcd1b15.zip/node_modules/date-time/",\ - "packageDependencies": [\ - ["date-time", "npm:3.1.0"],\ - ["time-zone", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["dayjs", [\ ["npm:1.11.9", {\ "packageLocation": "./.yarn/cache/dayjs-npm-1.11.9-c47d327b7c-a4844d83dc.zip/node_modules/dayjs/",\ @@ -18426,23 +18079,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["del", [\ - ["npm:7.0.0", {\ - "packageLocation": "./.yarn/cache/del-npm-7.0.0-c407e052bc-33e5077f18.zip/node_modules/del/",\ - "packageDependencies": [\ - ["del", "npm:7.0.0"],\ - ["globby", "npm:13.2.2"],\ - ["graceful-fs", "npm:4.2.11"],\ - ["is-glob", "npm:4.0.3"],\ - ["is-path-cwd", "npm:3.0.0"],\ - ["is-path-inside", "npm:4.0.0"],\ - ["p-map", "npm:5.5.0"],\ - ["rimraf", "npm:3.0.2"],\ - ["slash", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["delayed-stream", [\ ["npm:1.0.0", {\ "packageLocation": "./.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip/node_modules/delayed-stream/",\ @@ -18866,13 +18502,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["emittery", "npm:0.8.1"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:1.0.1", {\ - "packageLocation": "./.yarn/cache/emittery-npm-1.0.1-3e4e6ba9b5-d95faee6ff.zip/node_modules/emittery/",\ - "packageDependencies": [\ - ["emittery", "npm:1.0.1"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["emoji-regex", [\ @@ -20877,15 +20506,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["escape-string-regexp", "npm:1.0.5"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.0.0", {\ - "packageLocation": "./.yarn/cache/figures-npm-5.0.0-cd5f512f9c-e6e8b6d1df.zip/node_modules/figures/",\ - "packageDependencies": [\ - ["figures", "npm:5.0.0"],\ - ["escape-string-regexp", "npm:5.0.0"],\ - ["is-unicode-supported", "npm:1.3.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["file-entry-cache", [\ @@ -21017,15 +20637,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["path-exists", "npm:4.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:6.3.0", {\ - "packageLocation": "./.yarn/cache/find-up-npm-6.3.0-e5056fc655-9a21b7f924.zip/node_modules/find-up/",\ - "packageDependencies": [\ - ["find-up", "npm:6.3.0"],\ - ["locate-path", "npm:7.2.0"],\ - ["path-exists", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["find-versions", [\ @@ -21923,18 +21534,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["slash", "npm:3.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:13.2.2", {\ - "packageLocation": "./.yarn/cache/globby-npm-13.2.2-47efcd4a86-f3d84ced58.zip/node_modules/globby/",\ - "packageDependencies": [\ - ["globby", "npm:13.2.2"],\ - ["dir-glob", "npm:3.0.1"],\ - ["fast-glob", "npm:3.3.1"],\ - ["ignore", "npm:5.2.4"],\ - ["merge2", "npm:1.4.1"],\ - ["slash", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["glogg", [\ @@ -22691,7 +22290,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["iceshrimp", "workspace:."],\ ["@bull-board/api", "virtual:6d3c013820dba430e71ebb352cb5205445a13ea3c7a848f57a7ff58fb0d6469fe4d374280277dac42cb77a6dbf8e924e64f2f0b3413c28a02da9d890c199e6d7#npm:5.6.0"],\ ["@bull-board/ui", "npm:5.6.0"],\ - ["@napi-rs/cli", "npm:2.16.2"],\ ["@tensorflow/tfjs", "npm:3.21.0"],\ ["@types/gulp", "npm:4.0.13"],\ ["@types/gulp-rename", "npm:2.0.2"],\ @@ -22802,15 +22400,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["ignore-by-default", [\ - ["npm:2.1.0", {\ - "packageLocation": "./.yarn/cache/ignore-by-default-npm-2.1.0-996694cc00-2b2df4622b.zip/node_modules/ignore-by-default/",\ - "packageDependencies": [\ - ["ignore-by-default", "npm:2.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["immutable", [\ ["npm:4.3.1", {\ "packageLocation": "./.yarn/cache/immutable-npm-4.3.1-2bfc312410-a3a5ba29bd.zip/node_modules/immutable/",\ @@ -22867,13 +22456,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["indent-string", "npm:4.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.0.0", {\ - "packageLocation": "./.yarn/cache/indent-string-npm-5.0.0-35eaa3b052-e466c27b63.zip/node_modules/indent-string/",\ - "packageDependencies": [\ - ["indent-string", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["indexes-of", [\ @@ -23356,15 +22938,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["is-error", [\ - ["npm:2.2.2", {\ - "packageLocation": "./.yarn/cache/is-error-npm-2.2.2-5587702d1c-a97b395871.zip/node_modules/is-error/",\ - "packageDependencies": [\ - ["is-error", "npm:2.2.2"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["is-expression", [\ ["npm:4.0.0", {\ "packageLocation": "./.yarn/cache/is-expression-npm-4.0.0-44cc07c8aa-0f01d0ff53.zip/node_modules/is-expression/",\ @@ -23417,13 +22990,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-fullwidth-code-point", "npm:3.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/is-fullwidth-code-point-npm-4.0.0-848488b60d-8ae89bf505.zip/node_modules/is-fullwidth-code-point/",\ - "packageDependencies": [\ - ["is-fullwidth-code-point", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["is-generator-fn", [\ @@ -23591,15 +23157,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["is-path-cwd", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/is-path-cwd-npm-3.0.0-3ac9dacea0-bc34d13b6a.zip/node_modules/is-path-cwd/",\ - "packageDependencies": [\ - ["is-path-cwd", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["is-path-inside", [\ ["npm:3.0.3", {\ "packageLocation": "./.yarn/cache/is-path-inside-npm-3.0.3-2ea0ef44fd-abd50f0618.zip/node_modules/is-path-inside/",\ @@ -23607,13 +23164,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-path-inside", "npm:3.0.3"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/is-path-inside-npm-4.0.0-2af2bde69d-8810fa11c5.zip/node_modules/is-path-inside/",\ - "packageDependencies": [\ - ["is-path-inside", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["is-plain-obj", [\ @@ -23665,13 +23215,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-promise", "npm:2.2.2"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/is-promise-npm-4.0.0-1e3c05420c-0b46517ad4.zip/node_modules/is-promise/",\ - "packageDependencies": [\ - ["is-promise", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["is-regex", [\ @@ -23802,13 +23345,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-unicode-supported", "npm:0.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:1.3.0", {\ - "packageLocation": "./.yarn/cache/is-unicode-supported-npm-1.3.0-9371ea1eda-20a1fc161a.zip/node_modules/is-unicode-supported/",\ - "packageDependencies": [\ - ["is-unicode-supported", "npm:1.3.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["is-url", [\ @@ -25162,15 +24698,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["js-string-escape", [\ - ["npm:1.0.1", {\ - "packageLocation": "./.yarn/cache/js-string-escape-npm-1.0.1-8b8d76add3-f11e0991bf.zip/node_modules/js-string-escape/",\ - "packageDependencies": [\ - ["js-string-escape", "npm:1.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["js-stringify", [\ ["npm:1.0.2", {\ "packageLocation": "./.yarn/cache/js-stringify-npm-1.0.2-898ffeac57-f9701d9e53.zip/node_modules/js-stringify/",\ @@ -26155,13 +25682,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["strip-bom", "npm:2.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:7.0.1", {\ - "packageLocation": "./.yarn/cache/load-json-file-npm-7.0.1-1d6057f4c4-a560288da6.zip/node_modules/load-json-file/",\ - "packageDependencies": [\ - ["load-json-file", "npm:7.0.1"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["loader-runner", [\ @@ -26219,14 +25739,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["p-locate", "npm:5.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:7.2.0", {\ - "packageLocation": "./.yarn/cache/locate-path-npm-7.2.0-0e1169e19b-c1b653bdf2.zip/node_modules/locate-path/",\ - "packageDependencies": [\ - ["locate-path", "npm:7.2.0"],\ - ["p-locate", "npm:6.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["lodash", [\ @@ -26651,16 +26163,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["map-age-cleaner", [\ - ["npm:0.1.3", {\ - "packageLocation": "./.yarn/cache/map-age-cleaner-npm-0.1.3-fd9e4b4aff-cb2804a5bc.zip/node_modules/map-age-cleaner/",\ - "packageDependencies": [\ - ["map-age-cleaner", "npm:0.1.3"],\ - ["p-defer", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["map-cache", [\ ["npm:0.2.2", {\ "packageLocation": "./.yarn/cache/map-cache-npm-0.2.2-1620199b05-3067cea542.zip/node_modules/map-cache/",\ @@ -26727,16 +26229,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["matcher", [\ - ["npm:5.0.0", {\ - "packageLocation": "./.yarn/cache/matcher-npm-5.0.0-426d06a4f6-28f191c2d2.zip/node_modules/matcher/",\ - "packageDependencies": [\ - ["matcher", "npm:5.0.0"],\ - ["escape-string-regexp", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["math-expression-evaluator", [\ ["npm:1.4.0", {\ "packageLocation": "./.yarn/cache/math-expression-evaluator-npm-1.4.0-43a0d3d222-451c7b734c.zip/node_modules/math-expression-evaluator/",\ @@ -26755,16 +26247,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["md5-hex", [\ - ["npm:3.0.1", {\ - "packageLocation": "./.yarn/cache/md5-hex-npm-3.0.1-d9f5f267ed-6799a19e8b.zip/node_modules/md5-hex/",\ - "packageDependencies": [\ - ["md5-hex", "npm:3.0.1"],\ - ["blueimp-md5", "npm:2.19.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["mdast-util-from-markdown", [\ ["npm:0.8.5", {\ "packageLocation": "./.yarn/cache/mdast-util-from-markdown-npm-0.8.5-0b8b6dc7ba-5a9d0d753a.zip/node_modules/mdast-util-from-markdown/",\ @@ -26854,17 +26336,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["mem", [\ - ["npm:9.0.2", {\ - "packageLocation": "./.yarn/cache/mem-npm-9.0.2-9614a03e64-07829bb182.zip/node_modules/mem/",\ - "packageDependencies": [\ - ["mem", "npm:9.0.2"],\ - ["map-age-cleaner", "npm:0.1.3"],\ - ["mimic-fn", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["meow", [\ ["npm:9.0.0", {\ "packageLocation": "./.yarn/cache/meow-npm-9.0.0-8b2707248e-99799c4724.zip/node_modules/meow/",\ @@ -27491,9 +26962,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["workspace:packages/backend/native-utils", {\ "packageLocation": "./packages/backend/native-utils/",\ "packageDependencies": [\ - ["native-utils", "workspace:packages/backend/native-utils"],\ - ["@napi-rs/cli", "npm:2.16.1"],\ - ["ava", "virtual:0d724437a020122f1695576a13f5e58383ee1476d1c74074ee21f8766a7c060513cea7f5dab52d196eacd46af11bc070b1130d3bd6e645d3a0d91f18f2ec8123#npm:5.1.1"]\ + ["native-utils", "workspace:packages/backend/native-utils"]\ ],\ "linkType": "SOFT"\ }]\ @@ -28356,25 +27825,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["p-defer", [\ - ["npm:1.0.0", {\ - "packageLocation": "./.yarn/cache/p-defer-npm-1.0.0-4dfd0013f5-4271b935c2.zip/node_modules/p-defer/",\ - "packageDependencies": [\ - ["p-defer", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["p-event", [\ - ["npm:5.0.1", {\ - "packageLocation": "./.yarn/cache/p-event-npm-5.0.1-1f7dfbcfb3-3bdd8df609.zip/node_modules/p-event/",\ - "packageDependencies": [\ - ["p-event", "npm:5.0.1"],\ - ["p-timeout", "npm:5.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["p-finally", [\ ["npm:1.0.0", {\ "packageLocation": "./.yarn/cache/p-finally-npm-1.0.0-35fbaa57c6-93a654c53d.zip/node_modules/p-finally/",\ @@ -28400,14 +27850,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["yocto-queue", "npm:0.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/p-limit-npm-4.0.0-5dccf29b67-01d9d70695.zip/node_modules/p-limit/",\ - "packageDependencies": [\ - ["p-limit", "npm:4.0.0"],\ - ["yocto-queue", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["p-locate", [\ @@ -28426,14 +27868,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["p-limit", "npm:3.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:6.0.0", {\ - "packageLocation": "./.yarn/cache/p-locate-npm-6.0.0-b6cfb720dc-2bfe5234ef.zip/node_modules/p-locate/",\ - "packageDependencies": [\ - ["p-locate", "npm:6.0.0"],\ - ["p-limit", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["p-map", [\ @@ -28444,14 +27878,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["aggregate-error", "npm:3.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.5.0", {\ - "packageLocation": "./.yarn/cache/p-map-npm-5.5.0-9758eb14ee-065cb6fca6.zip/node_modules/p-map/",\ - "packageDependencies": [\ - ["p-map", "npm:5.5.0"],\ - ["aggregate-error", "npm:4.0.1"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["p-queue", [\ @@ -28473,13 +27899,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["p-finally", "npm:1.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.1.0", {\ - "packageLocation": "./.yarn/cache/p-timeout-npm-5.1.0-11ca554b60-f5cd4e1730.zip/node_modules/p-timeout/",\ - "packageDependencies": [\ - ["p-timeout", "npm:5.1.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["p-try", [\ @@ -28601,15 +28020,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["parse-ms", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/parse-ms-npm-3.0.0-3acf02c3f3-fc602bba09.zip/node_modules/parse-ms/",\ - "packageDependencies": [\ - ["parse-ms", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["parse-node-version", [\ ["npm:1.0.1", {\ "packageLocation": "./.yarn/cache/parse-node-version-npm-1.0.1-7dd3b14751-c192393b6a.zip/node_modules/parse-node-version/",\ @@ -28722,13 +28132,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["path-exists", "npm:4.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.0.0", {\ - "packageLocation": "./.yarn/cache/path-exists-npm-5.0.0-0bf403c56c-8ca842868c.zip/node_modules/path-exists/",\ - "packageDependencies": [\ - ["path-exists", "npm:5.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["path-is-absolute", [\ @@ -29069,17 +28472,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["pkg-conf", [\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/pkg-conf-npm-4.0.0-1053b46579-6da0c064a7.zip/node_modules/pkg-conf/",\ - "packageDependencies": [\ - ["pkg-conf", "npm:4.0.0"],\ - ["find-up", "npm:6.3.0"],\ - ["load-json-file", "npm:7.0.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["pkg-dir", [\ ["npm:4.2.0", {\ "packageLocation": "./.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip/node_modules/pkg-dir/",\ @@ -29121,14 +28513,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["irregular-plurals", "npm:3.5.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.1.0", {\ - "packageLocation": "./.yarn/cache/plur-npm-5.1.0-a8abe6df1b-57e400dc4b.zip/node_modules/plur/",\ - "packageDependencies": [\ - ["plur", "npm:5.1.0"],\ - ["irregular-plurals", "npm:3.5.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["pluralize", [\ @@ -29768,16 +29152,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["pretty-ms", [\ - ["npm:8.0.0", {\ - "packageLocation": "./.yarn/cache/pretty-ms-npm-8.0.0-7a40e0b54a-b7d2a81828.zip/node_modules/pretty-ms/",\ - "packageDependencies": [\ - ["pretty-ms", "npm:8.0.0"],\ - ["parse-ms", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["prismjs", [\ ["npm:1.29.0", {\ "packageLocation": "./.yarn/cache/prismjs-npm-1.29.0-6faa5b04b8-007a8869d4.zip/node_modules/prismjs/",\ @@ -31428,16 +30802,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["serialize-error", [\ - ["npm:7.0.1", {\ - "packageLocation": "./.yarn/cache/serialize-error-npm-7.0.1-c0b3f881a0-e0aba4dca2.zip/node_modules/serialize-error/",\ - "packageDependencies": [\ - ["serialize-error", "npm:7.0.1"],\ - ["type-fest", "npm:0.13.1"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["serialize-javascript", [\ ["npm:6.0.0", {\ "packageLocation": "./.yarn/cache/serialize-javascript-npm-6.0.0-0bb8a3c88d-56f90b562a.zip/node_modules/serialize-javascript/",\ @@ -31675,13 +31039,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["slash", "npm:3.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:4.0.0", {\ - "packageLocation": "./.yarn/cache/slash-npm-4.0.0-ce4bbc4a80-da8e4af737.zip/node_modules/slash/",\ - "packageDependencies": [\ - ["slash", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["slice-ansi", [\ @@ -31704,15 +31061,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-fullwidth-code-point", "npm:3.0.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.0.0", {\ - "packageLocation": "./.yarn/cache/slice-ansi-npm-5.0.0-8cd4f226df-7e600a2a55.zip/node_modules/slice-ansi/",\ - "packageDependencies": [\ - ["slice-ansi", "npm:5.0.0"],\ - ["ansi-styles", "npm:6.2.1"],\ - ["is-fullwidth-code-point", "npm:4.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["smart-buffer", [\ @@ -32476,19 +31824,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["supertap", [\ - ["npm:3.0.1", {\ - "packageLocation": "./.yarn/cache/supertap-npm-3.0.1-d7c04bcbf0-ee3d71c1d2.zip/node_modules/supertap/",\ - "packageDependencies": [\ - ["supertap", "npm:3.0.1"],\ - ["indent-string", "npm:5.0.0"],\ - ["js-yaml", "npm:3.14.1"],\ - ["serialize-error", "npm:7.0.1"],\ - ["strip-ansi", "npm:7.1.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["supports-color", [\ ["npm:2.0.0", {\ "packageLocation": "./.yarn/cache/supports-color-npm-2.0.0-22c0f0adbc-602538c581.zip/node_modules/supports-color/",\ @@ -32792,15 +32127,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["temp-dir", [\ - ["npm:3.0.0", {\ - "packageLocation": "./.yarn/cache/temp-dir-npm-3.0.0-70414c7a63-577211e995.zip/node_modules/temp-dir/",\ - "packageDependencies": [\ - ["temp-dir", "npm:3.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["terminal-link", [\ ["npm:2.1.1", {\ "packageLocation": "./.yarn/cache/terminal-link-npm-2.1.1-de80341758-ce3d2cd3a4.zip/node_modules/terminal-link/",\ @@ -33075,15 +32401,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["time-zone", [\ - ["npm:1.0.0", {\ - "packageLocation": "./.yarn/cache/time-zone-npm-1.0.0-0522e3467f-e46f5a69b8.zip/node_modules/time-zone/",\ - "packageDependencies": [\ - ["time-zone", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["tinycolor2", [\ ["npm:1.5.2", {\ "packageLocation": "./.yarn/cache/tinycolor2-npm-1.5.2-0898381e92-9df1ea9a98.zip/node_modules/tinycolor2/",\ @@ -33753,13 +33070,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["type-fest", [\ - ["npm:0.13.1", {\ - "packageLocation": "./.yarn/cache/type-fest-npm-0.13.1-7f4486b973-e6bf2e3c44.zip/node_modules/type-fest/",\ - "packageDependencies": [\ - ["type-fest", "npm:0.13.1"]\ - ],\ - "linkType": "HARD"\ - }],\ ["npm:0.18.1", {\ "packageLocation": "./.yarn/cache/type-fest-npm-0.18.1-47b079775d-e96dcee18a.zip/node_modules/type-fest/",\ "packageDependencies": [\ @@ -35135,15 +34445,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["well-known-symbols", [\ - ["npm:2.0.0", {\ - "packageLocation": "./.yarn/cache/well-known-symbols-npm-2.0.0-16fb8dedc6-4f54bbc301.zip/node_modules/well-known-symbols/",\ - "packageDependencies": [\ - ["well-known-symbols", "npm:2.0.0"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["whatwg-encoding", [\ ["npm:1.0.5", {\ "packageLocation": "./.yarn/cache/whatwg-encoding-npm-1.0.5-85e0fb7d7d-5be4efe111.zip/node_modules/whatwg-encoding/",\ @@ -35398,15 +34699,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["signal-exit", "npm:3.0.7"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:5.0.1", {\ - "packageLocation": "./.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip/node_modules/write-file-atomic/",\ - "packageDependencies": [\ - ["write-file-atomic", "npm:5.0.1"],\ - ["imurmurhash", "npm:0.1.4"],\ - ["signal-exit", "npm:4.0.2"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["ws", [\ @@ -35799,13 +35091,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["yocto-queue", "npm:0.1.0"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:1.0.0", {\ - "packageLocation": "./.yarn/cache/yocto-queue-npm-1.0.0-7b502f1987-2cac84540f.zip/node_modules/yocto-queue/",\ - "packageDependencies": [\ - ["yocto-queue", "npm:1.0.0"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["z-schema", [\ diff --git a/.yarn/cache/@napi-rs-cli-npm-2.16.1-620418cc90-5f61712cf1.zip b/.yarn/cache/@napi-rs-cli-npm-2.16.1-620418cc90-5f61712cf1.zip deleted file mode 100644 index a27028503..000000000 --- a/.yarn/cache/@napi-rs-cli-npm-2.16.1-620418cc90-5f61712cf1.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:437c7b0bfcb293189496738d4542c0c5f0fe6735c2195da25d8487b0794db671 -size 1700745 diff --git a/.yarn/cache/@napi-rs-cli-npm-2.16.2-6a6e8233b9-98f2905fbc.zip b/.yarn/cache/@napi-rs-cli-npm-2.16.2-6a6e8233b9-98f2905fbc.zip deleted file mode 100644 index f0f11cbe7..000000000 --- a/.yarn/cache/@napi-rs-cli-npm-2.16.2-6a6e8233b9-98f2905fbc.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2568f59553176da87046b261c2d01823863a39c683ada59c050bf8b570ce5548 -size 1700912 diff --git a/.yarn/cache/@noble-hashes-npm-1.3.2-1e619f9da0-fe23536b43.zip b/.yarn/cache/@noble-hashes-npm-1.3.2-1e619f9da0-fe23536b43.zip new file mode 100644 index 000000000..2a84f2016 --- /dev/null +++ b/.yarn/cache/@noble-hashes-npm-1.3.2-1e619f9da0-fe23536b43.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4911de9e2b6f0a731cd21f37950629f36d5decbf6ab6d9718dc1a7ad889b56d +size 218417 diff --git a/.yarn/cache/@paralleldrive-cuid2-npm-2.2.2-e6061749b2-f7f6ac70e0.zip b/.yarn/cache/@paralleldrive-cuid2-npm-2.2.2-e6061749b2-f7f6ac70e0.zip new file mode 100644 index 000000000..b6e068536 --- /dev/null +++ b/.yarn/cache/@paralleldrive-cuid2-npm-2.2.2-e6061749b2-f7f6ac70e0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44cf64f35d268699b667cd728d8cdd18200f93cad6e68af4f36485997f1d1f99 +size 15793 diff --git a/.yarn/cache/aggregate-error-npm-4.0.1-12d0501fb7-bb3ffdfd13.zip b/.yarn/cache/aggregate-error-npm-4.0.1-12d0501fb7-bb3ffdfd13.zip deleted file mode 100644 index 8c286ac01..000000000 --- a/.yarn/cache/aggregate-error-npm-4.0.1-12d0501fb7-bb3ffdfd13.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cdfa1cd07bfde3f5f57bf791dc8bc5c2a3b836dc4882435c70b4f4d90d853728 -size 3979 diff --git a/.yarn/cache/array-find-index-npm-1.0.2-a7d5fbff35-aac128bf36.zip b/.yarn/cache/array-find-index-npm-1.0.2-a7d5fbff35-aac128bf36.zip deleted file mode 100644 index 358435be6..000000000 --- a/.yarn/cache/array-find-index-npm-1.0.2-a7d5fbff35-aac128bf36.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e85d2ab3cd740cfac3e96dc0fae1dc29d40b4b0efb14c9e0b0ffd9561998da3e -size 2452 diff --git a/.yarn/cache/arrgv-npm-1.0.2-2f5078bb50-470bbb406e.zip b/.yarn/cache/arrgv-npm-1.0.2-2f5078bb50-470bbb406e.zip deleted file mode 100644 index b14bb7c6f..000000000 --- a/.yarn/cache/arrgv-npm-1.0.2-2f5078bb50-470bbb406e.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac889f7d6b57c7ea80ddaab195383c413e451898226707e45cebcc86f829f0d3 -size 4363 diff --git a/.yarn/cache/arrify-npm-3.0.0-84cf7a301c-d6c6f3dad9.zip b/.yarn/cache/arrify-npm-3.0.0-84cf7a301c-d6c6f3dad9.zip deleted file mode 100644 index fbb481cbe..000000000 --- a/.yarn/cache/arrify-npm-3.0.0-84cf7a301c-d6c6f3dad9.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccd80bba10716f4ee729cab853853857db31f05340fafefe1c81df44138e677f -size 2808 diff --git a/.yarn/cache/ava-npm-5.1.1-31c6d17423-cae5771ea6.zip b/.yarn/cache/ava-npm-5.1.1-31c6d17423-cae5771ea6.zip deleted file mode 100644 index 1b69f9a9c..000000000 --- a/.yarn/cache/ava-npm-5.1.1-31c6d17423-cae5771ea6.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e65389606fb29b4a2230b1f71a4022e237ef40c10d43cd3df6f8999e6232f346 -size 91970 diff --git a/.yarn/cache/blueimp-md5-npm-2.19.0-0a19585c8c-28095dcbd2.zip b/.yarn/cache/blueimp-md5-npm-2.19.0-0a19585c8c-28095dcbd2.zip deleted file mode 100644 index 74c133799..000000000 --- a/.yarn/cache/blueimp-md5-npm-2.19.0-0a19585c8c-28095dcbd2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:669954b1c440ffb8ff8803f9b4eed45126f063d2e0b7aab9dac83f726db1abdd -size 10384 diff --git a/.yarn/cache/callsites-npm-4.0.0-a9fc778262-ad3c3a5732.zip b/.yarn/cache/callsites-npm-4.0.0-a9fc778262-ad3c3a5732.zip deleted file mode 100644 index 58770b12b..000000000 --- a/.yarn/cache/callsites-npm-4.0.0-a9fc778262-ad3c3a5732.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a9e27c56f9ecc00280c80cbcdde5533323d0e74dc779d2b5837c3ed1ce2dac3 -size 3865 diff --git a/.yarn/cache/chunkd-npm-2.0.1-2a1d1afad0-bab8cc08c7.zip b/.yarn/cache/chunkd-npm-2.0.1-2a1d1afad0-bab8cc08c7.zip deleted file mode 100644 index 729d2fdc6..000000000 --- a/.yarn/cache/chunkd-npm-2.0.1-2a1d1afad0-bab8cc08c7.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03fe32e852d6fd0d118db5719f9c83a7b7a5263c9fa367e466db9b440add1a6e -size 3483 diff --git a/.yarn/cache/ci-parallel-vars-npm-1.0.1-27c813d568-ae859831f7.zip b/.yarn/cache/ci-parallel-vars-npm-1.0.1-27c813d568-ae859831f7.zip deleted file mode 100644 index 3bf14227b..000000000 --- a/.yarn/cache/ci-parallel-vars-npm-1.0.1-27c813d568-ae859831f7.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bb4637e5cc46750bc4bd3c2af1ad75adffd4a8e5c810061967cf22ae7ecd67a -size 3104 diff --git a/.yarn/cache/clean-stack-npm-4.2.0-bb0dff47b2-373f656a31.zip b/.yarn/cache/clean-stack-npm-4.2.0-bb0dff47b2-373f656a31.zip deleted file mode 100644 index 2a6c8d439..000000000 --- a/.yarn/cache/clean-stack-npm-4.2.0-bb0dff47b2-373f656a31.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0d20e13e46aba66efc52b7806bae63ca9729cf961d639d7a006608ae79ae0ac -size 4093 diff --git a/.yarn/cache/clean-yaml-object-npm-0.1.0-aaf2e3e19e-0374ad2f1f.zip b/.yarn/cache/clean-yaml-object-npm-0.1.0-aaf2e3e19e-0374ad2f1f.zip deleted file mode 100644 index d7648c363..000000000 --- a/.yarn/cache/clean-yaml-object-npm-0.1.0-aaf2e3e19e-0374ad2f1f.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b42879f3ead93e5de48fed4ccaab3b4e1e568ac1cabf748fda707ab77f961fc0 -size 3556 diff --git a/.yarn/cache/cli-truncate-npm-3.1.0-654d2989ef-c3243e4197.zip b/.yarn/cache/cli-truncate-npm-3.1.0-654d2989ef-c3243e4197.zip deleted file mode 100644 index 2cb3b2e8c..000000000 --- a/.yarn/cache/cli-truncate-npm-3.1.0-654d2989ef-c3243e4197.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0dad1d520d5e22e300816bcb0305d3e8ad16456828eccb4c8045705a2a28fa69 -size 5038 diff --git a/.yarn/cache/code-excerpt-npm-4.0.0-f453325e6e-d57137d8f4.zip b/.yarn/cache/code-excerpt-npm-4.0.0-f453325e6e-d57137d8f4.zip deleted file mode 100644 index c31181e75..000000000 --- a/.yarn/cache/code-excerpt-npm-4.0.0-f453325e6e-d57137d8f4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a8b710b6ed55c9b7f71c2f4cbbbd505e6d14e8c30fba6c1b3ffe477623ef98b9 -size 3240 diff --git a/.yarn/cache/common-path-prefix-npm-3.0.0-68b78785c1-fdb3c4f54e.zip b/.yarn/cache/common-path-prefix-npm-3.0.0-68b78785c1-fdb3c4f54e.zip deleted file mode 100644 index f6a6c38e8..000000000 --- a/.yarn/cache/common-path-prefix-npm-3.0.0-68b78785c1-fdb3c4f54e.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:79634527e1bff85656fd8f2e772dea86a3df43b68a4ab1522a89a18a059bbadd -size 2957 diff --git a/.yarn/cache/concordance-npm-5.0.4-e641405dd9-749153ba71.zip b/.yarn/cache/concordance-npm-5.0.4-e641405dd9-749153ba71.zip deleted file mode 100644 index 23264e9f5..000000000 --- a/.yarn/cache/concordance-npm-5.0.4-e641405dd9-749153ba71.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98fc07d6a7d05c16b94b3d81d60bf4b464f01c969f4bb8ba2b81e4998869dfc4 -size 56555 diff --git a/.yarn/cache/convert-to-spaces-npm-2.0.1-c08fae1ac6-bbb324e591.zip b/.yarn/cache/convert-to-spaces-npm-2.0.1-c08fae1ac6-bbb324e591.zip deleted file mode 100644 index 80be030ae..000000000 --- a/.yarn/cache/convert-to-spaces-npm-2.0.1-c08fae1ac6-bbb324e591.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19e65eff1ef6a77665720cc4b49330dbe8ab4186b2e0f55a00d5f04913ed63f0 -size 2822 diff --git a/.yarn/cache/currently-unhandled-npm-0.4.1-38eddab665-1f59fe10b5.zip b/.yarn/cache/currently-unhandled-npm-0.4.1-38eddab665-1f59fe10b5.zip deleted file mode 100644 index 7440b4e06..000000000 --- a/.yarn/cache/currently-unhandled-npm-0.4.1-38eddab665-1f59fe10b5.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:948f4446459cabd6807901395d4b2dc65588a0cc33647de1e28c37b653213956 -size 3797 diff --git a/.yarn/cache/date-time-npm-3.1.0-50f6af7aef-f9cfcd1b15.zip b/.yarn/cache/date-time-npm-3.1.0-50f6af7aef-f9cfcd1b15.zip deleted file mode 100644 index 9d54cc4e8..000000000 --- a/.yarn/cache/date-time-npm-3.1.0-50f6af7aef-f9cfcd1b15.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69f4f27f8261e689f55cbec68b4b279f44838de10f93debd966bca73c6021757 -size 3321 diff --git a/.yarn/cache/del-npm-7.0.0-c407e052bc-33e5077f18.zip b/.yarn/cache/del-npm-7.0.0-c407e052bc-33e5077f18.zip deleted file mode 100644 index 6ad60137f..000000000 --- a/.yarn/cache/del-npm-7.0.0-c407e052bc-33e5077f18.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b14e34bb6756068a8036b1acdfefb6b2e51385561ac5b76b3ce918ba89076d6d -size 5631 diff --git a/.yarn/cache/emittery-npm-1.0.1-3e4e6ba9b5-d95faee6ff.zip b/.yarn/cache/emittery-npm-1.0.1-3e4e6ba9b5-d95faee6ff.zip deleted file mode 100644 index 9e2136a67..000000000 --- a/.yarn/cache/emittery-npm-1.0.1-3e4e6ba9b5-d95faee6ff.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f83cd8aa3d1e35d52320ffa3a56c2002e48606e408f5f6d018ba8ccb26c615d4 -size 14271 diff --git a/.yarn/cache/figures-npm-5.0.0-cd5f512f9c-e6e8b6d1df.zip b/.yarn/cache/figures-npm-5.0.0-cd5f512f9c-e6e8b6d1df.zip deleted file mode 100644 index ebf3ab7c2..000000000 --- a/.yarn/cache/figures-npm-5.0.0-cd5f512f9c-e6e8b6d1df.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e806cf92dba645ebd9fa9e4b38d024fa7aa63e862d1df8737fcb6f5391bda99 -size 8758 diff --git a/.yarn/cache/find-up-npm-6.3.0-e5056fc655-9a21b7f924.zip b/.yarn/cache/find-up-npm-6.3.0-e5056fc655-9a21b7f924.zip deleted file mode 100644 index ae47e3145..000000000 --- a/.yarn/cache/find-up-npm-6.3.0-e5056fc655-9a21b7f924.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c7d6984b18be89914cee85992d454cf22bcacd7576cc0801121944b91f58865 -size 5545 diff --git a/.yarn/cache/globby-npm-13.2.2-47efcd4a86-f3d84ced58.zip b/.yarn/cache/globby-npm-13.2.2-47efcd4a86-f3d84ced58.zip deleted file mode 100644 index d126a6de2..000000000 --- a/.yarn/cache/globby-npm-13.2.2-47efcd4a86-f3d84ced58.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:514f3b56e094d421edc9604c49956bf28e56c5f270d360012c5ac7ced5889b72 -size 9535 diff --git a/.yarn/cache/ignore-by-default-npm-2.1.0-996694cc00-2b2df4622b.zip b/.yarn/cache/ignore-by-default-npm-2.1.0-996694cc00-2b2df4622b.zip deleted file mode 100644 index 00dfaac98..000000000 --- a/.yarn/cache/ignore-by-default-npm-2.1.0-996694cc00-2b2df4622b.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:050589e2a56fb1a90aaabc1f52fbbdd8733fda32e1167dda45762276307bc3e7 -size 2556 diff --git a/.yarn/cache/indent-string-npm-5.0.0-35eaa3b052-e466c27b63.zip b/.yarn/cache/indent-string-npm-5.0.0-35eaa3b052-e466c27b63.zip deleted file mode 100644 index 20246c2f6..000000000 --- a/.yarn/cache/indent-string-npm-5.0.0-35eaa3b052-e466c27b63.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:191f511366a2c1a9fb2275868f4ce056be305a1e079b24d549a6eb3512ffb976 -size 3362 diff --git a/.yarn/cache/is-error-npm-2.2.2-5587702d1c-a97b395871.zip b/.yarn/cache/is-error-npm-2.2.2-5587702d1c-a97b395871.zip deleted file mode 100644 index ccac51543..000000000 --- a/.yarn/cache/is-error-npm-2.2.2-5587702d1c-a97b395871.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6657cbf87afc1b6b958a04c5ac96b4a997605a8e29b5b64b6411bc87c09c52c1 -size 4020 diff --git a/.yarn/cache/is-fullwidth-code-point-npm-4.0.0-848488b60d-8ae89bf505.zip b/.yarn/cache/is-fullwidth-code-point-npm-4.0.0-848488b60d-8ae89bf505.zip deleted file mode 100644 index 2fdfc76ba..000000000 --- a/.yarn/cache/is-fullwidth-code-point-npm-4.0.0-848488b60d-8ae89bf505.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0772222a721df8a1521c8f9b7b3a037b0a134e4dcbadea42bd5ee407db68b08 -size 3579 diff --git a/.yarn/cache/is-path-cwd-npm-3.0.0-3ac9dacea0-bc34d13b6a.zip b/.yarn/cache/is-path-cwd-npm-3.0.0-3ac9dacea0-bc34d13b6a.zip deleted file mode 100644 index fa994b612..000000000 --- a/.yarn/cache/is-path-cwd-npm-3.0.0-3ac9dacea0-bc34d13b6a.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b964ac328d44968d706dc03590dfdabfeb89747b7fa0306ea4c1f13269f7ceca -size 2807 diff --git a/.yarn/cache/is-path-inside-npm-4.0.0-2af2bde69d-8810fa11c5.zip b/.yarn/cache/is-path-inside-npm-4.0.0-2af2bde69d-8810fa11c5.zip deleted file mode 100644 index 41384646c..000000000 --- a/.yarn/cache/is-path-inside-npm-4.0.0-2af2bde69d-8810fa11c5.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3cfc21b0643e92fd14f537f0e20ab83e07fb2737f69879231a1b6f0986275339 -size 3265 diff --git a/.yarn/cache/is-promise-npm-4.0.0-1e3c05420c-0b46517ad4.zip b/.yarn/cache/is-promise-npm-4.0.0-1e3c05420c-0b46517ad4.zip deleted file mode 100644 index acb0a34a7..000000000 --- a/.yarn/cache/is-promise-npm-4.0.0-1e3c05420c-0b46517ad4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee8c53d1fed1c3ffa87efa4a8e8155d21abebf4189fc46b52b0d9538a252ebad -size 2713 diff --git a/.yarn/cache/is-unicode-supported-npm-1.3.0-9371ea1eda-20a1fc161a.zip b/.yarn/cache/is-unicode-supported-npm-1.3.0-9371ea1eda-20a1fc161a.zip deleted file mode 100644 index 93996430e..000000000 --- a/.yarn/cache/is-unicode-supported-npm-1.3.0-9371ea1eda-20a1fc161a.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8bdd549511bbe78da5960153ee4b1fe06020289a70f179d98ff68ca466d94e6c -size 3098 diff --git a/.yarn/cache/js-string-escape-npm-1.0.1-8b8d76add3-f11e0991bf.zip b/.yarn/cache/js-string-escape-npm-1.0.1-8b8d76add3-f11e0991bf.zip deleted file mode 100644 index 7485ce0a1..000000000 --- a/.yarn/cache/js-string-escape-npm-1.0.1-8b8d76add3-f11e0991bf.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b17dbf261d68b1d35dd79663d3b6a8bfa0c97f73bc3d420555c1b90c985ddb5 -size 3087 diff --git a/.yarn/cache/load-json-file-npm-7.0.1-1d6057f4c4-a560288da6.zip b/.yarn/cache/load-json-file-npm-7.0.1-1d6057f4c4-a560288da6.zip deleted file mode 100644 index c6cd3de0a..000000000 --- a/.yarn/cache/load-json-file-npm-7.0.1-1d6057f4c4-a560288da6.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7d8296b9b77252b4ca251cdf96d53a8adcc19d39ef09eeb04c1eb7b95f70d4c -size 3751 diff --git a/.yarn/cache/locate-path-npm-7.2.0-0e1169e19b-c1b653bdf2.zip b/.yarn/cache/locate-path-npm-7.2.0-0e1169e19b-c1b653bdf2.zip deleted file mode 100644 index 1ce5aeb5b..000000000 --- a/.yarn/cache/locate-path-npm-7.2.0-0e1169e19b-c1b653bdf2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6da81e6a87a65ee58810095678fe5ab057cb008e85ce7e1ab6ea9c66172b5bf4 -size 4229 diff --git a/.yarn/cache/map-age-cleaner-npm-0.1.3-fd9e4b4aff-cb2804a5bc.zip b/.yarn/cache/map-age-cleaner-npm-0.1.3-fd9e4b4aff-cb2804a5bc.zip deleted file mode 100644 index 3af2006b6..000000000 --- a/.yarn/cache/map-age-cleaner-npm-0.1.3-fd9e4b4aff-cb2804a5bc.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b04d3a03d6758afffa0366e260e6e1339e2596e947d9d4c625aa8cbea611c82a -size 4627 diff --git a/.yarn/cache/matcher-npm-5.0.0-426d06a4f6-28f191c2d2.zip b/.yarn/cache/matcher-npm-5.0.0-426d06a4f6-28f191c2d2.zip deleted file mode 100644 index 190a4e777..000000000 --- a/.yarn/cache/matcher-npm-5.0.0-426d06a4f6-28f191c2d2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f26e4c8742e622c68cd4e8cbe4f9f39c902fe6faa2e9f55316a6393ef77ee37d -size 5538 diff --git a/.yarn/cache/md5-hex-npm-3.0.1-d9f5f267ed-6799a19e8b.zip b/.yarn/cache/md5-hex-npm-3.0.1-d9f5f267ed-6799a19e8b.zip deleted file mode 100644 index c566ff760..000000000 --- a/.yarn/cache/md5-hex-npm-3.0.1-d9f5f267ed-6799a19e8b.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fd48f4f88b95c2378be1d62087e299470013184f0e0f2e409a1b552788f13f2 -size 3464 diff --git a/.yarn/cache/mem-npm-9.0.2-9614a03e64-07829bb182.zip b/.yarn/cache/mem-npm-9.0.2-9614a03e64-07829bb182.zip deleted file mode 100644 index 0adc610c2..000000000 --- a/.yarn/cache/mem-npm-9.0.2-9614a03e64-07829bb182.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d2c6c5c7021224e8bf078366dd6731877c0de092a99e2cdc4ed1ce502cdeb3c -size 7917 diff --git a/.yarn/cache/p-defer-npm-1.0.0-4dfd0013f5-4271b935c2.zip b/.yarn/cache/p-defer-npm-1.0.0-4dfd0013f5-4271b935c2.zip deleted file mode 100644 index bc80d3eaf..000000000 --- a/.yarn/cache/p-defer-npm-1.0.0-4dfd0013f5-4271b935c2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b57079c897aeb9d9e29775a5d5fc029052370abee75d863c6aa6de698d01d384 -size 2406 diff --git a/.yarn/cache/p-event-npm-5.0.1-1f7dfbcfb3-3bdd8df609.zip b/.yarn/cache/p-event-npm-5.0.1-1f7dfbcfb3-3bdd8df609.zip deleted file mode 100644 index 883659ef3..000000000 --- a/.yarn/cache/p-event-npm-5.0.1-1f7dfbcfb3-3bdd8df609.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a53d1a7fc2120f92cfd1cf0c13032b0d2c619a2df93e9c475c5b10df15320bab -size 8311 diff --git a/.yarn/cache/p-limit-npm-4.0.0-5dccf29b67-01d9d70695.zip b/.yarn/cache/p-limit-npm-4.0.0-5dccf29b67-01d9d70695.zip deleted file mode 100644 index 35e8879d7..000000000 --- a/.yarn/cache/p-limit-npm-4.0.0-5dccf29b67-01d9d70695.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eeab73eea0d7a04b4d02e9bd75b5b2058c673028026a0aabb960f52da8dbb6cf -size 4617 diff --git a/.yarn/cache/p-locate-npm-6.0.0-b6cfb720dc-2bfe5234ef.zip b/.yarn/cache/p-locate-npm-6.0.0-b6cfb720dc-2bfe5234ef.zip deleted file mode 100644 index a85f0affe..000000000 --- a/.yarn/cache/p-locate-npm-6.0.0-b6cfb720dc-2bfe5234ef.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3bf4c4c0b2b8c55a81fa621aa52529b34a33a1e4fe2b31d262b115d2e09971c3 -size 4478 diff --git a/.yarn/cache/p-map-npm-5.5.0-9758eb14ee-065cb6fca6.zip b/.yarn/cache/p-map-npm-5.5.0-9758eb14ee-065cb6fca6.zip deleted file mode 100644 index 1f2164348..000000000 --- a/.yarn/cache/p-map-npm-5.5.0-9758eb14ee-065cb6fca6.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a699acbc9bf33f46e0d11aff63be2e7fd7bba14b6ba474dca572900681ec1aa -size 7545 diff --git a/.yarn/cache/p-timeout-npm-5.1.0-11ca554b60-f5cd4e1730.zip b/.yarn/cache/p-timeout-npm-5.1.0-11ca554b60-f5cd4e1730.zip deleted file mode 100644 index 9e12d1386..000000000 --- a/.yarn/cache/p-timeout-npm-5.1.0-11ca554b60-f5cd4e1730.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed6c06fd59581632477f4fee84758bf7e265ab12b96fb8a8d7d586fd4154b532 -size 5360 diff --git a/.yarn/cache/parse-ms-npm-3.0.0-3acf02c3f3-fc602bba09.zip b/.yarn/cache/parse-ms-npm-3.0.0-3acf02c3f3-fc602bba09.zip deleted file mode 100644 index c53b79645..000000000 --- a/.yarn/cache/parse-ms-npm-3.0.0-3acf02c3f3-fc602bba09.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e21be6d946ce0ca21b11966735c2e2b5ee729028ef314bc9eb229cc11b197e2 -size 2725 diff --git a/.yarn/cache/path-exists-npm-5.0.0-0bf403c56c-8ca842868c.zip b/.yarn/cache/path-exists-npm-5.0.0-0bf403c56c-8ca842868c.zip deleted file mode 100644 index 2b150e83d..000000000 --- a/.yarn/cache/path-exists-npm-5.0.0-0bf403c56c-8ca842868c.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68d63b928e95c8d7664e4db456dd17fbbf4ca6114d42546fcbf04bbba44b8e12 -size 3103 diff --git a/.yarn/cache/pkg-conf-npm-4.0.0-1053b46579-6da0c064a7.zip b/.yarn/cache/pkg-conf-npm-4.0.0-1053b46579-6da0c064a7.zip deleted file mode 100644 index ff003fb16..000000000 --- a/.yarn/cache/pkg-conf-npm-4.0.0-1053b46579-6da0c064a7.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:253dbc0e41aae061d34578e9a249bb004f65fd81fb3a0d9e17d2e365ea4b4375 -size 4533 diff --git a/.yarn/cache/plur-npm-5.1.0-a8abe6df1b-57e400dc4b.zip b/.yarn/cache/plur-npm-5.1.0-a8abe6df1b-57e400dc4b.zip deleted file mode 100644 index 0cf4e883f..000000000 --- a/.yarn/cache/plur-npm-5.1.0-a8abe6df1b-57e400dc4b.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96b04d934fa2112050545be2e4ed1be68a582174cd5c8a467a143da074a6b97d -size 3442 diff --git a/.yarn/cache/pretty-ms-npm-8.0.0-7a40e0b54a-b7d2a81828.zip b/.yarn/cache/pretty-ms-npm-8.0.0-7a40e0b54a-b7d2a81828.zip deleted file mode 100644 index 0e0c94393..000000000 --- a/.yarn/cache/pretty-ms-npm-8.0.0-7a40e0b54a-b7d2a81828.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b7626db45ea4515a9f263868bbd2973b5123070b1371206a6ea0d9e0863ccca -size 5506 diff --git a/.yarn/cache/serialize-error-npm-7.0.1-c0b3f881a0-e0aba4dca2.zip b/.yarn/cache/serialize-error-npm-7.0.1-c0b3f881a0-e0aba4dca2.zip deleted file mode 100644 index 7a59498ff..000000000 --- a/.yarn/cache/serialize-error-npm-7.0.1-c0b3f881a0-e0aba4dca2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b7d520c6df550167f8724431b9e1dfd13e14e32b14b31fd3bc86408256bfbcd -size 4025 diff --git a/.yarn/cache/slash-npm-4.0.0-ce4bbc4a80-da8e4af737.zip b/.yarn/cache/slash-npm-4.0.0-ce4bbc4a80-da8e4af737.zip deleted file mode 100644 index 4fbe7e496..000000000 --- a/.yarn/cache/slash-npm-4.0.0-ce4bbc4a80-da8e4af737.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0124349b7763c2715af5ee716aaa64f3dc99431bef21b97290b5c6a159f76716 -size 3075 diff --git a/.yarn/cache/slice-ansi-npm-5.0.0-8cd4f226df-7e600a2a55.zip b/.yarn/cache/slice-ansi-npm-5.0.0-8cd4f226df-7e600a2a55.zip deleted file mode 100644 index e4e84deda..000000000 --- a/.yarn/cache/slice-ansi-npm-5.0.0-8cd4f226df-7e600a2a55.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:abea04aaef5bdd25715ccc7aff81cf2c491c4836c35cdc70d10bd75d7b5a1851 -size 3767 diff --git a/.yarn/cache/supertap-npm-3.0.1-d7c04bcbf0-ee3d71c1d2.zip b/.yarn/cache/supertap-npm-3.0.1-d7c04bcbf0-ee3d71c1d2.zip deleted file mode 100644 index c0f775177..000000000 --- a/.yarn/cache/supertap-npm-3.0.1-d7c04bcbf0-ee3d71c1d2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61ae196f768c7243c47506d8975195c11e178e7e3400e3890657fee1f7cd3055 -size 4227 diff --git a/.yarn/cache/temp-dir-npm-3.0.0-70414c7a63-577211e995.zip b/.yarn/cache/temp-dir-npm-3.0.0-70414c7a63-577211e995.zip deleted file mode 100644 index 37ba082ba..000000000 --- a/.yarn/cache/temp-dir-npm-3.0.0-70414c7a63-577211e995.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15d4f4766a618f5ccaa45306e5c295c8573ceab432fd7d0b6a1bb2d555b20619 -size 2686 diff --git a/.yarn/cache/time-zone-npm-1.0.0-0522e3467f-e46f5a69b8.zip b/.yarn/cache/time-zone-npm-1.0.0-0522e3467f-e46f5a69b8.zip deleted file mode 100644 index 765f0d0cf..000000000 --- a/.yarn/cache/time-zone-npm-1.0.0-0522e3467f-e46f5a69b8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e8739f5875816d4db1f6a00083853d4eb1f26a0acfc1682e40ea11cf5d11f22 -size 2327 diff --git a/.yarn/cache/type-fest-npm-0.13.1-7f4486b973-e6bf2e3c44.zip b/.yarn/cache/type-fest-npm-0.13.1-7f4486b973-e6bf2e3c44.zip deleted file mode 100644 index 30f341f29..000000000 --- a/.yarn/cache/type-fest-npm-0.13.1-7f4486b973-e6bf2e3c44.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2cb6294828deea834fcfe67064207bfe7a4bacadfbd4d4cfe2d89efb780f2e4 -size 40149 diff --git a/.yarn/cache/well-known-symbols-npm-2.0.0-16fb8dedc6-4f54bbc301.zip b/.yarn/cache/well-known-symbols-npm-2.0.0-16fb8dedc6-4f54bbc301.zip deleted file mode 100644 index 85d97c9ef..000000000 --- a/.yarn/cache/well-known-symbols-npm-2.0.0-16fb8dedc6-4f54bbc301.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e5fd6233ecef21ae746a5e580fbbe5b8d74cab1991f934f4fba88dc176a19fc -size 2490 diff --git a/.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip b/.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip deleted file mode 100644 index d58a34006..000000000 --- a/.yarn/cache/write-file-atomic-npm-5.0.1-52283db6ee-8dbb0e2512.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a84e5fcd2bb1bdd00cb25f5ba68da97f21c488991f089b3d5f09203b49636c5 -size 5454 diff --git a/.yarn/cache/yocto-queue-npm-1.0.0-7b502f1987-2cac84540f.zip b/.yarn/cache/yocto-queue-npm-1.0.0-7b502f1987-2cac84540f.zip deleted file mode 100644 index ef56def9c..000000000 --- a/.yarn/cache/yocto-queue-npm-1.0.0-7b502f1987-2cac84540f.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48db938cf17b3360326470841f32872e2770b9168040cd95f18b53dc49b1dbe3 -size 4163 diff --git a/package.json b/package.json index e90d1e203..c20ec21de 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "dependencies": { "@bull-board/api": "5.6.0", "@bull-board/ui": "5.6.0", - "@napi-rs/cli": "^2.16.1", "@tensorflow/tfjs": "^3.21.0", "js-yaml": "4.1.0", "seedrandom": "^3.0.5" diff --git a/packages/backend/native-utils/Cargo.toml b/packages/backend/native-utils/Cargo.toml deleted file mode 100644 index 5f9827fbc..000000000 --- a/packages/backend/native-utils/Cargo.toml +++ /dev/null @@ -1,57 +0,0 @@ -[package] -edition = "2021" -name = "native-utils" -version = "0.0.0" - -[workspace] -members = ["migration"] - -[features] -default = [] -noarray = [] -napi = ["dep:napi", "dep:napi-derive"] - -[lib] -crate-type = ["cdylib", "lib"] - -[dependencies] -async-trait = "0.1.68" -cfg-if = "1.0.0" -chrono = "0.4.24" -cuid2 = "0.1.0" -derive_more = "0.99.17" -jsonschema = "0.17.0" -once_cell = "1.17.1" -parse-display = "0.8.0" -rand = "0.8.5" -schemars = { version = "0.8.12", features = ["chrono"] } -sea-orm = { version = "0.11.3", features = ["sqlx-postgres", "postgres-array", "sqlx-sqlite", "runtime-tokio-rustls"] } -serde = { version = "1.0.163", features = ["derive"] } -serde_json = "1.0.96" -thiserror = "1.0.40" -tokio = { version = "1.28.1", features = ["full"] } -utoipa = "3.3.0" -radix_fmt = "1.0.0" - -# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix -napi = { version = "2.13.1", default-features = false, features = ["napi6", "tokio_rt"], optional = true } -napi-derive = { version = "2.12.0", optional = true } - -[dev-dependencies] -pretty_assertions = "1.3.0" - -[build-dependencies] -napi-build = "2.0.1" - -[profile.release] -lto = true - -[profile.release-no-lto] -inherits = "release" -lto = false - -[profile.debug-napi] -inherits = "dev" - -[profile.debug-migration] -inherits = "dev" diff --git a/packages/backend/native-utils/__test__/index.spec.mjs b/packages/backend/native-utils/__test__/index.spec.mjs deleted file mode 100644 index 9ff8ead6c..000000000 --- a/packages/backend/native-utils/__test__/index.spec.mjs +++ /dev/null @@ -1,32 +0,0 @@ -import test from "ava"; - -import { - convertId, - IdConvertType, - nativeInitIdGenerator, - nativeCreateId, - nativeRandomStr, -} from "../built/index.js"; - -test("convert to mastodon id", (t) => { - t.is(convertId("9gf61ehcxv", IdConvertType.MastodonId), "960365976481219"); - t.is( - convertId("9fbr9z0wbrjqyd3u", IdConvertType.MastodonId), - "2083785058661759970208986", - ); - t.is( - convertId("9fbs680oyviiqrol9md73p8g", IdConvertType.MastodonId), - "5878598648988104013828532260828151168", - ); -}); - -test("create cuid2 with timestamp prefix", (t) => { - nativeInitIdGenerator(16, ""); - t.not(nativeCreateId(Date.now()), nativeCreateId(Date.now())); - t.is(nativeCreateId(Date.now()).length, 16); -}); - -test("create random string", (t) => { - t.not(nativeRandomStr(16), nativeRandomStr(16)); - t.is(nativeRandomStr(24).length, 24); -}); diff --git a/packages/backend/native-utils/migration/.gitignore b/packages/backend/native-utils/migration/.gitignore new file mode 100644 index 000000000..0a2a1de40 --- /dev/null +++ b/packages/backend/native-utils/migration/.gitignore @@ -0,0 +1,199 @@ +# Created by https://www.toptal.com/developers/gitignore/api/node +# Edit at https://www.toptal.com/developers/gitignore?templates=node + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# End of https://www.toptal.com/developers/gitignore/api/node + +# Created by https://www.toptal.com/developers/gitignore/api/macos +# Edit at https://www.toptal.com/developers/gitignore?templates=macos + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +# End of https://www.toptal.com/developers/gitignore/api/macos + +# Created by https://www.toptal.com/developers/gitignore/api/windows +# Edit at https://www.toptal.com/developers/gitignore?templates=windows + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/windows + +# napi-rs generated files +built/ + +#Added by cargo + +/target + +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +*.node diff --git a/packages/backend/native-utils/Cargo.lock b/packages/backend/native-utils/migration/Cargo.lock similarity index 59% rename from packages/backend/native-utils/Cargo.lock rename to packages/backend/native-utils/migration/Cargo.lock index e5f8af37a..03c3bbc41 100644 --- a/packages/backend/native-utils/Cargo.lock +++ b/packages/backend/native-utils/migration/Cargo.lock @@ -8,6 +8,21 @@ version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +[[package]] +name = "addr2line" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + [[package]] name = "ahash" version = "0.7.6" @@ -26,17 +41,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", - "getrandom", "once_cell", - "serde", "version_check", ] [[package]] name = "aho-corasick" -version = "1.0.2" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" +checksum = "ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab" dependencies = [ "memchr", ] @@ -47,6 +60,12 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" +[[package]] +name = "allocator-api2" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" + [[package]] name = "android-tzdata" version = "0.1.1" @@ -62,66 +81,11 @@ dependencies = [ "libc", ] -[[package]] -name = "anstream" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is-terminal", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" - -[[package]] -name = "anstyle-parse" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" -dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "anstyle-wincon" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" -dependencies = [ - "anstyle", - "windows-sys 0.48.0", -] - -[[package]] -name = "anyhow" -version = "1.0.71" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" - [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "async-stream" @@ -142,18 +106,18 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] name = "async-trait" -version = "0.1.68" +version = "0.1.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" +checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] @@ -171,6 +135,21 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "backtrace" +version = "0.3.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +dependencies = [ + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] + [[package]] name = "bae" version = "0.1.7" @@ -192,9 +171,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.2" +version = "0.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" +checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" [[package]] name = "bigdecimal" @@ -207,33 +186,12 @@ dependencies = [ "num-traits", ] -[[package]] -name = "bit-set" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" -dependencies = [ - "bit-vec", -] - -[[package]] -name = "bit-vec" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" - [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" -[[package]] -name = "bitflags" -version = "2.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" - [[package]] name = "bitvec" version = "1.0.1" @@ -302,9 +260,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.13.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" +checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" [[package]] name = "bytecheck" @@ -328,12 +286,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "bytecount" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c676a478f63e9fa2dd5368a42f28bba0d6c560b775f38583c8bbaa7fcd67c9c" - [[package]] name = "byteorder" version = "1.4.3" @@ -342,15 +294,18 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +dependencies = [ + "libc", +] [[package]] name = "cfg-if" @@ -360,18 +315,15 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.26" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" +checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" dependencies = [ "android-tzdata", "iana-time-zone", - "js-sys", "num-traits", "serde", - "time 0.1.45", - "wasm-bindgen", - "winapi", + "windows-targets", ] [[package]] @@ -380,38 +332,14 @@ version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ - "bitflags 1.3.2", - "clap_derive 3.2.25", - "clap_lex 0.2.4", - "indexmap", + "bitflags", + "clap_derive", + "clap_lex", + "indexmap 1.9.3", "once_cell", "textwrap", ] -[[package]] -name = "clap" -version = "4.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "401a4694d2bf92537b6867d94de48c4842089645fdcdf6c71865b175d836e9c2" -dependencies = [ - "clap_builder", - "clap_derive 4.3.2", - "once_cell", -] - -[[package]] -name = "clap_builder" -version = "4.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72394f3339a76daf211e57d4bcb374410f3965dcc606dd0e03738c7888766980" -dependencies = [ - "anstream", - "anstyle", - "bitflags 1.3.2", - "clap_lex 0.5.0", - "strsim", -] - [[package]] name = "clap_derive" version = "3.2.25" @@ -425,18 +353,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "clap_derive" -version = "4.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f" -dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "syn 2.0.18", -] - [[package]] name = "clap_lex" version = "0.2.4" @@ -446,18 +362,6 @@ dependencies = [ "os_str_bytes", ] -[[package]] -name = "clap_lex" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" - -[[package]] -name = "colorchoice" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" - [[package]] name = "combine" version = "4.6.6" @@ -472,34 +376,6 @@ dependencies = [ "tokio-util", ] -[[package]] -name = "console" -version = "0.15.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8" -dependencies = [ - "encode_unicode", - "lazy_static", - "libc", - "unicode-width", - "windows-sys 0.45.0", -] - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "convert_case" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "core-foundation" version = "0.9.3" @@ -518,9 +394,9 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cpufeatures" -version = "0.2.7" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" +checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" dependencies = [ "libc", ] @@ -537,9 +413,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.15" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -555,56 +431,14 @@ dependencies = [ ] [[package]] -name = "ctor" -version = "0.1.26" +name = "deranged" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" +checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" dependencies = [ - "quote", - "syn 1.0.109", + "serde", ] -[[package]] -name = "ctor" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1586fa608b1dab41f667475b4a41faec5ba680aee428bfa5de4ea520fdc6e901" -dependencies = [ - "quote", - "syn 2.0.18", -] - -[[package]] -name = "cuid2" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1debbff0c0f0b54e681296c6f064a78f8ecec8e89e7fcc472443d9f85b98ca9a" -dependencies = [ - "num", - "proptest", - "rand", - "sha3", -] - -[[package]] -name = "derive_more" -version = "0.99.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" -dependencies = [ - "convert_case 0.4.0", - "proc-macro2", - "quote", - "rustc_version", - "syn 1.0.109", -] - -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - [[package]] name = "digest" version = "0.10.7" @@ -642,53 +476,17 @@ version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" -[[package]] -name = "dyn-clone" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30" - [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] -name = "encode_unicode" -version = "0.3.6" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - -[[package]] -name = "encoding_rs" -version = "0.8.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "errno" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" -dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" -dependencies = [ - "cc", - "libc", -] +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "event-listener" @@ -697,23 +495,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] -name = "fancy-regex" -version = "0.11.0" +name = "finl_unicode" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2" -dependencies = [ - "bit-set", - "regex", -] - -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] +checksum = "8fcfdc7a0362c9f4444381a9e697c79d435fe65b52a37466fc2c1184cee9edc6" [[package]] name = "flume" @@ -727,12 +512,6 @@ dependencies = [ "spin 0.9.8", ] -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - [[package]] name = "form_urlencoded" version = "1.2.0" @@ -742,16 +521,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fraction" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3027ae1df8d41b4bed2241c8fdad4acc1e7af60c8e17743534b545e77182d678" -dependencies = [ - "lazy_static", - "num", -] - [[package]] name = "funty" version = "2.0.0" @@ -766,7 +535,6 @@ checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" dependencies = [ "futures-channel", "futures-core", - "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -817,17 +585,6 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" -[[package]] -name = "futures-macro" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.18", -] - [[package]] name = "futures-sink" version = "0.3.28" @@ -849,7 +606,6 @@ dependencies = [ "futures-channel", "futures-core", "futures-io", - "futures-macro", "futures-sink", "futures-task", "memchr", @@ -870,35 +626,20 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", - "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", + "wasi", ] [[package]] -name = "h2" -version = "0.3.19" +name = "gimli" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d357c7ae988e7d2182f7d7871d0b963962420b0678b0997ce7de72001aeab782" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] +checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" [[package]] name = "hashbrown" @@ -919,12 +660,22 @@ dependencies = [ ] [[package]] -name = "hashlink" -version = "0.8.2" +name = "hashbrown" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0761a1b9491c4f2e3d66aa0f62d0fba0af9a0e2852e4d48ea506632a4b56e6aa" +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" dependencies = [ - "hashbrown 0.13.2", + "ahash 0.8.3", + "allocator-api2", +] + +[[package]] +name = "hashlink" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" +dependencies = [ + "hashbrown 0.14.0", ] [[package]] @@ -947,18 +698,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" [[package]] name = "hex" @@ -984,69 +726,11 @@ dependencies = [ "digest", ] -[[package]] -name = "http" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - -[[package]] -name = "http-body" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" -dependencies = [ - "bytes", - "http", - "pin-project-lite", -] - -[[package]] -name = "httparse" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" - -[[package]] -name = "httpdate" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" - -[[package]] -name = "hyper" -version = "0.14.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2", - "tokio", - "tower-service", - "tracing", - "want", -] - [[package]] name = "iana-time-zone" -version = "0.1.56" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -1083,21 +767,16 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", - "serde", ] [[package]] -name = "indicatif" -version = "0.17.5" +name = "indexmap" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ff8cc23a7393a397ed1d7f56e6365cba772aba9f9912ab968b03043c395d057" +checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" dependencies = [ - "console", - "instant", - "number_prefix", - "portable-atomic", - "tokio", - "unicode-width", + "equivalent", + "hashbrown 0.14.0", ] [[package]] @@ -1109,107 +788,30 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi 0.3.1", - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "ipnet" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" - -[[package]] -name = "is-terminal" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" -dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix", - "windows-sys 0.48.0", -] - -[[package]] -name = "iso8601" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "924e5d73ea28f59011fec52a0d12185d496a9b075d360657aed2a5707f701153" -dependencies = [ - "nom", -] - [[package]] name = "itertools" -version = "0.10.5" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" dependencies = [ "either", ] [[package]] name = "itoa" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f37a4a5928311ac501dee68b3c7613a1037d0edb30c8e5427bd832d55d1b790" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] -[[package]] -name = "jsonschema" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48354c4c4f088714424ddf090de1ff84acc82b2f08c192d46d226ae2529a465" -dependencies = [ - "ahash 0.8.3", - "anyhow", - "base64 0.21.2", - "bytecount", - "clap 4.3.2", - "fancy-regex", - "fraction", - "getrandom", - "iso8601", - "itoa", - "memchr", - "num-cmp", - "once_cell", - "parking_lot 0.12.1", - "percent-encoding", - "regex", - "reqwest", - "serde", - "serde_json", - "time 0.3.21", - "url", - "uuid", -] - -[[package]] -name = "keccak" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" -dependencies = [ - "cpufeatures", -] - [[package]] name = "lazy_static" version = "1.4.0" @@ -1218,25 +820,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.145" +version = "0.2.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc86cde3ff845662b8f4ef6cb50ea0e20c524eb3d29ae048287e06a1b3fa6a81" - -[[package]] -name = "libloading" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" -dependencies = [ - "cfg-if", - "winapi", -] - -[[package]] -name = "libm" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" +checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" [[package]] name = "libsqlite3-sys" @@ -1249,12 +835,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - [[package]] name = "lock_api" version = "0.4.10" @@ -1267,9 +847,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.18" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "matchers" @@ -1277,31 +857,29 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" dependencies = [ - "regex-automata", + "regex-automata 0.1.10", ] [[package]] name = "md-5" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ + "cfg-if", "digest", ] [[package]] name = "memchr" -version = "2.5.0" +version = "2.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "8f232d6ef707e1956a43342693d2a31e72989554d58299d7a88738cc95b0d35c" [[package]] name = "migration" version = "0.1.0" dependencies = [ - "futures", - "indicatif", - "native-utils", "redis", "sea-orm", "sea-orm-migration", @@ -1313,18 +891,21 @@ dependencies = [ "urlencoding", ] -[[package]] -name = "mime" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" - [[package]] name = "minimal-lexical" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" +[[package]] +name = "miniz_oxide" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +dependencies = [ + "adler", +] + [[package]] name = "mio" version = "0.8.8" @@ -1332,93 +913,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.48.0", -] - -[[package]] -name = "napi" -version = "2.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7f0a2e93526dd9c8c522d72a4d0c88678be8966fabe9fb8f2947fde6339b682" -dependencies = [ - "bitflags 2.3.1", - "ctor 0.2.2", - "napi-derive", - "napi-sys", - "once_cell", - "tokio", -] - -[[package]] -name = "napi-build" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "882a73d9ef23e8dc2ebbffb6a6ae2ef467c0f18ac10711e4cc59c5485d41df0e" - -[[package]] -name = "napi-derive" -version = "2.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da1c6a8fa84d549aa8708fcd062372bf8ec6e849de39016ab921067d21bde367" -dependencies = [ - "cfg-if", - "convert_case 0.6.0", - "napi-derive-backend", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "napi-derive-backend" -version = "1.0.52" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20bbc7c69168d06a848f925ec5f0e0997f98e8c8d4f2cc30157f0da51c009e17" -dependencies = [ - "convert_case 0.6.0", - "once_cell", - "proc-macro2", - "quote", - "regex", - "semver", - "syn 1.0.109", -] - -[[package]] -name = "napi-sys" -version = "2.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "166b5ef52a3ab5575047a9fe8d4a030cdd0f63c96f071cd6907674453b07bae3" -dependencies = [ - "libloading", -] - -[[package]] -name = "native-utils" -version = "0.0.0" -dependencies = [ - "async-trait", - "cfg-if", - "chrono", - "cuid2", - "derive_more", - "jsonschema", - "napi", - "napi-build", - "napi-derive", - "once_cell", - "parse-display", - "pretty_assertions", - "radix_fmt", - "rand", - "schemars", - "sea-orm", - "serde", - "serde_json", - "thiserror", - "tokio", - "utoipa", + "wasi", + "windows-sys", ] [[package]] @@ -1431,46 +927,17 @@ dependencies = [ "minimal-lexical", ] -[[package]] -name = "num" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" -dependencies = [ - "num-bigint", - "num-complex", - "num-integer", - "num-iter", - "num-rational", - "num-traits", -] - [[package]] name = "num-bigint" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ "autocfg", "num-integer", "num-traits", ] -[[package]] -name = "num-cmp" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63335b2e2c34fae2fb0aa2cecfd9f0832a1e24b3b32ecec612c3426d46dc8aaa" - -[[package]] -name = "num-complex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" -dependencies = [ - "num-traits", -] - [[package]] name = "num-integer" version = "0.1.45" @@ -1481,54 +948,33 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-iter" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-rational" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" -dependencies = [ - "autocfg", - "num-bigint", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", - "libm", ] [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi", "libc", ] [[package]] -name = "number_prefix" -version = "0.4.0" +name = "object" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" +checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" +dependencies = [ + "memchr", +] [[package]] name = "once_cell" @@ -1544,9 +990,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "os_str_bytes" -version = "6.5.0" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceedf44fb00f2d1984b0bc98102627ce622e083e49a5bacdb3e514fa4238e267" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "ouroboros" @@ -1571,15 +1017,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "output_vt100" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628223faebab4e3e40667ee0b2336d34a5b960ff60ea743ddfdbcf7770bcfb66" -dependencies = [ - "winapi", -] - [[package]] name = "parking_lot" version = "0.11.2" @@ -1625,40 +1062,14 @@ dependencies = [ "libc", "redox_syscall 0.3.5", "smallvec", - "windows-targets 0.48.0", -] - -[[package]] -name = "parse-display" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f96cc033d72896bb9a2c239a14e1141c3e2eae6d649e7c10ef4e598d66bc86c" -dependencies = [ - "once_cell", - "parse-display-derive", - "regex", -] - -[[package]] -name = "parse-display-derive" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5587062be441f3d868f7c4c9d13c67f286b03aa679d7f8176ef80bf2ee79e5d" -dependencies = [ - "once_cell", - "proc-macro2", - "quote", - "regex", - "regex-syntax 0.6.29", - "structmeta", - "syn 1.0.109", + "windows-targets", ] [[package]] name = "paste" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "percent-encoding" @@ -1668,29 +1079,29 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pin-project" -version = "1.1.0" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c95a7476719eab1e366eaf73d0260af3021184f18177925b07f54b30089ceead" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.0" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39407670928234ebc5e6e580247dd567ad73a3578460c5990f9503df207e8f07" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] name = "pin-project-lite" -version = "0.2.9" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" [[package]] name = "pin-utils" @@ -1704,30 +1115,12 @@ version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" -[[package]] -name = "portable-atomic" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767eb9f07d4a5ebcb39bbf2d452058a93c011373abf6832e24194a1c3f004794" - [[package]] name = "ppv-lite86" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" -[[package]] -name = "pretty_assertions" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a25e9bcb20aa780fd0bb16b72403a9064d6b3f22f026946029acb941a50af755" -dependencies = [ - "ctor 0.1.26", - "diff", - "output_vt100", - "yansi", -] - [[package]] name = "proc-macro-crate" version = "0.1.5" @@ -1763,33 +1156,13 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.59" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" dependencies = [ "unicode-ident", ] -[[package]] -name = "proptest" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e35c06b98bf36aba164cc17cb25f7e232f5c4aeea73baa14b8a9f0d92dbfa65" -dependencies = [ - "bit-set", - "bitflags 1.3.2", - "byteorder", - "lazy_static", - "num-traits", - "rand", - "rand_chacha", - "rand_xorshift", - "regex-syntax 0.6.29", - "rusty-fork", - "tempfile", - "unarray", -] - [[package]] name = "ptr_meta" version = "0.1.4" @@ -1810,17 +1183,11 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - [[package]] name = "quote" -version = "1.0.28" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] @@ -1831,12 +1198,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "radix_fmt" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce082a9940a7ace2ad4a8b7d0b1eac6aa378895f18be598230c5f2284ac05426" - [[package]] name = "rand" version = "0.8.5" @@ -1867,20 +1228,11 @@ dependencies = [ "getrandom", ] -[[package]] -name = "rand_xorshift" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" -dependencies = [ - "rand_core", -] - [[package]] name = "redis" -version = "0.23.0" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ea8c51b5dc1d8e5fd3350ec8167f464ec0995e79f2e90a075b63371500d557f" +checksum = "4f49cdc0bb3f412bf8e7d1bd90fe1d9eb10bc5c399ba90973c14662a27b3f8ba" dependencies = [ "async-trait", "bytes", @@ -1889,10 +1241,11 @@ dependencies = [ "itoa", "percent-encoding", "pin-project-lite", - "rustls 0.21.3", + "rustls 0.21.7", "rustls-native-certs", "ryu", "sha1_smol", + "socket2 0.4.9", "tokio", "tokio-rustls 0.24.1", "tokio-util", @@ -1905,7 +1258,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] @@ -1914,7 +1267,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] @@ -1930,13 +1283,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" +checksum = "697061221ea1b4a94a624f67d0ae2bfe4e22b8a17b6a192afb11046542cc8c47" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.7.2", + "regex-automata 0.3.8", + "regex-syntax 0.7.5", ] [[package]] @@ -1948,6 +1302,17 @@ dependencies = [ "regex-syntax 0.6.29", ] +[[package]] +name = "regex-automata" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2f401f4955220693b56f8ec66ee9c78abffd8d1c4f23dc41a23839eb88f0795" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.7.5", +] + [[package]] name = "regex-syntax" version = "0.6.29" @@ -1956,53 +1321,19 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.7.2" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" +checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" [[package]] name = "rend" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581008d2099240d37fb08d77ad713bcaec2c4d89d50b5b21a8bb1996bbab68ab" +checksum = "a2571463863a6bd50c32f94402933f03457a3fbaf697a707c5be741e459f08fd" dependencies = [ "bytecheck", ] -[[package]] -name = "reqwest" -version = "0.11.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" -dependencies = [ - "base64 0.21.2", - "bytes", - "encoding_rs", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "hyper", - "ipnet", - "js-sys", - "log", - "mime", - "once_cell", - "percent-encoding", - "pin-project-lite", - "serde", - "serde_json", - "serde_urlencoded", - "tokio", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", - "winreg", -] - [[package]] name = "ring" version = "0.16.20" @@ -2048,14 +1379,12 @@ dependencies = [ [[package]] name = "rust_decimal" -version = "1.29.1" +version = "1.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26bd36b60561ee1fb5ec2817f198b6fd09fa571c897a5e86d1487cfc2b096dfc" +checksum = "a4c4216490d5a413bc6d10fa4742bd7d4955941d062c0ef873141d6b0e7b30fd" dependencies = [ "arrayvec", "borsh", - "bytecheck", - "byteorder", "bytes", "num-traits", "rand", @@ -2065,33 +1394,16 @@ dependencies = [ ] [[package]] -name = "rustc_version" -version = "0.4.0" +name = "rustc-demangle" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - -[[package]] -name = "rustix" -version = "0.37.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys", - "windows-sys 0.48.0", -] +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustls" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" +checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" dependencies = [ "log", "ring", @@ -2101,9 +1413,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.3" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b19faa85ecb5197342b54f987b142fb3e30d0c90da40f80ef4fa9a726e6676ed" +checksum = "cd8d6c9f025a446bc4d18ad9632e69aec8f287aa84499ee335599fabd20c3fd8" dependencies = [ "log", "ring", @@ -2125,18 +1437,18 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" dependencies = [ - "base64 0.21.2", + "base64 0.21.4", ] [[package]] name = "rustls-webpki" -version = "0.101.1" +version = "0.101.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15f36a6828982f422756984e47912a7a51dcbc2a197aa791158f8ca61cd8204e" +checksum = "3c7d5dece342910d9ba34d259310cae3e0154b873b35408b787b59bce53d34fe" dependencies = [ "ring", "untrusted", @@ -2144,27 +1456,15 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" - -[[package]] -name = "rusty-fork" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" -dependencies = [ - "fnv", - "quick-error", - "tempfile", - "wait-timeout", -] +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "ryu" -version = "1.0.13" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "schannel" @@ -2172,39 +1472,14 @@ version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "schemars" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02c613288622e5f0c3fdc5dbd4db1c5fbe752746b1d1a56a0630b78fd00de44f" -dependencies = [ - "chrono", - "dyn-clone", - "schemars_derive", - "serde", - "serde_json", -] - -[[package]] -name = "schemars_derive" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "109da1e6b197438deb6db99952990c7f959572794b80ff93707d55a232545e7c" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn 1.0.109", + "windows-sys", ] [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sct" @@ -2238,7 +1513,7 @@ dependencies = [ "serde_json", "sqlx", "thiserror", - "time 0.3.21", + "time", "tracing", "url", "uuid", @@ -2251,7 +1526,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "efbf34a2caf70c2e3be9bb1e674e9540f6dfd7c8f40f6f05daf3b9740e476005" dependencies = [ "chrono", - "clap 3.2.25", + "clap", "dotenvy", "regex", "sea-schema", @@ -2280,7 +1555,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "278d3adfd0832b6ffc17d3cfbc574d3695a5c1b38814e0bc8ac238d33f3d87cf" dependencies = [ "async-trait", - "clap 3.2.25", + "clap", "dotenvy", "futures", "sea-orm", @@ -2301,7 +1576,7 @@ dependencies = [ "rust_decimal", "sea-query-derive", "serde_json", - "time 0.3.21", + "time", "uuid", ] @@ -2317,7 +1592,7 @@ dependencies = [ "sea-query", "serde_json", "sqlx", - "time 0.3.21", + "time", "uuid", ] @@ -2387,11 +1662,11 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "security-framework" -version = "2.9.1" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ - "bitflags 1.3.2", + "bitflags", "core-foundation", "core-foundation-sys", "libc", @@ -2400,81 +1675,52 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", ] -[[package]] -name = "semver" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" - [[package]] name = "serde" -version = "1.0.163" +version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", -] - -[[package]] -name = "serde_derive_internals" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "syn 2.0.37", ] [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" dependencies = [ "itoa", "ryu", "serde", ] -[[package]] -name = "serde_urlencoded" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" -dependencies = [ - "form_urlencoded", - "itoa", - "ryu", - "serde", -] - [[package]] name = "serde_yaml" -version = "0.9.21" +version = "0.9.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c" +checksum = "1a49e178e4452f45cb61d0cd8cebc1b0fafd3e41929e996cef79aa3aca91f574" dependencies = [ - "indexmap", + "indexmap 2.0.0", "itoa", "ryu", "serde", @@ -2483,9 +1729,9 @@ dependencies = [ [[package]] name = "sha1" -version = "0.10.5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", @@ -2500,25 +1746,15 @@ checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", "digest", ] -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest", - "keccak", -] - [[package]] name = "sharded-slab" version = "0.1.4" @@ -2545,18 +1781,18 @@ checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" [[package]] name = "slab" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ "autocfg", ] [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" [[package]] name = "socket2" @@ -2568,6 +1804,16 @@ dependencies = [ "winapi", ] +[[package]] +name = "socket2" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e" +dependencies = [ + "libc", + "windows-sys", +] + [[package]] name = "spin" version = "0.5.2" @@ -2585,9 +1831,9 @@ dependencies = [ [[package]] name = "sqlformat" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c12bc9199d1db8234678b7051747c07f517cdcf019262d1847b94ec8b1aee3e" +checksum = "6b7b278788e7be4d0d29c0f39497a0eef3fba6bbc8e70d8bf7fde46edeaa9e85" dependencies = [ "itertools", "nom", @@ -2614,7 +1860,7 @@ dependencies = [ "atoi", "base64 0.13.1", "bigdecimal", - "bitflags 1.3.2", + "bitflags", "byteorder", "bytes", "chrono", @@ -2633,7 +1879,7 @@ dependencies = [ "hex", "hkdf", "hmac", - "indexmap", + "indexmap 1.9.3", "itoa", "libc", "libsqlite3-sys", @@ -2646,7 +1892,7 @@ dependencies = [ "percent-encoding", "rand", "rust_decimal", - "rustls 0.20.8", + "rustls 0.20.9", "rustls-pemfile", "serde", "serde_json", @@ -2657,7 +1903,7 @@ dependencies = [ "sqlx-rt", "stringprep", "thiserror", - "time 0.3.21", + "time", "tokio-stream", "url", "uuid", @@ -2697,43 +1943,15 @@ dependencies = [ [[package]] name = "stringprep" -version = "0.1.2" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ee348cb74b87454fff4b551cbf727025810a004f88aeacae7f85b87f4e9a1c1" +checksum = "bb41d74e231a107a1b4ee36bd1214b11285b77768d2e3824aedafa988fd36ee6" dependencies = [ + "finl_unicode", "unicode-bidi", "unicode-normalization", ] -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - -[[package]] -name = "structmeta" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "104842d6278bf64aa9d2f182ba4bde31e8aec7a131d29b7f444bb9b344a09e2a" -dependencies = [ - "proc-macro2", - "quote", - "structmeta-derive", - "syn 1.0.109", -] - -[[package]] -name = "structmeta-derive" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24420be405b590e2d746d83b01f09af673270cf80e9b003a5fa7b651c58c7d93" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "subtle" version = "2.5.0" @@ -2753,9 +1971,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.18" +version = "2.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" +checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" dependencies = [ "proc-macro2", "quote", @@ -2768,19 +1986,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" -[[package]] -name = "tempfile" -version = "3.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" -dependencies = [ - "cfg-if", - "fastrand", - "redox_syscall 0.3.5", - "rustix", - "windows-sys 0.45.0", -] - [[package]] name = "textwrap" version = "0.16.0" @@ -2789,22 +1994,22 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "9d6d7a740b8a666a7e828dd00da9c0dc290dff53154ea77ac109281de90589b7" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "49922ecae66cc8a249b77e68d1d0623c1b2c514f0060c27cdc68bd62a1219d35" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] @@ -2819,21 +2024,11 @@ dependencies = [ [[package]] name = "time" -version = "0.1.45" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - -[[package]] -name = "time" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3403384eaacbca9923fa06940178ac13e4edb725486d70e8e15881d0c836cc" +checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe" dependencies = [ + "deranged", "itoa", "serde", "time-core", @@ -2842,15 +2037,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.9" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" +checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" dependencies = [ "time-core", ] @@ -2872,11 +2067,11 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.28.2" +version = "1.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" +checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9" dependencies = [ - "autocfg", + "backtrace", "bytes", "libc", "mio", @@ -2884,9 +2079,9 @@ dependencies = [ "parking_lot 0.12.1", "pin-project-lite", "signal-hook-registry", - "socket2", + "socket2 0.5.4", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys", ] [[package]] @@ -2897,7 +2092,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] @@ -2906,7 +2101,7 @@ version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ - "rustls 0.20.8", + "rustls 0.20.9", "tokio", "webpki", ] @@ -2917,7 +2112,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.3", + "rustls 0.21.7", "tokio", ] @@ -2934,9 +2129,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +checksum = "1d68074620f57a0b21594d9735eb2e98ab38b17f80d3fcb189fca266771ca60d" dependencies = [ "bytes", "futures-core", @@ -2955,12 +2150,6 @@ dependencies = [ "serde", ] -[[package]] -name = "tower-service" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" - [[package]] name = "tracing" version = "0.1.37" @@ -2976,13 +2165,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", ] [[package]] @@ -3009,23 +2198,11 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "try-lock" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" - [[package]] name = "typenum" -version = "1.16.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" - -[[package]] -name = "unarray" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" @@ -3035,9 +2212,9 @@ checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" @@ -3054,12 +2231,6 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" -[[package]] -name = "unicode-width" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" - [[package]] name = "unicode_categories" version = "0.1.1" @@ -3068,9 +2239,9 @@ checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" [[package]] name = "unsafe-libyaml" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1865806a559042e51ab5414598446a5871b561d21b6764f2eabb0dd481d880a6" +checksum = "f28467d3e1d3c6586d8f25fa243f544f5800fec42d97032474e17222c2b75cfa" [[package]] name = "untrusted" @@ -3080,9 +2251,9 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "url" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" +checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" dependencies = [ "form_urlencoded", "idna", @@ -3092,45 +2263,15 @@ dependencies = [ [[package]] name = "urlencoding" -version = "2.1.2" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8db7427f936968176eaa7cdf81b7f98b980b18495ec28f1b5791ac3bfe3eea9" - -[[package]] -name = "utf8parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" - -[[package]] -name = "utoipa" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ae74ef183fae36d650f063ae7bde1cacbe1cd7e72b617cbe1e985551878b98" -dependencies = [ - "indexmap", - "serde", - "serde_json", - "utoipa-gen", -] - -[[package]] -name = "utoipa-gen" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ea8ac818da7e746a63285594cce8a96f5e00ee31994e655bd827569cb8b137b" -dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.18", -] +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" [[package]] name = "uuid" -version = "1.3.3" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" dependencies = [ "serde", ] @@ -3147,31 +2288,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "wait-timeout" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" -dependencies = [ - "libc", -] - -[[package]] -name = "want" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" -dependencies = [ - "log", - "try-lock", -] - -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -3180,9 +2296,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -3190,36 +2306,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", "wasm-bindgen-shared", ] -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d1985d03709c53167ce907ff394f5316aa22cb4e12761295c5dc57dacb6297e" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - [[package]] name = "wasm-bindgen-macro" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3227,28 +2331,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.37", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "web-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bdd9ef4e984da1187bf8110c5cf5b845fbc87a23602cdf912386a76fcd3a7c2" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -3256,9 +2360,9 @@ dependencies = [ [[package]] name = "webpki" -version = "0.22.0" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +checksum = "f0e74f82d49d545ad128049b7e88f6576df2da6b02e9ce565c6f533be576957e" dependencies = [ "ring", "untrusted", @@ -3275,9 +2379,9 @@ dependencies = [ [[package]] name = "whoami" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c70234412ca409cc04e864e89523cb0fc37f5e1344ebed5a3ebf4192b6b9f68" +checksum = "22fc3756b8a9133049b26c7f61ab35416c130e8c09b660f5b3958b446f52cc50" dependencies = [ "wasm-bindgen", "web-sys", @@ -3311,16 +2415,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.0", -] - -[[package]] -name = "windows-sys" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" -dependencies = [ - "windows-targets 0.42.2", + "windows-targets", ] [[package]] @@ -3329,131 +2424,65 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.0", + "windows-targets", ] [[package]] name = "windows-targets" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - -[[package]] -name = "windows-targets" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" -dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" - -[[package]] -name = "windows_i686_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" - -[[package]] -name = "windows_i686_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" -version = "0.42.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" - -[[package]] -name = "winreg" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" -dependencies = [ - "winapi", -] +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "wyz" @@ -3463,9 +2492,3 @@ checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" dependencies = [ "tap", ] - -[[package]] -name = "yansi" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" diff --git a/packages/backend/native-utils/migration/Cargo.toml b/packages/backend/native-utils/migration/Cargo.toml index 9bf793e04..af1008ef5 100644 --- a/packages/backend/native-utils/migration/Cargo.toml +++ b/packages/backend/native-utils/migration/Cargo.toml @@ -10,14 +10,10 @@ path = "src/lib.rs" [features] default = [] -convert = ["dep:native-utils", "dep:indicatif", "dep:futures"] [dependencies] serde_json = "1.0.96" -native-utils = { path = "../", optional = true } -indicatif = { version = "0.17.4", features = ["tokio"], optional = true } tokio = { version = "1.28.2", features = ["full"] } -futures = { version = "0.3.28", optional = true } serde_yaml = "0.9.21" serde = { version = "1.0.163", features = ["derive"] } urlencoding = "2.1.2" diff --git a/packages/backend/native-utils/migration/src/main.rs b/packages/backend/native-utils/migration/src/main.rs index ca1246cf5..19489aae2 100644 --- a/packages/backend/native-utils/migration/src/main.rs +++ b/packages/backend/native-utils/migration/src/main.rs @@ -9,9 +9,6 @@ const DB_URL_ENV: &str = "DATABASE_URL"; const CACHE_URL_ENV: &str = "CACHE_URL"; const CACHE_PREFIX_ENV: &str = "CACHE_PREFIX"; -#[cfg(feature = "convert")] -mod vec_to_json; - #[tokio::main] async fn main() { let cwd = env::current_dir().unwrap(); @@ -65,9 +62,6 @@ async fn main() { } cli::run_cli(migration::Migrator).await; - - #[cfg(feature = "convert")] - vec_to_json::convert().await; } #[derive(Debug, PartialEq, Deserialize)] diff --git a/packages/backend/native-utils/migration/src/vec_to_json.rs b/packages/backend/native-utils/migration/src/vec_to_json.rs deleted file mode 100644 index 104357a49..000000000 --- a/packages/backend/native-utils/migration/src/vec_to_json.rs +++ /dev/null @@ -1,498 +0,0 @@ -use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; -use native_utils::model::entity::newtype::{I32Vec, StringVec}; -use sea_orm_migration::{ - prelude::*, - sea_orm::{Database, DbBackend, DbConn, Statement, TryGetable}, -}; -use serde_json::json; -use std::env; -use std::time::Duration; - -pub async fn convert() { - let uri = env::var("DATABASE_URL").expect("Environment variable 'DATABASE_URL' not set"); - - let db = Database::connect(uri).await.expect("Unable to connect"); - let mp = MultiProgress::new(); - - let handlers = vec![ - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - AccessToken::Table, - AccessToken::Id, - AccessToken::Permission, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Antenna::Table, - Antenna::Id, - Antenna::Users, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - App::Table, - App::Id, - App::Permission, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Emoji::Table, - Emoji::Id, - Emoji::Aliases, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - GalleryPost::Table, - GalleryPost::Id, - GalleryPost::FileIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - GalleryPost::Table, - GalleryPost::Id, - GalleryPost::Tags, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::MentionedUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::MentionedLocalUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::MentionedRemoteUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::AttachedUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::AttachedLocalUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Hashtag::Table, - Hashtag::Id, - Hashtag::AttachedRemoteUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - MessagingMessage::Table, - MessagingMessage::Id, - MessagingMessage::Reads, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::Langs, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::BlockedHosts, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::HiddenTags, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::PinnedUsers, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::PinnedPages, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::RecommendedInstances, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Meta::Table, - Meta::Id, - Meta::SilencedHosts, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::FileIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::AttachedFileTypes, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::VisibleUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::Mentions, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::Emojis, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Note::Table, - Note::Id, - Note::Tags, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - NoteEdit::Table, - NoteEdit::Id, - NoteEdit::FileIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Page::Table, - Page::Id, - Page::VisibleUserIds, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - RegistryItem::Table, - RegistryItem::Id, - RegistryItem::Scope, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - User::Table, - User::Id, - User::Tags, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - User::Table, - User::Id, - User::Emojis, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Webhook::Table, - Webhook::Id, - Webhook::On, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - Poll::Table, - Poll::NoteId, - Poll::Choices, - )), - tokio::spawn(to_json::, I32Vec>( - db.clone(), - mp.clone(), - Poll::Table, - Poll::NoteId, - Poll::Votes, - )), - tokio::spawn(to_json::, StringVec>( - db.clone(), - mp.clone(), - UserProfile::Table, - UserProfile::UserId, - UserProfile::MutingNotificationTypes, - )), - ]; - - futures::future::join_all(handlers).await; -} - -fn select_query(table: T, id: T, col: T) -> String { - Query::select() - .column(id) - .column(col) - .from(table) - .to_string(PostgresQueryBuilder) -} - -async fn get_vec(db: &DbConn, query: String) -> Result, DbErr> { - let res: Vec<(String, T)> = db - .query_all(Statement::from_string(DbBackend::Postgres, query)) - .await? - .iter() - .filter_map(|r| r.try_get_many_by_index().ok()) - .collect(); - Ok(res) -} - -async fn convert_col( - db: &DbConn, - table: T, - col: T, -) -> Result<(), DbErr> { - let stmt = Table::alter() - .table(table) - .drop_column(col.to_owned()) - .add_column( - ColumnDef::new(col.to_owned()) - .json_binary() - .not_null() - .default(json!([])), - ) - .to_string(PostgresQueryBuilder); - db.query_one(Statement::from_string(DbBackend::Postgres, stmt)) - .await?; - Ok(()) -} - -async fn to_json( - db: DbConn, - mp: MultiProgress, - table: T, - id: T, - col: T, -) -> Result<(), DbErr> -where - T: Iden + Clone + 'static, - U: TryGetable + IntoIterator + Clone, - V: From + Into, -{ - let query = select_query(table.clone(), id.clone(), col.clone()); - let loading = ProgressBar::new_spinner() - .with_style(ProgressStyle::with_template("{prefix} {msg} {spinner}").unwrap()) - .with_prefix("[-]") - .with_message(format!( - "Loading data from {}.{}", - table.to_string(), - col.to_string() - )); - let loading = mp.add(loading); - loading.enable_steady_tick(Duration::from_millis(100)); - let res = get_vec::(&db, query).await?; - let models: Vec<(String, V)> = res - .iter() - .filter(|(_, r)| r.clone().into_iter().count() > 0) - .map(|(id, r)| (id.clone(), ::from(r.clone()))) - .collect(); - loading.finish_and_clear(); - convert_col(&db, table.clone(), col.clone()).await?; - - let progress = ProgressBar::new(models.len() as u64) - .with_style( - ProgressStyle::with_template("{prefix} {msg} {wide_bar} {pos}/{len}") - .unwrap() - .progress_chars("##-"), - ) - .with_prefix("[*]") - .with_message(format!("Copying {}.{}", table.to_string(), col.to_string())); - let progress = mp.add(progress); - - for model in models { - progress.inc(1); - let q = Query::update() - .table(table.clone()) - .values([(col.clone(), model.1.into())]) - .and_where(Expr::col(id.clone()).eq(model.0)) - .to_string(PostgresQueryBuilder); - db.query_one(Statement::from_string(DbBackend::Postgres, q)) - .await?; - } - progress.finish_with_message(format!("Done {}.{}", table.to_string(), col.to_string())); - - Ok(()) -} - -#[derive(Iden, Clone)] -enum AccessToken { - Table, - Id, - Permission, -} -#[derive(Iden, Clone)] -enum Antenna { - Table, - Id, - Users, -} -#[derive(Iden, Clone)] -enum App { - Table, - Id, - Permission, -} -#[derive(Iden, Clone)] -enum Emoji { - Table, - Id, - Aliases, -} -#[derive(Iden, Clone)] -enum GalleryPost { - Table, - Id, - #[iden = "fileIds"] - FileIds, - Tags, -} -#[derive(Iden, Clone)] -enum Hashtag { - Table, - Id, - #[iden = "mentionedUserIds"] - MentionedUserIds, - #[iden = "mentionedLocalUserIds"] - MentionedLocalUserIds, - #[iden = "mentionedRemoteUserIds"] - MentionedRemoteUserIds, - #[iden = "attachedUserIds"] - AttachedUserIds, - #[iden = "attachedLocalUserIds"] - AttachedLocalUserIds, - #[iden = "attachedRemoteUserIds"] - AttachedRemoteUserIds, -} -#[derive(Iden, Clone)] -enum MessagingMessage { - Table, - Id, - Reads, -} -#[derive(Iden, Clone)] -enum Meta { - Table, - Id, - Langs, - #[iden = "hiddenTags"] - HiddenTags, - #[iden = "blockedHosts"] - BlockedHosts, - #[iden = "pinnedUsers"] - PinnedUsers, - #[iden = "pinnedPages"] - PinnedPages, - #[iden = "recommendedInstances"] - RecommendedInstances, - #[iden = "silencedHosts"] - SilencedHosts, -} -#[derive(Iden, Clone)] -enum Note { - Table, - Id, - #[iden = "fileIds"] - FileIds, - #[iden = "attachedFileTypes"] - AttachedFileTypes, - #[iden = "visibleUserIds"] - VisibleUserIds, - Mentions, - Emojis, - Tags, -} -#[derive(Iden, Clone)] -enum NoteEdit { - Table, - Id, - #[iden = "fileIds"] - FileIds, -} -#[derive(Iden, Clone)] -enum Page { - Table, - Id, - #[iden = "visibleUserIds"] - VisibleUserIds, -} -#[derive(Iden, Clone)] -enum Poll { - Table, - #[iden = "noteId"] - NoteId, - Choices, - Votes, // I32Vec -} -#[derive(Iden, Clone)] -enum RegistryItem { - Table, - Id, - Scope, -} -#[derive(Iden, Clone)] -enum User { - Table, - Id, - Tags, - Emojis, -} -#[derive(Iden, Clone)] -enum UserProfile { - Table, - #[iden = "userId"] - UserId, - #[iden = "mutingNotificationTypes"] - MutingNotificationTypes, -} -#[derive(Iden, Clone)] -enum Webhook { - Table, - Id, - On, -} diff --git a/packages/backend/native-utils/npm/android-arm-eabi/README.md b/packages/backend/native-utils/npm/android-arm-eabi/README.md deleted file mode 100644 index 10199cb8e..000000000 --- a/packages/backend/native-utils/npm/android-arm-eabi/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-android-arm-eabi` - -This is the **armv7-linux-androideabi** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/android-arm-eabi/package.json b/packages/backend/native-utils/npm/android-arm-eabi/package.json deleted file mode 100644 index b4404c410..000000000 --- a/packages/backend/native-utils/npm/android-arm-eabi/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-android-arm-eabi", - "version": "0.0.0", - "os": [ - "android" - ], - "cpu": [ - "arm" - ], - "main": "native-utils.android-arm-eabi.node", - "files": [ - "native-utils.android-arm-eabi.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/android-arm64/README.md b/packages/backend/native-utils/npm/android-arm64/README.md deleted file mode 100644 index c32c2fe71..000000000 --- a/packages/backend/native-utils/npm/android-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-android-arm64` - -This is the **aarch64-linux-android** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/android-arm64/package.json b/packages/backend/native-utils/npm/android-arm64/package.json deleted file mode 100644 index 9050ef37b..000000000 --- a/packages/backend/native-utils/npm/android-arm64/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-android-arm64", - "version": "0.0.0", - "os": [ - "android" - ], - "cpu": [ - "arm64" - ], - "main": "native-utils.android-arm64.node", - "files": [ - "native-utils.android-arm64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/darwin-arm64/README.md b/packages/backend/native-utils/npm/darwin-arm64/README.md deleted file mode 100644 index 870390222..000000000 --- a/packages/backend/native-utils/npm/darwin-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-darwin-arm64` - -This is the **aarch64-apple-darwin** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/darwin-arm64/package.json b/packages/backend/native-utils/npm/darwin-arm64/package.json deleted file mode 100644 index a7fcef289..000000000 --- a/packages/backend/native-utils/npm/darwin-arm64/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-darwin-arm64", - "version": "0.0.0", - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ], - "main": "native-utils.darwin-arm64.node", - "files": [ - "native-utils.darwin-arm64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/darwin-universal/README.md b/packages/backend/native-utils/npm/darwin-universal/README.md deleted file mode 100644 index 098bb3590..000000000 --- a/packages/backend/native-utils/npm/darwin-universal/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-darwin-universal` - -This is the **universal-apple-darwin** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/darwin-universal/package.json b/packages/backend/native-utils/npm/darwin-universal/package.json deleted file mode 100644 index a46061d42..000000000 --- a/packages/backend/native-utils/npm/darwin-universal/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "native-utils-darwin-universal", - "version": "0.0.0", - "os": [ - "darwin" - ], - "main": "native-utils.darwin-universal.node", - "files": [ - "native-utils.darwin-universal.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/darwin-x64/README.md b/packages/backend/native-utils/npm/darwin-x64/README.md deleted file mode 100644 index 0acf36335..000000000 --- a/packages/backend/native-utils/npm/darwin-x64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-darwin-x64` - -This is the **x86_64-apple-darwin** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/darwin-x64/package.json b/packages/backend/native-utils/npm/darwin-x64/package.json deleted file mode 100644 index 6bbcf1d23..000000000 --- a/packages/backend/native-utils/npm/darwin-x64/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-darwin-x64", - "version": "0.0.0", - "os": [ - "darwin" - ], - "cpu": [ - "x64" - ], - "main": "native-utils.darwin-x64.node", - "files": [ - "native-utils.darwin-x64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/freebsd-x64/README.md b/packages/backend/native-utils/npm/freebsd-x64/README.md deleted file mode 100644 index 2b74996de..000000000 --- a/packages/backend/native-utils/npm/freebsd-x64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-freebsd-x64` - -This is the **x86_64-unknown-freebsd** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/freebsd-x64/package.json b/packages/backend/native-utils/npm/freebsd-x64/package.json deleted file mode 100644 index 654b8abf3..000000000 --- a/packages/backend/native-utils/npm/freebsd-x64/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-freebsd-x64", - "version": "0.0.0", - "os": [ - "freebsd" - ], - "cpu": [ - "x64" - ], - "main": "native-utils.freebsd-x64.node", - "files": [ - "native-utils.freebsd-x64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/linux-arm-gnueabihf/README.md b/packages/backend/native-utils/npm/linux-arm-gnueabihf/README.md deleted file mode 100644 index 2203036de..000000000 --- a/packages/backend/native-utils/npm/linux-arm-gnueabihf/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-linux-arm-gnueabihf` - -This is the **armv7-unknown-linux-gnueabihf** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/linux-arm-gnueabihf/package.json b/packages/backend/native-utils/npm/linux-arm-gnueabihf/package.json deleted file mode 100644 index 1e206c078..000000000 --- a/packages/backend/native-utils/npm/linux-arm-gnueabihf/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-linux-arm-gnueabihf", - "version": "0.0.0", - "os": [ - "linux" - ], - "cpu": [ - "arm" - ], - "main": "native-utils.linux-arm-gnueabihf.node", - "files": [ - "native-utils.linux-arm-gnueabihf.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/linux-arm64-gnu/README.md b/packages/backend/native-utils/npm/linux-arm64-gnu/README.md deleted file mode 100644 index ad3a9333f..000000000 --- a/packages/backend/native-utils/npm/linux-arm64-gnu/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-linux-arm64-gnu` - -This is the **aarch64-unknown-linux-gnu** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/linux-arm64-gnu/package.json b/packages/backend/native-utils/npm/linux-arm64-gnu/package.json deleted file mode 100644 index aa0b2a805..000000000 --- a/packages/backend/native-utils/npm/linux-arm64-gnu/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "native-utils-linux-arm64-gnu", - "version": "0.0.0", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "native-utils.linux-arm64-gnu.node", - "files": [ - "native-utils.linux-arm64-gnu.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "libc": [ - "glibc" - ] -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/linux-arm64-musl/README.md b/packages/backend/native-utils/npm/linux-arm64-musl/README.md deleted file mode 100644 index df282532f..000000000 --- a/packages/backend/native-utils/npm/linux-arm64-musl/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-linux-arm64-musl` - -This is the **aarch64-unknown-linux-musl** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/linux-arm64-musl/package.json b/packages/backend/native-utils/npm/linux-arm64-musl/package.json deleted file mode 100644 index 99e9387ee..000000000 --- a/packages/backend/native-utils/npm/linux-arm64-musl/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "native-utils-linux-arm64-musl", - "version": "0.0.0", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "native-utils.linux-arm64-musl.node", - "files": [ - "native-utils.linux-arm64-musl.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "libc": [ - "musl" - ] -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/linux-x64-gnu/README.md b/packages/backend/native-utils/npm/linux-x64-gnu/README.md deleted file mode 100644 index 52eea85aa..000000000 --- a/packages/backend/native-utils/npm/linux-x64-gnu/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-linux-x64-gnu` - -This is the **x86_64-unknown-linux-gnu** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/linux-x64-gnu/package.json b/packages/backend/native-utils/npm/linux-x64-gnu/package.json deleted file mode 100644 index f99a5f664..000000000 --- a/packages/backend/native-utils/npm/linux-x64-gnu/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "native-utils-linux-x64-gnu", - "version": "0.0.0", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "native-utils.linux-x64-gnu.node", - "files": [ - "native-utils.linux-x64-gnu.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "libc": [ - "glibc" - ] -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/linux-x64-musl/README.md b/packages/backend/native-utils/npm/linux-x64-musl/README.md deleted file mode 100644 index 6664b2378..000000000 --- a/packages/backend/native-utils/npm/linux-x64-musl/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-linux-x64-musl` - -This is the **x86_64-unknown-linux-musl** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/linux-x64-musl/package.json b/packages/backend/native-utils/npm/linux-x64-musl/package.json deleted file mode 100644 index 56b520fff..000000000 --- a/packages/backend/native-utils/npm/linux-x64-musl/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "native-utils-linux-x64-musl", - "version": "0.0.0", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "native-utils.linux-x64-musl.node", - "files": [ - "native-utils.linux-x64-musl.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "libc": [ - "musl" - ] -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/win32-arm64-msvc/README.md b/packages/backend/native-utils/npm/win32-arm64-msvc/README.md deleted file mode 100644 index 7aec7e0a5..000000000 --- a/packages/backend/native-utils/npm/win32-arm64-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-win32-arm64-msvc` - -This is the **aarch64-pc-windows-msvc** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/win32-arm64-msvc/package.json b/packages/backend/native-utils/npm/win32-arm64-msvc/package.json deleted file mode 100644 index 865a77105..000000000 --- a/packages/backend/native-utils/npm/win32-arm64-msvc/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-win32-arm64-msvc", - "version": "0.0.0", - "os": [ - "win32" - ], - "cpu": [ - "arm64" - ], - "main": "native-utils.win32-arm64-msvc.node", - "files": [ - "native-utils.win32-arm64-msvc.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/win32-ia32-msvc/README.md b/packages/backend/native-utils/npm/win32-ia32-msvc/README.md deleted file mode 100644 index 690de1975..000000000 --- a/packages/backend/native-utils/npm/win32-ia32-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-win32-ia32-msvc` - -This is the **i686-pc-windows-msvc** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/win32-ia32-msvc/package.json b/packages/backend/native-utils/npm/win32-ia32-msvc/package.json deleted file mode 100644 index 994eff12f..000000000 --- a/packages/backend/native-utils/npm/win32-ia32-msvc/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-win32-ia32-msvc", - "version": "0.0.0", - "os": [ - "win32" - ], - "cpu": [ - "ia32" - ], - "main": "native-utils.win32-ia32-msvc.node", - "files": [ - "native-utils.win32-ia32-msvc.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/npm/win32-x64-msvc/README.md b/packages/backend/native-utils/npm/win32-x64-msvc/README.md deleted file mode 100644 index e34a5ff17..000000000 --- a/packages/backend/native-utils/npm/win32-x64-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `native-utils-win32-x64-msvc` - -This is the **x86_64-pc-windows-msvc** binary for `native-utils` diff --git a/packages/backend/native-utils/npm/win32-x64-msvc/package.json b/packages/backend/native-utils/npm/win32-x64-msvc/package.json deleted file mode 100644 index 33b259b13..000000000 --- a/packages/backend/native-utils/npm/win32-x64-msvc/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "native-utils-win32-x64-msvc", - "version": "0.0.0", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "main": "native-utils.win32-x64-msvc.node", - "files": [ - "native-utils.win32-x64-msvc.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - } -} \ No newline at end of file diff --git a/packages/backend/native-utils/package.json b/packages/backend/native-utils/package.json index 1bf58c155..31410e6b8 100644 --- a/packages/backend/native-utils/package.json +++ b/packages/backend/native-utils/package.json @@ -1,51 +1,14 @@ { "name": "native-utils", "version": "0.0.0", - "main": "built/index.js", - "types": "built/index.d.ts", - "napi": { - "name": "native-utils", - "triples": { - "additional": [ - "aarch64-apple-darwin", - "aarch64-linux-android", - "aarch64-unknown-linux-gnu", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "x86_64-unknown-freebsd", - "i686-pc-windows-msvc", - "armv7-linux-androideabi", - "universal-apple-darwin" - ] - } - }, "license": "MIT", - "devDependencies": { - "@napi-rs/cli": "2.16.1", - "ava": "5.1.1" - }, - "ava": { - "timeout": "3m" - }, "engines": { "node": ">= 10" }, "scripts": { - "artifacts": "napi artifacts", - "build": "yarn build:napi && yarn build:migration", - "build:napi": "napi build --features napi --platform --release ./built/", - "build:migration": "cargo build --locked --profile release-no-lto -p migration && cp ./target/release-no-lto/migration ./built/migration", - "build:debug": "napi build --features napi --platform --profile debug-napi ./built/ && cargo build --locked --profile debug-migration -p migration && cp ./target/debug-migration/migration ./built/migration", - "prepublishOnly": "napi prepublish -t npm", - "test": "yarn cargo:test && yarn build:napi && ava", - "universal": "napi universal", - "version": "napi version", + "build": "yarn build:migration", + "build:migration": "cargo build --locked --manifest-path migration/Cargo.toml && mkdir -p ./built && cp ./migration/target/debug/migration ./built/migration", "format": "cargo fmt --all", - "lint": "cargo clippy --fix", - "cargo:test": "yarn cargo:unit && yarn cargo:integration", - "cargo:unit": "cargo test unit_test && cargo test -F napi unit_test", - "cargo:integration": "cargo test -F noarray int_test -- --test-threads=1" + "lint": "cargo clippy --fix" } } diff --git a/packages/backend/native-utils/src/database/error.rs b/packages/backend/native-utils/src/database/error.rs deleted file mode 100644 index 68e959e0a..000000000 --- a/packages/backend/native-utils/src/database/error.rs +++ /dev/null @@ -1,13 +0,0 @@ -use sea_orm::error::DbErr; - -use crate::impl_into_napi_error; - -#[derive(thiserror::Error, Debug, PartialEq, Eq)] -pub enum Error { - #[error("The database connections have not been initialized yet")] - Uninitialized, - #[error("ORM error: {0}")] - OrmError(#[from] DbErr), -} - -impl_into_napi_error!(Error); diff --git a/packages/backend/native-utils/src/database/mod.rs b/packages/backend/native-utils/src/database/mod.rs deleted file mode 100644 index 80189a813..000000000 --- a/packages/backend/native-utils/src/database/mod.rs +++ /dev/null @@ -1,38 +0,0 @@ -pub mod error; - -use cfg_if::cfg_if; -use error::Error; -use sea_orm::{Database, DbConn}; - -static DB_CONN: once_cell::sync::OnceCell = once_cell::sync::OnceCell::new(); - -pub async fn init_database(conn_uri: impl Into) -> Result<(), Error> { - let conn = Database::connect(conn_uri.into()).await?; - DB_CONN.get_or_init(move || conn); - Ok(()) -} - -pub fn get_database() -> Result<&'static DbConn, Error> { - DB_CONN.get().ok_or(Error::Uninitialized) -} - -cfg_if! { - if #[cfg(feature = "napi")] { - use napi_derive::napi; - - #[napi] - pub async fn native_init_database(conn_uri: String) -> napi::Result<()> { - init_database(conn_uri).await.map_err(Into::into) - } - } -} - -#[cfg(test)] -mod unit_test { - use super::{error::Error, get_database}; - - #[test] - fn error_uninitialized() { - assert_eq!(get_database().unwrap_err(), Error::Uninitialized); - } -} diff --git a/packages/backend/native-utils/src/lib.rs b/packages/backend/native-utils/src/lib.rs deleted file mode 100644 index f18e69a48..000000000 --- a/packages/backend/native-utils/src/lib.rs +++ /dev/null @@ -1,7 +0,0 @@ -pub mod database; -pub mod macros; -pub mod model; -pub mod util; - -#[cfg(feature = "napi")] -pub mod mastodon_api; diff --git a/packages/backend/native-utils/src/macros.rs b/packages/backend/native-utils/src/macros.rs deleted file mode 100644 index 49ab82632..000000000 --- a/packages/backend/native-utils/src/macros.rs +++ /dev/null @@ -1,11 +0,0 @@ -#[macro_export] -macro_rules! impl_into_napi_error { - ($a:ty) => { - #[cfg(feature = "napi")] - impl Into for $a { - fn into(self) -> napi::Error { - napi::Error::from_reason(self.to_string()) - } - } - }; -} diff --git a/packages/backend/native-utils/src/mastodon_api.rs b/packages/backend/native-utils/src/mastodon_api.rs deleted file mode 100644 index a73dfae83..000000000 --- a/packages/backend/native-utils/src/mastodon_api.rs +++ /dev/null @@ -1,70 +0,0 @@ -use napi::{bindgen_prelude::*, Error, Status}; -use napi_derive::napi; - -static CHAR_COLLECTION: &str = "0123456789abcdefghijklmnopqrstuvwxyz"; - -// -- NAPI exports -- - -#[napi] -pub enum IdConvertType { - MastodonId, - IceshrimpId, -} - -#[napi] -pub fn convert_id(in_id: String, id_convert_type: IdConvertType) -> napi::Result { - use IdConvertType::*; - match id_convert_type { - MastodonId => { - let mut out: i128 = 0; - for (i, c) in in_id.to_lowercase().chars().rev().enumerate() { - out += num_from_char(c)? as i128 * 36_i128.pow(i as u32); - } - - Ok(out.to_string()) - } - IceshrimpId => { - let mut input: i128 = match in_id.parse() { - Ok(s) => s, - Err(_) => { - return Err(Error::new( - Status::InvalidArg, - "Unable to parse ID as MastodonId", - )) - } - }; - let mut out = String::new(); - - while input != 0 { - out.insert(0, char_from_num((input % 36) as u8)?); - input /= 36; - } - - Ok(out) - } - } -} - -// -- end -- - -#[inline(always)] -fn num_from_char(character: char) -> napi::Result { - for (i, c) in CHAR_COLLECTION.chars().enumerate() { - if c == character { - return Ok(i as u8); - } - } - - Err(Error::new( - Status::InvalidArg, - "Invalid character in parsed base36 id", - )) -} - -#[inline(always)] -fn char_from_num(number: u8) -> napi::Result { - CHAR_COLLECTION - .chars() - .nth(number as usize) - .ok_or(Error::from_status(Status::Unknown)) -} diff --git a/packages/backend/native-utils/src/model/entity.rs b/packages/backend/native-utils/src/model/entity.rs deleted file mode 100644 index 617133be3..000000000 --- a/packages/backend/native-utils/src/model/entity.rs +++ /dev/null @@ -1,72 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -pub mod prelude; - -pub mod abuse_user_report; -pub mod access_token; -pub mod announcement; -pub mod announcement_read; -pub mod antenna; -pub mod app; -pub mod attestation_challenge; -pub mod auth_session; -pub mod blocking; -pub mod channel; -pub mod channel_following; -pub mod channel_note_pining; -pub mod clip; -pub mod clip_note; -pub mod drive_file; -pub mod drive_folder; -pub mod emoji; -pub mod follow_request; -pub mod following; -pub mod gallery_like; -pub mod gallery_post; -pub mod hashtag; -pub mod instance; -pub mod messaging_message; -pub mod meta; -pub mod migrations; -pub mod moderation_log; -pub mod muted_note; -pub mod muting; -pub mod newtype; -pub mod note; -pub mod note_edit; -pub mod note_favorite; -pub mod note_reaction; -pub mod note_thread_muting; -pub mod note_unread; -pub mod note_watching; -pub mod notification; -pub mod page; -pub mod page_like; -pub mod password_reset_request; -pub mod poll; -pub mod poll_vote; -pub mod promo_note; -pub mod promo_read; -pub mod registration_ticket; -pub mod registry_item; -pub mod relay; -pub mod renote_muting; -pub mod sea_orm_active_enums; -pub mod signin; -pub mod sw_subscription; -pub mod used_username; -pub mod user; -pub mod user_group; -pub mod user_group_invitation; -pub mod user_group_invite; -pub mod user_group_joining; -pub mod user_ip; -pub mod user_keypair; -pub mod user_list; -pub mod user_list_joining; -pub mod user_note_pining; -pub mod user_pending; -pub mod user_profile; -pub mod user_publickey; -pub mod user_security_key; -pub mod webhook; diff --git a/packages/backend/native-utils/src/model/entity/abuse_user_report.rs b/packages/backend/native-utils/src/model/entity/abuse_user_report.rs deleted file mode 100644 index 24230b394..000000000 --- a/packages/backend/native-utils/src/model/entity/abuse_user_report.rs +++ /dev/null @@ -1,55 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "abuse_user_report")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "targetUserId")] - pub target_user_id: String, - #[sea_orm(column_name = "reporterId")] - pub reporter_id: String, - #[sea_orm(column_name = "assigneeId")] - pub assignee_id: Option, - pub resolved: bool, - pub comment: String, - #[sea_orm(column_name = "targetUserHost")] - pub target_user_host: Option, - #[sea_orm(column_name = "reporterHost")] - pub reporter_host: Option, - pub forwarded: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::ReporterId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User3, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::AssigneeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::TargetUserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/access_token.rs b/packages/backend/native-utils/src/model/entity/access_token.rs deleted file mode 100644 index dd9289224..000000000 --- a/packages/backend/native-utils/src/model/entity/access_token.rs +++ /dev/null @@ -1,71 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "access_token")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub token: String, - pub hash: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "appId")] - pub app_id: Option, - #[sea_orm(column_name = "lastUsedAt")] - pub last_used_at: Option, - pub session: Option, - pub name: Option, - pub description: Option, - #[sea_orm(column_name = "iconUrl")] - pub icon_url: Option, - pub permission: StringVec, - pub fetched: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::app::Entity", - from = "Column::AppId", - to = "super::app::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - App, - #[sea_orm(has_many = "super::notification::Entity")] - Notification, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::App.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Notification.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/announcement.rs b/packages/backend/native-utils/src/model/entity/announcement.rs deleted file mode 100644 index 5cdb690d2..000000000 --- a/packages/backend/native-utils/src/model/entity/announcement.rs +++ /dev/null @@ -1,36 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "announcement")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub text: String, - pub title: String, - #[sea_orm(column_name = "imageUrl")] - pub image_url: Option, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, - #[sea_orm(column_name = "showPopup")] - pub show_popup: bool, - #[sea_orm(column_name = "isGoodNews")] - pub is_good_news: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::announcement_read::Entity")] - AnnouncementRead, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AnnouncementRead.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/announcement_read.rs b/packages/backend/native-utils/src/model/entity/announcement_read.rs deleted file mode 100644 index 53ff8d6ce..000000000 --- a/packages/backend/native-utils/src/model/entity/announcement_read.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "announcement_read")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "announcementId")] - pub announcement_id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::announcement::Entity", - from = "Column::AnnouncementId", - to = "super::announcement::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Announcement, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Announcement.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/antenna.rs b/packages/backend/native-utils/src/model/entity/antenna.rs deleted file mode 100644 index 9d5a64f82..000000000 --- a/packages/backend/native-utils/src/model/entity/antenna.rs +++ /dev/null @@ -1,84 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::{newtype, sea_orm_active_enums::AntennaSrcEnum}; -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "antenna")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub name: String, - pub src: AntennaSrcEnum, - #[sea_orm(column_name = "userListId")] - pub user_list_id: Option, - #[sea_orm(column_type = "JsonBinary")] - pub keywords: newtype::JsonKeyword, - #[sea_orm(column_name = "withFile")] - pub with_file: bool, - pub expression: Option, - pub notify: bool, - #[sea_orm(column_name = "caseSensitive")] - pub case_sensitive: bool, - #[sea_orm(column_name = "withReplies")] - pub with_replies: bool, - #[sea_orm(column_name = "userGroupJoiningId")] - pub user_group_joining_id: Option, - pub users: newtype::StringVec, - #[sea_orm(column_name = "excludeKeywords", column_type = "JsonBinary")] - pub exclude_keywords: newtype::JsonKeyword, - #[sea_orm(column_type = "JsonBinary")] - pub instances: newtype::JsonStringVec, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm( - belongs_to = "super::user_group_joining::Entity", - from = "Column::UserGroupJoiningId", - to = "super::user_group_joining::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroupJoining, - #[sea_orm( - belongs_to = "super::user_list::Entity", - from = "Column::UserListId", - to = "super::user_list::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserList, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupJoining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserList.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/antenna_note.rs b/packages/backend/native-utils/src/model/entity/antenna_note.rs deleted file mode 100644 index c86fb349d..000000000 --- a/packages/backend/native-utils/src/model/entity/antenna_note.rs +++ /dev/null @@ -1,49 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "antenna_note")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_name = "antennaId")] - pub antenna_id: String, - pub read: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::antenna::Entity", - from = "Column::AntennaId", - to = "super::antenna::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Antenna, - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Antenna.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/app.rs b/packages/backend/native-utils/src/model/entity/app.rs deleted file mode 100644 index 6400d0b24..000000000 --- a/packages/backend/native-utils/src/model/entity/app.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "app")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: Option, - pub secret: String, - pub name: String, - pub description: String, - pub permission: StringVec, - #[sea_orm(column_name = "callbackUrl")] - pub callback_url: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::access_token::Entity")] - AccessToken, - #[sea_orm(has_many = "super::auth_session::Entity")] - AuthSession, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AccessToken.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AuthSession.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/attestation_challenge.rs b/packages/backend/native-utils/src/model/entity/attestation_challenge.rs deleted file mode 100644 index 5217b2796..000000000 --- a/packages/backend/native-utils/src/model/entity/attestation_challenge.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "attestation_challenge")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "userId", primary_key, auto_increment = false)] - pub user_id: String, - pub challenge: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "registrationChallenge")] - pub registration_challenge: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/auth_session.rs b/packages/backend/native-utils/src/model/entity/auth_session.rs deleted file mode 100644 index 8ced191c3..000000000 --- a/packages/backend/native-utils/src/model/entity/auth_session.rs +++ /dev/null @@ -1,51 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "auth_session")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub token: String, - #[sea_orm(column_name = "userId")] - pub user_id: Option, - #[sea_orm(column_name = "appId")] - pub app_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::app::Entity", - from = "Column::AppId", - to = "super::app::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - App, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::App.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/blocking.rs b/packages/backend/native-utils/src/model/entity/blocking.rs deleted file mode 100644 index 4f326f6fa..000000000 --- a/packages/backend/native-utils/src/model/entity/blocking.rs +++ /dev/null @@ -1,38 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "blocking")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "blockeeId")] - pub blockee_id: String, - #[sea_orm(column_name = "blockerId")] - pub blocker_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::BlockerId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::BlockeeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/channel.rs b/packages/backend/native-utils/src/model/entity/channel.rs deleted file mode 100644 index abc79b4f5..000000000 --- a/packages/backend/native-utils/src/model/entity/channel.rs +++ /dev/null @@ -1,82 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "channel")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "lastNotedAt")] - pub last_noted_at: Option, - #[sea_orm(column_name = "userId")] - pub user_id: Option, - pub name: String, - pub description: Option, - #[sea_orm(column_name = "bannerId")] - pub banner_id: Option, - #[sea_orm(column_name = "notesCount")] - pub notes_count: i32, - #[sea_orm(column_name = "usersCount")] - pub users_count: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::channel_following::Entity")] - ChannelFollowing, - #[sea_orm(has_many = "super::channel_note_pining::Entity")] - ChannelNotePining, - #[sea_orm( - belongs_to = "super::drive_file::Entity", - from = "Column::BannerId", - to = "super::drive_file::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - DriveFile, - #[sea_orm(has_many = "super::note::Entity")] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ChannelFollowing.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ChannelNotePining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFile.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/channel_following.rs b/packages/backend/native-utils/src/model/entity/channel_following.rs deleted file mode 100644 index 93739459a..000000000 --- a/packages/backend/native-utils/src/model/entity/channel_following.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "channel_following")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "followeeId")] - pub followee_id: String, - #[sea_orm(column_name = "followerId")] - pub follower_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::channel::Entity", - from = "Column::FolloweeId", - to = "super::channel::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Channel, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::FollowerId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Channel.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/channel_note_pining.rs b/packages/backend/native-utils/src/model/entity/channel_note_pining.rs deleted file mode 100644 index 50ec1ecef..000000000 --- a/packages/backend/native-utils/src/model/entity/channel_note_pining.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "channel_note_pining")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "channelId")] - pub channel_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::channel::Entity", - from = "Column::ChannelId", - to = "super::channel::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Channel, - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Channel.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/clip.rs b/packages/backend/native-utils/src/model/entity/clip.rs deleted file mode 100644 index a51ef720e..000000000 --- a/packages/backend/native-utils/src/model/entity/clip.rs +++ /dev/null @@ -1,46 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "clip")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub name: String, - #[sea_orm(column_name = "isPublic")] - pub is_public: bool, - pub description: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::clip_note::Entity")] - ClipNote, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ClipNote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/clip_note.rs b/packages/backend/native-utils/src/model/entity/clip_note.rs deleted file mode 100644 index a8bfd4564..000000000 --- a/packages/backend/native-utils/src/model/entity/clip_note.rs +++ /dev/null @@ -1,48 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "clip_note")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_name = "clipId")] - pub clip_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::clip::Entity", - from = "Column::ClipId", - to = "super::clip::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Clip, - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Clip.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/drive_file.rs b/packages/backend/native-utils/src/model/entity/drive_file.rs deleted file mode 100644 index 7c42b9881..000000000 --- a/packages/backend/native-utils/src/model/entity/drive_file.rs +++ /dev/null @@ -1,113 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "drive_file")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: Option, - #[sea_orm(column_name = "userHost")] - pub user_host: Option, - pub md5: String, - pub name: String, - pub r#type: String, - pub size: i32, - pub comment: Option, - #[sea_orm(column_type = "JsonBinary")] - pub properties: Json, - #[sea_orm(column_name = "storedInternal")] - pub stored_internal: bool, - pub url: String, - #[sea_orm(column_name = "thumbnailUrl")] - pub thumbnail_url: Option, - #[sea_orm(column_name = "webpublicUrl")] - pub webpublic_url: Option, - #[sea_orm(column_name = "accessKey")] - pub access_key: Option, - #[sea_orm(column_name = "thumbnailAccessKey")] - pub thumbnail_access_key: Option, - #[sea_orm(column_name = "webpublicAccessKey")] - pub webpublic_access_key: Option, - pub uri: Option, - pub src: Option, - #[sea_orm(column_name = "folderId")] - pub folder_id: Option, - #[sea_orm(column_name = "isSensitive")] - pub is_sensitive: bool, - #[sea_orm(column_name = "isLink")] - pub is_link: bool, - pub blurhash: Option, - #[sea_orm(column_name = "webpublicType")] - pub webpublic_type: Option, - #[sea_orm(column_name = "requestHeaders", column_type = "JsonBinary", nullable)] - pub request_headers: Option, - #[sea_orm(column_name = "requestIp")] - pub request_ip: Option, - #[sea_orm(column_name = "maybeSensitive")] - pub maybe_sensitive: bool, - #[sea_orm(column_name = "maybePorn")] - pub maybe_porn: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::channel::Entity")] - Channel, - #[sea_orm( - belongs_to = "super::drive_folder::Entity", - from = "Column::FolderId", - to = "super::drive_folder::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - DriveFolder, - #[sea_orm(has_many = "super::messaging_message::Entity")] - MessagingMessage, - #[sea_orm(has_many = "super::page::Entity")] - Page, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Channel.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFolder.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::MessagingMessage.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Page.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/drive_folder.rs b/packages/backend/native-utils/src/model/entity/drive_folder.rs deleted file mode 100644 index 98a9f8901..000000000 --- a/packages/backend/native-utils/src/model/entity/drive_folder.rs +++ /dev/null @@ -1,53 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "drive_folder")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub name: String, - #[sea_orm(column_name = "userId")] - pub user_id: Option, - #[sea_orm(column_name = "parentId")] - pub parent_id: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::drive_file::Entity")] - DriveFile, - #[sea_orm( - belongs_to = "Entity", - from = "Column::ParentId", - to = "Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - SelfRef, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFile.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/emoji.rs b/packages/backend/native-utils/src/model/entity/emoji.rs deleted file mode 100644 index 00fc6184a..000000000 --- a/packages/backend/native-utils/src/model/entity/emoji.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "emoji")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, - pub name: String, - pub host: Option, - #[sea_orm(column_name = "originalUrl")] - pub original_url: String, - pub uri: Option, - pub r#type: Option, - pub aliases: StringVec, - pub category: Option, - #[sea_orm(column_name = "publicUrl")] - pub public_url: String, - pub license: Option, - pub width: Option, - pub height: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/follow_request.rs b/packages/backend/native-utils/src/model/entity/follow_request.rs deleted file mode 100644 index 6f8b00b79..000000000 --- a/packages/backend/native-utils/src/model/entity/follow_request.rs +++ /dev/null @@ -1,60 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "follow_request")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "followeeId")] - pub followee_id: String, - #[sea_orm(column_name = "followerId")] - pub follower_id: String, - #[sea_orm(column_name = "requestId")] - pub request_id: Option, - #[sea_orm(column_name = "followerHost")] - pub follower_host: Option, - #[sea_orm(column_name = "followerInbox")] - pub follower_inbox: Option, - #[sea_orm(column_name = "followerSharedInbox")] - pub follower_shared_inbox: Option, - #[sea_orm(column_name = "followeeHost")] - pub followee_host: Option, - #[sea_orm(column_name = "followeeInbox")] - pub followee_inbox: Option, - #[sea_orm(column_name = "followeeSharedInbox")] - pub followee_shared_inbox: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::notification::Entity")] - Notification, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::FolloweeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::FollowerId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Notification.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/following.rs b/packages/backend/native-utils/src/model/entity/following.rs deleted file mode 100644 index 641e41530..000000000 --- a/packages/backend/native-utils/src/model/entity/following.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "following")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "followeeId")] - pub followee_id: String, - #[sea_orm(column_name = "followerId")] - pub follower_id: String, - #[sea_orm(column_name = "followerHost")] - pub follower_host: Option, - #[sea_orm(column_name = "followerInbox")] - pub follower_inbox: Option, - #[sea_orm(column_name = "followerSharedInbox")] - pub follower_shared_inbox: Option, - #[sea_orm(column_name = "followeeHost")] - pub followee_host: Option, - #[sea_orm(column_name = "followeeInbox")] - pub followee_inbox: Option, - #[sea_orm(column_name = "followeeSharedInbox")] - pub followee_shared_inbox: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::FolloweeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::FollowerId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/gallery_like.rs b/packages/backend/native-utils/src/model/entity/gallery_like.rs deleted file mode 100644 index e90dfedb3..000000000 --- a/packages/backend/native-utils/src/model/entity/gallery_like.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "gallery_like")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "postId")] - pub post_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::gallery_post::Entity", - from = "Column::PostId", - to = "super::gallery_post::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - GalleryPost, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GalleryPost.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/gallery_post.rs b/packages/backend/native-utils/src/model/entity/gallery_post.rs deleted file mode 100644 index 7e53e6bf3..000000000 --- a/packages/backend/native-utils/src/model/entity/gallery_post.rs +++ /dev/null @@ -1,55 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "gallery_post")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, - pub title: String, - pub description: Option, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "fileIds")] - pub file_ids: StringVec, - #[sea_orm(column_name = "isSensitive")] - pub is_sensitive: bool, - #[sea_orm(column_name = "likedCount")] - pub liked_count: i32, - pub tags: StringVec, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::gallery_like::Entity")] - GalleryLike, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GalleryLike.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/hashtag.rs b/packages/backend/native-utils/src/model/entity/hashtag.rs deleted file mode 100644 index 7a8722a5f..000000000 --- a/packages/backend/native-utils/src/model/entity/hashtag.rs +++ /dev/null @@ -1,42 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "hashtag")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - pub name: String, - #[sea_orm(column_name = "mentionedUserIds")] - pub mentioned_user_ids: StringVec, - #[sea_orm(column_name = "mentionedUsersCount")] - pub mentioned_users_count: i32, - #[sea_orm(column_name = "mentionedLocalUserIds")] - pub mentioned_local_user_ids: StringVec, - #[sea_orm(column_name = "mentionedLocalUsersCount")] - pub mentioned_local_users_count: i32, - #[sea_orm(column_name = "mentionedRemoteUserIds")] - pub mentioned_remote_user_ids: StringVec, - #[sea_orm(column_name = "mentionedRemoteUsersCount")] - pub mentioned_remote_users_count: i32, - #[sea_orm(column_name = "attachedUserIds")] - pub attached_user_ids: StringVec, - #[sea_orm(column_name = "attachedUsersCount")] - pub attached_users_count: i32, - #[sea_orm(column_name = "attachedLocalUserIds")] - pub attached_local_user_ids: StringVec, - #[sea_orm(column_name = "attachedLocalUsersCount")] - pub attached_local_users_count: i32, - #[sea_orm(column_name = "attachedRemoteUserIds")] - pub attached_remote_user_ids: StringVec, - #[sea_orm(column_name = "attachedRemoteUsersCount")] - pub attached_remote_users_count: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/instance.rs b/packages/backend/native-utils/src/model/entity/instance.rs deleted file mode 100644 index fc9c5bf8b..000000000 --- a/packages/backend/native-utils/src/model/entity/instance.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "instance")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "caughtAt")] - pub caught_at: DateTimeWithTimeZone, - pub host: String, - #[sea_orm(column_name = "usersCount")] - pub users_count: i32, - #[sea_orm(column_name = "notesCount")] - pub notes_count: i32, - #[sea_orm(column_name = "followingCount")] - pub following_count: i32, - #[sea_orm(column_name = "followersCount")] - pub followers_count: i32, - #[sea_orm(column_name = "latestRequestSentAt")] - pub latest_request_sent_at: Option, - #[sea_orm(column_name = "latestStatus")] - pub latest_status: Option, - #[sea_orm(column_name = "latestRequestReceivedAt")] - pub latest_request_received_at: Option, - #[sea_orm(column_name = "lastCommunicatedAt")] - pub last_communicated_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "isNotResponding")] - pub is_not_responding: bool, - #[sea_orm(column_name = "softwareName")] - pub software_name: Option, - #[sea_orm(column_name = "softwareVersion")] - pub software_version: Option, - #[sea_orm(column_name = "openRegistrations")] - pub open_registrations: Option, - pub name: Option, - pub description: Option, - #[sea_orm(column_name = "maintainerName")] - pub maintainer_name: Option, - #[sea_orm(column_name = "maintainerEmail")] - pub maintainer_email: Option, - #[sea_orm(column_name = "infoUpdatedAt")] - pub info_updated_at: Option, - #[sea_orm(column_name = "isSuspended")] - pub is_suspended: bool, - #[sea_orm(column_name = "iconUrl")] - pub icon_url: Option, - #[sea_orm(column_name = "themeColor")] - pub theme_color: Option, - #[sea_orm(column_name = "faviconUrl")] - pub favicon_url: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/messaging_message.rs b/packages/backend/native-utils/src/model/entity/messaging_message.rs deleted file mode 100644 index 8d7c7b8cc..000000000 --- a/packages/backend/native-utils/src/model/entity/messaging_message.rs +++ /dev/null @@ -1,77 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "messaging_message")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "recipientId")] - pub recipient_id: Option, - pub text: Option, - #[sea_orm(column_name = "isRead")] - pub is_read: bool, - #[sea_orm(column_name = "fileId")] - pub file_id: Option, - #[sea_orm(column_name = "groupId")] - pub group_id: Option, - pub reads: StringVec, - pub uri: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::drive_file::Entity", - from = "Column::FileId", - to = "super::drive_file::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - DriveFile, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::RecipientId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, - #[sea_orm( - belongs_to = "super::user_group::Entity", - from = "Column::GroupId", - to = "super::user_group::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroup, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFile.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroup.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/meta.rs b/packages/backend/native-utils/src/model/entity/meta.rs deleted file mode 100644 index ac43a7842..000000000 --- a/packages/backend/native-utils/src/model/entity/meta.rs +++ /dev/null @@ -1,216 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::MetaSensitivemediadetectionEnum; -use super::sea_orm_active_enums::MetaSensitivemediadetectionsensitivityEnum; -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "meta")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - pub name: Option, - pub description: Option, - #[sea_orm(column_name = "maintainerName")] - pub maintainer_name: Option, - #[sea_orm(column_name = "maintainerEmail")] - pub maintainer_email: Option, - #[sea_orm(column_name = "disableRegistration")] - pub disable_registration: bool, - #[sea_orm(column_name = "disableLocalTimeline")] - pub disable_local_timeline: bool, - #[sea_orm(column_name = "disableGlobalTimeline")] - pub disable_global_timeline: bool, - #[sea_orm(column_name = "useStarForReactionFallback")] - pub use_star_for_reaction_fallback: bool, - pub langs: StringVec, - #[sea_orm(column_name = "hiddenTags")] - pub hidden_tags: StringVec, - #[sea_orm(column_name = "blockedHosts")] - pub blocked_hosts: StringVec, - #[sea_orm(column_name = "mascotImageUrl")] - pub mascot_image_url: Option, - #[sea_orm(column_name = "bannerUrl")] - pub banner_url: Option, - #[sea_orm(column_name = "errorImageUrl")] - pub error_image_url: Option, - #[sea_orm(column_name = "iconUrl")] - pub icon_url: Option, - #[sea_orm(column_name = "cacheRemoteFiles")] - pub cache_remote_files: bool, - #[sea_orm(column_name = "enableRecaptcha")] - pub enable_recaptcha: bool, - #[sea_orm(column_name = "recaptchaSiteKey")] - pub recaptcha_site_key: Option, - #[sea_orm(column_name = "recaptchaSecretKey")] - pub recaptcha_secret_key: Option, - #[sea_orm(column_name = "localDriveCapacityMb")] - pub local_drive_capacity_mb: i32, - #[sea_orm(column_name = "remoteDriveCapacityMb")] - pub remote_drive_capacity_mb: i32, - #[sea_orm(column_name = "summalyProxy")] - pub summaly_proxy: Option, - #[sea_orm(column_name = "enableEmail")] - pub enable_email: bool, - pub email: Option, - #[sea_orm(column_name = "smtpSecure")] - pub smtp_secure: bool, - #[sea_orm(column_name = "smtpHost")] - pub smtp_host: Option, - #[sea_orm(column_name = "smtpPort")] - pub smtp_port: Option, - #[sea_orm(column_name = "smtpUser")] - pub smtp_user: Option, - #[sea_orm(column_name = "smtpPass")] - pub smtp_pass: Option, - #[sea_orm(column_name = "enableServiceWorker")] - pub enable_service_worker: bool, - #[sea_orm(column_name = "swPublicKey")] - pub sw_public_key: Option, - #[sea_orm(column_name = "swPrivateKey")] - pub sw_private_key: Option, - #[sea_orm(column_name = "enableTwitterIntegration")] - pub enable_twitter_integration: bool, - #[sea_orm(column_name = "twitterConsumerKey")] - pub twitter_consumer_key: Option, - #[sea_orm(column_name = "twitterConsumerSecret")] - pub twitter_consumer_secret: Option, - #[sea_orm(column_name = "enableGithubIntegration")] - pub enable_github_integration: bool, - #[sea_orm(column_name = "githubClientId")] - pub github_client_id: Option, - #[sea_orm(column_name = "githubClientSecret")] - pub github_client_secret: Option, - #[sea_orm(column_name = "enableDiscordIntegration")] - pub enable_discord_integration: bool, - #[sea_orm(column_name = "discordClientId")] - pub discord_client_id: Option, - #[sea_orm(column_name = "discordClientSecret")] - pub discord_client_secret: Option, - #[sea_orm(column_name = "pinnedUsers")] - pub pinned_users: StringVec, - #[sea_orm(column_name = "ToSUrl")] - pub to_s_url: Option, - #[sea_orm(column_name = "repositoryUrl")] - pub repository_url: String, - #[sea_orm(column_name = "feedbackUrl")] - pub feedback_url: Option, - #[sea_orm(column_name = "useObjectStorage")] - pub use_object_storage: bool, - #[sea_orm(column_name = "objectStorageBucket")] - pub object_storage_bucket: Option, - #[sea_orm(column_name = "objectStoragePrefix")] - pub object_storage_prefix: Option, - #[sea_orm(column_name = "objectStorageBaseUrl")] - pub object_storage_base_url: Option, - #[sea_orm(column_name = "objectStorageEndpoint")] - pub object_storage_endpoint: Option, - #[sea_orm(column_name = "objectStorageRegion")] - pub object_storage_region: Option, - #[sea_orm(column_name = "objectStorageAccessKey")] - pub object_storage_access_key: Option, - #[sea_orm(column_name = "objectStorageSecretKey")] - pub object_storage_secret_key: Option, - #[sea_orm(column_name = "objectStoragePort")] - pub object_storage_port: Option, - #[sea_orm(column_name = "objectStorageUseSSL")] - pub object_storage_use_ssl: bool, - #[sea_orm(column_name = "proxyAccountId")] - pub proxy_account_id: Option, - #[sea_orm(column_name = "objectStorageUseProxy")] - pub object_storage_use_proxy: bool, - #[sea_orm(column_name = "enableHcaptcha")] - pub enable_hcaptcha: bool, - #[sea_orm(column_name = "hcaptchaSiteKey")] - pub hcaptcha_site_key: Option, - #[sea_orm(column_name = "hcaptchaSecretKey")] - pub hcaptcha_secret_key: Option, - #[sea_orm(column_name = "objectStorageSetPublicRead")] - pub object_storage_set_public_read: bool, - #[sea_orm(column_name = "pinnedPages")] - pub pinned_pages: StringVec, - #[sea_orm(column_name = "backgroundImageUrl")] - pub background_image_url: Option, - #[sea_orm(column_name = "logoImageUrl")] - pub logo_image_url: Option, - #[sea_orm(column_name = "pinnedClipId")] - pub pinned_clip_id: Option, - #[sea_orm(column_name = "objectStorageS3ForcePathStyle")] - pub object_storage_s3_force_path_style: bool, - #[sea_orm(column_name = "allowedHosts")] - pub allowed_hosts: Option, - #[sea_orm(column_name = "secureMode")] - pub secure_mode: Option, - #[sea_orm(column_name = "privateMode")] - pub private_mode: Option, - #[sea_orm(column_name = "deeplAuthKey")] - pub deepl_auth_key: Option, - #[sea_orm(column_name = "deeplIsPro")] - pub deepl_is_pro: bool, - #[sea_orm(column_name = "emailRequiredForSignup")] - pub email_required_for_signup: bool, - #[sea_orm(column_name = "themeColor")] - pub theme_color: Option, - #[sea_orm(column_name = "defaultLightTheme")] - pub default_light_theme: Option, - #[sea_orm(column_name = "defaultDarkTheme")] - pub default_dark_theme: Option, - #[sea_orm(column_name = "sensitiveMediaDetection")] - pub sensitive_media_detection: MetaSensitivemediadetectionEnum, - #[sea_orm(column_name = "sensitiveMediaDetectionSensitivity")] - pub sensitive_media_detection_sensitivity: MetaSensitivemediadetectionsensitivityEnum, - #[sea_orm(column_name = "setSensitiveFlagAutomatically")] - pub set_sensitive_flag_automatically: bool, - #[sea_orm(column_name = "enableIpLogging")] - pub enable_ip_logging: bool, - #[sea_orm(column_name = "enableSensitiveMediaDetectionForVideos")] - pub enable_sensitive_media_detection_for_videos: bool, - #[sea_orm(column_name = "enableActiveEmailValidation")] - pub enable_active_email_validation: bool, - #[sea_orm(column_name = "customMOTD")] - pub custom_motd: StringVec, - #[sea_orm(column_name = "customSplashIcons")] - pub custom_splash_icons: StringVec, - #[sea_orm(column_name = "disableRecommendedTimeline")] - pub disable_recommended_timeline: bool, - #[sea_orm(column_name = "recommendedInstances")] - pub recommended_instances: StringVec, - #[sea_orm(column_name = "enableGuestTimeline")] - pub enable_guest_timeline: bool, - #[sea_orm(column_name = "defaultReaction")] - pub default_reaction: String, - #[sea_orm(column_name = "libreTranslateApiUrl")] - pub libre_translate_api_url: Option, - #[sea_orm(column_name = "libreTranslateApiKey")] - pub libre_translate_api_key: Option, - #[sea_orm(column_name = "silencedHosts")] - pub silenced_hosts: StringVec, - #[sea_orm(column_name = "experimentalFeatures", column_type = "JsonBinary")] - pub experimental_features: Json, - #[sea_orm(column_name = "enableServerMachineStats")] - pub enable_server_machine_stats: bool, - #[sea_orm(column_name = "enableIdenticonGeneration")] - pub enable_identicon_generation: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::ProxyAccountId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/migrations.rs b/packages/backend/native-utils/src/model/entity/migrations.rs deleted file mode 100644 index 54e44f2fd..000000000 --- a/packages/backend/native-utils/src/model/entity/migrations.rs +++ /dev/null @@ -1,17 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "migrations")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub timestamp: i64, - pub name: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/moderation_log.rs b/packages/backend/native-utils/src/model/entity/moderation_log.rs deleted file mode 100644 index eb882b896..000000000 --- a/packages/backend/native-utils/src/model/entity/moderation_log.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "moderation_log")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub r#type: String, - #[sea_orm(column_type = "JsonBinary")] - pub info: Json, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/muted_note.rs b/packages/backend/native-utils/src/model/entity/muted_note.rs deleted file mode 100644 index 238898549..000000000 --- a/packages/backend/native-utils/src/model/entity/muted_note.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::MutedNoteReasonEnum; -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "muted_note")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub reason: MutedNoteReasonEnum, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/muting.rs b/packages/backend/native-utils/src/model/entity/muting.rs deleted file mode 100644 index 7b46a0b24..000000000 --- a/packages/backend/native-utils/src/model/entity/muting.rs +++ /dev/null @@ -1,40 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "muting")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "muteeId")] - pub mutee_id: String, - #[sea_orm(column_name = "muterId")] - pub muter_id: String, - #[sea_orm(column_name = "expiresAt")] - pub expires_at: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::MuterId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::MuteeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/newtype/macros.rs b/packages/backend/native-utils/src/model/entity/newtype/macros.rs deleted file mode 100644 index 4b05c2c99..000000000 --- a/packages/backend/native-utils/src/model/entity/newtype/macros.rs +++ /dev/null @@ -1,51 +0,0 @@ -#[macro_export] -macro_rules! impl_json_newtype { - ($a:tt) => { - impl From<$a> for Value { - fn from(source: $a) -> Self { - Value::Json(serde_json::to_value(source).ok().map(Box::new)) - } - } - - impl TryGetable for $a { - fn try_get_by( - res: &QueryResult, - idx: I, - ) -> Result { - let json_value: serde_json::Value = - res.try_get_by(idx).map_err(TryGetError::DbErr)?; - serde_json::from_value(json_value) - .map_err(|e| TryGetError::DbErr(DbErr::Json(e.to_string()))) - } - } - - impl sea_query::ValueType for $a { - fn try_from(v: Value) -> Result { - match v { - Value::Json(Some(x)) => Ok($a( - serde_json::from_value(*x).map_err(|_| sea_query::ValueTypeErr)? - )), - _ => Err(sea_query::ValueTypeErr), - } - } - - fn type_name() -> String { - stringify!($a).to_owned() - } - - fn array_type() -> sea_query::ArrayType { - sea_query::ArrayType::Json - } - - fn column_type() -> sea_query::ColumnType { - sea_query::ColumnType::JsonBinary - } - } - - impl sea_query::Nullable for $a { - fn null() -> Value { - Value::Json(None) - } - } - }; -} diff --git a/packages/backend/native-utils/src/model/entity/newtype/mod.rs b/packages/backend/native-utils/src/model/entity/newtype/mod.rs deleted file mode 100644 index 3dc2d7553..000000000 --- a/packages/backend/native-utils/src/model/entity/newtype/mod.rs +++ /dev/null @@ -1,30 +0,0 @@ -mod macros; - -use cfg_if::cfg_if; -use derive_more::{From, Into}; -use sea_orm::{sea_query, DbErr, QueryResult, TryGetError, TryGetable, Value}; -use serde::{Deserialize, Serialize}; - -use crate::impl_json_newtype; - -#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, From, Into, Default)] -pub struct JsonKeyword(pub Vec>); -impl_json_newtype!(JsonKeyword); - -#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, From, Into, Default)] -pub struct JsonStringVec(pub Vec); -impl_json_newtype!(JsonStringVec); - -#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, From, Into, Default)] -pub struct JsonI32Vec(pub Vec); -impl_json_newtype!(JsonI32Vec); - -cfg_if! { - if #[cfg(feature = "noarray")] { - pub type StringVec = JsonStringVec; - pub type I32Vec = JsonI32Vec; - } else { - pub type StringVec = Vec; - pub type I32Vec = Vec; - } -} diff --git a/packages/backend/native-utils/src/model/entity/note.rs b/packages/backend/native-utils/src/model/entity/note.rs deleted file mode 100644 index 5c97a20cf..000000000 --- a/packages/backend/native-utils/src/model/entity/note.rs +++ /dev/null @@ -1,228 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::NoteVisibilityEnum; -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "replyId")] - pub reply_id: Option, - #[sea_orm(column_name = "renoteId")] - pub renote_id: Option, - #[sea_orm(column_type = "Text", nullable)] - pub text: Option, - pub name: Option, - pub cw: Option, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "localOnly")] - pub local_only: bool, - #[sea_orm(column_name = "renoteCount")] - pub renote_count: i16, - #[sea_orm(column_name = "repliesCount")] - pub replies_count: i16, - #[sea_orm(column_type = "JsonBinary")] - pub reactions: Json, - pub visibility: NoteVisibilityEnum, - pub uri: Option, - pub score: i32, - #[sea_orm(column_name = "fileIds")] - pub file_ids: StringVec, - #[sea_orm(column_name = "attachedFileTypes")] - pub attached_file_types: StringVec, - #[sea_orm(column_name = "visibleUserIds")] - pub visible_user_ids: StringVec, - pub mentions: StringVec, - #[sea_orm(column_name = "mentionedRemoteUsers", column_type = "Text")] - pub mentioned_remote_users: String, - pub emojis: StringVec, - pub tags: StringVec, - #[sea_orm(column_name = "hasPoll")] - pub has_poll: bool, - #[sea_orm(column_name = "userHost")] - pub user_host: Option, - #[sea_orm(column_name = "replyUserId")] - pub reply_user_id: Option, - #[sea_orm(column_name = "replyUserHost")] - pub reply_user_host: Option, - #[sea_orm(column_name = "renoteUserId")] - pub renote_user_id: Option, - #[sea_orm(column_name = "renoteUserHost")] - pub renote_user_host: Option, - pub url: Option, - #[sea_orm(column_name = "channelId")] - pub channel_id: Option, - #[sea_orm(column_name = "threadId")] - pub thread_id: Option, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::channel::Entity", - from = "Column::ChannelId", - to = "super::channel::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Channel, - #[sea_orm(has_many = "super::channel_note_pining::Entity")] - ChannelNotePining, - #[sea_orm(has_many = "super::clip_note::Entity")] - ClipNote, - #[sea_orm(has_many = "super::muted_note::Entity")] - MutedNote, - #[sea_orm( - belongs_to = "Entity", - from = "Column::ReplyId", - to = "Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - SelfRef2, - #[sea_orm( - belongs_to = "Entity", - from = "Column::RenoteId", - to = "Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - SelfRef1, - #[sea_orm(has_many = "super::note_edit::Entity")] - NoteEdit, - #[sea_orm(has_many = "super::note_favorite::Entity")] - NoteFavorite, - #[sea_orm(has_many = "super::note_reaction::Entity")] - NoteReaction, - #[sea_orm(has_many = "super::note_unread::Entity")] - NoteUnread, - #[sea_orm(has_many = "super::note_watching::Entity")] - NoteWatching, - #[sea_orm(has_many = "super::notification::Entity")] - Notification, - #[sea_orm(has_one = "super::poll::Entity")] - Poll, - #[sea_orm(has_many = "super::poll_vote::Entity")] - PollVote, - #[sea_orm(has_one = "super::promo_note::Entity")] - PromoNote, - #[sea_orm(has_many = "super::promo_read::Entity")] - PromoRead, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm(has_many = "super::user_note_pining::Entity")] - UserNotePining, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Channel.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ChannelNotePining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ClipNote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::MutedNote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteEdit.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteFavorite.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteReaction.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteUnread.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteWatching.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Notification.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Poll.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PollVote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PromoNote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PromoRead.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserNotePining.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_edit.rs b/packages/backend/native-utils/src/model/entity/note_edit.rs deleted file mode 100644 index ea9b9eabd..000000000 --- a/packages/backend/native-utils/src/model/entity/note_edit.rs +++ /dev/null @@ -1,41 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_edit")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_type = "Text", nullable)] - pub text: Option, - pub cw: Option, - #[sea_orm(column_name = "fileIds")] - pub file_ids: StringVec, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_favorite.rs b/packages/backend/native-utils/src/model/entity/note_favorite.rs deleted file mode 100644 index 470ad55d2..000000000 --- a/packages/backend/native-utils/src/model/entity/note_favorite.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_favorite")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_reaction.rs b/packages/backend/native-utils/src/model/entity/note_reaction.rs deleted file mode 100644 index a4e9f490d..000000000 --- a/packages/backend/native-utils/src/model/entity/note_reaction.rs +++ /dev/null @@ -1,51 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_reaction")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - pub reaction: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_thread_muting.rs b/packages/backend/native-utils/src/model/entity/note_thread_muting.rs deleted file mode 100644 index 51688a088..000000000 --- a/packages/backend/native-utils/src/model/entity/note_thread_muting.rs +++ /dev/null @@ -1,36 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_thread_muting")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "threadId")] - pub thread_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_unread.rs b/packages/backend/native-utils/src/model/entity/note_unread.rs deleted file mode 100644 index a444eb35d..000000000 --- a/packages/backend/native-utils/src/model/entity/note_unread.rs +++ /dev/null @@ -1,56 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_unread")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_name = "noteUserId")] - pub note_user_id: String, - #[sea_orm(column_name = "isSpecified")] - pub is_specified: bool, - #[sea_orm(column_name = "isMentioned")] - pub is_mentioned: bool, - #[sea_orm(column_name = "noteChannelId")] - pub note_channel_id: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/note_watching.rs b/packages/backend/native-utils/src/model/entity/note_watching.rs deleted file mode 100644 index 962ef081e..000000000 --- a/packages/backend/native-utils/src/model/entity/note_watching.rs +++ /dev/null @@ -1,52 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "note_watching")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - #[sea_orm(column_name = "noteUserId")] - pub note_user_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/notification.rs b/packages/backend/native-utils/src/model/entity/notification.rs deleted file mode 100644 index 896b6c2da..000000000 --- a/packages/backend/native-utils/src/model/entity/notification.rs +++ /dev/null @@ -1,114 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::NotificationTypeEnum; -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "notification")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "notifieeId")] - pub notifiee_id: String, - #[sea_orm(column_name = "notifierId")] - pub notifier_id: Option, - #[sea_orm(column_name = "isRead")] - pub is_read: bool, - #[sea_orm(column_name = "noteId")] - pub note_id: Option, - pub reaction: Option, - pub choice: Option, - #[sea_orm(column_name = "followRequestId")] - pub follow_request_id: Option, - pub r#type: NotificationTypeEnum, - #[sea_orm(column_name = "userGroupInvitationId")] - pub user_group_invitation_id: Option, - #[sea_orm(column_name = "customBody")] - pub custom_body: Option, - #[sea_orm(column_name = "customHeader")] - pub custom_header: Option, - #[sea_orm(column_name = "customIcon")] - pub custom_icon: Option, - #[sea_orm(column_name = "appAccessTokenId")] - pub app_access_token_id: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::access_token::Entity", - from = "Column::AppAccessTokenId", - to = "super::access_token::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - AccessToken, - #[sea_orm( - belongs_to = "super::follow_request::Entity", - from = "Column::FollowRequestId", - to = "super::follow_request::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - FollowRequest, - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::NotifierId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User2, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::NotifieeId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User1, - #[sea_orm( - belongs_to = "super::user_group_invitation::Entity", - from = "Column::UserGroupInvitationId", - to = "super::user_group_invitation::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroupInvitation, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AccessToken.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::FollowRequest.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupInvitation.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/page.rs b/packages/backend/native-utils/src/model/entity/page.rs deleted file mode 100644 index dabb5c9f0..000000000 --- a/packages/backend/native-utils/src/model/entity/page.rs +++ /dev/null @@ -1,91 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::PageVisibilityEnum; -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "page")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, - pub title: String, - pub name: String, - pub summary: Option, - #[sea_orm(column_name = "alignCenter")] - pub align_center: bool, - pub font: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "eyeCatchingImageId")] - pub eye_catching_image_id: Option, - #[sea_orm(column_type = "JsonBinary")] - pub content: Json, - #[sea_orm(column_type = "JsonBinary")] - pub variables: Json, - pub visibility: PageVisibilityEnum, - #[sea_orm(column_name = "visibleUserIds")] - pub visible_user_ids: StringVec, - #[sea_orm(column_name = "likedCount")] - pub liked_count: i32, - #[sea_orm(column_name = "hideTitleWhenPinned")] - pub hide_title_when_pinned: bool, - pub script: String, - #[sea_orm(column_name = "isPublic")] - pub is_public: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::drive_file::Entity", - from = "Column::EyeCatchingImageId", - to = "super::drive_file::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - DriveFile, - #[sea_orm(has_many = "super::page_like::Entity")] - PageLike, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm(has_one = "super::user_profile::Entity")] - UserProfile, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFile.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLike.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserProfile.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/page_like.rs b/packages/backend/native-utils/src/model/entity/page_like.rs deleted file mode 100644 index 108b6b929..000000000 --- a/packages/backend/native-utils/src/model/entity/page_like.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "page_like")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "pageId")] - pub page_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::page::Entity", - from = "Column::PageId", - to = "super::page::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Page, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Page.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/password_reset_request.rs b/packages/backend/native-utils/src/model/entity/password_reset_request.rs deleted file mode 100644 index 45cc3de10..000000000 --- a/packages/backend/native-utils/src/model/entity/password_reset_request.rs +++ /dev/null @@ -1,35 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "password_reset_request")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub token: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/poll.rs b/packages/backend/native-utils/src/model/entity/poll.rs deleted file mode 100644 index 4d64594c7..000000000 --- a/packages/backend/native-utils/src/model/entity/poll.rs +++ /dev/null @@ -1,44 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::PollNotevisibilityEnum; -use sea_orm::entity::prelude::*; - -use super::newtype::{I32Vec, StringVec}; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "poll")] -pub struct Model { - #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] - pub note_id: String, - #[sea_orm(column_name = "expiresAt")] - pub expires_at: Option, - pub multiple: bool, - pub choices: StringVec, - pub votes: I32Vec, - #[sea_orm(column_name = "noteVisibility")] - pub note_visibility: PollNotevisibilityEnum, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "userHost")] - pub user_host: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/poll_vote.rs b/packages/backend/native-utils/src/model/entity/poll_vote.rs deleted file mode 100644 index bf26bf5dd..000000000 --- a/packages/backend/native-utils/src/model/entity/poll_vote.rs +++ /dev/null @@ -1,51 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "poll_vote")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, - pub choice: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/prelude.rs b/packages/backend/native-utils/src/model/entity/prelude.rs deleted file mode 100644 index 0cc484727..000000000 --- a/packages/backend/native-utils/src/model/entity/prelude.rs +++ /dev/null @@ -1,68 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -pub use super::abuse_user_report::Entity as AbuseUserReport; -pub use super::access_token::Entity as AccessToken; -pub use super::announcement::Entity as Announcement; -pub use super::announcement_read::Entity as AnnouncementRead; -pub use super::antenna::Entity as Antenna; -pub use super::app::Entity as App; -pub use super::attestation_challenge::Entity as AttestationChallenge; -pub use super::auth_session::Entity as AuthSession; -pub use super::blocking::Entity as Blocking; -pub use super::channel::Entity as Channel; -pub use super::channel_following::Entity as ChannelFollowing; -pub use super::channel_note_pining::Entity as ChannelNotePining; -pub use super::clip::Entity as Clip; -pub use super::clip_note::Entity as ClipNote; -pub use super::drive_file::Entity as DriveFile; -pub use super::drive_folder::Entity as DriveFolder; -pub use super::emoji::Entity as Emoji; -pub use super::follow_request::Entity as FollowRequest; -pub use super::following::Entity as Following; -pub use super::gallery_like::Entity as GalleryLike; -pub use super::gallery_post::Entity as GalleryPost; -pub use super::hashtag::Entity as Hashtag; -pub use super::instance::Entity as Instance; -pub use super::messaging_message::Entity as MessagingMessage; -pub use super::meta::Entity as Meta; -pub use super::migrations::Entity as Migrations; -pub use super::moderation_log::Entity as ModerationLog; -pub use super::muted_note::Entity as MutedNote; -pub use super::muting::Entity as Muting; -pub use super::note::Entity as Note; -pub use super::note_edit::Entity as NoteEdit; -pub use super::note_favorite::Entity as NoteFavorite; -pub use super::note_reaction::Entity as NoteReaction; -pub use super::note_thread_muting::Entity as NoteThreadMuting; -pub use super::note_unread::Entity as NoteUnread; -pub use super::note_watching::Entity as NoteWatching; -pub use super::notification::Entity as Notification; -pub use super::page::Entity as Page; -pub use super::page_like::Entity as PageLike; -pub use super::password_reset_request::Entity as PasswordResetRequest; -pub use super::poll::Entity as Poll; -pub use super::poll_vote::Entity as PollVote; -pub use super::promo_note::Entity as PromoNote; -pub use super::promo_read::Entity as PromoRead; -pub use super::registration_ticket::Entity as RegistrationTicket; -pub use super::registry_item::Entity as RegistryItem; -pub use super::relay::Entity as Relay; -pub use super::renote_muting::Entity as RenoteMuting; -pub use super::signin::Entity as Signin; -pub use super::sw_subscription::Entity as SwSubscription; -pub use super::used_username::Entity as UsedUsername; -pub use super::user::Entity as User; -pub use super::user_group::Entity as UserGroup; -pub use super::user_group_invitation::Entity as UserGroupInvitation; -pub use super::user_group_invite::Entity as UserGroupInvite; -pub use super::user_group_joining::Entity as UserGroupJoining; -pub use super::user_ip::Entity as UserIp; -pub use super::user_keypair::Entity as UserKeypair; -pub use super::user_list::Entity as UserList; -pub use super::user_list_joining::Entity as UserListJoining; -pub use super::user_note_pining::Entity as UserNotePining; -pub use super::user_pending::Entity as UserPending; -pub use super::user_profile::Entity as UserProfile; -pub use super::user_publickey::Entity as UserPublickey; -pub use super::user_security_key::Entity as UserSecurityKey; -pub use super::webhook::Entity as Webhook; diff --git a/packages/backend/native-utils/src/model/entity/promo_note.rs b/packages/backend/native-utils/src/model/entity/promo_note.rs deleted file mode 100644 index 288a0ea81..000000000 --- a/packages/backend/native-utils/src/model/entity/promo_note.rs +++ /dev/null @@ -1,34 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "promo_note")] -pub struct Model { - #[sea_orm(column_name = "noteId", primary_key, auto_increment = false, unique)] - pub note_id: String, - #[sea_orm(column_name = "expiresAt")] - pub expires_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/promo_read.rs b/packages/backend/native-utils/src/model/entity/promo_read.rs deleted file mode 100644 index 4e6224cf2..000000000 --- a/packages/backend/native-utils/src/model/entity/promo_read.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "promo_read")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/registration_ticket.rs b/packages/backend/native-utils/src/model/entity/registration_ticket.rs deleted file mode 100644 index 798f19586..000000000 --- a/packages/backend/native-utils/src/model/entity/registration_ticket.rs +++ /dev/null @@ -1,18 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "registration_ticket")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub code: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/registry_item.rs b/packages/backend/native-utils/src/model/entity/registry_item.rs deleted file mode 100644 index 904c43abf..000000000 --- a/packages/backend/native-utils/src/model/entity/registry_item.rs +++ /dev/null @@ -1,43 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "registry_item")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub key: String, - pub scope: StringVec, - pub domain: Option, - #[sea_orm(column_type = "JsonBinary", nullable)] - pub value: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/relay.rs b/packages/backend/native-utils/src/model/entity/relay.rs deleted file mode 100644 index bed89c849..000000000 --- a/packages/backend/native-utils/src/model/entity/relay.rs +++ /dev/null @@ -1,18 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::RelayStatusEnum; -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "relay")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - pub inbox: String, - pub status: RelayStatusEnum, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/renote_muting.rs b/packages/backend/native-utils/src/model/entity/renote_muting.rs deleted file mode 100644 index 44751c14c..000000000 --- a/packages/backend/native-utils/src/model/entity/renote_muting.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "renote_muting")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "muteeId")] - pub mutee_id: String, - #[sea_orm(column_name = "muterId")] - pub muter_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/sea_orm_active_enums.rs b/packages/backend/native-utils/src/model/entity/sea_orm_active_enums.rs deleted file mode 100644 index f26995224..000000000 --- a/packages/backend/native-utils/src/model/entity/sea_orm_active_enums.rs +++ /dev/null @@ -1,184 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "antenna_src_enum")] -pub enum AntennaSrcEnum { - #[default] - #[sea_orm(string_value = "all")] - All, - #[sea_orm(string_value = "group")] - Group, - #[sea_orm(string_value = "home")] - Home, - #[sea_orm(string_value = "instances")] - Instances, - #[sea_orm(string_value = "list")] - List, - #[sea_orm(string_value = "users")] - Users, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "meta_sensitivemediadetection_enum" -)] -pub enum MetaSensitivemediadetectionEnum { - #[default] - #[sea_orm(string_value = "all")] - All, - #[sea_orm(string_value = "local")] - Local, - #[sea_orm(string_value = "none")] - None, - #[sea_orm(string_value = "remote")] - Remote, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "meta_sensitivemediadetectionsensitivity_enum" -)] -pub enum MetaSensitivemediadetectionsensitivityEnum { - #[sea_orm(string_value = "high")] - High, - #[sea_orm(string_value = "low")] - Low, - #[default] - #[sea_orm(string_value = "medium")] - Medium, - #[sea_orm(string_value = "veryHigh")] - VeryHigh, - #[sea_orm(string_value = "veryLow")] - VeryLow, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "muted_note_reason_enum" -)] -pub enum MutedNoteReasonEnum { - #[default] - #[sea_orm(string_value = "manual")] - Manual, - #[sea_orm(string_value = "other")] - Other, - #[sea_orm(string_value = "spam")] - Spam, - #[sea_orm(string_value = "word")] - Word, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "note_visibility_enum" -)] -pub enum NoteVisibilityEnum { - #[sea_orm(string_value = "followers")] - Followers, - #[sea_orm(string_value = "hidden")] - Hidden, - #[sea_orm(string_value = "home")] - Home, - #[default] - #[sea_orm(string_value = "public")] - Public, - #[sea_orm(string_value = "specified")] - Specified, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "notification_type_enum" -)] -pub enum NotificationTypeEnum { - #[sea_orm(string_value = "app")] - App, - #[sea_orm(string_value = "follow")] - Follow, - #[sea_orm(string_value = "followRequestAccepted")] - FollowRequestAccepted, - #[sea_orm(string_value = "groupInvited")] - GroupInvited, - #[sea_orm(string_value = "mention")] - Mention, - #[sea_orm(string_value = "pollEnded")] - PollEnded, - #[sea_orm(string_value = "pollVote")] - PollVote, - #[sea_orm(string_value = "quote")] - Quote, - #[sea_orm(string_value = "reaction")] - Reaction, - #[sea_orm(string_value = "receiveFollowRequest")] - ReceiveFollowRequest, - #[sea_orm(string_value = "renote")] - Renote, - #[default] - #[sea_orm(string_value = "reply")] - Reply, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "page_visibility_enum" -)] -pub enum PageVisibilityEnum { - #[sea_orm(string_value = "followers")] - Followers, - #[default] - #[sea_orm(string_value = "public")] - Public, - #[sea_orm(string_value = "specified")] - Specified, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "poll_notevisibility_enum" -)] -pub enum PollNotevisibilityEnum { - #[sea_orm(string_value = "followers")] - Followers, - #[sea_orm(string_value = "home")] - Home, - #[default] - #[sea_orm(string_value = "public")] - Public, - #[sea_orm(string_value = "specified")] - Specified, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "relay_status_enum")] -pub enum RelayStatusEnum { - #[sea_orm(string_value = "accepted")] - Accepted, - #[sea_orm(string_value = "rejected")] - Rejected, - #[default] - #[sea_orm(string_value = "requesting")] - Requesting, -} -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Default)] -#[sea_orm( - rs_type = "String", - db_type = "Enum", - enum_name = "user_profile_ffvisibility_enum" -)] -pub enum UserProfileFfvisibilityEnum { - #[sea_orm(string_value = "followers")] - Followers, - #[sea_orm(string_value = "private")] - Private, - #[default] - #[sea_orm(string_value = "public")] - Public, -} diff --git a/packages/backend/native-utils/src/model/entity/signin.rs b/packages/backend/native-utils/src/model/entity/signin.rs deleted file mode 100644 index 60bbc33d2..000000000 --- a/packages/backend/native-utils/src/model/entity/signin.rs +++ /dev/null @@ -1,38 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "signin")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub ip: String, - #[sea_orm(column_type = "JsonBinary")] - pub headers: Json, - pub success: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/sw_subscription.rs b/packages/backend/native-utils/src/model/entity/sw_subscription.rs deleted file mode 100644 index 1be9e046a..000000000 --- a/packages/backend/native-utils/src/model/entity/sw_subscription.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "sw_subscription")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub endpoint: String, - pub auth: String, - pub publickey: String, - #[sea_orm(column_name = "sendReadMessage")] - pub send_read_message: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/used_username.rs b/packages/backend/native-utils/src/model/entity/used_username.rs deleted file mode 100644 index 620950b64..000000000 --- a/packages/backend/native-utils/src/model/entity/used_username.rs +++ /dev/null @@ -1,17 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "used_username")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub username: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user.rs b/packages/backend/native-utils/src/model/entity/user.rs deleted file mode 100644 index e76ae08c7..000000000 --- a/packages/backend/native-utils/src/model/entity/user.rs +++ /dev/null @@ -1,424 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "updatedAt")] - pub updated_at: Option, - #[sea_orm(column_name = "lastFetchedAt")] - pub last_fetched_at: Option, - pub username: String, - #[sea_orm(column_name = "usernameLower")] - pub username_lower: String, - pub name: Option, - #[sea_orm(column_name = "followersCount")] - pub followers_count: i32, - #[sea_orm(column_name = "followingCount")] - pub following_count: i32, - #[sea_orm(column_name = "notesCount")] - pub notes_count: i32, - #[sea_orm(column_name = "avatarId", unique)] - pub avatar_id: Option, - #[sea_orm(column_name = "bannerId", unique)] - pub banner_id: Option, - pub tags: StringVec, - #[sea_orm(column_name = "isSuspended")] - pub is_suspended: bool, - #[sea_orm(column_name = "isSilenced")] - pub is_silenced: bool, - #[sea_orm(column_name = "isLocked")] - pub is_locked: bool, - #[sea_orm(column_name = "isBot")] - pub is_bot: bool, - #[sea_orm(column_name = "isCat")] - pub is_cat: bool, - #[sea_orm(column_name = "isAdmin")] - pub is_admin: bool, - #[sea_orm(column_name = "isModerator")] - pub is_moderator: bool, - pub emojis: StringVec, - pub host: Option, - pub inbox: Option, - #[sea_orm(column_name = "sharedInbox")] - pub shared_inbox: Option, - pub featured: Option, - pub uri: Option, - #[sea_orm(unique)] - pub token: Option, - #[sea_orm(column_name = "isExplorable")] - pub is_explorable: bool, - #[sea_orm(column_name = "followersUri")] - pub followers_uri: Option, - #[sea_orm(column_name = "lastActiveDate")] - pub last_active_date: Option, - #[sea_orm(column_name = "hideOnlineStatus")] - pub hide_online_status: bool, - #[sea_orm(column_name = "isDeleted")] - pub is_deleted: bool, - #[sea_orm(column_name = "driveCapacityOverrideMb")] - pub drive_capacity_override_mb: Option, - #[sea_orm(column_name = "movedToUri")] - pub moved_to_uri: Option, - #[sea_orm(column_name = "alsoKnownAs", column_type = "Text", nullable)] - pub also_known_as: Option, - #[sea_orm(column_name = "speakAsCat")] - pub speak_as_cat: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::access_token::Entity")] - AccessToken, - #[sea_orm(has_many = "super::announcement_read::Entity")] - AnnouncementRead, - #[sea_orm(has_many = "super::antenna::Entity")] - Antenna, - #[sea_orm(has_many = "super::app::Entity")] - App, - #[sea_orm(has_many = "super::attestation_challenge::Entity")] - AttestationChallenge, - #[sea_orm(has_many = "super::auth_session::Entity")] - AuthSession, - #[sea_orm(has_many = "super::channel::Entity")] - Channel, - #[sea_orm(has_many = "super::channel_following::Entity")] - ChannelFollowing, - #[sea_orm(has_many = "super::clip::Entity")] - Clip, - #[sea_orm( - belongs_to = "super::drive_file::Entity", - from = "Column::AvatarId", - to = "super::drive_file::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - DriveFile2, - #[sea_orm( - belongs_to = "super::drive_file::Entity", - from = "Column::BannerId", - to = "super::drive_file::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - DriveFile1, - #[sea_orm(has_many = "super::drive_folder::Entity")] - DriveFolder, - #[sea_orm(has_many = "super::gallery_like::Entity")] - GalleryLike, - #[sea_orm(has_many = "super::gallery_post::Entity")] - GalleryPost, - #[sea_orm(has_many = "super::meta::Entity")] - Meta, - #[sea_orm(has_many = "super::moderation_log::Entity")] - ModerationLog, - #[sea_orm(has_many = "super::muted_note::Entity")] - MutedNote, - #[sea_orm(has_many = "super::note::Entity")] - Note, - #[sea_orm(has_many = "super::note_favorite::Entity")] - NoteFavorite, - #[sea_orm(has_many = "super::note_reaction::Entity")] - NoteReaction, - #[sea_orm(has_many = "super::note_thread_muting::Entity")] - NoteThreadMuting, - #[sea_orm(has_many = "super::note_unread::Entity")] - NoteUnread, - #[sea_orm(has_many = "super::note_watching::Entity")] - NoteWatching, - #[sea_orm(has_many = "super::page::Entity")] - Page, - #[sea_orm(has_many = "super::page_like::Entity")] - PageLike, - #[sea_orm(has_many = "super::password_reset_request::Entity")] - PasswordResetRequest, - #[sea_orm(has_many = "super::poll_vote::Entity")] - PollVote, - #[sea_orm(has_many = "super::promo_read::Entity")] - PromoRead, - #[sea_orm(has_many = "super::registry_item::Entity")] - RegistryItem, - #[sea_orm(has_many = "super::signin::Entity")] - Signin, - #[sea_orm(has_many = "super::sw_subscription::Entity")] - SwSubscription, - #[sea_orm(has_many = "super::user_group::Entity")] - UserGroup, - #[sea_orm(has_many = "super::user_group_invitation::Entity")] - UserGroupInvitation, - #[sea_orm(has_many = "super::user_group_invite::Entity")] - UserGroupInvite, - #[sea_orm(has_many = "super::user_group_joining::Entity")] - UserGroupJoining, - #[sea_orm(has_one = "super::user_keypair::Entity")] - UserKeypair, - #[sea_orm(has_many = "super::user_list::Entity")] - UserList, - #[sea_orm(has_many = "super::user_list_joining::Entity")] - UserListJoining, - #[sea_orm(has_many = "super::user_note_pining::Entity")] - UserNotePining, - #[sea_orm(has_one = "super::user_profile::Entity")] - UserProfile, - #[sea_orm(has_one = "super::user_publickey::Entity")] - UserPublickey, - #[sea_orm(has_many = "super::user_security_key::Entity")] - UserSecurityKey, - #[sea_orm(has_many = "super::webhook::Entity")] - Webhook, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AccessToken.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AnnouncementRead.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Antenna.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::App.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AttestationChallenge.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::AuthSession.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Channel.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ChannelFollowing.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Clip.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::DriveFolder.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GalleryLike.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::GalleryPost.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Meta.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::ModerationLog.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::MutedNote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteFavorite.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteReaction.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteThreadMuting.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteUnread.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::NoteWatching.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Page.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PageLike.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PasswordResetRequest.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PollVote.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::PromoRead.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::RegistryItem.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Signin.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::SwSubscription.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroup.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupInvitation.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupInvite.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupJoining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserKeypair.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserList.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserListJoining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserNotePining.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserProfile.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserPublickey.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserSecurityKey.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Webhook.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_group.rs b/packages/backend/native-utils/src/model/entity/user_group.rs deleted file mode 100644 index 74ee4f22f..000000000 --- a/packages/backend/native-utils/src/model/entity/user_group.rs +++ /dev/null @@ -1,69 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_group")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub name: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "isPrivate")] - pub is_private: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::messaging_message::Entity")] - MessagingMessage, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm(has_many = "super::user_group_invitation::Entity")] - UserGroupInvitation, - #[sea_orm(has_many = "super::user_group_invite::Entity")] - UserGroupInvite, - #[sea_orm(has_many = "super::user_group_joining::Entity")] - UserGroupJoining, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::MessagingMessage.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupInvitation.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupInvite.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroupJoining.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_group_invitation.rs b/packages/backend/native-utils/src/model/entity/user_group_invitation.rs deleted file mode 100644 index baa6fea83..000000000 --- a/packages/backend/native-utils/src/model/entity/user_group_invitation.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_group_invitation")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "userGroupId")] - pub user_group_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::notification::Entity")] - Notification, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm( - belongs_to = "super::user_group::Entity", - from = "Column::UserGroupId", - to = "super::user_group::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroup, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Notification.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroup.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_group_invite.rs b/packages/backend/native-utils/src/model/entity/user_group_invite.rs deleted file mode 100644 index dbbc055f0..000000000 --- a/packages/backend/native-utils/src/model/entity/user_group_invite.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_group_invite")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "userGroupId")] - pub user_group_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm( - belongs_to = "super::user_group::Entity", - from = "Column::UserGroupId", - to = "super::user_group::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroup, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroup.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_group_joining.rs b/packages/backend/native-utils/src/model/entity/user_group_joining.rs deleted file mode 100644 index e7741520c..000000000 --- a/packages/backend/native-utils/src/model/entity/user_group_joining.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_group_joining")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "userGroupId")] - pub user_group_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::antenna::Entity")] - Antenna, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm( - belongs_to = "super::user_group::Entity", - from = "Column::UserGroupId", - to = "super::user_group::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserGroup, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Antenna.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserGroup.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_ip.rs b/packages/backend/native-utils/src/model/entity/user_ip.rs deleted file mode 100644 index ce0af264d..000000000 --- a/packages/backend/native-utils/src/model/entity/user_ip.rs +++ /dev/null @@ -1,20 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_ip")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub ip: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_keypair.rs b/packages/backend/native-utils/src/model/entity/user_keypair.rs deleted file mode 100644 index 0382d5d76..000000000 --- a/packages/backend/native-utils/src/model/entity/user_keypair.rs +++ /dev/null @@ -1,34 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_keypair")] -pub struct Model { - #[sea_orm(column_name = "userId", primary_key, auto_increment = false, unique)] - pub user_id: String, - #[sea_orm(column_name = "publicKey")] - pub public_key: String, - #[sea_orm(column_name = "privateKey")] - pub private_key: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_list.rs b/packages/backend/native-utils/src/model/entity/user_list.rs deleted file mode 100644 index 7cc972133..000000000 --- a/packages/backend/native-utils/src/model/entity/user_list.rs +++ /dev/null @@ -1,51 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_list")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub name: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::antenna::Entity")] - Antenna, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm(has_many = "super::user_list_joining::Entity")] - UserListJoining, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Antenna.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserListJoining.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_list_joining.rs b/packages/backend/native-utils/src/model/entity/user_list_joining.rs deleted file mode 100644 index 4f28a21db..000000000 --- a/packages/backend/native-utils/src/model/entity/user_list_joining.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_list_joining")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "userListId")] - pub user_list_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, - #[sea_orm( - belongs_to = "super::user_list::Entity", - from = "Column::UserListId", - to = "super::user_list::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - UserList, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::UserList.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_note_pining.rs b/packages/backend/native-utils/src/model/entity/user_note_pining.rs deleted file mode 100644 index e657fcb53..000000000 --- a/packages/backend/native-utils/src/model/entity/user_note_pining.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_note_pining")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "noteId")] - pub note_id: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::note::Entity", - from = "Column::NoteId", - to = "super::note::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Note, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Note.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_pending.rs b/packages/backend/native-utils/src/model/entity/user_pending.rs deleted file mode 100644 index 297fe553c..000000000 --- a/packages/backend/native-utils/src/model/entity/user_pending.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_pending")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - pub code: String, - pub username: String, - pub email: String, - pub password: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_profile.rs b/packages/backend/native-utils/src/model/entity/user_profile.rs deleted file mode 100644 index 4c2f903d4..000000000 --- a/packages/backend/native-utils/src/model/entity/user_profile.rs +++ /dev/null @@ -1,112 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use super::sea_orm_active_enums::UserProfileFfvisibilityEnum; -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_profile")] -pub struct Model { - #[sea_orm(column_name = "userId", primary_key, auto_increment = false, unique)] - pub user_id: String, - pub location: Option, - pub birthday: Option, - pub description: Option, - #[sea_orm(column_type = "JsonBinary")] - pub fields: Json, - pub url: Option, - pub email: Option, - #[sea_orm(column_name = "emailVerifyCode")] - pub email_verify_code: Option, - #[sea_orm(column_name = "emailVerified")] - pub email_verified: bool, - #[sea_orm(column_name = "twoFactorTempSecret")] - pub two_factor_temp_secret: Option, - #[sea_orm(column_name = "twoFactorSecret")] - pub two_factor_secret: Option, - #[sea_orm(column_name = "twoFactorEnabled")] - pub two_factor_enabled: bool, - pub password: Option, - #[sea_orm(column_name = "clientData", column_type = "JsonBinary")] - pub client_data: Json, - #[sea_orm(column_name = "autoAcceptFollowed")] - pub auto_accept_followed: bool, - #[sea_orm(column_name = "alwaysMarkNsfw")] - pub always_mark_nsfw: bool, - #[sea_orm(column_name = "carefulBot")] - pub careful_bot: bool, - #[sea_orm(column_name = "userHost")] - pub user_host: Option, - #[sea_orm(column_name = "securityKeysAvailable")] - pub security_keys_available: bool, - #[sea_orm(column_name = "usePasswordLessLogin")] - pub use_password_less_login: bool, - #[sea_orm(column_name = "pinnedPageId", unique)] - pub pinned_page_id: Option, - #[sea_orm(column_type = "JsonBinary")] - pub room: Json, - #[sea_orm(column_type = "JsonBinary")] - pub integrations: Json, - #[sea_orm(column_name = "injectFeaturedNote")] - pub inject_featured_note: bool, - #[sea_orm(column_name = "enableWordMute")] - pub enable_word_mute: bool, - #[sea_orm(column_name = "mutedWords", column_type = "JsonBinary")] - pub muted_words: Json, - #[sea_orm(column_name = "mutingNotificationTypes")] - pub muting_notification_types: StringVec, - #[sea_orm(column_name = "noCrawle")] - pub no_crawle: bool, - #[sea_orm(column_name = "receiveAnnouncementEmail")] - pub receive_announcement_email: bool, - #[sea_orm(column_name = "emailNotificationTypes", column_type = "JsonBinary")] - pub email_notification_types: Json, - pub lang: Option, - #[sea_orm(column_name = "mutedInstances", column_type = "JsonBinary")] - pub muted_instances: Json, - #[sea_orm(column_name = "publicReactions")] - pub public_reactions: bool, - #[sea_orm(column_name = "ffVisibility")] - pub ff_visibility: UserProfileFfvisibilityEnum, - #[sea_orm(column_name = "autoSensitive")] - pub auto_sensitive: bool, - #[sea_orm(column_name = "moderationNote")] - pub moderation_note: String, - #[sea_orm(column_name = "preventAiLearning")] - pub prevent_ai_learning: bool, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::page::Entity", - from = "Column::PinnedPageId", - to = "super::page::Column::Id", - on_update = "NoAction", - on_delete = "SetNull" - )] - Page, - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Page.def() - } -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_publickey.rs b/packages/backend/native-utils/src/model/entity/user_publickey.rs deleted file mode 100644 index b1f426c5b..000000000 --- a/packages/backend/native-utils/src/model/entity/user_publickey.rs +++ /dev/null @@ -1,34 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_publickey")] -pub struct Model { - #[sea_orm(column_name = "userId", primary_key, auto_increment = false, unique)] - pub user_id: String, - #[sea_orm(column_name = "keyId")] - pub key_id: String, - #[sea_orm(column_name = "keyPem")] - pub key_pem: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/user_security_key.rs b/packages/backend/native-utils/src/model/entity/user_security_key.rs deleted file mode 100644 index 4bc976336..000000000 --- a/packages/backend/native-utils/src/model/entity/user_security_key.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "user_security_key")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "userId")] - pub user_id: String, - #[sea_orm(column_name = "publicKey")] - pub public_key: String, - #[sea_orm(column_name = "lastUsed")] - pub last_used: DateTimeWithTimeZone, - pub name: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/entity/webhook.rs b/packages/backend/native-utils/src/model/entity/webhook.rs deleted file mode 100644 index 06ea1516b..000000000 --- a/packages/backend/native-utils/src/model/entity/webhook.rs +++ /dev/null @@ -1,45 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 - -use sea_orm::entity::prelude::*; - -use super::newtype::StringVec; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)] -#[sea_orm(table_name = "webhook")] -pub struct Model { - #[sea_orm(primary_key, auto_increment = false)] - pub id: String, - #[sea_orm(column_name = "createdAt")] - pub created_at: DateTimeWithTimeZone, - #[sea_orm(column_name = "userId")] - pub user_id: String, - pub name: String, - pub on: StringVec, - pub url: String, - pub secret: String, - pub active: bool, - #[sea_orm(column_name = "latestSentAt")] - pub latest_sent_at: Option, - #[sea_orm(column_name = "latestStatus")] - pub latest_status: Option, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::user::Entity", - from = "Column::UserId", - to = "super::user::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - User, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::User.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/packages/backend/native-utils/src/model/error.rs b/packages/backend/native-utils/src/model/error.rs deleted file mode 100644 index 8e9213066..000000000 --- a/packages/backend/native-utils/src/model/error.rs +++ /dev/null @@ -1,15 +0,0 @@ -use crate::impl_into_napi_error; - -#[derive(thiserror::Error, Debug, PartialEq, Eq)] -pub enum Error { - #[error("Failed to parse string: {0}")] - ParseError(#[from] parse_display::ParseError), - #[error("Failed to get database connection: {0}")] - DbConnError(#[from] crate::database::error::Error), - #[error("Database operation error: {0}")] - DbOperationError(#[from] sea_orm::DbErr), - #[error("Requested entity not found")] - NotFound, -} - -impl_into_napi_error!(Error); diff --git a/packages/backend/native-utils/src/model/mod.rs b/packages/backend/native-utils/src/model/mod.rs deleted file mode 100644 index 6e86ec052..000000000 --- a/packages/backend/native-utils/src/model/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub mod entity; -pub mod error; -pub mod repository; -pub mod schema; diff --git a/packages/backend/native-utils/src/model/repository.rs b/packages/backend/native-utils/src/model/repository.rs deleted file mode 100644 index 5abf7907f..000000000 --- a/packages/backend/native-utils/src/model/repository.rs +++ /dev/null @@ -1,33 +0,0 @@ -pub mod antenna; - -use async_trait::async_trait; -use schemars::JsonSchema; - -use super::error::Error; - -/// Repositories have a packer that converts a database model to its -/// corresponding API schema. -#[async_trait] -pub trait Repository { - async fn pack(self) -> Result; - /// Retrieves one model by its id and pack it. - async fn pack_by_id(id: String) -> Result; -} - -mod macros { - /// Provides the default implementation of - /// [crate::model::repository::Repository::pack_by_id]. - macro_rules! impl_pack_by_id { - ($a:ty, $b:ident) => { - match <$a>::find_by_id($b) - .one(crate::database::get_database()?) - .await? - { - None => Err(Error::NotFound), - Some(m) => m.pack().await, - } - }; - } - - pub(crate) use impl_pack_by_id; -} diff --git a/packages/backend/native-utils/src/model/repository/antenna.rs b/packages/backend/native-utils/src/model/repository/antenna.rs deleted file mode 100644 index 80f34fed1..000000000 --- a/packages/backend/native-utils/src/model/repository/antenna.rs +++ /dev/null @@ -1,56 +0,0 @@ -use async_trait::async_trait; -use cfg_if::cfg_if; -use sea_orm::EntityTrait; - -use crate::database; -use crate::model::entity::{antenna, user_group_joining}; -use crate::model::error::Error; -use crate::model::schema::Antenna; - -use super::macros::impl_pack_by_id; -use super::Repository; - -#[async_trait] -impl Repository for antenna::Model { - async fn pack(self) -> Result { - let db = database::get_database()?; - let user_group_joining = match self.user_group_joining_id { - None => None, - Some(id) => user_group_joining::Entity::find_by_id(id).one(db).await?, - }; - let user_group_id = match user_group_joining { - None => None, - Some(m) => Some(m.user_group_id), - }; - - cfg_if! { - if #[cfg(feature = "napi")] { - let created_at: String = self.created_at.to_rfc3339(); - } else { - let created_at: chrono::DateTime = self.created_at.into(); - } - } - - Ok(Antenna { - id: self.id, - created_at, - name: self.name, - keywords: self.keywords.into(), - exclude_keywords: self.exclude_keywords.into(), - src: self.src.try_into()?, - user_list_id: self.user_list_id, - user_group_id, - users: self.users, - instances: self.instances.into(), - case_sensitive: self.case_sensitive, - notify: self.notify, - with_replies: self.with_replies, - with_file: self.with_file, - has_unread_note: false, - }) - } - - async fn pack_by_id(id: String) -> Result { - impl_pack_by_id!(antenna::Entity, id) - } -} diff --git a/packages/backend/native-utils/src/model/schema.rs b/packages/backend/native-utils/src/model/schema.rs deleted file mode 100644 index 4c0ca7941..000000000 --- a/packages/backend/native-utils/src/model/schema.rs +++ /dev/null @@ -1,35 +0,0 @@ -pub mod antenna; -pub mod app; - -use cfg_if::cfg_if; -use jsonschema::JSONSchema; -use schemars::{schema_for, JsonSchema}; - -/// Structs of schema defitions implement this trait in order to -/// provide the JSON Schema validator [`jsonschema::JSONSchema`]. -pub trait Schema { - /// Returns the validator of [JSON Schema Draft - /// 7](https://json-schema.org/specification-links.html#draft-7) with the - /// default settings of [`schemars::gen::SchemaSettings`]. - fn validator() -> JSONSchema { - let root = schema_for!(T); - let schema = serde_json::to_value(&root).expect("Schema definition invalid"); - JSONSchema::options() - .with_draft(jsonschema::Draft::Draft7) - .compile(&schema) - .expect("Unable to compile schema") - } -} - -cfg_if! { - if #[cfg(feature = "napi")] { - // Will be disabled once we completely migrate to rust - pub use antenna::NativeAntennaSchema as Antenna; - pub use antenna::NativeAntennaSrc as AntennaSrc; - } else { - pub use antenna::Antenna; - pub use antenna::AntennaSrc; - pub use app::App; - pub use app::AppPermission; - } -} diff --git a/packages/backend/native-utils/src/model/schema/antenna.rs b/packages/backend/native-utils/src/model/schema/antenna.rs deleted file mode 100644 index da2c3061b..000000000 --- a/packages/backend/native-utils/src/model/schema/antenna.rs +++ /dev/null @@ -1,217 +0,0 @@ -use cfg_if::cfg_if; -use jsonschema::JSONSchema; -use once_cell::sync::Lazy; -use parse_display::FromStr; -use schemars::JsonSchema; -use utoipa::ToSchema; - -use super::Schema; -use crate::model; -use crate::model::entity::sea_orm_active_enums::AntennaSrcEnum; - -#[derive(Clone, Debug, PartialEq, Eq, JsonSchema, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct Antenna { - pub id: String, - pub created_at: chrono::DateTime, - pub name: String, - pub keywords: Vec>, - pub exclude_keywords: Vec>, - #[schema(inline)] - pub src: AntennaSrc, - pub user_list_id: Option, - pub user_group_id: Option, - pub users: Vec, - pub instances: Vec, - #[serde(default)] - pub case_sensitive: bool, - #[serde(default)] - pub notify: bool, - #[serde(default)] - pub with_replies: bool, - #[serde(default)] - pub with_file: bool, - #[serde(default)] - pub has_unread_note: bool, -} - -#[derive(Clone, Debug, FromStr, PartialEq, Eq, JsonSchema, ToSchema)] -#[serde(rename_all = "camelCase")] -#[display(style = "camelCase")] -#[display("'{}'")] -pub enum AntennaSrc { - Home, - All, - Users, - List, - Group, - Instances, -} - -impl TryFrom for super::AntennaSrc { - type Error = model::error::Error; - - fn try_from(value: AntennaSrcEnum) -> Result { - value.to_string().parse().map_err(model::error::Error::from) - } -} - -// ---- TODO: could be macro -impl Schema for super::Antenna {} -pub static VALIDATOR: Lazy = Lazy::new(super::Antenna::validator); -// ---- - -cfg_if! { - if #[cfg(feature = "napi")] { - use napi::bindgen_prelude::{FromNapiValue, ToNapiValue}; - use napi_derive::napi; - - use crate::model::entity::antenna; - use crate::model::repository::Repository; - - /// For NAPI because [chrono] is not supported. - #[napi(object)] - #[derive(Clone, Debug, PartialEq, Eq, JsonSchema, ToSchema)] - #[serde(rename_all = "camelCase")] - pub struct NativeAntennaSchema { - pub id: String, - pub created_at: String, - pub name: String, - pub keywords: Vec>, - pub exclude_keywords: Vec>, - #[schema(inline)] - pub src: NativeAntennaSrc, - pub user_list_id: Option, - pub user_group_id: Option, - pub users: Vec, - pub instances: Vec, - #[serde(default)] - pub case_sensitive: bool, - #[serde(default)] - pub notify: bool, - #[serde(default)] - pub with_replies: bool, - #[serde(default)] - pub with_file: bool, - #[serde(default)] - pub has_unread_note: bool, - } - - #[napi(string_enum)] - #[derive(Debug, FromStr, PartialEq, Eq, JsonSchema, ToSchema)] - #[display("'{}'")] - #[allow(non_camel_case_types)] - pub enum NativeAntennaSrc { - home, - all, - users, - list, - group, - instances, - } - - #[napi] - pub async fn native_pack_antenna_by_id(id: String) -> napi::Result { - antenna::Model::pack_by_id(id).await.map_err(Into::into) - } - } -} - -#[cfg(test)] -mod unit_test { - use cfg_if::cfg_if; - use pretty_assertions::assert_eq; - use serde_json::json; - - use crate::model::{entity::sea_orm_active_enums::AntennaSrcEnum, schema::AntennaSrc}; - - use super::VALIDATOR; - - #[test] - fn src_from_active_enum() { - let src = AntennaSrc::try_from(AntennaSrcEnum::All).unwrap(); - cfg_if! { - if #[cfg(feature = "napi")] { - assert_eq!(src, AntennaSrc::all); - } else { - assert_eq!(src, AntennaSrc::All); - } - } - } - - #[test] - fn antenna_valid() { - let instance = json!({ - "id": "9fil64s6g7cskdrb", - "createdAt": "2023-05-24T06:56:14.323Z", - "name": "Valid Antenna", - "keywords": [["first", "keyword"], ["second"]], - "excludeKeywords": [["excluding", "keywrods"], ["from", "antenna"]], - "src": "users", - // "userListId" and "userGroupId" can be null or be omitted - "userListId": null, - "users": ["9fil64s6g7cskdrb", "9fil66brl1udxau2"], - "instances": [], - // "caseSensitive", "notify", "withReplies", "withFile", and - // "hasUnreadNote" are false if ommited - "notify": false, - "withReplies": false, - "withFile": false, - "hasUnreadNote": false, - }); - - assert!(VALIDATOR.is_valid(&instance)); - } - - #[test] - fn antenna_invalid() { - let instance = json!({ - // "id" is required - "id": null, - // trailing "Z" is missing - "createdAt": "2023-05-24T07:36:34.389", - // "name" is required - // "keywords" must be an array - "keywords": "invalid keyword", - // "excludeKeywords" is required - "excludeKeywords": null, - // "src" must be one of "home", "all", "users", "list", "group", and - // "instances" - "src": "invalid_src", - // "userListId" is string - "userListId": ["9f4ziiqfxw"], - // "users" must be an array of strings - "users": [1, "9fil64s6g7cskdrb"], - "instances": ["9fil65jzhtjpi3xn"], - // "caseSensitive" is boolean - "caseSensitive": 0, - "notify": true, - "withReplies": true, - "withFile": true, - "hasUnreadNote": true, - }); - - let result = VALIDATOR - .validate(&instance) - .expect_err("validation must fail"); - let mut paths: Vec = result - .map(|e| e.instance_path.to_string()) - .filter(|e| !e.is_empty()) - .collect(); - paths.sort(); - assert_eq!( - paths, - vec![ - "/caseSensitive", - #[cfg(not(feature = "napi"))] - "/createdAt", - "/excludeKeywords", - "/id", - "/keywords", - "/src", - "/userListId", - "/users/0" - ] - ); - } -} diff --git a/packages/backend/native-utils/src/model/schema/app.rs b/packages/backend/native-utils/src/model/schema/app.rs deleted file mode 100644 index 79ec3f6f2..000000000 --- a/packages/backend/native-utils/src/model/schema/app.rs +++ /dev/null @@ -1,147 +0,0 @@ -use jsonschema::JSONSchema; -use once_cell::sync::Lazy; -use schemars::JsonSchema; -use utoipa::ToSchema; - -use super::Schema; - -#[derive(Clone, Debug, PartialEq, Eq, JsonSchema, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct App { - pub id: String, - pub name: String, - #[schemars(url)] - pub callback_url: Option, - #[schema(inline)] - pub permission: Vec, - pub secret: Option, - pub is_authorized: Option, -} - -/// This represents `permissions` in `packages/iceshrimp-js/src/consts.ts`. -#[derive(Clone, Debug, PartialEq, Eq, JsonSchema, ToSchema)] -pub enum AppPermission { - #[serde(rename = "read:account")] - ReadAccount, - #[serde(rename = "write:account")] - WriteAccount, - #[serde(rename = "read:blocks")] - ReadBlocks, - #[serde(rename = "write:blocks")] - WriteBlocks, - #[serde(rename = "read:drive")] - ReadDrive, - #[serde(rename = "write:drive")] - WriteDrive, - #[serde(rename = "read:favorites")] - ReadFavorites, - #[serde(rename = "write:favorites")] - WriteFavorites, - #[serde(rename = "read:following")] - ReadFollowing, - #[serde(rename = "write:following")] - WriteFollowing, - #[serde(rename = "read:messaging")] - ReadMessaging, - #[serde(rename = "write:messaging")] - WriteMessaging, - #[serde(rename = "read:mutes")] - ReadMutes, - #[serde(rename = "write:mutes")] - WriteMutes, - #[serde(rename = "read:notes")] - ReadNotes, - #[serde(rename = "write:notes")] - WriteNotes, - #[serde(rename = "read:notifications")] - ReadNotifications, - #[serde(rename = "write:notifications")] - WriteNotifications, - #[serde(rename = "read:reactions")] - ReadReactions, - #[serde(rename = "write:reactions")] - WriteReactions, - #[serde(rename = "write:votes")] - WriteVotes, - #[serde(rename = "read:pages")] - ReadPages, - #[serde(rename = "write:pages")] - WritePages, - #[serde(rename = "read:page-likes")] - ReadPageLikes, - #[serde(rename = "write:page-likes")] - WritePageLikes, - #[serde(rename = "read:user-groups")] - ReadUserGroups, - #[serde(rename = "write:user-groups")] - WriteUserGroups, - #[serde(rename = "read:channels")] - ReadChannels, - #[serde(rename = "write:channels")] - WriteChannels, - #[serde(rename = "read:gallery")] - ReadGallery, - #[serde(rename = "write:gallery")] - WriteGallery, - #[serde(rename = "read:gallery-likes")] - ReadGalleryLikes, - #[serde(rename = "write:gallery-likes")] - WriteGalleryLikes, -} - -impl Schema for App {} - -pub static VALIDATOR: Lazy = Lazy::new(App::validator); - -#[cfg(test)] -mod unit_test { - use pretty_assertions::assert_eq; - use serde_json::json; - - use crate::util::id::{create_id, init_id}; - use crate::util::random::gen_string; - - use super::VALIDATOR; - - #[test] - fn app_valid() { - init_id(16, ""); - let instance = json!({ - "id": create_id(0).unwrap(), - "name": "Test App", - "secret": gen_string(24), - "callbackUrl": "urn:ietf:wg:oauth:2.0:oob", - "permission": ["read:account", "write:account", "read:notes"], - }); - - assert!(VALIDATOR.is_valid(&instance)); - } - - #[test] - fn app_invalid() { - init_id(16, ""); - let instance = json!({ - "id": create_id(0).unwrap(), - // "name" is required - "name": null, - // "permission" must be one of the app permissions - "permission": ["write:invalid_perm", "write:notes"], - // "secret" is a nullable string - "secret": 123, - // "is_authorized" is a nullable boolean - "isAuthorized": "true-ish", - }); - let result = VALIDATOR - .validate(&instance) - .expect_err("validation must fail"); - let mut paths: Vec = result - .map(|e| e.instance_path.to_string()) - .filter(|e| !e.is_empty()) - .collect(); - paths.sort(); - assert_eq!( - paths, - vec!["/isAuthorized", "/name", "/permission/0", "/secret"] - ); - } -} diff --git a/packages/backend/native-utils/src/util/id.rs b/packages/backend/native-utils/src/util/id.rs deleted file mode 100644 index b18637fdb..000000000 --- a/packages/backend/native-utils/src/util/id.rs +++ /dev/null @@ -1,90 +0,0 @@ -//! ID generation utility based on [cuid2] - -use cfg_if::cfg_if; -use chrono::Utc; -use once_cell::sync::OnceCell; -use radix_fmt::radix_36; -use std::cmp; - -use crate::impl_into_napi_error; - -#[derive(thiserror::Error, Debug, PartialEq, Eq)] -#[error("ID generator has not been initialized yet")] -pub struct ErrorUninitialized; - -impl_into_napi_error!(ErrorUninitialized); - -static FINGERPRINT: OnceCell = OnceCell::new(); -static GENERATOR: OnceCell = OnceCell::new(); - -const TIME_2000: i64 = 946_684_800_000; -const TIMESTAMP_LENGTH: u16 = 8; - -/// Initializes Cuid2 generator. Must be called before any [create_id]. -pub fn init_id<'a>(length: u16, fingerprint: &'a str) { - FINGERPRINT.get_or_init(move || format!("{}{}", fingerprint, cuid2::create_id())); - GENERATOR.get_or_init(move || { - cuid2::CuidConstructor::new() - // length to pass shoule be greater than or equal to 8. - .with_length(cmp::max(length - TIMESTAMP_LENGTH, 8)) - .with_fingerprinter(|| FINGERPRINT.get().unwrap().clone()) - }); -} - -/// Returns Cuid2 with the length specified by [init_id]. Must be called after -/// [init_id], otherwise returns [ErrorUninitialized]. -/// The current timestamp via [chrono::Utc] is used if `date_num` is `0`. -pub fn create_id(date_num: i64) -> Result { - match GENERATOR.get() { - None => Err(ErrorUninitialized), - Some(gen) => { - let date_num = if date_num > 0 { - date_num - } else { - Utc::now().timestamp_millis() - }; - let time = cmp::max(date_num - TIME_2000, 0); - Ok(format!( - "{:0>8}{}", - radix_36(time).to_string(), - gen.create_id() - )) - } - } -} - -cfg_if! { - if #[cfg(feature = "napi")] { - use napi_derive::napi; - - /// Calls [init_id] inside. Must be called before [native_create_id]. - #[napi] - pub fn native_init_id_generator(length: u16, fingerprint: String) { - init_id(length, &fingerprint); - } - - /// Generates - #[napi] - pub fn native_create_id(date_num: i64) -> String { - create_id(date_num).unwrap() - } - } -} - -#[cfg(test)] -mod unit_test { - use crate::util::id; - use pretty_assertions::{assert_eq, assert_ne}; - use std::thread; - - #[test] - fn can_generate_unique_ids() { - assert_eq!(id::create_id(0), Err(id::ErrorUninitialized)); - id::init_id(16, ""); - assert_eq!(id::create_id(0).unwrap().len(), 16); - assert_ne!(id::create_id(0).unwrap(), id::create_id(0).unwrap()); - let id1 = thread::spawn(|| id::create_id(0).unwrap()); - let id2 = thread::spawn(|| id::create_id(0).unwrap()); - assert_ne!(id1.join().unwrap(), id2.join().unwrap()); - } -} diff --git a/packages/backend/native-utils/src/util/mod.rs b/packages/backend/native-utils/src/util/mod.rs deleted file mode 100644 index 1be5a7fd1..000000000 --- a/packages/backend/native-utils/src/util/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod id; -pub mod random; diff --git a/packages/backend/native-utils/src/util/random.rs b/packages/backend/native-utils/src/util/random.rs deleted file mode 100644 index ffcbca980..000000000 --- a/packages/backend/native-utils/src/util/random.rs +++ /dev/null @@ -1,33 +0,0 @@ -use rand::{distributions::Alphanumeric, thread_rng, Rng}; - -/// Generate random string based on [thread_rng] and [Alphanumeric]. -pub fn gen_string(length: u16) -> String { - thread_rng() - .sample_iter(Alphanumeric) - .take(length.into()) - .map(char::from) - .collect() -} - -#[cfg(feature = "napi")] -#[napi_derive::napi] -pub fn native_random_str(length: u16) -> String { - gen_string(length) -} - -#[cfg(test)] -mod unit_test { - use pretty_assertions::{assert_eq, assert_ne}; - use std::thread; - - use super::gen_string; - - #[test] - fn can_generate_unique_strings() { - assert_eq!(gen_string(16).len(), 16); - assert_ne!(gen_string(16), gen_string(16)); - let s1 = thread::spawn(|| gen_string(16)); - let s2 = thread::spawn(|| gen_string(16)); - assert_ne!(s1.join().unwrap(), s2.join().unwrap()); - } -} diff --git a/packages/backend/native-utils/tests/common.rs b/packages/backend/native-utils/tests/common.rs deleted file mode 100644 index 674297606..000000000 --- a/packages/backend/native-utils/tests/common.rs +++ /dev/null @@ -1,216 +0,0 @@ -#![cfg(not(feature = "napi"))] - -mod model; - -use chrono::Utc; -use native_utils::database; -use native_utils::model::entity; -use native_utils::model::entity::sea_orm_active_enums::AntennaSrcEnum; -use native_utils::util::{ - id::{create_id, init_id}, - random::gen_string, -}; -use sea_orm::{ - sea_query::TableCreateStatement, ActiveModelTrait, ConnectionTrait, DbBackend, DbConn, DbErr, - EntityTrait, IntoActiveModel, TransactionTrait, -}; - -/// Insert predefined entries in the database. -async fn prepare() { - database::init_database("sqlite::memory:") - .await - .expect("Unable to initialize database connection"); - let db = database::get_database().expect("Unable to get database connection from pool"); - setup_schema(db).await; - setup_model(db).await; -} - -/// Setup schemas in the database. -async fn setup_schema(db: &DbConn) { - let schema = sea_orm::Schema::new(DbBackend::Sqlite); - let mut stmts: Vec = Vec::new(); - macro_rules! create_table_statement { - ($a:tt) => { - stmts.push(schema.create_table_from_entity(entity::$a::Entity).if_not_exists().to_owned()); - }; - ($a:tt, $($b:tt),+) => { - create_table_statement!($a); - create_table_statement!($($b),+); - }; - } - create_table_statement!( - abuse_user_report, - access_token, - ad, - announcement_read, - announcement, - antenna_note, - antenna, - app, - attestation_challenge, - auth_session, - blocking, - channel_following, - channel_note_pining, - channel, - clip_note, - clip, - drive_file, - drive_folder, - emoji, - following, - follow_request, - gallery_like, - gallery_post, - hashtag, - instance, - messaging_message, - meta, - migrations, - moderation_log, - muted_note, - muting, - note_edit, - note_favorite, - note_reaction, - note, - note_thread_muting, - note_unread, - note_watching, - notification, - page_like, - page, - password_reset_request, - poll, - poll_vote, - promo_note, - promo_read, - registration_ticket, - registry_item, - relay, - renote_muting, - signin, - sw_subscription, - used_username, - user_group_invitation, - user_group_invite, - user_group_joining, - user_group, - user_ip, - user_keypair, - user_list_joining, - user_list, - user_note_pining, - user_pending, - user_profile, - user_publickey, - user, - user_security_key, - webhook - ); - db.transaction::<_, (), DbErr>(|txn| { - Box::pin(async move { - for stmt in stmts { - txn.execute(txn.get_database_backend().build(&stmt)).await?; - } - Ok(()) - }) - }) - .await - .expect("Unable to setup schemas"); -} - -/// Delete all entries in the database. -async fn cleanup() { - let db = database::get_database().expect("Unable to get database connection from pool"); - db.transaction::<_, (), DbErr>(|txn| { - Box::pin(async move { - entity::user::Entity::delete_many().exec(txn).await.unwrap(); - entity::antenna::Entity::delete_many() - .exec(txn) - .await - .unwrap(); - - Ok(()) - }) - }) - .await - .expect("Unable to delete predefined models"); -} - -async fn setup_model(db: &DbConn) { - init_id(16, ""); - - db.transaction::<_, (), DbErr>(|txn| { - Box::pin(async move { - let user_id = create_id(0).unwrap(); - let name = "Alice"; - let user_model = entity::user::Model { - id: user_id.to_owned(), - created_at: Utc::now().into(), - username: name.to_lowercase(), - username_lower: name.to_lowercase(), - name: Some(name.to_string()), - token: Some(gen_string(16)), - is_admin: true, - ..Default::default() - }; - user_model - .into_active_model() - .reset_all() - .insert(txn) - .await?; - let antenna_model = entity::antenna::Model { - id: create_id(0).unwrap(), - created_at: Utc::now().into(), - user_id: user_id.to_owned(), - name: "Alice Antenna".to_string(), - src: AntennaSrcEnum::All, - keywords: vec![ - vec!["foo".to_string(), "bar".to_string()], - vec!["foobar".to_string()], - ] - .into(), - exclude_keywords: vec![ - vec!["abc".to_string()], - vec!["def".to_string(), "ghi".to_string()], - ] - .into(), - notify: true, - case_sensitive: true, - ..Default::default() - }; - antenna_model - .into_active_model() - .reset_all() - .insert(txn) - .await?; - let note_model = entity::note::Model { - id: create_id(0).unwrap(), - created_at: Utc::now().into(), - text: Some("Testing 123".to_string()), - user_id: user_id.to_owned(), - ..Default::default() - }; - note_model - .into_active_model() - .reset_all() - .insert(txn) - .await?; - - Ok(()) - }) - }) - .await - .expect("Unable to setup predefined models"); -} - -mod int_test { - use super::{cleanup, prepare}; - - #[tokio::test] - async fn can_prepare_and_cleanup() { - prepare().await; - cleanup().await; - } -} diff --git a/packages/backend/native-utils/tests/model/mod.rs b/packages/backend/native-utils/tests/model/mod.rs deleted file mode 100644 index a35bac056..000000000 --- a/packages/backend/native-utils/tests/model/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod repository; diff --git a/packages/backend/native-utils/tests/model/repository.rs b/packages/backend/native-utils/tests/model/repository.rs deleted file mode 100644 index c11ef7687..000000000 --- a/packages/backend/native-utils/tests/model/repository.rs +++ /dev/null @@ -1 +0,0 @@ -mod antenna; diff --git a/packages/backend/native-utils/tests/model/repository/antenna.rs b/packages/backend/native-utils/tests/model/repository/antenna.rs deleted file mode 100644 index 9b03d3652..000000000 --- a/packages/backend/native-utils/tests/model/repository/antenna.rs +++ /dev/null @@ -1,116 +0,0 @@ -mod int_test { - use native_utils::{database, model, util}; - - use model::{ - entity::{antenna, antenna_note, note, user}, - repository::Repository, - schema, - }; - use pretty_assertions::assert_eq; - use sea_orm::{ActiveModelTrait, ColumnTrait, EntityTrait, IntoActiveModel, QueryFilter}; - - use crate::{cleanup, prepare}; - - #[tokio::test] - async fn can_pack() { - prepare().await; - let db = database::get_database().unwrap(); - - let alice_antenna = user::Entity::find() - .filter(user::Column::Username.eq("alice")) - .find_also_related(antenna::Entity) - .one(db) - .await - .unwrap() - .expect("alice not found") - .1 - .expect("alice's antenna not found"); - - let packed = alice_antenna - .to_owned() - .pack() - .await - .expect("Unable to pack"); - - let packed_by_id = antenna::Model::pack_by_id(alice_antenna.id.to_owned()) - .await - .expect("Unable to pack"); - - let result = schema::Antenna { - id: alice_antenna.id, - created_at: alice_antenna.created_at.into(), - name: "Alice Antenna".to_string(), - keywords: vec![ - vec!["foo".to_string(), "bar".to_string()], - vec!["foobar".to_string()], - ], - exclude_keywords: vec![ - vec!["abc".to_string()], - vec!["def".to_string(), "ghi".to_string()], - ], - src: schema::AntennaSrc::All, - user_list_id: None, - user_group_id: None, - users: vec![], - instances: vec![], - case_sensitive: true, - notify: true, - with_replies: false, - with_file: false, - has_unread_note: false, - }; - - assert_eq!(packed, result); - assert_eq!(packed_by_id, result); - - cleanup().await; - } - - #[tokio::test] - async fn unread_note() { - prepare().await; - let db = database::get_database().unwrap(); - - let (alice, alice_antenna) = user::Entity::find() - .filter(user::Column::Username.eq("alice")) - .find_also_related(antenna::Entity) - .one(db) - .await - .unwrap() - .expect("alice not found"); - let alice_antenna = alice_antenna.expect("alice's antenna not found"); - let packed = alice_antenna - .to_owned() - .pack() - .await - .expect("Unable to pack"); - assert_eq!(packed.has_unread_note, false); - - let note_model = note::Entity::find() - .filter(note::Column::UserId.eq(alice.id)) - .one(db) - .await - .unwrap() - .expect("note not found"); - let antenna_note = antenna_note::Model { - id: util::id::create_id(0).unwrap(), - antenna_id: alice_antenna.id.to_owned(), - note_id: note_model.id.to_owned(), - read: false, - }; - antenna_note - .into_active_model() - .reset_all() - .insert(db) - .await - .unwrap(); - let packed = alice_antenna - .to_owned() - .pack() - .await - .expect("Unable to pack"); - assert_eq!(packed.has_unread_note, true); - - cleanup().await; - } -} diff --git a/packages/backend/package.json b/packages/backend/package.json index 745abb250..15c673705 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -34,6 +34,7 @@ "@koa/cors": "3.4.3", "@koa/multer": "3.0.2", "@koa/router": "9.0.1", + "@paralleldrive/cuid2": "^2.2.2", "@peertube/http-signature": "1.7.0", "@redocly/openapi-core": "1.0.0-beta.131", "@sinonjs/fake-timers": "9.1.2", diff --git a/packages/backend/src/db/postgre.ts b/packages/backend/src/db/postgre.ts index 2e24bf670..8be877cd5 100644 --- a/packages/backend/src/db/postgre.ts +++ b/packages/backend/src/db/postgre.ts @@ -76,10 +76,8 @@ import { entities as charts } from "@/services/chart/entities.js"; import { envOption } from "../env.js"; import { dbLogger } from "./logger.js"; import { redisClient } from "./redis.js"; -import { nativeInitDatabase } from "native-utils/built/index.js"; const sqlLogger = dbLogger.createSubLogger("sql", "gray", false); - class MyCustomLogger implements Logger { private highlight(sql: string) { return highlight.highlight(sql, { @@ -219,11 +217,6 @@ export const db = new DataSource({ }); export async function initDb(force = false) { - await nativeInitDatabase( - `postgres://${config.db.user}:${encodeURIComponent(config.db.pass)}@${ - config.db.host - }:${config.db.port}/${config.db.db}`, - ); if (force) { if (db.isInitialized) { await db.destroy(); diff --git a/packages/backend/src/misc/convert-id.ts b/packages/backend/src/misc/convert-id.ts new file mode 100644 index 000000000..5458ae657 --- /dev/null +++ b/packages/backend/src/misc/convert-id.ts @@ -0,0 +1,35 @@ +export enum IdType { + IceshrimpId, + MastodonId +} + +const chars = '0123456789abcdefghijklmnopqrstuvwxyz'; + +//FIXME: This implementation breaks for IceshrimpIDs with leading zeroes +//FIXME: Make this idempotent +export function convertId(id: string, target: IdType): string { + if (target == IdType.IceshrimpId) { + let input = BigInt(id); + let result = ''; + + while (input !== 0n) { + result = chars.at(Number(input % 36n)) + result; + input /= 36n; + } + + return result; + } + else if (target == IdType.MastodonId) { + let result = 0n; + const iter = id.toLowerCase().split('').reverse(); + + for (let i = 0; i < iter.length; i++){ + const char = iter[i]; + if (!chars.includes(char)) throw new Error('Invalid ID'); + result += BigInt(chars.indexOf(char)) * BigInt(36 ** i); + } + + return result.toString(); + } + throw new Error('Unknown ID type'); +} diff --git a/packages/backend/src/misc/gen-id.ts b/packages/backend/src/misc/gen-id.ts index 580c39c3c..fb92dd808 100644 --- a/packages/backend/src/misc/gen-id.ts +++ b/packages/backend/src/misc/gen-id.ts @@ -1,12 +1,14 @@ +import { init, createId } from "@paralleldrive/cuid2"; import config from "@/config/index.js"; -import { - nativeCreateId, - nativeInitIdGenerator, -} from "native-utils/built/index.js"; -const length = Math.min(Math.max(config.cuid?.length ?? 16, 16), 24); -const fingerprint = config.cuid?.fingerprint ?? ""; -nativeInitIdGenerator(length, fingerprint); +const TIME2000 = 946684800000; +const TIMESTAMP_LENGTH = 8; + +const length = + Math.min(Math.max(config.cuid?.length ?? 16, 16), 24) - TIMESTAMP_LENGTH; +const fingerprint = `${config.cuid?.fingerprint ?? ""}${createId()}`; + +const genCuid2 = init({ length, fingerprint }); /** * The generated ID results in the form of `[8 chars timestamp] + [cuid2]`. @@ -17,5 +19,9 @@ nativeInitIdGenerator(length, fingerprint); * Ref: https://github.com/paralleldrive/cuid2#parameterized-length */ export function genId(date?: Date): string { - return nativeCreateId((date ?? new Date()).getTime()); + const now = (date ?? new Date()).getTime(); + const time = Math.max(now - TIME2000, 0); + const timestamp = time.toString(36).padStart(TIMESTAMP_LENGTH, "0"); + + return `${timestamp}${genCuid2()}`; } diff --git a/packages/backend/src/misc/secure-rndstr.ts b/packages/backend/src/misc/secure-rndstr.ts index 3d69a4d4a..cf667fcf9 100644 --- a/packages/backend/src/misc/secure-rndstr.ts +++ b/packages/backend/src/misc/secure-rndstr.ts @@ -1,5 +1,19 @@ -import { nativeRandomStr } from "native-utils/built/index.js"; +import * as crypto from "node:crypto"; -export function secureRndstr(length = 32, _ = true): string { - return nativeRandomStr(length); +const charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; + +export function secureRndstr(length = 32): string { + let str = ""; + + for (let i = 0; i < length; i++) { + let rand = Math.floor( + (crypto.randomBytes(1).readUInt8(0) / 0xff) * charset.length, + ); + if (rand === charset.length) { + rand = charset.length - 1; + } + str += charset.charAt(rand); + } + + return str; } diff --git a/packages/backend/src/models/repositories/antenna.ts b/packages/backend/src/models/repositories/antenna.ts index d66aab4ee..bcbc4c035 100644 --- a/packages/backend/src/models/repositories/antenna.ts +++ b/packages/backend/src/models/repositories/antenna.ts @@ -1,14 +1,33 @@ import { db } from "@/db/postgre.js"; import { Antenna } from "@/models/entities/antenna.js"; -import { - NativeAntennaSchema, - nativePackAntennaById, -} from "native-utils/built/index.js"; +import type { Packed } from "@/misc/schema.js"; +import { UserGroupJoinings } from "../index.js"; export const AntennaRepository = db.getRepository(Antenna).extend({ - async pack(src: Antenna["id"] | Antenna): Promise { - const id = typeof src === "object" ? src.id : src; + async pack(src: Antenna["id"] | Antenna): Promise> { + const antenna = + typeof src === "object" ? src : await this.findOneByOrFail({ id: src }); - return await nativePackAntennaById(id); + const userGroupJoining = antenna.userGroupJoiningId + ? await UserGroupJoinings.findOneBy({ id: antenna.userGroupJoiningId }) + : null; + + return { + id: antenna.id, + createdAt: antenna.createdAt.toISOString(), + name: antenna.name, + keywords: antenna.keywords, + excludeKeywords: antenna.excludeKeywords, + src: antenna.src, + userListId: antenna.userListId, + userGroupId: userGroupJoining ? userGroupJoining.userGroupId : null, + users: antenna.users, + instances: antenna.instances, + caseSensitive: antenna.caseSensitive, + notify: antenna.notify, + withReplies: antenna.withReplies, + withFile: antenna.withFile, + hasUnreadNote: false, + }; }, }); diff --git a/packages/backend/src/server/api/common/generate-native-user-token.ts b/packages/backend/src/server/api/common/generate-native-user-token.ts index 5a8b41b70..5531fca67 100644 --- a/packages/backend/src/server/api/common/generate-native-user-token.ts +++ b/packages/backend/src/server/api/common/generate-native-user-token.ts @@ -1,3 +1,3 @@ import { secureRndstr } from "@/misc/secure-rndstr.js"; -export default () => secureRndstr(16, true); +export default () => secureRndstr(16); diff --git a/packages/backend/src/server/api/endpoints/app/create.ts b/packages/backend/src/server/api/endpoints/app/create.ts index 013c5a10b..2317ac0a4 100644 --- a/packages/backend/src/server/api/endpoints/app/create.ts +++ b/packages/backend/src/server/api/endpoints/app/create.ts @@ -41,7 +41,7 @@ export default define(meta, paramDef, async (ps, user) => { includeSecret: true, }); // Generate secret - const secret = secureRndstr(32, true); + const secret = secureRndstr(32); // for backward compatibility const permission = unique( diff --git a/packages/backend/src/server/api/endpoints/auth/accept.ts b/packages/backend/src/server/api/endpoints/auth/accept.ts index 8e6ad6527..194611ff6 100644 --- a/packages/backend/src/server/api/endpoints/auth/accept.ts +++ b/packages/backend/src/server/api/endpoints/auth/accept.ts @@ -38,7 +38,7 @@ export default define(meta, paramDef, async (ps, user) => { } // Generate access token - const accessToken = secureRndstr(32, true); + const accessToken = secureRndstr(32); // Fetch exist access token const exist = await AccessTokens.exist({ diff --git a/packages/backend/src/server/api/endpoints/miauth/gen-token.ts b/packages/backend/src/server/api/endpoints/miauth/gen-token.ts index 0525d79a7..721c402fb 100644 --- a/packages/backend/src/server/api/endpoints/miauth/gen-token.ts +++ b/packages/backend/src/server/api/endpoints/miauth/gen-token.ts @@ -44,7 +44,7 @@ export const paramDef = { export default define(meta, paramDef, async (ps, user) => { // Generate access token - const accessToken = secureRndstr(32, true); + const accessToken = secureRndstr(32); const now = new Date(); diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index 9e8c45886..766c02b37 100644 --- a/packages/backend/src/server/api/index.ts +++ b/packages/backend/src/server/api/index.ts @@ -25,10 +25,7 @@ import discord from "./service/discord.js"; import github from "./service/github.js"; import twitter from "./service/twitter.js"; import { koaBody } from "koa-body"; -import { - convertId, - IdConvertType as IdType, -} from "../../../native-utils/built/index.js"; +import { convertId, IdType } from "@/misc/convert-id.js"; import { convertAttachment } from "./mastodon/converters.js"; // re-export native rust id conversion (function and enum) diff --git a/yarn.lock b/yarn.lock index 3036cd7d3..9482c634b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2058,24 +2058,6 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:2.16.1": - version: 2.16.1 - resolution: "@napi-rs/cli@npm:2.16.1" - bin: - napi: scripts/index.js - checksum: 5f61712cf1a4002b7b9b65bc4a6f2a7df68b197cfc7024c7d28820e3b12b5e9c0baa0d85f262f25dbf928586ce01c5c06837754f9f98ef4ebafa55dd027c6837 - languageName: node - linkType: hard - -"@napi-rs/cli@npm:^2.16.1": - version: 2.16.2 - resolution: "@napi-rs/cli@npm:2.16.2" - bin: - napi: scripts/index.js - checksum: 98f2905fbc2dbd84417899b12917d1e3b7b02041f8f0ed90138eaf0461a883646c157bd6192c1f6bc8ced6f122b06186183b72d3833810c4df3d7904fe01fc6b - languageName: node - linkType: hard - "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1": version: 5.1.1-v1 resolution: "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1" @@ -2085,6 +2067,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:^1.1.5": + version: 1.3.2 + resolution: "@noble/hashes@npm:1.3.2" + checksum: fe23536b436539d13f90e4b9be843cc63b1b17666a07634a2b1259dded6f490be3d050249e6af98076ea8f2ea0d56f578773c2197f2aa0eeaa5fba5bc18ba474 + languageName: node + linkType: hard + "@nodelib/fs.scandir@npm:2.1.5": version: 2.1.5 resolution: "@nodelib/fs.scandir@npm:2.1.5" @@ -2161,6 +2150,15 @@ __metadata: languageName: node linkType: hard +"@paralleldrive/cuid2@npm:^2.2.2": + version: 2.2.2 + resolution: "@paralleldrive/cuid2@npm:2.2.2" + dependencies: + "@noble/hashes": ^1.1.5 + checksum: f7f6ac70e0268ec2c72e555719240d5c2c9a859ce541ac1c637eed3f3ee971b42881d299dedafbded53e7365b9e98176c5a31c442c1112f7e9e7306f2fd0ecbb + languageName: node + linkType: hard + "@peertube/http-signature@npm:1.7.0": version: 1.7.0 resolution: "@peertube/http-signature@npm:1.7.0" @@ -4756,7 +4754,7 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.0.2, acorn-walk@npm:^8.1.1, acorn-walk@npm:^8.2.0": +"acorn-walk@npm:^8.0.2, acorn-walk@npm:^8.1.1": version: 8.2.0 resolution: "acorn-walk@npm:8.2.0" checksum: 1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1 @@ -4836,16 +4834,6 @@ __metadata: languageName: node linkType: hard -"aggregate-error@npm:^4.0.0": - version: 4.0.1 - resolution: "aggregate-error@npm:4.0.1" - dependencies: - clean-stack: ^4.0.0 - indent-string: ^5.0.0 - checksum: bb3ffdfd13447800fff237c2cba752c59868ee669104bb995dfbbe0b8320e967d679e683dabb640feb32e4882d60258165cde0baafc4cd467cc7d275a13ad6b5 - languageName: node - linkType: hard - "ajv-keywords@npm:^3.5.2": version: 3.5.2 resolution: "ajv-keywords@npm:3.5.2" @@ -4987,7 +4975,7 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^6.0.0, ansi-styles@npm:^6.1.0, ansi-styles@npm:^6.2.1": +"ansi-styles@npm:^6.1.0": version: 6.2.1 resolution: "ansi-styles@npm:6.2.1" checksum: ef940f2f0ced1a6347398da88a91da7930c33ecac3c77b72c5905f8b8fe402c52e6fde304ff5347f616e27a742da3f1dc76de98f6866c69251ad0b07a66776d9 @@ -5229,13 +5217,6 @@ __metadata: languageName: node linkType: hard -"array-find-index@npm:^1.0.1": - version: 1.0.2 - resolution: "array-find-index@npm:1.0.2" - checksum: aac128bf369e1ac6c06ff0bb330788371c0e256f71279fb92d745e26fb4b9db8920e485b4ec25e841c93146bf71a34dcdbcefa115e7e0f96927a214d237b7081 - languageName: node - linkType: hard - "array-includes@npm:^3.1.6": version: 3.1.6 resolution: "array-includes@npm:3.1.6" @@ -5338,13 +5319,6 @@ __metadata: languageName: node linkType: hard -"arrgv@npm:^1.0.2": - version: 1.0.2 - resolution: "arrgv@npm:1.0.2" - checksum: 470bbb406ea3b34810dd8b03c0b33282617a42d9fce0ab45d58596efefd042fc548eda49161fa8e3f607cbe9df90e7a67003a09043ab9081eff70f97c63dd0e2 - languageName: node - linkType: hard - "arrify@npm:^1.0.1": version: 1.0.1 resolution: "arrify@npm:1.0.1" @@ -5352,13 +5326,6 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^3.0.0": - version: 3.0.0 - resolution: "arrify@npm:3.0.0" - checksum: d6c6f3dad9571234f320e130d57fddb2cc283c87f2ac7df6c7005dffc5161b7bb9376f4be655ed257050330336e84afc4f3020d77696ad231ff580a94ae5aba6 - languageName: node - linkType: hard - "asap@npm:^2.0.0, asap@npm:~2.0.3": version: 2.0.6 resolution: "asap@npm:2.0.6" @@ -5519,66 +5486,6 @@ __metadata: languageName: node linkType: hard -"ava@npm:5.1.1": - version: 5.1.1 - resolution: "ava@npm:5.1.1" - dependencies: - acorn: ^8.8.1 - acorn-walk: ^8.2.0 - ansi-styles: ^6.2.1 - arrgv: ^1.0.2 - arrify: ^3.0.0 - callsites: ^4.0.0 - cbor: ^8.1.0 - chalk: ^5.2.0 - chokidar: ^3.5.3 - chunkd: ^2.0.1 - ci-info: ^3.7.1 - ci-parallel-vars: ^1.0.1 - clean-yaml-object: ^0.1.0 - cli-truncate: ^3.1.0 - code-excerpt: ^4.0.0 - common-path-prefix: ^3.0.0 - concordance: ^5.0.4 - currently-unhandled: ^0.4.1 - debug: ^4.3.4 - del: ^7.0.0 - emittery: ^1.0.1 - figures: ^5.0.0 - globby: ^13.1.3 - ignore-by-default: ^2.1.0 - indent-string: ^5.0.0 - is-error: ^2.2.2 - is-plain-object: ^5.0.0 - is-promise: ^4.0.0 - matcher: ^5.0.0 - mem: ^9.0.2 - ms: ^2.1.3 - p-event: ^5.0.1 - p-map: ^5.5.0 - picomatch: ^2.3.1 - pkg-conf: ^4.0.0 - plur: ^5.1.0 - pretty-ms: ^8.0.0 - resolve-cwd: ^3.0.0 - slash: ^3.0.0 - stack-utils: ^2.0.6 - strip-ansi: ^7.0.1 - supertap: ^3.0.1 - temp-dir: ^3.0.0 - write-file-atomic: ^5.0.0 - yargs: ^17.6.2 - peerDependencies: - "@ava/typescript": "*" - peerDependenciesMeta: - "@ava/typescript": - optional: true - bin: - ava: entrypoints/cli.mjs - checksum: cae5771ea651418c966dc7779128121f933aba7a39d86d8663c2097435bfc7264b0893b966d9ade3325a1051854d82b220e2db779482414a6283cb388ba00fb3 - languageName: node - linkType: hard - "available-typed-arrays@npm:^1.0.5": version: 1.0.5 resolution: "available-typed-arrays@npm:1.0.5" @@ -5837,6 +5744,7 @@ __metadata: "@koa/cors": 3.4.3 "@koa/multer": 3.0.2 "@koa/router": 9.0.1 + "@paralleldrive/cuid2": ^2.2.2 "@peertube/http-signature": 1.7.0 "@redocly/openapi-core": 1.0.0-beta.131 "@sinonjs/fake-timers": 9.1.2 @@ -6161,13 +6069,6 @@ __metadata: languageName: node linkType: hard -"blueimp-md5@npm:^2.10.0": - version: 2.19.0 - resolution: "blueimp-md5@npm:2.19.0" - checksum: 28095dcbd2c67152a2938006e8d7c74c3406ba6556071298f872505432feb2c13241b0476644160ee0a5220383ba94cb8ccdac0053b51f68d168728f9c382530 - languageName: node - linkType: hard - "blurhash@npm:2.0.5": version: 2.0.5 resolution: "blurhash@npm:2.0.5" @@ -6610,13 +6511,6 @@ __metadata: languageName: node linkType: hard -"callsites@npm:^4.0.0": - version: 4.0.0 - resolution: "callsites@npm:4.0.0" - checksum: ad3c3a57328a539c0d671cf1ca500abf09461b762807fc545a132026bdf87705fee9c299e1adb38b133c29201a3b04fbf4f2b90d8fa1d9e00ef507e803737cf2 - languageName: node - linkType: hard - "camelcase-keys@npm:^6.2.2": version: 6.2.2 resolution: "camelcase-keys@npm:6.2.2" @@ -6698,7 +6592,7 @@ __metadata: languageName: node linkType: hard -"cbor@npm:8.1.0, cbor@npm:^8.1.0": +"cbor@npm:8.1.0": version: 8.1.0 resolution: "cbor@npm:8.1.0" dependencies: @@ -6736,7 +6630,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:5.3.0, chalk@npm:^5.2.0": +"chalk@npm:5.3.0": version: 5.3.0 resolution: "chalk@npm:5.3.0" checksum: 623922e077b7d1e9dedaea6f8b9e9352921f8ae3afe739132e0e00c275971bdd331268183b2628cf4ab1727c45ea1f28d7e24ac23ce1db1eb653c414ca8a5a80 @@ -6930,27 +6824,13 @@ __metadata: languageName: node linkType: hard -"chunkd@npm:^2.0.1": - version: 2.0.1 - resolution: "chunkd@npm:2.0.1" - checksum: bab8cc08c752a3648984385dc6f61d751e89dbeef648d22a3b661e1d470eaa0f5182f0b4303710f13ae83d2f85144f8eb2dde7a975861d9021b5c56b881f457b - languageName: node - linkType: hard - -"ci-info@npm:^3.2.0, ci-info@npm:^3.3.0, ci-info@npm:^3.6.1, ci-info@npm:^3.7.1": +"ci-info@npm:^3.2.0, ci-info@npm:^3.3.0, ci-info@npm:^3.6.1": version: 3.8.0 resolution: "ci-info@npm:3.8.0" checksum: d0a4d3160497cae54294974a7246202244fff031b0a6ea20dd57b10ec510aa17399c41a1b0982142c105f3255aff2173e5c0dd7302ee1b2f28ba3debda375098 languageName: node linkType: hard -"ci-parallel-vars@npm:^1.0.1": - version: 1.0.1 - resolution: "ci-parallel-vars@npm:1.0.1" - checksum: ae859831f7e8e3585db731b8306c336616e37bd709dad1d7775ea4c0731aefd94741dabb48201edc6827d000008fd7fb72cb977967614ee2d99d6b499f0c35fe - languageName: node - linkType: hard - "city-timezones@npm:^1.2.1": version: 1.2.1 resolution: "city-timezones@npm:1.2.1" @@ -7004,22 +6884,6 @@ __metadata: languageName: node linkType: hard -"clean-stack@npm:^4.0.0": - version: 4.2.0 - resolution: "clean-stack@npm:4.2.0" - dependencies: - escape-string-regexp: 5.0.0 - checksum: 373f656a31face5c615c0839213b9b542a0a48057abfb1df66900eab4dc2a5c6097628e4a0b5aa559cdfc4e66f8a14ea47be9681773165a44470ef5fb8ccc172 - languageName: node - linkType: hard - -"clean-yaml-object@npm:^0.1.0": - version: 0.1.0 - resolution: "clean-yaml-object@npm:0.1.0" - checksum: 0374ad2f1fbd4984ecf56ebc62200092f6372b9ccf1b7971bb979c328fb12fe76e759fb1e8adc491c80b7b1861f9f00c7f19813dd2a0f49c88231422c70451f4 - languageName: node - linkType: hard - "cli-cursor@npm:^3.1.0": version: 3.1.0 resolution: "cli-cursor@npm:3.1.0" @@ -7075,16 +6939,6 @@ __metadata: languageName: node linkType: hard -"cli-truncate@npm:^3.1.0": - version: 3.1.0 - resolution: "cli-truncate@npm:3.1.0" - dependencies: - slice-ansi: ^5.0.0 - string-width: ^5.0.0 - checksum: c3243e41974445691c63f8b405df1d5a24049dc33d324fe448dc572e561a7b772ae982692900b1a5960901cc4fc7def25a629b9c69a4208ee89d12ab3332617a - languageName: node - linkType: hard - "client@workspace:packages/client": version: 0.0.0-use.local resolution: "client@workspace:packages/client" @@ -7333,15 +7187,6 @@ __metadata: languageName: node linkType: hard -"code-excerpt@npm:^4.0.0": - version: 4.0.0 - resolution: "code-excerpt@npm:4.0.0" - dependencies: - convert-to-spaces: ^2.0.1 - checksum: d57137d8f4825879283a828cc02a1115b56858dc54ed06c625c8f67d6685d1becd2fbaa7f0ab19ecca1f5cca03f8c97bbc1f013cab40261e4d3275032e65efe9 - languageName: node - linkType: hard - "code-point-at@npm:^1.0.0": version: 1.1.0 resolution: "code-point-at@npm:1.1.0" @@ -7555,13 +7400,6 @@ __metadata: languageName: node linkType: hard -"common-path-prefix@npm:^3.0.0": - version: 3.0.0 - resolution: "common-path-prefix@npm:3.0.0" - checksum: fdb3c4f54e51e70d417ccd950c07f757582de800c0678ca388aedefefc84982039f346f9fd9a1252d08d2da9e9ef4019f580a1d1d3a10da031e4bb3c924c5818 - languageName: node - linkType: hard - "common-tags@npm:^1.8.0": version: 1.8.2 resolution: "common-tags@npm:1.8.2" @@ -7614,22 +7452,6 @@ __metadata: languageName: node linkType: hard -"concordance@npm:^5.0.4": - version: 5.0.4 - resolution: "concordance@npm:5.0.4" - dependencies: - date-time: ^3.1.0 - esutils: ^2.0.3 - fast-diff: ^1.2.0 - js-string-escape: ^1.0.1 - lodash: ^4.17.15 - md5-hex: ^3.0.1 - semver: ^7.3.2 - well-known-symbols: ^2.0.0 - checksum: 749153ba711492feb7c3d2f5bb04c107157440b3e39509bd5dd19ee7b3ac751d1e4cd75796d9f702e0a713312dbc661421c68aa4a2c34d5f6d91f47e3a1c64a6 - languageName: node - linkType: hard - "condense-newlines@npm:^0.2.1": version: 0.2.1 resolution: "condense-newlines@npm:0.2.1" @@ -7707,13 +7529,6 @@ __metadata: languageName: node linkType: hard -"convert-to-spaces@npm:^2.0.1": - version: 2.0.1 - resolution: "convert-to-spaces@npm:2.0.1" - checksum: bbb324e5916fe9866f65c0ff5f9c1ea933764d0bdb09fccaf59542e40545ed483db6b2339c6d9eb56a11965a58f1a6038f3174f0e2fb7601343c7107ca5e2751 - languageName: node - linkType: hard - "cookies@npm:~0.8.0": version: 0.8.0 resolution: "cookies@npm:0.8.0" @@ -8006,15 +7821,6 @@ __metadata: languageName: node linkType: hard -"currently-unhandled@npm:^0.4.1": - version: 0.4.1 - resolution: "currently-unhandled@npm:0.4.1" - dependencies: - array-find-index: ^1.0.1 - checksum: 1f59fe10b5339b54b1a1eee110022f663f3495cf7cf2f480686e89edc7fa8bfe42dbab4b54f85034bc8b092a76cc7becbc2dad4f9adad332ab5831bec39ad540 - languageName: node - linkType: hard - "custom-event-polyfill@npm:^1.0.7": version: 1.0.7 resolution: "custom-event-polyfill@npm:1.0.7" @@ -8154,15 +7960,6 @@ __metadata: languageName: node linkType: hard -"date-time@npm:^3.1.0": - version: 3.1.0 - resolution: "date-time@npm:3.1.0" - dependencies: - time-zone: ^1.0.0 - checksum: f9cfcd1b15dfeabab15c0b9d18eb9e4e2d9d4371713564178d46a8f91ad577a290b5178b80050718d02d9c0cf646f8a875011e12d1ed05871e9f72c72c8a8fe6 - languageName: node - linkType: hard - "dayjs@npm:^1.10.4, dayjs@npm:^1.11.7": version: 1.11.9 resolution: "dayjs@npm:1.11.9" @@ -8494,22 +8291,6 @@ __metadata: languageName: node linkType: hard -"del@npm:^7.0.0": - version: 7.0.0 - resolution: "del@npm:7.0.0" - dependencies: - globby: ^13.1.2 - graceful-fs: ^4.2.10 - is-glob: ^4.0.3 - is-path-cwd: ^3.0.0 - is-path-inside: ^4.0.0 - p-map: ^5.5.0 - rimraf: ^3.0.2 - slash: ^4.0.0 - checksum: 33e5077f18b5dfbe81971d1f8a2cd8bf676dd5ede491bab85ec17a4a1d59001bd3ec47fd38e9a4ae01a3c98c07b98c7b3dc56190b86d88926798802d7858d827 - languageName: node - linkType: hard - "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -8893,13 +8674,6 @@ __metadata: languageName: node linkType: hard -"emittery@npm:^1.0.1": - version: 1.0.1 - resolution: "emittery@npm:1.0.1" - checksum: d95faee6ffb2e023cadaa6804265fea5298c53d079f170112af8dfae3e141761363ea4510966128259346418e3ec7639310fd75059ecce2423bf8afd07004226 - languageName: node - linkType: hard - "emoji-regex@npm:^8.0.0": version: 8.0.0 resolution: "emoji-regex@npm:8.0.0" @@ -9283,13 +9057,6 @@ __metadata: languageName: node linkType: hard -"escape-string-regexp@npm:5.0.0, escape-string-regexp@npm:^5.0.0": - version: 5.0.0 - resolution: "escape-string-regexp@npm:5.0.0" - checksum: 20daabe197f3cb198ec28546deebcf24b3dbb1a5a269184381b3116d12f0532e06007f4bc8da25669d6a7f8efb68db0758df4cd981f57bc5b57f521a3e12c59e - languageName: node - linkType: hard - "escape-string-regexp@npm:^1.0.2, escape-string-regexp@npm:^1.0.3, escape-string-regexp@npm:^1.0.5": version: 1.0.5 resolution: "escape-string-regexp@npm:1.0.5" @@ -9304,6 +9071,13 @@ __metadata: languageName: node linkType: hard +"escape-string-regexp@npm:^5.0.0": + version: 5.0.0 + resolution: "escape-string-regexp@npm:5.0.0" + checksum: 20daabe197f3cb198ec28546deebcf24b3dbb1a5a269184381b3116d12f0532e06007f4bc8da25669d6a7f8efb68db0758df4cd981f57bc5b57f521a3e12c59e + languageName: node + linkType: hard + "escodegen@npm:^2.0.0": version: 2.1.0 resolution: "escodegen@npm:2.1.0" @@ -9942,7 +9716,7 @@ __metadata: languageName: node linkType: hard -"esutils@npm:^2.0.2, esutils@npm:^2.0.3": +"esutils@npm:^2.0.2": version: 2.0.3 resolution: "esutils@npm:2.0.3" checksum: 22b5b08f74737379a840b8ed2036a5fb35826c709ab000683b092d9054e5c2a82c27818f12604bfc2a9a76b90b6834ef081edbc1c7ae30d1627012e067c6ec87 @@ -10437,16 +10211,6 @@ __metadata: languageName: node linkType: hard -"figures@npm:^5.0.0": - version: 5.0.0 - resolution: "figures@npm:5.0.0" - dependencies: - escape-string-regexp: ^5.0.0 - is-unicode-supported: ^1.2.0 - checksum: e6e8b6d1df2f554d4effae4a5ceff5d796f9449f6d4e912d74dab7d5f25916ecda6c305b9084833157d56485a0c78b37164430ddc5675bcee1330e346710669e - languageName: node - linkType: hard - "file-entry-cache@npm:^6.0.1": version: 6.0.1 resolution: "file-entry-cache@npm:6.0.1" @@ -10573,16 +10337,6 @@ __metadata: languageName: node linkType: hard -"find-up@npm:^6.0.0": - version: 6.3.0 - resolution: "find-up@npm:6.3.0" - dependencies: - locate-path: ^7.1.0 - path-exists: ^5.0.0 - checksum: 9a21b7f9244a420e54c6df95b4f6fc3941efd3c3e5476f8274eb452f6a85706e7a6a90de71353ee4f091fcb4593271a6f92810a324ec542650398f928783c280 - languageName: node - linkType: hard - "find-versions@npm:^5.0.0": version: 5.1.0 resolution: "find-versions@npm:5.1.0" @@ -11398,19 +11152,6 @@ __metadata: languageName: node linkType: hard -"globby@npm:^13.1.2, globby@npm:^13.1.3": - version: 13.2.2 - resolution: "globby@npm:13.2.2" - dependencies: - dir-glob: ^3.0.1 - fast-glob: ^3.3.0 - ignore: ^5.2.4 - merge2: ^1.4.1 - slash: ^4.0.0 - checksum: f3d84ced58a901b4fcc29c846983108c426631fe47e94872868b65565495f7bee7b3defd68923bd480582771fd4bbe819217803a164a618ad76f1d22f666f41e - languageName: node - linkType: hard - "glogg@npm:^1.0.0": version: 1.0.2 resolution: "glogg@npm:1.0.2" @@ -11493,7 +11234,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.0.0, graceful-fs@npm:^4.1.10, graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": +"graceful-fs@npm:^4.0.0, graceful-fs@npm:^4.1.10, graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: ac85f94da92d8eb6b7f5a8b20ce65e43d66761c55ce85ac96df6865308390da45a8d3f0296dd3a663de65d30ba497bd46c696cc1e248c72b13d6d567138a4fc7 @@ -12137,7 +11878,6 @@ __metadata: dependencies: "@bull-board/api": 5.6.0 "@bull-board/ui": 5.6.0 - "@napi-rs/cli": ^2.16.1 "@tensorflow/tfjs": ^3.21.0 "@types/gulp": 4.0.13 "@types/gulp-rename": 2.0.2 @@ -12210,13 +11950,6 @@ __metadata: languageName: node linkType: hard -"ignore-by-default@npm:^2.1.0": - version: 2.1.0 - resolution: "ignore-by-default@npm:2.1.0" - checksum: 2b2df4622b6a07a3e91893987be8f060dc553f7736b67e72aa2312041c450a6fa8371733d03c42f45a02e47ec824e961c2fba63a3d94fc59cbd669220a5b0d7a - languageName: node - linkType: hard - "ignore@npm:^5.0.5, ignore@npm:^5.1.1, ignore@npm:^5.2.0, ignore@npm:^5.2.4": version: 5.2.4 resolution: "ignore@npm:5.2.4" @@ -12274,13 +12007,6 @@ __metadata: languageName: node linkType: hard -"indent-string@npm:^5.0.0": - version: 5.0.0 - resolution: "indent-string@npm:5.0.0" - checksum: e466c27b6373440e6d84fbc19e750219ce25865cb82d578e41a6053d727e5520dc5725217d6eb1cc76005a1bb1696a0f106d84ce7ebda3033b963a38583fb3b3 - languageName: node - linkType: hard - "indexes-of@npm:^1.0.1": version: 1.0.1 resolution: "indexes-of@npm:1.0.1" @@ -12456,7 +12182,7 @@ __metadata: languageName: node linkType: hard -"irregular-plurals@npm:^3.2.0, irregular-plurals@npm:^3.3.0": +"irregular-plurals@npm:^3.2.0": version: 3.5.0 resolution: "irregular-plurals@npm:3.5.0" checksum: 5b663091dc89155df7b2e9d053e8fb11941a0c4be95c4b6549ed3ea020489fdf4f75ea586c915b5b543704252679a5a6e8c6c3587da5ac3fc57b12da90a9aee7 @@ -12709,13 +12435,6 @@ __metadata: languageName: node linkType: hard -"is-error@npm:^2.2.2": - version: 2.2.2 - resolution: "is-error@npm:2.2.2" - checksum: a97b39587150f0d38f9f93f64699807fe3020fe5edbd63548f234dc2ba96fd7c776d66c062bf031dfeb93c7f48db563ff6bde588418ca041da37c659a416f055 - languageName: node - linkType: hard - "is-expression@npm:^4.0.0": version: 4.0.0 resolution: "is-expression@npm:4.0.0" @@ -12765,13 +12484,6 @@ __metadata: languageName: node linkType: hard -"is-fullwidth-code-point@npm:^4.0.0": - version: 4.0.0 - resolution: "is-fullwidth-code-point@npm:4.0.0" - checksum: 8ae89bf5057bdf4f57b346fb6c55e9c3dd2549983d54191d722d5c739397a903012cc41a04ee3403fd872e811243ef91a7c5196da7b5841dc6b6aae31a264a8d - languageName: node - linkType: hard - "is-generator-fn@npm:^2.0.0": version: 2.1.0 resolution: "is-generator-fn@npm:2.1.0" @@ -12917,13 +12629,6 @@ __metadata: languageName: node linkType: hard -"is-path-cwd@npm:^3.0.0": - version: 3.0.0 - resolution: "is-path-cwd@npm:3.0.0" - checksum: bc34d13b6a03dfca4a3ab6a8a5ba78ae4b24f4f1db4b2b031d2760c60d0913bd16a4b980dcb4e590adfc906649d5f5132684079a3972bd219da49deebb9adea8 - languageName: node - linkType: hard - "is-path-inside@npm:^3.0.2, is-path-inside@npm:^3.0.3": version: 3.0.3 resolution: "is-path-inside@npm:3.0.3" @@ -12931,13 +12636,6 @@ __metadata: languageName: node linkType: hard -"is-path-inside@npm:^4.0.0": - version: 4.0.0 - resolution: "is-path-inside@npm:4.0.0" - checksum: 8810fa11c58e6360b82c3e0d6cd7d9c7d0392d3ac9eb10f980b81f9839f40ac6d1d6d6f05d069db0d227759801228f0b072e1b6c343e4469b065ab5fe0b68fe5 - languageName: node - linkType: hard - "is-plain-obj@npm:^1.0.0, is-plain-obj@npm:^1.1.0": version: 1.1.0 resolution: "is-plain-obj@npm:1.1.0" @@ -12982,13 +12680,6 @@ __metadata: languageName: node linkType: hard -"is-promise@npm:^4.0.0": - version: 4.0.0 - resolution: "is-promise@npm:4.0.0" - checksum: 0b46517ad47b00b6358fd6553c83ec1f6ba9acd7ffb3d30a0bf519c5c69e7147c132430452351b8a9fc198f8dd6c4f76f8e6f5a7f100f8c77d57d9e0f4261a8a - languageName: node - linkType: hard - "is-regex@npm:^1.0.3, is-regex@npm:^1.1.4": version: 1.1.4 resolution: "is-regex@npm:1.1.4" @@ -13106,13 +12797,6 @@ __metadata: languageName: node linkType: hard -"is-unicode-supported@npm:^1.2.0": - version: 1.3.0 - resolution: "is-unicode-supported@npm:1.3.0" - checksum: 20a1fc161afafaf49243551a5ac33b6c4cf0bbcce369fcd8f2951fbdd000c30698ce320de3ee6830497310a8f41880f8066d440aa3eb0a853e2aa4836dd89abc - languageName: node - linkType: hard - "is-url@npm:^1.2.4": version: 1.2.4 resolution: "is-url@npm:1.2.4" @@ -14332,13 +14016,6 @@ __metadata: languageName: node linkType: hard -"js-string-escape@npm:^1.0.1": - version: 1.0.1 - resolution: "js-string-escape@npm:1.0.1" - checksum: f11e0991bf57e0c183b55c547acec85bd2445f043efc9ea5aa68b41bd2a3e7d3ce94636cb233ae0d84064ba4c1a505d32e969813c5b13f81e7d4be12c59256fe - languageName: node - linkType: hard - "js-stringify@npm:^1.0.2": version: 1.0.2 resolution: "js-stringify@npm:1.0.2" @@ -14364,7 +14041,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.1": +"js-yaml@npm:^3.13.1": version: 3.14.1 resolution: "js-yaml@npm:3.14.1" dependencies: @@ -15205,13 +14882,6 @@ __metadata: languageName: node linkType: hard -"load-json-file@npm:^7.0.0": - version: 7.0.1 - resolution: "load-json-file@npm:7.0.1" - checksum: a560288da6891778321ef993e4bdbdf05374a4f3a3aeedd5ba6b64672798c830d748cfc59a2ec9891a3db30e78b3d04172e0dcb0d4828168289a393147ca0e74 - languageName: node - linkType: hard - "loader-runner@npm:^4.2.0": version: 4.3.0 resolution: "loader-runner@npm:4.3.0" @@ -15262,15 +14932,6 @@ __metadata: languageName: node linkType: hard -"locate-path@npm:^7.1.0": - version: 7.2.0 - resolution: "locate-path@npm:7.2.0" - dependencies: - p-locate: ^6.0.0 - checksum: c1b653bdf29beaecb3d307dfb7c44d98a2a98a02ebe353c9ad055d1ac45d6ed4e1142563d222df9b9efebc2bcb7d4c792b507fad9e7150a04c29530b7db570f8 - languageName: node - linkType: hard - "lodash.assignin@npm:^4.0.9": version: 4.2.0 resolution: "lodash.assignin@npm:4.2.0" @@ -15432,7 +15093,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.11, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.21, lodash@npm:^4.7.0, lodash@npm:~4.17.15": +"lodash@npm:^4.17.11, lodash@npm:^4.17.14, lodash@npm:^4.17.21, lodash@npm:^4.7.0, lodash@npm:~4.17.15": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -15629,15 +15290,6 @@ __metadata: languageName: node linkType: hard -"map-age-cleaner@npm:^0.1.3": - version: 0.1.3 - resolution: "map-age-cleaner@npm:0.1.3" - dependencies: - p-defer: ^1.0.0 - checksum: cb2804a5bcb3cbdfe4b59066ea6d19f5e7c8c196cd55795ea4c28f792b192e4c442426ae52524e5e1acbccf393d3bddacefc3d41f803e66453f6c4eda3650bc1 - languageName: node - linkType: hard - "map-cache@npm:^0.2.0, map-cache@npm:^0.2.2": version: 0.2.2 resolution: "map-cache@npm:0.2.2" @@ -15696,15 +15348,6 @@ __metadata: languageName: node linkType: hard -"matcher@npm:^5.0.0": - version: 5.0.0 - resolution: "matcher@npm:5.0.0" - dependencies: - escape-string-regexp: ^5.0.0 - checksum: 28f191c2d23fee0f6f32fd0181d9fe173b0ab815a919edba55605438a2f9fa40372e002574a1b17add981b0a8669c75bc6194318d065ed2dceffd8b160c38118 - languageName: node - linkType: hard - "math-expression-evaluator@npm:^1.2.14": version: 1.4.0 resolution: "math-expression-evaluator@npm:1.4.0" @@ -15719,15 +15362,6 @@ __metadata: languageName: node linkType: hard -"md5-hex@npm:^3.0.1": - version: 3.0.1 - resolution: "md5-hex@npm:3.0.1" - dependencies: - blueimp-md5: ^2.10.0 - checksum: 6799a19e8bdd3e0c2861b94c1d4d858a89220488d7885c1fa236797e367d0c2e5f2b789e05309307083503f85be3603a9686a5915568a473137d6b4117419cc2 - languageName: node - linkType: hard - "mdast-util-from-markdown@npm:^0.8.5": version: 0.8.5 resolution: "mdast-util-from-markdown@npm:0.8.5" @@ -15809,16 +15443,6 @@ __metadata: languageName: node linkType: hard -"mem@npm:^9.0.2": - version: 9.0.2 - resolution: "mem@npm:9.0.2" - dependencies: - map-age-cleaner: ^0.1.3 - mimic-fn: ^4.0.0 - checksum: 07829bb182af0e3ecf748dc2edb1c3b10a256ef10458f7e24d06561a2adc2b3ef34d14abe81678bbcedb46faa477e7370223f118b1a5e1252da5fe43496f3967 - languageName: node - linkType: hard - "meow@npm:^9.0.0": version: 9.0.0 resolution: "meow@npm:9.0.0" @@ -16424,9 +16048,6 @@ __metadata: "native-utils@workspace:packages/backend/native-utils": version: 0.0.0-use.local resolution: "native-utils@workspace:packages/backend/native-utils" - dependencies: - "@napi-rs/cli": 2.16.1 - ava: 5.1.1 languageName: unknown linkType: soft @@ -17199,22 +16820,6 @@ __metadata: languageName: node linkType: hard -"p-defer@npm:^1.0.0": - version: 1.0.0 - resolution: "p-defer@npm:1.0.0" - checksum: 4271b935c27987e7b6f229e5de4cdd335d808465604644cb7b4c4c95bef266735859a93b16415af8a41fd663ee9e3b97a1a2023ca9def613dba1bad2a0da0c7b - languageName: node - linkType: hard - -"p-event@npm:^5.0.1": - version: 5.0.1 - resolution: "p-event@npm:5.0.1" - dependencies: - p-timeout: ^5.0.2 - checksum: 3bdd8df6092e6b149f25e9c2eb1c0843b3b4279b07be2a2c72c02b65b267a8908c2040fefd606f2497b0f2bcefcd214f8ca5a74f0c883515d400ccf1d88d5683 - languageName: node - linkType: hard - "p-finally@npm:^1.0.0": version: 1.0.0 resolution: "p-finally@npm:1.0.0" @@ -17240,15 +16845,6 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^4.0.0": - version: 4.0.0 - resolution: "p-limit@npm:4.0.0" - dependencies: - yocto-queue: ^1.0.0 - checksum: 01d9d70695187788f984226e16c903475ec6a947ee7b21948d6f597bed788e3112cc7ec2e171c1d37125057a5f45f3da21d8653e04a3a793589e12e9e80e756b - languageName: node - linkType: hard - "p-locate@npm:^4.1.0": version: 4.1.0 resolution: "p-locate@npm:4.1.0" @@ -17267,15 +16863,6 @@ __metadata: languageName: node linkType: hard -"p-locate@npm:^6.0.0": - version: 6.0.0 - resolution: "p-locate@npm:6.0.0" - dependencies: - p-limit: ^4.0.0 - checksum: 2bfe5234efa5e7a4e74b30a5479a193fdd9236f8f6b4d2f3f69e3d286d9a7d7ab0c118a2a50142efcf4e41625def635bd9332d6cbf9cc65d85eb0718c579ab38 - languageName: node - linkType: hard - "p-map@npm:^4.0.0": version: 4.0.0 resolution: "p-map@npm:4.0.0" @@ -17285,15 +16872,6 @@ __metadata: languageName: node linkType: hard -"p-map@npm:^5.5.0": - version: 5.5.0 - resolution: "p-map@npm:5.5.0" - dependencies: - aggregate-error: ^4.0.0 - checksum: 065cb6fca6b78afbd070dd9224ff160dc23eea96e57863c09a0c8ea7ce921043f76854be7ee0abc295cff1ac9adcf700e79a1fbe3b80b625081087be58e7effb - languageName: node - linkType: hard - "p-queue@npm:6.6.2": version: 6.6.2 resolution: "p-queue@npm:6.6.2" @@ -17313,13 +16891,6 @@ __metadata: languageName: node linkType: hard -"p-timeout@npm:^5.0.2": - version: 5.1.0 - resolution: "p-timeout@npm:5.1.0" - checksum: f5cd4e17301ff1ff1d8dbf2817df0ad88c6bba99349fc24d8d181827176ad4f8aca649190b8a5b1a428dfd6ddc091af4606835d3e0cb0656e04045da5c9e270c - languageName: node - linkType: hard - "p-try@npm:^2.0.0": version: 2.2.0 resolution: "p-try@npm:2.2.0" @@ -17429,13 +17000,6 @@ __metadata: languageName: node linkType: hard -"parse-ms@npm:^3.0.0": - version: 3.0.0 - resolution: "parse-ms@npm:3.0.0" - checksum: fc602bba093835562321a67a9d6c8c9687ca4f26a09459a77e07ebd7efddd1a5766725ec60eb0c83a2abe67f7a23808f7deb1c1226727776eaf7f9607ae09db2 - languageName: node - linkType: hard - "parse-node-version@npm:^1.0.0": version: 1.0.1 resolution: "parse-node-version@npm:1.0.1" @@ -17533,13 +17097,6 @@ __metadata: languageName: node linkType: hard -"path-exists@npm:^5.0.0": - version: 5.0.0 - resolution: "path-exists@npm:5.0.0" - checksum: 8ca842868cab09423994596eb2c5ec2a971c17d1a3cb36dbf060592c730c725cd524b9067d7d2a1e031fef9ba7bd2ac6dc5ec9fb92aa693265f7be3987045254 - languageName: node - linkType: hard - "path-is-absolute@npm:1.0.1, path-is-absolute@npm:^1.0.0": version: 1.0.1 resolution: "path-is-absolute@npm:1.0.1" @@ -17815,16 +17372,6 @@ __metadata: languageName: node linkType: hard -"pkg-conf@npm:^4.0.0": - version: 4.0.0 - resolution: "pkg-conf@npm:4.0.0" - dependencies: - find-up: ^6.0.0 - load-json-file: ^7.0.0 - checksum: 6da0c064a74f6c7ae80d7d68c5853e14f7e762a2a80c6ca9e0aa827002b90b69c86fefe3bac830b10a6f1739e7f96a1f728637f2a141e50b0fdafe92a2c3eab6 - languageName: node - linkType: hard - "pkg-dir@npm:^4.2.0": version: 4.2.0 resolution: "pkg-dir@npm:4.2.0" @@ -17864,15 +17411,6 @@ __metadata: languageName: node linkType: hard -"plur@npm:^5.1.0": - version: 5.1.0 - resolution: "plur@npm:5.1.0" - dependencies: - irregular-plurals: ^3.3.0 - checksum: 57e400dc4b926768fb0abab7f8688fe17e85673712134546e7beaaee188bae7e0504976e847d7e41d0d6103ff2fd61204095f03c2a45de19a8bad15aecb45cc1 - languageName: node - linkType: hard - "pluralize@npm:^8.0.0": version: 8.0.0 resolution: "pluralize@npm:8.0.0" @@ -18420,15 +17958,6 @@ __metadata: languageName: node linkType: hard -"pretty-ms@npm:^8.0.0": - version: 8.0.0 - resolution: "pretty-ms@npm:8.0.0" - dependencies: - parse-ms: ^3.0.0 - checksum: b7d2a8182887af0e5ab93f9df331f10db9b8eda86855e2de115eb01a6c501bde5631a8813b1b0abdd7d045e79b08ae875369a8fd279a3dacd6d9e572bdd3bfa6 - languageName: node - linkType: hard - "pretty@npm:^2.0.0": version: 2.0.0 resolution: "pretty@npm:2.0.0" @@ -19995,15 +19524,6 @@ __metadata: languageName: node linkType: hard -"serialize-error@npm:^7.0.1": - version: 7.0.1 - resolution: "serialize-error@npm:7.0.1" - dependencies: - type-fest: ^0.13.1 - checksum: e0aba4dca2fc9fe74ae1baf38dbd99190e1945445a241ba646290f2176cdb2032281a76443b02ccf0caf30da5657d510746506368889a593b9835a497fc0732e - languageName: node - linkType: hard - "serialize-javascript@npm:6.0.0": version: 6.0.0 resolution: "serialize-javascript@npm:6.0.0" @@ -20220,13 +19740,6 @@ __metadata: languageName: node linkType: hard -"slash@npm:^4.0.0": - version: 4.0.0 - resolution: "slash@npm:4.0.0" - checksum: da8e4af73712253acd21b7853b7e0dbba776b786e82b010a5bfc8b5051a1db38ed8aba8e1e8f400dd2c9f373be91eb1c42b66e91abb407ff42b10feece5e1d2d - languageName: node - linkType: hard - "slice-ansi@npm:^3.0.0": version: 3.0.0 resolution: "slice-ansi@npm:3.0.0" @@ -20249,16 +19762,6 @@ __metadata: languageName: node linkType: hard -"slice-ansi@npm:^5.0.0": - version: 5.0.0 - resolution: "slice-ansi@npm:5.0.0" - dependencies: - ansi-styles: ^6.0.0 - is-fullwidth-code-point: ^4.0.0 - checksum: 7e600a2a55e333a21ef5214b987c8358fe28bfb03c2867ff2cbf919d62143d1812ac27b4297a077fdaf27a03da3678e49551c93e35f9498a3d90221908a1180e - languageName: node - linkType: hard - "smart-buffer@npm:^4.2.0": version: 4.2.0 resolution: "smart-buffer@npm:4.2.0" @@ -20550,7 +20053,7 @@ __metadata: languageName: node linkType: hard -"stack-utils@npm:^2.0.3, stack-utils@npm:^2.0.6": +"stack-utils@npm:^2.0.3": version: 2.0.6 resolution: "stack-utils@npm:2.0.6" dependencies: @@ -20712,7 +20215,7 @@ __metadata: languageName: node linkType: hard -"string-width@npm:^5.0.0, string-width@npm:^5.0.1, string-width@npm:^5.1.2": +"string-width@npm:^5.0.1, string-width@npm:^5.1.2": version: 5.1.2 resolution: "string-width@npm:5.1.2" dependencies: @@ -20952,18 +20455,6 @@ __metadata: languageName: node linkType: hard -"supertap@npm:^3.0.1": - version: 3.0.1 - resolution: "supertap@npm:3.0.1" - dependencies: - indent-string: ^5.0.0 - js-yaml: ^3.14.1 - serialize-error: ^7.0.1 - strip-ansi: ^7.0.1 - checksum: ee3d71c1d25f7f15d4a849e72b0c5f430df7cd8f702cf082fdbec5642a9546be6557766745655fa3a3e9c88f7c7eed849f2d74457b5b72cb9d94a779c0c8a948 - languageName: node - linkType: hard - "supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": version: 8.1.1 resolution: "supports-color@npm:8.1.1" @@ -21220,13 +20711,6 @@ __metadata: languageName: node linkType: hard -"temp-dir@npm:^3.0.0": - version: 3.0.0 - resolution: "temp-dir@npm:3.0.0" - checksum: 577211e995d1d584dd60f1469351d45e8a5b4524e4a9e42d3bdd12cfde1d0bb8f5898311bef24e02aaafb69514c1feb58c7b4c33dcec7129da3b0861a4ca935b - languageName: node - linkType: hard - "terminal-link@npm:^2.0.0": version: 2.1.1 resolution: "terminal-link@npm:2.1.1" @@ -21429,13 +20913,6 @@ __metadata: languageName: node linkType: hard -"time-zone@npm:^1.0.0": - version: 1.0.0 - resolution: "time-zone@npm:1.0.0" - checksum: e46f5a69b8c236dcd8e91e29d40d4e7a3495ed4f59888c3f84ce1d9678e20461421a6ba41233509d47dd94bc18f1a4377764838b21b584663f942b3426dcbce8 - languageName: node - linkType: hard - "tinycolor2@npm:1.5.2": version: 1.5.2 resolution: "tinycolor2@npm:1.5.2" @@ -21931,13 +21408,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.13.1": - version: 0.13.1 - resolution: "type-fest@npm:0.13.1" - checksum: e6bf2e3c449f27d4ef5d56faf8b86feafbc3aec3025fc9a5fbe2db0a2587c44714521f9c30d8516a833c8c506d6263f5cc11267522b10c6ccdb6cc55b0a9d1c4 - languageName: node - linkType: hard - "type-fest@npm:^0.18.0": version: 0.18.1 resolution: "type-fest@npm:0.18.1" @@ -23123,13 +22593,6 @@ __metadata: languageName: node linkType: hard -"well-known-symbols@npm:^2.0.0": - version: 2.0.0 - resolution: "well-known-symbols@npm:2.0.0" - checksum: 4f54bbc3012371cb4d228f436891b8e7536d34ac61a57541890257e96788608e096231e0121ac24d08ef2f908b3eb2dc0adba35023eaeb2a7df655da91415402 - languageName: node - linkType: hard - "whatwg-encoding@npm:^1.0.5": version: 1.0.5 resolution: "whatwg-encoding@npm:1.0.5" @@ -23380,16 +22843,6 @@ __metadata: languageName: node linkType: hard -"write-file-atomic@npm:^5.0.0": - version: 5.0.1 - resolution: "write-file-atomic@npm:5.0.1" - dependencies: - imurmurhash: ^0.1.4 - signal-exit: ^4.0.1 - checksum: 8dbb0e2512c2f72ccc20ccedab9986c7d02d04039ed6e8780c987dc4940b793339c50172a1008eed7747001bfacc0ca47562668a069a7506c46c77d7ba3926a9 - languageName: node - linkType: hard - "ws@npm:8.12.0": version: 8.12.0 resolution: "ws@npm:8.12.0" @@ -23726,13 +23179,6 @@ __metadata: languageName: node linkType: hard -"yocto-queue@npm:^1.0.0": - version: 1.0.0 - resolution: "yocto-queue@npm:1.0.0" - checksum: 2cac84540f65c64ccc1683c267edce396b26b1e931aa429660aefac8fbe0188167b7aee815a3c22fa59a28a58d898d1a2b1825048f834d8d629f4c2a5d443801 - languageName: node - linkType: hard - "z-schema@npm:~5.0.2": version: 5.0.6 resolution: "z-schema@npm:5.0.6"